Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] June 01, 2025 11:06PM |
Registered: 17 days ago Posts: 4 |
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
root@OpenNAS:/# cat /proc/mtd dev: size erasesize name mtd0: 000c0000 00020000 "uboot" mtd1: 00080000 00020000 "uboot_env" mtd2: 07ec0000 00020000 "ubi"
Re: Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] June 01, 2025 11:56PM |
Admin Registered: 14 years ago Posts: 19,688 |
NSA325> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'setenv usb_set_bo otargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial' NSA325> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' NSA325> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' NSA325> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'setenv usb_boot 'mw 0x800000 0 1; r un load_uimage; run load_uinitrd; bootm 0x800000 0x2100000' NSA325> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot' NSA325> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset' NSA325> printenv
Quote
4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-6.5.7-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.5.7-kirkwood-tld-1 -d zImage.fdt uImage
sync
cd /media/sdb1/boot cp -a zImage-6.5.7-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-nsa325.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.5.7-kirkwood-tld-1 -d zImage.fdt uImage sync
Re: Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] June 02, 2025 12:39AM |
Registered: 17 days ago Posts: 4 |
Re: Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] June 02, 2025 02:52PM |
Admin Registered: 14 years ago Posts: 19,688 |
Re: Replace Debian with openWRT [invalid dtb and unrecognized/unsupported machine ID] June 12, 2025 11:47AM |
Registered: 17 days ago Posts: 4 |