9
0
Fork 0

pcm051: Load a oftree if it exists

For forward compability with later kernels and device tree check
if there is a dtb inside the rootfs and use it.
This commit is contained in:
Holger Hans Peter Freyther 2014-07-11 17:06:40 +02:00
parent 492a4be72d
commit b6676d7db0
1 changed files with 3 additions and 1 deletions

View File

@ -9,5 +9,7 @@ oftree -f
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"
if [ -e /mnt/ubi0.root/boot/kernel.dtb ]; then
global.bootm.oftree="/mnt/ubi0.root/boot/kernel.dtb"
fi
global.linux.bootargs.dyn.root="root=ubi0:root ubi.mtd=nand0.root,2048 rootfstype=ubifs ${mtdargs}"