|
本帖最后由 xjw1162 于 2016-8-8 20:31 编辑
碰到的问题是: 无法ping通路由器.
开机引导信息
- eth1 up
- eth0, eth1
- Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
- Ath Nand ID[8ffee17c]: 2c:f1:80:95:04
- ONFI MICRON MT29F1G08ABAEAWP
- Micron NAND 128MiB 3,3V 8-bit [128MB]
- ====== NAND Parameters ======
- sc = 0x8ffee158 bbt = 0x8ff9c538 bbt_size = 0x100 nf_ctrl = 0x344
- page = 0x800 block = 0x20000 oob = 0x40
- size = 128MB
- Setting 0x18116290 to 0x58b0214f
- last reboot failed.
- NAND read: device 0 offset 0x6000000, size 16777216 ... 16777216 bytes read: OK
- CRC32 for 80060000 ... 80f9ffff ==> b7190af0
- Erasing flash...
- First 0x5 last 0xfe sector size 0x10000
- 254
- Erased 250 sectors
- Copy to Flash... write addr: 9f050000
复制代码
不知道为什么一开机就erasing flash.
然后进入命令模式
- ath> bdinfo
- boot_params = 0x8FF6BFB0
- memstart = 0x80000000
- memsize = 0x10000000
- flashstart = 0x9F000000
- flashsize = 0x01000000
- flashoffset = 0x0002E194
- ethaddr = 00:AA:BB:CC:DD:EE
- ip_addr = 192.168.1.1
- baudrate = 115200 bps
复制代码
mac地址有点奇怪.
有个tftpboot命令
ath> tftpboot
- Trying eth0
- eth0 link down
- FAIL
- Trying eth1
- dup 1 speed 1000
- *** Warning: no boot file name; using 's'
- Using eth1 device
- TFTP from server 192.168.1.10; our IP address is 192.168.1.1
- Filename '0101A8C0.img'.
- Load address: 0x81000000
复制代码
这个意思就是网线插在eth1中,终端指定IP为192.168.1.10
服务器ip为192.168.1.1
文件名0101A8C0.img
无法ping通路由器,目前不知道怎么操作,求教导
完整的命令行支持
- ath> help
- ? - alias for 'help'
- autoscr - run script from memory
- base - print or set address offset
- bdinfo - print Board Info structure
- boot - boot default, i.e., run 'bootcmd'
- bootd - boot default, i.e., run 'bootcmd'
- bootelf - Boot from an ELF image in memory
- bootm - boot application image from memory
- bootp - boot image via network using BootP/TFTP protocol
- bootvx - Boot vxWorks from an ELF image
- 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
- ethreg - Switch/PHY Reg rd/wr utility
- exit - exit script
- flinfo - print FLASH memory information
- go - start application at address 'addr'
- help - print online help
- iminfo - print header information for application image
- itest - return true/false on integer compare
- loop - infinite loop on address range
- mct - simple RAM test
- md - memory display
- mii - MII utility commands
- mm - memory modify (auto-incrementing)
- mtest - simple RAM test
- mw - memory write (fill)
- nand - NAND sub-system
- nboot - boot from NAND device
- nfs - boot image via network using NFS protocol
- nm - memory modify (constant address)
- pci - list and access PCI Configuration Space
- ping - send ICMP ECHO_REQUEST to network host
- pll cpu-pll dither ddr-pll dither - Set to change CPU & DDR speed
- pll erase
- pll get
- printenv- print environment variables
- progmac - Set ethernet MAC addresses
- progmac2 - Set ethernet MAC addresses
- 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
- sleep - delay execution for some time
- test - minimal test like /bin/sh
- tftpboot- boot image via network using TFTP protocol
- version - print monitor version
复制代码
|
|