Code Monkey home page Code Monkey logo

Comments (9)

MastMind avatar MastMind commented on August 25, 2024 1

I found the best way for bringing up an access point (without wifi.sh and we should ignore errors in output):

  1. Run wmt_loader
  2. Run stp_uart_launcher -p /etc/firmware &
  3. modprobe wlan_gen2 (we need only that driver)
  4. 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.

frank-w avatar frank-w commented on August 25, 2024

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.

MastMind avatar MastMind commented on August 25, 2024

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.

MastMind avatar MastMind commented on August 25, 2024

I'd tried to run wifi.sh, but it finished with error too

from bpi-router-linux.

frank-w avatar frank-w commented on August 25, 2024

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.

MastMind avatar MastMind commented on August 25, 2024

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.

frank-w avatar frank-w commented on August 25, 2024

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.

MastMind avatar MastMind commented on August 25, 2024

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.

frank-w avatar frank-w commented on August 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.