IPFire on A64-Olinuxino board

I try to setup IPFire on A64-Olinuxino board.
I have successfully prepared SD card and the kernel boot is successful. But when mounting rootfs, no sd card was found. I am guessing that the error might be due to a missing propper driver.
Could you please help me with this problem.
Here is bootlog

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.55-ipfire (root@arm64-01.dub.ipfire.org) (gcc (GCC) 11.1.0, GNU ld (GNU Binutils) 2.36.1) #1 SMP Mon Aug 9 07:48:52 GMT 2021
[    0.000000] Machine model: Olimex A64-Olinuxino
[    0.000000] efi: EFI v2.70 by Das U-Boot
[    0.000000] efi: SMBIOS=0x78f24000 MEMRESERVE=0x78ef8040 
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000047ef7fff]
[    0.000000]   node   0: [mem 0x0000000047ef8000-0x0000000047f07fff]
[    0.000000]   node   0: [mem 0x0000000047f08000-0x0000000078f23fff]
[    0.000000]   node   0: [mem 0x0000000078f24000-0x0000000078f2dfff]
[    0.000000]   node   0: [mem 0x0000000078f2e000-0x000000007df4ffff]
[    0.000000]   node   0: [mem 0x000000007df50000-0x000000007df5ffff]
[    0.000000]   node   0: [mem 0x000000007df60000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] On node 0 totalpages: 262144
[    0.000000]   DMA zone: 4096 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 262144 pages, LIFO batch:63
[    0.000000] cma: Reserved 8 MiB at 0x000000007f400000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] percpu: Embedded 30 pages/cpu s82712 r8192 d31976 u122880
[    0.000000] pcpu-alloc: s82712 r8192 d31976 u122880 alloc=30*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-5.10.55-ipfire root=UUID=e42bdd62-b13c-4e8c-8c8e-226bd0f4bf8a ro panic=10 console=ttyS0,115200n8
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:byref_all(zero), heap alloc:off, heap free:off
[    0.000000] Memory: 987212K/1048576K available (11648K kernel code, 2592K rwdata, 4916K rodata, 5120K init, 517K bss, 53172K reserved, 8192K cma-reserved)
[    0.000000] random: get_random_u64 called from __kmem_cache_create+0x34/0x480 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 36961 entries in 145 pages
[    0.000000] ftrace: allocated 145 pages with 3 groups
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000575] Console: colour dummy device 80x25
[    0.000631] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000646] pid_max: default: 32768 minimum: 301
[    0.000826] LSM: Security Framework initializing
[    0.000930] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000948] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.003004] rcu: Hierarchical SRCU implementation.
[    0.004019] Remapping and enabling EFI services.
[    0.004346] smp: Bringing up secondary CPUs ...
[    0.005554] Detected VIPT I-cache on CPU1
[    0.005633] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.006609] Detected VIPT I-cache on CPU2
[    0.006651] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.007511] Detected VIPT I-cache on CPU3
[    0.007549] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.007633] smp: Brought up 1 node, 4 CPUs
[    0.007650] SMP: Total of 4 processors activated.
[    0.007659] CPU features: detected: 32-bit EL0 Support
[    0.007666] CPU features: detected: CRC32 instructions
[    0.019107] CPU: All CPU(s) started at EL2
[    0.019193] alternatives: patching kernel code
[    0.020766] devtmpfs: initialized
[    0.026332] Registered cp15_barrier emulation handler
[    0.026355] Registered setend emulation handler
[    0.026583] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.026608] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.027385] pinctrl core: initialized pinctrl subsystem
[    0.028155] SMBIOS 3.0 present.
[    0.028175] DMI: sunxi sunxi/sunxi, BIOS 2019.01 03/03/2021
[    0.028728] NET: Registered protocol family 16
[    0.031056] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.031207] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.031389] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.032493] thermal_sys: Registered thermal governor 'fair_share'
[    0.032499] thermal_sys: Registered thermal governor 'step_wise'
[    0.032506] thermal_sys: Registered thermal governor 'user_space'
[    0.032632] cpuidle: using governor menu
[    0.032823] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.032941] ASID allocator initialised with 65536 entries
[    0.033137] Serial: AMBA PL011 UART driver
[    1.623912] cryptd: max_cpu_qlen set to 1000
[    1.638756] ACPI: Interpreter disabled.
[    1.639829] iommu: Default domain type: Translated 
[    1.640013] vgaarb: loaded
[    1.640633] SCSI subsystem initialized
[    1.640886] libata version 3.00 loaded.
[    1.641139] usbcore: registered new interface driver usbfs
[    1.641189] usbcore: registered new interface driver hub
[    1.641229] usbcore: registered new device driver usb
[    1.641947] Registered efivars operations
[    1.643573] clocksource: Switched to clocksource arch_sys_counter
[    1.707822] VFS: Disk quotas dquot_6.6.0
[    1.707909] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.708289] pnp: PnP ACPI: disabled
[    1.716014] NET: Registered protocol family 2
[    1.716201] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.717191] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.717222] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.717368] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.717533] TCP: Hash tables configured (established 8192 bind 8192)
[    1.717685] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.717723] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.717944] NET: Registered protocol family 1
[    1.717987] PCI: CLS 0 bytes, default 64
[    1.718223] Trying to unpack rootfs image as initramfs...
[    4.408726] Freeing initrd memory: 7424K
[    4.410655] Initialise system trusted keyrings
[    4.410976] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    4.471877] NET: Registered protocol family 38
[    4.471909] Key type asymmetric registered
[    4.471918] Asymmetric key parser 'x509' registered
[    4.471967] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.472113] io scheduler mq-deadline registered
[    4.472123] io scheduler kyber registered
[    4.472257] io scheduler bfq registered
[    4.473062] sun50i-de2-bus 1000000.de2: Error couldn't map SRAM to device
[    4.473654] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    4.478384] sun50i-a64-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    4.491041] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    4.492643] Serial: AMBA driver
[    4.504957] brd: module loaded
[    4.514251] loop: module loaded
[    4.516147] libphy: Fixed MDIO Bus: probed
[    4.516625] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.516647] ehci-pci: EHCI PCI platform driver
[    4.516717] ehci-platform: EHCI generic platform driver
[    4.516981] ehci-platform 1c1a000.usb: EHCI Host Controller
[    4.517009] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    4.517146] ehci-platform 1c1a000.usb: irq 21, io mem 0x01c1a000
[    4.543592] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    4.543821] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    4.543831] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.543839] usb usb1: Product: EHCI Host Controller
[    4.543847] usb usb1: Manufacturer: Linux 5.10.55-ipfire ehci_hcd
[    4.543854] usb usb1: SerialNumber: 1c1a000.usb
[    4.544408] hub 1-0:1.0: USB hub found
[    4.544445] hub 1-0:1.0: 1 port detected
[    4.545347] ehci-orion: EHCI orion driver
[    4.545502] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.545527] ohci-pci: OHCI PCI platform driver
[    4.545598] ohci-platform: OHCI generic platform driver
[    4.545757] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    4.545783] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    4.545917] ohci-platform 1c1a400.usb: irq 22, io mem 0x01c1a400
[    4.617746] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.10
[    4.617757] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.617765] usb usb2: Product: Generic Platform OHCI controller
[    4.617773] usb usb2: Manufacturer: Linux 5.10.55-ipfire ohci_hcd
[    4.617780] usb usb2: SerialNumber: 1c1a400.usb
[    4.618311] hub 2-0:1.0: USB hub found
[    4.618348] hub 2-0:1.0: 1 port detected
[    4.619111] uhci_hcd: USB Universal Host Controller Interface driver
[    4.619568] usbcore: registered new interface driver uas
[    4.619655] usbcore: registered new interface driver usb-storage
[    4.619850] mousedev: PS/2 mouse device common for all mice
[    4.620915] sun6i-rtc 1f00000.rtc: registered as rtc0
[    4.620957] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T03:15:20 UTC (11720)
[    4.620965] sun6i-rtc 1f00000.rtc: RTC enabled
[    4.622179] device-mapper: uevent: version 1.0.3
[    4.622460] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    4.622971] sun50i-a64-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    4.623529] sdhci: Secure Digital Host Controller Interface driver
[    4.623536] sdhci: Copyright(c) Pierre Ossman
[    4.623972] sdhci-pltfm: SDHCI platform and OF driver helper
[    4.624346] ledtrig-cpu: registered to indicate activity on CPUs
[    4.624573] efivars: get_next_variable: status=8000000000000007
[    4.624588] pstore: Registered efi as persistent store backend
[    4.624728] hid: raw HID events driver (C) Jiri Kosina
[    4.625296] usbcore: registered new interface driver usbhid
[    4.625302] usbhid: USB HID core driver
[    4.628331] Initializing XFRM netlink socket
[    4.628958] NET: Registered protocol family 10
[    4.643953] Segment Routing with IPv6
[    4.644198] NET: Registered protocol family 17
[    4.644284] Bridge firewalling registered
[    4.644464] Key type dns_resolver registered
[    4.644957] registered taskstats version 1
[    4.644972] Loading compiled-in X.509 certificates
[    4.660135] Loaded X.509 cert 'IPFire.org: Build time autogenerated kernel key: aa3f28aebd1a4fa82589a5c1574d1159dc03bfa2'
[    4.660455] pstore: Using crash dump compression: deflate
[    4.676710] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    4.677463] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    4.681998] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    4.682598] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    4.683247] printk: console [ttyS0] disabled
[    4.703487] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 28, base_baud = 1500000) is a U6_16550A
[    5.550677] printk: console [ttyS0] enabled
[    5.556440] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    5.556445] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    5.556646] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    5.564359] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    5.585968] sun4i-usb-phy 1c19400.phy: Couldn't get regulator usb0_vbus... Deferring probe
[    5.595572] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    5.595585] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    5.595795] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    5.595821] debugfs: Directory '1c20800.pinctrl-vcc-pg' with parent 'reg-dummy-regulator-dummy' already present!
[    5.603167] sun4i-usb-phy 1c19400.phy: Couldn't get regulator usb0_vbus... Deferring probe
[    5.636021] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    5.636053] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
[    5.643718] sun4i-usb-phy 1c19400.phy: Couldn't get regulator usb0_vbus... Deferring probe
[    5.644153] sun50i-a64-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    5.650668] debugfs: Directory '1c20800.pinctrl-vcc-pg' with parent 'reg-dummy-regulator-dummy' already present!
[    5.690904] Freeing unused kernel memory: 5120K
[    5.768852] Checked W+X mappings: passed, no W+X pages found
[    5.773240] Run /init as init process
[    5.775619]   with arguments:
[    5.775625]     /init
[    5.775629]   with environment:
[    5.775634]     HOME=/
[    5.775638]     TERM=linux
[    5.775643]     BOOT_IMAGE=/vmlinuz-5.10.55-ipfire
[    6.034977] dracut: dracut-038
[    6.400175] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    6.406203] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    6.412129] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    6.422758] udevd[227]: starting eudev-3.2.6
[   36.313638] usb1-vbus: disabling
[   43.364999] dracut Warning: Could not boot.
[   43.369179] dracut Warning: /dev/disk/by-uuid/e42bdd62-b13c-4e8c-8c8e-226bd0f4bf8a does not exist
[  204.374251] random: fast init done
[  267.304756] dracut Warning: Could not boot.
[  267.308937] dracut Warning: /dev/disk/by-uuid/e42bdd62-b13c-4e8c-8c8e-226bd0f4bf8a does not exist

P.S. I already had good experience installing IPFIre on A20-Olinuxiono (armv7) board. I did not compile a kernel image with special drivers, everything worked well

Cannot find this board in supported device list

Maybe it doesn’t have the right dts in the ipfire kernel or the config is not enabled.

There can be many things going wrong when the kernel loads.

This mean that the bootloader has correct set a matching device tree so i also think it’s a missing driver. e.g. for a voltage regulator/switch or the mmc itself.

2 Likes

Please try the latest next nightly build. The sun50i mmio driver was disabled, maybee it works now.

https://nightly.ipfire.org/next/latest/

1 Like

@mdemin Do you have a quick tutorial setting up ipfire at an Olimex A64-board. I’m really curious to use this board together with ipfire. Thanks in advance!