On Thu, 2018-07-19 at 07:08 +0200, Oleksij Rempel wrote: > > Aside from this issue, are you aware of any method of > > flashing the barebox on NAND from Linux(after the kernel was loaded > > successfully on the target) ? > > barebox_update does not exist in Linux obviously and porting it is not > > so trivial, on top of that I don't think I am able to access the nand > > device from Linux, but only MTD partitions . > > I have tried nandwrite and kobs-ng commands but I was not successful. > > barebox_update is a wrapper to: take a image and write it to predefined > project or board specific location. > If you have access to this location from linux, you can do it from linux > as well.
Note that i.MX6, barebox_update also generates additional headers for the ROM loader (such as a small bad block table). A raw barebox image without these headers cannot be booted by the ROM from NAND. This is the reason why simple nandwrite doesn't work. Regards, Jan -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox