Monday, March 15, 2010

Root file system.

A good way to generate root file system is to use the "rootstock" command.
sudo rootstock --fqdn BoardName --login UserName --password PassWord --imagesize 2G --dist karmic --serial ttyS2 \
--seed xfce4,gdm,xubuntu-gdm-theme,xubuntu-artwork \
--kernel-image Path_To_Kernel_Image

Other seed package you can include:
wget,nano,linux-firmware,wireless-tools,usbutils

The output is a tar file with the root file system.
sudo tar xpfv rootfs.tar -C /media/root

Once extract, you need modify the following file.
fstab
/dev/mmcblk0p2 / ext3 errors=remount-ro 0 1
-------------

e2fsck.conf


[problems]

# Superblock last mount time is in the future (PR_0_FUTURE_SB_LAST_MOUNT).
0x000031 = {
preen_ok = true
preen_nomessage = true
}

# Superblock last write time is in the future (PR_0_FUTURE_SB_LAST_WRITE).
0x000032 = {
preen_ok = true
preen_nomessage = true
}
---------------

network/interfaces
auto eth0
iface eth0 inet dhcp


---------------
Once you boot up, you might need

sudo apt-get install nano python-wxgtk2.8





No comments:

Post a Comment