You can use my repo where i have included patches from smaller09…i have not found any way to create an image from it for r2/r64,but you can create the rootfs tar.gz and kernel/modules
@smaller09 is there any way to define defconfig based on my current selections (mediatek arm,mt7623,bpi-r2) so that i can define that wifi-driver will be included and maybe hdmi if you have ported it
IMG is not working at this time. it meeds patches form @abbradar that did not include right now. I just put it to the last. because using tar.gz is mush easier to do testing.
@frank-w I did not try to use the defconfig to build the target. I will try it later.
Right now what we need to do is to make bluetooth working, and then lima. hdmi seem to work.
and next to do is to make wifi works in the luci. currently every reboot will brings two new adapters in the config ui. the problem my be in the mac80211.sh, the openwrt script need to get the wifi mac addree from the /sys/class/ieee80211/$phy/macaddresse that unpresence on bpi-r2’s internal wifi. but edit the script would broken other addon wifi cards.
For wifi,you maybe can set mac in your wifi.sh after creating ap0 interface using ip link command
How can i test bluetooth in my kernel to check for problem you have with it? I can pair my smartphone…have not tried any connection/data exchange because i don’t know how to do with blutoothctl
Building images needs also creating partitions and complete bootheaders including uboot…i guess it’s more work
I have forked the main OpenWRT trunk git repository, applied a series of patches and built an image with ext4 and sysupgrade support running 5.4 kernel. OpenWRT fork repo is available here:
I prepared also a binary image which can be written to an SD-card ( rootfs size 256MB )
This image has the HW-NAT commits included. I did some tests with it disabled and enabled but I did not noticed any difference. Also I observed speed decreasing compared to another images I ran (got around 200 Mbps out of 500MBps). Maybe i’m missing some patches or I did not configured something properly.
If someone wants to test HW-NAT feature feel free and download the image or clone the repository and compile a new image.
This image does not include integrated WLAN mt6625l and bluetooth patches.
I could try and add the other patches but I’m not very experienced with this If i need to do debugging.
Can you summarize which patches from your 5.4 tree should I add ?
Thanks for keeping this device updated with openwrt img.
Update:
Is the WIFI and AP working on this image? If not I see @sinovoip have posted something today
Maybe @sinovoip can help in getting the wifi to work on openwrt?
UPDATE 2:
Tried the image and I am amazed with the 2020 UI and the board support specifically with the LED customisation which I tested.
DHCP worked. Good to see adblocker pre-installed.
Only thing missing is WIFI AP.
I will do further testing tomorrow as currently I only have 1 Lan cable.
Question:
Can I jump the power switch ? Does this kernel ignores the power switch jumped?
Flashing the img directly to the emmc should power on the device directly to OpenWRT right?
You mean r2 internal wifi? It’s mt6625l and not mt7615 like sinovoip posted…but smaller09 ported patches to openwrt 5.4 kernel,which needs to be included into this repo
There is no such module…strange where this reference came from
try builtin wifi and bluetooth module
are patches applied without errors?
@spikerguy what do you mean with power jump support? You need to press powerbutton 10s…this is a hardware-limitation and cannot be fixed by software…only with soldering a bridge over power switch or 5v on otg port
I managed to add wifi and bluetooth driver and compile with success by adding the 5.4 kernel config file from @smaller09 openwrt repo, but when I boot the image it goes into a reboot loop and I cannot see any kernel messages although I enabled earlyprintk and debug.
His 5.4 config has a lots of debug options and every time I compile it asks me a lot of questions for configs to be enabled which I need to answer them manually.
I will revert the configs back and try to check manually and adding options from his config to the openwrt one.
I compiled again the image with mt6625l wifi and bt included and the same reboot loop happens.
Below is partial output from the boot log with the kernel panic