本帖最后由 laomao9000 于 2019-6-28 22:35 编辑
lintel说在PB-BOOT可以跳过坏块,正确第装入initramfs固件,这一步我已经完成了。现在可以启动,进入initramfs的固件,接下来的第三步不明白,具体如何做个upgrade?是在web页面做固件升级吗?(3.third,do sysupgrade follow firmware under the "initramfs firmware"
)
目前问题:我启动initramfs,通过固件升级安装了固件,仍然无法启动:
1、启动initramfs,进入固件升级界面,安装PandoraBox-ralink-mt7621-xiaomi-r3p-2019-02-17-git-9d8fbcf27-squashfs-sysupgrade.bin
TTL输出:
killall: dropbear: no process killed Sending TERM to remaining processes ...logd rpcd netifd odhcpd crond ntpd dnsmasq sh sysupgrade ubus ubusd Sending KILL to remaining processes ... Performing system upgrade... Unlocking kernel ... Writing from <stdin> to kernel... [e] Skipping bad block at 0x00020000[e] Skipping bad block at 0x00040000[e] Skipping bad block at 0x00060000[e] Skipping bad block at 0x00080000[e] Skipping bad block at 0x000a0000[e] Skipping bad block at 0x000c0000[e] Skipping bad block at 0x000e0000[e] Skipping bad block at 0x00100000[e] Skipping bad block at 0x00120000[e] Skipping bad block at 0x00140000[e] Skipping bad block at 0x0016000 ubidetach: error!: cannot detach"/dev/mtd10" error 19 (No such device) ubiformat: mtd10 (nand), size 244711424bytes (233.4 MiB), 1867 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size2048 bytes libscan: scanning eraseblock 1866 -- 100 %complete ubiformat: 1866 eraseblocks have validerase counter, mean value is 0 ubiformat: 1 eraseblocks are supposedlyempty ubiformat: flashing eraseblock 151 -- 100 %complete ubifo[ 143.584000] UBI: attaching mtd10 to ubi0mplete ubiformat: formatting eraseblock 1[ 143.644000] UBI: EOF marker found, PEBs from147 will be erased 812 -- 96 % comp[ 143.652000] UBI: scanning is finished ubifo[ 143.676000] UBI: volume 1 ("rootfs_data") re-sized from 9 to1678 LEBs rmat: formatting eraseblock 1817[ 143.684000] UBI: attached mtd10 (name"ubi", size 233 MiB) to ubi0 --97 % complet[ 143.692000] UBI: PEB size:131072 bytes (128 KiB), LEB size: 126976 bytes ubiformat: f[ 143.700000] UBI: min./max. I/O unit sizes:2048/2048, sub-page size 2048 ormatting eraseb[ 143.708000] UBI: VID header offset: 2048(aligned 2048), data offset: 4096 lock 1818 -- 97 [ 143.716000] UBI: good PEBs: 1867, bad PEBs:0, corrupted PEBs: 0 ubi[ 143.724000] UBI: user volume: 2, internal volumes: 1, max. volumescount: 128 format: formatti[ 143.732000] UBI: max/mean erase counter: 2/1,WL threshold: 4096, image sequence number: 96317419 ng eraseblock 18[ 143.744000] UBI: available PEBs: 0, totalreserved PEBs: 1867, PEBs reserved for bad PEB handling: 40 19 -- 97 % compl[ 143.752000] UBI: background thread"ubi_bgt0d" started, PID 1867 ubiformat: formatting eraseblock 1866 --100 % complete UBI device number 0, total 1867 LEBs(237064192 bytes, 226.1 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes(124.0 KiB) sysupgrade successful umount: can't unmount /dev: Device orresource busy umount: can't unmount /tmp: Device orresource busy [ 145.300000] reboot: Restarting system [ 145.304000] soft-resetting all blocks ...
2、安装完毕,自动重启,报CRC错误,自动进入PBBOOT
PandoraBox-Boot Version 2.1 Build:Feb 21 2019-07:26:39 SoC:MT7621AT Memory-Testing...524288K OK DRAM HighMem Reserved MT7621:CPU clock set to 880Mhz PCIe:reset controller Software System Reset PB-Boot running at 0x9BF9C000! NAND: MT29F2G08ABAEA 256MiB Using internal default config Board:Xiaomi R3P PandoraBox GPIO subsystem init PandoraBox MT762x GPIO driver initialized. GPIO_Mode_REG: 0x000AD028 PandoraBox LED subsystem init LED [Power] registered PandoraBox Button subsystem init Button [Reset] registered Enable USB#1 Power MT7530 GSW initialized MT7530 set LAN/WAN WLLLL 0 Booting from Flash... Booting image from bc200000 ... Image Name: MIPS PandoraBoxLinux-3.14.79 Image Type: MIPS Linux KernelImage (lzma compressed) Data Size: 1489355 Bytes = 1.4 MB Load Address: 80001000 Entry Point: 80001000 ranand_read: skip reading a bad block220000 -> 240000 ranand_read: skip reading a bad block240000 -> 260000 ranand_read: skip reading a bad block260000 -> 280000 ranand_read: skip reading a bad block280000 -> 2a0000 ranand_read: skip reading a bad block2a0000 -> 2c0000 ranand_read: skip reading a bad block2c0000 -> 2e0000 ranand_read: skip reading a bad block2e0000 -> 300000 ranand_read: skip reading a bad block300000 -> 320000 ranand_read: skip reading a bad block320000 -> 340000 ranand_read: skip reading a bad block340000 -> 360000 ranand_read: skip reading a bad block360000 -> 380000 Verifying Checksum ... Bad Data CRC ______________________________________________________ | | | HTTPD Recovery Modulev3.0 | | | | Note lease Use Web Browser Upgrade theFirmware ! | | | | Copyright 2017 PandoraBox Team | |____________________________________________________| [kernel]uOS Version: v2.0 [kernel]PWM-LED Thread started!! [kernel]Task Thread started!! [TCP/IP]ETH0 MAC:78:11 C:05:C2:4C [TCP/IP]Max ReceiveBuffer:1492! [TCP/IP]IP:192.168.1.1 [TCP/IP]Netmask:255.255.255.0 [TCP/IP]Default Router:0.0.0.0 [DHCPD]Server IP:192.168.1.1 Ralink GMAC initializing [kernel]Enter uOS core task!
|