Quote:
|
Originally Posted by zoppa
But, if I try to boot from FLASH, then miniroot is looping. Booting from USB is fine.
|
A couple of minutes thinking (why didn't I do that earlier?

) and I believe I know the reason. Did you just install the new version on top of the old one? Without removing the old one first? In that case I think I know what's happening. The installation scripts are inadequate and should either stop the installation if it's already installed, or change behaviour if it sees that it's already installed.
I feel really bad about this, but I think I may have damaged your system, zoppa. I know that "sorry" isn't adequate, but I just can't undo the error.
Explanation: The install script does a "mv /sbin/init /sbin/originit" and a "mv /bin/busybox /bin/origbusybox". The un-install script will reverse this. Doing the installation twice will overwrite the real original with the previous copy. But if you can start from USB, there is a chance of recovery without having to flash. Boot from USB, mount the flash somewhere ("mount -t jffs2 /dev/mtdblock/3 /mnt/somewhere"). Now confirm that this is the problem by listing some files:
ls -l /mnt/somewhere/bin/*busybox /mnt/somewhere/sbin/*init
You should see the original and the new. If they are the same, the actual original has been overwritten. /mnt/somewhere/sbin/init should be a link to ../linuxrc, while /mnt/somewhere/sbin/originit should be a binary.
/mnt/somewhere/bin/busybox is not critical, the version I distribute only has some additions to the one from OE. /mnt/somewhere/sbin/originit is a different matter.
If my theory is right, you should be able to delete /mnt/somewhere/sbin/originit and replace it with /sbin/init. There has been no changes to init in OE for a long time, so the one from USB should be equivalent to the one you used to have in flash.
The same procedure for busybox, if you care. As I said, the one I distribute should be just functional additions to the standard OE one.
Give me a few hours, and I will update and test new install/remove scripts. If anybody has downloaded previous versions, make sure you do an uninstall before doing a new install.