Hobby - Brainux
-
https://wiki.brainux.org/for%20beginners/beginner-get-started/
-
Trying with
G5200
-
Install https://www.balena.io/etcher/
-
Download sdimage from https://github.com/brain-hackers/buildbrain/releases
-
Screen Brightness issue…
-
https://askubuntu.com/questions/149054/how-to-change-lcd-brightness-from-command-line-or-via-script
-
write to
brightness
device.
-
-
Wired LAN just works with
-
RouteAr OTG USB adapter.
-
-
WiFi module
-
device WDC-150SU2MBK
-
tested on Windows 11
-
RTL8188eu
-
-
-
Chipset
-
RTL8192CU
-
rtl8188eu ← maybe this is correct.
-
Latest Linux has https://github.com/torvalds/linux/blob/abfecb39092029c42c79bacac3d1c96a133ff231/drivers/staging/r8188eu/Kconfig
-
but not in Brainux
-
so need https://github.com/lwfinger/rtl8188eu ?
-
-
-
-
Building Driver
-
https://unix.stackexchange.com/questions/83319/where-are-the-current-kernel-build-options-stored
-
zcat /proc/config.gz
-
no CONFIG_WIRELESS_EXT found?
-
-
-
http://nahitafu.cocolog-nifty.com/nahitafu/2019/09/post-d45021.html
-
Use linux source from + rtl8288eu source
-
Also learning from http://nahitafu.cocolog-nifty.com/nahitafu/2019/09/post-d45021.html
-
with `buildbrain`
-
make ldefconfig
-
required by
getcross linux
-
$ ./tools/getcross linux arm-linux-gnueabi-
-
-
make lbuild
-
$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- KSRC=/home/sugarsun/public_git/buildbrain/linux-brain
-
-
Ended with errors like
-
error: ‘struct iw_handler_def’ has no member named ‘private’ .private = rtw_private_handler, ....
-
Ah, CONFIG_WIRELESS_EXT needs to be specified explicitly…
-
Trying enable it
-
and
RTL8XXXU_UNTESTED
can be interesting too?
-
-
-
So need to build Brainux kernel!
-
https://www.spinics.net/lists/newbies/msg47812.html
-
> <M> Realtek RTL8188EU Wireless LAN NIC driver
-
might be suitable
-
so use
make ARCH=arm -C linux-brain menuconfig
-
$ diff .config .config.old 688d687 < CONFIG_WIRELESS_EXT=y 691d689 < CONFIG_WEXT_PRIV=y 701,704d698 < CONFIG_LIB80211=m < CONFIG_LIB80211_CRYPT_WEP=m < CONFIG_LIB80211_CRYPT_CCMP=m < # CONFIG_LIB80211_DEBUG is not set 3014,3015c3008 < CONFIG_R8188EU=m < CONFIG_88EU_AP_MODE=y --- > # CONFIG_R8188EU is not set
-
-
-
We need to be aware of
-
case "${CONFIG_CPU_ARM926T}_${CONFIG_ARCH_MULTI_V7}" in
as well.
-
-
Next error…
-
Building modules, stage 2. MODPOST 1 modules ERROR: "register_netdevice" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "strpbrk" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "find_vpid" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "dev_get_by_name" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "down_interruptible" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "strsep" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "__pskb_pull_tail" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "strncpy" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "strncmp" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "kill_pid" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "init_net" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "unregister_netdevice_queue" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "__csum_ipv6_magic" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "up" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "csum_partial" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! ERROR: "rtnl_is_locked" [/home/sugarsun/public_git/rtl8188eu/8188eu.ko] undefined! s
-
-
investigating
-
Compiling module gives MODPOST Error (Unknown Symbol) (linuxquestions.org)
-
Can fixing the
_OS_INTFS_FILES
help?
-
-
https://qiita.com/ikwzm/items/0aa165fa21fa9cca15c0 ???? related?
-
oops ARCH was a bit different..
-
→ fix?
-
-
-
Looks similar but no solution.
-
Seems https://github.com/lwfinger/rtl8188eu/tree/v5.2.2.4 actually Kernel build approach?
-
-
→ YES!!
-
-
misc:
-
SSL cert expiration error
-
-
and …. coming back to Brainux image building
-
seems it’s automated as https://github.com/brain-hackers/buildbrain#bootstrap-debian-11-bullseye
-
but it depends on https://packages.debian.org/bullseye/dosfstools ??
-
The following NEW packages will be installed: dosfstools 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 142 kB of archives. After this operation, 323 kB of additional disk space will be used. Get:1 http://deb.debian.org/debian bullseye/main amd64 dosfstools amd64 4.2-1 [142 kB] Fetched 142 kB in 1s (276 kB/s) Selecting previously unselected package dosfstools. (Reading database ... 37775 files and directories currently installed.) Preparing to unpack .../dosfstools_4.2-1_amd64.deb ... Unpacking dosfstools (4.2-1) ... Setting up dosfstools (4.2-1) ... Processing triggers for man-db (2.9.4-2) ... ----- 1. Brainux Image / https://wiki.brainux.org/linux/linux-build/ ----- 2. rtl8188eu driver / https://github.com/lwfinger/rtl8188eu ----- Build phase. ----- 1-0. Patch Brainux
It worked!!
-
-
make brainux issues…
-
+ mkdir -p /etc/apt/keyrings + curl -fsSL https://packagecloud.io/brainhackers/brainux/gpgkey + gpg --dearmor curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs gpg: no valid OpenPGP data found. make: *** [Makefile:145: brainux] Error 2
-
So I retried with commenting out
/debootstrap/debootstrap --second-stage
` to continue the setup..-
and insert
-
### Haruki mod DEBIAN_FRONTEND=noninteractive \ apt reinstall -y ca-certificates
-
-
-
-
Another option
-
use some devices already included?