Document: Flashing Linux image and UBIFS filesystem Copyright (c) 2009, Voipac Technologies a.s. Using UBIFS for root partition on OneNAND flash memory involves to handle bad blocks and thus it is no easy to use u-boot bootloader to flash filesystem image. To make it as easy as possible a custom Linux kernel image with built in ramdisk was created. First download custom Linux kernel image and store it to TFTP root directory: bash$> wget http://voipac.com/downloads/pxa/270m/dimm/bin/linux/zImage-2.6.27-vpac2-mkubifs.bin bash$> mv zImage-2.6.27-vpac2-mkubifs.bin /tftpboot Build your own or download final Linux kernel image and put it to TFTP root also: bash$> wget http://voipac.com/downloads/pxa/270m/dimm/bin/linux/zImage-2.6.27-vpac2m.bin bash$> mv zImage-2.6.27-vpac2m.bin /tftpboot Prepare u-boot environment and start flash loader. Check out 'tftproot' in bootargs is correctly set. Check out root filesystem image to be flashed is at right place in TFTP root directory. u-boot> erase 1:2- u-boot> set bootargs console=ttyS0,38400 tftproot=192.168.1.3:/rootfs-opie3.tar.gz u-boot> tftp zImage-2.6.27-vpac2-mkubifs.bin u-boot> wtags u-boot> go After flashing was completed enter in u-boot enviroment to complete the process: u-boot> set bootargs root=ubi0:rootfs rootfstype=ubifs ubi.mtd=Filesystem console=ttyS0,38400 u-boot> set bootcmd one read a1000000 40000 160000\; wtags\; go a1000000 u-boot> save u-boot> tftp zImage-2.6.27-vpac2m.bin u-boot> erase 1:2-12 u-boot> cp.b a1000000 40000 $(filesize) u-boot> wtags u-boot> go