-
Notifications
You must be signed in to change notification settings - Fork 48
WIP: Pinecube #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
WIP: Pinecube #79
Conversation
Add support for PineCube IP camera. This board has WiFi (supports creating AP), RJ45 ethernet, UART, USB and micro-usb for power.
If it's present in BuildRoot, please add it with a
Honestly I have no idea what generates this error. I'd prefer keeping things simple and using
This looks a bit like wrong kernel arguments with regards to init. I'd need to see the entire kernel log to be sure about that.
Generally yes, why not, as long as there's someone taking care of the board every now and then. |
| @@ -0,0 +1 @@ | |||
| OS_AP="wlan0" | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the AP interface name here sould be wlan0? Generally, the kernel will use wlan0 to identify the Wi-Fi network card and generate an ap0 interface.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100 % sure how AP should work. With default settings (ap0), it fails with following lines:
* Starting hostapd on ap0: done
* Starting dnsmasq: SIOCSIFADDR: No such device
ap0: ERROR while getting interface flags: No such device
When I change it to wlan0, it works. rtl8189es is out-of-tree driver, so who knows what behavior we can expect.
I also see driver logging following lines (among many others) - maybe it fails to generate ap0 interface?
[ 25.790226] RTW: cfg80211_rtw_add_virtual_intf(phy0) name:ap0, type:3
[ 25.796709] RTW: WARN adapter pool empty!
[ 25.800840] RTW: cfg80211_rtw_add_virtual_intf(phy0) wdev:00000000, ret:-19
|
Hi, while util-linux uses newer single system call LOOP_CONFIGURE (available since Linux 5.8) (even for older kernels util-linux would probably work, since there is some fix for call returning EAGAIN): Meanwhile I sent new version of patch with Pinecube support for Buildroot. |
|
The system will try to generate an AP interface for all the existing STA interfaces (e.g. for There might be a bug there when the AP interface cannot be brought up and I'll make sure to look into it when I get some spare time. |
|
Well I guess it is a driver/kernel bug, since for other devices (like rpi) it creates ap0, but with this device it fails to create ap0, but works with wlan0. Maybe I should give it some manual tests with hostapd and ask here: https://github.com/jwrdegoede/rtl8189ES_linux/ (repository used by Buildroot for this driver) ? |
|
Ok I fixed the last error I was facing. This Can be easily fixed by adding |
Hi,
this is my effort to bring PineCube IP camera to ThingOS (and hopefully to MotionEyeOS as well). I already sent support to Buildroot (but its not ben accepted yet, tho), so adding support to ThingOS was my next step.
This board has Wifi, which can also act as AP - both client/AP tested and works in ThingOS. But not everything is fully functional yet (therefore the WIP), like fwupdate will fail if I use losetup from Busybox (workaround to this is to use losetup from util-linux, but since you use Busybox's losetup in ThingOS, I want to make it work for PineCube as well) with following error:
If I go around this issue and upgrade the firmware, there is one more error in upgrade procedure - once system reboots to initramfs, it will make the upgrade but will hang during the reboot with following error (but the upgrade procedure is finished - if I do a hard reset, the board will boot to a new firmware):
Would you be interested in adding support for PineCube, and if so, any advise to showed errors?
In first commit I also added the 8189es package, which is in upstream Buildroot, but not in thingOS for some reason.
Thanks,
Jan