Google

Dual boot N810Wimax BootFromMMC

November 20th, 2008
We tried dual booting my N810Wimax but the default initfs kept crashing with the error:
wimax init
Also, you couldn’t use the direction pad to select any options in the menu. Thankfully my friend Brian was able to fix the problem. linuxrc needed a few hacks and the applications fb_update_mode and evkey needed to be added to /usr/bin

Bootmenu needed to be patched to correctly set the memory card location. The mmc cards change numbers during boot, which can be confusing.

Here are the patched files:
initfs
bootmenu
linuxrc

mounting jffs2 on RHEL5

November 18th, 2008
I needed to edit the initfs filesystem on my n810 wimax. Mounting the jffs2 image was only documented for older systems…here’s how I did it on my RHEL5 system.
modprobe loop
losetup /dev/loop0 initfs.jffs2
modprobe mtdblock
modprobe block2mtd
echo "/dev/loop0,128KiB" > /sys/module/block2mtd/parameters/block2mtd
modprobe jffs2
That gets everything ready to mount the filesystem.
mount -t jffs2 /dev/mtdblock0 /mnt
If you don’t have the mtdblock0 device file, you can make it (looking on the n810 I see that it’s a block device major 31 minor 0
mknod /dev/mtdblock0 b 31 0
You can’t edit the filesystem, so copy it off somewhere and make a new jffs2
cd -pr /mnt /tmp/foo
<< edit things in /tmp/foo >>
cd /tmp
mkfs.jffs2 -r foo -o initfs.me.jffs2 -e 128 -l -n