#!/bin/sh # Attach and forget about the DeviceTree.. ubiattach /dev/nand0.root mount /dev/ubi0.root oftree -f # mtdparts-nand doesn't trigger here.. mtdargs="mtdparts=omap2-nand.0:128k(nand0.xload),128k(nand0.xload_backup1),128k(nand0.xload_backup2),128k(nand0.xload_backup3),512k(nand0.barebox)ro,128k(nand0.bareboxenv),8M(nand0.backup_kernel)ro,-(nand0.root)" global.bootm.image="/mnt/ubi0.root/boot/uImage" #global.bootm.oftree="/env/oftree" global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rootfstype=ubifs ${mtdargs}"