понедельник, 12 декабря 2011 г.

f-boot второй запуск, запись в dataflash

Второй запуск f-boot, загрузка u-boot, запись его в dataflash, чтение из неё, запуск u-boot.
Консольшоты: 
xmodem: uploading
##############################################################
xmodem: done
f-boot ver 0.11.4
Switch to main clock...Ok
Running on 16MHz clock
Setup plla value - Mul: 180 Div: 16 Out clk: 180MHz
Init PLLA...Ok
Setup pllb value - Mul: 96 Div: 16 Out clk: 96MHz
Init PLLB...Ok
Switch to plla clock, Pres: 2...Ok
Running on 90MHz clock

SDRAM: 131072kB

SPI: Device is AT45DB642D

1: Download [addr]
2: Run [addr]
3: Write load to dataflash [addr]
4: Erase boot region
5: Update f-boot in dataflash
6: Read dataflash to ram [daddr] [addr] [size]
q: Exit and Reboot
1 20000000
Download to 0x20000000
...
xmodem: uploading
########################################################
...
########################################################
xmodem: done

Transfer complete
Byte's sended: 91392

1: Download [addr]
2: Run [addr]
3: Write load to dataflash [addr]
4: Erase boot region
5: Update f-boot in dataflash
6: Read dataflash to ram [daddr] [addr] [size]
q: Exit and Reboot
3 1000
Write to 0xc60
Source 0x20000000, Size 0x16500
Verify addr 0x2002ca00, write size 0x166e0
Write...successed
Verification...success!

1: Download [addr]
2: Run [addr]
3: Write load to dataflash [addr]
4: Erase boot region
5: Update f-boot in dataflash
6: Read dataflash to ram [daddr] [addr] [size]
q: Exit and Reboot
6 c60 20f00000 16500
Read: 0xc60 to: 0x20f00000, Size: 0x166e0
successed

1: Download [addr]
2: Run [addr]
3: Write load to dataflash [addr]
4: Erase boot region
5: Update f-boot in dataflash
6: Read dataflash to ram [daddr] [addr] [size]
q: Exit and Reboot
2 20f00000
Run code at 0x20f00000


U-Boot 1.2.0 (Nov 30 2011 - 16:11:57)

DRAM:  128 MB
Atmel: Flash:  0 kB
DataFlash:AT45DB642
Nb pages:   8192
Page Size:   1056
Size= 8650752 bytes
Logical address: 0xC0000000
Area 0: C0000000 to C0007FFF (RO)
Area 1: C0008000 to C001FFFF (RO)
Area 2: C0020000 to C0027FFF
Area 3: C0028000 to C083FFFF
In:    serial
Out:   serial
Err:   serial
U-Boot>