Recreating the GuruPlug RFS
Contents |
Rebuilding the RFS
The GuruPlug RFS is a Debian-ARM (lenny) based Root filesystem. The script for rebuilding the RFS is available here
Running this script on a network-enabled ARM device will rebuild the RFS. There are a few post-processing steps that need to be performed on the generated RFS. These steps are printed as part of the output of the above script.
Wireless/Bluetooth Support
Since Wireless 802.11 b/g and Bluetooth is supported in GuruPlug, the RFS contains Wireless and Bluetooth related packages as well.
By default, the RFS boots up within an AP mode with the SSID GuruPlug-4E2F (where 4E2F are the least significant two bytes of the MAC Address). The GuruPlug acts as a wireless router and treats the wired interface as the WAN interface.
UBI Images
The GuruPlug RFS is available in UBI format.
Building mtd-utils
The UBI utilities are not yet available in the latest stable mtd-utils release. You may build the latest mtd-utils as follows
- For Fedora hosts, install development packages: zlib-devel, lzo-devel, and e2fsprogs-devel
- For Debian hosts, install development packages: zlib1g-dev, liblzo2-dev and uuid-dev
# git clone git://git.infradead.org/mtd-utils.git mtd-utils # cd mtd-utils/ubi-utils # make # make install # cd .. # make # make install
This will install utilities mkfs.ubifs and ubinize on your host.
Creating the UBI image
Once this is install you may create the UBIFS image as:
# cat << EOF > ./ubi.cfg > [ubifs] > mode=ubi > image=rootfs.ubifs.img > vol_id=0 > vol_size=356MiB > vol_type=dynamic > vol_name=rootfs > vol_flags=autoresize > EOF # mkfs.ubifs -x zlib -m 2048 -e 129024 -c 4096 -r /path/to/rootfs/ rootfs.ubifs.img # ubinize -o rootfs.ubi.img -m 2048 -p 128KiB -s 512 ./ubi.cfg # rm -f rootfs.ubifs.img
This will give you rootfs.ubi.img which can be flashed on the GuruPlug.