Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] (2 replies)

$
0
0
I have NSA325, which has U-Boot 2023.04-tld-1 and OpenWRT 22.04. I have serial port attached and easily available. ROM has 3 bad blocks, all above >1M (I think? log at end).

I want to install debian on it (since it has latest kernel and probably better perf). My plan is to install debian first and then upgrade uBoot since default OpenWRT does not seem to want to run nanddump (nanddump did not work -- i think it was a conflict between musl and ldd).

I made a USB stick with debian-6.5.7 on ext3 partition with label 'rootfs'. I think it's loading it successfully, but then quickly failing with invalid dtb and unrecognized/unsupported machine ID. I attached full serial log in attachment. Also added env_vars which are default ones.

Log from bad blocks:
root@OpenNAS:/# dmesg | grep block                                                                                                       
[    0.704375] Scanning device for bad blocks                                                                                            
[    0.722691] Bad eraseblock 149 at 0x0000012a0000                                                                                      
[    0.758898] Bad eraseblock 482 at 0x000003c40000                                                                                      
[    0.777547] Bad eraseblock 630 at 0x000004ec0000


Lastly, my uboot installation is smaller than 1M. See below, it's only 786kb. I think I can fix it once I get debian to boot, but if I need to reflash u-boot I might as well extend it :)
root@OpenNAS:/# cat /proc/mtd                                                                                                            
dev:    size   erasesize  name                                                                                                           
mtd0: 000c0000 00020000 "uboot"                                                                                                          
mtd1: 00080000 00020000 "uboot_env"                                                                                                      
mtd2: 07ec0000 00020000 "ubi"

Please let me know if anything else will help with debugging! I'll try to get kwboot setup next.

Viewing all articles
Browse latest Browse all 3247

Trending Articles