本帖最后由 dd2ka 于 2016-1-8 00:48 编辑 7 | V* c# Y9 J) l1 o
- U-Boot 1.1.4 (Jun 21 2012 - 13:51:21)4 c5 B2 }* D: e/ f K; U9 S; b' i
- U-Boot code: 90500000 -> 9051E974 BSS: -> 9055525C$ g& j& e7 J/ ?
- RAM Configuration:
) @/ c% ?6 n2 v9 h7 h& h - Bank #0: 90000000 64 MB
0 x& X8 v( y' U% T+ A- g: m - Flash: 16 MB
复制代码 通过TTL进华为HG8245猫,已经可以中断系统引导了,方法是不停的按d,然后你会发现系统停在:
# _' h( N4 H) C G( P M- Press d key to abort autoboot: 10 8 {' _ Y7 O& d
- hisilicon #
复制代码 输入help后有如下指令可供执行:
4 W# J i0 ~9 j; k! m- hisilicon # help! T4 Z; Z; F0 n" G
- ? - alias for 'help'/ Z9 v$ O( ? z3 [) R- s
- base - print or set address offset# l; A, c/ v, Z, d) Q8 |
- bdinfo - print Board Info structure
: d0 F* s% c- [* k9 U' } - bootm - boot application image from memory
1 H5 P6 ~2 N% C* N! t - crc32 - checksum calculation; e9 J. K( g3 S
- dhcp - invoke DHCP client to obtain IP/boot params/ f7 G3 l3 J# x9 y% U
- echo - echo args to console
8 t0 Z. W1 R$ O9 O# x - erase - erase FLASH memory7 \: V/ \( }; w1 s
- flinfo - print FLASH memory information
- U4 j& S2 x3 P8 `) G! h - fsinfo - print information about filesystems7 M$ R2 L9 I# w0 `% p
- fsload - load binary file from a filesystem image% \4 F; {3 b! K% L* s& b
- help - print online help- P# s3 f; z9 t: T5 {
- lastword- print last word& `4 ?' ?$ {# I. O% o+ r V" H
- loadboardinfo- download file from tftp server8 L1 m) F. T: s7 R& `0 p3 g5 ?
- loadflashcfg- download file from tftp server
# h: I1 \, {5 H& H# ? - loadfs - download file system from tftp server- z4 v7 a! q; p) i) a% F/ M! r, x
- loadjffs2- download file from tftp server8 C: j/ I! Y0 Q+ W& ^' j
- loadkernel- download file from tftp server
% O5 |8 o) I2 o - loadminisystem- download file from tftp server4 q; ]7 {3 b. ~4 v V
- loadsystem- download file from tftp server
' ^% B/ H5 _! l5 | - loaduboot- download file from tftp server
) H0 K1 m( u/ c/ D2 Y - loop - infinite loop on address range
5 u& d# v4 T( j - ls - list files in a directory (default /)& L/ t4 Y8 F7 E
- md - memory display
3 W" \4 A8 C' v - mtest - simple RAM test
3 G M! a2 P. N - mw - memory write (fill)4 T: _1 A6 G+ i6 D; g- v
- ping - send ICMP ECHO_REQUEST to network host M, ?) F! u* ~2 @% }2 U
- printenv- print environment variables
8 A% A0 t( F+ j: X - protect - enable or disable FLASH write protection
# ~8 c8 G: a& \& }, G - rarpboot- boot image via network using RARP/TFTP protocol5 e M. ^( I2 j) T# y% r
- reset - Perform RESET of the CPU
2 i2 q, `" ^* y6 \+ W - saveenv - save environment variables to persistent storage' `# C$ d4 D! r: I7 U6 J7 s0 T C) G
- setenv - set environment variables0 J0 O/ K8 n9 W$ x& `' q% M2 \
- tftp - download or upload image via network using TFTP protocol* q; n" K% M6 i& O7 `7 p" v
- update - update board software
& A! f9 `/ y# R3 A$ O - vdecrest- vdecrest
L4 D5 L }) p S3 { - vencrest- vencrest
1 n# `4 B" z/ H4 D' s; m6 d - version - print monitor version
复制代码 输入printenv也能看到相关配置% M2 [# { w/ J: q9 F
- hisilicon # printenv % s) _# S% L* d# E
- bootdelay=1
4 f6 ? L0 i0 c4 N# D0 [* b9 I% o - baudrate=115200& O7 A6 m: M) `# J
- ethaddr=00:00:00:00:00:02
* X+ v, h ~; O$ j- R _" `. C- J, r - ipaddr=192.168.0.103 W y6 L d& D( g: A4 D
- serverip=192.168.0.1
; }6 n7 c! O+ ]3 v% M9 l - netmask=255.255.255.0
/ a; u% h6 h) D5 E - bootfile="Image"
7 Y @. r5 M. j1 K$ m+ a - stdin=serial! T: R* P6 i3 b
- stdout=serial
% x @2 }4 F% ~( o. T) X - stderr=serial
$ g1 o' j: ]2 D6 |! O; h - verify=n" n) v5 I% m5 e2 j1 G3 P
- filesize=23 s, C# h2 e9 d* ^0 w; n, y
- bootcmd=bootm 0x20060054 0x91000000
7 I& r4 P8 B$ M6 E- l; ^ - 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输入无响应。! K, o. i- X% `0 i) r
万分感谢!1 O9 g% g5 b f) v6 ^8 E
! U4 Z6 n' y6 c/ f/ G5 J* R
, Q0 b8 u% O! R; L8 N3 a& f |