DSPRelated.com
Forums

problem booting from FLASH NAND in a new EVM6446 board

Started by Sara Grassi September 24, 2009
Hello, we just bought an EVM6446 rev. F.

We can boot it from FLASH NOR and run the demos standalone or from
command line. However, we cannot manage to boot it from FLASH NAND. I am
using the following configuration: S3 switch set to 00001 11111 (1=ON,
0=OFF) and J4 jumper selecting NAND. When I turn on the board, it only
write endlessly in the terminal: "BOOTME BOOTME BOOTME BOOTME ...".

Is it possible that the FLASH NAND came non-initialized out of the box?
If it is the case, can somebody suggest me how to initialize it? ( I do
not have at the moment a working jtag emulator.)

On the other hand, when I boot from NOR FLASH (S3 set to 10101 11111 and
J4 selecting FLASH) it works fine (I copy the first lines from my
terminal at the end of the message).

Thanks a lot for your help,
Sara
------
U-Boot 1.1.3 (Dec 4 2006 - 12:05:38)
U-Boot code: 81080000 -> 81097628 BSS: -> 810A0018
RAM Configuration:
Bank #0: 80000000 256 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
ARM Clock :- 297MHz
DDR Clock :- 162MHz
Hit any key to stop autoboot: 0
## Booting image at 02050000 ...
Image Name: Linux-2.6.10_mvl401-davinci_evm
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1333196 Bytes = 1.3 MB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
OK
Starting kernel ...
-----

_____________________________________
Hello Sara,

On Thu, Sep 24, 2009 at 9:12 AM, Sara Grassi wrote:
>
> Hello, we just bought an EVM6446 rev. F.
>
> We can boot it from FLASH NOR and run the demos standalone or from
> command line. However, we cannot manage to boot it from FLASH NAND. I am
> using the following configuration: S3 switch set to 00001 11111 (1=ON,
> 0=OFF) and J4 jumper selecting NAND. When I turn on the board, it only
> write endlessly in the terminal: "BOOTME BOOTME BOOTME BOOTME ...".

I have not used the 6446 EVM, but I believe that message indicates
that the boot loader is searching for a valid boot data pattern. You
will probably have to flash it - I would have expected the info "what
is factory flashed" to be in the tech ref manual for the EVM

Have you looked at TI's wiki article
http://tiexpressdsp.com/index.php?title=Serial_Boot_and_Flash_Loading_Utility

mikedunn

>
> Is it possible that the FLASH NAND came non-initialized out of the box?
> If it is the case, can somebody suggest me how to initialize it? ( I do
> not have at the moment a working jtag emulator.)
>
> On the other hand, when I boot from NOR FLASH (S3 set to 10101 11111 and
> J4 selecting FLASH) it works fine (I copy the first lines from my
> terminal at the end of the message).
>
> Thanks a lot for your help,
> Sara
> ------
> U-Boot 1.1.3 (Dec 4 2006 - 12:05:38)
> U-Boot code: 81080000 -> 81097628 BSS: -> 810A0018
> RAM Configuration:
> Bank #0: 80000000 256 MB
> Flash: 16 MB
> In: serial
> Out: serial
> Err: serial
> ARM Clock :- 297MHz
> DDR Clock :- 162MHz
> Hit any key to stop autoboot: 0
> ## Booting image at 02050000 ...
> Image Name: Linux-2.6.10_mvl401-davinci_evm
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 1333196 Bytes = 1.3 MB
> Load Address: 80008000
> Entry Point: 80008000
> Verifying Checksum ... OK
> OK
> Starting kernel ...
> -----
--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________
Sara-

> Hello, we just bought an EVM6446 rev. F.
>
> We can boot it from FLASH NOR and run the demos standalone or from
> command line. However, we cannot manage to boot it from FLASH NAND. I am
> using the following configuration: S3 switch set to 00001 11111 (1=ON,
> 0=OFF) and J4 jumper selecting NAND. When I turn on the board, it only
> write endlessly in the terminal: "BOOTME BOOTME BOOTME BOOTME ...".
>
> Is it possible that the FLASH NAND came non-initialized out of the box?
> If it is the case, can somebody suggest me how to initialize it? ( I do
> not have at the moment a working jtag emulator.)
>
> On the other hand, when I boot from NOR FLASH (S3 set to 10101 11111 and
> J4 selecting FLASH) it works fine (I copy the first lines from my
> terminal at the end of the message).

I would tend to agree the NAND Flash is not initialized and you may need to Flash it. The TI page for DM6446
(http://focus.ti.com/docs/prod/folders/print/tms320dm6446.html) indicates that NAND Flash is supported by the ARM core
onchip bootloader.

-Jeff

> ------
> U-Boot 1.1.3 (Dec 4 2006 - 12:05:38)
> U-Boot code: 81080000 -> 81097628 BSS: -> 810A0018
> RAM Configuration:
> Bank #0: 80000000 256 MB
> Flash: 16 MB
> In: serial
> Out: serial
> Err: serial
> ARM Clock :- 297MHz
> DDR Clock :- 162MHz
> Hit any key to stop autoboot: 0
> ## Booting image at 02050000 ...
> Image Name: Linux-2.6.10_mvl401-davinci_evm
> Image Type: ARM Linux Kernel Image (uncompressed)
> Data Size: 1333196 Bytes = 1.3 MB
> Load Address: 80008000
> Entry Point: 80008000
> Verifying Checksum ... OK
> OK
> Starting kernel ...
> -----

_____________________________________
Hello, thanks to the people in this group (and also in TI E2E) that
helped me to solve this problem.
I could Flash the most recent UBL/u-boot and linux kernel into the FLASH
NAND via the serial port.

I also tried to summarize the procedure and location of the tools
/instructions, hoping it can be useful to others:
http://e2e.ti.com/forums/p/10466/46106.aspx#46106

Best regards, Sara.

mike.dunn.001 wrote:
> Hello Sara,
>
> On Thu, Sep 24, 2009 at 9:12 AM, Sara Grassi wrote:
>
>>
>> Hello, we just bought an EVM6446 rev. F.
>>
>> We can boot it from FLASH NOR and run the demos standalone or from
>> command line. However, we cannot manage to boot it from FLASH NAND. I am
>> using the following configuration: S3 switch set to 00001 11111 (1=ON,
>> 0=OFF) and J4 jumper selecting NAND. When I turn on the board, it only
>> write endlessly in the terminal: "BOOTME BOOTME BOOTME BOOTME ...".
>>
>
> I have not used the 6446 EVM, but I believe that message indicates
> that the boot loader is searching for a valid boot data pattern. You
> will probably have to flash it - I would have expected the info "what
> is factory flashed" to be in the tech ref manual for the EVM
>
> Have you looked at TI's wiki article
> http://tiexpressdsp.com/index.php?title=Serial_Boot_and_Flash_Loading_Utility
>
> mikedunn
>
>
>> Is it possible that the FLASH NAND came non-initialized out of the box?
>> If it is the case, can somebody suggest me how to initialize it? ( I do
>> not have at the moment a working jtag emulator.)
>>
>> On the other hand, when I boot from NOR FLASH (S3 set to 10101 11111 and
>> J4 selecting FLASH) it works fine (I copy the first lines from my
>> terminal at the end of the message).
>>
>> Thanks a lot for your help,
>> Sara
>> ------
>> U-Boot 1.1.3 (Dec 4 2006 - 12:05:38)
>> U-Boot code: 81080000 -> 81097628 BSS: -> 810A0018
>> RAM Configuration:
>> Bank #0: 80000000 256 MB
>> Flash: 16 MB
>> In: serial
>> Out: serial
>> Err: serial
>> ARM Clock :- 297MHz
>> DDR Clock :- 162MHz
>> Hit any key to stop autoboot: 0
>> ## Booting image at 02050000 ...
>> Image Name: Linux-2.6.10_mvl401-davinci_evm
>> Image Type: ARM Linux Kernel Image (uncompressed)
>> Data Size: 1333196 Bytes = 1.3 MB
>> Load Address: 80008000
>> Entry Point: 80008000
>> Verifying Checksum ... OK
>> OK
>> Starting kernel ...
>> -----
>>
> --
> www.dsprelated.com/blogs-1/nf/Mike_Dunn.php
>
--
===============================================Sara Grassi, Ph.D.
EPFL - IMT - Electronics & Signal Proc. Group
Breguet 2, CH -2000, Neuchel, Switzerland
e-mail : s...@epfl.ch
Tel. : ++ 41 (0)32 718 34 22 (work)
mob. : ++ 41 (0)79 523 5001
Tel. : ++ 41 (0)32 724 38 03 (home)
Fax : ++ 41 (0)32 718 34 02 (work)
URL : http://esplab.epfl.ch/
===============================================
Thanks for the link and for the description of the boot procedure.

I've got a bit different problem: as I am not a Linux in any
way, I've tried to boot my own code to a DM6446 EVM. The essence
of the problem is the bootable image format is not described
(byte by byte) in the docs I've read so far and it is quite
unclear how to recreate this (scarcely specified) format by using
the C6000 TMS470 code gen tools.

Otherwise, I've got reading/writing NAND/NOR just fine, so
that there is no problems of how to store an image into the
flash and read it from there.

Does anybody know where to find the boot image format specification?

Thanks to all,

Andrew

> Re: problem booting from FLASH NAND in a new EVM6446 board
> Posted by: "Sara Grassi" sara.grassi@... sara_grassi
> Date: Thu Oct 29, 2009 1:42 pm ((PDT))
>
> Hello, thanks to the people in this group (and also in TI E2E) that
> helped me to solve this problem.
> I could Flash the most recent UBL/u-boot and linux kernel into the FLASH
> NAND via the serial port.
>
> I also tried to summarize the procedure and location of the tools
> /instructions, hoping it can be useful to others:
> http://e2e.ti.com/forums/p/10466/46106.aspx#46106
>
> Best regards, Sara.
>

_____________________________________
Andrew,

On Fri, Oct 30, 2009 at 1:16 PM, Andrew Nesterov
wrote:
>
> Thanks for the link and for the description of the boot procedure.
>
> I've got a bit different problem: as I am not a Linux in any
> way, I've tried to boot my own code to a DM6446 EVM. The essence
> of the problem is the bootable image format is not described
> (byte by byte) in the docs I've read so far and it is quite
> unclear how to recreate this (scarcely specified) format by using
> the C6000 TMS470 code gen tools.
>
> Otherwise, I've got reading/writing NAND/NOR just fine, so
> that there is no problems of how to store an image into the
> flash and read it from there.
>
> Does anybody know where to find the boot image format specification?

This link might provide some insight [but not answers]
http://e2e.ti.com/forums/t/9289.aspx

I think that the following might work fairly easily [that's easy for
me to say :-)
Normal sequence: ROMboot->xloader->uBoot->LinuxBoot
Since xloader loads into ARM SRAM, inits DDR [and other housekeeping],
loads uBoot into DDR, and then executes uBoot, it would seem that you
could replace uBoot [source is available] with your program, If your
program is large and non-contiguous, you will probably have to adapt
uBoot to load your program or write your own replacement tertiary
loader.

mikedunn
>
> Thanks to all,
>
> Andrew
>
> > Re: problem booting from FLASH NAND in a new EVM6446 board
> > Posted by: "Sara Grassi" sara.grassi@... sara_grassi
> > Date: Thu Oct 29, 2009 1:42 pm ((PDT))
>
> >
> > Hello, thanks to the people in this group (and also in TI E2E) that
> > helped me to solve this problem.
> > I could Flash the most recent UBL/u-boot and linux kernel into the FLASH
> > NAND via the serial port.
> >
> > I also tried to summarize the procedure and location of the tools
> > /instructions, hoping it can be useful to others:
> > http://e2e.ti.com/forums/p/10466/46106.aspx#46106
> >
> > Best regards, Sara.
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php

_____________________________________
Hi Mike,

Thanks for your reply. After more searching on the net I've got these links
that might get me more close for booting the DM6446 board:

DaVinci Serial Boot and Flashing Utilities UBL on this page:
http://wiki.davincidsp.com/index.php/RBL_UBL_and_host_program
http://wiki.davincidsp.com/index.php/Serial_Boot_and_Flash_Loading_Utility
http://sourceforge.net/projects/dvflashutils/files/

and these links on UART UBL by Rudy Reinch:

http://linux.omap.com/pipermail/davinci-linux-open-source/2006-September/001059.html
http://linux.omap.com/pipermail/davinci-linux-open-source/2006-September/001066.html
http://linux.omap.com/pipermail/davinci-linux-open-source/attachments/20060927/2eee1258/rboot-0001.obj

No docs, but some code to possibly play with. In the
Serial_Boot_and_Flash_Loading_Utility archive an AIS script is mentioned - this
could be the key component to generate a bootable image using CCS code gen
tools for TMS470 (ARM) CPUs.

Thanks,

Andrew

> Date: Sat, 31 Oct 2009 00:58:12 -0500
> From: Michael Dunn
> Subject: Re: [c6x] Re: problem booting from FLASH NAND in a new EVM6446 board
>
> Andrew,
>
> On Fri, Oct 30, 2009 at 1:16 PM, Andrew Nesterov wrote:
>>
>> Thanks for the link and for the description of the boot procedure.
>>
>> I've got a bit different problem: as I am not a Linux in any
>> way, I've tried to boot my own code to a DM6446 EVM. The essence
>> of the problem is the bootable image format is not described
>> (byte by byte) in the docs I've read so far and it is quite
>> unclear how to recreate this (scarcely specified) format by using
>> the C6000 TMS470 code gen tools.
>>
>> Otherwise, I've got reading/writing NAND/NOR just fine, so
>> that there is no problems of how to store an image into the
>> flash and read it from there.
>>
>> Does anybody know where to find the boot image format specification?
>
> This link might provide some insight [but not answers]
> http://e2e.ti.com/forums/t/9289.aspx
>
> I think that the following might work fairly easily [that's easy for
> me to say :-)
> Normal sequence: ROMboot->xloader->uBoot->LinuxBoot
> Since xloader loads into ARM SRAM, inits DDR [and other housekeeping],
> loads uBoot into DDR, and then executes uBoot, it would seem that you
> could replace uBoot [source is available] with your program, If your
> program is large and non-contiguous, you will probably have to adapt
> uBoot to load your program or write your own replacement tertiary
> loader.
>
> mikedunn
>>
>> Thanks to all,
>>
>> Andrew
>>
>>> Re: problem booting from FLASH NAND in a new EVM6446 board
>>> Posted by: "Sara Grassi" sara.grassi@... sara_grassi
>>> Date: Thu Oct 29, 2009 1:42 pm ((PDT))
>>
>>>
>>> Hello, thanks to the people in this group (and also in TI E2E) that
>>> helped me to solve this problem.
>>> I could Flash the most recent UBL/u-boot and linux kernel into the FLASH
>>> NAND via the serial port.
>>>
>>> I also tried to summarize the procedure and location of the tools
>>> /instructions, hoping it can be useful to others:
>>> http://e2e.ti.com/forums/p/10466/46106.aspx#46106
>>>
>>> Best regards, Sara.
>>>

_____________________________________