Skip to contentSkip to conversation

New user: need a hand booting the kernel from NAND

DISCUSSION George Pontis 3 participants 3 messages Apr 19, 2012

lore
Share & tools
lore
#0 lore raw

Machine is a custom at91sam9g45 board with NOR and NAND flash. The bootstrap loader and barebox, and barebox environment are in the NOR flash. All seems to be working well there. The NAND is partitioned into 2 chunks:
2560K(kernel),-(root)

I used ubimkvol to create a volume on root and the nfs command to put a root filesystem on it. Seems to work fine if I get the kernel via NFS.

I have a good working kernel in uImage format, and used "nfs /var/share/uImage /dev/nand0.kernel.bb" in an attempt to write it to the 2560K partition. The nfs copy seemed to work fine. However, it will not accept the image. I get messages about an unknown format, suggesting to try -f. Was it the wrong procedure that I used to copy the uImage ?

Thanks for any help or pointers.

George

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

#1 lore raw
Quoted 12 lines · George Pontis

Machine is a custom at91sam9g45 board with NOR and NAND flash. The bootstrap loader and barebox, and barebox environment are in the NOR flash. All seems to be working well there. The NAND is partitioned into 2 chunks:
2560K(kernel),-(root)

I used ubimkvol to create a volume on root and the nfs command to put a root filesystem on it. Seems to work fine if I get the kernel via NFS.

Quoted 5 lines

I have a good working kernel in uImage format, and used "nfs /var/share/uImage /dev/nand0.kernel.bb" in an attempt to write it to the 2560K partition. The nfs copy seemed to work fine. However, it will not accept the image. I get messages about an unknown format, suggesting to try -f. Was it the wrong procedure that I used to copy the uImage ?

Have you erased you nand before (erase /dev/nand0.kernel.bb)?

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
In reply to George Pontis
Quoted 20 lines · George Pontis

Machine is a custom at91sam9g45 board with NOR and NAND flash. The bootstrap loader and barebox, and barebox environment are in the NOR flash. All seems to be working well there. The NAND is partitioned into 2
chunks: 2560K(kernel),-(root)

I used ubimkvol to create a volume on root and the nfs command to put a root filesystem on it. Seems to work fine if I get the kernel via NFS.

I have a good working kernel in uImage format, and used "nfs
/var/share/uImage /dev/nand0.kernel.bb" in an attempt to write it to the
2560K partition. The nfs copy seemed to work fine. However, it will not accept the image. I get messages about an unknown format, suggesting to try -f. Was it the wrong procedure that I used to copy the uImage ?

Quoted 1 line

Thanks for any help or pointers.

I recommand you to use upate command to bo so

update -t kernel -d nand -m nfs -f /var/share/uImage

I recommand you also to drop the uImage support and boot the zImage directly

you will boot more fast

and I also recommand you to boot from nor if you can

so you don't need the bootstrap

Best Regards,
J.

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