Is it possible to load firmware at boot time?
I think just this two lines :
wmt_loader
stp_uart_launcher -p /etc/firmware &
Kernel is 4.19, debian 10 buster.
I’m planning a schedule of wifi AP, for example between 22:00 and 06:00 turn it off.
Furthermore it would be nice to make AP “reboot-proof”, so after an unplanned system reboot it could run again!
I’ve been using your script and it’s perfect!
Unfortunately, rc.local doesn’t seem getting it configured at startup! I’ve tried it several times, but no idea!
But I slightly modified the wmt_loader script and placed it in the init.d directory. Then turned it on as a service. And when the system starts, the wifi starts and works.
Hi all, here is just a warning to end-users: be really thorough in visual inspection the moment you receive the board. Make sure to paitiently look at each and every square centimeter for misplaced SMD components as s*it happens and you might get a board like I got, check the attached picture below:
It is a typical case of misplaced component by pick-n-place machine. What is funny is the fact I wasn’t experiencing any major problems with WiFi on this particular BPiR2 board (well, expect for usual problems all users have related to the poor quality of the driver). I’m capable of fixing this one myself thx to my experience with smd soldering and the fact I’ve got required tools standing by ready to be used on my second work desk. Chances are that some other end-user won’t be that lucky. So I repeat once again: inspect the board as thorough as possible the moment you receive it. It might be easier to RTM it for exchange than trying to find some local shop to do a fix for you.
R2 wifi driver (mt6625l) is not available in official openwrt. You can get it on my repo (www.github.com/frank-w/bpi-r2-4.14) and try to integrate into your openwrt source
It depends on kernel-version you are using. Basicly i have 3 commits per -main branch for wifi-driver (driver folder itself, including it, changes outside) followed by maybe fixes. So better use these 3 commits from 1 version higher that your kernel version.
E.g. if you use 5.10 you take a look into 5.11-main. As i normally do not update the non-lts branches you will find these commits easily
How do you use 2 kernelversions without applying patches
You mean wifi driver from 5.11 with 5.10 base kernel?
Make sure you use only the first 3 patches from the driver (driver folder,include driver, changes outside driver dir), additional changing things for this newer version an may be not backwards compatible…
Ok,you use openwrt… then it is maybe more complex as openwrt contains backports especially in network segment. That makes it hard for me to say “use version xy”.
You could try using all versions above your base version till one works (except 6.0 which is currently broken) or use the 5.10 version (squashed into 3 patches in 5.11 branch) and apply patches one-by one i added in newer versions (fixing specific problems).