barebox tftp to 2k pagesize NAND
Hi,
while running barebox on a i.MX25 which has 2k pagesize nand, I noticed it's not possible to do a tftp directly to NAND (tftp barebox.bin /dev/nand0.barebox for example).
tftp try to write 512bytes packets to the NAND thus we get :
offset 0x00000200 not page aligned
when it tries to write the second packet.
The workaround is :
tftp to ram
cp ram => nand
Do you have any idea on how tof ix this problem ?
Thanks,
Eric
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 10 lines · Eric Bénard
Hi,
while running barebox on a i.MX25 which has 2k pagesize nand, I noticed it's not possible to do a tftp directly to NAND (tftp barebox.bin
/dev/nand0.bareboxfor example).tftp try to write 512bytes packets to the NAND thus we get :
offset0x00000200not page aligned
when it tries to write the second packet.
Quoted 5 lines
The workaround is :
tftp to ram
cp ram => nandDo you have any idea on how tof ix this problem ?
Use /dev/nand0.barebox.bb instead. You are not supposed to use the non bad block aware devices directly.
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
Quoted 3 lines · Sascha Hauer
Use
/dev/nand0.barebox.bbinstead. You are not supposed to use the non bad block aware devices directly.
OK, this works fine by using .bb device
Many thanks,
Eric
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
On Tue, May 25, 2010 at 2:14 PM, Eric Bénard <[email protected]> wrote:
[...]
Quoted 3 lines
while running barebox on a i.MX25 which has 2k pagesize nand, I noticed it's not possible to do a tftp directly to NAND (tftp barebox.bin
/dev/nand0.bareboxfor example).
[...]
Eric,
Are you able to boot from 2k pagesize NAND ?
I only have 512byte pagesize NAND, but shouldn't
nand_imx.c:imx_nand_load_image(..) have something like:
#ifdef CONFIG_ARCH_IMX25
if (readl(IMX_CCM_BASE + CCM_RCSR) & (1 << 8))
host.pagesize_2k = 1;
else
host.pagesize_2k = 0;#endif
(For mainline inclusion, I'd propose to rework that part, to group i.MX25 with i.MX35, and i.MX21 with i.MX27)
Best regards,
Ivo.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Hi Ivo,
Quoted 11 lines · Ivo Clarysse
On Tue, May 25, 2010 at 2:14 PM, Eric Bénard<[email protected]> wrote:
[...]Quoted 3 lines
while running barebox on a i.MX25 which has 2k pagesize nand, I noticed it's not possible to do a tftp directly to NAND (tftp barebox.bin
/dev/nand0.bareboxfor example).[...]
Eric,
Are you able to boot from 2k pagesize NAND ?
yes but I'm using internal boot mode.
Quoted 11 lines
I only have 512byte pagesize NAND, but shouldn't
nand_imx.c:imx_nand_load_image(..) have something like:#ifdef CONFIG_ARCH_IMX25 if (readl(IMX_CCM_BASE + CCM_RCSR)& (1<< 8)) host.pagesize_2k = 1; else host.pagesize_2k = 0;#endif
yes something like this should be necessary for direct NAND boot.
Eric
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox