[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
  e) /tmp/reboot

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

iQCVAwUBQewZgYqHRg3pndX9AQGZswP+Ox0iRfX6oYm3KUnb91P+ndmU2v80UBw3
Ro1QYHGejGMHCx3mIGBEGMNKz8vhs4YRQx3Z23+X8Y4W4Dv3IkJs6zA3NR/Nyz4S
nPuS+OUs0wFeQLqJUmtUbuok2elxFRQjE09417zO3zhZrY8kkQWIXTB5+Qto/8KG
uBrKflsQ/C8=
=MSbu
-----END PGP SIGNATURE-----

To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to majordomo@xxxxxxx.com