本帖最后由 dd2ka 于 2016-1-8 00:48 编辑 ; e6 E* r8 m/ g. C. T
- U-Boot 1.1.4 (Jun 21 2012 - 13:51:21)# f- S( Z! g. W/ W. n2 N/ q
- U-Boot code: 90500000 -> 9051E974 BSS: -> 9055525C- `7 N% [7 K$ J2 X
- RAM Configuration: G& I2 k; J! B' y% }( G
- Bank #0: 90000000 64 MB- i$ b- _8 k5 s
- Flash: 16 MB
复制代码 通过TTL进华为HG8245猫,已经可以中断系统引导了,方法是不停的按d,然后你会发现系统停在:8 ?: K4 Z8 k2 W6 B
- Press d key to abort autoboot: 10 ( C5 a$ x5 v; r0 X
- hisilicon #
复制代码 输入help后有如下指令可供执行:$ R# M% Y8 h# F5 [# b6 T* h
- hisilicon # help
n8 [4 j* s4 B - ? - alias for 'help'8 Z7 i( Y. f" l$ O
- base - print or set address offset
$ T3 @/ q7 C8 K, T9 g8 T" R - bdinfo - print Board Info structure9 [$ G0 {8 l3 P4 @
- bootm - boot application image from memory
5 p' E8 ?7 {: c$ @9 d( _" k - crc32 - checksum calculation
* M7 |' _' c5 [ S% {% c - dhcp - invoke DHCP client to obtain IP/boot params
+ T3 q9 H* _2 p5 `$ n' g' Y - echo - echo args to console! O5 V; U" Z. ~3 J& ^6 l* J5 y
- erase - erase FLASH memory$ g8 _8 _5 }3 h+ `! ~
- flinfo - print FLASH memory information7 b& F8 d' z8 _/ T* G
- fsinfo - print information about filesystems
: C# e% _) d& ^ - fsload - load binary file from a filesystem image, c% w0 W6 G1 \
- help - print online help) c4 x. R. i0 \, z- B/ J
- lastword- print last word
1 q$ Q$ p9 K7 ?3 A - loadboardinfo- download file from tftp server
1 \2 V, e: a% n; A - loadflashcfg- download file from tftp server& E% n2 K/ L! h; x5 L& ~
- loadfs - download file system from tftp server; q) [' g$ Z) ?) t, N& f- i( M
- loadjffs2- download file from tftp server
2 R, v( s( a) C+ l* n, Q6 ? - loadkernel- download file from tftp server
0 y7 F" J/ x: H8 r - loadminisystem- download file from tftp server
5 j7 O2 H( Y1 I' \) t+ M, a - loadsystem- download file from tftp server: R0 ~( e+ z2 @; V9 q
- loaduboot- download file from tftp server
: O2 @$ w5 }6 A9 |# a - loop - infinite loop on address range
/ h' q- g* a! U/ G - ls - list files in a directory (default /)
\' J3 K5 S+ W( A# M- F9 n% \ - md - memory display: H* y; E7 p5 b- t1 a( {
- mtest - simple RAM test
: Y2 e: F' F" O- e4 u: P - mw - memory write (fill)) V# d1 H4 E+ ^8 E, Z. t3 J
- ping - send ICMP ECHO_REQUEST to network host* ^: O j$ D$ _
- printenv- print environment variables; ?3 n& @- Z+ L- f- ^1 K
- protect - enable or disable FLASH write protection4 g/ [$ Z$ I3 x" K* H: Z* u
- rarpboot- boot image via network using RARP/TFTP protocol
7 E+ ?1 U- l+ o - reset - Perform RESET of the CPU3 ^0 z& d+ u( i9 `2 Z# t
- saveenv - save environment variables to persistent storage; [" ^) u: k1 c& g! w
- setenv - set environment variables
' _8 H) S2 A6 n! }8 W7 E - tftp - download or upload image via network using TFTP protocol
& c# |: r/ I; x) E5 `/ e+ \9 D) L - update - update board software, }: C: B& r* Z4 i2 R- f
- vdecrest- vdecrest 6 ~# ]* ]. x) s, E
- vencrest- vencrest
; a; ]4 Y0 u" l5 l3 o- Y! b- @ - version - print monitor version
复制代码 输入printenv也能看到相关配置
5 [7 K. }& d( _1 m V1 Z- hisilicon # printenv
9 |: z& G8 u9 m2 g+ O8 y- W1 E - bootdelay=1
" l7 j! H1 m8 m' p - baudrate=115200
, J6 b5 N9 R- V5 n2 @# U9 B - ethaddr=00:00:00:00:00:02
$ f; n& s: B7 k; i6 P - ipaddr=192.168.0.10
4 a- X c& u2 L; e6 d; @. v2 V& L - serverip=192.168.0.12 d" a. F& ]7 @$ U: R' G
- netmask=255.255.255.0. U4 y6 T' N2 f' ~/ {( l
- bootfile="Image"' z, D) V- b5 ~! j. L
- stdin=serial9 h) f- Z) M' F1 X# l
- stdout=serial: v( I: g* x% q2 E4 l& A! V' a- G
- stderr=serial
$ s5 Z7 }; A: B# c8 C$ z8 O - verify=n8 ?$ P+ `; G3 a: U& q9 A
- filesize=2
8 d8 g/ a7 Q2 @4 R! T - bootcmd=bootm 0x20060054 0x91000000
' c4 i! N: B; z7 R R - bootargs=noalign mem=50M console=ttyAMA0,115200 root=/dev/ram0 rootfstype=squashfs mtdparts=hisilicon:0x40000(boot)ro,0x1000(flashcfg)ro,0x1f000(syspara)ro,0x180000(krnl)ro,0x8fffac@0x1e0054(rootfs)ro,0x248fd8@0xc17028(minisystem)ro,0x180000(jffs2cfg),-(reserved) user_debug=0x1f panic=1
复制代码 但是在此模式下,因为不知道flash偏移值,无法进行flash的擦除和重刷,另外,华为在U-boot模式下,也没有提供常规的cp.b拷贝内存文件到flash中等功能,仅有loadsystem,loaduboot等直接写入闪存的命令,这样就涉及到对各个版本的固件解包了,不知如何才能将bin固件拆分成uboot,system等单独的文件?求论坛各位大大拔冗相助。目前我的2个8245都是砖,进系统在加载无线网络模块的时候进入死循环,能ping通,无法telnet,无法web,ttl输入无响应。
$ c; C' c) b& e* \. S, R万分感谢!' o2 J% v& M* h2 o5 L
% Y4 w' r) Y" J
- S" K3 x W8 o |