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!