пятница, 9 декабря 2011 г.

f-boot пробный запуск

Пробный запуск f-boot(first bootloader) для 9200. Загрузка и выполнение u-boot'a.


Консольшоты:
 xmodem: uploading
##########################################################
xmodem: done
f-boot ver 0.11.0
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
q: Exit and Reboot
1 20f00000
Download to 0x20f00000
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
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> help
?       - alias for 'help'
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp    - invoke DHCP client to obtain IP/boot params
echo    - echo args to console
erase   - erase FLASH memory
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
imls    - list all images found in flash
itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
U-Boot> mii
Usage:
mii     - MII utility commands

U-Boot> mii dump 0 1
1.     (0000)                 -- PHY status register --
  (8000:0000) 1.15    =     0    100BASE-T4 able
  (4000:0000) 1.14    =     0    100BASE-X  full duplex able
  (2000:0000) 1.13    =     0    100BASE-X  half duplex able
  (1000:0000) 1.12    =     0    10 Mbps    full duplex able
  (0800:0000) 1.11    =     0    10 Mbps    half duplex able
  (0400:0000) 1.10    =     0    100BASE-T2 full duplex able
  (0200:0000) 1. 9    =     0    100BASE-T2 half duplex able
  (0100:0000) 1. 8    =     0    extended status
  (0080:0000) 1. 7    =     0    (reserved)
  (0040:0000) 1. 6    =     0    MF preamble suppression
  (0020:0000) 1. 5    =     0    A/N complete
  (0010:0000) 1. 4    =     0    remote fault
  (0008:0000) 1. 3    =     0    A/N able
  (0004:0000) 1. 2    =     0    link status
  (0002:0000) 1. 1    =     0    jabber detect
  (0001:0000) 1. 0    =     0    extended capabilities


U-Boot> mii dump 0 2
2.     (0000)                 -- PHY ID 1 register --
  (ffff:0000) 2.15- 0 =     0    OUI portion


U-Boot> mii dump 0 3
3.     (0000)                 -- PHY ID 2 register --
  (fc00:0000) 3.15-10 =     0    OUI portion
  (03f0:0000) 3. 9- 4 =     0    manufacturer part number
  (000f:0000) 3. 3- 0 =     0    manufacturer rev. number