5 build rootfs-nfs.tar.gz, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual
Page 33

BSP Build Environment
COMX-P2020 BSP User Guide (6806800L84B)
33
./scripts/gen_rootfs_LRFS.sh dev
+ USAGE='Usage: ./scripts/gen_rootfs_LRFS.sh
+ '[' 1 -ne 1 ']'
……
+ echo done.
done.
cp /tmp/percy/rootfs_ext2_dev_LRFS.tar.gz /local/tftpboot/COMX-
P2020/current/rootfs-LRFS.tar.gz
make[1]: Leaving directory `/home/percy/p2020/linux/fs'
[percy@localhost p2020]$
2. If successfull, the rootfs-LRFS.tar.gz can be found at the output directory:
[percy@localhost p2020]$ ls -al /local/tftpboot/COMX-
P2020/current/rootfs-LRFS.tar.gz
-rw-r--r-- 1 percy percy 107445442 Dec 13 11:48
/local/tftpboot/COMX-P2020/current/rootfs-LRFS.tar.gz
4.3.5
Build rootfs-nfs.tar.gz
1. To build rootfs-nfs.tar.gz, run the command: "make rootfs-nfs" at P2020 BSP directory:
[percy@localhost p2020]$ make rootfs-nfs
make -C linux/fs -f Makefile rootfs-dev-nfs
make[1]: Entering directory `/home/percy/p2020/linux/fs'
rm -f /tmp/percy/rootfs_nfs.tar.gz /local/tftpboot/COMX-
P2020/current/rootfs-nfs.tar.gz
./scripts/gen_rootfs_nfs.sh dev
……
+ sudo cp -a
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/../all/etc
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/../all/lib
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/../all/sbin
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/../all/usr
rootfs_dev/
+ rm -rf /home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/../all
+ sudo cp -a /home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/etc
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/usr rootfs_dev/
+ '[' -V100R00 '!=' '' ']'
+ rm -rf
/home/percy/p2020/linux/fs/scripts/../apps/dev/nfs/etc/.version
+ echo -n 'Generating rootfs_dev.tar.gz in /tmp/percy ... '
Generating rootfs_dev.tar.gz in /tmp/percy ... + sudo mv rootfs_dev
rootfs_nfs
+ sudo tar zcvf rootfs_nfs.tar.gz rootfs_nfs