1 program sd card, U-boot deployment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 39

Advertising
background image

U-boot Deployment

COMX-P2020 BSP User Guide (6806800L84B)

39

5.3.1

Program SD Card

By default, the SD card includes the U-boot, Linux Kernel and root file system which can be used
to start-up the COMX-P2020. If the SD card is damaged, we can program it at the Linux host
with a USB reader as below:

Create the /local/tftpboot/COMX-P2020/current directory at host, and copy the release
file: COMX-P2020.bsp.tar.gz to the directory: /local/tftpboot/COMX-P2020/current

[percy@localhost current]$ sudo chmod 777 /local/tftpboot/COMX-

P2020/current

[percy@localhost current]$ ls -al COMX-P2020.bsp.tar.gz

-rwxr--r-- 1 percy percy 462501957 Dec 9 14:57 COMX-P2020.bsp.tar.gz

Extract all the BSP targets from the COMX-P2020.bsp.tar.gz:

[percy@localhost

current]$ tar zxvf COMX-P2020.bsp.tar.gz

[percy@localhost current]$ ls -al

total 910224

drwxr-xr-x 2 percy percy 4096 Dec 10 09:37 .

drwxrwxr-x 8 percy percy 4096 Dec 9 18:07 ..

-rw-r--r-- 1 percy percy 9824 Dec 9 14:51 comx.dtb

-rwxr--r-- 1 percy percy 462501957 Dec 9 14:57 COMX-P2020.bsp.tar.gz

-r-xr-xr-x 1 percy percy 5771 Dec 9 12:57 make_sd.sh

-rw-r--r-- 1 percy percy 110443332 Dec 9 14:53 rootfs-dev.ext2.img

-rw-r--r-- 1 percy percy 107400408 Dec 9 14:54 rootfs-LRFS.tar.gz

-rw-r--r-- 1 percy percy 3872536 Dec 9 14:51 rootfs-min.ext2.img

-rw-r--r-- 1 percy percy 200253398 Dec 9 14:55 rootfs-nfs.tar.gz

-rw-r--r-- 1 percy percy 42137827 Dec 9 14:51 rootfs-usr.ext2.img

-rwxr-xr-x 1 percy percy 524288 Dec 9 14:40 u-boot-sd.bin

-rw-r--r-- 1 percy percy 525312 Dec 9 14:39 u-boot-spi.bin

-rw-r--r-- 1 percy percy 3416506 Dec 9 14:51 uImage

Insert the MicroSD to a USB reader, and connect the USB reader to the host.

Check the device name for the USB reader. The following command shows that the device
name for USB reader is /dev/sdb.

[percy@localhost current]$ ls -al /dev/sd*

brw-r----- 1 root disk 8, 0 Dec 2 17:16 /dev/sda

brw-r----- 1 root disk 8, 1 Dec 2 17:17 /dev/sda1

brw-r----- 1 root disk 8, 2 Dec 2 17:16 /dev/sda2

brw-r----- 1 root disk 8, 16 Dec 2 18:43 /dev/sdb

[percy@localhost current]$ sudo fdisk -l /dev/sdb

Advertising