Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3178

booting Pogo V4 with Openwrt on NAND (2 replies)

$
0
0
I have replaced the uboot in the NAND with bodhi's by following http://forum.doozan.com/read.php?3,12381

I can boot debian on MMC.


However, now I would like to put openwrt on the nand and setup such that in case it cannot boot from USB, MMC, then it should go boot from the nand.

This is what I have done on the NAND so far:

/tmp/ubiformat /dev/mtd1

/tmp/ubiattach -p /dev/mtd1
/tmp/ubimkvol /dev/ubi0 -m -N rootfs

#mount ubi rootfs to /tmp/ubi
mkdir /tmp/ubi
mount -t ubifs ubi0:rootfs /tmp/ubi

#Chaos Calmer 15.05
cd /tmp
wget http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/openwrt-15.05-kirkwood-generic-rootfs.tar.gz
wget http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/openwrt-15.05-kirkwood-zImage
wget http://downloads.openwrt.org/chaos_calmer/15.05/kirkwood/generic/md5sums

#extract rootfs.tar.gz to ubi rootfs at /tmp/ubi
cd /tmp/ubi
tar xvzf /tmp/openwrt*rootfs.tar.gz

mkdir boot
mv /tmp/openwrt*kirkwood-zImage ./boot/zImage

cd boot
mkdir dts
cp /boot/dts/kirkwood-pogoplug_v4.dtb .

sync
cd /
umount /tmp/ubi

Now how should I modify the env to do this? I have flashed the default env from 2016.05 U-Boot at the moment.

Viewing all articles
Browse latest Browse all 3178

Trending Articles