Support for OrangePi Lite - ِAlmost working! Topic is solved

Suggestions for features and software you would like to see in DietPi, goes here.
wh_hsn

Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

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?
Attachments
On first run.zip
(220.31 KiB) Downloaded 177 times
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Support for OrangePi Lite - ِAlmost working!

Post by Fourdee »

wh_hsn wrote: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?
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:

Code: Select all

lsmod
lsusb
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
wh_hsn

Re: Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

Fourdee wrote: Can you remember which version of DietPi you had installed, prior to updating? I'll then check sourecode.
I started with the distro of OrangePi One:

Code: Select all

DietPi_OrangePiOne-armv7-(Jessie).7z

Code: Select all

root@DietPi:~# uname -a
Linux DietPi 3.4.112-sun8i #2 SMP PREEMPT Thu Sep 15 12:08:42 BST 2016 armv7l GNU/Linux
Fourdee wrote: 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.
I already did in the dietpi.txt file:

Code: Select all

#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
Fourdee wrote: Also, can you please paste results of the following commands:

Code: Select all

lsmod
lsusb

After the update (wifi not working:

Code: Select all

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:

Code: Select all

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
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Support for OrangePi Lite - ِAlmost working!

Post by Fourdee »

wh_hsn wrote:Info
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):

Code: Select all

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?
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
wh_hsn

Re: Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

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):

Code: Select all

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
wh_hsn

Re: Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

Hi ... an update ...


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

Code: Select all

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:

Code: Select all

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:

Code: Select all

/lib/modules/3.4.112-sun8i/kernel/drivers/net/wireless/rtl8189fs/8189fs.ko
Already included in DietPi
wh_hsn

Re: Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

Settings for the OrangePiLite:

Code: Select all

[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.

Code: Select all

[gmac0]
gmac_used = 0
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Support for OrangePi Lite - ِAlmost working!

Post by Fourdee »

wh_hsn wrote:Settings for the OrangePiLite:

Code: Select all

[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.

Code: Select all

[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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Support for OrangePi Lite - ِAlmost working!

Post by Fourdee »

wh_hsn wrote:Settings for the OrangePiLite:

Code: Select all

[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.

Code: Select all

[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
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
wh_hsn

Re: Support for OrangePi Lite - ِAlmost working!

Post by wh_hsn »

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