本帖最后由 dd2ka 于 2016-1-8 00:48 编辑
* C' g" P5 ]4 S) \. n( q- U-Boot 1.1.4 (Jun 21 2012 - 13:51:21)6 R( T' C; \' H h3 B0 l R
- U-Boot code: 90500000 -> 9051E974 BSS: -> 9055525C7 b {! D5 S# l0 F
- RAM Configuration:* H, O7 Y8 A* B. C) ?5 {* L
- Bank #0: 90000000 64 MB
# f) j6 \ O7 n - Flash: 16 MB
复制代码 通过TTL进华为HG8245猫,已经可以中断系统引导了,方法是不停的按d,然后你会发现系统停在:
. U$ J4 h: F. W q7 H8 F- Press d key to abort autoboot: 10 " V& m$ c c6 m; Z
- hisilicon #
复制代码 输入help后有如下指令可供执行:
+ U4 U1 R1 Q$ ^# p, B5 @6 V. X- hisilicon # help, K1 H4 b. b% t' F/ S5 ~
- ? - alias for 'help'2 N' `) z$ X4 h# W9 V
- base - print or set address offset" x$ k1 U# a* l) z
- bdinfo - print Board Info structure
& ]* `9 @/ b) ? Z - bootm - boot application image from memory1 o1 j8 e2 K+ ]9 H
- crc32 - checksum calculation. M( x# ^: E0 Y1 z6 [6 ?: L) L2 \
- dhcp - invoke DHCP client to obtain IP/boot params
, a" l* ~4 c4 I* m+ _ - echo - echo args to console5 @/ f% b1 N( s& X+ X8 w
- erase - erase FLASH memory7 o- f# ?, `* F: B
- flinfo - print FLASH memory information1 w1 j. F: J7 x% A7 U/ f9 o- k
- fsinfo - print information about filesystems
$ A5 m% @" ~2 W# z" j, i0 i# ]/ q - fsload - load binary file from a filesystem image
/ d$ s s3 M _( b" ` - help - print online help
/ W9 e/ |9 `3 r+ Z$ T - lastword- print last word$ G+ u2 @" O8 A, A6 }; U1 \
- loadboardinfo- download file from tftp server
: r. x2 ^- H& ~8 J5 t6 S3 L - loadflashcfg- download file from tftp server
2 x, [1 T( y _4 H: k - loadfs - download file system from tftp server$ s W5 Y6 T# i) r" `
- loadjffs2- download file from tftp server: k" z2 D% l* B f! n/ n% F; ^8 w
- loadkernel- download file from tftp server
" u# r4 Y" A2 @; g- x - loadminisystem- download file from tftp server {4 E* }/ c+ ]9 ?
- loadsystem- download file from tftp server- p) N, E' C9 C" N ?
- loaduboot- download file from tftp server
- [: i2 z7 t# K% Z# N3 J - loop - infinite loop on address range
. \" K3 \3 d, ?1 V5 B7 _ - ls - list files in a directory (default /)5 N; n$ }% f1 k1 N' \) _1 w
- md - memory display
! z+ ?6 m; N+ c; t$ i - mtest - simple RAM test) i8 L( B+ ~* `: V1 G5 [
- mw - memory write (fill)
! c+ k9 k5 ~. U& s1 m - ping - send ICMP ECHO_REQUEST to network host
7 t" s1 `+ E$ G! o9 B5 X' x$ F& n/ [ - printenv- print environment variables
! c! m; f$ X, C. j - protect - enable or disable FLASH write protection
* C) y0 Q9 e( {% q+ @5 {. @ - rarpboot- boot image via network using RARP/TFTP protocol
3 O/ u+ U$ E# I5 y, w: r5 m8 M - reset - Perform RESET of the CPU
3 `1 e7 d0 p6 c n- v4 W: F - saveenv - save environment variables to persistent storage R* x1 V" g9 t4 Q. S5 l
- setenv - set environment variables2 z3 K2 z. S2 n- d! L
- tftp - download or upload image via network using TFTP protocol
; b3 C- v% W6 B4 f& D& j - update - update board software
4 [/ |. U- T6 P2 W - vdecrest- vdecrest + I4 E* G& Y$ L5 q I
- vencrest- vencrest
0 ~0 ~4 F# |! j+ y' n# I7 I - version - print monitor version
复制代码 输入printenv也能看到相关配置
5 v3 g, q$ C8 t4 s- hisilicon # printenv
9 ]1 l0 C% t% l& n. V - bootdelay=1
5 V' M! ?3 ~% w: o3 Z - baudrate=115200" T2 ?; @! s) P) _+ c
- ethaddr=00:00:00:00:00:02) Z& N! T4 ?/ s
- ipaddr=192.168.0.10 t6 u/ n: G0 S: n4 ]
- serverip=192.168.0.1) u* R! H, J! A* s) c( L k
- netmask=255.255.255.0
' A# i/ Q) C7 R+ ~7 i" c - bootfile="Image", E5 j. x/ f# v; x) c& O% m' ^
- stdin=serial5 Q8 m! T; c5 l) K; t7 S
- stdout=serial2 p; B @" |# Y, x
- stderr=serial
4 X( c4 ]. S' V3 O( Y - verify=n
& T1 Y4 @$ Y# W- D4 g: @' e; O - filesize=2
4 o* F* g+ |$ M* l. I) V1 c# ^ - bootcmd=bootm 0x20060054 0x910000004 e6 R3 g) b, y$ S; W9 K. T2 Q9 z
- 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输入无响应。
; G& O0 w/ s' a9 W万分感谢!) k. B' T) G g- I/ c; a/ c( O
$ q( @0 `4 t: Z# P* z, x' S5 Z1 h; Y6 w( J' r
|