我需要从运行嵌入式 Linux 的设备获取原始引导加载程序的副本。是否可以使用 CLI telnet 命令复制和保存引导加载程序?我可以完全访问 CLI 界面。有没有办法从内存中复制 Bootloader 二进制文件并保存它?
=> printenv
...
update_uboot=tftpboot 0x80000100 u-boot.bin && protect off 0x48000000 +${filesize} && erase 0x48000000 +${filesize} && sleep ${sdelay} && cp.b ${fileaddr} 0x48000000 ${filesize} && protect on 0x48000000 +${filesize}
...
ubootpartsize=0x20000
mtdinfo=0x20000(U-Boot)ro
mtdparts=spansion:0x20000(U-Boot)ro
5 cmdlinepart partitions found on MTD device spansion
partitions[0] = {.name = U-Boot, .offset = 0x00000000,.size = 0x00020000 (128K) }
0x00000000-0x00020000 : "U-Boot"
编辑:嵌入式设备上的 Busybox 中不存在 netcat。
BusyBox v1.19.2 built-in shell (ash)
Enter 'help' for a list of built-in commands.
# help
Built-in commands:
------------------
. : [ [[ bg break cd chdir continue echo eval exec exit export
false fg getopts hash help jobs kill local printf pwd read readonly
return set shift source test times trap true type ulimit umask
unset wait