Comments (9)
I found the best way for bringing up an access point (without wifi.sh and we should ignore errors in output):
- Run wmt_loader
- Run stp_uart_launcher -p /etc/firmware &
- modprobe wlan_gen2 (we need only that driver)
- echo A >/dev/wmtWifi (turn ap0 interface into AP mode)
It works. I could set up NAT with iptables and now my BPI-R2 board works as a regular home WiFi router.
from bpi-router-linux.
You mean r2 internal wifi? Do you have wifi firmware and configs in your rootfs? Buildroot with wifi firmwares is tricky...i suggest a normal rootfs and using my wifi.sh
from bpi-router-linux.
Yes, I meant r2 board. I have WMT_SOC.cfg in /system/etc/firmware and wmt_tools (wmt_loader, wmt_loopback, stp_uart_launcher) in /usr/bin and all firmwares in /etc/firmware. I guess I have all necessary files. Maybe I need to load special drivers via modprobe before starting do these steps: https://github.com/BPI-SINOVOIP/BPI-R2-bsp/blob/Wifi_debug_branch/vendor/mediatek/connectivity/readme
from bpi-router-linux.
I'd tried to run wifi.sh, but it finished with error too
from bpi-router-linux.
The wifi.sh loads cfg80211 and the wifi module,which needs of course to be part of the initrd. Maybe you could try to boot one of my ubuntu/debian-images which are more recent than the bpi images/kernel
from bpi-router-linux.
I'd started ap0 interface. At first I'd loaded next kernel modules (my lsmod output):
# lsmod
Module Size Used by Not tainted
stp_chrdev_bt 24576 0
wlan_gen2 1556480 0
cfg80211 782336 1 wlan_gen2
wmt_chrdev_wifi 20480 1 wlan_gen2
After that I'd tried to run wmt_tools steps:
# wmt_loader
init combo device
Opened combo device
get device id : 30243
set device id : 30243
do module init: 30243
failed to init module
# stp_uart_launcher -p /etc/firmware &
open device node succeed.(Node:/dev/stpwmt, fd:3)
chip id is 0x7623
chiId:0x7623, setting to property(Dā)
chiId:0x7623
run SOC chip flow
create pwr on thread ok
enter power on connsys flowpatch name pre-fix:ROMv2_lm_patch
fwVersion:0x8a00
/etc/firmware/ROMv2_lm_patch_1_1_hdr.bin
fw Ver in patch: 0x8a00
read patch info:0x21,0x00,0x0e,0xf0
gpatchnum = [2]
gdwonseq = [1]
/etc/firmware/ROMv2_lm_patch_1_0_hdr.bin
fw Ver in patch: 0x8a00
read patch info:0x22,0x00,0x06,0x00
gdwonseq = [2]
cmd(srh_patch) resp(ok)
#
# echo 1 > /dev/wmt
#
And only after these action I could run wifi.sh and ap0 interface has been created. But I did not test connection to a new AP point, because I did not make a good dhcp configuration for that. I hope it will works.
from bpi-router-linux.
Yes,startup of this wifi is complex,but i still use it with 5.15 on my main-router so i want to know if you have a hardware issue first...that seem not to be the case. So eizher you miss any config or firmware file or anything in startup...if you use wifi.sh in your initrd only the files-case can be the case or a more recent kernel breaks. But i use a recent 5.15...
My image should start dhcp server and hostapd,so it should be ready to use here
from bpi-router-linux.
My image should start dhcp server and hostapd,so it should be ready to use here
Maybe this is my fault. I'd built rootfs from there: https://github.com/frank-w/buildroot.git with replacement of several packages. And I just copied output rootfs to BPI-ROOT
from bpi-router-linux.
The initrd is maybe not complete to bring up the r2 specific (or any other) wifi. It is designed as initrd to make basic tests on a device like bootup filesystem tests and network performance tests.
For a complete system i suggest using debian/ubuntu as base and the install your packages you need.
I have the bpi-router-image repo which creates the very basic image and there you can install the wifi-related parts
from bpi-router-linux.
Related Issues (20)
- bpi-r3 eth1 dropping packets HOT 5
- 6.1-main deb package is not compatible with Debian Bullseye HOT 7
- mt7530 doesn't work on bpi-r3 if mtk_eth is built as module HOT 6
- bpi-r3 branch 6.3-rc missing SFP support / transmit queue timeout HOT 38
- BPI-r3 expose pps HOT 8
- adding CONFIG_NTP_PPS module not 6.2-main brach HOT 1
- build.sh Deb Pack Gen debarch if statement backwards HOT 2
- Wireguard support BPI-R3 HOT 2
- bpi-r2, kernel 5.15.129 - compilation errors (mediatek) - arm-linux-gnueabihf-gcc (Debian 13.2.0-2) HOT 4
- [bpi-r2pro/linux 6.1] how to populate spi devices in /dev HOT 1
- Debian package > 5.4 have no kernel with dtb HOT 5
- [Solved] About 10x performance degradation with 5.15-main HOT 11
- Initramfs and bootargs support? HOT 2
- [Question] 5.15 & hwnat HOT 3
- Linux ACL's (Access Control Lists) does not work for ext4 for some reason. HOT 4
- cryptodev not available on kernel 6.1 HOT 7
- iptables not available on kernel 6.1 HOT 4
- is it possible to resize the filesystem when using SD card? HOT 2
- SFP1 vlan not working on the r3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ššš
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpi-router-linux.