Page 1 of 2
Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-01 6:39
by wef
For the last couple of weeks, it's been working fine. Now I can't see the camera and there's no wifi. usb0 connections last maybe 20s and then disconnect so I have to connect with ethernet.
I have tried re-flashing the unit, but it did not help. The only change I made was to /etc/wpa_supplicant.conf file to add SSID/password.
It seems that rkipc is not running. 'top' shows this:
Code: Select all
Mem: 74088K used, 74620K free, 804K shrd, 5848K buff, 43368K cached
CPU: 0% usr 0% sys 0% nic 99% idle 0% io 0% irq 0% sirq
Load average: 6.16 4.59 2.19 1/92 1160
PID PPID USER STAT VSZ %VSZ %CPU COMMAND
1140 317 root S 5568 4% 0% sshd: root@pts/0
1157 1142 root R 1800 1% 0% top
1156 2 root IW 0 0% 0% [kworker/0:0-eve]
11 2 root SW 0 0% 0% [kcompactd0]
515 1 root S 33016 22% 0% smbd -D
518 515 root S 32088 22% 0% {smbd-notifyd} smbd -D
519 515 root S 32080 22% 0% {smbd-cleanupd} smbd -D
526 1 root S 24600 17% 0% nmbd -D
372 1 root S 10220 7% 0% /usr/bin/adbd
225 1 root S 6552 4% 0% /usr/sbin/ntpd -g -p /var/run/ntpd.pid
430 1 root S 5192 3% 0% rkwifi_server start
317 1 root S 4964 3% 0% sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
186 1 root S 4928 3% 0% /usr/libexec/bluetooth/bluetoothd -n
178 1 dbus S 1812 1% 0% dbus-daemon --system
1142 1140 root S 1808 1% 0% -sh
1 0 root S 1796 1% 0% init
1127 1 root S 1792 1% 0% /sbin/getty -L console 0 vt100
426 1 root S 1792 1% 0% udhcpc -i eth0
87 1 root S 1788 1% 0% /sbin/syslogd -n
329 1 root S 1788 1% 0% /usr/sbin/telnetd -F
91 1 root S 1784 1% 0% /sbin/klogd -n
102 1 root S 1608 1% 0% /sbin/udevd -d
492 1 root S 1252 1% 0% wpa_supplicant -B -i wlan0 -c /data/wpa_supplicant.conf -d
'ip a' shows this:
Code: Select all
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue 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: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 92:d0:fd:cd:28:3f brd ff:ff:ff:ff:ff:ff
inet 192.168.0.124/24 brd 192.168.0.255 scope global eth0
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq qlen 1000
link/ether 28:3d:e8:83:5b:66 brd ff:ff:ff:ff:ff:ff
4: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 3a:5e:18:a4:19:8e brd ff:ff:ff:ff:ff:ff
inet 172.32.0.93/16 brd 172.32.255.255 scope global usb0
valid_lft forever preferred_lft forever
What logs can I provide to help debug this?
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-07 14:52
by Crocodile
Hello, please provide the log of serial output after connecting the power supply (using USB to serial module)
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 2:13
by wef
Sorry for delay - I had thought my post was unsuccessful.
I logged in with ssh 172.32.0.93 over USB but I don't know what you mean by 'serial log' so I post what I can here:
rkipc is not running but when I try manually:
Code: Select all
[root@lfu-1 root]# rkipc
[rkipc.c][main]:rkipc_ini_path_ is (null), rkipc_iq_file_path_ is (null), rkipc_log_level is 2
[param.c][rk_param_init]:g_ini_path_ is /userdata/rkipc.ini
[rockiva.c][rkipc_rockiva_init]:begin
[network.c][rk_net_proc]:Creat rk_net_proc thread!
[rockiva.c][rkipc_rockiva_init]:ROCKIVA_Init over
[rockiva.c][rkipc_rockiva_init]:(0,0), (9943,0), (9943,11666), (0,11666)
[rockiva.c][rkipc_rockiva_init]:ROCKIVA_BA_Init success
create rknn_list success
[rockiva.c][rkipc_rockiva_init]:end
[isp.c][rk_isp_init]:g_iq_file_dir_ is /etc/iqfiles
[isp.c][rk_isp_init]:cam_id is 0, hdr_mode is close, scenario is normal
rkaiq log level ff0
[isp.c][sample_common_isp_init]:ID: 0, sensor_name is ֮1, iqfiles is /etc/iqfiles
[isp.c][sample_common_isp_init]:main_scene is normal, sub_scene is day
[isp.c][sample_common_isp_init]:02:10:59.028464: rk_aiq_uapi2_sysctl_preInit_scene begin
[isp.c][sample_common_isp_init]:02:10:59.028684: rk_aiq_uapi2_sysctl_preInit_scene over
Segmentation fault (core dumped)
Here is the dmesg:
Code: Select all
[root@lfu-1 root]# dmesg
[ 2.881345] rkcif rkcif-mipi-lvds: rkcif driver version: v00.01.0a
[ 2.881460] rkcif rkcif-mipi-lvds: attach to cif hw node
[ 2.881485] rkcif rkcif-mipi-lvds: failed to get dphy hw node
[ 2.881496] rkcif rkcif-mipi-lvds: rkcif wait line 0
[ 2.881509] : terminal subdev does not exist
[ 2.881518] : terminal subdev does not exist
[ 2.881525] : terminal subdev does not exist
[ 2.881531] : terminal subdev does not exist
[ 2.881542] : get_remote_sensor: video pad[0] is null
[ 2.881549] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 2.881561] : get_remote_sensor: video pad[0] is null
[ 2.881567] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 2.881575] : get_remote_sensor: video pad[0] is null
[ 2.881582] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 2.881589] : get_remote_sensor: video pad[0] is null
[ 2.881596] : rkcif_update_sensor_info: stream[0] get remote sensor_sd failed!
[ 2.893957] rkcif rkcif-mipi-lvds: No memory-region-thunderboot specified
[ 2.898139] rkcif rkcif-mipi-lvds: Entity type for entity rockchip-mipi-csi2 was not initialized!
[ 2.898169] rockchip-mipi-csi2: Async registered subdev
[ 2.898179] rockchip-mipi-csi2: probe success, v4l2_dev:rkcif-mipi-lvds!
[ 2.923333] rkisp_hw ffa00000.rkisp: is_thunderboot: 0
[ 2.923358] rkisp_hw ffa00000.rkisp: max input:0x0@0fps
[ 2.923368] rkisp_hw ffa00000.rkisp: Missing rockchip,grf property
[ 2.923871] rkisp_hw ffa00000.rkisp: get sram size:258048
[ 2.923887] rkisp_hw ffa00000.rkisp: no iommu attached, using non-iommu buffers
[ 2.923897] rkisp_hw ffa00000.rkisp: No reserved memory region. default cma area!
[ 2.928144] rkisp rkisp-vir0: rkisp driver version: v02.00.00
[ 2.930064] rkisp rkisp-vir0: Entity type for entity rkisp-isp-subdev was not initialized!
[ 2.971019] rockchip-csi2-dphy-hw ff3e8000.csi2-dphy-hw: csi2 dphy hw probe successfully!
[ 2.995994] rockchip-csi2-dphy csi2-dphy0: csi2 dphy0 probe successfully!
[ 3.085924] rkcif rkcif-mipi-lvds: clear unready subdev num: 3
[ 3.085958] rockchip-csi2-dphy0: No link between dphy and sensor
[ 3.087022] rockchip-csi2-dphy0: No link between dphy and sensor
[ 3.087078] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 3.087090] rkcif-mipi-lvds: Async subdev notifier completed
[ 3.087098] rockchip-csi2-dphy0: No link between dphy and sensor
[ 3.087130] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 3.087139] rkcif-mipi-lvds: There is not terminal subdev, not synchronized with ISP
[ 3.087418] rkisp rkisp-vir0: clear unready subdev num: 1
[ 3.087613] rockchip-csi2-dphy0: No link between dphy and sensor
[ 3.087655] rkcif-mipi-lvds: rkcif_update_sensor_info: stream[0] get remote terminal sensor failed!
[ 3.087663] rkcif-mipi-lvds: There is not terminal subdev, not synchronized with ISP
[ 3.088213] rkisp-vir0: Async subdev notifier completed
[ 3.111264] rga: rga2, irq = 38, match scheduler
[ 3.113530] rga: rga2 hardware loaded successfully, hw_version:3.3.87975.
[ 3.113557] rga: rga2 probe successfully
[ 3.114484] rga_iommu: IOMMU binding successfully, default mapping core[0x4]
[ 3.115874] rga: Module initialized. v1.2.23
[ 3.142368] mpp_vcodec: loading out-of-tree module taints kernel.
[ 3.162930] mpp_vcodec: init new
[ 3.163325] mpp_service mpp-srv: 3760314f author: Zhihua Wang 2023-01-12 [vcodec]: check chan create when destroy
[ 3.163341] mpp_service mpp-srv: probe start
[ 3.168619] mpp_rkvenc_540c ffa50000.rkvenc: probing start
[ 3.169786] mpp_rkvenc_540c ffa50000.rkvenc: probing finish
[ 3.170253] mpp_vepu_pp ffa60000.rkvenc-pp: probe device
[ 3.170355] mpp_vepu_pp ffa60000.rkvenc-pp: shared_rst_a_pp is not found!
[ 3.170366] vepu_pp_init:528: No aclk reset resource define
[ 3.170376] mpp_vepu_pp ffa60000.rkvenc-pp: shared_rst_h_pp is not found!
[ 3.170383] vepu_pp_init:531: No hclk reset resource define
[ 3.173219] mpp_vepu_pp ffa60000.rkvenc-pp: probing finish
[ 3.173509] mpp_service mpp-srv: probe success
[ 3.195014] RKNPU ff660000.npu: RKNPU: rknpu iommu device-tree entry not found!, using non-iommu mode
[ 3.197285] RKNPU ff660000.npu: RKNPU: Initialized RKNPU driver: v0.8.2 for 20220829
[ 3.197397] RKNPU ff660000.npu: dev_pm_opp_set_regulators: no regulator (rknpu) found: -19
[ 3.338252] rockit_load start
[ 3.358623] rockit_load end
[ 3.681493] udevd[281]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video1': No such file or directory
[ 3.682606] rk_gmac-dwmac ffa80000.ethernet eth0: PHY [stmmac-0:02] driver [RK630 PHY] (irq=POLL)
[ 3.683020] dwmac4: Master AXI performs any burst length
[ 3.683053] rk_gmac-dwmac ffa80000.ethernet eth0: No Safety Features support found
[ 3.683071] rk_gmac-dwmac ffa80000.ethernet eth0: PTP not supported by HW
[ 3.683374] rk_gmac-dwmac ffa80000.ethernet eth0: configuring for phy/rmii link mode
[ 3.686822] udevd[284]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video4': No such file or directory
[ 3.687943] udevd[285]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video5': No such file or directory
[ 3.689584] udevd[286]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video6': No such file or directory
[ 3.690988] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 3.693297] udevd[280]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video0': No such file or directory
[ 3.695992] udevd[282]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video2': No such file or directory
[ 3.703797] udevd[283]: failed to execute '/lib/udev/v4l_id' 'v4l_id /dev/video3': No such file or directory
[ 3.842832] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 3.843048] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 3.843065] cfg80211: failed to load regulatory.db
[ 4.087489] aicbsp_init
[ 4.087519] RELEASE_DATE:2023_1219_3cf85031
[ 4.087526] aicbsp_resv_mem_init
[ 4.193036] file system registered
[ 4.237422] using random self ethernet address
[ 4.237455] using random host ethernet address
[ 4.279834] Mass Storage Function, version: 2009/09/11
[ 4.279931] LUN: removable file: (no medium)
[ 4.339245] aicbsp: aicbsp_set_subsys, subsys: AIC_WIFI, state to: 1
[ 4.339274] aicbsp: aicbsp_set_subsys, power state change to 1 dure to AIC_WIFI
[ 4.339281] aicbsp: aicbsp_platform_power_on
[ 4.339513] func_num = 1
[ 4.341558] VID:c8a1 DID:C18D
[ 4.343951] aicbsp: aicbsp_platform_power_on Get semaphore ...
[ 4.343970] aicbsp: aicbsp_platform_power_on Get semaphore success
[ 4.397748] aicbsp: aicbsp_sdio_probe:1 vid:0xC8A1 did:0xC08D
[ 4.397917] aicbsp: aicbsp_sdio_probe:2 vid:0xC8A1 did:0xC18D
[ 4.397929] aicbsp: aicbsp_sdio_probe after replace:1
[ 4.397939] AICWFDBG(LOGINFO) aicwf_sdio_chipmatch USE AIC8800DC
[ 4.397945] the device is PRODUCT_ID_AIC8800DC
[ 4.397954] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 10 MHz
[ 4.397960] aicbsp: aicwf_sdio_reg_init
[ 4.398239] mmc_host mmc1: Bus speed (slot 0) = 9900000Hz (slot req 10000000Hz, actual 9900000HZ div = 0)
[ 4.398258] aicbsp: Set SDIO Clock 10 MHz
[ 4.412489] AICWFDBG(LOGINFO) btenable = 1
[ 4.412512] AICWFDBG(LOGINFO) aicbsp: aicbsp_driver_fw_init, chip rev: 7
[ 4.412527] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_table_8800dc_u02.bin
[ 4.414168] file md5:82e06abe5635a5fb4220a43c1b02e12d
[ 4.414277] rwnx_plat_bin_fw_upload_android
[ 4.414290] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_adid_8800dc_u02.bin
[ 4.414792] file md5:95d10e6288e4d3413c0e3508cb9d711a
[ 4.419070] rwnx_plat_bin_fw_upload_android
[ 4.419094] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fw_patch_8800dc_u02.bin
[ 4.420413] file md5:eafad2bf13af789f064ca2363cd99639
[ 4.472332] aicbt_patch_table_load bt btmode[1]:1
[ 4.472354] aicbt_patch_table_load bt uart_baud[1]:115200
[ 4.472362] aicbt_patch_table_load bt uart_flowctrl[1]:1
[ 4.472368] aicbt_patch_table_load bt lpm_enable[1]:0
[ 4.472374] aicbt_patch_table_load bt tx_pwr[1]:28463
[ 4.489903] aicbsp: bt patch version: - Dec 19 2023 12:17:17 - git 7ed06a6
[ 4.489979] ############ aicwifi_init begin
[ 4.492823] AICWFDBG(LOGINFO) chip_id=7, chip_sub_id=1!!
[ 4.493931] AICWFDBG(LOGDEBUG) [0x40500010]=6
[ 4.516592] ############ system_config_8800dc done
[ 4.516616] AICWFDBG(LOGTRACE) >>> rwnx_plat_patch_load()
[ 4.516624] AICWFDBG(LOGINFO) testmode=0
[ 4.516631] AICWFDBG(LOGINFO) rwnx_plat_patch_loading
[ 4.516637] u02 is loaing ###############
[ 4.516644] rwnx_plat_bin_fw_upload_android
[ 4.516653] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_patch_8800dc_u02.bin
[ 4.518555] file md5:990dc8bafe2a5b687340781a8e1097d7
[ 4.546138] AICWFDBG(LOGINFO) dpd calib & write
[ 4.546162] aicwf_dpd_calib_8800dc
[ 4.546630] AICWFDBG(LOGERROR) misc_ram_addr=120ebc
[ 4.548531] AICWFDBG(LOGTRACE) bit_mask:e5fad053,c9e703c4,1ca97f74,15ccabcc
[ 4.548551] rwnx_plat_bin_fw_upload_android
[ 4.548562] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_calib_8800dc_u02.bin
[ 4.550726] file md5:ce762bb296e3e45f4405d7cd5ff2961a
[ 4.580012] AICWFDBG(LOGINFO) Start app: 00130009, 4
[ 4.604716] read descriptors
[ 4.604750] read strings
[ 4.830193] ############ rwnx_plat_patch_load done
[ 4.831699] AICWFDBG(LOGINFO) wifisetting_cfg_addr=11019c, ldpc_cfg_addr=120980, agc_cfg_addr=120180, txgain_cfg_addr=120000
[ 4.837735] ### Upload fmacfw_patch_tbl_8800dc_u02.bin
[ 4.837761] rwnx_load_firmware :firmware path = /oem/usr/ko/aic8800dc_fw/fmacfw_patch_tbl_8800dc_u02.bin
[ 4.858928] file md5:0de84344e8d8df79b1e7286d2cd6355e
[ 4.858957] tbl size = 728
[ 4.858972] AICWFDBG(LOGINFO) FMACFW_PATCH_TBL_8800DC_U02_DESCRIBE_BASE = 187c00
[ 4.860981] mi Dec 19 2023 12:34:22 - g31c7979
[ 4.860998] patch_tbl: 110888 180e05
[ 4.861498] patch_tbl: 1108ec 184a79
[ 4.861948] patch_tbl: 110874 180e5d
[ 4.863542] patch_tbl: 110658 1816ed
[ 4.864030] patch_tbl: 1107dc 18177d
[ 4.864483] patch_tbl: 1107e0 181a9d
[ 4.864928] patch_tbl: 110838 181b01
[ 4.866147] patch_tbl: 110490 183425
[ 4.866641] patch_tbl: 110420 1826d1
[ 4.867097] patch_tbl: 11048c 1827ed
[ 4.867545] patch_tbl: 110688 182891
[ 4.867986] patch_tbl: 110738 1832cd
[ 4.868416] patch_tbl: 110554 183479
[ 4.869555] patch_tbl: 110798 183afd
[ 4.869963] patch_tbl: 1106dc 183519
[ 4.870342] patch_tbl: 110584 183571
[ 4.870717] patch_tbl: 110588 183749
[ 4.871090] patch_tbl: 110634 185631
[ 4.871459] patch_tbl: 110638 185811
[ 4.871829] patch_tbl: 11086c 185a29
[ 4.872869] patch_tbl: 1105fc 185a85
[ 4.873274] patch_tbl: 1105f0 18643d
[ 4.873665] patch_tbl: 110860 185799
[ 4.874044] patch_tbl: 11081c 1851a1
[ 4.874417] patch_tbl: 1105a4 185d31
[ 4.874785] patch_tbl: 1105c8 185e01
[ 4.875158] patch_tbl: 11064c 1861ad
[ 4.876159] patch_tbl: 110810 185601
[ 4.876566] patch_tbl: 1108c4 183fed
[ 4.876956] patch_tbl: 1108c8 183bf5
[ 4.877332] patch_tbl: 110628 184169
[ 4.877711] patch_tbl: 110758 1867ed
[ 4.878096] patch_tbl: 110750 186c41
[ 4.878464] patch_tbl: 11085c 186f11
[ 4.879605] patch_tbl: 110518 186f51
[ 4.880033] patch_tbl: 1105e0 181c39
[ 4.880427] patch_tbl: 1107d8 183b75
[ 4.880802] patch_tbl: 1103d0 186fb1
[ 4.881177] patch_tbl: 1106c8 18758d
[ 4.881546] patch_tbl: 11056c 187559
[ 4.881922] patch_tbl: 110510 187665
[ 4.882845] patch_tbl: 110550 187701
[ 4.883260] patch_tbl: 110054 1816ed
[ 4.883650] patch_tbl: 11005c 1816ed
[ 4.884023] patch_tbl: 110048 183425
[ 4.884394] patch_tbl: 110088 1859d5
[ 4.884770] patch_tbl: 110ef0 185b89
[ 4.885150] patch_tbl: 110ec0 1865a5
[ 4.886141] patch_tbl: 110da0 1865cd
[ 4.886551] patch_tbl: 110dc0 186789
[ 4.886941] patch_tbl: 110e28 18671d
[ 4.887318] patch_tbl: 1100e0 1866c9
[ 4.887688] patch_tbl: 110d90 186ced
[ 4.888059] patch_tbl: 110e18 186525
[ 4.888430] patch_tbl: 110bb4 1823a5
[ 4.889306] patch_tbl: 1109c0 181d01
[ 4.889714] patch_tbl: 110f08 1826b1
[ 4.890097] patch_tbl: 110b1c 183b01
[ 4.890485] patch_tbl: 110b24 183b01
[ 4.890852] patch_tbl: 110b5c 1829a5
[ 4.891223] patch_tbl: 110b64 1829a5
[ 4.891595] patch_tbl: 110b6c 1829a5
[ 4.891963] patch_tbl: 110b74 1829a5
[ 4.892933] patch_tbl: 110b7c 1829a5
[ 4.893340] patch_tbl: 110b8c 1829a5
[ 4.893733] patch_tbl: 110ac0 184e51
[ 4.894110] patch_tbl: 110aa0 183a91
[ 4.894476] patch_tbl: 110aa8 183ae1
[ 4.894844] patch_tbl: 110a60 1874ad
[ 4.895222] patch_tbl: 110e20 187521
[ 4.896177] patch_tbl: 40030084 187c80
[ 4.896581] patch_tbl: 40030000 2778c
[ 4.896963] patch_tbl: 187c80 47706008
[ 4.897342] patch_tbl: 40030080 1
[ 4.897720] patch_tbl: 4010001c 0
[ 4.898108] ############ aicwf_patch_config_8800dc done
[ 4.898118] AICWFDBG(LOGINFO) Read FW mem: 00120000
[ 4.898498] AICWFDBG(LOGINFO) cfm: [00120000] = 00ffd780
[ 4.898508] AICWFDBG(LOGINFO) Start app: 00120000, 5
[ 4.903111] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 10 MHz
[ 4.903126] aicsdio: aicwf_sdio_reg_init
[ 4.908716] aicbsp: aicbsp_resv_mem_alloc_skb, alloc resv_mem_txdata succuss, id: 0, size: 98304
[ 4.909600] aicbsp: aicbsp_get_feature, set FEATURE_SDIO_CLOCK 10 MHz
[ 4.909783] AICWFDBG(LOGINFO) aicwf_prealloc_txq_alloc size is diff will to be kzalloc
[ 4.909812] AICWFDBG(LOGINFO) aicwf_prealloc_txq_alloc txq kzalloc successful
[ 4.935361] aicbsp: sdio_err:<aicwf_sdio_bus_pwrctl,1392>: bus down
[ 5.175653] ieee80211 phy0: HT supp 1, VHT supp 1, HE supp 1
[ 5.179053] ieee80211 phy0:
[ 5.179053] *******************************************************
[ 5.179053] ** CAUTION: USING PERMISSIVE CUSTOM REGULATORY RULES **
[ 5.179053] *******************************************************
[ 5.599112] usb0: HOST MAC 7a:27:b2:b8:e3:d3
[ 5.599134] usb0: MAC 4a:b9:53:dc:9b:5a
[ 5.724305] dwc3 ffb00000.usb: device reset
[ 5.841601] dwc3 ffb00000.usb: device reset
[ 5.966201] android_work: sent uevent USB_STATE=CONNECTED
[ 5.972427] android_work: sent uevent USB_STATE=CONFIGURED
[ 6.718398] of_dma_request_slave_channel: dma-names property of node '/serial@ff4b0000' missing or empty
[ 6.718490] dw-apb-uart ff4b0000.serial: failed to request DMA, use interrupt mode
[ 7.251911] aic_bluetooth_mod_init
[ 7.255429] -->rfkill_bluetooth_init
[ 7.257271] <--rfkill_bluetooth_init
[ 10.195590] rwnx_send_sm_connect_req drv_vif_index:0 connect to Moldova(7) channel:2462 auth_type:0
[ 38.093049] deinit:macaddr:28,3d,e8,83,5b,66
[ 38.093073] reord_mac:28,3d,e8,83,5b,66
[ 38.098074] rwnx_send_sm_connect_req drv_vif_index:0 connect to Moldova(7) channel:2462 auth_type:0
[ 38.112649] debugfs: Directory 'b4:75:0e:30:f1:4e' with parent 'rc' already present!
[ 38.112685] aicwf_sdio mmc1:7a8a:1: Error while (un)registering debug entry for sta 1
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 2:48
by Crocodile
Sorry for not expressing clearly what “serial log” means “serial port log”. Compared with dmesg, the information will be more complete.
According to the log you provided, rkipc is not running. It may be that CSI is not turned on in luckfox-config (you can use i2cdetect - y 4 Check whether 0x30 is UU to verify)
From the log, wlan0 should be working normally (use ifconfig -a to check whether there is wlan0 to verify). If wlan0 is not working properly, please provide the information after lsmod and the complete serial port log
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 3:15
by wef
I have got wlan0 working since I first posted but my main problem now is a non-functional camera. I bought a second camera in case it was a hardware problem but it made no difference (and yes - they are connected correctly).
In order to get wifi working I had to put in a /etc/init.d job as follows:
Code: Select all
[root@lfu-1 root]# cat /etc/init.d/S99dhcp
#!/bin/sh
case $1 in
start)
(
sleep 30
killall -9 udhcpc
killall -9 wpa_supplicant
wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
udhcpc -i wlan0
) &
;;
*)
exit 1
;;
esac
luckfox-config crashes (and /proc/device-tree/model has a null at the end - weird?):
Code: Select all
/usr/bin/luckfox-config: line 46: warning: command substitution: ignored null byte in input
Code: Select all
[root@lfu-1 root]# i2cdetect -y 4
i2cdetect: can't open '/dev/i2c/4': No such file or directory
Code: Select all
[root@lfu-1 root]# lsmod
Module Size Used by Tainted: G
aic8800_btlpm 1719 0
aic8800_fdrv 299531 0
aic8800_bsp 50318 2 aic8800_btlpm,aic8800_fdrv
ccm 6847 0
ctr 2606 0
libarc4 799 0
cfg80211 168757 1 aic8800_fdrv
rockit 154528 0
rknpu 22683 0
mpp_vcodec 375759 1 rockit
rga3 87738 1 rockit
sc3336 9940 0
sc4336 9196 0
os04a10 15198 0
phy_rockchip_csi2_dphy 7674 0
phy_rockchip_csi2_dphy_hw 8161 0
video_rkisp 148435 1 rockit
video_rkcif 130130 0
rk_dvbm 5813 2 mpp_vcodec,video_rkisp
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 3:33
by Crocodile
Executing `luckfox-config` checks the device name, and if there are spaces in the device name, it will raise a warning. This can be ignored (the Luckfox Pico has a space in its name). When `luckfox-config` is executed, a graphical interface will appear. To enable the camera to work properly, you need to enable CSI in the settings, as indicated in the wiki. According to the logs, i2c4 is not functioning correctly, and you can also modify the device tree and re-flash the boot.img image.
Code: Select all
# in <SDK>/config/dts_config
&i2c4 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c4m2_xfer>;
};
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 3:53
by wef
I get no graphical interface with luckfox-config - just the error message.
I strongly suspect a hardware problem as the pico was OK the first time I used it, and the camera (and wifi) just stopped working after a while without touching it.
I have already re-flashed the pico with the same image that I used before. Should I do it again?
By the way - I forgot to say - thanks for your support!!
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 3:54
by wef
By the way - I did not use the SDK, just the default image on gdrive
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 6:35
by Crocodile
Your log indicates that executing `i2cdetect -y 4` shows that I2C4 is not functioning properly, which is the reason the camera isn't working. The image in the cloud storage, including the SDK default configuration compiled image for Luckfox Pico Ultra, does not have I2C4 enabled by default (other models have it enabled by default; see the wiki for detailed reasons).If I2C4 is not functioning, the camera definitely cannot work.
If you cannot open the `luckfox-config` GUI, you can directly modify the device tree to enable I2C4 (you cannot modify the device tree without using the SDK). The reason you might not be able to open the GUI could be due to the terminal device you are using; I tested it successfully in Windows Terminal and WindTerm.
Re: Luckfox Pico Ultra W - no wifi, no video
Posted: 2024-10-09 6:50
by wef
You were absolutely correct!! Thank you so much.
Once I logged in to the pico I did:
TERM=xterm
and then I can run luckfox-config and enable CSI. Now I can see the camera!! I would suggest that luckfox-config put out a better error message if it can't use the $TERM variable.
It's just a little weird that I did not have to do this the first time, but no matter - I'm back in business now.