Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 15, 2024 04:59PM |
Registered: 5 months ago Posts: 13 |
sudo update-initramfs -u
ext2ls scsi 0:1 /
setenv bootargs 'console=ttyS0,115200 root=/dev/sda2 rw rootwait' saveenv reset
scsi init ext2load scsi 0:1 0x80000000 /vmlinuz ext2load scsi 0:1 0x88000000 /initrd.img bootz 0x80000000 0x88000000
$:file vmlinuz-6.1.0-21-armmp vmlinuz-6.1.0-21-armmp: Linux kernel ARM boot executable zImage (little-endian)
Marvell>> scsi init AHCI init for unit0 SATA link 0 timeout. Target spinup took 0 ms. Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found scanning bus for devices... Device 0: (1:0) Vendor: ATA Prod.: ST9160310AS Rev: 0303 Type: Hard Disk Capacity: 152627.8 MB = 149.0 GB (312581808 x 512) Found 1 device(s). Marvell>> ext2load scsi 0:1 0x80000000 /vmlinuz 5423616 bytes read in 237 ms (21.8 MiB/s) Marvell>> ext2load scsi 0:1 0x88000000 /initrd.img 23415107 bytes read in 987 ms (22.6 MiB/s) Marvell>> grep Unknown command 'grep' - try 'help' Marvell>> bootz 0x80000000 0x88000000
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 15, 2024 05:50PM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
One thing is I didn’t do flash-kernel related stuff, because the E-MMC inside is borked totally, or I couldn’t see it from debian installer.
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 15, 2024 06:04PM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
Invoke /usr/sbin/flash-kernel, it should overwrite /dev/mtd4 with Debian kernel and /dev/mtd5 with Debian initrd.
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 06:37AM |
Registered: 5 months ago Posts: 13 |
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 06:39AM |
Registered: 5 months ago Posts: 13 |
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 02:57PM |
Admin Registered: 13 years ago Posts: 19,094 |
cat vmlinuz armada-385-linksys-caiman.dtb > blob mkimage -A arm -O linux -T kernel -C none -a 0x200000 -e 0x200000 -n "d-i" -d blob vmlinux mkimage -A arm -O linux -T ramdisk -C gzip -a 0x4200000 -e 0x4200000 -n "d-i initrd" -d initrd.gz initrd
ext2load scsi 0:1 0x80000000 /vmlinuzIt must have the DTB appended like the installer, and must be in u-boot format (i.e. uImage, uInitrd). These images have a u-boot header and a payload.
Marvell>> bootz 0x80000000 0x88000000
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 04:10PM |
Registered: 5 months ago Posts: 13 |
DTB appended, got it. I assume it is done with something similiar with those mkimage commands? I think I've done it too. I've appended the dtb to vmlinuz and turned it into a uImage in the end. Just curious, why not zImage though? Because this marvell's u-boot has bootz command too.Quote
bodhi
It must have the DTB appended like the installer, and must be in u-boot format (i.e. uImage, uInitrd). These images have a u-boot header and a payload.
I think flash-kernel is for MTD devices isn't it? My MTD is broken or inaccessible, atleast the rootfs part. u-boot works.Quote
bodhi
No, there is no need to run update-initramfs. IIRC, in Debian installation, that only relevant after you have set up flash-kernel.
I think it has 512MB. Is that so? Because tftpboot command as default, writes to that 0x8000000 field. For example, I used this guide to install debian: https://wiki.debian.org/InstallingDebianOn/Linksys/WRT1200ACQuote
bodhi
How much RAM this box has? 0x80000000 is 2GB.
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 05:22PM |
Admin Registered: 13 years ago Posts: 19,094 |
> I think flash-kernel is for MTD devices isn't it?Quote
bodhi
> No, there is no need to run update-initramfs.
> IIRC, in Debian installation, that only relevant
> after you have set up flash-kernel.
>
bdinfo map # this might not work help printenvAnd please post the entire log here.
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something June 16, 2024 07:19PM |
Registered: 5 months ago Posts: 13 |
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something July 03, 2024 05:20PM |
Registered: 5 months ago Posts: 13 |
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something July 04, 2024 01:42AM |
Registered: 2 years ago Posts: 82 |
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something July 04, 2024 03:24PM |
Admin Registered: 13 years ago Posts: 19,094 |
Quote
Mijzelf
It's common practice to use the names uImage and uInitrd (which could be symlinks to uImage-<version> etc) for u-boot images. vmlinux normally is a 'raw' kernel.
Quote
ahlaklisuvari
First of all, there are some problems with ethernet on this device
Quote
https://forum.doozan.com/read.php?2,32146
Updated 25 Jan 2023:
Kernel 6.1.8-mvebu-tld-1 package has been uploaded.
armada-385-atl-x530.dtb armada-385-clearfog-gtr-l8.dtb armada-385-clearfog-gtr-s4.dtb armada-385-db-88f6820-amc.dtb armada-385-db-ap.dtb armada-385-linksys-caiman.dtb armada-385-linksys-cobra.dtb armada-385-linksys-rango.dtb armada-385-linksys-shelby.dtb armada-385-synology-ds116.dtb armada-385-synology-ds216.dtb armada-385-synology-ds218j.dtb armada-385-synology-rs816.dtb armada-385-thecus-n2350.dtb armada-385-turris-omnia.dtb armada-385-wd-ex2100.dtb armada-385-wd-ex2-ultra.dtb
Re: Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something July 06, 2024 02:56PM |
Admin Registered: 13 years ago Posts: 19,094 |
bdinfo md.l f1018000 8 md.l f1018100 1 md.l f1018140 1 help printenvand then boot
bootLet it boot all the way to the Debian login prompt.