Start linux – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 78

Advertising
background image

Start Linux

COMX-P2020 BSP User Guide (6806800L84B)

78

[root@COMX-P2020 root]# umount /dev/sda2

[root@COMX-P2020 root]# umount /dev/sda3

[root@COMX-P2020 root]# umount /dev/sda4

[root@COMX-P2020 /root]#mkfs.ext2 /dev/sda1

[root@COMX-P2020 /root]#mkfs.vfat /dev/sda2

[root@COMX-P2020 /root]#mkfs.ext2 /dev/sda4

4. Mount the partitions and copy the desired files from tftp server to the partitions with the

following command:

[root@COMX-P2020 /root]#mkdir /mnt/usb1

[root@COMX-P2020 /root]#mkdir /mnt/usb2

[root@COMX-P2020 /root]#mkdir /mnt/usb4

[root@COMX-P2020 /root]#mount /dev/sda1 /mnt/usb1

[root@COMX-P2020 /root]#mount /dev/sda2 /mnt/usb2

[root@COMX-P2020 /root]#mount /dev/sda4 /mnt/usb4

5. Copy the release image to partition2 of USB.

[root@COMX-P2020 /root]#scp

<user>@<tftp_serverip>:/local/tftpboot/COMX-P2020/current/u-boot-*.bin

/mnt/usb2

[root@COMX-P2020 /root]#scp

<user>@<tftp_serverip>:/local/tftpboot/COMX-P2020/current/comx.dtb

/mnt/usb2

[root@COMX-P2020 /root]#scp

<user>@<tftp_serverip>:/local/tftpboot/COMX-P2020/current/uImage

/mnt/usb2

[root@COMX-P2020 /root]#scp

<user>@<tftp_serverip>:/local/tftpboot/COMX-P2020/current/rootfs-*.*

/mnt/usb2

[root@COMX-P2020 /root]# ls -al /mnt/usb2

total 613944

drwxr-xr-x 2 root root 4096 Sep 28 14:38 .

drwxr-xr-x 26 root root 4096 Sep 28 06:25 ..

-rwxr-xr-x 1 root root 9824 Sep 28 14:34 comx.dtb

-rwxr-xr-x 1 root root 3416476 Sep 28 14:34 uImage

-rwxr-xr-x 1 root root 195078114 Sep 28 14:37 rootfs-LRFS.tar.gz

-rwxr-xr-x 1 root root 198560701 Sep 28 14:36 rootfs-dev.ext2.img

-rwxr-xr-x 1 root root 3473422 Sep 28 14:37 rootfs-min.ext2.img

-rwxr-xr-x 1 root root 195107868 Sep 28 14:38 rootfs-nfs.tar.gz

-rwxr-xr-x 1 root root 31955486 Sep 28 14:38 rootfs-usr.ext2.img

-rwxr-xr-x 1 root root 524288 Sep 28 14:33 u-boot-sd.bin

-rwxr-xr-x 1 root root 525312 Sep 28 14:33 u-boot-spi.bin

[root@COMX-P2020 user]#

Advertising