mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* New user: need a hand booting the kernel from NAND
@ 2012-04-19  6:42 George Pontis
  2012-04-19  7:13 ` Sascha Hauer
  2012-04-19  7:55 ` Jean-Christophe PLAGNIOL-VILLARD
  0 siblings, 2 replies; 3+ messages in thread
From: George Pontis @ 2012-04-19  6:42 UTC (permalink / raw)
  To: barebox


[-- Attachment #1.1: Type: text/plain, Size: 787 bytes --]

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


[-- Attachment #1.2: Type: text/html, Size: 2664 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: New user: need a hand booting the kernel from NAND
  2012-04-19  6:42 New user: need a hand booting the kernel from NAND George Pontis
@ 2012-04-19  7:13 ` Sascha Hauer
  2012-04-19  7:55 ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2012-04-19  7:13 UTC (permalink / raw)
  To: George Pontis; +Cc: barebox

On Wed, Apr 18, 2012 at 11:42:25PM -0700, George Pontis wrote:
> 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 ?

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

Sascha

-- 
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: New user: need a hand booting the kernel from NAND
  2012-04-19  6:42 New user: need a hand booting the kernel from NAND George Pontis
  2012-04-19  7:13 ` Sascha Hauer
@ 2012-04-19  7:55 ` Jean-Christophe PLAGNIOL-VILLARD
  1 sibling, 0 replies; 3+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-04-19  7:55 UTC (permalink / raw)
  To: George Pontis; +Cc: barebox

On 23:42 Wed 18 Apr     , George Pontis wrote:
>    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.
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-19  8:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-19  6:42 New user: need a hand booting the kernel from NAND George Pontis
2012-04-19  7:13 ` Sascha Hauer
2012-04-19  7:55 ` Jean-Christophe PLAGNIOL-VILLARD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox