newracom / nrc7292_sw_pkg

NRC7292 Software Package for Host mode (Linux OS)
http://www.newracom.com/product
GNU General Public License v2.0
58 stars 27 forks source link

Happen SIOCSIFFLAGS: Operation not permitted #60

Closed mingtsann closed 1 year ago

mingtsann commented 2 years ago

Hi Sirs, Please help ! Thank you so much We use: AHPI7292S REV 0C 2021-01-22 + Raspberry PI 4 OS: Linux raspberrypi 5.10.63-v7l+ Have Done: setup follow UG-7292-018-Raspberry_Pi_setup.pdf kernel headers be installed manually using the kernel source make nrc.ko OK and copy this one to target sudo ./start.py 1 0 TW Happen: sudo insmod /home/pi/nrc_pkg/sw/driver/nrc.ko hifspeed=20000000 spi_bus_num=0 spi_cs_num=0 spi_gpio_irq=5 spi_polling_interval=0 fw_name=uni_s1g.bin bss_max_idle=180 ndp_preq=1 auto_ba=1 listen_interval=1000 SIOCSIFFLAGS: Operation not permitted

dmesg: [ 619.743905] start FW 333 [ 620.184203] end FW [ 623.208490] nrc80211 nrc80211: size of bd file is 2128 [ 623.208540] nrc80211 nrc80211: Major 01 Minor 04 Total len 0840 Num_Data_Groups 0009 Checksum 38AB [ 623.208550] nrc80211 nrc80211: target version is not matched(1 : 0) pi@raspberrypi:~/nrc_pkg/script $


pi@raspberrypi:~/nrc_pkg/script $ sudo ./start.py 1 0 TW Done. Done.

Model : 7292 STA Type : AP Country : TW Security Mode : OPEN CAL. USE : ON AMPDU : ON Download FW : uni_s1g.bin Max TX Power : 24 BSS MAX IDLE : 180

NRC AP setting for HaLow... [*] Set Max CPU Clock on RPi 1400000 1400000 1400000 1400000 Done [0] Clear sudo: iptables: command not found sudo: iptables: command not found [1] Copy and Set Module Parameters total 672 drwxr-xr-x 2 pi pi 4096 11月 9 13:29 . drwxr-xr-x 4 pi pi 4096 11月 7 16:53 .. -rwxrwxrwx 1 pi pi 281 11月 7 16:53 copy -rwxr-xr-x 1 pi pi 2128 11月 7 16:53 nrc7292_bd.dat -rwxr-xr-x 1 pi pi 335356 11月 7 16:53 nrc7292_cspi.bin -rwxr-xr-x 1 root root 335356 11月 18 09:37 uni_s1g.bin -rwxr-xr-x 1 root root 335356 11月 18 09:37 /lib/firmware/uni_s1g.bin

AP INTERFACE : wlan0 AP STATIC IP : 192.168.200.1 NET MASK NUM : 24

Config for AP is done! IP and DHCP config done [2] Set Initial Country [3] Loading module sudo insmod /home/pi/nrc_pkg/sw/driver/nrc.ko hifspeed=20000000 spi_bus_num=0 spi_cs_num=0 spi_gpio_irq=5 spi_polling_interval=0 fw_name=uni_s1g.bin bss_max_idle=180 ndp_preq=1 auto_ba=1 listen_interval=1000 SIOCSIFFLAGS: Operation not permitted pi@raspberrypi:~/nrc_pkg/script $ uname -a Linux raspberrypi 5.10.63-v7l+ #1459 SMP Wed Oct 6 16:41:57 BST 2021 armv7l GNU/Linux pi@raspberrypi:~/nrc_pkg/script $


pi@raspberrypi:~/nrc_pkg/script $ dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.10.63-v7l+ (dom@buildbot) (arm-linux-gnueabihf-gcc-8 (Ubuntu/Linaro 8.4.0-3ubuntu1) 8.4.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #1459 SMP Wed Oct 6 16:41:57 BST 2021 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1 [ 0.000000] random: fast init done [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] Reserved memory: created CMA memory pool at 0x000000001ac00000, size 320 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000000000-0x000000002fffffff] [ 0.000000] Normal empty [ 0.000000] HighMem [mem 0x0000000030000000-0x00000000fbffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000003b3fffff] [ 0.000000] node 0: [mem 0x0000000040000000-0x00000000fbffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x00000000fbffffff] [ 0.000000] On node 0 totalpages: 1012736 [ 0.000000] DMA zone: 1728 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 196608 pages, LIFO batch:63 [ 0.000000] HighMem zone: 816128 pages, LIFO batch:63 [ 0.000000] percpu: Embedded 20 pages/cpu s50828 r8192 d22900 u81920 [ 0.000000] pcpu-alloc: s50828 r8192 d22900 u81920 alloc=20*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 1011008 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=1 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:58:BC:68 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=tty1 root=PARTUUID=1e81428a-02 rootfstype=ext4 fsck.repair=yes rootwait quiet splash plymouth.ignore-serial-consoles [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] software IO TLB: mapped [mem 0x0000000014890000-0x0000000018890000] (64MB) [ 0.000000] Memory: 3601132K/4050944K available (10240K kernel code, 1364K rwdata, 3192K rodata, 2048K init, 891K bss, 122132K reserved, 327680K cma-reserved, 3264512K highmem) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 34315 entries in 68 pages [ 0.000000] ftrace: allocated 68 pages with 2 groups [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] irq_brcmstb_l2: registered L2 intc (/soc/interrupt-controller@7ef00100, parent irq: 25) [ 0.000000] random: get_random_bytes called from start_kernel+0x3c8/0x59c with crng_init=1 [ 0.000008] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.000027] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.000086] bcm2835: system timer (irq = 26) [ 0.000735] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000752] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000771] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000788] Switching to timer-based delay loop, resolution 18ns [ 0.001052] Console: colour dummy device 80x30 [ 0.001123] printk: console [tty1] enabled [ 0.001183] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000) [ 0.001217] pid_max: default: 32768 minimum: 301 [ 0.001384] LSM: Security Framework initializing [ 0.001574] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.001600] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear) [ 0.003146] cgroup: Disabling memory control group subsystem [ 0.003386] CPU: Testing write buffer coherency: ok [ 0.003866] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.005099] Setting up static identity map for 0x200000 - 0x20003c [ 0.005301] rcu: Hierarchical SRCU implementation. [ 0.006242] smp: Bringing up secondary CPUs ... [ 0.007508] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.008917] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.010249] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.010408] smp: Brought up 1 node, 4 CPUs [ 0.010430] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.010446] CPU: All CPU(s) started in HYP mode. [ 0.010461] CPU: Virtualization extensions available. [ 0.011411] devtmpfs: initialized [ 0.026041] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.026262] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.026292] futex hash table entries: 1024 (order: 4, 65536 bytes, linear) [ 0.034736] pinctrl core: initialized pinctrl subsystem [ 0.035864] NET: Registered protocol family 16 [ 0.040025] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.040880] audit: initializing netlink subsys (disabled) [ 0.041157] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1 [ 0.041755] thermal_sys: Registered thermal governor 'step_wise' [ 0.042523] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.042541] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.042971] Serial: AMBA PL011 UART driver [ 0.086934] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.100875] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-10-29T10:47:33, variant start [ 0.110885] raspberrypi-firmware soc:firmware: Firmware hash is b8a114e5a9877e91ca8f26d1a5ce904b2ad3cf13 [ 0.151923] Kprobes globally optimized [ 0.157260] bcm2835-dma fe007000.dma: DMA legacy API manager, dmachans=0x1 [ 0.161743] vgaarb: loaded [ 0.162226] SCSI subsystem initialized [ 0.162450] usbcore: registered new interface driver usbfs [ 0.162511] usbcore: registered new interface driver hub [ 0.162607] usbcore: registered new device driver usb [ 0.163013] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 0.165028] clocksource: Switched to clocksource arch_sys_counter [ 1.125417] VFS: Disk quotas dquot_6.6.0 [ 1.125523] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 1.125692] FS-Cache: Loaded [ 1.125911] CacheFiles: Loaded [ 1.127064] simple-framebuffer 3e3cf000.framebuffer: framebuffer at 0x3e3cf000, 0x7f8000 bytes, mapped to 0x(ptrval) [ 1.127085] simple-framebuffer 3e3cf000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680 [ 1.127579] Console: switching to colour frame buffer device 240x67 [ 1.138418] simple-framebuffer 3e3cf000.framebuffer: fb0: simplefb registered! [ 1.148289] NET: Registered protocol family 2 [ 1.148548] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear) [ 1.149887] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 1.149928] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 1.150098] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 1.150177] TCP: Hash tables configured (established 8192 bind 8192) [ 1.150352] UDP hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.150390] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear) [ 1.151064] NET: Registered protocol family 1 [ 1.151810] RPC: Registered named UNIX socket transport module. [ 1.151826] RPC: Registered udp transport module. [ 1.151842] RPC: Registered tcp transport module. [ 1.151856] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.151880] PCI: CLS 0 bytes, default 64 [ 1.155428] Initialise system trusted keyrings [ 1.155676] workingset: timestamp_bits=14 max_order=20 bucket_order=6 [ 1.164071] zbud: loaded [ 1.165958] FS-Cache: Netfs 'nfs' registered for caching [ 1.166727] NFS: Registering the id_resolver key type [ 1.166777] Key type id_resolver registered [ 1.166792] Key type id_legacy registered [ 1.166931] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.166948] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.167998] Key type asymmetric registered [ 1.168015] Asymmetric key parser 'x509' registered [ 1.168210] bounce: pool size: 64 pages [ 1.168258] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.168480] io scheduler mq-deadline registered [ 1.168496] io scheduler kyber registered [ 1.173341] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 1.173374] brcm-pcie fd500000.pcie: No bus range found for /scb/pcie@7d500000, using [bus 00-ff] [ 1.173456] brcm-pcie fd500000.pcie: MEM 0x0600000000..0x063fffffff -> 0x00c0000000 [ 1.173546] brcm-pcie fd500000.pcie: IB MEM 0x0000000000..0x00bfffffff -> 0x0400000000 [ 1.227166] brcm-pcie fd500000.pcie: link up, 5.0 GT/s PCIe x1 (SSC) [ 1.227564] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 1.227585] pci_bus 0000:00: root bus resource [bus 00-ff] [ 1.227607] pci_bus 0000:00: root bus resource [mem 0x600000000-0x63fffffff] (bus address [0xc0000000-0xffffffff]) [ 1.227698] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 1.227943] pci 0000:00:00.0: PME# supported from D0 D3hot [ 1.231463] PCI: bus0: Fast back to back transfers disabled [ 1.231489] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 1.231896] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 1.232024] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 1.232460] pci 0000:01:00.0: PME# supported from D0 D3cold [ 1.235969] PCI: bus1: Fast back to back transfers disabled [ 1.235993] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01 [ 1.236075] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 1.236099] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 1.236182] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.236209] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 1.236628] pcieport 0000:00:00.0: enabling device (0140 -> 0142) [ 1.236868] pcieport 0000:00:00.0: PME: Signaling with IRQ 81 [ 1.244171] Serial: 8250/16550 driver, 1 ports, IRQ sharing enabled [ 1.247631] iproc-rng200 fe104000.rng: hwrng registered [ 1.248003] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 1.248970] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 1.261564] brd: module loaded [ 1.274330] loop: module loaded [ 1.276337] Loading iSCSI transport class v2.0-870. [ 1.279643] libphy: Fixed MDIO Bus: probed [ 1.281548] bcmgenet fd580000.ethernet: GENET 5.0 EPHY: 0x0000 [ 1.295111] libphy: bcmgenet MII bus: probed [ 1.395208] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus [ 1.396427] usbcore: registered new interface driver r8152 [ 1.396494] usbcore: registered new interface driver lan78xx [ 1.396572] usbcore: registered new interface driver smsc95xx [ 1.398207] xhci_hcd 0000:01:00.0: enabling device (0140 -> 0142) [ 1.398381] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.398429] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 1.401815] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000060000000890 [ 1.403186] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10 [ 1.403205] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.403222] usb usb1: Product: xHCI Host Controller [ 1.403239] usb usb1: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd [ 1.403255] usb usb1: SerialNumber: 0000:01:00.0 [ 1.404003] hub 1-0:1.0: USB hub found [ 1.404104] hub 1-0:1.0: 1 port detected [ 1.404792] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 1.404820] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 1.404846] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 1.405428] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.10 [ 1.405448] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.405465] usb usb2: Product: xHCI Host Controller [ 1.405483] usb usb2: Manufacturer: Linux 5.10.63-v7l+ xhci-hcd [ 1.405500] usb usb2: SerialNumber: 0000:01:00.0 [ 1.406231] hub 2-0:1.0: USB hub found [ 1.406308] hub 2-0:1.0: 4 ports detected [ 1.408167] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 1.408544] dwc_otg: FIQ enabled [ 1.408559] dwc_otg: NAK holdoff enabled [ 1.408573] dwc_otg: FIQ split-transaction FSM enabled [ 1.408591] Module dwc_common_port init [ 1.409062] usbcore: registered new interface driver uas [ 1.409193] usbcore: registered new interface driver usb-storage [ 1.409400] mousedev: PS/2 mouse device common for all mice [ 1.411247] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 1.414932] sdhci: Secure Digital Host Controller Interface driver [ 1.414949] sdhci: Copyright(c) Pierre Ossman [ 1.415729] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.419374] ledtrig-cpu: registered to indicate activity on CPUs [ 1.419724] hid: raw HID events driver (C) Jiri Kosina [ 1.419958] usbcore: registered new interface driver usbhid [ 1.419973] usbhid: USB HID core driver [ 1.426417] Initializing XFRM netlink socket [ 1.426461] NET: Registered protocol family 17 [ 1.426588] Key type dns_resolver registered [ 1.427009] Registering SWP/SWPB emulation handler [ 1.427188] registered taskstats version 1 [ 1.427215] Loading compiled-in X.509 certificates [ 1.428091] Key type ._fscrypt registered [ 1.428108] Key type .fscrypt registered [ 1.428123] Key type fscrypt-provisioning registered [ 1.440257] uart-pl011 fe201000.serial: there is not valid maps for state default [ 1.440519] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 1.440603] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 38, base_baud = 0) is a PL011 rev2 [ 1.448482] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 1.453124] of_cfs_init [ 1.453407] of_cfs_init: OK [ 1.487408] mmc0: SDHCI controller on fe340000.mmc [fe340000.mmc] using ADMA [ 1.488074] Waiting for root device PARTUUID=1e81428a-02... [ 1.588201] mmc0: new ultra high speed DDR50 SDHC card at address 5048 [ 1.589177] mmcblk0: mmc0:5048 SD32G 29.7 GiB [ 1.591443] mmcblk0: p1 p2 [ 1.611661] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem [ 1.611680] EXT4-fs (mmcblk0p2): write access will be enabled during recovery [ 1.685069] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 1.867786] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 1.867809] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 1.867826] usb 1-1: Product: USB2.0 Hub [ 1.870033] hub 1-1:1.0: USB hub found [ 1.870313] hub 1-1:1.0: 4 ports detected [ 2.016659] EXT4-fs (mmcblk0p2): recovery complete [ 2.018503] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 2.018589] VFS: Mounted root (ext4 filesystem) readonly on device 179:2. [ 2.019298] devtmpfs: mounted [ 2.029354] Freeing unused kernel memory: 2048K [ 2.029682] Run /sbin/init as init process [ 2.029697] with arguments: [ 2.029711] /sbin/init [ 2.029725] splash [ 2.029739] with environment: [ 2.029754] HOME=/ [ 2.029768] TERM=linux [ 2.195098] usb 1-1.1: new low-speed USB device number 3 using xhci_hcd [ 2.368816] systemd[1]: System time before build time, advancing clock. [ 2.371849] usb 1-1.1: New USB device found, idVendor=09da, idProduct=0260, bcdDevice= 2.50 [ 2.371871] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.371889] usb 1-1.1: Product: USB Keyboard [ 2.371906] usb 1-1.1: Manufacturer:
[ 2.398350] input: USB Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.0/0003:09DA:0260.0001/input/input0 [ 2.465989] hid-generic 0003:09DA:0260.0001: input,hidraw0: USB HID v1.10 Keyboard [ USB Keyboard] on usb-0000:01:00.0-1.1/input0 [ 2.471103] NET: Registered protocol family 10 [ 2.472595] Segment Routing with IPv6 [ 2.494359] input: USB Keyboard System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:09DA:0260.0002/input/input1 [ 2.539404] systemd[1]: systemd 247.3-6+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.540303] systemd[1]: Detected architecture arm. [ 2.541996] systemd[1]: Set hostname to . [ 2.556763] input: USB Keyboard Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.1/1-1.1:1.1/0003:09DA:0260.0002/input/input2 [ 2.557969] hid-generic 0003:09DA:0260.0002: input,hidraw1: USB HID v1.10 Device [ USB Keyboard] on usb-0000:01:00.0-1.1/input1 [ 2.665225] usb 1-1.2: new low-speed USB device number 4 using xhci_hcd [ 2.804791] usb 1-1.2: New USB device found, idVendor=09da, idProduct=000a, bcdDevice= 0.14 [ 2.804815] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 2.804833] usb 1-1.2: Product: USB Mouse [ 2.804850] usb 1-1.2: Manufacturer: A4Tech [ 3.230830] 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. [ 3.415878] systemd[1]: Queued start job for default target Graphical Interface. [ 3.417781] random: systemd: uninitialized urandom read (16 bytes read) [ 3.420345] systemd[1]: Created slice system-getty.slice. [ 3.420719] random: systemd: uninitialized urandom read (16 bytes read) [ 3.421795] systemd[1]: Created slice system-modprobe.slice. [ 3.421937] random: systemd: uninitialized urandom read (16 bytes read) [ 3.422878] systemd[1]: Created slice system-systemd\x2dfsck.slice. [ 3.423727] systemd[1]: Created slice User and Session Slice. [ 3.424296] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ 3.425878] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point. [ 3.426667] systemd[1]: Reached target Slices. [ 3.426913] systemd[1]: Reached target Swap. [ 3.427952] systemd[1]: Listening on Syslog Socket. [ 3.428729] systemd[1]: Listening on fsck to fsckd communication Socket. [ 3.429176] systemd[1]: Listening on initctl Compatibility Named Pipe. [ 3.430348] systemd[1]: Listening on Journal Audit Socket. [ 3.431143] systemd[1]: Listening on Journal Socket (/dev/log). [ 3.432157] systemd[1]: Listening on Journal Socket. [ 3.437884] systemd[1]: Listening on udev Control Socket. [ 3.438765] systemd[1]: Listening on udev Kernel Socket. [ 3.439698] systemd[1]: Condition check resulted in Huge Pages File System being skipped. [ 3.444732] systemd[1]: Mounting POSIX Message Queue File System... [ 3.451028] systemd[1]: Mounting RPC Pipe File System... [ 3.458304] systemd[1]: Mounting Kernel Debug File System... [ 3.465701] systemd[1]: Mounting Kernel Trace File System... [ 3.466223] systemd[1]: Condition check resulted in Kernel Module supporting RPCSEC_GSS being skipped. [ 3.479299] systemd[1]: Starting Restore / save the current clock... [ 3.487998] systemd[1]: Starting Set the console keyboard layout... [ 3.495856] systemd[1]: Starting Create list of static device nodes for the current kernel... [ 3.503191] systemd[1]: Starting Load Kernel Module configfs... [ 3.510904] systemd[1]: Starting Load Kernel Module drm... [ 3.519337] systemd[1]: Starting Load Kernel Module fuse... [ 3.523448] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped. [ 3.537186] systemd[1]: Starting File System Check on Root Device... [ 3.556491] systemd[1]: Starting Journal Service... [ 3.566661] fuse: init (API version 7.32) [ 3.572020] systemd[1]: Starting Load Kernel Modules... [ 3.580084] systemd[1]: Starting Coldplug All udev Devices... [ 3.610466] systemd[1]: Mounted POSIX Message Queue File System. [ 3.611368] systemd[1]: Mounted RPC Pipe File System. [ 3.612240] systemd[1]: Mounted Kernel Debug File System. [ 3.613129] systemd[1]: Mounted Kernel Trace File System. [ 3.616419] systemd[1]: Finished Restore / save the current clock. [ 3.619936] systemd[1]: Finished Create list of static device nodes for the current kernel. [ 3.622154] systemd[1]: modprobe@configfs.service: Succeeded. [ 3.623982] systemd[1]: Finished Load Kernel Module configfs. [ 3.626742] systemd[1]: modprobe@fuse.service: Succeeded. [ 3.628404] systemd[1]: Finished Load Kernel Module fuse. [ 3.640416] systemd[1]: Mounting FUSE Control File System... [ 3.653367] systemd[1]: Mounting Kernel Configuration File System... [ 3.674936] i2c /dev entries driver [ 3.681004] systemd[1]: Started File System Check Daemon to report status. [ 3.691515] systemd[1]: modprobe@drm.service: Succeeded. [ 3.692960] systemd[1]: Finished Load Kernel Module drm. [ 3.694369] systemd[1]: Mounted FUSE Control File System. [ 3.698613] systemd[1]: Mounted Kernel Configuration File System. [ 3.793491] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 3.873024] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 3.917610] cfg80211: loaded regulatory.db is malformed or signature is missing/invalid [ 3.927354] systemd[1]: Finished File System Check on Root Device. [ 3.933494] systemd[1]: Starting Remount Root and Kernel File Systems... [ 3.982293] systemd[1]: Finished Load Kernel Modules. [ 3.991616] systemd[1]: Starting Apply Kernel Variables... [ 4.017724] systemd[1]: Started Journal Service. [ 4.161729] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) [ 4.225752] systemd-journald[130]: Received client request to flush runtime journal. [ 4.243134] systemd-journald[130]: File /var/log/journal/6863a4a704a449d0b3397f55bec3e7ce/system.journal corrupted or uncleanly shut down, renaming and replacing. [ 5.255204] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x00010000 [ 5.285218] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00001000 [ 5.302032] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x00010000 [ 5.302685] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x00010000 [ 5.447885] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 5.450231] bcm2835_vc_sm_cma_probe: Videocore shared memory driver

[ 5.464299] [vc_sm_connected_init]: installed successfully [ 5.470046] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 5.510671] mc: Linux media interface: v0.10 [ 5.616706] bcm2835_audio bcm2835_audio: card created with 8 channels [ 5.689610] brcmstb-i2c fef04500.i2c: @97500hz registered in polling mode [ 5.690436] brcmstb-i2c fef09500.i2c: @97500hz registered in polling mode [ 5.711725] videodev: Linux video capture interface: v2.00 [ 5.849143] checking generic (3e3cf000 7f8000) vs hw (0 ffffffffffffffff) [ 5.849168] fb0: switching to vc4drmfb from simple [ 5.849860] Console: switching to colour dummy device 80x30 [ 5.891193] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 5.892652] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4]) [ 5.896330] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 5.927186] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 5.931643] Registered IR keymap rc-cec [ 5.931910] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0 [ 5.932161] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input3 [ 5.937918] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned. [ 5.944112] vc4_hdmi fef00700.hdmi: Could not register sound card: -517 [ 5.954207] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13 [ 5.954715] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14 [ 5.955253] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15 [ 5.955592] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16 [ 5.955622] bcm2835-isp bcm2835-isp: Register output node 0 with media controller [ 5.955652] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller [ 5.955676] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller [ 5.955698] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller [ 5.955908] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp [ 5.985232] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 6.118757] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4]) [ 6.121122] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1 [ 6.138964] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 6.139010] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 6.143752] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 6.143798] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 6.145417] Registered IR keymap rc-cec [ 6.145626] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0 [ 6.145869] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input4 [ 6.147219] vc4_hdmi fef00700.hdmi: Could not register sound card: -517 [ 6.149492] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 6.149535] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 6.152382] bcm2835-codec bcm2835-codec: Device registered as /dev/video18 [ 6.152424] bcm2835-codec bcm2835-codec: Loaded V4L2 image_fx [ 6.274130] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4]) [ 6.307165] Registered IR keymap rc-cec [ 6.307365] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0 [ 6.307583] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input5 [ 6.311568] vc4_hdmi fef00700.hdmi: Could not register sound card: -517 [ 6.702666] input: A4Tech USB Mouse as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.0/0003:09DA:000A.0003/input/input6 [ 6.703271] a4tech 0003:09DA:000A.0003: input,hidraw2: USB HID v1.10 Mouse [A4Tech USB Mouse] on usb-0000:01:00.0-1.2/input0 [ 6.712635] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4]) [ 6.731997] Registered IR keymap rc-cec [ 6.732192] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0 [ 6.732422] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input7 [ 6.733463] vc4_hdmi fef00700.hdmi: Could not register sound card: -517 [ 7.358854] 8021q: 802.1Q VLAN Support v1.8 [ 7.601271] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay) [ 7.602743] bcmgenet fd580000.ethernet eth0: Link is Down [ 7.655178] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS [ 7.831927] random: crng init done [ 7.831948] random: 7 urandom warning(s) missed due to ratelimiting [ 7.977577] vc4-drm gpu: bound fe400000.hvs (ops vc4_hvs_ops [vc4]) [ 8.020669] Registered IR keymap rc-cec [ 8.020871] rc rc0: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0 [ 8.021286] input: vc4 as /devices/platform/soc/fef00700.hdmi/rc/rc0/input8 [ 8.040572] vc4-drm gpu: bound fef00700.hdmi (ops vc4_hdmi_ops [vc4]) [ 8.141778] Registered IR keymap rc-cec [ 8.141998] rc rc1: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1 [ 8.142236] input: vc4 as /devices/platform/soc/fef05700.hdmi/rc/rc1/input9 [ 8.149559] vc4-drm gpu: bound fef05700.hdmi (ops vc4_hdmi_ops [vc4]) [ 8.150045] vc4-drm gpu: bound fe004000.txp (ops vc4_txp_ops [vc4]) [ 8.150377] vc4-drm gpu: bound fe206000.pixelvalve (ops vc4_crtc_ops [vc4]) [ 8.150725] vc4-drm gpu: bound fe207000.pixelvalve (ops vc4_crtc_ops [vc4]) [ 8.151069] vc4-drm gpu: bound fe20a000.pixelvalve (ops vc4_crtc_ops [vc4]) [ 8.151338] vc4-drm gpu: bound fe216000.pixelvalve (ops vc4_crtc_ops [vc4]) [ 8.151706] vc4-drm gpu: bound fec12000.pixelvalve (ops vc4_crtc_ops [vc4]) [ 8.197029] [drm] Initialized vc4 0.0.0 20140616 for gpu on minor 0 [ 8.298195] Console: switching to colour frame buffer device 240x67 [ 8.324968] vc4-drm gpu: [drm] fb0: vc4drmfb frame buffer device [ 9.721225] systemd-journald[130]: File /var/log/journal/6863a4a704a449d0b3397f55bec3e7ce/user-1000.journal corrupted or uncleanly shut down, renaming and replacing. [ 10.480750] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 10.481619] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 10.687283] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 10.688725] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 10.692112] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 11.756031] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 11.756060] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 12.237056] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 12.237983] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 12.252788] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 12.253137] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 12.253444] hdmi-audio-codec hdmi-audio-codec.4.auto: ASoC: error at snd_soc_dai_startup on i2s-hifi: -19 [ 13.199596] ICMPv6: process `dhcpcd' is using deprecated sysctl (syscall) net.ipv6.neigh.eth0.retrans_time - use net.ipv6.neigh.eth0.retrans_time_ms instead [ 32.142583] v3d fec00000.v3d: MMU error from client L2T (0) at 0xba1000, pte invalid [ 619.712808] nrc: loading out-of-tree module taints kernel. [ 619.743896] nrc80211 nrc80211: [spi_suspend] drv_state:-1 wowlan_enabled:0 power_save:0

[ 619.743905] start FW 333 [ 620.184203] end FW [ 623.208490] nrc80211 nrc80211: size of bd file is 2128 [ 623.208540] nrc80211 nrc80211: Major 01 Minor 04 Total len 0840 Num_Data_Groups 0009 Checksum 38AB [ 623.208550] nrc80211 nrc80211: target version is not matched(1 : 0) pi@raspberrypi:~/nrc_pkg/script $

mingtsann commented 1 year ago

Skip the bugs

silos96 commented 1 year ago

hi, i have the same problem. Can you tell to me how you fix it?

many thanks

silos96 commented 1 year ago

i'm using the last revision 1.3.4 rev 14

and raspberry pi4

thanks

mingtsann commented 1 year ago

It is newracom's driver problem. Suggest just skip it and waits for newracom fix it.

Have a nice day !

Ed

silos96 @.***> 於 2023年1月31日 週二 21:24 寫道:

i'm using the last revision 1.3.4 rev 14

and raspberry pi4

thanks

— Reply to this email directly, view it on GitHub https://github.com/newracom/nrc7292_sw_pkg/issues/60#issuecomment-1410346481, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVJ26S6L3CYMFVUIP6BO563WVEG75ANCNFSM6AAAAAASEABM5A . You are receiving this because you modified the open/close state.Message ID: @.***>

silos96 commented 1 year ago

i'm sorry, can you tell me some more information about the fix?

what i have to skip?

i know that the problem is related to a nrc.ko driver. but what i have to do in order to solve it?

newracom commented 1 year ago

Dear @silos96,

Could you send me this? nrc_pkg/sw/firmware/nrc7292_bd.dat

BTW, which version of SW package are you using?

Best regards, Newracom

silos96 commented 1 year ago

hi, i'm using a legacy version of raspberrypi OS, 22-09-2022, Buster. the kernel is 5.10 version. i follow your guide to install all in raspberry pi 4.

the nrc7292_sw_pkg is the last one 1.3.4 rev 14

i attach the log of start.py:

~/nrc_pkg/script/start.py 1 0 EU Done. Done.

Model : 7292 STA Type : AP Country : EU Security Mode : OPEN AMPDU : ON Download FW : uni_s1g.bin Max TX Power : 24 BSS MAX IDLE : 180

NRC AP setting for HaLow... [*] Set Max CPU Clock on RPi 1400000 1400000 1400000 1400000 Done [0] Clear [1] Copy and Set Module Parameters total 680 drwxr-xr-x 2 pi pi 4096 Feb 1 09:46 . drwxr-xr-x 4 pi pi 4096 Feb 1 09:42 .. -rwxrwxrwx 1 pi pi 281 Feb 1 09:42 copy -rwxr-xr-x 1 pi pi 2128 Feb 1 09:42 nrc7292_bd.dat -rwxr-xr-x 1 pi pi 337820 Feb 1 09:42 nrc7292_cspi.bin -rwxr-xr-x 1 root root 337820 Feb 1 09:56 uni_s1g.bin -rwxr-xr-x 1 root root 337820 Feb 1 09:56 /lib/firmware/uni_s1g.bin

AP INTERFACE : wlan0 AP STATIC IP : 192.168.200.1 NET MASK NUM : 24

Config for AP is done! IP and DHCP config done [2] Set Initial Country [3] Loading module sudo insmod /home/pi/nrc_pkg/sw/driver/nrc.ko hifspeed=20000000 spi_bus_num=0 spi_cs_num=0 spi_gpio_irq=5 spi_polling_interval=0 fw_name=uni_s1g.bin bss_max_idle=180 ndp_preq=1 auto_ba=1 listen_interval=1000 SIOCSIFFLAGS: Operation not permitted

i cannot attach the .dat file here. i attach a link of my onedrive where you can download it.

https://unipvit-my.sharepoint.com/:f:/g/personal/francesco_silino01_universitadipavia_it/Emi-8RsC6XBGiLbpPeyqwrUBQIaM9J4mKAB_oQivCnWTsA?e=XMXDXZ

many thanks

newracom commented 1 year ago

Dear @silos96,

There's target version number at the BD file and this should be configured to be aligned with the target board. I'm afraid AHPI7292S has a different value from NRC7292 EVK. So, I updated that value of BD file. Please try with this: https://newratek-my.sharepoint.com/:u:/g/personal/jehun_lee_newracom_com/Eas32q7PLc5CjvxLlYVHYcgBOV0ZJ3X_ZQrevveEvxQccQ?e=GI3Uo3

Best regards, Newracom

silos96 commented 1 year ago

many thanks, it's work! i'm sorry but this stuff is not indicated in the guide. can you tell to me where i have to modify the .c file and which number i have to put?

best regards francesco

newracom commented 1 year ago

Dear @silos96,

Basically, the BD file should be maintained by the EVK manufacturer. And users can't change it. In this case, Alfa should provide the proper BD file to the customers, however, I supported just once for your convenience.

Best regards, Newracom

silos96 commented 1 year ago

ah ok, thanks. the problem was that the alfa repository is not updated. the sdk present in their repository is 1.3.4 rev.02, and with this one we have some problems. now that i updated to 1.3.4 rev 14 the problems was gone.

anyway, many thanks Francesco