|
设备是收购的二手设备,当前设备状态可以通过ttl进入uboot。原机主刷了uboot、改了分区表、刷了openwrt。
现在实在是搞不定了,求助论坛大佬帮忙。
以下是设备相关的信息,有大佬可以帮忙看一下怎么解决吗?如何刷根文件系统。
有没有好心人可以提供一份CR660X原版分区备份文件。
目前重新刷新固件开机提示主要为根文件系统损坏。uboot版本不明,提示版本信息如下。
U-Boot 2018.09 (Jan 10 2022 - 06:56:41 +0000), Build: jenkins-common_router_openwrt_ota_publish-2479
NAND: nand_base: Could not find valid JEDEC parameter page; aborting
128 MiB
[ 1.548303] drivers/miwifi/nvram.c 277: ERROR! Unable to find mtd device uboot for nvram block 0
[ 1.557142] drivers/miwifi/nvram.c 277: ERROR! Unable to find mtd device bdata for nvram block 1
[ 1.566023] NOT find device_node rsvd1 !
[ 1.570126] Failed to lock mtd Bdata
[ 1.573520] Failed to lock mtd FactoryFailed to lock mtd obrVFS: Cannot open root device "(null)" or unkn
own-block(0,0): error -6
[ 1.585916] Please append a correct "root=" boot option; here are the available partitions:
[ 1.594273] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.602546] Timer List Size:0
[ 1.605513] =====================================
[ 1.610223] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
当前在uboot命令行下输出env环境信息如下:
=> printenv
2gssid=Xiaomi-3e6s
5gssid=Xiaomi-3e6s-5G
CSN=33805000249822
CountryCode=CN
Router_unconfigured=0
SN=XXXXXXXX(省略)
autostart=yes
boot_wait=on
bootargs=console=ttyS0,115200 firmware=1
bootcmd=bootxq
bootdelay=5
bootfile=miwifi_ra71_firmware_f91f7_1.0.93.bin
color=101
elink_en=1
ethact=eth@1e100000
fdtcontroladdr=8fff0770
fileaddr=80010000
filesize=ca03c8
flag_boot_recovery=0
flag_boot_rootfs=1
flag_boot_success=1
flag_boot_type=2
flag_last_success=1
flag_ota_reboot=0
flag_show_upgrade_info=1
flag_try_sys1_failed=0
flag_try_sys2_failed=0
gatewayip=192.168.31.1
ipaddr=192.168.31.29
mgtpsd=a4a546mh
miot_did=544315976
miot_key=GeNu6xkf4rtZZ3w7
mode=Router
model=CR6609
model_alias=TR609
mtddevname=firmware1
mtddevnum=5
mtdids=nand0=ranand
mtdparts=mtdparts=ranand:512k(u-boot),512k(u-boot-env),512k(factory),512k(crash),30m(firmware),-(firmware1)
netmask=255.255.255.0
no_wifi_dev_times=0
nv_channel_secret=K0F6FLFC2CSYHnRgBG7iN6sO7XYctKtmcSsWECcjtGE=
nv_device_id=619f0654-82d5-8a77-f60a-fc6356c4431b
nv_sys_pwd=54d605ca729707a4f678b8963c0bdfbfad99a8c6
nv_wan_type=dhcp
nv_wifi_enc=psk2
nv_wifi_enc1=psk2
nv_wifi_pwd=yx123456
nv_wifi_pwd1=yx123456
nv_wifi_ssid=怡学
nv_wifi_ssid1=怡学-5G
panic_next_count=293
partition=nand0,5
restore_defaults=1
serverip=192.168.31.100
ssh_en=0
stderr=uartlite0@1e000c00
stdin=uartlite0@1e000c00
stdout=uartlite0@1e000c00
telnet_en=0
uart_en=0
wifipsd=8hm6wbuh
wl0_radio=1
wl0_ssid=Xiaomi_5G
wl1_radio=1
wl1_ssid=Xiaomi
wl2_ssid=ChinaNet_B308
Environment size: 1487/65532 bytes
以及当前分区信息:
=> mtdparts
device nand0 , # parts = 6
#: name size offset mask_flags
0: u-boot 0x00080000 0x00000000 0
1: u-boot-env 0x00080000 0x00080000 0
2: factory 0x00080000 0x00100000 0
3: crash 0x00080000 0x00180000 0
4: firmware 0x01e00000 0x00200000 0
5: firmware1 0x06000000 0x02000000 0
active partition: nand0,5 - (firmware1) 0x06000000 @ 0x02000000
defaults:
mtdids : nand0=ranand
mtdparts: mtdparts=ranand:512k(u-boot),512k(u-boot-env),512k(factory),512k(crash),30m(firmware),-(firmware1)
当前uboot可执行命令如下:
=> ?
? - alias for 'help'
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- ANSI terminal bootmenu
bootp - boot image via network using BOOTP/TFTP protocol
bootxq - bootxq - miwifi xqimage boot from flash
chpart - change active partition
cmp - memory compare
coninfo - print console devices and information
cp - memory copy
crc32 - checksum calculation
dhcp - boot image via network using DHCP/TFTP protocol
echo - echo args to console
editenv - edit environment variable
env - environment handling commands
fdt - flattened device tree utility commands
go - start application at address 'addr'
gpio - query and control gpio pins
help - print command description/usage
iminfo - print header information for application image
itest - return true/false on integer compare
loadb - load binary file over serial line (kermit mode)
loads - load S-Record file over serial line
loadx - load binary file over serial line (xmodem mode)
loady - load binary file over serial line (ymodem mode)
loop - infinite loop on address range
md - memory display
mm - memory modify (auto-incrementing address)
mnbc - MT7621 NAND bad block compatible management
mtdparts- define flash/nand partitions
mtkautoboot- Display MediaTek bootmenu
mtkboardboot- Boot MT7621 firmware
mtkload - MTK image loading utility
mtkupgrade- MTK firmware/bootloader upgrading utility
mw - memory write (fill)
nand - NAND sub-system
nboot - boot from NAND device
nm - memory modify (constant address)
ping - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
reset - Perform RESET of the CPU
run - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv - set environment variables
setexpr - set environment variable as the result of eval expression
sleep - delay execution for some time
source - run script from memory
tftpboot- boot image via network using TFTP protocol
version - print monitor, compiler and linker version
|
|