Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 02:28PM |
Registered: 1 year ago Posts: 11 |
[ 1.174598] Run /sbin/init as init process [ 1.197688] SQUASHFS error: xz decompression failed, data probably corrupt [ 1.204621] SQUASHFS error: Failed to read block 0x1138ce: -5 [ 1.210397] SQUASHFS error: Unable to read fragment cache entry [1138ce] [ 1.217127] SQUASHFS error: Unable to read page, block 1138ce, size 13d5c [ 1.223950] SQUASHFS error: Unable to read fragment cache entry [1138ce] [ 1.230685] SQUASHFS error: Unable to read page, block 1138ce, size 13d5c [ 1.237500] SQUASHFS error: Unable to read fragment cache entry [1138ce] [ 1.244236] SQUASHFS error: Unable to read page, block 1138ce, size 13d5c [ 1.251057] SQUASHFS error: Unable to read fragment cache entry [1138ce] [ 1.257780] SQUASHFS error: Unable to read page, block 1138ce, size 13d5c [ 1.264603] SQUASHFS error: Unable to read fragment cache entry [1138ce] [ 1.271342] SQUASHFS error: Unable to read page, block 1138ce, size 13d5c [ 1.278223] Starting init: /sbin/init exists but couldn't execute it (error -5) [ 1.285562] Run /etc/init as init process [ 1.289754] Run /bin/init as init process [ 1.295574] Run /bin/sh as init process BusyBox v1.35.0 (2023-04-27 20:28:15 UTC) built-in shell (ash) /bin/sh: can't access tty; job control turned off / #
NSA325> printenv baudrate=115200 bootcmd=usb reset; run usb_bootcmd; usb stop; reset bootdelay=3 console=console=ttyS0,115200 ethact=egiga0 ethaddr=5C:F4:AB:50:13:2C load_uimage=ext4load usb 0:1 0x800000 /boot/uImage load_uinitrd=ext4load usb 0:1 0x2100000 /boot/uInitrd mtddevname=uboot mtddevnum=0 mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:0x00c0000(uboot),0x80000(uboot_env),0x7ec0000(ubi) partition=nand0,0 stderr=serial stdin=serial stdout=serial usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000 usb_bootcmd=run usb_set_bootargs; run usb_boot usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial Environment size: 722/131068 bytes
mkfs.ext4 -E lazy_itable_init=0as mentioned. Then I unpacking Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and changing /etc/fstab to ext4. Of course every step in terminal not in GUI
NSA325> usb reset resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found NSA325> ext4ls usb 0:1 /boot Failed to iterate over directory boot ** Can not find directory. **
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 03:44PM |
Admin Registered: 14 years ago Posts: 19,314 |
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
cp -a uImage.orig uImage
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 04:21PM |
Registered: 1 year ago Posts: 11 |
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 05:22PM |
Admin Registered: 14 years ago Posts: 19,314 |
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 07:22PM |
Registered: 1 year ago Posts: 11 |
NSA325> usb info 0 config for device 0 *** No device available *** NSA325> ext2ls usb 0:1 /etc ** Can not find directory. **
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 29, 2023 08:22PM |
Admin Registered: 14 years ago Posts: 19,314 |
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 30, 2023 01:50PM |
Registered: 1 year ago Posts: 11 |
NSA325> boot resetting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found 6223944 bytes read in 665 ms (8.9 MiB/s) 5791271 bytes read in 602 ms (9.2 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-6.5.7-kirkwood-tld-1 Created: 2023-10-31 22:53:22 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 6223880 Bytes = 5.9 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 02100000 ... Image Name: initramfs-6.5.7-kirkwood-tld-1 Created: 2023-10-31 22:53:55 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 5791207 Bytes = 5.5 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Loading Ramdisk to 1f597000, end 1fb1cde7 ... OK Starting kernel ... Error: invalid dtb and unrecognized/unsupported machine ID r1=0x00000000, r2=0x00000100 r2[]=05 00 00 00 01 00 41 54 00 00 00 00 00 00 00 00 Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 30, 2023 02:39PM |
Admin Registered: 14 years ago Posts: 19,314 |
Quote
https://forum.doozan.com/read.php?2,12096
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
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 30, 2023 04:55PM |
Registered: 1 year ago Posts: 11 |
Running local boot scripts (/etc/rc.local) ssh-keygen: generating new host keys: RSA ECDSA ED25519 Starting OpenBSD Secure Shell server: sshd . . Debian GNU/Linux 12 debian ttyS0 debian login: Starting OpenBSD Secure Shell server: sshd Debian GNU/Linux 12 debian ttyS0 debian login:
Re: Debian on Zyxel NSA325v2 with U-boot from openwrt December 30, 2023 05:17PM |
Admin Registered: 14 years ago Posts: 19,314 |