Flashing kernel from Linux

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Wed May 2 06:42:49 EDT 2012

On Wed, May 02, 2012 at 12:29:33PM +0200, Patrick Gerber wrote:
> 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

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

More information about the barebox mailing list