Hi Ruben, Am 30.08.2010 um 11:05 schrieb Ruben Viets:
> Hi Nikolaus, > > I have modified minifs recovery to get it work in kernel 2.6. > Modifications: > - add /dev/ tty4,5,6,7 > - add mknod /dev/mmcblk0p1 b 179 1 > - change inittab recovery to start in tty1, and console on any key in tty3 > - change /wkw_sh/find_img.sh mount -t vfat /dev/sda1 and mount -t vfat > /dev/mmcblk0p1 > - removed /lib/modules > > Herewith the tar. > http://www.divshare.com/download/12411231-964 [3MB] Great! I will take a look into it. > For correct mounting /dev/mtdblock3 as jffs2 see below mod. Add it in > do_mounts.c > > if (strncmp(saved_root_name, "/dev/mtdblock3", 14) == 0) > fs_names_setup ("jffs2"); > else > ; I just had to add fs_names_setup ("jffs2"); to the F3-detection code in overwrite_root_name() and did not need to touch do_mounts (again). I hope this follows a little more the kernel development conventions or we never have a chance that our patches become part of upstream. But I did not test it yet. > Problem in my case is that my /dev/mtdblock3 is 1664 bytes, because > nandblocks are damaged. > The minifs busybox is already 2.7MB, this doesn't fit anymore. Oops. Shouldn't be that large. What I am not sure is if we should try to make the (old) minifs fit or just use the alternate approach to derive a stripped down Debian Lenny. In the minifs created by my 'mkminifs' script, the busybox is just 622 kbyte. But I have not yet worked much with it and did not even boot (just chroot). Your idea to install it to "F5" boot to work around the jffs2 and disk space issues is good! Finally, I would prefer to streamline and simplify the recovery system, and make it a little more functional and flexible. > For debug I have extracted the minifs.tar to /dev/mtdblock5 and startup with > F5 for recovery. > Better would be to reduce the busybox (by recompile a limited source) to 1MB > if this is possible. The one from the Debian Lenny packages is smaller - but you have to upgrade libraries etc. BR, Nikolaus _______________________________________________ Mipsbook-devel mailing list Mipsbook-devel@linuxtogo.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/mipsbook-devel