Michael Richardson
2005-01-17 20:01:10 UTC
-----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 @ xelerance.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 ***@axis.com
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 @ xelerance.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 ***@axis.com