johang / sd-card-images

Scripts to build bootable SD card images with Debian for various single-board computers
https://sd-card-images.johang.se
GNU General Public License v3.0
140 stars 32 forks source link

AML-S905X-CC (Le Potato) v1 does not boot #68

Closed hensou closed 11 months ago

hensou commented 11 months ago

Hi, first thanks a lot for your work.

I've tried to use the debian bookworm image, with the bootloader, for the AML-S905X-CC (Le Potato) v1 but when I try to boot it gives me the following error:

SB:0;SPI:0;CHK:A7;EMMC:400;NAND:81;SD:0;READ:0;0.0;CHK:0;
no sdio debug board detected
TE: 1894605

BL2 Built : 16:20:27, Apr 19 2018. gxl g9478cf1 - jenkins@walle02-sh

set vcck to 1120 mv
set vddee to 1000 mv
Board ID = 3
CPU clk: 1200MHz
DQS-corr enabled
DDR scramble enabled
DDR3 chl: Rank0+1 @ 912MHz
bist_test rank: 0 1a 02 33 2a 16 3e 17 00 2f 2e 18 44 19 01 32 28 12 3f 17 00 2f 2a 13 41 712  rank: 1 16 00 2d 29 13 3f 13 00 27 2c 15 44 1a 05 2f 2a 14 41 19 04 2f 2b 14 43 712   - PASS

Rank0: 1024MB(auto)-2T-13

Rank1: 1024MB(auto)-2T-13
AddrBus test pass!
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from SD, src: 0x00010200, des: 0x013c0000, size: 0x0000d600
Load bl31 from SD, src: 0x00020200, des: 0x05100000, size: 0x0002c600
Load bl33 from SD, src: 0x00050200, des: 0x01000000, size: 0x000b5e00
NOTICE:  BL3-1: v1.0(release):b60a036
NOTICE:  BL3-1: Built : 17:03:54, Apr 10 2018
[BL31]: GXL CPU setup!
NOTICE:  BL3-1: GXL normal boot!
mpu_config_enable:ok
[Image: gxl_v1.1.3308-45470c4 2018-04-12 16:22:58 jenkins@walle02-sh]
OPS=0x85
21 0e 85 00 e7 25 8e 3a 01 5f 4a 18 c6 c3 45 12
[3.688403 Inits done]
secure task start!
high task start!
low task start!
ERROR:   Error initializing runtime service opteed_fast

<debug_uart>

U-Boot 2023.07-rc6-g0beb6490 (Jul 08 2023 - 20:14:12 +0000) libretech-cc

Model: Libre Computer AML-S905X-CC
SoC:   Amlogic Meson GXL (S905X) Revision 21:e (85:2)
DRAM:  2 GiB
Core:  168 devices, 28 uclasses, devicetree: separate
MMC:   mmc@72000: 0, mmc@74000: 1
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
[BL31]: tee size: 0
[BL31]: tee size: 0
Net:   eth0: ethernet@c9410000
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:2...
Found U-Boot script /boot/boot.scr
893 bytes read in 2 ms (435.5 KiB/s)
## Executing script at 08000000
5329408 bytes read in 228 ms (22.3 MiB/s)
24628814 bytes read in 1043 ms (22.5 MiB/s)
Unknown command 'bootz' - try 'help'
SCRIPT FAILED: continuing...
No EFI system partition
No EFI system partition
Failed to persist EFI variables
BootOrder not defined
EFI boot manager: Cannot load any image
MMC Device 2 not found
no mmc device at slot 2
starting USB...
Bus usb@c9000000: dwc3_meson_gxl_get_phys: usb2 ports: 2
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus usb@c9000000 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device
ethernet@c9410000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
Could not initialize PHY ethernet@c9410000

Would you happen to know know what is the issue here? If so, and some development is needed I would be more the glad to help with a PR, tough I might need some guidance.

Again, thanks for your amazing work.

johang commented 11 months ago
Found U-Boot script /boot/boot.scr
893 bytes read in 2 ms (435.5 KiB/s)
## Executing script at 08000000
5329408 bytes read in 228 ms (22.3 MiB/s)
24628814 bytes read in 1043 ms (22.5 MiB/s)
Unknown command 'bootz' - try 'help'

Looks like you have the armhf image. S905X has an armv8 CPU. You should use the arm64 image. See the install instructions on the web page.

hensou commented 11 months ago

You are totally right 🤦🏽, I might have confused the images. Sorry for wasting your time and again, thanks for your work.