Jump to content

JRD McLAREN

Members
  • Posts

    29
  • Joined

  • Last visited

Everything posted by JRD McLAREN

  1. Ok .. Now I have some chips for sale ... in Europe ... ..and OPiZeroPlus is fixed ...
  2. Hello .. I have tested both current release 24.2.1 (jammy and bookworm) on OPiZero, and usb otg not working .. on both .. Kernel is 6.6.20-current-sunxi module g_serial is loaded ttyGS0 exist serial-getty@ttyGS0.service is runing dtc overlays are usbhost0 - 3 ..all looks good on opizero side ... but on "computer side" not.. nothing happened when usb cable is plugged in .. no ttyAMC0 device was created .. no new usb hardware can be found in system log ... ..nothing.. Buster version works well... (my old installation) any advice ..? or it is any "actual kernel problem" .. ?? have somebody the same problem .. ??
  3. ..yes I know ... lcsc have required chips also .. ..but ..time ... (and I can recycle some stuff, maybe)
  4. Hello ... I'm seeking for any device(s) with RTL8189FTV and RTL8211E chips. It's does not matter "what it is" ... (old unneeded, broken one, etc.- or any kind of trash) I have one damaged OPI Zero Plus and I can back it into the life ... now actually work and boot, but ETH and WIFI chips are burned. I'm in Slovakia .... Thanks
  5. Try to downgrade kernel via armbian-config to 5.10.60 armbian-config > System > Other >> MAC Address clone not work (I'm guess why ... ) another thread:
  6. short log from 5.15.25 kernel: Apr 6 22:22:03 opizerompd kernel: [ 14.085917] [drm] Initialized lima 1.2.0 20200215 for 1c40000.gpu on minor 0 Apr 6 22:22:03 opizerompd kernel: [ 14.381026] cfg80211: Loading compiled-in X.509 certificates for regulatory database Apr 6 22:22:03 opizerompd kernel: [ 14.386092] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' Apr 6 22:22:03 opizerompd kernel: [ 14.443927] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 Apr 6 22:22:03 opizerompd kernel: [ 14.443968] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db Apr 6 22:22:03 opizerompd kernel: [ 14.445797] cfg80211: failed to load regulatory.db Apr 6 22:22:03 opizerompd kernel: [ 14.771399] xradio: XR819 device discovered Apr 6 22:22:03 opizerompd kernel: [ 14.772207] xradio_wlan mmc1:0001:1: no mac address provided, using random Apr 6 22:22:03 opizerompd kernel: [ 15.018782] xradio: hardware vers. 7.9 Apr 6 22:22:03 opizerompd kernel: [ 15.018816] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003 Apr 6 22:22:03 opizerompd kernel: [ 15.018831] xradio: Config USE_EXTENSIONS Apr 6 22:22:03 opizerompd kernel: [ 15.024541] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Apr 6 22:22:03 opizerompd kernel: [ 15.615404] EXT4-fs (sda2): and shortlog from 5.10.60 kernel .. Apr 7 21:48:56 opizerompd kernel: [ 13.477921] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' Apr 7 21:48:56 opizerompd kernel: [ 13.490193] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 Apr 7 21:48:56 opizerompd kernel: [ 13.490224] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db Apr 7 21:48:56 opizerompd kernel: [ 13.495445] cfg80211: failed to load regulatory.db Apr 7 21:48:56 opizerompd kernel: [ 13.697443] xradio: XR819 device discovered Apr 7 21:48:56 opizerompd kernel: [ 13.945300] xradio: hardware vers. 7.9 Apr 7 21:48:56 opizerompd kernel: [ 13.945314] xradio: firmware vers. 8 (WSM), build 5258, api 1060, cap 0x0003 Apr 7 21:48:56 opizerompd kernel: [ 13.945319] xradio: Config USE_EXTENSIONS Apr 7 21:48:56 opizerompd kernel: [ 13.950696] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' Apr 7 21:48:56 opizerompd kernel: [ 14.948195] EXT4-fs (sda2): mou and something about NM .. Apr 7 21:51:27 opizerompd systemd[1]: Started WPA supplicant. Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.5341] NetworkManager (version 1.14.6) is starting... (for the first time) Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.5348] Read config: /etc/NetworkManager/NetworkManager.conf (lib: no-mac-addr-change.conf) (etc: 10-override-wifi-random-mac-disable.conf, 20-override-wifi-powersave-disable.conf) Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.5522] wifi-nl80211: (wlan0): using nl80211 for WiFi device control Apr 7 21:51:28 opizerompd systemd[1]: Started Network Manager. Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.6020] bus-manager: acquired D-Bus service "org.freedesktop.NetworkManager" Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.6193] manager[0xb5b020]: monitoring kernel firmware directory '/lib/firmware'. Apr 7 21:51:28 opizerompd NetworkManager[1002]: <info> [1649361088.6199] monitoring ifupdown state file '/run/network/ifstate'. Apr 7 21:51:28 opizerompd systemd[1]: Starting Network Manager Wait Online... Apr 7 21:51:28 opizerompd dbus-daemon[984]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.4' (uid=0 pid=1002 comm="/usr/sbin/NetworkManager --no-daemon ") Apr 7 21:51:28 opizerompd systemd[1]: Reached target Network. where is stored mac address for xradio ..? it is generated ..?? dtb or module patch is needed ..??
  7. Hello... after last update, I'm got this issue .. MAC address for wifi changed after reboot ... (and dhcp reservation does not work .. of course) It happen on all 5.15.x 5.16.x kernels .. Armbian 22.02.1 with Linux 5.16.11-sunxi - has problem Armbian 22.02.1 with Linux 5.15.25-sunxi - has problem downgrade to 5.10 works Armbian 22.02.1 with Linux 5.10.60-sunxi - Is OK .. Have anybody same problem ..?? is any way, how can I solve this issue ..? thanks ... for answer(s)...
  8. OK .. but, if you can use another board ... (OPIZero Plus or OPIZero Plus2 or anything else) this is useful ...
  9. Final version..... Anybody can use their own commands for start-stop processes or for bring up-down interfaces... #!/usr/bin/env python3 # Set your pins button = (5) led = (26) #Set your commands cmd_dnsmasq_stop = "systemctl stop dnsmasq.service" cmd_dnsmasq_start = "systemctl start dnsmasq.service" cmd_wpa_supplicant_stop = "systemctl stop wpa_supplicant.service" cmd_wpa_supplicant_start = "systemctl start wpa_supplicant.service" cmd_wifi_off = "nmcli con down WiFi" cmd_wifi_on = "nmcli con up WiFi" cmd_hostap_on = "hostapd /etc/hostapd.conf -B" cmd_hostap_off = "killall hostapd" cmd_bridge_on = "nmcli con up Bridge" cmd_bridge_off = "nmcli con down Bridge" cmd_dnsmasq_ap_on = "dnsmasq -C /etc/dnsmasq_ap.conf" cmd_dnsmasq_ap_off = "killall dnsmasq" # Main script import os import sys import OPi.GPIO as GPIO import time client = 0 ap = 1 # Placeholder variable GPIO.setwarnings(False) # Ignore warning for now GPIO.setmode(GPIO.BOARD) GPIO.setup(led, GPIO.OUT, initial=GPIO.LOW, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(button, GPIO.IN, initial=GPIO.LOW, pull_up_down=GPIO.PUD_DOWN) state = client while True: GPIO.wait_for_edge(button, GPIO.RISING) # This is a function os.system(cmd_wifi_off) time.sleep(3) os.system(cmd_dnsmasq_stop) time.sleep(5) os.system(cmd_wpa_supplicant_stop) time.sleep(5) os.system(cmd_bridge_on) time.sleep(15) os.system(cmd_dnsmasq_ap_on) time.sleep(10) os.system(cmd_hostap_on) time.sleep(5) GPIO.output(led, GPIO.HIGH) print("AP mode is started") state = ap time.sleep(5) if state == ap: GPIO.wait_for_edge(button, GPIO.RISING) # This is a function os.system(cmd_hostap_off) time.sleep(3) os.system(cmd_dnsmasq_ap_off) time.sleep(3) os.system(cmd_bridge_off) time.sleep(5) os.system(cmd_wpa_supplicant_start) time.sleep(5) os.system(cmd_dnsmasq_start) time.sleep(7) os.system(cmd_wifi_on) time.sleep(3) GPIO.output(led, GPIO.LOW) print("Client mode is strted") state = client time.sleep(5)
  10. Thanks for answer Igor .. I'm wrote my own script in python, moved to OPi Zero with poor XR819 .. Better OPi Zero Plus H5 with RTL8189FTV wifi module was burned ... and H5 board does notwork properly with WiringPO library at this moment .. see:
  11. So ... for some time ... Here is my python script, for switching one wifi intreface ... It is first "one-way" version ... The OPi.GPIO library for python is needed. https://opi-gpio.readthedocs.io/en/latest/install.html #!/usr/bin/env python import os #import sys import OPi.GPIO as GPIO import time # Set your pins button = (7) led = (26) cmd_dnsmasq_stop = "systemctl stop dnsmasq.service" cmd_dnsmasq_start = "systemctl start dnsmasq.service" cmd_wpa_supplicant_stop = "systemctl stop wpa_supplicant.service" cmd_wpa_supplicant_start = "systemctl start wpa_supplicant.service" cmd_wifi_off = "nmcli con down WiFi" cmd_wifi_on = "nmcli con up WiFi" cmd_hostap = "hostapd /etc/hostapd.conf -B" cmd_bridge_on = "nmcli con up Bridge" cmd_bridge_off = "nmcli con down Bridge" cmd_dnsmasq_ap = "dnsmasq -C /etc/dnsmasq_ap.conf" # Placeholder variable GPIO.setmode(GPIO.BOARD) GPIO.setup(led, GPIO.OUT, initial=GPIO.LOW, pull_up_down=GPIO.PUD_DOWN) GPIO.setup(button, GPIO.IN, initial=GPIO.LOW, pull_up_down=GPIO.PUD_DOWN) #def my_callback(): # print('This is a edge event callback function!') # print('Edge detected on channel %s'%button) # print('This is run in a different thread to your main program') #GPIO.add_event_detect(button, GPIO.RISING, callback=my_callback, bouncetime=200) #GPIO.add_event_callback(button, my_callback) GPIO.wait_for_edge(button, GPIO.RISING) # add rising edge detection on a channel print('Button pressed') print('Wifi Off') os.system(cmd_wifi_off) time.sleep(2) print('Stop DNSMASQ') os.system(cmd_dnsmasq_stop) time.sleep(5) print('Stop WPA Supplicant') os.system(cmd_wpa_supplicant_stop) time.sleep(2) print('Start Bridge') os.system(cmd_bridge_on) time.sleep(2) print('Start DNSMASQ AP') os.system(cmd_dnsmasq_ap) time.sleep(5) print('Start HostAP') os.system(cmd_hostap) time.sleep(5) GPIO.output(led, GPIO.HIGH) #GPIO.cleanup()
  12. Nice script, but it's not working on my OPiZeroPlus2 H5 The problem is outdated WiringPO library - from zhaolei More updated library from Orange http://www.orangepi.org/Docs/WiringPi.html can be compiled on actual armbian gpio recognize opizeroplus2 board, but pushbuttons script frozen hole board ... Is any project on sf or github for these boards and GPIO contol ..??
  13. Hello, I'm try to setup my OPiZero as mediaplyer, and I need to use it sometimes as WiFi Client - Managed mode and sometimes as WiFi AP - Master mode. Scenario 1 Work in "dual mode", I mean, when my wifi network within reach, then OPiZ start as "client", and connect to my preferred wifi network when wifi network not in range, it start as AP+DHCP (hostapd and dnsmasq) Scenario 2 Switched mode, Make any push button on gpio, and then make scripts "to do the job" .. disconnect from wifi, stop wpa_supplicant, run hostapd an dnsmasq. Has anybody something like "scenrio1" or "scenario2" .. ?? (or my ideas are totally bad ... )
  14. Hello, now I have some time to spend it with OPI Zero Plus2 H5 Try to download and install Armbian_5.90_Orangepizeroplus2-h5_Ubuntu_bionic_next_4.19.57, update it, and try to do something (bluetooth player) with this. But, no working BT device after fresh install. So, I must try to do something with this. (one more time) Now I have working script, see attach. Can anybody try this patch please ..? Thanks brcm43438-patch
  15. Heloo.. I have some time past days, to try to work Bluetooth AP6212 adapter on my OPIZeroPlus H5 version ... but, no fun. Have ARMBIAN 5.73 stable Ubuntu 18.04.2 LTS 4.19.38-sunxi64 and try Debian version also. Today I try to look on DTB files, some wiring diagrams etc ... read some posts on this forum, and try it step-by-step ... Now I have working BT on this version OPiZero2 H5 .. and make these modification to work it: Edit /etc/init.d/ap6212-bluetooth file: .. No overlay is needed in armbian.txt for uart1 .. ..so I just remove it ..
  16. Yes, you're right. I know it. But, I need to access ssh and it look's as a common systemd package problem "on Ubuntu's side"
  17. So .. I have the same problem .. after update. http://ix.io/1zim Fast fix to run sshd - edit /etc/ssh/sshd_config UsePrivilegeSeparation no Board / system is OpiZero H2+ ARMBIAN 5.70 stable Ubuntu 16.04.5 LTS 3.4.113-sun8i
  18. Hello, Contact bounce is not problem. I have 1nF Cap on it ... Without cap is button like this unusable.
  19. Hello everybody. I'm little bit confused with this think. Which libraries are good (best) for H5 OPiZeroPlus board .? - WiringPI - ArmbianIO - GPIOzero or ..?? I have small script for timer switch, but it is not stably as well as I can. Button press is not accurate. (some pull-up/down are missing probably) Thanks for answer or suggestion. (PS: I'm not a programmer guru)
  20. ...I forgot... you must enable all these services.. systemctl enable bluetooth-bt-agent.service systemctl enable bluealsa.service systemctl enable bluealsa-aplay.service
  21. ..so another talking with myself .. Here is some scripts to automate pairing and playing, if you can use Opi as Bluetooth speaker. script for automated pairing ... we need to create PIN file list and run bluealsa & bluealsa-aplay as service on startup... ..and play some sounds..
  22. Hello ... I'm found another useful thread here: https://volumio.org/forum/volumio-bluez-alsa-a2dp-bluetooth-support-t6130.html Tested now on my OPIZeroPlus on H5 soc. But, it must be "configured" with right lib dir .. ../configure --enable-aac --enable-debug --enable-rfcomm --with-alsaplugindir=/usr/lib/aarch64-linux-gnu/alsa-lib
  23. Hello... and thanks for answer ... Yes, found "stock" driver from Allwinner, and some sources on github .. etc. All other "router distros" for OPI Zero still have 3.4.x kernel and works fine ... ..as Armbian Xenial.. I don't need any "better" or "faster" wifi on this small SoC.. ..it is no time critical service .. (sometimes I need wifi on my garage) It's a shame, the biggest part of support must community do itself, and producer just looking for it...
  24. Hello everybody... I will use this small "box" as Access Point (AP) Standard scenario, hostapd + dnsmasq, eth0 and wlan0 bridged to br0 Everything works fine, except one "client" .. Hostapd DEAUTHENTICATE my notebook. It has dual band interface - 03:00.0 Network controller: Intel Corporation Centrino Advanced-N 6200 (rev 35) (Linux Mint inside) .. This was happen on all Armbian images with 4.14.y kernel ... .. On Armbian Xenial with 3.4.x kernel this was no happened.. Wifi connection works fine, for a long time ... Heve anybody same problem .. ?? or not ..? Here is log:
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines