Mainline U-Boot with SPI, NVMe and SATA boot support
#31
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)
  • 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
Disk 4 - 3TB HDD (GPT)
  • Partition 1 is the half of another RAID 1 array - md1
Normally I boot this off an SD card. My boot partition resides on the SD card, and the initrd has the modules it needs to setup RAID and LVM to allow me to boot form the SSDs.

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.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  4pin Connector for dual SATA m.ekstrom 2 135 05-14-2020, 02:33 AM
Last Post: mabs
  Failure to boot atcwells 1 84 05-10-2020, 03:06 PM
Last Post: atcwells
  RockPro 64 V2.1 Boot problem only DDR Version ... message nutilius 5 459 05-02-2020, 03:26 AM
Last Post: freeviv
  micro SD Card Slot Spring not working, Cant boot mjembd 1 86 04-16-2020, 12:30 AM
Last Post: mjembd
  sw4 jumper for disabling eMMC boot / multiboot ChriChri 0 115 03-09-2020, 08:54 AM
Last Post: ChriChri
  Defective? PCI-E -> SATA card no work good unregisteredidiot 11 1,919 02-19-2020, 09:08 AM
Last Post: fysa
  USB Type-C Display cable support (for 2 in 1: Video + Power) Paprika88 0 120 02-12-2020, 06:47 AM
Last Post: Paprika88
  rockpro64 support in the rockchip uboot dedoz 0 208 01-13-2020, 01:51 PM
Last Post: dedoz
  Vulkan support with rockpro64 rahulsharma 2 624 08-21-2019, 10:34 PM
Last Post: rahulsharma
  Rockpro64 boot issues larsgn 11 1,317 08-01-2019, 12:12 PM
Last Post: imapc99

Forum Jump:


Users browsing this thread: 1 Guest(s)