Do you have a question? Post it now! No Registration Necessary
Subject
- Posted on
Updating linux kernel on a flash
- 05-20-2006
- Eric Levenez
May 20, 2006, 12:16 pm

I have an embedded Linux system on a Freescale PPC board. It is using a
flash with those zones:
- U-Boot (1.1.3)
- U-Boot parameters
- Linux kernel (2.6.11)
- GNU/Linux root filesystem (JFFS2)
In exploitation, I want to be able to update the software files (from an
Ethernet connection). There is not problem updating part of GNU/Linux
software (in the JFSS2 partition), but how can I update the Linux kernel
which is on the flash?
flash with those zones:
- U-Boot (1.1.3)
- U-Boot parameters
- Linux kernel (2.6.11)
- GNU/Linux root filesystem (JFFS2)
In exploitation, I want to be able to update the software files (from an
Ethernet connection). There is not problem updating part of GNU/Linux
software (in the JFSS2 partition), but how can I update the Linux kernel
which is on the flash?
--
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.

Re: Updating linux kernel on a flash

You should investigate looking for u-boot environment current settings.
Take a look at u-boot manual :
http://www.denx.de/wiki/view/DULG/UBoot
Ciao
--
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
We've slightly trimmed the long signature. Click to see the full one.

Re: Updating linux kernel on a flash

I know how to change U-boot setting and choose a particular Linux kernel
when I am in the U-Boot command line interface. But what I don't know is how
to write in flash a new kernel and how to update the U-Boot variables when I
am running in the GNU/Linux environment.
--
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.

Re: Updating linux kernel on a flash
installed a flash device driver (/dev/mtd) in Linux to access raw flash
memory. With that I should be able to put a second linux kernel in the
flash. That's fine.
The second step would be to read the U-boot setup, patch the address on the
new kernel, and rewrite the setup in flash.
--
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.
Éric Lévénez -- <http://www.levenez.com/
Unix is not only an OS, it's a way of life.
Site Timeline
- » Detecting dual monitors on startup
- — Next thread in » Embedded Linux
-
- » htpasswd / Synology
- — Previous thread in » Embedded Linux
-
- » Crosscompiling for ARM: reloc type R_ARM_ABS32 is not supported for PIC - ...
- — Newest thread in » Embedded Linux
-
- » Passive Car Battery Trickle Charger
- — The site's Newest Thread. Posted in » Electronics Design
-
- » dalla cina un rebus
- — The site's Last Updated Thread. Posted in » Electronics Hobby (Italian)
-