4 build rootfs-lrfs.tar.gz, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual
Page 32

BSP Build Environment
COMX-P2020 BSP User Guide (6806800L84B)
32
+ cd /tmp/percy
+ echo -n 'Generating rootfs_dev.gz in /tmp/percy ... '
Generating rootfs_dev.gz in /tmp/percy ... + sudo genext2fs -U -b 392568
-i 16966 -D
/home/percy/p2020/linux/fs/scripts/../base/device_table_min.txt -d
rootfs_dev rootfs_ext2_dev
+ sudo gzip rootfs_ext2_dev
+ echo done.
done.
+ echo 'Generating rootfs_dev.img in /tmp/percy ... '
Generating rootfs_dev.img in /tmp/percy ...
+ sudo mkimage -n 'Blackadder ext2 ramdisk rootfs' -A ppc -O linux -T
ramdisk -C gzip -d rootfs_ext2_dev.gz rootfs_ext2_dev.img
Image Name: Blackadder ext2 ramdisk rootfs
Created: Mon Dec 13 11:45:47 2010
Image Type: PowerPC Linux RAMDisk Image (gzip compressed)
Data Size: 110295687 Bytes = 107710.63 kB = 105.19 MB
Load Address: 0x00000000
Entry Point: 0x00000000
+ echo done.
done.
cp /tmp/percy/rootfs_ext2_dev.img /local/tftpboot/COMX-
P2020/current/rootfs-dev.ext2.img
make[1]: Leaving directory `/home/percy/p2020/linux/fs'
[percy@localhost p2020]$
2. If successful, the rootfs-dev-ext2.img can be found at the output directory:
[percy@localhost p2020]$ ls -al /local/tftpboot/COMX-
P2020/current/rootfs-dev.ext2.img
-rw-r--r-- 1 percy percy 110295751 Dec 13 11:45
/local/tftpboot/COMX-P2020/current/rootfs-dev.ext2.img
[percy@localhost p2020]$
4.3.4
Build rootfs-LRFS.tar.gz
1. To build rootfs-LRFS.tar.gz, run the command: "make rootfs-dev-LRFS" at p2020 BSP
directory:
[percy@localhost p2020]$ make rootfs-dev-LRFS
make -C linux/fs -f Makefile rootfs-dev-LRFS
make[1]: Entering directory `/home/percy/p2020/linux/fs'
rm -f /tmp/percy/rootfs_ext2_dev_LRFS.tar.gz /local/tftpboot/COMX-
P2020/current/rootfs-LRFS.tar.gz