background image

SBC-EC9100 User Manual 

Embest Technology Co. Ltd 

http://www.embest-tech.com

 

  23 

3.2.3

 

Compile and Burn the Images to EMMC 

$ cd $HOME/S4_Sourcecode/u-boot 

$ make distclean 

$make embest_fsl_ec9100_emmc_defconfig 

$make 

When the compilation finished, it will generate a 

u-boot.imx

 under path $HOME/S4_Sourcecode/u-boot. Copy 

the file to SD Card: 

Refer to 

1.2

, first, you need to boot up the system from SD card. Then, type the following command on the 

system which already running on SD card to format and burn EMMC. 

1

 

Prepare the EMMC partition 

$ sudo dd if=/dev/zero of=/dev/mmcblk1 bs=1K count=1 

$ echo -e " o\nn\np\n1\n20480\n+64M\na\nt\nc\nn\np\n2\n151552\n\nw\n " | fdisk /dev/mmcblk1 

$ sudo mkfs.vfat /dev/mmcblk1p1 

$ sudo mkfs.ext4 /dev/mmcblk1p2 

$ sudo fdisk /dev/mmcblk1 –l 

2

 

Burn the u-boot.imx (for emmc) to EMMC use dd command

 

$ sudo dd if=u-boot.imx of=/dev/mmcblk1 bs=512 seek=2 conv=fsync 

3

 

Enable boot from EMMC user partition 

$ sudo echo 56 > /sys/block/mmcblk1/device/boot_config 

4

 

Check whether the enable operation work 

$ sudo cat /sys/block/mmcblk1/device/boot_info 

If the operation works, it will print the following info: 

boot_partition:0x78; 

BOOT_ACK:1 - Boot acknowledge sent during boot operation 

BOOT_PARTITION-ENABLE: 7 - User area enabled for boot 

Now the U-boot is burned to EMMC 

 

 

Summary of Contents for Embest SBC-EC9100

Page 1: ...SBC EC9100 User Manual Embest Technology Co Ltd http www embest tech com 1 User Manual SBC EC9100...

Page 2: ...SBC EC9100 User Manual Embest Technology Co Ltd http www embest tech com 2 Revision History Rev Note Author 20160907 Initial Sandy...

Page 3: ...Quick Start 7 1 1 Burn the System Images to the SD Card 7 1 2 System Boot from SD Card 8 1 3 System Boot from EMMC 9 Chapter 2 Function test 10 2 1 Button 10 2 2 RTC 11 2 3 EEPROM 11 2 4 EMMC 12 2 5 G...

Page 4: ...Chapter 3 System Compilation 22 3 1 Building Development Environment 22 3 2 Compiling U Boot 22 3 2 1 Get the U Boot Source Code 22 3 2 2 Compile and Burn the Images to SD Card 22 3 2 3 Compile and B...

Page 5: ...U7 DDR3 MT41K256M16HA 125 Can access read write and run code MicroSD_ TF EC9100 J3 MMC0 Null Can access read write and boot eMMC EC9100 U6 MMC1 Can access read write UART 0 UART1 System can send and...

Page 6: ...U17 CAN0 mc33901wef System can send and receive data between two board RS485 1 EC9100 MN 1 UART1 ADM3485 System can send and receive data between two board debian filesystem ADC Null Null CAMERA CSI...

Page 7: ...System Images to the SD Card Firstly you should prepare a SD card which is no less than 1GB Then download and install Win32 Disk Imager from https sourceforge net projects win32diskimager Select the...

Page 8: ...ate as 115200 data bits as 8 stop bits as 1 parity as none Connect the Uart Tx Pin 8 in J10 and Rx Pin 10 in J10 to PC with USB to TTL convertor Insert the SD card into the card slot J3 Powered the bo...

Page 9: ...embest ls dev sd dev sda dev sda1 root embest mount dev sda1 mnt root embest dd if mnt 91200003_SBC EC9100 EMMC_Shipment_Image_REV00 img of dev mmcblk1 Note Burn the EMMC takes a long time please wait...

Page 10: ...root embest evtest dev input event0 Input driver version is 1 0 1 Input device ID bus 0x19 vendor 0x0 product 0x0 version 0x0 Input device name 20cc000 snvs pwrkey Supported events Event type 0 EV_SYN...

Page 11: ...tes that the hardware clock RTC has been set to March 9 2016 so the system clock is saved in the hardware clock Reboot the system and check the current system time root embest date Wed Mar 9 10 46 45...

Page 12: ...2b 2c 2d 2e 2f 30 31 32 33 34 35 36 37 38 39 3a 3b 3c 3d 3e 3f 40 41 42 43 44 45 46 47 48 49 4a 4b 4c 4d 4e 4f 50 51 52 53 54 55 56 57 58 59 5a 5b 5c 5d 5e 5f 60 61 62 63 64 65 66 67 68 69 6a 6b 6c 6d...

Page 13: ...10 kB copied 0 0179817 s 569 kB s Check emmc_read value root embest cat emmc_read emmc write test Test passes 2 5 GPIO SBC EC9100 have 4 pins which can be used as GPIO controlled output they are GPIO4...

Page 14: ...light 9 brightness echo from 0 to 7 to find the screen backlight change 2 7 Touchscreen Connect the screen module to J5 make sure fuse is written Read the fuse value by the following instruction You j...

Page 15: ...f the other board Pin 20 in J9 Tx pin to the Rx pin of the other board Execute the following instructions on the serial terminal for each board root embest uart_test d dev ttymxc1 b 115200 Two boards...

Page 16: ...can 2094000 can can1 writing ctrl 0x27292085 2 Send and Receive CAN1 receive data CAN0 send data to CAN1 if the following info printed the test passes root embest candump can1 4 589 root embest cansen...

Page 17: ...st 2 12 1 1 U disk Insert the U disk to the USB Host interface J8 serial terminal will display the disk information usb 2 1 USB disconnect device number 3 usb 2 1 new high speed USB device number 4 us...

Page 18: ...input0 input SIGMACH1P USB Keykoard as devices soc0 soc 0 2100000 aips bus 2184200 usb ci_hdrc 1 usb2 2 1 2 1 1 1 0003 1C4F 0002 0004 input inp ut5 hid generic 0003 1C4F 0002 0004 input USB HID v1 10...

Page 19: ...2091 type 4 EV_MSC code 4 MSC_SCAN value 70017 Event time 73542 762091 type 1 EV_KEY code 20 KEY_T value 0 Event time 73542 762091 EV_SYN Event time 73544 202085 type 4 EV_MSC code 4 MSC_SCAN value 70...

Page 20: ...A sda sda1 sd 1 0 0 0 sda Attached SCSI removable disk 2 12 2 2 Keyboard USB Keyboard usb 1 1 new low speed USB device number 4 using ci_hdrc input SIGMACH1P USB Keykoard as devices soc0 soc 0 2100000...

Page 21: ...rmware test yuv root embest sync Camera will record a video with 640 480 resolution rate 25 generate the video file test yuv in SD card folder Connect SD card to PC open it with Pyuv exe Parameters of...

Page 22: ...o toolchain master bin arm fsl linux gnueabi export ARCH arm 3 2 Compiling U Boot 3 2 1 Get the U Boot Source Code U boot source code locates under path HOME S4_Sourcecode extract the u boot tar gz cd...

Page 23: ...sudo dd if dev zero of dev mmcblk1 bs 1K count 1 echo e o nn np n1 n20480 n 64M na nt nc nn np n2 n151552 n nw n fdisk dev mmcblk1 sudo mkfs vfat dev mmcblk1p1 sudo mkfs ext4 dev mmcblk1p2 sudo fdisk...

Page 24: ...Burn the Images to SD Card cd HOME S4_Sourcecode linux make distclean make embest_fsl_sbc_ec9100_defconfig make When the compilation finished it will generate zImage under HOME S4_Sourcecode linux arc...

Reviews: