2 build rootfs-usr-ext2.img, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 30

Advertising
background image

BSP Build Environment

COMX-P2020 BSP User Guide (6806800L84B)

30

+ echo done.

done.

+ echo 'Generating rootfs_min.img in /tmp/percy ... '

Generating rootfs_min.img in /tmp/percy ...

+ sudo mkimage -n 'Blackadder ext2 ramdisk rootfs' -A ppc -O linux -T

ramdisk -C gzip -d rootfs_ext2_min.gz rootfs_ext2_min.img

Image Name: Blackadder ext2 ramdisk rootfs

Created: Mon Dec 13 11:39:01 2010

Image Type: PowerPC Linux RAMDisk Image (gzip compressed)

Data Size: 3873919 Bytes = 3783.12 kB = 3.69 MB

Load Address: 0x00000000

Entry Point: 0x00000000

+ echo done.

done.

cp /tmp/percy/rootfs_ext2_min.img /local/tftpboot/COMX-

P2020/current/rootfs-min.ext2.img

make[1]: Leaving directory `/home/percy/p2020/linux/fs'

[percy@localhost p2020]$

2. If successful, the rootfs-min-ext2.img can be found at the output directory:

[percy@localhost p2020]$ ls -al /local/tftpboot/COMX-

P2020/current/rootfs-min.ext2.img

-rw-r--r-- 1 percy percy 3873983 Dec 13 11:39

/local/tftpboot/COMX-P2020/current/rootfs-min.ext2.img

[percy@localhost p2020]$

4.3.2

Build rootfs-usr-ext2.img

1. To build rootfs-usr-ext2.img, run the command: "make rootfs-usr-ext2" at P2020 BSP

directory:

[percy@localhost P2020]$ make rootfs-usr-ext2

make -C linux/fs -f Makefile rootfs-usr-ext2

make[1]: Entering directory `/home/percy/p2020/linux/fs'

rm -f /tmp/percy/rootfs_ext2_usr.img /local/tftpboot/COMX-

P2020/current/rootfs-usr.ext2.img

./scripts/gen_rootfs_ext2.sh usr

……

+ cd /tmp/percy

+ echo -n 'Generating rootfs_usr.gz in /tmp/percy ... '

Advertising