All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] omap4460 nand booting ?
@ 2014-01-09 17:58 Abraham Varricatt
  2014-01-10 22:15 ` Gupta, Pekon
  0 siblings, 1 reply; 4+ messages in thread
From: Abraham Varricatt @ 2014-01-09 17:58 UTC (permalink / raw)
  To: u-boot

Hello,

Thanks to the help I obtained on this mailing list, I've been able to
customize u-boot (2013.10 release) to work on a custom omap4460 board.
Schematically, it's similar to the pandaboard, but uses the twl6032
pmic and has a NAND memory from micron present.

I've been able to boot this board from USB and from an external mmc
card. In both cases, I've been able to access the nand memory (i.e.
reading/writing). My team tried writing an image of the linux kernel
to the nand from mmc, rebooted the board, copied the image from nand
to ddr and booted off it. At the very least, we feel that this shows
that the memory is working properly.

The problem I'm facing is that I can't seem to boot directly from the
nand memory chip. We've set the boot configuration pins to start with
NAND boot, but it doesn't seem to work. On probing the CS and
nand-busy lines we can see some activity happening, but don't
understand what it means.

The way I expect the board to work, is that the ROM code should detect
the external nand present, query for ONFI data, configure the
bus/interface accordingly, copy SPL part of bootloader from first
sector to internal sram and boot off that.

I *think* that the omap4460 is sending the ONFI request, but after
that, something malfunctions, nand is deemed unusable and the next
device in boot sequence is queried. In my case its the uart and I can
see some garbage characters coming out on the console.

Any suggestions on how I could debug this?

-Abraham V.

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

* [U-Boot] omap4460 nand booting ?
  2014-01-09 17:58 [U-Boot] omap4460 nand booting ? Abraham Varricatt
@ 2014-01-10 22:15 ` Gupta, Pekon
  2014-01-11  1:35   ` Abraham Varricatt
  0 siblings, 1 reply; 4+ messages in thread
From: Gupta, Pekon @ 2014-01-10 22:15 UTC (permalink / raw)
  To: u-boot

From: abraham.varricatt@vvdntech.com 
>Hello,
>
>Thanks to the help I obtained on this mailing list, I've been able to
>customize u-boot (2013.10 release) to work on a custom omap4460 board.
>Schematically, it's similar to the pandaboard, but uses the twl6032
>pmic and has a NAND memory from micron present.
>
>I've been able to boot this board from USB and from an external mmc
>card. In both cases, I've been able to access the nand memory (i.e.
>reading/writing). My team tried writing an image of the linux kernel
>to the nand from mmc, rebooted the board, copied the image from nand
>to ddr and booted off it. At the very least, we feel that this shows
>that the memory is working properly.
>
>The problem I'm facing is that I can't seem to boot directly from the
>nand memory chip. We've set the boot configuration pins to start with
>NAND boot, but it doesn't seem to work. On probing the CS and
>nand-busy lines we can see some activity happening, but don't
>understand what it means.
>
>The way I expect the board to work, is that the ROM code should detect
>the external nand present, query for ONFI data, configure the
>bus/interface accordingly, copy SPL part of bootloader from first
>sector to internal sram and boot off that.
>
>I *think* that the omap4460 is sending the ONFI request, but after
>that, something malfunctions, nand is deemed unusable and the next
>device in boot sequence is queried. In my case its the uart and I can
>see some garbage characters coming out on the console.
>
>Any suggestions on how I could debug this?
>
If this NAND has bus-width = 16, then you need to tweak the
board file with following changes.
Below code is for AM335x platforms, you need similar for omap4 platforms
------------------------------
--- arch/arm/cpu/armv7/am33xx/mem.c
+++ arch/arm/cpu/armv7/am33xx/mem.c
@@ -64,7 +64,7 @@
 	u32 base = CONFIG_SYS_FLASH_BASE;
 #elif defined(CONFIG_NAND)
 /* configure GPMC for NAND */
-	const u32  gpmc_regs[GPMC_MAX_REG] = {	M_NAND_GPMC_CONFIG1,
+	const u32  gpmc_regs[GPMC_MAX_REG] = {	M_NAND_GPMC_CONFIG1 | 0x1000,
 						M_NAND_GPMC_CONFIG2,
 						M_NAND_GPMC_CONFIG3,
 						M_NAND_GPMC_CONFIG4,
------------------------------

with regards, pekon

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

* [U-Boot] omap4460 nand booting ?
  2014-01-10 22:15 ` Gupta, Pekon
@ 2014-01-11  1:35   ` Abraham Varricatt
  2014-01-11  4:59     ` Michael Trimarchi
  0 siblings, 1 reply; 4+ messages in thread
From: Abraham Varricatt @ 2014-01-11  1:35 UTC (permalink / raw)
  To: u-boot

On Sat, Jan 11, 2014 at 3:45 AM, Gupta, Pekon <pekon@ti.com> wrote:
>
> >From: abraham.varricatt at vvdntech.com
> >Hello,
> >
> >Thanks to the help I obtained on this mailing list, I've been able to
> >customize u-boot (2013.10 release) to work on a custom omap4460 board.
> >Schematically, it's similar to the pandaboard, but uses the twl6032
> >pmic and has a NAND memory from micron present.
> >
> >
> >The problem I'm facing is that I can't seem to boot directly from the
> >nand memory chip. We've set the boot configuration pins to start with
> >NAND boot, but it doesn't seem to work. On probing the CS and
> >nand-busy lines we can see some activity happening, but don't
> >understand what it means.
> >
> >
> >Any suggestions on how I could debug this?
> >
> If this NAND has bus-width = 16, then you need to tweak the
> board file with following changes.
> Below code is for AM335x platforms, you need similar for omap4 platforms

No, the NAND memory I'm using has a bus-width of 8.

-Abraham V.

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

* [U-Boot] omap4460 nand booting ?
  2014-01-11  1:35   ` Abraham Varricatt
@ 2014-01-11  4:59     ` Michael Trimarchi
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Trimarchi @ 2014-01-11  4:59 UTC (permalink / raw)
  To: u-boot

Hi

On Sat, Jan 11, 2014 at 2:35 AM, Abraham Varricatt
<abraham.varricatt@googlemail.com> wrote:
> On Sat, Jan 11, 2014 at 3:45 AM, Gupta, Pekon <pekon@ti.com> wrote:
>>
>> >From: abraham.varricatt at vvdntech.com
>> >Hello,
>> >
>> >Thanks to the help I obtained on this mailing list, I've been able to
>> >customize u-boot (2013.10 release) to work on a custom omap4460 board.
>> >Schematically, it's similar to the pandaboard, but uses the twl6032
>> >pmic and has a NAND memory from micron present.
>> >
>> >
>> >The problem I'm facing is that I can't seem to boot directly from the
>> >nand memory chip. We've set the boot configuration pins to start with
>> >NAND boot, but it doesn't seem to work. On probing the CS and
>> >nand-busy lines we can see some activity happening, but don't
>> >understand what it means.
>> >
>> >
>> >Any suggestions on how I could debug this?
>> >
>> If this NAND has bus-width = 16, then you need to tweak the
>> board file with following changes.
>> Below code is for AM335x platforms, you need similar for omap4 platforms
>
> No, the NAND memory I'm using has a bus-width of 8.
>

How do you write on the nand the fist stage boot? Should
be ecc check of the bootrom

Michael


> -Abraham V.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
| Michael Nazzareno Trimarchi                     Amarula Solutions BV |
| COO  -  Founder                                      Cruquiuskade 47 |
| +31(0)851119172                                 Amsterdam 1018 AM NL |
|                  [`as] http://www.amarulasolutions.com               |

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

end of thread, other threads:[~2014-01-11  4:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-09 17:58 [U-Boot] omap4460 nand booting ? Abraham Varricatt
2014-01-10 22:15 ` Gupta, Pekon
2014-01-11  1:35   ` Abraham Varricatt
2014-01-11  4:59     ` Michael Trimarchi

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.