Skip to contentSkip to conversation

Flashing kernel from Linux

DISCUSSION Patrick Gerber 2 participants 2 messages May 2, 2012

lore
Share & tools
lore
#0 lore raw

Dear mailing list

I used to flash the linux kernel using barebox update command.
Now I would like to do the same from the Linux side. A simple dd to /dev/mtdblockX used to work with uboot but doesn't work with barebox. Barebox complain at startup about bad image... Do you have any hint about how to flash the kernel from the Linux side ?

Thanks in advance

Patrick

Signature · 14 lines
____________________________________
Patrick Gerber
[email protected]

Sensometrix SA
rue Albert-Richard 2
1201 Genève
+41 (0) 22 510 22 01


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw
Quoted 7 lines · Patrick Gerber

Dear mailing list

I used to flash the linux kernel using barebox update command. Now I would like to do the same from the Linux side. A simple dd to /dev/mtdblockX used to work with uboot but doesn't work with barebox. Barebox complain at startup about bad image...
Do you have any hint about how to flash the kernel from the Linux side ?

You first need to erase the flash (using flash_erase from the mtd-utils) and then you might need to use nandwrite to actually write the image.

IIRC Busybox contains these utilities, too.

Best regards
Uwe

Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox