This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

customized am1707 evm board with SPI and NAND flash

Other Parts Discussed in Thread: AM1707, OMAP-L137

Good day!


I customize am1707 evm board. There are two flash devices: SPI and NAND.

I want to make the UBL, the U-BOOT and the LINUX KERNEL located on serial flash( 4MB ), and the FILE SYSTEM is fully occupied NAND FLASH ( 128 MB ).

I flasing UBL and U-BOOT with command:
./sfh_OMAP-L137.exe -targetType AM1707 -flashType SPI_MEM -flash DaVinci-PSP-SDK-03.20.00.12/images/boot-strap/am17xx/arm-spi-ais.bin DaVinci-PSP-SDK-03.20.00.12/images/u-boot/omapl1x7/u-boot.bin

and when u-boot run, I flashing kernel images to SPI flash over tftp:

u-boot > printenv
bootargs=mem=32M console=ttyS2,115200n8 root=/dev/mmcblk0p1 rw rootwait ip=off
bootcmd=sf probe 0;sf read 0xc0700000 0x60000 0x220000;bootm 0xc0700000
bootdelay=3
baudrate=115200
bootfile="uImage"
stdin=serial
stdout=serial
stderr=serial
ethaddr=00:0e:99:03:10:9a
ver=U-Boot 2009.11 (Oct 13 2011 - 12:39:43)

Environment size: 308/16380 bytes

u-boot > set serverip 192.168.2.87
u-boot > dhcp
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 192.168.0.108
Using device
TFTP from server 192.168.2.87; our IP address is 192.168.0.108
Filename 'uImage'.
Load address: 0xc0700000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
################################################################
done
Bytes transferred = 1990068 (1e5db4 hex)

u-boot > iminfo

## Checking Image at c0700000 ...
Legacy image found
Image Name: Linux-2.6.33-rc4
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1990004 Bytes = 1.9 MB
Load Address: c0008000
Entry Point: c0008000
Verifying Checksum ... OK

u-boot > sf probe 0
4096 KiB W25X32 at 0:0 is now current device

u-boot > sf erase 0 0x60000 0x220000
u-boot > sf write 0xc070000 0x60000 0x220000


Kernel is run, but there is no file system. 

questions:

1. What are the TI factory SPI flash map for AM1707 EVM?
2. Could you give me the factory settings u-boot environment for AM1707 EVM?
3. Is it right to place the images(UBL, U-BOOT, KERNEL) on a SPI flash? How do you recommend to mapping SPI flash for UBL, U-BOOT, KERNEL?
4. How to make the file system so that it made full use of NAND flash( 128 MB )?
5. How to build u-boot with support SPI and NAND flash simultaneously?


Thank you in advance for your answers!

  • Hi nzif,

    This link might help you answering few question.

     

    Regards

    --Prabhakar Lad

     

     

  • Thanks for the answer, but I read this page. To my questions above, I have not found the answer there.

  • 1) The UBL is placed at address 0 and U-Boot is placed at address 0X6000.

    2) The source code for U-Boot is available in the SDK for this device.

    3) Yes you should be able to fit all three onto the flash, depending on the size of your kernel. The UBL is generally small and does not need all of 0x0-0x6000 address range, so you can partition how you see fit.

    4) You can specify your NAND flash size in the board specific files that come with the Linux PSP

    5) The source for U-Boot that comes with the SDK should be rebuilt with both the SPI and NAND support defined.

    Looking at the steps you took, you did not write the file system to NAND flash. You should be able to do that in U-Boot, or otherwise there are CCS tools that can write to the NAND for you, included in the serial flashing package you downloaded.

    Jeff