background image

ssid=myirAP

hw_mode=g

channel=6

macaddr_acl=0

auth_algs=1

ignore_broadcast_ssid=0

wpa=2

wpa_passphrase=123456789

wpa_key_mgmt=WPA-PSK

wpa_pairwise=TKIP

rsn_pairwise=CCMP

2.Modify the contents of the /etc/dhcp/dhcpd.conf configuration file as needed. This

configuration file is mainly used to provide DHCP services for devices connected to

WIFI APs.

# cat /etc/dhcp/dhcpd.conf 

ddns-update-style interim;

ignore client-updates;

subnet 192.168.43.0 netmask 255.255.255.0{

range 192.168.43.100 192.168.43.150;

default-lease-time 86400;

max-lease-time 86400;

option routers 192.168.43.1;

option broadcast-address 192.168.43.255;

option subnet-mask 255.255.255.0;

option domain-name "redpinesignals.com";

option domain-name-servers 114.114.114.114;

host VAP_0.redpinesignals.com{

        hardware ethernet 00:23:a7:3a:11:d1;

        fixed-address 192.168.43.1;

        }

}

3.Create an ap hotspot.

# hostapd /etc/hostapd.conf -B

Configuration file: /etc/hostapd.conf

Using interface wlan0 with hwaddr 00:1d:43:a0:04:11 and ssid "myirAP"

random: Only 15/20 bytes of strong random data available from /dev/random

random: Not enough entropy pool available for secure operations

WPA: Not enough entropy in random pool for secure operations - update keys later when 

the first station connects

wlan0: interface state UNINITIALIZED->ENABLED

87

Содержание MYD-AM335X

Страница 1: ......

Страница 2: ... environment 2 1 Install tools 2 2 Setup GCC Toolchain 3 Bulid System 3 1 Bulid Bootloader 3 2 Build Linux Kernel 3 3 Build Filesystem 3 4 Build QT 4 Linux Applications Development 4 1 LCD 4 2 Touch Panel 4 3 RTC 4 4 RS485 4 5 CAN Bus 4 6 Ethernet 4 7 NAND Flash 4 8 KeyPad 4 9 GPIO LED 4 10 Audio 4 11 USB Host 4 12 USB Device 5 Qt Applications Development 5 1 Install QtCreator 5 2 Config QtCreator...

Страница 3: ...8 2 1 8 3 1 8 4 1 8 5 1 9 6 Update System 7 Peripheral Module Use 7 1 4 3 Inch Resistive Touch Screen 7 2 WIFI Module 7 3 USB Camera Module 7 4 GPS Module 7 5 GPRS Module Appendix Warranty Technical Support Services 3 ...

Страница 4: ...inux application and image download This document is suitable for embedded Linux development engineers with some development experience Version History Version Number Description Time V1 0 Initial Version 2017 4 1 V1 1 1 Add kernel and u boot repository configuration for Buildroot 2 Add MEasy HMI demo to rootfs for development boards 2018 07 01 V1 2 1 Add support of core board with EMMC 2018 07 26...

Страница 5: ...Hardware Version MYD AM335X MYD AM335X Y MYD AM335X J Note This document applies to the above three versions of the hardware the user can choose the corresponding operation according to the corresponding board In this paper the MYD AM335X series is used to represent the three board 5 ...

Страница 6: ...Drivers LCD Controller LCD driver for 4 3 inch 7 inch YES Drivers Touch Panel Resistive touch screen driver YES Drivers Touch Panel Capacitance touch screen driver YES Drivers RTC RTC clock driver YES Drivers UART Serial driver YES Drivers SDIO WiFi WiFi driver YES Drivers RS485 RS485 driver YES Drivers CAN CAN driver YES Drivers Ethernet Ethernet driver YES Drivers MMC SD MMC SD driver YES Driver...

Страница 7: ...ystem Bin Filesystem UBI Provide image file YES Filesystem Ramdisk gz ramdisk filesystem YES Demo LCD LCD test program YES Demo RTC RTC clock test program YES Demo RS485 RS485 test program YES Demo CAN CAN test program YES Demo Ethernet Ethernet test program YES Demo NAND Flash NAND Flash test program YES Demo GPIO LED GPIO LED test program YES Demo Audio Audio test program YES Demo Qt QT environm...

Страница 8: ...PC development environment Ubuntu12 04 Ubuntu14 04 Ubuntu16 04 64bit Desktop Cross compiler gcc5 3 Linaro GCC 2016 02 Hardware debugging environment structures MYD AM335X Hardware debugging environment structures Connect the debug serial port J12 to the PC set the baudrate of serial port on host PC to 115 200 8 n 1 Specific as follows 8 ...

Страница 9: ...are debugging environment structures Connect the debug serial port J10 to the PC set the baudrate of serial port on host PC to 115 200 8 n 1 Specific as follows Figure 2 2 MYD AM335X Y Hardware Debugging Interface MYD AM335X J Hardware debugging environment structures 9 ...

Страница 10: ...Interface Create a working directory Create a work directory and copy the resources from 04 Linux_Source of our release package to the work directory on ubuntu host PC here is defined by customers according to their development environment mkdir p WORKDIR cp media cdrom 04 Linux_Source WORKDIR rf ls WORKDIR Bootloader Examples Filesystem Kernel Patches ToolChain 10 ...

Страница 11: ...ll build essential git core libncurses5 dev u boot tools sudo apt get install flex bison texinfo zip unzip zlib1g dev gettext sudo apt get insta 64Bit Desktopll gperf libsdl dev libesd0 dev sudo apt get install g xz utils sudo apt get install subversion Ubuntu 16 04 64Bit Desktop sudo apt get install build essential git core libncurses5 dev u boot tools sudo apt get install flex bison texinfo zip ...

Страница 12: ...d type arm then press TAB to check if it s correctly set This setting is valid only for the this terminal for a permanent modification please modify user profiles eg Set user environment variables vi profile At the end to add export ARCH arm export CROSS_COMPILE arm linux gnueabihf export PATH PATH WORKDIR Toolchain gcc linaro 5 3 2016 02 x86_64_arm linux gnueabihf bin source profile or Reset Ubun...

Страница 13: ... arm linux gnueabihf gcc v Using built in specs COLLECT_GCC arm linux gnueabihf gcc Thread model posix gcc version 5 3 1 20160113 Linaro GCC 5 3 2016 02 13 ...

Страница 14: ...ient and easy to use tool to generate embedded Linux systems through cross compilation thanks to its kernel like menuconfig gconfig and xconfig configuration interfaces building a basic system with Buildroot is easy so it s very popular among embedded software engineers The following sections will explain U boot kernel filesystem respectively in the part of filesystem we build a filesystem with QT...

Страница 15: ...able 3 1 1 U boot Config Files for MYIR Development Boards Board Configuration File Name MYD AM335X NAND myd_c335x_defconfig MYD AM335X EMMC myd_c335x_emmc_defconfig MYD AM335X J NAND myd_j335x_defconfig MYD AM335X J EMMC myd_j335x_emmc_defconfig MYD AM335X Y NAND myd_y335x_defconfig MYD AM335X Y EMMC myd_y335x_emmc_defconfig Compile U boot for MYD AM335X development board with NAND make distclean...

Страница 16: ...5X development board If users want to compile and install kernel modules they should set INSTALL_MOD_PATH it is useful for debug kernel modules with NFS export INSTALL_MOD_PATH HOME export rootfsa make distclean make myd_c335x_defconfig make zImage dtbs make modules make modules_install The kernel modules have a version magic it should match the version of zImage So if users change the version of ...

Страница 17: ...device tree file from the patch file in WORKDIR 04 Linux_source Patches and then compile the kernel using the device tree file The following is a list of related patches Table 3 2 2 Kernel Patches for MYIR Development Boards Board Type MYD AM335X MYD AM335X Y MYD AM335X J HDMI patches myd_c335x_hdmi_display diff No expansion No expansion 4 3 inch screen patch myd am335x lcd4 3 diff myd am335x y lc...

Страница 18: ...y for u boot and kernel then replace the git path in the configuration files Copy the Buildroot source package customized by MYIR Tech from 04 Linux_Source Filesystem myir buildroot tar gz of our release package to work directory and uncompress it The content of myir buildroot tar gz is shown below ls al WORKDIR Filesystem myir buildroot arch CHANGES configs dl linux output support board Config in...

Страница 19: ...ash myd_j335x_emmc_defconfig Buildroot configuration without QT5 for MYC AM335X J CPU Module with EMMC myd_j335x_qt5_defconfig Buildroot configuration with QT5 for MYD AM335X J development board with NAND Flash myd_y335x_defconfig Buildroot configuration without QT5 for MYC AM335X Y CPU Module with NAND Flash myd_y335x_defconfig Buildroot configuration without QT5 for MYC AM335X Y CPU Module with ...

Страница 20: ...n after compiling Figure 3 3 1 Configuration for Cross Compiler Configuration for System The configuration for system includes the name of the target system the welcome message the init subsystem busybox systemV systemd and device manage system customers can also set the password for root user by configuration For MYD AM335X Y development board the password for root is set to myirtech as shown bel...

Страница 21: ...or System Configuration for Bootloader The configuration for Bootloader includes the URL of the source code of U boot the U boot configuration file name the output images of U boot and so on They are shown in Figure 3 3 3 below 21 ...

Страница 22: ...al Create a U boot git repository from myir u boot tar gz cd tar zxvf myir u boot tar gz cd myir u boot git init git add f git commit m Initial Version a And then modify and replace the two items of the configuration files located at WORKDIR Filesystem buildroot configs myd_y335x_defconfig and WORKDIR Filesystem buildroot configs myd_y335x_qt5_defconfig as shown below BR2_TARGET_UBOOT_CUSTOM_REPO_...

Страница 23: ... Kernel with git from local repository Users need to build their own git repository they can also use other protocols or even local directory For other protocols please refer to the Buildroot manual Create a kernel git repository from myir kernel tar gz cd tar zxvf myir kernel tar gz cd myir u boot git init git add f git commit m Initial Version a 23 ...

Страница 24: ...also be create if they are choosed in configuration By the way the rootfs tar gz can be uncompressed and used as the nfsroot directory it can also be made to other formats of filesystem images by host mtd utils For example we can create UBIFS filesystem image without building Buildroot again after doing some modification for rootfs Firstly we create a file ubinize cfg as shown below ubifs mode ubi...

Страница 25: ...ils and so on build them into the filesystem images for debugging Some network utils such as DHCP TFTP SSH and so on can aslo be choosed and built into the filesystem images for production Most commonly used tools are included in the target packages of Buildroot Customers can also write new target packages and integrate them to Buildroot please refer to https buildroot org downloads manual manual ...

Страница 26: ...e resulte output image files are located at the WORKDIR Filesystem myir buildroot output images directory ls al output images boot vfat MLO_usbmsc rootfs cpio rootfs tar u boot_emmc img u bo ot_usbmsc img uEnv txt MLO myd_y335x dtb rootfs cpio gz rootfs tar gz u boot img uEnv _mmc txt uEnv_usbmsc_ramdisk txt MLO_emmc myd_y335x_emmc dtb rootfs cpio uboot rootfs ubi u boot_nand img uEnv _ramdisk txt...

Страница 27: ...users can setup this toolchain as follows suppose myir buildroot is put into HOME export PATH HOME myir buildroot output host usr bin PATH export PATH HOME myir buildroot output host usr sbin PATH export CROSS_COMPILE arm myir linux gnueabihf export TARGET_CC arm myir linux gnueabihf gcc export ARCH arm 3 3 4 Filesystem Built by Arago Customers can also run an demo filesystem image created with Ar...

Страница 28: ...ith qt5 make myd_c335x_qt5_defconfig make menuconfig optional make After compiling with the config file myd_c335x_qt5_defconfig all the target images are generated at path myir buildroot output images There is a HMI demo named as MEasy HMI inclued which was designed by MYIR Electornics Limited for more details about MEasy HMI please refer to MEasy HMI Development Guide Beyond the image files a cro...

Страница 29: ...s Make sure the following environment variables are right export PATH PATH WORKDIR Toolchain gcc linaro 5 3 2016 02 x86_64_arm linux gnueabihf bin export ARCH arm export CROSS_COMPILE arm linux gnueabihf After building Buildroot a cross compile toolchain has been created at myir buildroot output host usr bin it can be used here by setting the environment variables instead of the above export ARCH ...

Страница 30: ... make If the binary files have no permission to run please assign the running permission to them by chmod chmod x 30 ...

Страница 31: ...T070CV2 7 inch capacitive screen connection J7 MY TFT070CV2 7 inch capacitive screen connection J8 Note MY TFT070CV2 information please click LCD Screen Software Preparation Linux Kernel 4 1 18 framebuffer_test application fbv application built by Buildroot Test Steps Copy cross compiled WORKDIR Examples framebuffer framebuffer_test to usr bin directory of the MYD AM335X series development board r...

Страница 32: ...mage information stretch f Strech using a simple resizing routine the image to fit onto screen if necessary colorstretch k Strech using a color average resizing routine the image to fit onto screen if necessary enlarge e Enlarge the image to fit the whole screen if necessary ignore aspect r Ignore the image aspect while resizing delay d s delay Slideshow delay is the slideshow delay in tenths of s...

Страница 33: ...After complete the picture displays just right for the LCD 33 ...

Страница 34: ...connection J7 MY TFT070CV27 inch capacitive screen MY TFT070RV2 7 inch resistive screen connection J8 Software Preparation Linux Kernel 4 1 18 TS_CALIBRATE application Test Steps Connect MY TFT070CV2 module to MYD AM335X series development board power on the board and view the device node in dev input directory ls dev input by path event1 event3 mice mouse1 event0 event2 event4 mouse0 cat sys clas...

Страница 35: ... Calibration constants 576884 67116 276 529452 147 65424 65536 Power off the MYD AM335X series development board connect MY TFT070RV2 module to MYD AM335X series development board power on the board and view the device node in dev input directory ls dev input by path event0 event1 event2 event3 mice mouse0 cat sys class input event0 device name beeper cat sys class input event1 device name ti tsc ...

Страница 36: ...samples Top right X 3689 Y 659 Took 29 samples Bot right X 3732 Y 3463 Took 27 samples Bot left X 280 Y 3423 Took 18 samples Center X 2009 Y 2072 7 786255 0 204611 0 000881 34 248169 0 001587 0 135514 Calibration constants 510280 13409 57 2244488 103 8881 65536 36 ...

Страница 37: ...8 date hwclock command rtc_test application Test Steps Copy cross compiled WORKDIR Examples rtc rtc_test to usr bin directory of the MYD AM335X seriesdevelopment board run rtc_test application as below chmod 777 usr bin rtc_test rtc_test h Usage rtc_test options Version 1 0 Options d device name rtc device name default dev rtc0 w write time time string with format MMDDhhmm CCYY ss such as 11181758...

Страница 38: ...1518002016 30 Set the system time to August 15 2016 18 00 30 Mon Aug 15 18 00 30 UTC 2016 date Mon Aug 15 18 00 38 UTC 2016 hwclock w dev rtc Write the system time to rtc Power off the development board wait for a while power on again and read the rtc time by hwclock as below hwclock r dev rtc Mon Aug 15 18 11 08 2016 0 000000 seconds 38 ...

Страница 39: ...ment board 5 4 Pin JP2 and JP3 shorted JP5 and JP7 shorted J18 1 2 4 5 Pin were connected to the same type of development board 1 2 4 5 Pin Software Preparation Linux Kernel 4 1 18 tty_test application Board Type MYD AM335X MYD AM335X Y MYD AM335X J Device node ttyO1 ttyO2 ttyO2 ttyO3 Test Steps Copy cross compiled WORKDIR Examples tty tty_test to usr bin directory of the MYD AM335X series develop...

Страница 40: ...456789 SEND 123456789 Execute the following command at other board to receive data as below tty_test d dev ttyO2 b 9600 m 1 l RECV 1 total 1 RECV 2 total 1 RECV 3 total 1 RECV 4 total 1 RECV 5 total 1 RECV 6 total 1 RECV 7 total 1 RECV 8 total 1 RECV 9 total 1 RECV 1 total 1 RECV 2 total 1 RECV 3 total 1 RECV 4 total 1 RECV 5 total 1 RECV 6 total 1 RECV 7 total 1 RECV 8 total 1 RECV 9 total 1 Exch...

Страница 41: ...jumper cap JP7 Shorted JP4 J17 1 2 Pin were connected to the same type of development board 1 2 Pin Software Preparation Linux Kernel 4 1 18 can_test application ip link applicatoin Board Type MYD AM335X MYD AM335X Y MYD AM335X J Operation node can1 can1 can0 Test Steps Copy cross compiled WORKDIR Examples can can_test to usr bin directory of the MYD AM335x series development board run can_test ap...

Страница 42: ...protocol family 29 5786 952090 can raw protocol rev 20120528 write frame frame_id 0x123 frame_len 6 frame_data 0x11 0x22 0x33 0x44 0x55 0x66 Execute the following command at other board to receive data as below chmod 777 usr bin can_test can_test d can1 l 5888 821956 c_can_platform 481d0000 can can1 setting BTR 1c1d BRPE 0000 5891 884726 can controller area network core rev 20120528 abi 9 5891 898...

Страница 43: ...Exchange roles of the two boards the result is the same 43 ...

Страница 44: ...opy cross compiled WORKDIR Examples network client to usr bin directory of the MYD AM335x series development board Copy cross compiled WORKDIR Examples network server to ubuntu 12 04 Assume that the ubuntu12 04 ip is 192 168 30 114 Configure the development board ip ifconfig eth0 192 168 30 122 up Configure the network the development board eth0 connected to the PC with a network cable to the virt...

Страница 45: ...ges 1234567890 to 192 168 30 114 At the same time you can see the virtual machine to receive the data sent by the development board server 192 168 30 122 received messages 1234567890 from 192 168 30 122 received messages 1234567890 from 192 168 30 122 received messages 1234567890 from 192 168 30 122 received messages 1234567890 from 192 168 30 122 received messages 1234567890 from 192 168 30 122 r...

Страница 46: ...s compiled WORKDIR Examples mtd mtd_test to usr bin directory of the MYD AM335x series development board Executing the following command to nandflash erase write and read data mtd_test dev mtd7 MTD Type 4 MTD total size 131072 bytes MTD erase size 131072 bytes MTD write size 2048 bytes erase the last block at 0 erase done writing 16 bytes data to flash 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 0x08 ...

Страница 47: ...R Examples keypad keypad_test to usr bin directory of the MYD AM335x series development board run keypad_test application as below chmod 777 usr bin keypad_test keypad_test h Usage keypad_test options Version 1 0 Options d device name keypad device name default dev input event0 h help Print this message View the device nodes of MYD AM335X keypad the following information shows K2 and K3 keypads ar...

Страница 48: ...keypads are corresponding to dev input event3 K5 keypad is corresponding to dev input event2 ls dev input by path event0 event1 event2 event3 mice mouse0 cat sys class input event0 device name beeper cat sys class input event1 device name ti tsc cat sys class input event2 device name tps65217_pwrbutton cat sys class input event3 device name volume_keys 0 Test MYD AM335X Y K3 and K4 keypads as belo...

Страница 49: ... class input event1 device name tps65217_pwrbutton cat sys class input event2 device name ft5x06_ts cat sys class input event3 device name volume_keys 0 Test MYD AM335X J K3 and K4 keypads as below keypad_test d dev input event3 Event Code 115 Type 1 Value 1 press K3 Event Code 0 Type 0 Value 0 Event Code 115 Type 1 Value 0 release K3 Event Code 0 Type 0 Value 0 Event Code 114 Type 1 Value 1 press...

Страница 50: ...d test similar hexdump dev input event1 0000000 022b 0000 2a83 0005 0001 0073 0001 0000 0000010 022b 0000 2a83 0005 0000 0000 0000 0000 0000020 022b 0000 78b5 0007 0001 0073 0000 0000 0000030 022b 0000 78b5 0007 0000 0000 0000 0000 0000040 0231 0000 8c69 0001 0001 0072 0001 0000 0000050 0231 0000 8c69 0001 0000 0000 0000 0000 0000060 0231 0000 fc11 0003 0001 0072 0000 0000 0000070 0231 0000 fc11 0...

Страница 51: ..._test to usr bin directory of the MYD AM335x series development board View the device node of MYD AM335X LED devices as below ls sys class leds myc green user1 myd green user2 myd green user3 Control the MYD AM335X LED by echo command as below D3 echo 1 sys class leds myc green user1 brightness echo 0 sys class leds myc green user1 brightness D39 echo 1 sys class leds myd green user2 brightness ec...

Страница 52: ...the MYD AM335X J LED by echo command as below D3 echo 1 sys class leds myc green user1 brightness echo 0 sys class leds myc green user1 brightness D2 echo 1 sys class leds myd green user2 brightness echo 0 sys class leds myd green user2 brightness Control the LEDs by led_test application as below led_test h Usage led_test options Version 1 0 Options d device name led name myc blue cpu0 l light bri...

Страница 53: ...ect J8 Audio input J10 Headphones Connect J9 Software Preparation Linux Kernel 4 1 18 audio_test application Test Steps Copy cross compiled WORKDIR Examples audio audio_test to usr bin directory of the MYD AM335x series development board Plug the headset into the audio output port enter the audio input to the audio input port enter the following command at the Linux terminal audio_test rate set to...

Страница 54: ... number 3 using musb hdrc 334 688922 usb 2 1 4 New USB device found idVendor 1908 idProduct 0226 334 696305 usb 2 1 4 New USB device strings Mfr 0 Product 0 SerialNumber 0 334 743502 usb storage 2 1 4 1 0 USB Mass Storage device detected 334 751563 scsi host0 usb storage 2 1 4 1 0 334 762053 usbcore registered new interface driver usb storage 334 788766 cpu cpu0 clk_voltdm_notifier_handler Failed ...

Страница 55: ... is detected users can mount it to mnt directory of the embedded Linux system as below mount dev sda1 mnt 429 892793 FAT fs sda1 Volume was not properly unmounted Some data may be corr upt Please run fsck cd mnt ls 1 bmp mtd rootfs ubi MLO myd_c335x dtb spi audio myir linux examples u boot img audio1 network zImage Plug out the USB disk Linux kernel dumps the message as below 493 899143 usb 2 1 4 ...

Страница 56: ... it to the USB host interface of PC with a USB mini B to USB A cable Insert the TF card to MYD AM335X series development Load the mass storage gadget driver as below modprobe g_mass_storage stall 0 file dev mmcblk0p1 removable 1 687 171803 udc musb hdrc 0 auto registering UDC driver g_mass_storage 687 179455 Mass Storage Function version 2009 09 11 687 184933 LUN removable file no medium 687 19215...

Страница 57: ... userspace failed to provide iSerialNumber 687 266948 g_mass_storage gadget g_mass_storage ready 687 273141 g_mass_storage musb hdrc 0 auto usb_gadget_udc_start After g_mass_storage driver is loaded a removable disk will be detected on PC The content of this removable disk is just the same with the TF card Note Beyond that users can load different gadget modules to achieve different functions such...

Страница 58: ... cross compile toolchain For development of larger QT5 application IDE tools named as QtCreator is commonly used There is a evaluation edition of QtCreator in our release package at the path 03 Tools qt creator opensource linux x86_64 4 1 0 run In the following sections we will introduce the installation configuration of QtCreator and demonstrate how to create a simple QT5 application running on M...

Страница 59: ... as shown below cd WORKDIR cp media cdrom 03 Tools Qt qt creator opensource linux x86_64 4 1 0 run chmod a x qt creator opensource linux x86_64 4 1 0 run sudo qt creator opensource linux x86_64 4 1 0 run QtCreator will be installed on Ubuntu OS step by step automatically 59 ...

Страница 60: ...popups Please choose the Compilers tab to set compiler for QtCreator as shown below Figure 5 2 1 Settings of Compiler Press Add button at the right side of this dialog choose Custom in the dropdown list and then set Name Compiler path Make path 和 ABI as shown below After complete press the Apply button to save 60 ...

Страница 61: ...he same dialog choose Qt Version Tab to add qmake at the right side of this dialog press Add button then a new dialog popups please choose the qmake tools described at Chapter 3 4 1 After complete press Open to set qmake and then Apply to save 61 ...

Страница 62: ...ysroot editbox write the path of cross compile toolchain in the Compiler and Qt Version editboxs write the settings being set before set Debugger to None set CMake Tools to default as shown below Figure 5 2 4 Add Kits for QtCreator Create Helloworld Project In the main menu of QtCreate choose File New File or Project and in the popup dialog choose Application Qt Widgets Application as shown below ...

Страница 63: ...tion After pressing Choose button the Qt Widgets Application settings dialog popups please set the name and path of the project as shown below in Name and Create in editboxs as shown below Figure 5 2 6 Set the Name and Path of the Project 63 ...

Страница 64: ...n and choose the setting for Kits as below Figure 5 2 7 Set Kits for the Project Choose the base class of the project as shown below Figure 5 2 8 Choose Base Class Press Finish button to create and save the project 64 ...

Страница 65: ...Figure 5 2 9 Finish Creating a New Project 65 ...

Страница 66: ...ct manage of QtCreator as below Figure 5 3 1 Project Manager of QtCreator Double click the mainwindow ui at the left side to open the Design view for designing a UI for helloworld project visually Please drag a Label widget to the center of the mainwindow from the widgets list double click the label and input Hello world 66 ...

Страница 67: ...ild Build Project in the main menu of QtCreator to build the helloworld project Some log information outputs to the Compile Output sub window during compiling in case of any erros and warning please fix them and build again Figure 5 3 3 Build Project 67 ...

Страница 68: ...oworld ELF 32 bit LSB executable ARM version 1 GNU Linux dynamically linked uses shared libs for GNU Linux 4 1 0 not stripped Finaly please copy the binary format application helloworld to usr bin directory of MYD AM335X series development board and execute as below helloworld platform linuxfb fb dev fb0 A Window with a Hello World text label displays on the LCD screen as below Figure 5 3 4 Execut...

Страница 69: ...myd_c335x u boot img Second stage bootloader generated when compiling Buildroot u boot_nand img Second stage bootloader for NAND prebuild by myir from board myir myd_c335x u boot_sd img Second stage bootloader for TF Card prebuild by myir from board myir myd_c335x u boot_emmc img Second stage bootloader for EMMC prebuild by myir from board myir myd_c335x u boot_usbmsc img Second stage bootloader f...

Страница 70: ...i UBIFS filesystem image ramdisk gz ramdisk filesystem compressed by gzip sdcard img TF SD EMMC disk image uEnv txt are text files they define the environment parameters for U boot and then determine the boot process of U boot We take the uEnv_ramdisk txt as an example fdtfile define the device tree name of the board devtype define the boot device type devnum define the device number 0 TF Card 1 E...

Страница 71: ...tion please repower up the board after modification MYD AM335X Y for jp1 MYD AM335X J for jp6 There are four boot modes for MYD AM335X series development board to run embedded Linux system 1 Boot from TF SD card EXT4 file system 2 Boot from TF SD card Ramdisk file system 3 Boot from NAND Flash Ubi file system for core board with NAND Flash 4 Boot from EMMC EXT4 file system for core board with EMMC...

Страница 72: ...t the TF card to its TF slot J19 set the board to boot from TF SD card by J5 Power on the MYD AM335x series development board it will boot from TF card and mount the second partition of the TF card as root file system Boot from TF SD card Ramdisk file system Note HP USB Disk Storage Format Tool will clear original partitions of the TF card To save the partitions please use the formatting software ...

Страница 73: ...sk Storage Format Tool the following steps will show in detail 3 Select FAT32 4 Click Start 5 When the formatting process is completed click OK Update the images Copy all files under directory 02 Images Linux image from the CD to the TF card move uEnv_ramdisk txt to replace uEnv txt Then insert the TF card to the slot on the development board Connect the corresponding board to set the start mode o...

Страница 74: ...t the TF card with the system images into the development board Connect the corresponding board to set the boot mode of the jumper cap 1 2 pin power on and boot it Press any key on the PC keyboard to enter the u boot according to the following prompts U Boot 2016 05 Jan 09 2017 19 37 43 0800 Watchdog enabled I2C ready DRAM 512 MiB NAND 512 MiB MMC OMAP SD MMC 0 OMAP SD MMC 1 Warning bad CRC using ...

Страница 75: ...ze 0x4e714 321300 bytes written OK reading zImage 4480016 bytes read in 396 ms 10 8 MiB s NAND write device 0 offset 0x200000 size 0x445c10 4480016 bytes written OK reading rootfs ubi 24248320 bytes read in 2111 ms 11 MiB s NAND write device 0 offset 0xa00000 size 0x1720000 24248320 bytes written OK MYIR After the system is updated set the boot mode jumper to 2 3 pins And then repower the board to...

Страница 76: ...c and repower up Boot from Ethernet NFS root for debug After building Buildroot a compressed package named as rootfs tar gz is generated at WORKDIR Filesystem myir buildroot output images This package can be used to work as NFS root for MYD AM335X series development board In order to boot from ethernet TFTP and NFS services should be installed and configed as below Install TFTP Service sudo apt ge...

Страница 77: ...ddr bootfilename tftpboot loadaddr 192 168 1 111 zImage Install NFS Service NFS Network File System is a file system can be mounted remotely through network A directory on NFS server can be used as the root file system of an embedded Linux system The installation and configuration of NFS service are described below sudo apt get install nfs kernel server Config NFS Service Edit the etc exports file...

Страница 78: ...ws cp WORKDIR Filesystem myir buildroot output images zImage WORKDIR tftpboot cp WORKDIR Filesystem myir buildroot output images myd_c335x dtb WORKDIR tftp boot Decompression rootfs tar gz to the home myir rootfs directory as follows cd home myir rootfs sudo tar xvf WORKDIR Filesystem myir buildroot output images rootfs tar gz For example the IP address of the NFS server is set to 192 168 1 111 th...

Страница 79: ...onsole execute the netboot command to start the mounted NFS ROOT file system as follows run netboot Note Ping serverip normal run runboot after tftp failure please check the server side tftp service is normal as follows tftp 192 168 1 111 tftp get myd_c335x dtb tftp quit quit tftp If it fails restart tftp service as follows sudo service tftpd hpa restart 79 ...

Страница 80: ...ription MYD AM335X MYD AM335X Y MYD AM335X J Reference Chapter MY TFT043RV2 4 3 Inch Resistive Touch Screen 7 1 4 3 Inch Resistive Touch Screen MY TFT070CV2 7 Inch Capacitive Touch Screen 4 1 LCD Test MY TFT070RV2 7 Inch Resistive Touch Screen 4 1 LCD Test MY WF003U USB WIFI Module 7 2 WIFI Module MY GPS008C GPS Module 7 4 GPS Module MY CAM002U USB Camera Module 7 3 USB Camera Module MY GPRS007C G...

Страница 81: ...erial J12 UART0 J10 Debug UART J3 USB_UART LCD Interface J8 J7 J8 Software Preparation Linux Kernel 4 1 18 framebuffer_test application fbv application Development Board Device Tree MYD AM335X myd_c335x dtb MYD AM335X Y myd_y335x dtb MYD AM335X J myd_j335x dtb The factory software supports the 7 inch capacitor and the resistance screen directly by default Now you need to use the 4 3 inch resistive...

Страница 82: ...on LCD one by one and then colorful points lines areas are painted Copy a BMP file with 32BPP and resolution of 480 272 to media 1 bmp of the development board display the picture on LCD by fbv application fbv Usage fbv options image1 image2 image3 Available options help h Show this help alpha a Use the alpha channel if applicable dontclear c Do not clear the screen before and after displaying the...

Страница 83: ...ting the image aspect on off n Rotate the image 90 degrees left m Rotate the image 90 degrees right p Disable all transformations Copyright C 2000 2004 Mateusz Golicz Tomasz Sterna Error Required argument missing fbv meida 1 bmp fbv The Framebuffer Viewer media 1 bmp 480 x 272 After complete the picture displays just right for the LCD 83 ...

Страница 84: ... J Debug Serial J12 UART0 J10 Debug UART J3 USB_UART USB Interface J3 J4 J19 USB_HOST J27 USB_HOST SDIO Interface J17 TF_CARD J12 J19 Micro_SD Software Preparation Linux Kernel 4 1 18 wpa_supplicant application hostapd application iptables application Development Board Device Tree MYD AM335X myd_c335x dtb MYD AM335X Y myd_y335x dtb MYD AM335X J myd_j335x dtb Test Steps Insert the MY WF003U module ...

Страница 85: ...net6 addr 1 128 Scope Host UP LOOPBACK RUNNING MTU 65536 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped 0 overruns 0 carrier 0 collisions 0 txqueuelen 0 RX bytes 0 0 0 B TX bytes 0 0 0 B wlan0 Link encap Ethernet HWaddr 00 1D 43 A0 04 11 BROADCAST MULTICAST MTU 1500 Metric 1 RX packets 0 errors 0 dropped 0 overruns 0 frame 0 TX packets 0 errors 0 dropped ...

Страница 86: ...Test ping www baidu com PING www baidu com 61 135 169 125 56 data bytes 64 bytes from 61 135 169 125 seq 0 ttl 56 time 29 253 ms 64 bytes from 61 135 169 125 seq 1 ttl 56 time 32 218 ms 64 bytes from 61 135 169 125 seq 2 ttl 56 time 24 717 ms 64 bytes from 61 135 169 125 seq 4 ttl 56 time 141 210 ms 64 bytes from 61 135 169 125 seq 5 ttl 56 time 64 064 ms 64 bytes from 61 135 169 125 seq 11 ttl 56...

Страница 87: ... time 86400 option routers 192 168 43 1 option broadcast address 192 168 43 255 option subnet mask 255 255 255 0 option domain name redpinesignals com option domain name servers 114 114 114 114 host VAP_0 redpinesignals com hardware ethernet 00 23 a7 3a 11 d1 fixed address 192 168 43 1 3 Create an ap hotspot hostapd etc hostapd conf B Configuration file etc hostapd conf Using interface wlan0 with ...

Страница 88: ...pd pid Wrote 0 deleted host decls to leases file Wrote 0 new dynamic host decls to leases file Wrote 0 leases to leases file Listening on LPF wlan0 00 1d 43 a0 04 11 192 168 43 0 24 Sending on LPF wlan0 00 1d 43 a0 04 11 192 168 43 0 24 Sending on Socket fallback fallback net After completing the above five steps you can use other WIFI STA mode devices to connect to the created AP hotspots but onl...

Страница 89: ...net ipv4 ip_forward 3 Configure eth0 as the exit of all packets iptables t nat A POSTROUTING o eth0 j MASQUERADE After performing the above three steps the WIFI device can access the Internet through this AP hotspot 89 ...

Страница 90: ...335X Y MYD AM335X J Debug Serial J12 UART0 J10 Debug UART J3 USB_UART USB Interface J3 J4 J19 USB_HOST J27 USB_HOST Software Preparation Linux Kernel 4 1 18 fswebcam application fbv application Development Board Device Tree MYD AM335X myd_c335x dtb MYD AM335X Y myd_y335x dtb MYD AM335X J myd_j335x dtb Test Steps Insert the camera module into the USB interface of the development board the system wi...

Страница 91: ...to the PC to display If the development board is connected to the LCD screen you can use the command to output the captured photos to the LCD for display fbv image jpg fbv The Framebuffer Viewer image jpg 640 x 480 91 ...

Страница 92: ...nd Interface J20 J13 J25 Software Preparation Linux Kernel 4 1 18 microcom application Development Board Device Tree MYD AM335X myd_c335x dtb MYD AM335X Y myd_y335x dtb MYD AM335X J myd_j335x dtb Test Steps If the development board has an expand interface the GPS module is directly connected to the expand interface and the development board without the expand interface directly uses the idle seria...

Страница 93: ...285 54 19 09 059 35 28 40 334 51 7C GPGSV 3 3 09 32 21 084 27 4B GPGGA 061102 0 2233 150278 N 11356 386896 E 1 05 2 7 83 5 M 1 0 M 79 GPVTG T 0 0 M 0 0 N 0 0 K A 0D GPRMC 061102 0 A 2233 150278 N 11356 386896 E 0 0 230715 0 0 E A 2E 93 ...

Страница 94: ... J10 Debug UART J3 USB_UART Expand Interface J20 J13 J25 Software Preparation Linux Kernel 4 1 18 pppd application Development Board Device Tree MYD AM335X myd_c335x dtb MYD AM335X Y myd_y335x dtb MYD AM335X J myd_j335x dtb Test Steps If the development board has an expand interface the GPRS module is directly connected to the expand interface and the development board without the expand interface...

Страница 95: ...pp peers gprs connect chat connect bin chat v s f etc ppp gprs connect chat disconnect bin chat v f etc ppp gprs disconnect chat Use the command to make a dial up connection pppd call gprs ping test ping www baidu com PING www baidu com 61 135 169 125 56 data bytes 64 bytes from 61 135 169 125 seq 0 ttl 56 time 29 253 ms 64 bytes from 61 135 169 125 seq 1 ttl 56 time 32 218 ms 64 bytes from 61 135...

Страница 96: ... ARM processors to help customers make your idea a reality The contents below introduce to customers the warranty and technical support services provided by MYIR as well as the matters needing attention in using MYIR s products Service Guarantee MYIR regards the product quality as the life of an enterprise We strictly check and control the core board design the procurement of components production...

Страница 97: ... support service MYIR offers technical support for the hardware and software materials which ha ve provided to customers To help customers compile and run the source code we offer To help customers solve problems occurred during operations if users follow th e user manual documents To judge whether the failure exists To provide free software upgrading service However the following situations are n...

Страница 98: ...ntenance service to LCD We suggest the customer first check the LCD when receiving the goods In case the LCD cannot run or no display customer should contact MYIR within 7 business days from the moment get the goods 2 Please do not use finger nails or hard sharp object to touch the surface of the LCD 3 MYIR suggests user purchasing a piece of special wiper to wipe the LCD after long time use pleas...

Страница 99: ...t to users when the product is repaired If the warranty period is expired all the shipping cost will be responsible by users 1 Products Life Cycle MYIR will always select mainstream chips for our design thus to ensure at least ten years continuous supply if meeting some main chip stopping production we will inform customers in time and assist customers with products updating and upgrading Value ad...

Страница 100: ...Sales Email sales myirtech com Phone 86 755 22984836 Fax 86 755 25532724 Website www myirtech com 100 ...

Отзывы: