Hi all , Nice advice about netinstall from miktotik.. indeed it recovered some false labeled bad blocks. But not all. Still, from 1.2MB free kernel nand I came to almost 2.2MB. Still.. old yaffs2 mounts and can copy kernel and execute it fine.. but LEDE, lede it seems is doing something wrong. It says it did sysupgrade fine, but it cannot boot.
root@RECOVERY:/tmp# sysupgrade -d 10 -i -n ./lede-ar71xx-mikrotik-nand-large-squ ashfs-sysupgrade.bin Image metadata not found Keep config files over reflash (y/N): N killall: watchdog: no process killed Watchdog handover: fd=3 - watchdog - killall: telnetd: no process killed Sending TERM to remaining processes ... ubusd hostapd dnsmasq [ 157.889278] br-lan: port 3(wlan0) entered disabled state Sending KILL to remaining processes ... Unlocking kernel ... Erasing kernel ... Skipping bad block at 0x4000 Skipping bad block at 0x8000 Skipping bad block at 0xc000 Skipping bad block at 0x10000 Skipping bad block at 0x14000 Skipping bad block at 0x18000 Skipping bad block at 0x1c000 Skipping bad block at 0x20000 Skipping bad block at 0x24000 Skipping bad block at 0x28000 Skipping bad block at 0x2c000 Skipping bad block at 0x30000 Skipping bad block at 0x34000 Skipping bad block at 0x38000 Skipping bad block at 0x3c000 Skipping bad block at 0x40000 Skipping bad block at 0x44000 Skipping bad block at 0x48000 Skipping bad block at 0x4c000 Skipping bad block at 0x50000 Skipping bad block at 0x54000 Skipping bad block at 0x58000 Skipping bad block at 0x5c000 Skipping bad block at 0x60000 Skipping bad block at 0x64000 Skipping bad block at 0x68000 Skipping bad block at 0x6c000 Skipping bad block at 0x70000 Skipping bad block at 0x74000 Skipping bad block at 0x78000 Skipping bad block at 0x7c000 Skipping bad block at 0x80000 Skipping bad block at 0x84000 Skipping bad block at 0x88000 Skipping bad block at 0x8c000 Skipping bad block at 0x90000 Skipping bad block at 0x94000 Skipping bad block at 0x98000 Skipping bad block at 0x9c000 Skipping bad block at 0xa0000 Skipping bad block at 0xa4000 Skipping bad block at 0xa8000 Skipping bad block at 0xac000 Skipping bad block at 0xb0000 Skipping bad block at 0xb4000 Skipping bad block at 0xb8000 Skipping bad block at 0xbc000 Skipping bad block at 0xc0000 Skipping bad block at 0xc4000 Skipping bad block at 0xc8000 Skipping bad block at 0xcc000 Skipping bad block at 0xd0000 Skipping bad block at 0xd4000 Skipping bad block at 0xd8000 Skipping bad block at 0xdc000 Skipping bad block at 0xe0000 Skipping bad block at 0xe4000 Skipping bad block at 0xe8000 Skipping bad block at 0xec000 Skipping bad block at 0xf0000 Skipping bad block at 0xf4000 Skipping bad block at 0xf8000 Skipping bad block at 0xfc000 Skipping bad block at 0x100000 Skipping bad block at 0x104000 Skipping bad block at 0x108000 Skipping bad block at 0x10c000 Skipping bad block at 0x110000 Skipping bad block at 0x114000 Skipping bad block at 0x118000 Skipping bad block at 0x11c000 Skipping bad block at 0x120000 Skipping bad block at 0x124000 Skipping bad block at 0x128000 Skipping bad block at 0x12c000 Skipping bad block at 0x130000 Skipping bad block at 0x134000 Skipping bad block at 0x138000 Skipping bad block at 0x13c000 Skipping bad block at 0x140000 Skipping bad block at 0x144000 Skipping bad block at 0x148000 Skipping bad block at 0x158000 Skipping bad block at 0x15c000 Skipping bad block at 0x160000 Skipping bad block at 0x164000 Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x4000 Bad block at 4000, 1 block(s) from 4000 will be skipped Writing data to block 2 at offset 0x8000 Bad block at 8000, 1 block(s) from 8000 will be skipped Writing data to block 3 at offset 0xc000 Bad block at c000, 1 block(s) from c000 will be skipped Writing data to block 4 at offset 0x10000 Bad block at 10000, 1 block(s) from 10000 will be skipped Writing data to block 5 at offset 0x14000 Bad block at 14000, 1 block(s) from 14000 will be skipped Writing data to block 6 at offset 0x18000 Bad block at 18000, 1 block(s) from 18000 will be skipped Writing data to block 7 at offset 0x1c000 Bad block at 1c000, 1 block(s) from 1c000 will be skipped Writing data to block 8 at offset 0x20000 Bad block at 20000, 1 block(s) from 20000 will be skipped Writing data to block 9 at offset 0x24000 Bad block at 24000, 1 block(s) from 24000 will be skipped Writing data to block 10 at offset 0x28000 Bad block at 28000, 1 block(s) from 28000 will be skipped Writing data to block 11 at offset 0x2c000 Bad block at 2c000, 1 block(s) from 2c000 will be skipped Writing data to block 12 at offset 0x30000 Bad block at 30000, 1 block(s) from 30000 will be skipped Writing data to block 13 at offset 0x34000 Bad block at 34000, 1 block(s) from 34000 will be skipped Writing data to block 14 at offset 0x38000 Bad block at 38000, 1 block(s) from 38000 will be skipped Writing data to block 15 at offset 0x3c000 Bad block at 3c000, 1 block(s) from 3c000 will be skipped Writing data to block 16 at offset 0x40000 Bad block at 40000, 1 block(s) from 40000 will be skipped Writing data to block 17 at offset 0x44000 Bad block at 44000, 1 block(s) from 44000 will be skipped Writing data to block 18 at offset 0x48000 Bad block at 48000, 1 block(s) from 48000 will be skipped Writing data to block 19 at offset 0x4c000 Bad block at 4c000, 1 block(s) from 4c000 will be skipped Writing data to block 20 at offset 0x50000 Bad block at 50000, 1 block(s) from 50000 will be skipped Writing data to block 21 at offset 0x54000 Bad block at 54000, 1 block(s) from 54000 will be skipped Writing data to block 22 at offset 0x58000 Bad block at 58000, 1 block(s) from 58000 will be skipped Writing data to block 23 at offset 0x5c000 Bad block at 5c000, 1 block(s) from 5c000 will be skipped Writing data to block 24 at offset 0x60000 Bad block at 60000, 1 block(s) from 60000 will be skipped Writing data to block 25 at offset 0x64000 Bad block at 64000, 1 block(s) from 64000 will be skipped Writing data to block 26 at offset 0x68000 Bad block at 68000, 1 block(s) from 68000 will be skipped Writing data to block 27 at offset 0x6c000 Bad block at 6c000, 1 block(s) from 6c000 will be skipped Writing data to block 28 at offset 0x70000 Bad block at 70000, 1 block(s) from 70000 will be skipped Writing data to block 29 at offset 0x74000 Bad block at 74000, 1 block(s) from 74000 will be skipped Writing data to block 30 at offset 0x78000 Bad block at 78000, 1 block(s) from 78000 will be skipped Writing data to block 31 at offset 0x7c000 Bad block at 7c000, 1 block(s) from 7c000 will be skipped Writing data to block 32 at offset 0x80000 Bad block at 80000, 1 block(s) from 80000 will be skipped Writing data to block 33 at offset 0x84000 Bad block at 84000, 1 block(s) from 84000 will be skipped Writing data to block 34 at offset 0x88000 Bad block at 88000, 1 block(s) from 88000 will be skipped Writing data to block 35 at offset 0x8c000 Bad block at 8c000, 1 block(s) from 8c000 will be skipped Writing data to block 36 at offset 0x90000 Bad block at 90000, 1 block(s) from 90000 will be skipped Writing data to block 37 at offset 0x94000 Bad block at 94000, 1 block(s) from 94000 will be skipped Writing data to block 38 at offset 0x98000 Bad block at 98000, 1 block(s) from 98000 will be skipped Writing data to block 39 at offset 0x9c000 Bad block at 9c000, 1 block(s) from 9c000 will be skipped Writing data to block 40 at offset 0xa0000 Bad block at a0000, 1 block(s) from a0000 will be skipped Writing data to block 41 at offset 0xa4000 Bad block at a4000, 1 block(s) from a4000 will be skipped Writing data to block 42 at offset 0xa8000 Bad block at a8000, 1 block(s) from a8000 will be skipped Writing data to block 43 at offset 0xac000 Bad block at ac000, 1 block(s) from ac000 will be skipped Writing data to block 44 at offset 0xb0000 Bad block at b0000, 1 block(s) from b0000 will be skipped Writing data to block 45 at offset 0xb4000 Bad block at b4000, 1 block(s) from b4000 will be skipped Writing data to block 46 at offset 0xb8000 Bad block at b8000, 1 block(s) from b8000 will be skipped Writing data to block 47 at offset 0xbc000 Bad block at bc000, 1 block(s) from bc000 will be skipped Writing data to block 48 at offset 0xc0000 Bad block at c0000, 1 block(s) from c0000 will be skipped Writing data to block 49 at offset 0xc4000 Bad block at c4000, 1 block(s) from c4000 will be skipped Writing data to block 50 at offset 0xc8000 Bad block at c8000, 1 block(s) from c8000 will be skipped Writing data to block 51 at offset 0xcc000 Bad block at cc000, 1 block(s) from cc000 will be skipped Writing data to block 52 at offset 0xd0000 Bad block at d0000, 1 block(s) from d0000 will be skipped Writing data to block 53 at offset 0xd4000 Bad block at d4000, 1 block(s) from d4000 will be skipped Writing data to block 54 at offset 0xd8000 Bad block at d8000, 1 block(s) from d8000 will be skipped Writing data to block 55 at offset 0xdc000 Bad block at dc000, 1 block(s) from dc000 will be skipped Writing data to block 56 at offset 0xe0000 Bad block at e0000, 1 block(s) from e0000 will be skipped Writing data to block 57 at offset 0xe4000 Bad block at e4000, 1 block(s) from e4000 will be skipped Writing data to block 58 at offset 0xe8000 Bad block at e8000, 1 block(s) from e8000 will be skipped Writing data to block 59 at offset 0xec000 Bad block at ec000, 1 block(s) from ec000 will be skipped Writing data to block 60 at offset 0xf0000 Bad block at f0000, 1 block(s) from f0000 will be skipped Writing data to block 61 at offset 0xf4000 Bad block at f4000, 1 block(s) from f4000 will be skipped Writing data to block 62 at offset 0xf8000 Bad block at f8000, 1 block(s) from f8000 will be skipped Writing data to block 63 at offset 0xfc000 Bad block at fc000, 1 block(s) from fc000 will be skipped Writing data to block 64 at offset 0x100000 Bad block at 100000, 1 block(s) from 100000 will be skipped Writing data to block 65 at offset 0x104000 Bad block at 104000, 1 block(s) from 104000 will be skipped Writing data to block 66 at offset 0x108000 Bad block at 108000, 1 block(s) from 108000 will be skipped Writing data to block 67 at offset 0x10c000 Bad block at 10c000, 1 block(s) from 10c000 will be skipped Writing data to block 68 at offset 0x110000 Bad block at 110000, 1 block(s) from 110000 will be skipped Writing data to block 69 at offset 0x114000 Bad block at 114000, 1 block(s) from 114000 will be skipped Writing data to block 70 at offset 0x118000 Bad block at 118000, 1 block(s) from 118000 will be skipped Writing data to block 71 at offset 0x11c000 Bad block at 11c000, 1 block(s) from 11c000 will be skipped Writing data to block 72 at offset 0x120000 Bad block at 120000, 1 block(s) from 120000 will be skipped Writing data to block 73 at offset 0x124000 Bad block at 124000, 1 block(s) from 124000 will be skipped Writing data to block 74 at offset 0x128000 Bad block at 128000, 1 block(s) from 128000 will be skipped Writing data to block 75 at offset 0x12c000 Bad block at 12c000, 1 block(s) from 12c000 will be skipped Writing data to block 76 at offset 0x130000 Bad block at 130000, 1 block(s) from 130000 will be skipped Writing data to block 77 at offset 0x134000 Bad block at 134000, 1 block(s) from 134000 will be skipped Writing data to block 78 at offset 0x138000 Bad block at 138000, 1 block(s) from 138000 will be skipped Writing data to block 79 at offset 0x13c000 Bad block at 13c000, 1 block(s) from 13c000 will be skipped Writing data to block 80 at offset 0x140000 Bad block at 140000, 1 block(s) from 140000 will be skipped Writing data to block 81 at offset 0x144000 Bad block at 144000, 1 block(s) from 144000 will be skipped Writing data to block 82 at offset 0x148000 Bad block at 148000, 1 block(s) from 148000 will be skipped Writing data to block 83 at offset 0x14c000 Writing data to block 84 at offset 0x150000 Writing data to block 85 at offset 0x154000 Writing data to block 86 at offset 0x158000 Bad block at 158000, 1 block(s) from 158000 will be skipped Writing data to block 87 at offset 0x15c000 Bad block at 15c000, 1 block(s) from 15c000 will be skipped Writing data to block 88 at offset 0x160000 Bad block at 160000, 1 block(s) from 160000 will be skipped Writing data to block 89 at offset 0x164000 Bad block at 164000, 1 block(s) from 164000 will be skipped Writing data to block 90 at offset 0x168000 Writing data to block 91 at offset 0x16c000 Writing data to block 92 at offset 0x170000 Writing data to block 93 at offset 0x174000 Writing data to block 94 at offset 0x178000 Writing data to block 95 at offset 0x17c000 Writing data to block 96 at offset 0x180000 Writing data to block 97 at offset 0x184000 Writing data to block 98 at offset 0x188000 Writing data to block 99 at offset 0x18c000 Writing data to block 100 at offset 0x190000 Writing data to block 101 at offset 0x194000 Writing data to block 102 at offset 0x198000 Writing data to block 103 at offset 0x19c000 Writing data to block 104 at offset 0x1a0000 Writing data to block 105 at offset 0x1a4000 Writing data to block 106 at offset 0x1a8000 Writing data to block 107 at offset 0x1ac000 Writing data to block 108 at offset 0x1b0000 Writing data to block 109 at offset 0x1b4000 Writing data to block 110 at offset 0x1b8000 Writing data to block 111 at offset 0x1bc000 Writing data to block 112 at offset 0x1c0000 Writing data to block 113 at offset 0x1c4000 Writing data to block 114 at offset 0x1c8000 Writing data to block 115 at offset 0x1cc000 Writing data to block 116 at offset 0x1d0000 Writing data to block 117 at offset 0x1d4000 Writing data to block 118 at offset 0x1d8000 Writing data to block 119 at offset 0x1dc000 Writing data to block 120 at offset 0x1e0000 Writing data to block 121 at offset 0x1e4000 Writing data to block 122 at offset 0x1e8000 Writing data to block 123 at offset 0x1ec000 Writing data to block 124 at offset 0x1f0000 Writing data to block 125 at offset 0x1f4000 Writing data to block 126 at offset 0x1f8000 Writing data to block 127 at offset 0x1fc000 Writing data to block 128 at offset 0x200000 Writing data to block 129 at offset 0x204000 Writing data to block 130 at offset 0x208000 Writing data to block 131 at offset 0x20c000 Writing data to block 132 at offset 0x210000 Writing data to block 133 at offset 0x214000 Writing data to block 134 at offset 0x218000 Writing data to block 135 at offset 0x21c000 Writing data to block 136 at offset 0x220000 Writing data to block 137 at offset 0x224000 Writing data to block 138 at offset 0x228000 Writing data to block 139 at offset 0x22c000 Writing data to block 140 at offset 0x230000 Writing data to block 141 at offset 0x234000 Writing data to block 142 at offset 0x238000 Writing data to block 143 at offset 0x23c000 Writing data to block 144 at offset 0x240000 Writing data to block 145 at offset 0x244000 Writing data to block 146 at offset 0x248000 Writing data to block 147 at offset 0x24c000 Writing data to block 148 at offset 0x250000 Writing data to block 149 at offset 0x254000 Writing data to block 150 at offset 0x258000 Writing data to block 151 at offset 0x25c000 Writing data to block 152 at offset 0x260000 Writing data to block 153 at offset 0x264000 Writing data to block 154 at offset 0x268000 Writing data to block 155 at offset 0x26c000 Writing data to block 156 at offset 0x270000 Writing data to block 157 at offset 0x274000 Writing data to block 158 at offset 0x278000 Writing data to block 159 at offset 0x27c000 Writing data to block 160 at offset 0x280000 Writing data to block 161 at offset 0x284000 Writing data to block 162 at offset 0x288000 Writing data to block 163 at offset 0x28c000 Writing data to block 164 at offset 0x290000 Writing data to block 165 at offset 0x294000 Writing data to block 166 at offset 0x298000 [ 167.046589] ubi0: attaching mtd6 [ 172.549729] ubi0: scanning is finished [ 172.604889] ubi0: attached mtd6 (name "ubi", size 60 MiB) [ 172.610290] ubi0: PEB size: 16384 bytes (16 KiB), LEB size: 15360 bytes [ 172.616932] ubi0: min./max. I/O unit sizes: 512/512, sub-page size 512 [ 172.623439] ubi0: VID header offset: 512 (aligned 512), data offset: 1024 [ 172.630221] ubi0: good PEBs: 3832, bad PEBs: 8, corrupted PEBs: 0 [ 172.636308] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 89 [ 172.643427] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 209361708 [ 172.652458] ubi0: available PEBs: 0, total reserved PEBs: 3832, PEBs reserved for bad PEB handling: 72 [ 172.661767] ubi0: background thread "ubi_bgt0d" started, PID 1131 UBI device number 0, total 3832 LEBs (58859520 bytes, 56.1 MiB), available 0 LEBs (0 bytes), LEB size 15360 bytes (15.0 KiB) Volume ID 0, size 88 LEBs (1351680 bytes, 1.3 MiB), LEB size 15360 bytes (15.0 KiB), dynamic, name "kernel", alignment 1 Volume ID 1, size 1154 LEBs (17725440 bytes, 16.9 MiB), LEB size 15360 bytes (15.0 KiB), dynamic, name "rootfs", alignment 1 Set volume size to 38615040 Volume ID 2, size 2514 LEBs (38615040 bytes, 36.8 MiB), LEB size 15360 bytes (15.0 KiB), dynamic, name "rootfs_data", alignment 1 sysupgrade successful umount: can't unmount /dev: Resource busy umount: can't unmount /tmp: Resource [ 197.839219] reboot: Restarting system � RouterBOOT booter 3.24 RouterBoard 435G CPU frequency: 680 MHz Memory size: 256 MiB NAND size: 64 MiB Press any key within 1 seconds to enter setup. loading kernel from nand... kernel not found trying bootp protocol................ On Wed, Mar 8, 2017 at 8:28 AM, Alberto Bursi <alberto.bu...@outlook.it> wrote: > > > On 03/07/2017 11:09 PM, Denis Periša wrote: >> Alberto , thank you for insight! >> >> This device in latest "RouterBOOT" (as they call it) supports >> repartitioning to two partitions. But openwrt/LEDE (kernel actually) >> doesent support that - as per say - >> >> RouterBOOT booter 3.24 >> >> RouterBoard 435G >> >> CPU frequency: 680 MHz >> Memory size: 256 MiB >> NAND size: 64 MiB >> NAND partitions: 2 >> >> Press any key within 1 seconds to enter setup. >> writing settings to flash... OK >> >> loading kernel from nand partition 1... kernel not found >> writing settings to flash... OK >> >> loading kernel from nand partition 0... OK >> setting up elf image... not an elf header >> kernel loading failed >> trying bootp protocol.................... OK >> Got IP address: 192.168.111.91 >> resolved mac address 00:XX:XX:00:06:XX >> Gateway: 192.168.111.2 >> transfer started .................... transfer ok, time=1.24s >> setting up elf image... OK >> kernel loading failed - kernel does not support NAND partitions >> >> > > No, that log says it didn't find a kernel in NAND in either partition 0 > or 1. > > The repartitioning changes partitions in bootloader, but you need to > erase the flash of these new partitions, then flash a new LEDE firmware > in these new partitions. The bootloader should be able to do this. > > Did you also edit that source file and recompile as I pointed out? That > is needed for LEDE to actually recognize the new partitions once it is > booted successfully. > > -Alberto > _______________________________________________ > Lede-dev mailing list > Lede-dev@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/lede-dev _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev