[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
updating jffs2 images
-----BEGIN PGP SIGNED MESSAGE-----
I am working on an embedded box that operates as a NAS.
Since it has removeable media, it would be nice to be able to update
the system by inserting some special media (along with some jumpers
being set, naturally).
The kernel and the u-boot is no problem. They have their own flash
partitions. The / jffs image is. I don't want to do this from u-boot.
I wonder if the following might "work".
a) cp scripts, erase, dd, "reboot" to /tmp
b) mount -o ro,remount /
c) erase /dev/mtdblock/4
d) dd if=newimage of=/dev/mtdblock/4
I don't see how we can pivotroot off of the flash, since /sbin/init
is loaded from it.
] Michael Richardson Xelerance Corporation, Ottawa, ON | firewalls [
] mcr @xxxxxxx.com Now doing IPsec training, see |net architect[
] http://www.sandelman.ca/mcr/ www.xelerance.com/training/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys
-----END PGP SIGNATURE-----
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to firstname.lastname@example.org