本帖最后由 dd2ka 于 2016-1-8 00:48 编辑
- U-Boot 1.1.4 (Jun 21 2012 - 13:51:21)
- U-Boot code: 90500000 -> 9051E974 BSS: -> 9055525C
- RAM Configuration:
- Bank #0: 90000000 64 MB
- Flash: 16 MB
复制代码 通过TTL进华为HG8245猫,已经可以中断系统引导了,方法是不停的按d,然后你会发现系统停在:
- Press d key to abort autoboot: 10
- hisilicon #
复制代码 输入help后有如下指令可供执行:
- hisilicon # help
- ? - alias for 'help'
- base - print or set address offset
- bdinfo - print Board Info structure
- bootm - boot application image from memory
- crc32 - checksum calculation
- dhcp - invoke DHCP client to obtain IP/boot params
- echo - echo args to console
- erase - erase FLASH memory
- flinfo - print FLASH memory information
- fsinfo - print information about filesystems
- fsload - load binary file from a filesystem image
- help - print online help
- lastword- print last word
- loadboardinfo- download file from tftp server
- loadflashcfg- download file from tftp server
- loadfs - download file system from tftp server
- loadjffs2- download file from tftp server
- loadkernel- download file from tftp server
- loadminisystem- download file from tftp server
- loadsystem- download file from tftp server
- loaduboot- download file from tftp server
- loop - infinite loop on address range
- ls - list files in a directory (default /)
- md - memory display
- mtest - simple RAM test
- mw - memory write (fill)
- ping - send ICMP ECHO_REQUEST to network host
- printenv- print environment variables
- protect - enable or disable FLASH write protection
- rarpboot- boot image via network using RARP/TFTP protocol
- reset - Perform RESET of the CPU
- saveenv - save environment variables to persistent storage
- setenv - set environment variables
- tftp - download or upload image via network using TFTP protocol
- update - update board software
- vdecrest- vdecrest
- vencrest- vencrest
- version - print monitor version
复制代码 输入printenv也能看到相关配置
- hisilicon # printenv
- bootdelay=1
- baudrate=115200
- ethaddr=00:00:00:00:00:02
- ipaddr=192.168.0.10
- serverip=192.168.0.1
- netmask=255.255.255.0
- bootfile="Image"
- stdin=serial
- stdout=serial
- stderr=serial
- verify=n
- filesize=2
- bootcmd=bootm 0x20060054 0x91000000
- 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输入无响应。
万分感谢!
|