Radxa Cubie A5E

well, to quote djokovic in italian accent
"Not too baaad"
Code:
cpuid = 0
time = 12
KDB: stack backtrace:
db_trace_self() at db_trace_self
db_trace_self_wrapper() at db_trace_self_wrapper+0x30
vpanic() at vpanic+0x1d4
panic() at panic+0x44
vfs_mountroot() at vfs_mountroot+0x1dd4
start_init() at start_init+0x28
fork_exit() at fork_exit+0x8c
fork_trampoline() at fork_trampoline+0x14
KDB: enter: panic
[ thread pid 1 tid 100002 ]
Stopped at      kdb_enter+0x40: str     xzr, [x19, #640]
db> boot
No such command; use "help" to list available commands
db> reboot
Uptime: 12s

U-Boot SPL 2025.10 (Nov 10 2025 - 12:30:09 +0200)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE:  BL31: v2.12.0(debug):b5de74a68
NOTICE:  BL31: Built : 11:57:43, Nov 10 2025
NOTICE:  BL31: Detected Allwinner A523 SoC (1890)
NOTICE:  BL31: Found U-Boot DTB at 0xa0aa990, model: Radxa Cubie A5E
INFO:    GICv3 without legacy support detected.
INFO:    ARM GICv3 driver initialized in EL3
INFO:    Maximum SPI INTID supported: 287
INFO:    Configuring SPC Controller
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a55: CPU workaround for erratum 1530923 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9


U-Boot 2025.10 (Nov 10 2025 - 12:30:09 +0200) Allwinner Technology

CPU:   Allwinner A523 (SUN55I)
Model: Radxa Cubie A5E
DRAM:  2 GiB
sunxi_set_gate: (CLK#35) unhandled
Core:  77 devices, 22 uclasses, devicetree: separate
WDT:   Not starting watchdog@2050000
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1...
In:    serial@2500000
Out:   serial@2500000
Err:   serial@2500000
Net:   eth0: ethernet@4500000
starting USB...
USB EHCI 1.00
USB OHCI 1.0
USB EHCI 1.00
USB OHCI 1.0
Bus usb@4101000: 1 USB Device(s) found
Bus usb@4101400: 1 USB Device(s) found
Bus usb@4200000: 1 USB Device(s) found
Bus usb@4200400: 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
mmc0 is current device
Scanning mmc 0:1...
Booting: Label: mmc 0 Device path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(0)/SD(0)
console comconsole failed to initialize
Consoles: EFI console  serial port
    Reading loader env vars from /efi/freebsd/loader.env
Setting currdev to disk0p1:
FreeBSD/arm64 EFI loader, Revision 3.0

   Command line arguments: loader.efi
   Image base: 0xbad4c000
   EFI version: 2.110
   EFI Firmware: Das U-Boot (rev 8229.4096)
   Console: efi,comconsole (0)
   Load Path: /\EFI\BOOT\BOOTAA64.EFI
   Load Device: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(0)/SD(0)/HD(1,GPT,95c8a219-eb17-1743-8356-187f371e9fbc,0xf000,0x200000)
   BootCurrent: 0000
   BootOrder: 0000[*]
   BootInfo Path: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(0)/SD(0)
Ignoring Boot0000: Only one DP found
Trying ESP: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(0)/SD(0)/HD(1,GPT,95c8a219-eb17-1743-8356-187f371e9fbc,0xf000,0x200000)
Setting currdev to disk0p1:
Trying: /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,0000000000000000)/VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b,6f00000000000000)/SD(0)/SD(0)/HD(2,GPT,d16f7845-43ca-d042-a328-9deba0545726,0x20f000,0x1a91000)
Setting currdev to disk0p2:
Loading /boot/defaults/loader.conf
Loading /boot/defaults/loader.conf
Loading /boot/device.hints
Loading /boot/loader.conf
Loading /boot/loader.conf.local
/
Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0xa94dc0 text=0x2b0f2c data=0x160438 data=0x0+0x2c1000 0x8+0x16bfa8+0x8+0x1971ce|
Loading configured modules...
can't find '/a.dtb'
can't find '/boot/entropy'
can't find '/etc/hostid'

Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Using DTB provided by EFI at 0xbaee5000.
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.3-RELEASE GENERIC-DRM arm64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
VT: init without driver.
module scmi already present!
real memory  = 2147483648 (2048 MB)
avail memory = 2068451328 (1972 MB)
Starting CPU 1 (100)
Starting CPU 2 (200)
Starting CPU 3 (300)
Starting CPU 4 (400)
Starting CPU 5 (500)
Starting CPU 6 (600)
Starting CPU 7 (700)
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
gic0: <ARM Generic Interrupt Controller v3.0> mem 0x3400000-0x340ffff,0x3460000-0x355ffff irq 33 on simplebus0
its0: <ARM GIC Interrupt Translation Service> mem 0x3440000-0x345ffff on gic0
its0: Timeout while waiting for CMD completion.
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
generic_timer0: <ARMv8 Generic Timer> irq 1,2,3,4 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
aw_syscon0: <Allwinner syscon> mem 0x3000000-0x3000fff on simplebus0
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
pmu0: <Performance Monitoring Unit> irq 0 on ofwbus0
��]X.��r���standard ns8250 class UART with FIFOs> mem 0x2500000-0x25003ff irq 19 on simplebus0
uart0: console (-1,n,8,1)
musbotg0: <Allwinner USB DRD> mem 0x4100000-0x41003ff irq 34 on simplebus0
device_attach: musbotg0 attach returned 19
ehci0: <Generic EHCI Controller> mem 0x4101000-0x41010ff irq 35 on simplebus0
usbus0: EHCI version 1.0
usbus0 on ehci0
ohci0: <Generic OHCI Controller> mem 0x4101400-0x41014ff irq 36 on simplebus0
usbus1 on ohci0
ehci1: <Generic EHCI Controller> mem 0x4200000-0x42000ff irq 37 on simplebus0
usbus2: EHCI version 1.0
usbus2 on ehci1
ohci1: <Generic OHCI Controller> mem 0x4200400-0x42004ff irq 38 on simplebus0
usbus3 on ohci1
awg0: <Allwinner Gigabit Ethernet> mem 0x4500000-0x450ffff irq 39 on simplebus0
awg0: cannot get ahb reset
device_attach: awg0 attach returned 2
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iichb0: could not find clock
device_attach: iichb0 attach returned 19
armv8crypto0: <AES-CBC,AES-XTS,AES-GCM>
Timecounters tick every 1.000 msec
CPU  0: ARM Cortex-A55 r2p0 affinity:  0  0
                   Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG>
 Instruction Set Attributes 0 = <DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL>
 Instruction Set Attributes 1 = <RCPC-8.3,DCPoP>
 Instruction Set Attributes 2 = <>
         Processor Features 0 = <RAS,GIC,AdvSIMD+HP,FP+HP,EL3 32,EL2 32,EL1 32,EL0 32>
         Processor Features 1 = <PSTATE.SSBS>
         Processor Features 2 = <>
      Memory Model Features 0 = <TGran4,TGran64,TGran16,SNSMem,BigEnd,16bit ASID,1TB PA>
      Memory Model Features 1 = <XNX,PAN+ATS1E1,LO,HPD+TTPBHA,VH,16bit VMID,HAF+DS>
      Memory Model Features 2 = <32bit CCIDX,48bit VA,IESB,UAO,CnP>
      Memory Model Features 3 = <>
      Memory Model Features 4 = <>
             Debug Features 0 = <DoubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3p1,Debugv8p2>
             Debug Features 1 = <>
         Auxiliary Features 0 = <>
         Auxiliary Features 1 = <>
AArch32 Instruction Set Attributes 5 = <RDM,CRC32,SHA2,SHA1,AES+VMULL,SEVL>
AArch32 Media and VFP Features 0 = <FPRound,FPSqrt,FPDivide,DP VFPv3+v4,SP VFPv3+v4,AdvSIMD>
AArch32 Media and VFP Features 1 = <SIMDFMAC,FPHP Arith,SIMDHP Arith,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ>
CPU  1: ARM Cortex-A55 r2p0 affinity:  1  0
CPU  2: ARM Cortex-A55 r2p0 affinity:  2  0
CPU  3: ARM Cortex-A55 r2p0 affinity:  3  0
CPU  4: ARM Cortex-A55 r2p0 affinity:  4  0
CPU  5: ARM Cortex-A55 r2p0 affinity:  5  0
CPU  6: ARM Cortex-A55 r2p0 affinity:  6  0
CPU  7: ARM Cortex-A55 r2p0 affinity:  7  0
gic0: using for IPIs
Release APs...done
usbus0: 480Mbps High Speed USB v2.0
usbus2: 480Mbps High Speed USB v2.0
usbus3: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
TCP_ratelimit: Is now initialized
ugen0.1: <Generic EHCI root HUB> at usbus0
uhub0 on usbus0
uhub0: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Generic OHCI root HUB> at usbus1
ugen2.1: <Generic EHCI root HUB> at usbus2
ugen3.1: <Generic OHCI root HUB> at usbus3
uhub1 on usbus1
uhub2 on usbus3
uhub1: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
uhub2: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
uhub3 on usbus2
uhub3: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus2
uhub2: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
uhub0: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered

Loader variables:

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:zroot/ROOT/default
        cd9660:/dev/cd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot> random: unblocking device.
 
1762773045126.png
 

Attachments

  • 1762772978224.png
    1762772978224.png
    2 MB · Views: 47
dunno, they may have bought the original cubiestuff maker. it's also using allwinner soc.
ill try to add clocks and pinctrl/gpio, power ic support.
if i can get ethernet and sd card working it will be cool
 
got clocks, gpio, network
sd card works like shit
Code:
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...
Using DTB provided by EFI at 0xbaee5000.
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
WARNING: Cannot find freebsd,dts-version property, cannot check DTB compliance
Copyright (c) 1992-2023 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
    The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 14.3-RELEASE GENERIC-DRM arm64
FreeBSD clang version 19.1.7 (https://github.com/llvm/llvm-project.git llvmorg-19.1.7-0-gcd708029e0b2)
VT: init without driver.
module scmi already present!
real memory  = 2147483648 (2048 MB)
avail memory = 2068365312 (1972 MB)
Starting CPU 1 (100)
Starting CPU 2 (200)
Starting CPU 3 (300)
Starting CPU 4 (400)
Starting CPU 5 (500)
Starting CPU 6 (600)
Starting CPU 7 (700)
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
arc4random: WARNING: initial seeding bypassed the cryptographic random device because it was not yet seeded and the knob 'bypass_before_seeding' was enabled.
random: entropy device external interface
kbd0 at kbdmux0
ofwbus0: <Open Firmware Device Tree>
simplebus0: <Flattened device tree simple bus> on ofwbus0
regfix0: <Fixed Regulator> on ofwbus0
regfix1: <Fixed Regulator> on ofwbus0
psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
aw_rtc0: <Allwinner RTC> mem 0x7090000-0x70903ff irq 44 on simplebus0
aw_rtc0: Now i have the 'hosc'
aw_rtc0: registered as a time-of-day clock, resolution 1.000000s
ccu_a523ng0: <Allwinner A523 Clock Control Unit NG> mem 0x2001000-0x2001fff on simplebus0
ccu_sun55i_a523_r0: <Allwinner A523 Clock Control Unit NG> mem 0x7010000-0x701024f on simplebus0
gic0: <ARM Generic Interrupt Controller v3.0> mem 0x3400000-0x340ffff,0x3460000-0x355ffff irq 33 on simplebus0
its0: <ARM GIC Interrupt Translation Service> mem 0x3440000-0x345ffff on gic0
its0: Timeout while waiting for CMD completion.
gpio0: <Allwinner GPIO/Pinmux controller> mem 0x2000000-0x20007ff irq 5,6,7,8,9,10,11,12,13,14 on simplebus0
gpiobus0: <OFW GPIO bus> on gpio0
gpio1: <Allwinner GPIO/Pinmux controller> mem 0x7022000-0x70227ff irq 41,42 on simplebus0
gpiobus1: <OFW GPIO bus> on gpio1
iichb0: <Allwinner Integrated I2C Bus Controller> mem 0x7081400-0x70817ff irq 43 on simplebus0
iicbus0: <OFW I2C bus> on iichb0
generic_timer0: <ARMv8 Generic Timer> irq 1,2,3,4 on ofwbus0
Timecounter "ARM MPCore Timecounter" frequency 24000000 Hz quality 1000
Event timer "ARM MPCore Eventtimer" frequency 24000000 Hz quality 1000
aw_syscon0: <Allwinner syscon> mem 0x3000000-0x3000fff on simplebus0
cpulist0: <Open Firmware CPU Group> on ofwbus0
cpu0: <Open Firmware CPU> on cpulist0
pmu0: <Performance Monitoring Unit> irq 0 on ofwbus0
gpioc0: <GPIO controller> on gpio0
aw_mmc0: <Allwinner Integrated MMC/SD controller> mem 0x4020000-0x4020fff irq 15 on simplebus0
uart0: <Non-standard ns8250 class UART with FIFOs> mem 0x2500000-0x25003ff irq 19 on simplebus0
uart0: console (115384,n,8,1)
musbotg0: <Allwinner USB DRD> mem 0x4100000-0x41003ff irq 34 on simplebus0
usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM
usbus0 on musbotg0
ehci0: <Generic EHCI Controller> mem 0x4101000-0x41010ff irq 35 on simplebus0
usbus1: EHCI version 1.0
usbus1 on ehci0
ohci0: <Generic OHCI Controller> mem 0x4101400-0x41014ff irq 36 on simplebus0
usbus2 on ohci0
ehci1: <Generic EHCI Controller> mem 0x4200000-0x42000ff irq 37 on simplebus0
usbus3: EHCI version 1.0
usbus3 on ehci1
ohci1: <Generic OHCI Controller> mem 0x4200400-0x42004ff irq 38 on simplebus0
usbus4 on ohci1
awg0: <Allwinner Gigabit Ethernet> mem 0x4500000-0x450ffff irq 39 on simplebus0
miibus0: <MII bus> on awg0
ukphy0: <Generic IEEE 802.3u media interface> PHY 0 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
ukphy1: <Generic IEEE 802.3u media interface> PHY 1 on miibus0
ukphy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
awg0: Ethernet address: 02:10:2c:3f:ba:eb
gpioc1: <GPIO controller> on gpio1
iicbus0: <unknown card> at addr 0x68
iicbus0: <unknown card> at addr 0x6c
iic0: <I2C generic I/O> on iicbus0
armv8crypto0: <AES-CBC,AES-XTS,AES-GCM>
Timecounters tick every 1.000 msec
CPU  0: ARM Cortex-A55 r2p0 affinity:  0  0
                   Cache Type = <64 byte D-cacheline,64 byte I-cacheline,VIPT ICache,64 byte ERG,64 byte CWG>
 Instruction Set Attributes 0 = <DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL>
 Instruction Set Attributes 1 = <RCPC-8.3,DCPoP>
 Instruction Set Attributes 2 = <>
         Processor Features 0 = <RAS,GIC,AdvSIMD+HP,FP+HP,EL3 32,EL2 32,EL1 32,EL0 32>
         Processor Features 1 = <PSTATE.SSBS>
         Processor Features 2 = <>
      Memory Model Features 0 = <TGran4,TGran64,TGran16,SNSMem,BigEnd,16bit ASID,1TB PA>
      Memory Model Features 1 = <XNX,PAN+ATS1E1,LO,HPD+TTPBHA,VH,16bit VMID,HAF+DS>
      Memory Model Features 2 = <32bit CCIDX,48bit VA,IESB,UAO,CnP>
      Memory Model Features 3 = <>
      Memory Model Features 4 = <>
             Debug Features 0 = <DoubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3p1,Debugv8p2>
             Debug Features 1 = <>
         Auxiliary Features 0 = <>
         Auxiliary Features 1 = <>
AArch32 Instruction Set Attributes 5 = <RDM,CRC32,SHA2,SHA1,AES+VMULL,SEVL>
AArch32 Media and VFP Features 0 = <FPRound,FPSqrt,FPDivide,DP VFPv3+v4,SP VFPv3+v4,AdvSIMD>
AArch32 Media and VFP Features 1 = <SIMDFMAC,FPHP Arith,SIMDHP Arith,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ>
CPU  1: ARM Cortex-A55 r2p0 affinity:  1  0
CPU  2: ARM Cortex-A55 r2p0 affinity:  2  0
CPU  3: ARM Cortex-A55 r2p0 affinity:  3  0
CPU  4: ARM Cortex-A55 r2p0 affinity:  4  0
CPU  5: ARM Cortex-A55 r2p0 affinity:  5  0
CPU  6: ARM Cortex-A55 r2p0 affinity:  6  0
CPU  7: ARM Cortex-A55 r2p0 affinity:  7  0
gic0: using for IPIs
Release APs...usbus0: 480Mbps High Speed USB v2.0
done
usbus1: 480Mbps High Speed USB v2.0
usbus2: 12Mbps Full Speed USB v1.0
usbus4: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
TCP_ratelimit: Is now initialized
ugen0.1: <Mentor Graphics OTG Root HUB> at usbus0
ugen1.1: <Generic EHCI root HUB> at usbus1
ugen4.1: <Generic OHCI root HUB> at usbus4
ugen2.1: <Generic OHCI root HUB> at usbus2
ugen3.1: <Generic EHCI root HUB> at usbus3
uhub0 on usbus0
uhub1 on usbus1
uhub2 on usbus3
uhub3 on usbus2
uhub2: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub0: <Mentor Graphics OTG Root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
uhub4 on usbus4
uhub3: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
uhub4: <Generic OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
uhub1: <Generic EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
uhub4: 1 port with 1 removable, self powered
uhub3: 1 port with 1 removable, self powered
mmc0: <MMC/SD bus> on aw_mmc0
mmcsd0: 16GB <SDHC   0.0 SN 0000008D MFG 10/2021 by 69 -B> at mmc0 0.4MHz/4bit/4096-block
mmc0: Failed to set VCCQ for card at relative address 1
uhub0: 1 port with 1 removable, self powered
GEOM: mmcsd0: the primary GPT table is corrupt or invalid.
GEOM: mmcsd0: using the secondary instead -- recovery strongly advised.
GEOM: diskid/DISK-0000008D: the primary GPT table is corrupt or invalid.
GEOM: diskid/DISK-0000008D: using the secondary instead -- recovery strongly advised.
uhub2: 1 port with 1 removable, self powered
uhub1: 1 port with 1 removable, self powered
 
need to fix the regulators now
writing ccu drivers is a kind of modern torture
and the linux gang seems to add more crap every time they get a chance
why the fsck can't they use the same names for clocks as in the soc manual
fscking hosc losc iosc
 
its not the card itself, its something wrong with the driver
high speed timings do not work at all and i commented some code out and now it works like a better floppy and readonly

the networks seems to work well
 
clock code fixes fixed the sd card speed
now my regulator code is fscked causing panics or hard locks, sd card is still readonly (some gpio banks have no power or something)

anyway the people that made the DTS had some fun
axp_pmu0: Enable vcc-pc-and-their-dog (cldo1)

1763198290869.png
 
i2c driver is buggy
u-boot is buggy and locks once in 4 boots (memory size detected wrong and then hangs)
i2c driver does not work properly with interrupts disabled (during boot) so the pmic causes the board to lock up
sd card still readonly. controller times out on write attempts. if the write attempt is done by mount you get a panic
 
ok, applied u-boot patch, fixed i2c and the fscking sdcard
now i have a decent setup, don't have to switch from sd to usb or move sd to copy the new kernel
problem is mainline linux support is not great either and the official / mainline dts is kind of bare

no thermal, no opp tables, no spi, no pwm
it has the secondary gmac though that may work with a hacked eqos driver
and a blue led
 
ok, it has a separate clock controller for cpu (so for now it has 4 unlike the usual 1 or 2)
cpu operating points table is proprietary
but the blue led works
 
allwinner invented their own fsckin opp-v2 table which specifies the relation between cpu freq and cpu voltage
pc-s get it from acpi, arm boards usually from the dtb
a standard one looks like this
opp-480000000 {
opp-microvolt = <0xc8320 0xc8320 0x111700>;
};
opp-600000000 {
opp-microvolt = <0xc8320 0xc8320 0x111700>;
};
where opp-xxxxxxxx is cpu freq in hz and the voltage in uV (3 entries, target, min ,max)
now allwinner has this
opp@408000000 {
opp-microvolt-vf0000 = <0xdbba0>;
opp-microvolt-vf0100 = <0xdbba0>;
opp-microvolt-vf0102 = <0xdbba0>;
opp-microvolt-vf0200 = <0xdbba0>;
opp-microvolt-vf0201 = <0xdbba0>;
opp-microvolt-vf0300 = <0xdbba0>;
opp-microvolt-vf0301 = <0xdbba0>;
opp-microvolt-vf0302 = <0xdbba0>;
opp-microvolt-vf0400 = <0xdbba0>;
opp-microvolt-vf0500 = <0xdbba0>;
opp-microvolt-vf0502 = <0xdbba0>;
};
opp@672000000 {
opp-hz = <0x0 0x280de800>;

where vf0xxx is the cpu grade (binning)
and to determine your actual board's cpu grade you have *drumroll* 1000 fscking lines of code
that fscking file only to determine the fscking vf0xxx field and nothing else
sonsabitches

also this board has 2 clusters of 4 cpus with independent voltage and freq
i wonder what powerd will do
 
ok, thermal sensors, cpu freq control, powerd are working
now the second gmac i hope eqos(4) will work
 
Code:
awg0: flags=1008802<BROADCAST,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether 02:10:2c:3f:ba:eb
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
aw_eqos0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500
        options=8000b<RXCSUM,TXCSUM,VLAN_MTU,LINKSTATE>
        ether f2:00:ab:b7:0f:6a
        inet 10.1.1.60 netmask 0xffffff00 broadcast 10.1.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active
 
now serial flash and pcie so i can get rid of the sd card maybe.

the board has a shared phy so you can have either pcie either usb3 but not both at the same time
 
mx25l0 at cs 0 mode 0 on spibus0
mx25l0: device type w25q128jw, size 16384K in 256 sectors of 64K, erase size 4K
 
rk3568 shares sata/pcie/usb-3 but has another separate usb3 iirc
if i can make pcie work on this board ill use u-boot in spi flash and a small nvme instead of the sd card
 
ok, after some fighting it works. Filled it, read back and verified
Code:
[root@cubie ~]# dmesg|grep spif
aw_spif0: <Allwinner SPIF Controller> mem 0x47f0000-0x47f0fff irq 51 on simplebus0
aw_spif0: Clock set to 25000000 Hz
aw_spif0: Initialized (version 1.0.1)
spibus0: <OFW SPI bus> on aw_spif0
 
Back
Top