05-28-2020, 03:54 PM
I can't believe I've only just stumbled on this thread. Amazing work getting this together. Seriously, congrats.
I've flashed this is an SD card as per the instructions, but I've run into issues. I have a Marvell 88SE9230 4-port SATA card, and my disk partition layouts look like this:
Disk 1 - 128GB Kingston SSD (GPT)
Disk 2 - 128GB Kingston SSD (GPT)
Disk 3 - 3TB HDD (GPT)
I can boot into your U-Boot no problem. If I run the bootcmd_scsi0 script, I get this output:
This can be mitigated by putting a sleep of a few seconds between `pci enum` and `scsi reset`. However, `scsi reset` still outputs an error at the end:
Nevertheless, running `run bootcmd_scsi0` at this point almost works:
As you can see, it's dead slow (2kB in 15 seconds) and never fully manages to fetch the initrd from the disk. Is there any troubleshooting I can do? I've worked a little on U-Boot source in the past, plus I have an incentive to get this working, so if there is anything I can do to help fix something like this I am more than happy to get involved.
I've flashed this is an SD card as per the instructions, but I've run into issues. I have a Marvell 88SE9230 4-port SATA card, and my disk partition layouts look like this:
Disk 1 - 128GB Kingston SSD (GPT)
- Partition 1 is by boot partition - 260MB FAT32 set as EFI in the partition table
- Partition 2 is one half of my a RAID 1 array - md0 - which has LVM on top. My RootFS is an LVM volume in this.
Disk 2 - 128GB Kingston SSD (GPT)
- Partition 1 is an empty 128MB partition
- Partition 2 is the other half of my md0 RAID 1 array
Disk 3 - 3TB HDD (GPT)
- Partition 1 is one half of another RAID 1 array - md1 - with LVM on top for data storage
- Partition 1 is the half of another RAID 1 array - md1
I can boot into your U-Boot no problem. If I run the bootcmd_scsi0 script, I get this output:
Code:
run bootcmd_scsi0
PCIE-0: Link up (Bus0)
scanning bus for devices...
controller reset failed (0x1)
Device 0: unknown device
This can be mitigated by putting a sleep of a few seconds between `pci enum` and `scsi reset`. However, `scsi reset` still outputs an error at the end:
Code:
Reset SCSI
scanning bus for devices...
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
Target spinup took 0 ms.
AHCI 0001.0200 32 slots 8 ports 6 Gbps 0xff impl SATA mode
flags: 64bit ncq pio
No Link on this port!
Can not start port 5
No Link on this port!
Can not start port 6
Device 0: (0:0) Vendor: ATA Prod.: KINGSTON SA400S3 Rev: SBFK
Type: Hard Disk
Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)
Device 1: (1:0) Vendor: ATA Prod.: KINGSTON SA400S3 Rev: SBFK
Type: Hard Disk
Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)
Device 2: (2:0) Vendor: ATA Prod.: ST3000DM007-1WY1 Rev: 0001
Type: Hard Disk
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
Device 3: (3:0) Vendor: ATA Prod.: WDC WD30EURX-63T Rev: 80.0
Type: Hard Disk
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)
timeout exit!
Nevertheless, running `run bootcmd_scsi0` at this point almost works:
Code:
=> run bootcmd_scsi0
Device 0: (0:0) Vendor: ATA Prod.: KINGSTON SA400S3 Rev: SBFK
Type: Hard Disk
Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)
... is now current device
Scanning scsi 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
2089 bytes read in 15441 ms (0 Bytes/s)
select kernel
1: kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213
2: kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213-memtest
3: kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524
4: kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524-memtest
Enter choice: 1: kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213
Retrieving file: /boot/initrd.img-4.4.202-1237-rockchip-ayufan-gfd4492386213
Skipping kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213 for failure retrieving initrd
2: kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213-memtest
Retrieving file: /boot/initrd.img-4.4.202-1237-rockchip-ayufan-gfd4492386213
Skipping kernel-4.4.202-1237-rockchip-ayufan-gfd4492386213-memtest for failure retrieving initrd
3: kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524
Retrieving file: /boot/initrd.img-4.4.132-1075-rockchip-ayufan-ga83beded8524
Skipping kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524 for failure retrieving initrd
4: kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524-memtest
Retrieving file: /boot/initrd.img-4.4.132-1075-rockchip-ayufan-ga83beded8524
Skipping kernel-4.4.132-1075-rockchip-ayufan-ga83beded8524-memtest for failure retrieving initrd
SCRIPT FAILED: continuing...
As you can see, it's dead slow (2kB in 15 seconds) and never fully manages to fetch the initrd from the disk. Is there any troubleshooting I can do? I've worked a little on U-Boot source in the past, plus I have an incentive to get this working, so if there is anything I can do to help fix something like this I am more than happy to get involved.