本帖最后由 dd2ka 于 2016-1-8 00:48 编辑
1 W t1 u* D2 @ s7 M3 R- U-Boot 1.1.4 (Jun 21 2012 - 13:51:21)
, Y. y. l ^$ g: G2 h - U-Boot code: 90500000 -> 9051E974 BSS: -> 9055525C+ b2 o2 O3 d* d/ E5 y
- RAM Configuration:
# _0 @ C( h2 d4 A; Q - Bank #0: 90000000 64 MB
& M+ ?1 i" {" |, l( e - Flash: 16 MB
复制代码 通过TTL进华为HG8245猫,已经可以中断系统引导了,方法是不停的按d,然后你会发现系统停在:
" b( B: S) o' L: k3 E `- Press d key to abort autoboot: 10 * n3 G# |8 t& o9 }' D
- hisilicon #
复制代码 输入help后有如下指令可供执行:
+ D, P/ _. V8 p) y1 b4 @- hisilicon # help7 e. ^3 m7 K& t* X
- ? - alias for 'help'
2 _" }2 u) O K. F+ E' J - base - print or set address offset
; {" P2 X+ K# }' h: e- _$ y - bdinfo - print Board Info structure1 o3 s! i0 Y; N) D( g- a: a/ R9 I
- bootm - boot application image from memory. _, o+ O2 Q, j$ l1 z: S
- crc32 - checksum calculation: |( E% A0 n- H
- dhcp - invoke DHCP client to obtain IP/boot params9 U T- J2 ~6 e/ q) E, q X
- echo - echo args to console
% v! r" a& @; `; Z% r& Q( q - erase - erase FLASH memory
6 a. _, O- s0 Y8 K- N) Y7 ] - flinfo - print FLASH memory information* n) g- Q4 d0 ?6 K6 {
- fsinfo - print information about filesystems
( x4 D5 D1 O4 C- \ k - fsload - load binary file from a filesystem image% h: p* m% E) O, t$ i
- help - print online help$ b% O& V5 ?0 l
- lastword- print last word+ P* S# u/ f9 [8 [
- loadboardinfo- download file from tftp server
; L! r- K; R5 h8 S/ t' e - loadflashcfg- download file from tftp server7 C! c5 j8 q2 {* i, H7 q; `
- loadfs - download file system from tftp server
6 v' R! |, X8 G/ v- d - loadjffs2- download file from tftp server+ m6 z! Q; F: s; \
- loadkernel- download file from tftp server
% X" [9 @) T. w& c% B1 H+ p. G - loadminisystem- download file from tftp server
& D7 T5 m- e Y( w$ } - loadsystem- download file from tftp server% l( m' t! z, r7 ^9 Z ] b
- loaduboot- download file from tftp server
$ m! p0 n2 l, J; O - loop - infinite loop on address range
7 ?+ S1 X8 {* @. M* o: y9 \ - ls - list files in a directory (default /)
0 A" P2 l0 X4 a5 | - md - memory display" P' I+ g3 e M% R
- mtest - simple RAM test
: k) k% ?0 \* p% K' F) m2 H - mw - memory write (fill)
1 j6 V; g" W M1 H6 x - ping - send ICMP ECHO_REQUEST to network host
8 W6 W. m# ^# J* b* G4 y |4 N - printenv- print environment variables' Q, i! _) ~: L w8 x2 f* l
- protect - enable or disable FLASH write protection0 f+ i! i: N2 y q5 H- b# F4 t
- rarpboot- boot image via network using RARP/TFTP protocol
9 F4 m8 V2 ?$ o7 V0 @ - reset - Perform RESET of the CPU3 m1 H+ {' q ]) V$ w
- saveenv - save environment variables to persistent storage. o0 N _, J4 H
- setenv - set environment variables
; d) |6 F, u' h9 ^1 g. J - tftp - download or upload image via network using TFTP protocol& L5 z' {6 V9 I0 A1 v1 f' M$ A
- update - update board software
( F( i' B9 ?2 D1 \: |. K/ q5 p - vdecrest- vdecrest 6 D; {) {. d6 f1 ]
- vencrest- vencrest
. S- R& R* c9 N' n# B+ @ - version - print monitor version
复制代码 输入printenv也能看到相关配置
1 ~( H2 Y2 `- p: O9 C- a" N: K- hisilicon # printenv
; _! m, c( L8 q6 G" F, s( d7 d - bootdelay=1
# c- p1 `: ?# j/ M# C" D - baudrate=115200% Q6 ~9 F: I1 C, @! {
- ethaddr=00:00:00:00:00:02
2 B. L/ j5 Y! p9 Q# H5 _. u) l - ipaddr=192.168.0.106 Q: ]6 Q# N* n, _/ d
- serverip=192.168.0.1
4 N. s6 C J' c& b1 { b" p - netmask=255.255.255.02 J6 r, P( M' h4 b
- bootfile="Image"
, B' j$ n9 i/ o# k; y V, m - stdin=serial. N6 B* j6 a8 P$ S
- stdout=serial7 O1 g6 R1 w! e9 J f& ]
- stderr=serial$ @3 @- k" l7 S0 y/ I2 y6 }! @4 w
- verify=n3 }2 |+ |1 l/ y; C# l
- filesize=2
; z# v! q6 l- S0 A2 a. ^+ h+ h - bootcmd=bootm 0x20060054 0x91000000
3 J! ~0 t& g4 T* \$ y+ X- q; C - 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输入无响应。* V, x1 l5 ^7 e: e1 [4 X$ U
万分感谢!
. l: v. B9 B$ }6 W2 ~$ k' m5 F" |
. k' S; H N- f
: ?% O" b2 j5 }" G |