Re: [2008.X] Flashing the kernel live

2008-09-28 Thread Tore Martin Hagen
Kelvie Wong wrote: [EMAIL PROTECTED] ~] $ flash_eraseall /dev/mtd3 Erasing 128 Kibyte @ 7e -- 98 % complete. [EMAIL PROTECTED] ~] $ cat uImage.bin /dev/mtd3 cat: write error: Invalid argument The problem is that the mtd driver will only accept writes with length equal a multiple of

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Tore Martin Hagen
Sarton O'Brien wrote: On Wednesday 24 September 2008 19:05:45 Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND Flash somewhere) something I can just mount and override a file? Or

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Kelvie Wong
On Wednesday, September 24, 2008 23:57:34 Tore Martin Hagen wrote: I don't have my phone right here, but you can do a cat /proc/mtd and it will list out which mtd partition that contains the kernel. Then you do flasheraseall /dev/mtdX cat yourUimage.bin /dev/mtdX And thats it

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Nicola Mfb
On Thu, Sep 25, 2008 at 3:38 AM, Sarton O'Brien [EMAIL PROTECTED]wrote: [...] opkg upgrade manages this so I'd say you could ... using a tool like mtd or such, I really don't how, just that it does :) Does opkg recognize if the system was booted from flash or from the sd card before update

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Richard V
On Thu, Sep 25, 2008 at 11:43 AM, Kelvie Wong [EMAIL PROTECTED] wrote: On Wednesday, September 24, 2008 18:38:25 Sarton O'Brien wrote: I read somewhere that there should be the ability in linux down the track to actually do a 'live update' without a reboot. That'd be interesting and useful

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Kelvie Wong
On Wednesday, September 24, 2008 23:57:34 Tore Martin Hagen wrote: Sarton O'Brien wrote: On Wednesday 24 September 2008 19:05:45 Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread roguemoko
Nicola Mfb wrote: On Thu, Sep 25, 2008 at 3:38 AM, Sarton O'Brien [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: [...] opkg upgrade manages this so I'd say you could ... using a tool like mtd or such, I really don't how, just that it does :) Does opkg recognize if the

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread roguemoko
Kelvie Wong wrote: On Wednesday, September 24, 2008 23:57:34 Tore Martin Hagen wrote: Sarton O'Brien wrote: On Wednesday 24 September 2008 19:05:45 Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Jose Luis Perez Diez
El Thursday, 25 de September de 2008 12:10:10 [EMAIL PROTECTED] va escriure: Does opkg recognize if the system was booted from flash or from the sd card before update the kernel? Not to my knowledge, I make sure to rm /etc/default/flashkernel before an opkg upgrade. It's autocreated after

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Nicola Mfb
On Thu, Sep 25, 2008 at 2:24 PM, Jose Luis Perez Diez [EMAIL PROTECTED] wrote: El Thursday, 25 de September de 2008 12:10:10 [EMAIL PROTECTED] va escriure: Does opkg recognize if the system was booted from flash or from the sd card before update the kernel? Not to my knowledge, I

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread roguemoko
Nicola Mfb wrote: On Thu, Sep 25, 2008 at 2:24 PM, Jose Luis Perez Diez [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: El Thursday, 25 de September de 2008 12:10:10 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] va escriure: Does opkg recognize if the system was booted

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Al Johnson
On Thursday 25 September 2008, Nicola Mfb wrote: On Thu, Sep 25, 2008 at 2:24 PM, Jose Luis Perez Diez [EMAIL PROTECTED] wrote: El Thursday, 25 de September de 2008 12:10:10 [EMAIL PROTECTED] va escriure: Does opkg recognize if the system was booted from flash or from the sd card

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Dale Maggee
Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND Flash somewhere) something I can just mount and override a file? Or do I have to use dd? Or is there some trickery I can do

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Kelvie Wong
On Thursday, September 25, 2008 03:20:15 [EMAIL PROTECTED] wrote: I've not tried cat before but have used mtd-utils. Sorry, that's what I meant before. It's available at least in the testing repo but I've not tested on the freerunner. There seems to minor limitations on what some of the system

Re: [2008.X] Flashing the kernel live

2008-09-25 Thread Sarton O'Brien
On Friday 26 September 2008 10:17:45 Kelvie Wong wrote: On Thursday, September 25, 2008 03:20:15 [EMAIL PROTECTED] wrote: I've not tried cat before but have used mtd-utils. Sorry, that's what I meant before. It's available at least in the testing repo but I've not tested on the freerunner.

[2008.X] Flashing the kernel live

2008-09-24 Thread Kelvie Wong
I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND Flash somewhere) something I can just mount and override a file? Or do I have to use dd? Or is there some trickery I can do with dfu-util? -- Kelvie

Re: [2008.X] Flashing the kernel live

2008-09-24 Thread Sarton O'Brien
On Wednesday 24 September 2008 19:05:45 Kelvie Wong wrote: I was just wondering, is there a way to flash the kernel live (i.e. with the software still running)? Is the boot partition (it's on the NAND Flash somewhere) something I can just mount and override a file? Or do I have to use dd?

Re: [2008.X] Flashing the kernel live

2008-09-24 Thread Kelvie Wong
On Wednesday, September 24, 2008 18:38:25 Sarton O'Brien wrote: I read somewhere that there should be the ability in linux down the track to actually do a 'live update' without a reboot. That'd be interesting and useful on a slow booting device :) I believe what you are referring to is kexec