Closed mcrabtree1 closed 1 year ago
what about ifconfig -a
root@analog:~# ifconfig -a eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.10.122 netmask 255.255.255.0 broadcast 192.168.10.255 inet6 fe80::5c47:1ff8:cd35:da9d prefixlen 64 scopeid 0x20 ether 00:05:f7:80:30:7a txqueuelen 1000 (Ethernet) RX packets 46 bytes 5779 (5.6 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 115 bytes 18886 (18.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 36 base 0xb000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
root@analog:~#
what is the dmesg
output after you do all above operations?
root@analog:~/openwifi# dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.0-98248-g1bbe32fa5182-dirty (jxj@jxj-pc) (arm-xilinx-linux-gnueabi-gcc.real (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.0.20200730) #3 SMP PREEMPT Tue Feb 7 16:53:49 CET 2023
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Analog Devices ADRV9364-Z7020 (Z7020/AD9364)
[ 0.000000] OF: fdt: earlycon: stdout-path /amba@0/uart@E0001000 not found
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 128 MiB at 0x16800000
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000001fffffff]
[ 0.000000] HighMem empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000001fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 15 pages/cpu s29900 r8192 d23348 u61440
[ 0.000000] pcpu-alloc: s29900 r8192 d23348 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlycon rootfstype=ext4 rootwait clk_ignore_unused cpuidle.off=1
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 371420K/524288K available (8192K kernel code, 803K rwdata, 5732K rodata, 1024K init, 151K bss, 21796K reserved, 131072K cma-reserved, 0K highmem)
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[ 0.000000] Trampoline 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=2
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] efuse mapped to (ptrval)
[ 0.000000] slcr mapped to (ptrval)
[ 0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
[ 0.000000] random: get_random_bytes called from start_kernel+0x33c/0x4dc with crng_init=0
[ 0.000000] zynq_clock_init: clkc starts at (ptrval)
[ 0.000000] Zynq clock init
[ 0.000010] sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
[ 0.000029] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
[ 0.000055] Switching to timer-based delay loop, resolution 3ns
[ 0.000144] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
[ 0.000182] timer #0 at (ptrval), irq=25
[ 0.000760] Console: colour dummy device 80x30
[ 0.000788] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
[ 0.000805] pid_max: default: 32768 minimum: 301
[ 0.000983] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000998] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001633] CPU: Testing write buffer coherency: ok
[ 0.001668] CPU0: Spectre v2: using BPIALL workaround
[ 0.001833] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002335] Setting up static identity map for 0x100000 - 0x100060
[ 0.002475] rcu: Hierarchical SRCU implementation.
[ 0.002763] smp: Bringing up secondary CPUs ...
[ 0.003543] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.003552] CPU1: Spectre v2: using BPIALL workaround
[ 0.003688] smp: Brought up 1 node, 2 CPUs
[ 0.003701] SMP: Total of 2 processors activated (1333.33 BogoMIPS).
[ 0.003709] CPU: All CPU(s) started in SVC mode.
[ 0.004174] devtmpfs: initialized
[ 0.008426] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.008918] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008946] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.015076] pinctrl core: initialized pinctrl subsystem
[ 0.016208] NET: Registered protocol family 16
[ 0.018431] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.019778] thermal_sys: Registered thermal governor 'step_wise'
[ 0.035878] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.035896] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.036043] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0x(ptrval)
[ 0.036852] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 33, base_baud = 6249999) is a xuartps
[ 0.417221] printk: console [ttyPS0] enabled
[ 0.454128] SCSI subsystem initialized
[ 0.456882] usbcore: registered new interface driver usbfs
[ 0.462069] usbcore: registered new interface driver hub
[ 0.466178] usbcore: registered new device driver usb
[ 0.470232] mc: Linux media interface: v0.10
[ 0.473317] videodev: Linux video capture interface: v2.00
[ 0.477639] pps_core: LinuxPPS API ver. 1 registered
[ 0.481317] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.489164] PTP clock support registered
[ 0.492225] jesd204: found 0 devices and 0 topologies
[ 0.496024] FPGA manager framework
[ 0.498196] Advanced Linux Sound Architecture Driver Initialized.
[ 0.504526] clocksource: Switched to clocksource arm_global_timer
[ 0.519713] NET: Registered protocol family 2
[ 0.524924] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.531994] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.538678] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.544592] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.549719] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.555525] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.561392] NET: Registered protocol family 1
[ 0.564905] hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
[ 0.571700] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.579837] Initialise system trusted keyrings
[ 0.583116] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[ 0.698581] Key type asymmetric registered
[ 0.701372] Asymmetric key parser 'x509' registered
[ 0.704970] io scheduler mq-deadline registered
[ 0.708193] io scheduler kyber registered
[ 0.711252] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[ 0.720443] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[ 0.725870] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
[ 0.743330] brd: module loaded
[ 0.753599] loop: module loaded
[ 0.759139] spi-nor spi1.0: SPI-NOR-UniqueID 104473f8b70a0003f0ff2200b5b018e7ad
[ 0.765185] spi-nor spi1.0: found n25q256ax1, expected n25q256a
[ 0.770111] spi-nor spi1.0: trying to lock already unlocked area
[ 0.774864] spi-nor spi1.0: n25q256ax1 (32768 Kbytes)
[ 0.778656] 6 fixed-partitions partitions found on MTD device spi1.0
[ 0.783700] Creating 6 MTD partitions on "spi1.0":
[ 0.787218] 0x000000000000-0x0000000e0000 : "qspi-fsbl-uboot"
[ 0.795390] 0x0000000e0000-0x000000100000 : "qspi-uboot-env"
[ 0.805590] 0x000000100000-0x000000600000 : "qspi-linux"
[ 0.815376] 0x000000600000-0x000000620000 : "qspi-device-tree"
[ 0.825413] 0x000000620000-0x000001300000 : "qspi-rootfs"
[ 0.835435] 0x000001300000-0x000002000000 : "qspi-bitstream"
[ 0.845649] MACsec IEEE 802.1AE
[ 0.848103] libphy: Fixed MDIO Bus: probed
[ 0.851734] tun: Universal TUN/TAP device driver, 1.6
[ 0.857258] libphy: MACB_mii_bus: probed
[ 0.861054] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 36 (00:05:f7:80:30:7a)
[ 0.870331] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.875669] usbcore: registered new interface driver usb-storage
[ 0.880505] usbcore: registered new interface driver usbserial_generic
[ 0.885781] usbserial: USB Serial support registered for generic
[ 0.890521] usbcore: registered new interface driver ftdi_sio
[ 0.895009] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 0.954551] ULPI transceiver vendor/product ID 0x0424/0x0007
[ 0.958907] Found SMSC USB3320 ULPI transceiver.
[ 0.962220] ULPI integrity check: passed.
[ 0.964965] ci_hdrc ci_hdrc.0: EHCI Host Controller
[ 0.968556] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
[ 0.994571] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
[ 0.999420] hub 1-0:1.0: USB hub found
[ 1.001902] hub 1-0:1.0: 1 port detected
[ 1.006751] i2c /dev entries driver
[ 1.010526] at24 0-0050: supply vcc not found, using dummy regulator
[ 1.016528] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write
[ 1.022421] IR NEC protocol handler initialized
[ 1.025711] IR RC5(x/sz) protocol handler initialized
[ 1.029447] IR RC6 protocol handler initialized
[ 1.032666] IR JVC protocol handler initialized
[ 1.035893] IR Sony protocol handler initialized
[ 1.039194] IR SANYO protocol handler initialized
[ 1.042579] IR Sharp protocol handler initialized
[ 1.045996] IR MCE Keyboard/mouse protocol handler initialized
[ 1.050513] IR XMP protocol handler initialized
[ 1.054073] usbcore: registered new interface driver uvcvideo
[ 1.058543] USB Video Class driver (1.1.1)
[ 1.061329] gspca_main: v2.14.0 registered
[ 1.065209] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s
[ 1.071481] Xilinx Zynq CpuIdle Driver started
[ 1.074649] failed to register cpuidle driver
[ 1.078028] sdhci: Secure Digital Host Controller Interface driver
[ 1.082899] sdhci: Copyright(c) Pierre Ossman
[ 1.085964] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.091751] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.096575] hid: raw HID events driver (C) Jiri Kosina
[ 1.103716] usbcore: registered new interface driver usbhid
[ 1.109028] usbhid: USB HID core driver
[ 1.117451] mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA
[ 1.128519] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
[ 1.139122] xt_time: kernel timezone is -0000
[ 1.142728] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
[ 1.148073] NET: Registered protocol family 17
[ 1.151420] Registering SWP/SWPB emulation handler
[ 1.155193] Loading compiled-in X.509 certificates
[ 1.161481] mmc0: new high speed SDXC card at address aaaa
[ 1.166892] mmcblk0: mmc0:aaaa SC512 477 GiB
[ 1.169236] input: gpio_keys as /devices/soc0/gpio_keys/input/input0
[ 1.172121] mmcblk0: p1 p2 p3
[ 1.175772] clk: Not disabling unused clocks
[ 1.180430] ALSA device list:
[ 1.182095] No soundcards found.
[ 1.220383] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.227488] VFS: Mounted root (ext4 filesystem) on device 179:2.
[ 1.240205] devtmpfs: mounted
[ 1.243336] Freeing unused kernel memory: 1024K
[ 1.284969] Run /sbin/init as init process
[ 1.287754] with arguments:
[ 1.287760] /sbin/init
[ 1.287764] with environment:
[ 1.287768] HOME=/
[ 1.287773] TERM=linux
[ 1.417760] random: fast init done
[ 1.846971] systemd[1]: System time before build time, advancing clock.
[ 1.890353] systemd[1]: Failed to find module 'autofs4'
[ 2.514777] NET: Registered protocol family 10
[ 2.518939] Segment Routing with IPv6
[ 2.543943] systemd[1]: systemd 247.3-7+rpi1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified)
[ 2.565983] systemd[1]: Detected architecture arm.
[ 2.615781] systemd[1]: Set hostname to
We just updated our SD card img to make it more reliable. Could you try to download and try?
That worked thank you very much
sdr0 not showing up for openwifi img on [ADRV9364-Z7020 + ADRV1CRR-BOB (LVDS mode)]. Tried to reflash image, tried retriggering udev, tried re-running ./openwifi/setup_once.sh. Cannot find the problem. Below are some outputs
dmesg output
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.0-98248-g1bbe32fa5182-dirty (jxj@jxj-pc) (arm-xilinx-linux-gnueabi-gcc.real (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.0.20200730) #3 SMP PREEMPT Tue Feb 7 16:53:49 CET 2023 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Analog Devices ADRV9364-Z7020 (Z7020/AD9364) [ 0.000000] OF: fdt: earlycon: stdout-path /amba@0/uart@E0001000 not found [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 128 MiB at 0x16800000 [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000] HighMem empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff] [ 0.000000] On node 0 totalpages: 131072 [ 0.000000] Normal zone: 1024 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 131072 pages, LIFO batch:31 [ 0.000000] percpu: Embedded 15 pages/cpu s29900 r8192 d23348 u61440 [ 0.000000] pcpu-alloc: s29900 r8192 d23348 u61440 alloc=15*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlycon rootfstype=ext4 rootwait clk_ignore_unused cpuidle.off=1 [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 371420K/524288K available (8192K kernel code, 803K rwdata, 5732K rodata, 1024K init, 151K bss, 21796K reserved, 131072K cma-reserved, 0K highmem) [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] Trampoline 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=2 [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] efuse mapped to (ptrval) [ 0.000000] slcr mapped to (ptrval) [ 0.000000] L2C: platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000 [ 0.000000] L2C-310 erratum 769419 enabled [ 0.000000] L2C-310 enabling early BRESP for Cortex-A9 [ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9 [ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines [ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled [ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB [ 0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001 [ 0.000000] random: get_random_bytes called from start_kernel+0x33c/0x4dc with crng_init=0 [ 0.000000] zynq_clock_init: clkc starts at (ptrval) [ 0.000000] Zynq clock init [ 0.000009] sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns [ 0.000029] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns [ 0.000056] Switching to timer-based delay loop, resolution 3ns [ 0.000145] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns [ 0.000183] timer #0 at (ptrval), irq=25 [ 0.000762] Console: colour dummy device 80x30 [ 0.000791] Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333) [ 0.000808] pid_max: default: 32768 minimum: 301 [ 0.000981] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.000995] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.001632] CPU: Testing write buffer coherency: ok [ 0.001667] CPU0: Spectre v2: using BPIALL workaround [ 0.001830] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002332] Setting up static identity map for 0x100000 - 0x100060 [ 0.002470] rcu: Hierarchical SRCU implementation. [ 0.002758] smp: Bringing up secondary CPUs ... [ 0.003534] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.003545] CPU1: Spectre v2: using BPIALL workaround [ 0.003683] smp: Brought up 1 node, 2 CPUs [ 0.003696] SMP: Total of 2 processors activated (1333.33 BogoMIPS). [ 0.003703] CPU: All CPU(s) started in SVC mode. [ 0.004172] devtmpfs: initialized [ 0.008437] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.008931] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.008957] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.015085] pinctrl core: initialized pinctrl subsystem [ 0.016222] NET: Registered protocol family 16 [ 0.018355] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.019673] thermal_sys: Registered thermal governor 'step_wise' [ 0.035845] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.035864] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.036014] zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0x(ptrval) [ 0.036821] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 33, base_baud = 6249999) is a xuartps [ 0.417174] printk: console [ttyPS0] enabled [ 0.453617] SCSI subsystem initialized [ 0.456322] usbcore: registered new interface driver usbfs [ 0.461145] usbcore: registered new interface driver hub [ 0.465263] usbcore: registered new device driver usb [ 0.469640] mc: Linux media interface: v0.10 [ 0.472733] videodev: Linux video capture interface: v2.00 [ 0.477070] pps_core: LinuxPPS API ver. 1 registered [ 0.480758] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.488607] PTP clock support registered [ 0.491981] jesd204: found 0 devices and 0 topologies [ 0.495786] FPGA manager framework [ 0.497967] Advanced Linux Sound Architecture Driver Initialized. [ 0.505139] clocksource: Switched to clocksource arm_global_timer [ 0.523291] NET: Registered protocol family 2 [ 0.527049] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.534114] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.540625] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 0.546555] TCP: Hash tables configured (established 4096 bind 4096) [ 0.551667] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.556945] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.562781] NET: Registered protocol family 1 [ 0.566287] hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing. [ 0.573082] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available [ 0.581862] Initialise system trusted keyrings [ 0.585198] workingset: timestamp_bits=30 max_order=17 bucket_order=0 [ 0.697413] Key type asymmetric registered [ 0.700204] Asymmetric key parser 'x509' registered [ 0.703783] io scheduler mq-deadline registered [ 0.707021] io scheduler kyber registered [ 0.710071] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized [ 0.720088] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330 [ 0.725517] dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16 [ 0.743549] brd: module loaded [ 0.754181] loop: module loaded [ 0.759755] spi-nor spi1.0: SPI-NOR-UniqueID 104473f8b70a0003f0ff2200b5b018e7ad [ 0.766130] spi-nor spi1.0: found n25q256ax1, expected n25q256a [ 0.771065] spi-nor spi1.0: trying to lock already unlocked area [ 0.776157] spi-nor spi1.0: n25q256ax1 (32768 Kbytes) [ 0.779949] 6 fixed-partitions partitions found on MTD device spi1.0 [ 0.784989] Creating 6 MTD partitions on "spi1.0": [ 0.788568] 0x000000000000-0x0000000e0000 : "qspi-fsbl-uboot" [ 0.796097] 0x0000000e0000-0x000000100000 : "qspi-uboot-env" [ 0.806141] 0x000000100000-0x000000600000 : "qspi-linux" [ 0.816026] 0x000000600000-0x000000620000 : "qspi-device-tree" [ 0.826090] 0x000000620000-0x000001300000 : "qspi-rootfs" [ 0.836109] 0x000001300000-0x000002000000 : "qspi-bitstream" [ 0.846401] MACsec IEEE 802.1AE [ 0.848864] libphy: Fixed MDIO Bus: probed [ 0.854653] tun: Universal TUN/TAP device driver, 1.6 [ 0.860168] libphy: MACB_mii_bus: probed [ 0.863958] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 36 (00:05:f7:80:30:7a) [ 0.873190] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.878528] usbcore: registered new interface driver usb-storage [ 0.883354] usbcore: registered new interface driver usbserial_generic [ 0.888630] usbserial: USB Serial support registered for generic [ 0.893373] usbcore: registered new interface driver ftdi_sio [ 0.897854] usbserial: USB Serial support registered for FTDI USB Serial Device [ 0.975164] ULPI transceiver vendor/product ID 0x0424/0x0007 [ 0.979517] Found SMSC USB3320 ULPI transceiver. [ 0.982831] ULPI integrity check: passed. [ 0.985561] ci_hdrc ci_hdrc.0: EHCI Host Controller [ 0.989154] ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1 [ 1.015151] ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00 [ 1.019986] hub 1-0:1.0: USB hub found [ 1.022470] hub 1-0:1.0: 1 port detected [ 1.027328] i2c /dev entries driver [ 1.031111] at24 0-0050: supply vcc not found, using dummy regulator [ 1.037115] at24 0-0050: 4096 byte 24c32 EEPROM, writable, 1 bytes/write [ 1.042987] IR NEC protocol handler initialized [ 1.046279] IR RC5(x/sz) protocol handler initialized [ 1.050015] IR RC6 protocol handler initialized [ 1.053234] IR JVC protocol handler initialized [ 1.056461] IR Sony protocol handler initialized [ 1.059761] IR SANYO protocol handler initialized [ 1.063146] IR Sharp protocol handler initialized [ 1.066563] IR MCE Keyboard/mouse protocol handler initialized [ 1.071080] IR XMP protocol handler initialized [ 1.074636] usbcore: registered new interface driver uvcvideo [ 1.079111] USB Video Class driver (1.1.1) [ 1.081897] gspca_main: v2.14.0 registered [ 1.085776] cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer with timeout 10s [ 1.092060] Xilinx Zynq CpuIdle Driver started [ 1.095225] failed to register cpuidle driver [ 1.098599] sdhci: Secure Digital Host Controller Interface driver [ 1.103466] sdhci: Copyright(c) Pierre Ossman [ 1.106532] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.112309] ledtrig-cpu: registered to indicate activity on CPUs [ 1.117137] hid: raw HID events driver (C) Jiri Kosina [ 1.124542] usbcore: registered new interface driver usbhid [ 1.129667] usbhid: USB HID core driver [ 1.138066] mmc0: SDHCI controller on e0100000.mmc [e0100000.mmc] using ADMA [ 1.149183] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered [ 1.159842] xt_time: kernel timezone is -0000 [ 1.163432] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully [ 1.169180] NET: Registered protocol family 17 [ 1.172569] Registering SWP/SWPB emulation handler [ 1.176380] Loading compiled-in X.509 certificates [ 1.190154] mmc0: new high speed SDXC card at address aaaa [ 1.196143] mmcblk0: mmc0:aaaa SC512 477 GiB [ 1.196412] input: gpio_keys as /devices/soc0/gpio_keys/input/input0 [ 1.201453] mmcblk0: p1 p2 p3 [ 1.205749] clk: Not disabling unused clocks [ 1.209039] ALSA device list: [ 1.210741] No soundcards found. [ 1.249945] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 1.256832] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.269567] devtmpfs: mounted [ 1.272692] Freeing unused kernel memory: 1024K [ 1.295599] Run /sbin/init as init process [ 1.298387] with arguments: [ 1.298393] /sbin/init [ 1.298397] with environment: [ 1.298402] HOME=/ [ 1.298406] TERM=linux [ 1.432705] random: fast init done [ 1.872948] systemd[1]: System time before build time, advancing clock. [ 1.918946] systemd[1]: Failed to find module 'autofs4' [ 2.553422] NET: Registered protocol family 10 [ 2.557625] Segment Routing with IPv6 [ 2.583212] systemd[1]: systemd 247.3-7+rpi1 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified) [ 2.606738] systemd[1]: Detected architecture arm. [ 2.656393] systemd[1]: Set hostname to.
[ 4.435856] systemd[1]: /lib/systemd/system/plymouth-start.service:16: Unit configured to use KillMode=none. This is unsafe, as it disables systemd's process lifecycle management for the service. Please update your service to use a safer KillMode=, such as 'mixed' or 'control-group'. Support for KillMode=none is deprecated and will eventually be removed.
[ 4.816472] systemd[1]: Queued start job for default target Graphical Interface.
[ 4.824720] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.830396] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 4.841480] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[ 4.849806] systemd[1]: Created slice system-getty.slice.
[ 4.885374] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.891517] systemd[1]: Created slice system-modprobe.slice.
[ 4.925346] random: systemd: uninitialized urandom read (16 bytes read)
[ 4.931432] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 4.966103] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 5.005836] systemd[1]: Created slice User and Session Slice.
[ 5.045845] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 5.085732] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System Automount Point being skipped.
[ 5.097351] systemd[1]: Reached target Slices.
[ 5.125501] systemd[1]: Reached target Swap.
[ 5.156641] systemd[1]: Listening on Syslog Socket.
[ 5.186035] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 5.225707] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 5.290567] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[ 5.298294] systemd[1]: Listening on Journal Socket (/dev/log).
[ 5.336270] systemd[1]: Listening on Journal Socket.
[ 5.373942] systemd[1]: Listening on udev Control Socket.
[ 5.406052] systemd[1]: Listening on udev Kernel Socket.
[ 5.446122] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
[ 5.453599] systemd[1]: Condition check resulted in POSIX Message Queue File System being skipped.
[ 5.464727] systemd[1]: Mounting RPC Pipe File System...
[ 5.498655] systemd[1]: Mounting Kernel Debug File System...
[ 5.525887] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[ 5.533307] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped.
[ 5.546729] systemd[1]: Starting Restore / save the current clock...
[ 5.590753] systemd[1]: Starting Set the console keyboard layout...
[ 5.625832] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
[ 5.640765] systemd[1]: Starting Load Kernel Module configfs...
[ 5.678891] systemd[1]: Starting Load Kernel Module drm...
[ 5.708787] systemd[1]: Starting Load Kernel Module fuse...
[ 5.739192] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[ 5.747440] systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
[ 5.759141] systemd[1]: Starting Journal Service...
[ 5.791249] systemd[1]: Starting Load Kernel Modules...
[ 5.838636] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 5.879419] systemd[1]: Starting Coldplug All udev Devices...
[ 5.936097] systemd[1]: run-rpc_pipefs.mount: Mount process exited, code=exited, status=32/n/a
[ 5.955313] systemd[1]: run-rpc_pipefs.mount: Failed with result 'exit-code'.
[ 5.973215] systemd[1]: Failed to mount RPC Pipe File System.
[ 6.055500] systemd[1]: Dependency failed for RPC security service for NFS server.
[ 6.095566] systemd[1]: rpc-svcgssd.service: Job rpc-svcgssd.service/start failed with result 'dependency'.
[ 6.104108] systemd[1]: Dependency failed for RPC security service for NFS client and server.
[ 6.145390] systemd[1]: rpc-gssd.service: Job rpc-gssd.service/start failed with result 'dependency'.
[ 6.170197] systemd[1]: Started Journal Service.
[ 6.200759] random: crng init done
[ 6.202862] random: 7 urandom warning(s) missed due to ratelimiting
[ 6.579283] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 6.886484] systemd-journald[1088]: Received client request to flush runtime journal.
[ 6.890683] systemd-journald[1088]: File /var/log/journal/9a314adf4f7b4c659ada5035385c9b39/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 9.190175] Registered mathworks_ip class
[ 9.232380] mwipcore 43c00000.mwipcore: IRQ index 0 not found
[ 9.232402] mwipcore 43c00000.mwipcore: Dev memory resource found at c380a01a 0000FFFF.
[ 9.232432] mwipcore 43c00000.mwipcore: 'mwipcore' device not found, creating
[ 9.232446] mwipcore 43c00000.mwipcore: Char dev region registered: major num:240
[ 9.232455] mwipcore 43c00000.mwipcore: 'mwipcore' device created
[ 11.752526] macb e000b000.ethernet eth0: PHY [e000b000.ethernet-ffffffff:00] driver [Marvell 88E1510] (irq=POLL)
[ 11.752545] macb e000b000.ethernet eth0: configuring for phy/rgmii-id link mode
[ 12.103311] 8021q: 802.1Q VLAN Support v1.8
[ 12.664100] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 12.725216] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SS
[ 12.808376] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 12.829103] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid
[ 15.939739] macb e000b000.ethernet eth0: Link is Up - 1Gbps/Full - flow control tx
[ 15.939787] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
./wgd.sh output
root@analog:~/openwifi# ./wgd.sh usage: Script for load (or download+load) different driver and FPGA img without rebooting no argument: Load .ko driver files and FPGA img (if system_top.bit.bin exist) in current dir with test_mode=0. 1st argument: If it is a NUMBER, it will be assigned to test_mode. Then load everything from current dir. 1st argument: If it is a string called "remote", it will download driver/FPGA and load everything.
Module Size Used by mac80211 565248 0 libarc4 16384 1 mac80211 xilinx_dma 28672 0 ad9361_drv 163840 2 cfg80211 319488 1 mac80211 8021q 24576 0 mwipcore 16384 0 mwipcore_iio_streaming 16384 1 mwipcore mwipcore_dma_streaming 20480 1 mwipcore mathworks_ip_common 16384 1 mwipcore ipv6 397312 28 TARGET_DIR ./ DOWNLOAD_FLAG 0 test_mode 0 tx_offset_tuning_enable 0 $TARGET_DIR is found!
hostapd: no process found dhcpd: no process found sdr0: ERROR while getting interface flags: No such device rmmod: ERROR: Module sdr is not currently loaded .//system_top.bit.bin not found. Skip reloading FPGA. tx_offset_tuning_enable 0 openwifi_ad9361_fir_tx_0MHz_11n.ftr tx_fir_enable 1 Found openwifi_ad9361_fir_tx_0MHz_11n.ftr
udevadm test ... output
root@analog:~# udevadm test ... This program is for debugging only, it does not run any program specified by a RUN key. It may show incorrect results, because some values may be different, or not available at a simulation run.
Load module index Skipping empty file: /etc/systemd/network/99-default.link Skipping empty file: /etc/systemd/network/73-usb-net-by-mac.link Created link configuration context. Reading rules file: /usr/lib/udev/rules.d/10-local-rpi.rules Reading rules file: /etc/udev/rules.d/10-network-device.rules Reading rules file: /usr/lib/udev/rules.d/15-i2c-modprobe.rules Reading rules file: /usr/lib/udev/rules.d/40-usb_modeswitch.rules Reading rules file: /usr/lib/udev/rules.d/50-firmware.rules Reading rules file: /usr/lib/udev/rules.d/50-udev-default.rules Reading rules file: /etc/udev/rules.d/53-adi-m2k-usb.rules Reading rules file: /usr/lib/udev/rules.d/55-dm.rules Reading rules file: /usr/lib/udev/rules.d/56-hpmud.rules Reading rules file: /usr/lib/udev/rules.d/60-autosuspend.rules Reading rules file: /usr/lib/udev/rules.d/60-block.rules Reading rules file: /usr/lib/udev/rules.d/60-bridge-network-interface.rules Reading rules file: /usr/lib/udev/rules.d/60-cdrom_id.rules Reading rules file: /usr/lib/udev/rules.d/60-crda.rules Reading rules file: /usr/lib/udev/rules.d/60-drm.rules Reading rules file: /usr/lib/udev/rules.d/60-evdev.rules Reading rules file: /usr/lib/udev/rules.d/60-fido-id.rules Reading rules file: /usr/lib/udev/rules.d/60-flashrom.rules Reading rules file: /usr/lib/udev/rules.d/60-gpsd.rules Reading rules file: /usr/lib/udev/rules.d/60-i2c-tools.rules Reading rules file: /usr/lib/udev/rules.d/60-input-id.rules Reading rules file: /usr/lib/udev/rules.d/60-libgphoto2-6.rules Reading rules file: /usr/lib/udev/rules.d/60-libsane1.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-alsa.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-input.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage-dm.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage-tape.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-storage.rules Reading rules file: /usr/lib/udev/rules.d/60-persistent-v4l.rules Reading rules file: /usr/lib/udev/rules.d/60-rpi.gpio-common.rules Reading rules file: /usr/lib/udev/rules.d/60-sensor.rules Reading rules file: /usr/lib/udev/rules.d/60-serial.rules Reading rules file: /usr/lib/udev/rules.d/60-triggerhappy.rules Reading rules file: /usr/lib/udev/rules.d/61-gnome-settings-daemon-rfkill.rules Reading rules file: /usr/lib/udev/rules.d/61-mutter.rules Reading rules file: /usr/lib/udev/rules.d/64-btrfs.rules Reading rules file: /usr/lib/udev/rules.d/64-xorg-xkb.rules Reading rules file: /usr/lib/udev/rules.d/65-libwacom.rules Reading rules file: /usr/lib/udev/rules.d/69-cd-sensors.rules Reading rules file: /usr/lib/udev/rules.d/69-libmtp.rules Reading rules file: /usr/lib/udev/rules.d/70-joystick.rules Reading rules file: /usr/lib/udev/rules.d/70-microbit.rules Reading rules file: /usr/lib/udev/rules.d/70-mouse.rules Reading rules file: /etc/udev/rules.d/70-persistent-net.rules Reading rules file: /usr/lib/udev/rules.d/70-power-switch.rules Reading rules file: /usr/lib/udev/rules.d/70-printers.rules Reading rules file: /usr/lib/udev/rules.d/70-touchpad.rules Reading rules file: /usr/lib/udev/rules.d/70-uaccess.rules Reading rules file: /usr/lib/udev/rules.d/71-ipp-usb.rules Reading rules file: /usr/lib/udev/rules.d/71-seat.rules Reading rules file: /usr/lib/udev/rules.d/73-seat-late.rules Reading rules file: /usr/lib/udev/rules.d/73-special-net-names.rules Reading rules file: /usr/lib/udev/rules.d/75-net-description.rules Reading rules file: /usr/lib/udev/rules.d/75-probe_mtd.rules Reading rules file: /usr/lib/udev/rules.d/78-sound-card.rules Reading rules file: /usr/lib/udev/rules.d/80-debian-compat.rules Reading rules file: /usr/lib/udev/rules.d/80-drivers.rules Reading rules file: /usr/lib/udev/rules.d/80-ifupdown.rules Reading rules file: /usr/lib/udev/rules.d/80-libinput-device-groups.rules Reading rules file: /usr/lib/udev/rules.d/80-net-setup-link.rules Reading rules file: /usr/lib/udev/rules.d/80-noobs.rules Reading rules file: /usr/lib/udev/rules.d/80-udisks2.rules Reading rules file: /usr/lib/udev/rules.d/85-hwclock.rules Reading rules file: /usr/lib/udev/rules.d/85-regulatory.rules Reading rules file: /usr/lib/udev/rules.d/90-alsa-restore.rules Reading rules file: /usr/lib/udev/rules.d/90-console-setup.rules Reading rules file: /usr/lib/udev/rules.d/90-libiio.rules Reading rules file: /usr/lib/udev/rules.d/90-libinput-fuzz-override.rules Reading rules file: /usr/lib/udev/rules.d/90-pi-bluetooth.rules Reading rules file: /usr/lib/udev/rules.d/90-pipewire-alsa.rules Reading rules file: /usr/lib/udev/rules.d/95-cd-devices.rules Reading rules file: /usr/lib/udev/rules.d/95-dm-notify.rules Reading rules file: /usr/lib/udev/rules.d/96-e2scrub.rules Reading rules file: /usr/lib/udev/rules.d/97-hid2hci.rules Reading rules file: /etc/udev/rules.d/99-com.rules Reading rules file: /usr/lib/udev/rules.d/99-libsane1.rules Reading rules file: /usr/lib/udev/rules.d/99-systemd.rules Reading rules file: /etc/udev/rules.d/99-udc.rules Failed to open device '/sys...': Invalid argument Unload module index Unloaded link configuration context.