All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] boot linux kernel from NAND
@ 2009-01-21  9:02 roundrobin
  2009-01-21 15:35 ` Matt Gessner
  0 siblings, 1 reply; 4+ messages in thread
From: roundrobin @ 2009-01-21  9:02 UTC (permalink / raw)
  To: u-boot


Hi

We have a custom board where we are using u-boot to
boot linux kernel from NOR flash. This is working alright.

However, we are planning to replace the NOR flash with
NAND flash. There will be no NOR flash on the board.
So I need to boot linux kernel from NAND.

My question is what works do I need to do so that u-boot
can boot linux from NAND? Do I need to implement something
like a NAND driver for u-boot, or do I just need to modify
some u-boot configurations?

By the way, I am talking about booting linux kernel, not u-boot
itself. u-boot itself will be loaded from NAND and kicked by using
a feature of the board which I am not clear at the moment.

Many thanks in advance for any info on this.

Best regards
Round Robin

-- 
View this message in context: http://www.nabble.com/boot-linux-kernel-from-NAND-tp21579236p21579236.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] boot linux kernel from NAND
  2009-01-21  9:02 [U-Boot] boot linux kernel from NAND roundrobin
@ 2009-01-21 15:35 ` Matt Gessner
  2009-01-22  2:23   ` roundrobin
  0 siblings, 1 reply; 4+ messages in thread
From: Matt Gessner @ 2009-01-21 15:35 UTC (permalink / raw)
  To: u-boot

On Wed, Jan 21, 2009 at 4:02 AM, roundrobin <iram.shahzad@jp.fujitsu.com>wrote:

>
> Hi
>
> We have a custom board where we are using u-boot to
> boot linux kernel from NOR flash. This is working alright.
>
> However, we are planning to replace the NOR flash with
> NAND flash. There will be no NOR flash on the board.
> So I need to boot linux kernel from NAND.


I use the command:

   nboot.i 20000000 primary

primary is in my mtdparts environment variable:

   mtdparts=nand:7m at 0m(primary),7m at 7m(secondary,2m at 14m(config)

mtdids is
   nand0=nand

partition is
   nand0,0


> My question is what works do I need to do so that u-boot
> can boot linux from NAND? Do I need to implement something
> like a NAND driver for u-boot, or do I just need to modify
> some u-boot configurations?



You're going to have to configure your nand flash in your board config
file.  I believe there are sufficient examples for you to read.


>
>
> By the way, I am talking about booting linux kernel, not u-boot
> itself. u-boot itself will be loaded from NAND and kicked by using
> a feature of the board which I am not clear at the moment.
>
> Many thanks in advance for any info on this.
>
> Best regards
> Round Robin
>
> --
> View this message in context:
> http://www.nabble.com/boot-linux-kernel-from-NAND-tp21579236p21579236.html
> Sent from the Uboot - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>

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

* [U-Boot] boot linux kernel from NAND
  2009-01-21 15:35 ` Matt Gessner
@ 2009-01-22  2:23   ` roundrobin
  2009-01-22  2:27     ` Aggrwal Poonam
  0 siblings, 1 reply; 4+ messages in thread
From: roundrobin @ 2009-01-22  2:23 UTC (permalink / raw)
  To: u-boot


Thanks a lot for the reply.

What I understand from the reply is I need to change my
bootcmd environment variable. Currently for loading kernel
from NOR, it uses bootm command; now I have to change
it to nboot command.
Also I understand that I do not need to write a NAND driver
for this purpose.

Please confirm if my understanding is correct.

By the way, what is the purpose of the code in nand_spl
directory?



Matt Gessner-2 wrote:
> 
>>
>> Hi
>>
>> We have a custom board where we are using u-boot to
>> boot linux kernel from NOR flash. This is working alright.
>>
>> However, we are planning to replace the NOR flash with
>> NAND flash. There will be no NOR flash on the board.
>> So I need to boot linux kernel from NAND.
> 
> 
> I use the command:
> 
>    nboot.i 20000000 primary
> 
> primary is in my mtdparts environment variable:
> 
>    mtdparts=nand:7m at 0m(primary),7m at 7m(secondary,2m at 14m(config)
> 
> mtdids is
>    nand0=nand
> 
> partition is
>    nand0,0
> 
> 
>> My question is what works do I need to do so that u-boot
>> can boot linux from NAND? Do I need to implement something
>> like a NAND driver for u-boot, or do I just need to modify
>> some u-boot configurations?
> 
> 
> 
> You're going to have to configure your nand flash in your board config
> file.  I believe there are sufficient examples for you to read.
> 
> 
>>
>>
>> By the way, I am talking about booting linux kernel, not u-boot
>> itself. u-boot itself will be loaded from NAND and kicked by using
>> a feature of the board which I am not clear at the moment.
>>
>> Many thanks in advance for any info on this.
>>
>> Best regards
>> Round Robin
>>
>> --
>> View this message in context:
>> http://www.nabble.com/boot-linux-kernel-from-NAND-tp21579236p21579236.html
>> Sent from the Uboot - Users mailing list archive at Nabble.com.
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot at lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
>>
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

-- 
View this message in context: http://www.nabble.com/boot-linux-kernel-from-NAND-tp21579236p21593758.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot] boot linux kernel from NAND
  2009-01-22  2:23   ` roundrobin
@ 2009-01-22  2:27     ` Aggrwal Poonam
  0 siblings, 0 replies; 4+ messages in thread
From: Aggrwal Poonam @ 2009-01-22  2:27 UTC (permalink / raw)
  To: u-boot

 

> -----Original Message-----
> From: u-boot-bounces at lists.denx.de 
> [mailto:u-boot-bounces at lists.denx.de] On Behalf Of roundrobin
> Sent: Thursday, January 22, 2009 7:54 AM
> To: u-boot at lists.denx.de
> Subject: Re: [U-Boot] boot linux kernel from NAND
> 
> 
> Thanks a lot for the reply.
> 
> What I understand from the reply is I need to change my 
> bootcmd environment variable. Currently for loading kernel 
> from NOR, it uses bootm command; now I have to change it to 
> nboot command.
> Also I understand that I do not need to write a NAND driver 
> for this purpose.
> 
> Please confirm if my understanding is correct.
> 
> By the way, what is the purpose of the code in nand_spl directory?
This is the code required when your u-boot is on NAND and you would like
to boot from NAND. 
This is the first 4K code which would be read by the SOC after reset
from the NAND device into an internal buffer.  
> 
> 
/lists.denx.de/mailman/listinfo/u-boot
> > 
> > 
> 
> --
> View this message in context: 
> http://www.nabble.com/boot-linux-kernel-from-NAND-tp21579236p2
> 1593758.html
> Sent from the Uboot - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 
> 

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

end of thread, other threads:[~2009-01-22  2:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-21  9:02 [U-Boot] boot linux kernel from NAND roundrobin
2009-01-21 15:35 ` Matt Gessner
2009-01-22  2:23   ` roundrobin
2009-01-22  2:27     ` Aggrwal Poonam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.