Jump to content

Sand_Death

Members
  • Posts

    3
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. @Nick A @alexc Update: Hailo8 AI HAT issue - Root cause found First, a quick update on the Ethernet issue — I set the board aside for a while, noticed some activity in the GitHub repository, rebuilt the firmware, and it worked. Now I'm trying to run Frigate with a Hailo8 AI HAT (marketed for Raspberry Pi 5, with an M.2 slot). The device loads firmware successfully but becomes completely unresponsive. After extensive debugging I believe I found the root cause. Problem: MSI interrupts not working bash$ cat /sys/bus/pci/devices/0000:04:00.0/msi_irqs/ # empty — MSI not configured $ lspci -vvv -s 04:00.0 | grep MSI Capabilities: [e0] MSI: Enable- Count=1/1 Maskable- 64bit+ Address: 0000000000000000 Data: 0000 # Address is zero — MSI never configured by kernel $ cat /proc/interrupts | grep hailo # empty — no interrupt handler registered Interrupt: pin ? routed to IRQ 492 # "?" means no INTx routing either Hailo8 uses MSI interrupts to signal command completion. Without MSI, every fw_control ioctl waits 1000ms and times out. The device loads firmware successfully but becomes unusable for any actual inference. PCIe topology: 00:00.0 Root Port 01:00.0 ASMedia ASM1182e PCIe Switch (upstream) 02:07.0 ASMedia ASM1182e PCIe Switch (downstream) 04:00.0 Hailo-8 AI Processor Kernel: 6.18.19-edge-sun60iw2 (Armbian community build) It seems the sunxi PCIe driver does not support MSI for devices behind an ASMedia PCIe switch. Is this a known limitation? Is there a fix or workaround available?
  2. Hi, @Nick A yes, of course, I extracted the archive and burned the .img image, but I burned the image using Armbian Imager. Today I tried burning the manufacturer's image to another flash drive, and it launched successfully. After that, I tried burning yours again, and everything worked on a different flash drive when burning it using BalenaEtcher! Amazing! The only thing I want to point out is that I have rev 1.10 selected, and the network card doesn't seem to be detected (wired connection). root@radxa-cubie-a7a:~# sudo lshw -class network *-network description: Wireless interface physical id: 12 logical name: wlan0 serial: 9c:04:b6:84:46:4b capabilities: ethernet physical wireless configuration: broadcast=yes driver=usb driverversion=6.18.19-edge-sun60iw2 ip=192.168.99.218 multicast=yes wireless=IEEE 802.11 root@radxa-cubie-a7a:~# I tried downloading and installing the driver from the radxa repository (the USB version). Because the dmesg output was like this. root@radxa-cubie-a7a:~# sudo dmesg | grep -i -E 'firmware|loading|failed' [ 0.000000] [ T0] psci: PSCIv1.1 detected in firmware. [ 0.000247] [ T0] sunxi:timer_sun50i:[ERR]: request bus clock failed [ 0.000252] [ T0] sunxi:timer_sun50i:[ERR]: sun50i timer of resource get failed [ 0.070642] [ T1] sunxi-iommu-v2 3900000.iommu: master probe failed with -517 [ 3.080921] [ T1] axp8191-temp-ctrl: Failed to locate of_node [id: 0] [ 3.210460] [ T1] NSI_PMU 2020000.nsi-controller: Get support-ecc failed [ 4.708335] [ T1] Loading compiled-in X.509 certificates [ 7.426931] [ T1] sunxi:VE:[WARN]: 392 ve_dvfs_get_attr(): get vf table failed, default 624MHz [ 7.459393] [ T1] sunxi:VE:[WARN]: 392 ve_dvfs_get_attr(): get vf table failed, default 624MHz [ 8.120987] [ T179] powervr 1800000.gpu: [drm] loaded firmware powervr/rogue_36.56.104.183_v1.fw [ 10.773578] [ T1] systemd[1]: systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67 [ 10.859899] [ T287] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_patch_table_8800d80_u02.bin [ 10.872268] [ T287] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_adid_8800d80_u02.bin [ 10.880698] [ T287] ### Upload fw_adid_8800d80_u02.bin firmware, @ = 201940 size=1708 [ 10.881217] [ T287] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_patch_8800d80_u02.bin [ 10.889530] [ T287] ### Upload fw_patch_8800d80_u02.bin firmware, @ = 1e0000 size=32192 [ 10.898148] [ T287] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fw_patch_8800d80_u02_ext0.bin [ 10.906475] [ T287] ### Upload fw_patch_8800d80_u02_ext0.bin firmware, @ = 20b43c size=13788 [ 10.934395] [ T287] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fmacfw_8800d80_u02.bin [ 10.943638] [ T287] ### Upload fmacfw_8800d80_u02.bin firmware, @ = 120000 size=349096 [ 11.028999] [ T287] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 12.141961] [ T335] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.162251] [ T335] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.219436] [ T9] aic_load_fw 1-1.4:1.0: probe with driver aic_load_fw failed with error -1 [ 12.219683] [ T9] aic_load_fw 1-1.4:1.1: probe with driver aic_load_fw failed with error -1 [ 12.219876] [ T9] aic_load_fw 1-1.4:1.2: probe with driver aic_load_fw failed with error -1 [ 12.344962] [ T9] AICWFDBG(LOGERROR) rwnx_load_firmware: aic_userconfig_8800d80.txt file failed to open [ 12.344978] [ T9] AICWFDBG(LOGERROR) wrong size of firmware file [ 12.392525] [ T77] sunxi:sound-ac101:[ERR]: 1725 ac101_probe(): try read ac101 5 times but failed, ac101 probe failed [ 12.413143] [ T77] sunxi-snd-mach soc@3000000:i2s0_mach: ASoC: failed to instantiate card -1 [ 12.427459] [ T77] sunxi-snd-mach soc@3000000:i2s0_mach: probe with driver sunxi-snd-mach failed with error -1 [ 12.775283] [ T1] systemd[1]: systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67 [ 13.577615] [ T1] systemd[1]: systemd-hibernate-clear.service - Clear Stale Hibernate Storage Info skipped, unmet condition check ConditionPathExists=/sys/firmware/efi/efivars/HibernateLocation-8cf2644b-4b0b-428f-9387-6d876050dc67 However, updating the driver didn't help. But as far as I understand, the AIC8800 drivers are the drivers for WiFi and Bluetooth. I also tried to torment Google Gemini and ran the command it recommended, its output is like this root@radxa-cubie-a7a:~# sudo dmesg | grep -i -E 'eth|mac|realtek|stmmac' [ 0.000000] [ T0] Machine model: sun60iw2 [ 0.000000] [ T0] psci: probing for conduit method from DT. [ 0.000000] [ T0] Kernel command line: root=UUID=34b3b4ba-6c61-4aff-9fb5-d8dbaf8a9d1e rootwait rootfstype=ext4 splash plymouth.ignore-serial-consoles console=ttyS0,115200 console=tty1 consoleblank=0 loglevel=7 ubootpart=7cb3a0a1-d0c5-4814-b3bf-acf7cb5fee06 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u mac_addr= coherent_pool=2M irqchip.gicv3_pseudo_nmi=0 cgroup_enable=cpuset cgroup_memory=1 swapaccount=1 kasan=off no_console_suspend fsck.fix=yes fsck.repair=yes net.ifnames=0 cgroup_enable=memory [ 0.000000] [ T0] Unknown kernel command line parameters "splash ubootpart=7cb3a0a1-d0c5-4814-b3bf-acf7cb5fee06 mac_addr= cgroup_enable=memory cgroup_memory=1", will be passed to user space. [ 4.882846] [ T12] sunxi-drm soc@3000000:sunxi-drm: late IOMMU probe at driver bind, something fishy here! [ 7.841902] [ T1] mac_addr= [ 9.766287] [ T1] systemd[1]: systemd 257.13-1~deb13u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +IPE +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBCRYPTSETUP_PLUGINS +LIBFDISK +PCRE2 +PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD +BPF_FRAMEWORK +BTF -XKBCOMMON -UTMP +SYSVINIT +LIBARCHIVE) [ 10.868628] [ T1] systemd[1]: systemd-pcrmachine.service - TPM PCR Machine ID Measurement skipped, unmet condition check ConditionSecurity=measured-uki [ 11.005686] [ T283] aic_load_firmware :firmware path = /lib/firmware/aic8800D80/fmacfw_8800d80_u02.bin [ 11.015312] [ T283] ### Upload fmacfw_8800d80_u02.bin firmware, @ = 120000 size=349096 [ 12.061513] [ T346] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,routing' with a value. [ 12.072296] [ T346] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,pin-switches' with a value. [ 12.089497] [ T346] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.107845] [ T346] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.156684] [ T346] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.176300] [ T346] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.211549] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,routing' with a value. [ 12.227920] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,pin-switches' with a value. [ 12.247053] [ T78] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.260641] [ T78] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.279264] [ T78] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.345223] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,routing' with a value. [ 12.345250] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,pin-switches' with a value. [ 12.345271] [ T78] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.345288] [ T78] sunxi:sound-mach:[ERR]: 537 simple_parse_of(): simple_dai_link_of failed [ 12.355471] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,routing' with a value. [ 12.355526] [ T78] OF: /soc@3000000/i2s0_mach: Read of boolean property 'soundcard-mach,pin-switches' with a value. [ 12.355570] [ T78] sunxi:sound-mach:[WARN]: 372 asoc_simple_parse_ucfmt(): set data late to default [ 12.355597] [ T78] OF: /soc@3000000/i2s0_mach/soundcard-mach,cpu: Read of boolean property 'soundcard-mach,mclk-fp' with a value. [ 12.355878] [ T78] sunxi-snd-mach soc@3000000:i2s0_mach: ASoC: DAPM unknown pin HS MIC Jack [ 12.355886] [ T78] sunxi-snd-mach soc@3000000:i2s0_mach: ASoC: DAPM unknown pin HP Jack [ 12.491963] [ T78] sunxi-snd-mach soc@3000000:i2s0_mach: ASoC: failed to instantiate card -1 [ 12.500679] [ T78] sunxi-snd-mach soc@3000000:i2s0_mach: probe with driver sunxi-snd-mach failed with error -1 [ 12.696783] [ T1] systemd[1]: systemd-machine-id-commit.service - Save Transient machine-id to Disk skipped, unmet condition check ConditionPathIsMountPoint=/etc/machine-id [ 12.879365] [ T1] systemd[1]: systemd-machine-id-commit.service - Save Transient machine-id to Disk skipped, unmet condition check ConditionPathIsMountPoint=/etc/machine-id [ 12.895054] [ T1] systemd[1]: systemd-pcrmachine.service - TPM PCR Machine ID Measurement skipped, unmet condition check ConditionSecurity=measured-uki [ 13.872897] [ T1] systemd[1]: systemd-machine-id-commit.service - Save Transient machine-id to Disk skipped, unmet condition check ConditionPathIsMountPoint=/etc/machine-id [ 13.888466] [ T1] systemd[1]: systemd-pcrmachine.service - TPM PCR Machine ID Measurement skipped, unmet condition check ConditionSecurity=measured-uki [ 15.517187] [ T983] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Could it be that a different type of Ethernet is used here?
  3. I just received a new Radxa Cubie A7A board. I decided to try flashing @Nick A firmware (https://github.com/NickAlilovic/build/releases/tag/Radxa-Cubie-A7A-A7Z-A7S-Mainline-V0.1), but the board simply wouldn't boot. I used a Netac 32 GB microSDHC card, class 10, UHS-I. I've attached the UART logs below.load.log
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines