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

Trying to boot Debian 12 inside Asustor AS-1002T NAS, I am almost finished but stuck at something (8 replies)

$
0
0
I was trying to install debian armhf to my Asustor AS-1002T NAS. I used debian Linksys WRT-AC1200 official guide: https://wiki.debian.org/InstallingDebianOn/Linksys/WRT1200AC because it used the same CPU, and probably same ethernet driver too. Because it downloaded all the stuff from the internet inside the installer, so it works. Changed the links and stuff to the bookworm accordingly. So, I set u boot to load that installer, done everything. I completed the install.
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. So I asked chatgpt to how to do it without flash-kernel, it said to me just pass on those flash-kernel related commands.
So it said me to do just:
sudo update-initramfs -u

Then I just did it. Then chatgpt gave me some temporary and permanent booting options(if temporary works at all) I checked it with
ext2ls scsi 0:1 /

so I can see that files, vmlinuz and initrd stuff.
So these were the commands chatgpt said:
setenv bootargs 'console=ttyS0,115200 root=/dev/sda2 rw rootwait'
saveenv
reset

After the reset, stop booting then enter these commands:
scsi init
ext2load scsi 0:1 0x80000000 /vmlinuz
ext2load scsi 0:1 0x88000000 /initrd.img
bootz 0x80000000 0x88000000

But, it’s stuck actually. It won’t do anything after that. I removed the HDD from inside, and checked if the vmlinuz is actually zImage, because that’s what bootz does, loads zImages. So it’s a zImage after all:
$:file vmlinuz-6.1.0-21-armmp
vmlinuz-6.1.0-21-armmp: Linux kernel ARM boot executable zImage (little-endian)

This is the u-boot output when I try these, no output even after 5 minutes. Why would it boot the debian installer and not this? I am very close. No device is up I checked it from my router too:
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

Viewing all articles
Browse latest Browse all 3247

Trending Articles