Support for OrangePi Lite - ِAlmost working!

Hello Fourdee,

I got an OrangePi Lite a couple of days ago - using Armbian finally managed to get it working, almost (still have problems with automatic dhclient!)

I’ve just discovered DietPi & … WAW!

Great work!

I’ve tried the OrangePi One distro since the Lite is just a One with Wifi instead of the Ethernet.

It worked just fine - I added ESSID & Key in dietpi.txt file & the board just booted & successfully updated. After that the wifi was not recognized & not enabled.

The OrangePi One has no built-in wifi - the question is why it worked on the first run before the update?
On first run.zip (220 KB)

Hi,

Can you remember which version of DietPi you had installed, prior to updating? I’ll then check sourecode.

Might not fix this issue, but its always worth setting your WiFi country code in dietpi-config WiFi menu. Increases power ratings and available channels for your country.

Also, can you please paste results of the following commands:

lsmod
lsusb

I started with the distro of OrangePi One:

DietPi_OrangePiOne-armv7-(Jessie).7z



root@DietPi:~# uname -a
Linux DietPi 3.4.112-sun8i #2 SMP PREEMPT Thu Sep 15 12:08:42 BST 2016 armv7l GNU/Linux



I already did in the dietpi.txt file:

#WiFi country code. 2 character value (eg GB US DE JP): https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
wifi_country_code=EG



After the update (wifi not working:

root@DietPi:~# lsmod
Module                  Size  Used by
root@DietPi:~# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

[/code]

I burned the img again and ^C during the update & the outputs are:

root@DietPi:~# lsmod
Module                  Size  Used by
8189fs               1057328  0
8723bs               1591846  0
brcmfmac               92803  0
brcmutil                2926  1 brcmfmac
root@DietPi:~# lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 002: ID 0781:5567 SanDisk Corp. Cruzer Blade
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Thanks, i’ll power on my OPi One and run some tests.

In the mean time, can you please paste results of the following (after the update + reboot):

cat /etc/modprobe.d/disable_wifi.conf

Edit: also, did you setup your WiFi key + SSID in dietpi.txt before booting for the 1st time?

also, did you setup your WiFi key + SSID in dietpi.txt before booting for the 1st time?

I tried both but same results - losing wifi after upgrade


can you please paste results of the following (after the update + reboot):


root@DietPi:~# cat /etc/modprobe.d/disable_wifi.conf
cat: /etc/modprobe.d/disable_wifi.conf: No such file or directory
oot@DietPi:~# cd /etc/modprobe.d/
root@DietPi:/etc/modprobe.d# ls
8188eu.conf  8192cu.conf  cfg80211.conf  disable_bt.conf  fbdev-blacklist.conf

Hi … an update …


From Armbian on the same OrangePi Lite board with working wifi connection:

root@orangepilite:~# lsmod
Module                  Size  Used by
mali                  123208  0
ump                    29379  1 mali
g_serial               27617  2
sunxi_cir               1601  0
8189fs               1050491  0

For DietPi after upgrade & reboot - again no wireless & I get:

root@DietPi:~# lsmod
Module                  Size  Used by
8189fs               1057328  0
8723bs               1591846  0
brcmfmac               92803  0
brcmutil                2926  1 brcmfmac

I am not sure why I got no output before!

Also the driver for the OrangePiLite built-in wireless is:

/lib/modules/3.4.112-sun8i/kernel/drivers/net/wireless/rtl8189fs/8189fs.ko

Already included in DietPi

Settings for the OrangePiLite:


[module_para]
module_num          = 7
module_power0       = "vcc-wifi-33"
module_power0_vol   = 0
module_power1       = 
module_power1_vol   = 
module_power2       =
module_power2_vol   =
module_power3       =
module_power3_vol   =
chip_en             =
lpo_use_apclk       = "losc_out"

[wifi_para]
wifi_used             = 1
wifi_sdc_id           = 1
wifi_usbc_id          = 3
wifi_usbc_type        = 1
wl_reg_on             = port:PL07<1><default><default><0>
wl_host_wake          = port:PG10<0><default><default><0> 
wl_host_wake_invert   = 0

I think we better disable eth.

[gmac0]
gmac_used = 0

Seems your getting further than I did lol. Heres some tests and notes i’ve been running: https://github.com/Fourdee/DietPi/issues/567

Seems your getting further than I did lol. Heres some tests and notes i’ve been running: https://github.com/Fourdee/DietPi/issues/567

I’ve tried everything I could (my last UNIX experience was on SGIs IRIX back in early nineties :slight_smile: ) … I think the variables for eth# & wlan# wrongly calculated at some point of the configuration script.

135 fixed the main wifi problem & manually fixing the rest:

https://dietpi.com/forum/t/135-on-orangepi-lite-working/672/1