LuckfoxTECH / luckfox-pico

luckfox-pico sdk
317 stars 133 forks source link

WiFi not working when Ubuntu is built from SDK #130

Open x-magic opened 5 months ago

x-magic commented 5 months ago

When using the SDK to build buildroot image for Pico Ultra W, wlan0 is functional (although udhcpc is not automatically running on the interface thus must manually invoke for DHCP - that's another story). However when choosing BoardConfig-EMMC-Ubuntu-RV1106_Luckfox_Pico_Ultra_W-IPC.mk as build target, wlan0 is no where to be found.

It seems mmc1 is detected, but the wireless module on it is not.

选Ubuntu作为Pico Ultra W的build target时WiFi模块检测不到,无法驱动。Buildroot没问题。

Boot log from UART:

DDR V1.10 ec2fae0c96 wesley.yao 22/11/15-10:58:09
S5P1
f967
F
DDRConf2
DDR3, BW=16 Col=10 Bk=8 CS0 Row=14 CS=1 Die BW=16 Size=256MB
924MHz
DDR bin out

U-Boot SPL board init
U-Boot SPL 2017.09 (Jun 20 2024 - 19:46:36)
unrecognized JEDEC id bytes: 00, 00, 00
unknown raw ID 0 0 0
Trying to boot from MMC2
Card did not respond to voltage select!
mmc_init: -95, time 16
spl: mmc init failed with error: -95
Trying to boot from MMC1
ENVF: Primary 0x00000000 - 0x00008000
ENVF: OK
Trying fit image at 0x440 sector
## Verified-boot: 0
## Checking uboot 0x00200000 (lzma @0x00400000) ... sha256(76694e7803...) + sha256(b6b41ac172...) + OK
## Checking fdt 0x0025bed0 ... sha256(51bba657c3...) + OK
Total: 308.915 ms

Jumping to U-Boot(0x00200000)

U-Boot 2017.09 (Jun 20 2024 - 19:46:36 +1000)

Model: Rockchip RV1106 EVB Board
PreSerial: 2, raw, 0xff4c0000
DRAM:  256 MiB
Sysmem: init
Relocation Offset: 0fd85000
Relocation fdt: 0edfacb0 - 0edfede0
CR: M/C/I
Using default environment

mmc@ffa90000: 0, mmc@ffaa0000: 1
ENVF: Primary 0x00000000 - 0x00008000
ENVF: OK
Bootdev(atags): mmc 0
MMC0: HS200, 200Mhz
PartType: ENV
DM: v2
No misc partition
boot mode: normal
FIT: no signed, no conf required
DTB: rk-kernel.dtb
HASH(c): OK
Model: Luckfox Pico Ultra W
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
  apll 816000 KHz
  dpll 924000 KHz
  gpll 1188000 KHz
  cpll 1000000 KHz
  aclk_peri_root 400000 KHz
  hclK_peri_root 200000 KHz
  pclk_peri_root 100000 KHz
  aclk_bus_root 300000 KHz
  pclk_top_root 100000 KHz
  pclk_pmu_root 100000 KHz
  hclk_pmu_root 200000 KHz
Net:   eth0: ethernet@ffa80000
Hit key to stop autoboot('CTRL+C'):  0
## Booting FIT Image at 0xe8fce80 with size 0x002fce00
Fdt Ramdisk skip relocation
No misc partition
Sysmem Warn: kernel 'reserved-memory' "rkisp@860000"(0x00860000 - 0x012ec000) is overlap with "FDT" (0x00c00000 - 0x00c0a404)
Sysmem Warn: kernel 'reserved-memory' "rtos@40000"(0x00040000 - 0x00080000) is overlap with "KERNEL" (0x00008000 - 0x002fa204)
Sysmem Warn: kernel 'reserved-memory' "mmc@3f000"(0x0003f000 - 0x00040000) is overlap with "KERNEL" (0x00008000 - 0x002fa204)
Sysmem Warn: kernel 'reserved-memory' "mmc@100000"(0x00100000 - 0x00200000) is overlap with "KERNEL" (0x00008000 - 0x002fa204)

sysmem_dump_all:
    --------------------------------------------------------------------
    memory.rgn[0].addr     = 0x00000000 - 0x10000000 (size: 0x10000000)

    memory.total           = 0x10000000 (256 MiB. 0 KiB)
    --------------------------------------------------------------------
    allocated.rgn[0].name  = "UBOOT"
                    .addr  = 0x0edfac90 - 0x10000000 (size: 0x01205370)
    allocated.rgn[1].name  = "STACK"
                    .addr  = 0x0ebfac90 - 0x0edfac90 (size: 0x00200000)
    allocated.rgn[2].name  = "FIT"
                    .addr  = 0x0e8fce80 - 0x0ebf9c84 (size: 0x002fce04)
    allocated.rgn[3].name  = "FDT"
                    .addr  = 0x00c00000 - 0x00c0a404 (size: 0x0000a404)
    allocated.rgn[4].name  = "KERNEL"
                    .addr  = 0x00008000 - 0x002fa204 (size: 0x002f2204)

    kmem-resv.rgn[0].name  = "rtos@40000"
                    .addr  = 0x00040000 - 0x00080000 (size: 0x00040000)
    kmem-resv.rgn[1].name  = "meta@800000"
                    .addr  = 0x00800000 - 0x00860000 (size: 0x00060000)
    kmem-resv.rgn[2].name  = "rkisp@860000"
                    .addr  = 0x00860000 - 0x012ec000 (size: 0x00a8c000)
    kmem-resv.rgn[3].name  = "ramdisk_r"
                    .addr  = 0x012ec000 - 0x01cec000 (size: 0x00a00000)
    kmem-resv.rgn[4].name  = "ramdisk_c"
                    .addr  = 0x01cec000 - 0x021ec000 (size: 0x00500000)
    kmem-resv.rgn[5].name  = "mmc@3f000"
                    .addr  = 0x0003f000 - 0x00040000 (size: 0x00001000)
    kmem-resv.rgn[6].name  = "mmc@100000"
                    .addr  = 0x00100000 - 0x00200000 (size: 0x00100000)

    framework malloc_r     =  16 MiB
    framework malloc_f     = 512 KiB

    allocated.total        = 0x0352b77c (53 MiB. 173 KiB)
    --------------------------------------------------------------------
    LMB.allocated[0].addr  = 0x00008000 - 0x002fa204 (size: 0x002f2204)
    LMB.allocated[1].addr  = 0x00c00000 - 0x00c0a404 (size: 0x0000a404)
    LMB.allocated[2].addr  = 0x0e8fce80 - 0x0ebf9cc0 (size: 0x002fce40)
    LMB.allocated[3].addr  = 0x0ebfac90 - 0x10000000 (size: 0x01405370)

    reserved.core.total    = 0x019fe7b8 (25 MiB. 1017 KiB)
    --------------------------------------------------------------------

## Loading kernel from FIT Image at 0e8fce80 ...
   Using 'conf' configuration
## Verified-boot: 0
   Trying 'kernel' kernel subimage
     Description:  unavailable
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x0e907a80
     Data Size:    3088528 Bytes = 2.9 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    sha256
     Hash value:   1c940c995d09128a0badbe3cff9479d8f946e7be14e73fbd82dbf44487b7d5d0
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 0e8fce80 ...
   Using 'conf' configuration
   Trying 'fdt' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x0e8fd680
     Data Size:    41735 Bytes = 40.8 KiB
     Architecture: ARM
     Load Address: 0x00c00000
     Hash algo:    sha256
     Hash value:   203b19e0993d41e6b9cad080f81d5705ddfa416f9364c71b3a26e1f92ee52e51
   Verifying Hash Integrity ... sha256+ OK
   Loading fdt from 0x0e8fce80 to 0x00c00000
   Booting using the fdt blob at 0x00c00000
   Loading Kernel Image from 0x0e907a80 to 0x00008000 ... OK
   kernel loaded at 0x00008000, end = 0x002fa090
  'reserved-memory' rtos@40000: addr=40000 size=40000
  'reserved-memory' meta@800000: addr=800000 size=60000
  'reserved-memory' rkisp@860000: addr=860000 size=a8c000
  'reserved-memory' ramdisk_r: addr=12ec000 size=a00000
  'reserved-memory' ramdisk_c: addr=1cec000 size=500000
  'reserved-memory' mmc@3f000: addr=3f000 size=1000
  'reserved-memory' mmc@100000: addr=100000 size=100000
   Using Device Tree in place at 00c00000, end 00c0d306
Adding bank: 0x00000000 - 0x10000000 (size: 0x10000000)
Total: 748.161 ms

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.110 (root@BHGsPC-XPS8940) (arm-rockchip830-linux-uclibcgnueabihf-gcc (crosstool-NG 1.24.0) 8.3.0, GNU ld (crosstool-NG 1.24.0) 2.32) #1 Thu Jun 20 19:46:51 AEST 2024
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=50c53c7d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Luckfox Pico Ultra W
[    0.000000] Memory policy: Data cache writeback
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x00000000, size 0 MiB
[    0.000000] Reserved memory: created CMA memory pool at 0x0f600000, size 10 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] cma: Reserved 67584 KiB at 0x0b400000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: user_debug=31 storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal  rootwait earlycon=uart8250,mmio32,0xff4c0000 console=ttyFIQ0 snd_soc_core.prealloc_buffer_size_kbytes=16 coherent_pool=0 root=/dev/mmcblk0p7 rootfstype=ext4 rk_dma_heap_cma=66M blkdevparts=mmcblk0:32K(env),512K@32K(idblock),256K(uboot),32M(boot),512M(oem),256M(userdata),6G(rootfs)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 148732K/262144K available (3904K kernel code, 308K rwdata, 1824K rodata, 168K init, 141K bss, 35588K reserved, 77824K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x1fb/0x360 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000443] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000)
[    0.000463] pid_max: default: 4096 minimum: 301
[    0.000620] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000634] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001203] CPU: Testing write buffer coherency: ok
[    0.001649] Setting up static identity map for 0x81c0 - 0x81f8
[    0.002083] devtmpfs: initialized
[    0.009643] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.009804] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns
[    0.009856] futex hash table entries: 16 (order: -5, 192 bytes, linear)
[    0.009937] pinctrl core: initialized pinctrl subsystem
[    0.010693] NET: Registered protocol family 16
[    0.011078] DMA: failed to allocate 0 KiB pool for atomic coherent allocation
[    0.011760] thermal_sys: Registered thermal governor 'step_wise'
[    0.011768] thermal_sys: Registered thermal governor 'user_space'
[    0.011994] cpuidle: using governor menu
[    0.012021] Registered FIQ tty driver
[    0.018639] OF: /acodec@ff480000: could not get #gpio-cells for /pinctrl/pcfg-pull-up
[    0.026254] rockchip-gpio ff380000.gpio: probed /pinctrl/gpio@ff380000
[    0.026957] rockchip-gpio ff530000.gpio: probed /pinctrl/gpio@ff530000
[    0.027602] rockchip-gpio ff540000.gpio: probed /pinctrl/gpio@ff540000
[    0.028363] rockchip-gpio ff550000.gpio: probed /pinctrl/gpio@ff550000
[    0.028970] rockchip-gpio ff560000.gpio: probed /pinctrl/gpio@ff560000
[    0.029060] rockchip-pinctrl pinctrl: probed pinctrl
[    0.039233] fiq_debugger fiq_debugger.0: IRQ uart_irq not found
[    0.039255] fiq_debugger fiq_debugger.0: IRQ wakeup not found
[    0.039519] printk: console [ttyFIQ0] enabled
[    0.039682] Registered fiq debugger ttyFIQ0
[    0.041693] SCSI subsystem initialized
[    0.041897] usbcore: registered new interface driver usbfs
[    0.041949] usbcore: registered new interface driver hub
[    0.042002] usbcore: registered new device driver usb
[    0.042224] mc: Linux media interface: v0.10
[    0.042268] videodev: Linux video capture interface: v2.00
[    0.043278] Advanced Linux Sound Architecture Driver Initialized.
[    0.043816] Bluetooth: Core ver 2.22
[    0.043883] NET: Registered protocol family 31
[    0.043895] Bluetooth: HCI device and connection manager initialized
[    0.043910] Bluetooth: HCI socket layer initialized
[    0.043922] Bluetooth: L2CAP socket layer initialized
[    0.043941] Bluetooth: SCO socket layer initialized
[    0.044483] rockchip-cpuinfo cpuinfo: SoC            : 11061000
[    0.044505] rockchip-cpuinfo cpuinfo: Serial         : <REDACTED>
[    0.044900] rockchip,rknpor-powergood ff000000.syscon:rknpor-powergood: probe success!
[    0.045602] clocksource: Switched to clocksource arch_sys_counter
[    0.046765] NET: Registered protocol family 2
[    0.046990] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.047503] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.047560] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.047586] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.047617] TCP: Hash tables configured (established 2048 bind 2048)
[    0.047722] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.047759] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.047882] NET: Registered protocol family 1
[    0.048308] RPC: Registered named UNIX socket transport module.
[    0.048339] RPC: Registered udp transport module.
[    0.048346] RPC: Registered tcp transport module.
[    0.048353] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.049413] Initialise system trusted keyrings
[    0.049614] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.053417] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.054116] NFS: Registering the id_resolver key type
[    0.054173] Key type id_resolver registered
[    0.054193] Key type id_legacy registered
[    0.054242] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.141614] Key type asymmetric registered
[    0.141646] Asymmetric key parser 'x509' registered
[    0.141694] io scheduler mq-deadline registered
[    0.142111] rockchip-usb2phy ff3e0000.usb2-phy: IRQ index 0 not found
[    0.145275] pwm-backlight backlight: supply power not found, using dummy regulator
[    0.148017] dma-pl330 ff420000.dma-controller: Loaded driver for PL330 DMAC-241330
[    0.148041] dma-pl330 ff420000.dma-controller:       DBUFF-128x8bytes Num_Chans-8 Num_Peri-32 Num_Events-16
[    0.148831] rockchip-pvtm ff240000.pvtm: pvtm@0 probed
[    0.149057] rockchip-pvtm ff390000.pvtm: pvtm@0 probed
[    0.149627] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    0.150326] ff4b0000.serial: ttyS1 at MMIO 0xff4b0000 (irq = 35, base_baud = 1500000) is a 16550A
[    0.153528] random: fast init done
[    0.153662] random: crng init done
[    0.155174] rockchip-drm display-subsystem: bound ff990000.vop (ops 0xb040d858)
[    0.155235] rockchip-rgb ff000000.syscon:rgb: [drm:rockchip_rgb_bind] *ERROR* failed to find panel or bridge: -517
[    0.158803] panel-simple panel: supply power not found, using dummy regulator
[    0.169389] brd: module loaded
[    0.175175] loop: module loaded
[    0.177439] rk_gmac-dwmac ffa80000.ethernet: IRQ eth_lpi not found
[    0.177688] rk_gmac-dwmac ffa80000.ethernet: PTP uses main clock
[    0.177748] rk_gmac-dwmac ffa80000.ethernet: no regulator found
[    0.177764] rk_gmac-dwmac ffa80000.ethernet: clock input or output? (input).
[    0.177776] rk_gmac-dwmac ffa80000.ethernet: Can not read property: tx_delay.
[    0.177792] rk_gmac-dwmac ffa80000.ethernet: set tx_delay to 0xffffffff
[    0.177801] rk_gmac-dwmac ffa80000.ethernet: Can not read property: rx_delay.
[    0.177809] rk_gmac-dwmac ffa80000.ethernet: set rx_delay to 0xffffffff
[    0.177894] rk_gmac-dwmac ffa80000.ethernet: integrated PHY? (yes).
[    0.177919] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_rx
[    0.177935] rk_gmac-dwmac ffa80000.ethernet: cannot get clock mac_clk_tx
[    0.177973] rk_gmac-dwmac ffa80000.ethernet: cannot get clock clk_mac_speed
[    0.177983] rk_gmac-dwmac ffa80000.ethernet: clock input from PHY
[    0.178216] rk_gmac-dwmac ffa80000.ethernet: init for RMII
[    0.178418] rk_gmac-dwmac ffa80000.ethernet: User ID: 0x30, Synopsys ID: 0x51
[    0.178456] rk_gmac-dwmac ffa80000.ethernet:         DWMAC4/5
[    0.178472] rk_gmac-dwmac ffa80000.ethernet: DMA HW capability register supported
[    0.178481] rk_gmac-dwmac ffa80000.ethernet: RX Checksum Offload Engine supported
[    0.178489] rk_gmac-dwmac ffa80000.ethernet: TX Checksum insertion supported
[    0.178504] rk_gmac-dwmac ffa80000.ethernet: Wake-Up On Lan supported
[    0.178514] rk_gmac-dwmac ffa80000.ethernet: TSO supported
[    0.178522] rk_gmac-dwmac ffa80000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.178530] rk_gmac-dwmac ffa80000.ethernet: TSO feature enabled
[    0.178542] rk_gmac-dwmac ffa80000.ethernet: Using 40 bits DMA width
[    0.185436] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.185866] usbcore: registered new interface driver usb-storage
[    0.186059] gadgetfs: USB Gadget filesystem, version 24 Aug 2004
[    0.186118] Mass Storage Function, version: 2009/09/11
[    0.186142] LUN: removable file: (no medium)
[    0.186180] no file given for LUN0
[    0.186228] udc ffb00000.usb: failed to start g_mass_storage: -22
[    0.187839] rockchip-rtc ff1c0000.rtc: rockchip_rtc_compensation:timeout waiting for RTC TEST STATUS : -110
[    0.188530] rockchip-rtc ff1c0000.rtc: registered as rtc0
[    0.188613] rockchip-rtc ff1c0000.rtc: setting system clock to 2024-06-20T12:44:12 UTC (1718887452)
[    0.188880] i2c /dev entries driver
[    0.190207] i2c i2c-4: 1 i2c clients have been registered at 0x30
[    0.190646] i2c i2c-4: 2 i2c clients have been registered at 0x30
[    0.191783] usbcore: registered new interface driver uvcvideo
[    0.191803] USB Video Class driver (1.1.1)
[    0.193105] rockchip-thermal ff3c8000.tsadc: tsadc is probed successfully!
[    0.193525] Bluetooth: HCI UART driver ver 2.3
[    0.193554] Bluetooth: HCI UART protocol H4 registered
[    0.194896] cpu cpu0: failed to register system monitor
[    0.195537] Synopsys Designware Multimedia Card Interface Driver
[    0.196508] dwmmc_rockchip ffa90000.mmc: IDMAC supports 32-bit address mode.
[    0.196562] dwmmc_rockchip ffa90000.mmc: Using internal DMA controller.
[    0.196579] dwmmc_rockchip ffa90000.mmc: Version ID is 270a
[    0.196620] dwmmc_rockchip ffa90000.mmc: DW MMC controller at irq 51,32 bit host data width,256 deep fifo
[    0.197011] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.197737] dwmmc_rockchip ffaa0000.mmc: IDMAC supports 32-bit address mode.
[    0.197788] dwmmc_rockchip ffaa0000.mmc: Using internal DMA controller.
[    0.197806] dwmmc_rockchip ffaa0000.mmc: Version ID is 270a
[    0.197856] dwmmc_rockchip ffaa0000.mmc: DW MMC controller at irq 52,32 bit host data width,256 deep fifo
[    0.197993] dwmmc_rockchip ffaa0000.mmc: allocated mmc-pwrseq
[    0.198019] mmc_host mmc1: card is non-removable.
[    0.199098] dtbocfg: 0.1.0
[    0.199177] dtbocfg: OK
[    0.201722] rv1106-acodec ff480000.acodec: current soc_id: rv1106
[    0.201828] rv1106-acodec ff480000.acodec: Use pa_ctl_gpio and pa_ctl_delay_ms: 0
[    0.203874] NET: Registered protocol family 17
[    0.204036] Bluetooth: RFCOMM TTY layer initialized
[    0.204079] Bluetooth: RFCOMM socket layer initialized
[    0.204118] Bluetooth: RFCOMM ver 1.11
[    0.204185] [BT_RFKILL]: Enter rfkill_rk_init
[    0.204198] [WLAN_RFKILL]: Enter rfkill_wlan_init
[    0.204696] Key type dns_resolver registered
[    0.205562] Loading compiled-in X.509 certificates
[    0.209188] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.226380] rockchip-drm display-subsystem: bound ff990000.vop (ops 0xb040d858)
[    0.226457] rockchip-drm display-subsystem: bound ff000000.syscon:rgb (ops 0xb040e378)
[    0.226797] rockchip-drm display-subsystem: failed to parse loader memory
[    0.226942] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    0.227037] rockchip-drm display-subsystem: [drm] Cannot find any crtc or sizes
[    0.227871] [drm] Initialized rockchip 3.0.0 20140818 for display-subsystem on minor 0
[    0.228508] input: adc-keys as /devices/platform/adc-keys/input/input0
[    0.233128] mmc1: queuing unknown CIS tuple 0x10 (5 bytes)
[    0.236584] mmc_host mmc0: Bus speed (slot 0) = 24750000Hz (slot req 25000000Hz, actual 24750000HZ div = 0)
[    0.236697] mmc0: new MMC card at address 0001
[    0.237211] mmcblk0: mmc0:0001 8GTF4R 7.28 GiB
[    0.237336] mmcblk0boot0: mmc0:0001 8GTF4R partition 1 4.00 MiB
[    0.237453] mmcblk0boot1: mmc0:0001 8GTF4R partition 2 4.00 MiB
[    0.237679] mmcblk0rpmb: mmc0:0001 8GTF4R partition 3 512 KiB, chardev (247:0)
[    0.238177]  mmcblk0: p1(env) p2(idblock) p3(uboot) p4(boot) p5(oem) p6(userdata) p7(rootfs)
[    0.239029] mmc_host mmc1: Bus speed (slot 0) = 49500000Hz (slot req 50000000Hz, actual 49500000HZ div = 0)
[    0.239236] mmc1: queuing unknown CIS tuple 0x10 (5 bytes)
[    0.240373] mmc1: new SDIO card at address a281
[    0.298294] ALSA device list:
[    0.298316]   #0: rv1106-acodec
[    0.352129] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null)
[    0.352239] VFS: Mounted root (ext4 filesystem) readonly on device 179:7.
[    0.399587] devtmpfs: mounted
[    0.400107] Freeing unused kernel memory: 168K
[    0.400132] Kernel memory protection not selected by kernel config.
[    0.400219] Run /sbin/init as init process
[    3.395267] systemd[1]: Failed to look up module alias 'autofs4': Function not implemented
[    3.473278] systemd[1]: systemd 249.11-0ubuntu3.11 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CU
Welcome to Ubuntu 22.04.3 LTS!

RL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY -P11KIT -QRENCODE +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[    3.475953] systemd[1]: Detected architecture arm.
[    3.488719] systemd[1]: Hostname set to <luckfox>.
[    5.978583] systemd[1]: Queued start job for default target Graphical Interface.
[  OK  ] Created slice Slice /system/getty.
[  OK  ] Created slice Slice /system/modprobe.
[  OK  ] Created slice Slice /system/serial-getty.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Started Dispatch Password …ts to Console Directory Watch.
[  OK  ] Started Forward Password R…uests to Wall Directory Watch.
[  OK  ] Reached target Local Encrypted Volumes.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Reached target Slice Units.
[  OK  ] Reached target Local Verity Protected Volumes.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on initctl Compatibility Named Pipe.
[    5.983975] systemd[1]: Created slice Slice /system/getty.
[    5.988442] systemd[1]: Created slice Slice /system/modprobe.
[    5.994734] systemd[1]: Created slice Slice /system/serial-getty.
[    6.000479] systemd[1]: Created slice User and Session Slice.
[    6.006293] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    6.014363] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    6.022427] systemd[1]: Condition check resulted in Arbitrary Executable File Formats File System [  OK  ] Listening on Journal Socket (/dev/log).A
utomount Point being[  OK  ] Listening on Journal Socket.
 skipped.
[    6.023066] systemd[1]: Reached target Local Encrypted Volumes.
[    6.028899] systemd[1]: Reached target Remote File Systems.
[    6.034562] systemd[1]: Reached target Slice Units.
[    6.040164] systemd[1]: Reached target Local Verity Protected Volumes.
[    6.047954] systemd[1]: Listening on Syslog Socket.
[    6.053014] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    6.106638] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    6.107736] systemd[1]: Listening on Jo[  OK  ] Listening on udev Control Socket.u
rnal Socket (/dev[  OK  ] Listening on udev Kernel Socket.
/log).
[    6.114331] systemd[1]: Listening on Journal Socket.
[    6.1663         Mounting Kernel Debug File System...
62] systemd[1]: Listening on udev Control Socket.
[    6.173993] systemd[1]: Listening on udev Kernel Socket.
[    6.181090         Starting Journal Service...] systemd[1]: Con
dition check resulted in Huge Pages File System being skipped.
[    6.181885] systemd[1]: Condition check resulted in POSIX Message Queue File System being skipped.
[    6.186400] systemd[1]: Mounting Kernel Debug File System...
[    6.193592] systemd[1]: Condition check          Startinresulted in Kernel Trace File Sysg Load Ktem being skipped.
[    6.197941] syernel Module confstemd[1]: systemd-journald.serviigfs...ce: u
nit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[    6.197985] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[    6.202549] systemd[1]: Starting Journal Service...
[    6.210080] systemd[1]: Condition check resulted in Create List of Static Device Nodes being skipped         Startin.
[    g Load K6.230499] systemd[1]: Starting Load Kernel Module confernel Module drm...
igfs...
[    6.276591] systemd[1]: Starting Load Kernel Module drm...
[    6.306424] systemd[1]: Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module efi_pstore...
[    6.342968] systemd[1]: Starting Load Kernel Module fuse...
         Starting Load Kernel Module fuse...
[    6.419822] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[    6.431048] systemd[1]: Starting Remount Root and Kernel File Sys         Starting Remount Root and Kerneltems...
 File Systems...
[    6.470430] systemd[1]: Starting Coldplug All udev Devices...
         Starting Coldplug All udev Devices...
[    6.513867] systemd[1]: Mounted Kernel Debug File System.
[  OK  ] Mounted Kernel Debug File System.
[    6.536033] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module configfs.l Module configfs.

[    6.589416] systemd[1]: modprobe@drm.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module drm.
[    6.591414] systemd[1]: Finished Load Kernel Module drm.
[    6.605246] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[    6.611470] EXT4-fs (mmcblk0p7): re-mounted. Opts: (null)
[  OK  ] Finished Load Kernel Module efi_pstore.
[    6.615550] systemd[1]: Finished Load Kernel Module efi_pstore.
[    6.637983] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[  OK  ] Finished Load Kernel Module fuse.
[    6.641518] systemd[1]: Finished Load Kernel Module fuse.
[  OK  ] Finished Load Kernel Modules.
[    6.650762] systemd[1]: Finished Load Kernel Modules.
[    6.661[  OK   0m] Finished ystem1;39mRemount Rootd[1]: Finished Remoun and Kernel File Systems.
t Root and Kernel File Systems.
[    6.686029] systemd[1]: Activating swap /swapfile...
         Activating swap /swapfile...
[    6.694504] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[    6.712688] systemd[1]: Mounting Kernel Configuration File System         Mounting Kernel...
 Configuration File System...
[    6.721254] systemd[1]: Condition check resulted in Platform Persistent Storage Archival being skipped.
[    6.739707] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/Save Random Seed...
[    6.769240] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[    6.787070] systemd[1]: Starting Create System Users...
         Starting Create System Users...
[    6.832793] systemd[1]: Mounted Kernel Configuration File Syst[  OK  ] Mounted Kernel Configuration File System.
em.
[    6.862384] Adding 1048572k swap on /swapfile.  Priority:-2 extents:3 across:1[  OK   SS
[    6.864361] sy0m] Activated swastemd[1]p /swapf: Activated swap /swapfile.
ile.
[    6.897572] systemd[1]: Reached target Swaps.
[  OK  ] Reached target Swaps.
[    7.028624] systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Finished Apply Kernel Variables.
[  OK  ] Finished Create System Users.
         Starting Create Static Device Nodes in /dev...
[  OK  ] Finished Coldplug All udev Devices.
         Starting Helper to synchronize boot up for ifupdown...
[  OK  ] Finished Create Static Device Nodes in /dev.
[  OK  ] Reached target Preparation for Local File Systems.
         Starting Rule-based Manage…for Device Events and Files...
[  OK  ] Finished Helper to synchronize boot up for ifupdown.
[  OK  ] Finished Flush Journal to Persistent Storage.
[  OK  ] Started Rule-based Manager for Device Events and Files.
[  OK  ] Created slice Slice /system/systemd-backlight.
         Starting Load/Save Screen …ness of backlight:backlight...
[  OK  ] Finished Load/Save Screen …htness of backlight:backlight.
[  OK  ] Found device /dev/ttyFIQ0.
         Starting Load Kernel Module efi_pstore...
         Starting Load Kernel Module fuse...
[  OK  ] Finished Load Kernel Module efi_pstore.
[  OK  ] Finished Load Kernel Module fuse.
[  OK  ] Reached target Hardware activated USB gadget.
[  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
[  OK  ] Found device /dev/mmcblk0p5.
         Mounting /oem...
[  OK  ] Mounted /oem.
[  OK  ] Found device /dev/mmcblk0p6.
         Mounting /userdata...
[  OK  ] Mounted /userdata.
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
         Starting Create Volatile Files and Directories...
[  OK  ] Finished Create Volatile Files and Directories.
         Starting Network Name Resolution...
         Starting Record System Boot/Shutdown in UTMP...
[  OK  ] Finished Record System Boot/Shutdown in UTMP.
[  OK  ] Reached target System Initialization.
[  OK  ] Started ACPI Events Check.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Started Daily dpkg database backup timer.
[  OK  ] Started Periodic ext4 Onli…ata Check for All Filesystems.
[  OK  ] Started Discard unused blocks once a week.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Started Message of the Day.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Path Units.
[  OK  ] Reached target Timer Units.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Reached target Socket Units.
[  OK  ] Reached target Basic System.
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Save/Restore Sound Card State...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Network Manager...
[  OK  ] Started Save initial kernel messages after boot.
         Starting Remove Stale Onli…t4 Metadata Check Snapshots...
         Starting Dispatcher daemon for systemd-networkd...
         Starting Authorization Manager...
         Starting System Logging Service...
         Starting User Login Management...
         Starting WPA supplicant...
[  OK  ] Finished Save/Restore Sound Card State.
[  OK  ] Reached target Sound Card.
[  OK  ] Finished Raise network interfaces.
[  OK  ] Started System Logging Service.
[  OK  ] Started User Login Management.
[  OK  ] Started WPA supplicant.
[  OK  ] Started Network Name Resolution.
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started Authorization Manager.
         Starting Modem Manager...
[  OK  ] Started Network Manager.
[  OK  ] Reached target Network.
         Starting Network Time Service...
         Starting /etc/rc.local Compatibility...
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
         Starting vsftpd FTP server...
[   19.119455] rc.local[213]: Debug: configfs_init

Ubuntu 22.04.3 LTS luckfox ttyFIQ0

[username:password] root:root pico:luckfox

luckfox login: root
Password:

                                ====               ====
                              ========           ========
                              ===========     ===========
                              ====  ===============  ====
                              ====     =========     ====
                              ====                   ====
                             =                           =
                              ============    ============
                            ================================
                          ======      ==========      =======
                          =====         =======          =====
                          ==========      ===     ===========
                            ============        ============
                                  =======      ======
                                    ======    =====
                                      ============
                                        ========
                                          ====

  ===        ===    ===     =======    ===    ===  =========      ======    ===       ===
  ===        ===    ===   ===     ===  ===  ===    ===         ===      ===   ===   ===
  ===        ===    ===  ===           ======      ===        ===        ===    =====
  ===        ===    ===  ===           ======      =========  ===        ===    =====
  ===        ===    ===   ===     ===  ===  ===    ===         ===      ===   ===   ===
  =========    ======       =======    ===    ===  ===            ======    ===       ===

Welcome to Ubuntu 22.04.3 LTS (GNU/Linux 5.10.110 armv7l)

 * Documentation:  https://wiki.luckfox.com
 * Management:     https://www.luckfox.com

This system has been minimized by removing packages and content that are
not required on a system that users do not log into.

To restore this content, you can run the 'unminimize' command.
Last login: Thu Jun 20 20:33:35 CST 2024 on ttyFIQ0
root@luckfox:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
    link/ether <REDACTED> brd ff:ff:ff:ff:ff:ff
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether <REDACTED> brd ff:ff:ff:ff:ff:ff
    inet 172.32.0.70/16 brd 172.32.255.255 scope global usb0
       valid_lft forever preferred_lft forever

If you check the bootlog from buildroot image in #131, the driver for AIC8800DC seems to be loaded thus WiFi is working.

Any suggestions? Thank you.

luckfox-eng33 commented 5 months ago

ubuntu 暂时还没有适配wifi模块,我们优先适配buildroot,因为ubuntu无法使用RK有关的媒体库。 如果你非要使用ubuntu使用wifi的话,你可以试着把aic8800dc的驱动(.ko)和固件放到相同位置,并且挂载驱动

x-magic commented 5 months ago

ubuntu 暂时还没有适配wifi模块,我们优先适配buildroot,因为ubuntu无法使用RK有关的媒体库。 如果你非要使用ubuntu使用wifi的话,你可以试着把aic8800dc的驱动(.ko)和固件放到相同位置,并且挂载驱动

谢谢,我试试。文档里写一下就更好了,毕竟Ubuntu的board config里有wifi配置,根本就没往驱动那个方面去想。

luckfox-eng33 commented 5 months ago

ubuntu 暂时还没有适配wifi模块,我们优先适配buildroot,因为ubuntu无法使用RK有关的媒体库。 如果你非要使用ubuntu使用wifi的话,你可以试着把aic8800dc的驱动(.ko)和固件放到相同位置,并且挂载驱动

谢谢,我试试。文档里写一下就更好了,毕竟Ubuntu的board config里有wifi配置,根本就没往驱动那个方面去想。

我和同事说一下,让他们更新一下

noon92 commented 3 weeks ago

Does wifi work yet with pico mini?