1

Temat: Zgranie uboot z adresu A0000000

Potrzebuję zgrać uboot z adresu A0000000 o długości 40000. Mam usb, mam LAN i tftp oraz mam serial. Nie mam za to komendy saves. Mam to:

?       - alias for 'help'
askenv  - get environment variables from stdin
autoscr - run script from memory
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootm   - boot application image from memory
bootmenu- check boot key.
bootp- boot image via network using BootP/TFTP protocol
chpart- change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
dhcp- invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
erase   - erase FLASH memory
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
flinfo  - print FLASH memory information
fsinfo- print information about filesystems
fsload- load binary file from a filesystem image
go      - start application at address 'addr'
help    - print online help
ide     - IDE sub-system
iminfo  - print header information for application image
imls    - list all images found in flash
itest- return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls- list files in a directory (default /)
md      - memory display
mii     - MII utility commands
mm      - memory modify (auto-incrementing)
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nfs- boot image via network using NFS protocol
nm      - memory modify (constant address)
ping- send ICMP ECHO_REQUEST to network host
pmb     - displays the contents of the PMB
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
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
sleep   - delay execution for some time
stop    - stop uboot.
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
usbprg  - auto update from USB
version - print monitor version
vfd     - put string to front display.

Jak mogę to zrobić?

2

Odp: Zgranie uboot z adresu A0000000

Najprościej - uruchomić obraz openwrt w pamięci  i  tak po prostu zgrać sobie uboota...

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Zgranie uboot z adresu A0000000

ok, a jakim poleceniem spod openwrt to zrobić?

4

Odp: Zgranie uboot z adresu A0000000

Jak uruchomisz openwrt to w bootlogu będzie spis partycji mtd/nand
potem wpisujesz polecenie:
dd if=/dev/mtd0 of=/tmp/mtd0.bin
i już masz zrobiony "dump" uboota
za mtd0 musisz podstawić urządzenie na którym jest uboot

https://tplinkforum.pl - Polskie forum poświęcone tematyce urządzeń firmy TP-Link i Neffos

5

Odp: Zgranie uboot z adresu A0000000

dzięki

6

Odp: Zgranie uboot z adresu A0000000

Heinz napisał/a:

Jak uruchomisz openwrt to w bootlogu będzie spis partycji mtd/nand
potem wpisujesz polecenie:
dd if=/dev/mtd0 of=/tmp/mtd0.bin
i już masz zrobiony "dump" uboota
za mtd0 musisz podstawić urządzenie na którym jest uboot

Można też po prostu: cat /dev/mtdX > /tmp/mtdX.bin