Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T20+RTL8189FTV,use fw_setenv wlandev rtl8189fs-generic, but no wlan0 #1656

Closed
ycsongx opened this issue Jan 4, 2025 · 1 comment
Closed

Comments

@ycsongx
Copy link

ycsongx commented Jan 4, 2025

Hardware info


company:360
mode:D706 [Board:D816_MAIN_v05]
SOC:T20
SPI NOR FLASH:‌Winbond W25Q128JVSIQ
SDIO WIFI:RTL8189FTV
SENSOR:gc2033

issue: use fw_setenv wlandev rtl8189fs-generic, but no wlan0

root@openipc-t20:# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
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
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: tunl0: mtu 0 qdisc noop state DOWN
link/ipip 0.0.0.0 brd 0.0.0.0
root@openipc-t20:
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:60 errors:0 dropped:0 overruns:0 frame:0
TX packets:60 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4440 (4.3 KiB) TX bytes:4440 (4.3 KiB)

root@openipc-t20:~# ifup -v wlan0
wpa_passphrase "$(fw_printenv -n wlanssid)" "$(fw_printenv -n wlanpass)" > /tmp/wpa_supplicant.conf
sed -i 's/#psk.*/scan_ssid=1/g' /tmp/wpa_supplicant.conf
wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
rfkill: Cannot get wiphy information
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
wlan0: CTRL-EVENT-DSCP-POLICY clear_all

mod info

root@openipc-t20:~# lsmod
Module Size Used by Tainted: G
tx_isp_t20 359229 0
sinfo 16674 0
8189fs 1172308 0
mac80211 316435 0
cfg80211 258024 2 8189fs,mac80211
gpio 1693 0
vfat 9441 0
fat 56106 1 vfat

Start info


U-Boot SPL 2013.07-g90873ad (Oct 27 2024 - 16:57:56)
pll_init:365
l2cache_clk = 375000000
pll_cfg.pdiv = 8, pll_cfg.h2div = 4, pll_cfg.h0div = 4, pll_cfg.cdiv = 1, pll_cfg.l2div = 3
nf=36 nr = 1 od0 = 1 od1 = 1
cppcr is 02404900
CPM_CPAPCR 0470890d
nf=42 nr = 1 od0 = 1 od1 = 1
cppcr is 02a04900
CPM_CPMPCR 07d0c90d
nf=50 nr = 1 od0 = 1 od1 = 1
cppcr is 03204900
CPM_CPVPCR 0320490d
cppcr 0x9a794410
apll_freq 860160000
mpll_freq 1000000000
vpll_freq = 1200000000
ddr sel mpll, cpu sel apll
ddrfreq 500000000
cclk 860160000
l2clk 286720000
h0clk 250000000
h2clk 250000000
pclk 125000000
DDRC_DLP:0000f003

U-Boot 2013.07-g90873ad (Oct 27 2024 - 16:57:56)

Board: ISVP (Ingenic XBurst T20 SoC)
DRAM: 64 MiB
Top of RAM usable for U-Boot at: 84000000
Reserving 477k for U-Boot at: 83f88000
Reserving 32832k for malloc() at: 81f78000
Reserving 32 Bytes for Board Info at: 81f77fe0
Reserving 124 Bytes for Global Data at: 81f77f64
Reserving 256k for boot params() at: 81f37f64
Stack Pointer at: 81f37f48
Now running in RAM - U-Boot at: 83f88000
MMC: msc: 0
SF: Detected W25Q128
In: serial
Out: serial
Err: serial
Net: ====>PHY not found!
gpio_request[wyze_usb_enable] = 47
gpio_request[wyze_cd_enable] = 43
gpio_request[wyze_mmc_enable] = 48
Board Net Initialization Failed
Jz4775-9161
Card did not respond to voltage select!

Press ENTER to interrupt boot in 1...
SF: Detected W25Q128
---> probe spend 2 ms
SF: 2097152 bytes @ 0x50000 Read: OK
---> read spend 607 ms

Booting kernel from Legacy Image at 80600000 ...

Image Name: Linux-3.10.14-t20
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1582647 Bytes = 1.5 MiB
Load Address: 80010000
Entry Point: 8035f320
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK

Starting kernel ...

[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14 (runner@fv-az1333-799) (buildroot-gcc-13.3.0) #2 PREEMPT Thu Jan 2 23:20:15 UTC 2025
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:801B6DE4
[ 0.000000] [<801b6de4>] __delay+0x4/0x10
[ 0.000000] CPU0 revision is: 00d00101 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] CCLK:860MHz L2CLK:430Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0047a000 @ 00010000 (usable)
[ 0.000000] memory: 00036000 @ 0048a000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02800000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x027fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x027fffff]
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00101],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10160
[ 0.000000] Kernel command line: console=ttyS1,115200 panic=10 root=/dev/mtdblock3 init=/init mtdparts=jz_sfc:256k(boot),64k(env),2048k(kernel),8192k(rootfs),-(rootfs_data) mem=40M rmem=24M@0x2800000 nogmac
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 35088k/40960k available (3438k kernel code, 5872k reserved, 1142k data, 216k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:418
[ 0.000000] clockevents_config_and_register success.
[ 0.000024] Calibrating delay loop... 858.52 BogoMIPS (lpj=4292608)
[ 0.087753] pid_max: default: 32768 minimum: 301
[ 0.092742] Mount-cache hash table entries: 512
[ 0.097851] Initializing cgroup subsys debug
[ 0.102115] Initializing cgroup subsys freezer
[ 0.107956] devtmpfs: initialized
[ 0.113406] regulator-dummy: no parameters
[ 0.117909] NET: Registered protocol family 16
[ 0.128074] Skipping GMAC GPIO setup
[ 0.160384] bio: create slab at 0
[ 0.172675] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.179869] usbcore: registered new interface driver usbfs
[ 0.186120] usbcore: registered new interface driver hub
[ 0.191714] usbcore: registered new device driver usb
[ 0.197472] (null): set:249 hold:250 dev=100000000 h=500 l=500
[ 0.203944] media: Linux media interface: v0.10
[ 0.208821] Linux video capture interface: v2.00
[ 0.215718] Switching to clocksource jz_clocksource
[ 0.223975] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.228983] DWC IN OTG MODE
[ 0.232608] dwc2 dwc2: Keep PHY ON
[ 0.235982] dwc2 dwc2: Using Buffer DMA mode
[ 0.240310] dwc2 dwc2: Core Release: 3.00a
[ 0.244866] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.251253] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.259012] hub 1-0:1.0: USB hub found
[ 0.262954] hub 1-0:1.0: 1 port detected
[ 0.267021] dwc2 dwc2: DWC2 Host Initialized
[ 0.271786] NET: Registered protocol family 2
[ 0.276876] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.283874] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.290254] TCP: Hash tables configured (established 512 bind 512)
[ 0.296627] TCP: reno registered
[ 0.299824] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.305805] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.312420] NET: Registered protocol family 1
[ 0.317083] RPC: Registered named UNIX socket transport module.
[ 0.323090] RPC: Registered udp transport module.
[ 0.327782] RPC: Registered tcp transport module.
[ 0.332588] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.339934] freq_udelay_jiffys[0].max_num = 10
[ 0.344478] cpufreq udelay loops_per_jiffy
[ 0.348827] dwc2 dwc2: ID PIN CHANGED!
[ 0.352691] 12000 59885 59885
[ 0.355880] 24000 119771 119771
[ 0.359323] 60000 299428 299428
[ 0.362927] 120000 598857 598857
[ 0.366383] 200000 998095 998095
[ 0.369914] 300000 1497142 1497142
[ 0.373742] 600000 2994285 2994285
[ 0.377373] 792000 3952457 3952457
[ 0.381108] 1008000 5030400 5030400
[ 0.384878] 1200000 5988571 5988571
[ 0.403014] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.410721] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.417081] msgmni has been set to 68
[ 0.422774] io scheduler noop registered
[ 0.426711] io scheduler cfq registered (default)
[ 0.441736] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.449796] console [ttyS1] enabled, bootconsole disabled
[ 0.449796] console [ttyS1] enabled, bootconsole disabled
[ 0.473142] brd: module loaded
[ 0.483283] loop: module loaded
[ 0.486882] logger: created 256K log 'log_main'
[ 0.512512] jz SADC driver registeres over!
[ 0.522389] jz TCU driver register completed
[ 0.528178] the id code = ef4018, the flash name is WIN25Q128
[ 0.534270] JZ SFC Controller for SFC channel 0 driver register
[ 0.540429] 5 cmdlinepart partitions found on MTD device jz_sfc
[ 0.546916] Creating 5 MTD partitions on "jz_sfc":
[ 0.551964] 0x000000000000-0x000000040000 : "boot"
[ 0.558420] 0x000000040000-0x000000050000 : "env"
[ 0.564934] 0x000000050000-0x000000250000 : "kernel"
[ 0.571685] 0x000000250000-0x000000a50000 : "rootfs"
[ 0.578332] 0x000000a50000-0x000001000000 : "rootfs_data"
[ 0.585524] SPI NOR MTD LOAD OK
[ 0.589030] JZ GMAC disabled
[ 0.592134] i2c /dev entries driver
[ 0.597440] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.603953] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.609350] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.615690] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.621818] ipip: IPv4 over IPv4 tunneling driver
[ 0.627539] TCP: cubic registered
[ 0.632600] NET: Registered protocol family 10
[ 0.638330] NET: Registered protocol family 17
[ 0.644424] soc_vpu probe success,version:1.0.0-03203fd46d
[ 0.650846] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.658652] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.670460] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 0.682343] devtmpfs: mounted
[ 0.685844] Freeing unused kernel memory: 216K (8048a000 - 804c0000)
[ 1.723746] jffs2: notice: (474) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 1 orphan) and 1 of xref (0 dead, 1 orphan) found.
Seeding 2048 bits and crediting
Saving 2048 bits of creditable seed for next boot
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Thu Jan 2 23:23:10 GMT 2025
Loading kernel modules...
Starting mdev...
Starting network...
modprobe: can't load module 8189fs (extra/8189fs.ko): invalid module format
ip: SIOCGIFINDEX: No such device
Successfully initialized wpa_supplicant
Could not read interface wlan0 flags: No such device
nl80211: Driver does not support authentication/association or connect commands
nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Could not read interface wlan0 flags: No such device
rfkill: Cannot get wiphy information
Could not read interface wlan0 flags: No such device
WEXT: Could not set interface 'wlan0' UP
wlan0: Failed to initialize driver interface
wlan0: CTRL-EVENT-DSCP-POLICY clear_all
Starting ntpd: OK
Starting dropbear: OK
Starting crond: OK
Loading vendor modules...
ingenic: Get data from environment and set SENSOR as gc2033

ISP_PARAM: isp_clk=90000000
SENSOR: gc2033
SENSOR_PARAM:

modprobe: module sensor_gc2033_t20 not found in modules.dep
err: insmod sensor drv
exit
Zerotier-One service is disabled in /etc/zerotier.conf.
Starting majestic: OK

demsg info


root@openipc-t20:~# dmesg
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.10.14 (runner@fv-az791-717) (buildroot-gcc-13.3.0) #2 PREEMPT Fri Jan 3 23:27:37 UTC 2025
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 RESET ERROR PC:801B6DE0
[ 0.000000] [<801b6de0>] __delay+0x0/0x10
[ 0.000000] CPU0 revision is: 00d00101 (Ingenic Xburst)
[ 0.000000] FPU revision is: 00b70000
[ 0.000000] CCLK:860MHz L2CLK:430Mhz H0CLK:200MHz H2CLK:200Mhz PCLK:100Mhz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 0047a000 @ 00010000 (usable)
[ 0.000000] memory: 00036000 @ 0048a000 (usable after init)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02800000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x027fffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x027fffff]
[ 0.000000] On node 0 totalpages: 10240
[ 0.000000] free_area_init_node: node 0, pgdat 80487cb0, node_mem_map 81000000
[ 0.000000] Normal zone: 80 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 10240 pages, LIFO batch:1
[ 0.000000] Primary instruction cache 32kB, 8-way, VIPT, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 8-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] pls check processor_id[0x00d00101],sc_jz not support!
[ 0.000000] MIPS secondary cache 128kB, 8-way, linesize 32 bytes.
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping off. Total pages: 10160
[ 0.000000] Kernel command line: console=ttyS1,115200 panic=10 root=/dev/mtdblock3 init=/init mtdparts=jz_sfc:256k(boot),64k(env),2048k(kernel),8192k(rootfs),-(rootfs_data) mem=40M rmem=24M@0x2800000 nogmac
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 35088k/40960k available (3438k kernel code, 5872k reserved, 1142k data, 216k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:418
[ 0.000000] clockevents_config_and_register success.
[ 0.000024] Calibrating delay loop... 858.52 BogoMIPS (lpj=4292608)
[ 0.087752] pid_max: default: 32768 minimum: 301
[ 0.092741] Mount-cache hash table entries: 512
[ 0.097848] Initializing cgroup subsys debug
[ 0.102112] Initializing cgroup subsys freezer
[ 0.107956] devtmpfs: initialized
[ 0.113404] regulator-dummy: no parameters
[ 0.117908] NET: Registered protocol family 16
[ 0.128075] Skipping GMAC GPIO setup
[ 0.160409] bio: create slab at 0
[ 0.172686] jz-dma jz-dma: JZ SoC DMA initialized
[ 0.179882] usbcore: registered new interface driver usbfs
[ 0.186134] usbcore: registered new interface driver hub
[ 0.191728] usbcore: registered new device driver usb
[ 0.197484] (null): set:249 hold:250 dev=100000000 h=500 l=500
[ 0.203958] media: Linux media interface: v0.10
[ 0.208835] Linux video capture interface: v2.00
[ 0.215729] Switching to clocksource jz_clocksource
[ 0.223946] dwc2 otg probe start
[ 0.223985] jz-dwc2 jz-dwc2: cgu clk gate get error
[ 0.228994] DWC IN OTG MODE
[ 0.232618] dwc2 dwc2: Keep PHY ON
[ 0.235993] dwc2 dwc2: Using Buffer DMA mode
[ 0.240321] dwc2 dwc2: Core Release: 3.00a
[ 0.244877] dwc2 dwc2: DesignWare USB2.0 High-Speed Host Controller
[ 0.251264] dwc2 dwc2: new USB bus registered, assigned bus number 1
[ 0.259024] hub 1-0:1.0: USB hub found
[ 0.262963] hub 1-0:1.0: 1 port detected
[ 0.267030] dwc2 dwc2: DWC2 Host Initialized
[ 0.271443] dwc2 otg probe success
[ 0.271798] NET: Registered protocol family 2
[ 0.276882] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.283880] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.290260] TCP: Hash tables configured (established 512 bind 512)
[ 0.296633] TCP: reno registered
[ 0.299830] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.305811] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.312426] NET: Registered protocol family 1
[ 0.317088] RPC: Registered named UNIX socket transport module.
[ 0.323095] RPC: Registered udp transport module.
[ 0.327787] RPC: Registered tcp transport module.
[ 0.332594] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.339937] freq_udelay_jiffys[0].max_num = 10
[ 0.344480] cpufreq udelay loops_per_jiffy
[ 0.348829] dwc2 dwc2: ID PIN CHANGED!
[ 0.352693] 12000 59885 59885
[ 0.355882] 24000 119771 119771
[ 0.359326] 60000 299428 299428
[ 0.362928] 120000 598857 598857
[ 0.366384] 200000 998095 998095
[ 0.369915] 300000 1497142 1497142
[ 0.373740] 600000 2994285 2994285
[ 0.377370] 792000 3952457 3952457
[ 0.381106] 1008000 5030400 5030400
[ 0.384875] 1200000 5988571 5988571
[ 0.403021] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.410723] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.417086] msgmni has been set to 68
[ 0.422776] io scheduler noop registered
[ 0.426713] io scheduler cfq registered (default)
[ 0.441740] jz-uart.1: ttyS1 at MMIO 0x10031000 (irq = 58) is a uart1
[ 0.449799] console [ttyS1] enabled, bootconsole disabled
[ 0.473156] brd: module loaded
[ 0.483302] loop: module loaded
[ 0.486902] logger: created 256K log 'log_main'
[ 0.512514] jz SADC driver registeres over!
[ 0.522381] jz TCU driver register completed
[ 0.528168] the id code = ef4018, the flash name is WIN25Q128
[ 0.534260] JZ SFC Controller for SFC channel 0 driver register
[ 0.540417] 5 cmdlinepart partitions found on MTD device jz_sfc
[ 0.546904] Creating 5 MTD partitions on "jz_sfc":
[ 0.551951] 0x000000000000-0x000000040000 : "boot"
[ 0.558412] 0x000000040000-0x000000050000 : "env"
[ 0.564918] 0x000000050000-0x000000250000 : "kernel"
[ 0.571669] 0x000000250000-0x000000a50000 : "rootfs"
[ 0.578314] 0x000000a50000-0x000001000000 : "rootfs_data"
[ 0.585506] SPI NOR MTD LOAD OK
[ 0.589018] JZ GMAC disabled
[ 0.592120] i2c /dev entries driver
[ 0.597425] jzmmc_v1.2 jzmmc_v1.2.0: vmmc regulator missing
[ 0.603938] jzmmc_v1.2 jzmmc_v1.2.0: register success!
[ 0.609334] jzmmc_v1.2 jzmmc_v1.2.1: vmmc regulator missing
[ 0.615673] jzmmc_v1.2 jzmmc_v1.2.1: register success!
[ 0.621806] ipip: IPv4 over IPv4 tunneling driver
[ 0.627522] TCP: cubic registered
[ 0.632574] NET: Registered protocol family 10
[ 0.638307] NET: Registered protocol family 17
[ 0.644398] soc_vpu probe success,version:1.0.0-03203fd46d
[ 0.650608] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ 0.658632] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 0.670594] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[ 0.682659] devtmpfs: mounted
[ 0.686158] Freeing unused kernel memory: 216K (8048a000 - 804c0000)
[ 1.304583] jffs2: notice: (474) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 1.849192] GPIO claim module (c) OpenIPC.org
[ 1.948950] cfg80211: Calling CRDA to update world regulatory domain
[ 2.780710] jzmmc_v1.2 jzmmc_v1.2.1: card insert via sysfs
[ 2.902550] mmc1: host doesn't support card's voltages
[ 2.902572] mmc1: error -22 whilst initialising SDIO card
[ 2.921244] mmc1: host doesn't support card's voltages
[ 2.921264] mmc1: error -22 whilst initialising MMC card
[ 3.043244] mmc1: host doesn't support card's voltages
[ 3.043263] mmc1: error -22 whilst initialising SDIO card
[ 3.061688] mmc1: host doesn't support card's voltages
[ 3.061706] mmc1: error -22 whilst initialising MMC card
[ 3.183347] mmc1: host doesn't support card's voltages
[ 3.183369] mmc1: error -22 whilst initialising SDIO card
[ 3.201716] mmc1: host doesn't support card's voltages
[ 3.201747] mmc1: error -22 whilst initialising MMC card
[ 3.636353] wait stable.[247][cgu_cim]
[ 12.730804] sinfo: [Info] Failed to find sensor
[ 12.896062] register all isp device successfully!
[ 12.900016] @@@@ tx-isp-probe ok @@@@@

fw_env info


root@openipc-t20:~# fw_printenv
baseaddr=0x80600000
baudrate=115200
bootargs=console=ttyS1,115200 panic=10 root=/dev/mtdblock3 init=/init mtdparts=jz_sfc:256k(boot),64k(env),2048k(kernel),${rootmtd}(rootfs),-(rootfs_data) mem=${osmem} rmem=${rmem} ${extras}
bootcmd=sf probe 0; setenv setargs setenv bootargs ${bootargs}; run setargs; sf read ${baseaddr} ${kernaddr} ${kernsize}; bootm ${baseaddr}
bootdelay=1
cmdnor=sf probe 0; setenv setargs setenv bootargs ${bootargs}; run setargs; sf read ${baseaddr} ${kernaddr} ${kernsize}; bootm ${baseaddr}
ethact=Jz4775-9161
ethaddr=00:00:23:34:45:66
extras=nogmac
gatewayip=192.168.1.1
ipaddr=192.168.1.10
kernaddr=0x50000
kernsize=0x200000
loads_echo=1
netmask=255.255.255.0
osmem=40M
rmem=24M@0x2800000
rootaddr=0x250000
rootmtd=8192k
rootsize=0x500000
sdcard=mmc rescan; setenv updatetool fatload mmc 0
serverip=192.168.1.254
soc=t20
stderr=serial
stdin=serial
stdout=serial
totalmem=64M
ubnor=sf probe 0; sf erase 0x0 ${kernaddr}; sf write ${baseaddr} 0x0 ${kernaddr}
uknor=${updatetool} ${baseaddr} uImage.${soc}; sf probe 0; sf erase ${kernaddr} ${kernsize}; sf write ${baseaddr} ${kernaddr} ${filesize}
updatetool=tftpboot
urnor=${updatetool} ${baseaddr} rootfs.squashfs.${soc}; sf probe 0; sf erase ${rootaddr} ${rootsize}; sf write ${baseaddr} ${rootaddr} ${filesize}
ver=U-Boot 2013.07-g90873ad (Oct 27 2024 - 16:57:56)
wlanssid=song
wlanpass=song2025
wlandev=rtl8189fs-generic

@ycsongx ycsongx closed this as completed Jan 4, 2025
@ycsongx
Copy link
Author

ycsongx commented Jan 7, 2025

i find the key in wiki, 360 board needs gpio for wifi.
this is my config

  1. add module in /etc/modules
    gpio
    mac80211
    8189fs
  2. add fw_env
    fw_setenv wlandev rtl8189fs-generic
    fw_setenv wlanssid xxxx
    fw_setenv wlanpass xxxx
  3. set gpio in wlan0 config
    iface wlan0 inet dhcp
    pre-up echo 62 > /sys/class/gpio/export
    pre-up echo out > /sys/class/gpio/gpio62/direction
    pre-up echo 1 > /sys/class/gpio/gpio62/value
    pre-up wpa_passphrase "$(fw_printenv -n wlanssid)" "$(fw_printenv -n wlanpass)" > /tmp/wpa_supplicant.conf
    pre-up sed -i 's/#psk.*/scan_ssid=1/g' /tmp/wpa_supplicant.conf
    per-up sleep 2
    pre-up wpa_supplicant -B -i wlan0 -D nl80211,wext -c /tmp/wpa_supplicant.conf
    post-down killall -q wpa_supplicant
    post-down echo 0 > /sys/class/gpio/gpio62/value
    post-down echo 62 > /sys/class/gpio/unexport
  4. reboot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant