3 build root file system, 1 build rootfs-min-ext2.img, Bsp build environment – Artesyn COMX-P2020 BSP User Guide (July 2014) User Manual

Page 29

Advertising
background image

BSP Build Environment

COMX-P2020 BSP User Guide (6806800L84B)

29

4.3

Build Root File System

There are 5 types of root file systems that can be supported for COMX-P2020.

rootfs-min.ext2.img - The minimum root file system in ext2 format, which is helpful in
case of deployment on Flash devices which are of smaller sizes. The size of this file is around
4MB.

rootfs-usr.ext2.img - The Medium root file system in ext2 format, which is good enough
for deployment perspective and supports most of the use cases identified for Residential
Gateway, Wireless LAN Access Point, Media Server, NAS box, etc. The size of this file is
around 42MB.

rootfs-dev.ext2.img - Detailed root file system in ext2 format, which includes the support
for debugging, native compilation, profiling etc. The size of this file is around110MB.

rootfs-LRFS.tar.gz - Compressed file that can be used to make Inflated root file system
required for HD boot. As default the USB stick will contain inflated ext3FS on partition 1
and the SD card will contain inflated ext3FS on partition2. This can be used to do a hard
disk boot from the USB stick or SD card.

rootfs-nfs.tar.gz - Compressed root file system for NFS, which can be used for debug and
test at LAB.

4.3.1

Build rootfs-min-ext2.img

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

directory:

[percy@localhost p2020]$ make rootfs-min-ext2

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

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

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

P2020/current/rootfs-min.ext2.img

./scripts/gen_rootfs_ext2.sh min

……

+ cd /tmp/percy

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

Generating rootfs_min.gz in /tmp/percy ... + sudo genext2fs -U -b 14348

-i 1118 -D

/home/percy/p2020/linux/fs/scripts/../base/device_table_min.txt -d

rootfs_min rootfs_ext2_min

+ sudo gzip rootfs_ext2_min

Advertising