Hi,I followed https://wiki.debian.org/InstallingDebianOn/Allwinner#Installing_from_an_SD_card_image using the daily build of the unstable netboot installer from https://d-i.debian.org/daily-images/arm64/20221009-02:38/netboot/SD-card-images/ and I was able to install successfully but the system does not boot - it tries to boot from eMMC actually:
U-Boot SPL 2020.04+olimex-2-20210111.165338 (Jan 30 2020 - 11:10:18 +0000) DRAM: 2048 MiB Trying to boot from MMC2 NOTICE: BL31: v2.2(debug):v2.2-8-g51ce3c6-dirty NOTICE: BL31: Built : 19:42:23, Mar 20 2020 NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689) NOTICE: BL31: Found U-Boot DTB at 0x40ab7d8, model: Olimex A64-Olinuxino-eMMC INFO: ARM GICv2 driver initialized INFO: Configuring SPC Controller NOTICE: BL31: PMIC: Detected AXP803 on RSB. INFO: PMIC: AXP803: Enabling DRIVEVBUS INFO: PMIC: AXP803: dcdc1 voltage: 3.300V INFO: PMIC: AXP803: dcdc5 voltage: 1.360V INFO: PMIC: AXP803: dcdc6 voltage: 1.100V INFO: PMIC: AXP803: dldo1 voltage: 3.300V INFO: PMIC: AXP803: dldo4 voltage: 3.300V INFO: BL31: Platform setup done INFO: BL31: Initializing runtime services INFO: BL31: cortex_a53: CPU workaround for 843419 was applied INFO: BL31: cortex_a53: CPU workaround for 855873 was applied INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x4a000000 INFO: SPSR = 0x3c9U-Boot 2020.04+olimex-2-20210111.165338 (Jan 30 2020 - 11:10:18 +0000) Allwinner Technology
CPU: Allwinner A64 (SUN50I) Model: Olimex A64-Olinuxino-eMMC DRAM: 2 GiB MMC: mmc@1c0f000: 0, mmc@1c11000: 1 Loading Environment from EXT4... ** File not found /uboot.env ** ** Unable to read "/uboot.env" from mmc0:1 ** In: serial Out: serial Err: serial Allwinner mUSB OTG (Peripheral) Net: phy interface7 eth0: ethernet@1c30000 Warning: usb_ether using MAC address from ROM , eth1: usb_ether starting USB... Bus usb@1c1a000: USB EHCI 1.00 Bus usb@1c1a400: USB OHCI 1.0 Bus usb@1c1b000: USB EHCI 1.00 Bus usb@1c1b400: USB OHCI 1.0 scanning bus usb@1c1a000 for devices... 1 USB Device(s) found scanning bus usb@1c1a400 for devices... 1 USB Device(s) found scanning bus usb@1c1b000 for devices... 1 USB Device(s) found scanning bus usb@1c1b400 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found U-Boot script /boot.scr 2904 bytes read in 1 ms (2.8 MiB/s) ## Executing script at 4fc00000 30797760 bytes read in 1340 ms (21.9 MiB/s) 29408 bytes read in 3 ms (9.3 MiB/s) 32463063 bytes read in 1412 ms (21.9 MiB/s) Booting Debian 5.19.0-2-arm64 from mmc 0:1... ## Flattened Device Tree blob at 4fa00000 Booting using the fdt blob at 0x4fa00000 Loading Ramdisk to 4810a000, end 49fff8d7 ... OK Loading Device Tree to 00000000480ff000, end 00000000481092df ... OK Starting kernel ...[I didn't use the exact same board as the reporter but the industrial variant of that board - I don't see any reason why they should behave differently in that regard.]
When I tried to install u-boot again from an chroot, I got (/dev/sda is the SDCARD and I needed to install u-boot-sunxi):
$ sudo systemd-nspawn -q -E DEBIAN_FRONTEND=noninteractive -E LANG=C -E LC_ALL=C -D /PATH/WHERE/I/MOUNTED/THE/SDCARD --bind=/dev/sda -E TARGET=/usr/lib/u-boot/a64-olinuxino-emmc/ u-boot-install-sunxi64 /dev/sda /usr/bin/u-boot-install-sunxi64: device/image (/dev/sda) uses GPT partition table, unusable on sunxi64
fdisk gives me: Disk /dev/sda: 14,72 GiB, 15804137472 bytes, 30867456 sectors Disk model: STORAGE DEVICE Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: SOME-UUID Device Start End Sectors Size Type /dev/sda1 2048 999423 997376 487M Linux filesystem /dev/sda2 999424 28866559 27867136 13,3G Linux filesystem /dev/sda3 28866560 30865407 1998848 976M Linux swapTo me it seems the debian-installer (or is it flash-kernel-installer?) is doing something wrong here ...
Might be related to https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1000313 I'm happy to debug further, but I'm lost. Best, Philip
OpenPGP_signature
Description: OpenPGP digital signature