Jump to content

Recommended Posts

Posted
1 hour ago, balbes150 said:

Edit file /etc/modules  only line

 

aml_nftl_dev

wlan

 

 

Done

 

cat /etc/modules
aml_nftl_dev
#wifi_dummy
#cfg80211
#dhd
wlan

 

reboot


 

$ lsmod
Module                  Size  Used by
xt_addrtype             2923  2
zram                    8953  8
ch341                   5434  0
wlan                 3435325  0
cfg80211              415017  1 wlan
aml_nftl_dev           95108  0

$ dmesg | grep wlan
[    2.353259] Wifi: bcmdhd_init_wlan_mem: bcmdhd_init_wlan_mem: WIFI MEM Allocated
[   14.203544] wlan: loading driver v4.5.20.037
[   16.197644] android_readwrite_file: file /lib/firmware/wlan/wlan_mac.bin filp_open error
[   16.249362] wlan_logging_sock_activate_svc: Initalizing FEConsoleLog = 0 NumBuff = 32
[   16.249622] wlan_logging_sock_activate_svc: Activated wlan_logging svc
[   16.249744] wlan: driver loaded
[   16.461455] ======== dhd_wlan_init_plat_data ========
[   16.461459] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   16.461461] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   16.461464] dhd_wlan_init_gpio: host_oob_irq: 100
[   16.461466] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   35.511470] ======== dhd_wlan_deinit_plat_data ========
[   35.511511] ======== dhd_wlan_init_plat_data ========
[   35.511515] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   35.511519] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   35.511523] dhd_wlan_init_gpio: host_oob_irq: 100
[   35.511526] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   52.142211] ======== dhd_wlan_deinit_plat_data ========
[   52.142249] ======== dhd_wlan_init_plat_data ========
[   52.142253] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   52.142257] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   52.142261] dhd_wlan_init_gpio: host_oob_irq: 100
[   52.142265] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   68.782574] ======== dhd_wlan_deinit_plat_data ========
[   68.782612] ======== dhd_wlan_init_plat_data ========
[   68.782616] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   68.782620] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   68.782624] dhd_wlan_init_gpio: host_oob_irq: 100
[   68.782628] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   85.413033] ======== dhd_wlan_deinit_plat_data ========
[   85.464975] ======== dhd_wlan_init_plat_data ========
[   85.464981] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   85.464986] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   85.464991] dhd_wlan_init_gpio: host_oob_irq: 100
[   85.464996] dhd_wlan_init_gpio: host_oob_irq_flags=0x414

 

didnt work, even if I launch modprobe wlan it wont work

 

strange only that configuration works


 

aml_nftl_dev
cfg80211
dhd
wlan #works with and without this the same way

 

the problem keeps fighting lol

 

thanks @balbes150, without your support I'm lost, this seems a bit tricky 

Posted
On 27-2-2018 at 3:37 PM, kingontheroad said:

Hello

 

If i choose to install ubuntu , wich version can i best to choose for kodi , plex and ipvanisch ?
Mate or Server , i have the Beelink GT1 Ultimate 3gb/32gb .

Root and 1234 is the standard ? for inlog (armbian 5.41)

 

Friendly Regards , Richard

 

 

 

 

Nobody ? What i have read is the Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_mate_20180225.img the rom i needed  .

But wich file must i chance (img.dbt ) ?? and what do i to login and password ?

Sorry for my english

 

Richard

Posted
6 minutes ago, kingontheroad said:

Nobody ? What i have read is the Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_mate_20180225.img the rom i needed  .

But wich file must i chance (img.dbt ) ?? and what do i to login and password ?

Sorry for my english

 

Richard

 

Hello

 

copy one dtb file to the root named as dtb.img

 

ex 

cp /boot/dtb-3.14.29/kvim2_multios.dtb /boot/dtb.img

 

login and password is un:root pw:1234 is in the docs

 

Posted
12 minutes ago, koakh said:

 

Hello

 

copy one dtb file to the root named as dtb.img

 

ex 

cp /boot/dtb-3.14.29/kvim2_multios.dtb /boot/dtb.img

 

login and password is un:root pw:1234 is in the docs

 

Thnx i gonna try it

Posted
4 minutes ago, kingontheroad said:

ex means as example ??

 

I can,t find cp /boot/dtb-3.14.29/kvim2_multios.dtb /boot/dtb.img on my micro sd card ?

 

4 minutes ago, kingontheroad said:

ex means as example ??

 

I can,t find cp /boot/dtb-3.14.29/kvim2_multios.dtb /boot/dtb.img on my micro sd card ?

 

inside of sdcard you have some folders like dtb, dtb-3.14.29, dtb-3.14.29.old, this folders has the dtbs files

 

you must copy one of that files to the root of sdcard but name it has dtb.img

 

tip: copy one that works with your device, if you know what file is, else try one by one

 

Im new here, and try to help with my limited knowledge of Armbian

Posted

iam in gt1 has boot than i type the login root but i can,t typ the pasword 1234 any idea?

 

num lock is on

pasword succes , but now i get every time login screen back ??

 

Posted
1 hour ago, kingontheroad said:

I have used dbt.img (gxm_q201_2g) 

 

Pasword log in is ok , but log in screen comes back ?

I really wanna help

But dont know how.

Do you try other dbt files?

Its strange

I think im using kvim2_linux.dtb and my box is same chiptset as yours. Amlogic s912

 

Send some fotos of login screen, and after login when it goês black. And more info about your setup

 

Good luck man, thanks

Posted

@balbes150 can you helpevme one more time?

 

I have follow your instructions, but it wont work, I report it in above posts,

 

I try to put modprobe wlan in a root cronjob with @reboot but it dont work.....WiFi module is not initialized, I try a echo 123 > /tmp/123 in cronjob and it wont work too

 

Is the @reboot cron working on the armbian ?

 

Do you have any idea how can I resolve this problem on midprobe boot without manually type modprobe?

 

this is far from aceptable for any solid wifi setup. If it work with cronjob, for me is almost perfect ;)

 

Thanks in advance...

I dont have time to try other boot alternatives, maybe tomorrow I have time to explore other ways. But wifi is working and that is awesome. Thanks to you @balbes150

Posted
14 hours ago, koakh said:

I really wanna help

But dont know how.

Do you try other dbt files?

Its strange

I think im using kvim2_linux.dtb and my box is same chiptset as yours. Amlogic s912

 

Send some fotos of login screen, and after login when it goês black. And more info about your setup

 

Good luck man, thanks

 

I have try yours kvim2_linux.dtb , but the same problem login screen comes back . i trying to make a hoal compleet new image , perhaps that wil be help...

I have a philips smart tv a beelink gt1 3gb/32gb and a chinees wireless i8 backlight keyboard

ubuntu.png

Posted
19 hours ago, kingontheroad said:

 

I have try yours kvim2_linux.dtb , but the same problem login screen comes back . i trying to make a hoal compleet new image , perhaps that wil be help...

I have a philips smart tv a beelink gt1 3gb/32gb and a chinees wireless i8 backlight keyboard

ubuntu.png

hello

 

I never install a armbian with windowsmanager, I only install console/headless server version, Its all I need for my backend projects

 

I try to help. But Im not right person. Maybe some of experts comes and help you.....good luck, and dont vive up

Posted
4 minutes ago, koakh said:

hello

 

I never install a armbian with widowsmanager, I only install console/headless server version, Its all I need for my backend projects

 

I try to help. But Im not right person. Maybe some of experts comes and help you.....good luck, and dont vive up

i hope so , thnx for your help

 

Posted
14 hours ago, kingontheroad said:

Can you help me @balbes150 ? wich dtb i need ?

Your problem is in bad media or incorrect initial settings (the system does not complete the correct initial setting).

Posted
46 minutes ago, balbes150 said:

Your problem is in bad media or incorrect initial settings (the system does not complete the correct initial setting).

My english is not so very good , but iam in ubuntu , i chance right up in from kodi to mate and i had succes :);) 
Now we can try play/install kodi , plec etc

Thnx for your help

 

Posted

Hello @balbes150


Yesterday I waste 3 hours "fighting" with boot problem with "modprobe wlan" on boot, but not luck
 

I Try hard with cronjobs and init.d services

 

1) Cron jobs wont work, even a with a simple test echo like
    

@reboot echo 123 > /tmp/foobar


2) Init.d Scripts works, when boot I can use sleep, echos and 

 

modprobe wlan
#and 
modprobe wlan -r

I try many diferent combinations, with delays/sleep, after 60 sec and 120sec to execute the simple modprobe wlan that makes the wifi working
but no luck yet, it is strange that It wont work, only if I launch the command in shell, this way it always work!!!!
 

What is the diference from init.d script to launch manually, can you give some tip/insight?

The strange is that I tail my init.d script log file, watching modprobe load and unload, and it is see in syslog
 

sudo tail -f /var/log/syslog | grep wlan


I see it load and unload kerner module, with many diferent combinations

but no hope it wont work........

but if I go to the shell and launch the same command has in init.d script t always work
 

sudo modprobe wlan 

init.d script


 

#! /bin/sh
# /etc/init.d/wlan
#
### BEGIN INIT INFO
# Provides:          wlan
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Example initscript
# Description:       This file should be used to construct scripts to be....
### END INIT INFO

# Some things that run always
touch /var/lock/wlan

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    /bin/echo "Starting script wlan" >> /tmp/wlan.log
    sleep 60
    echo "Starting load wlan" >> /tmp/wlan.log
    /sbin/modprobe wlan
    #/sbin/modprobe wlan -r && sleep 60 && /sbin/modprobe wlan
    echo "finish load module" >> /tmp/wlan.log
    ;;
  stop)
    echo "Stopping script wlan"
    /bin/echo $(date '+%Y-%m-%d %H:%M:%S') >> /tmp/stop.log
    /sbin/modprobe wlan -r
    ;;
  *)
    echo "Usage: /etc/init.d/wlan {start|stop}"
    exit 1
    ;;
esac

exit 0

 

Thanks @balbes150

@balbes150 If you cant help, or dont have time, no problem at all,
just say, and I wont ask for help anymore,
this way Im only post unusefull/unsolved stuff in this post
Its not a easy problem to solve, for me

Posted
20 minutes ago, koakh said:

  2) Init.d Scripts works, when boot I can use sleep, echos and 

 


modprobe wlan
#and 
modprobe wlan -r

 

Maybe init.d is to early in the boot process?

the /etc/rc.local is - as I know - at the end of the boot process and maybe the devices are ready at this point for modprobe?
You could try in the /etc/rc.local (before the exit 0 - which is needed)

modprobe wlan 2>/dev/null
#and 
modprobe wlan -r 2>/dev/null
exit 0

 

Posted
1 hour ago, guidol said:

Maybe init.d is to early in the boot process?

the /etc/rc.local is - as I know - at the end of the boot process and maybe the devices are ready at this point for modprobe?
You could try in the /etc/rc.local (before the exit 0 - which is needed)


modprobe wlan 2>/dev/null
#and 
modprobe wlan -r 2>/dev/null
exit 0

 

 

thanks @guidol

 

trying right now after disable init.d script

sudo cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.


#/boot/fan.sh &
modprobe wlan 2>/dev/null
exit 0

I leave feed back asap

 

UPDATE
 

Same problem, it wont work

 

$ lsmod
Module                  Size  Used by
xt_addrtype             2923  2
wlan                 3435325  0
zram                    8953  8
ch341                   5434  0
cfg80211              415017  1 wlan

wlan0     Link encap:Ethernet  HWaddr 84:5d:d7:4a:32:02
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sudo nmtui 

No WiFi

+---------------------+              ¦
¦                   ? ¦ <Deactivate> ¦
¦ Bridge (docker0)  ¦ ¦              ¦
¦ * docker0         ¦ ¦              ¦
¦                   ¦ ¦              ¦
¦                   ¦ ¦              ¦          

$ sudo dmesg | grep wlan
[    2.342523] Wifi: bcmdhd_init_wlan_mem: bcmdhd_init_wlan_mem: WIFI MEM Allocated
[   23.456330] wlan: loading driver v4.5.20.037
[   24.850381] android_readwrite_file: file /lib/firmware/wlan/wlan_mac.bin filp_open error
[   24.858600] wlan_logging_sock_activate_svc: Initalizing FEConsoleLog = 0 NumBuff = 32
[   24.862698] wlan_logging_sock_activate_svc: Activated wlan_logging svc
[   24.862897] wlan: driver loaded
[   24.982349] ======== dhd_wlan_init_plat_data ========
[   24.982353] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   24.982354] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   24.982357] dhd_wlan_init_gpio: host_oob_irq: 100
[   24.982360] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   40.601407] ======== dhd_wlan_deinit_plat_data ========
[   40.601445] ======== dhd_wlan_init_plat_data ========
[   40.601449] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   40.601453] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   40.601457] dhd_wlan_init_gpio: host_oob_irq: 100
[   40.601461] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   57.242272] ======== dhd_wlan_deinit_plat_data ========
[   57.242310] ======== dhd_wlan_init_plat_data ========
[   57.242314] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   57.242317] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   57.242321] dhd_wlan_init_gpio: host_oob_irq: 100
[   57.242325] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   73.882579] ======== dhd_wlan_deinit_plat_data ========
[   73.882618] ======== dhd_wlan_init_plat_data ========
[   73.882621] dhd_wlan_init_gpio: GPIO(WL_REG_ON) = -1
[   73.882625] dhd_wlan_init_gpio: GPIO(WL_HOST_WAKE) = -1
[   73.882629] dhd_wlan_init_gpio: host_oob_irq: 100
[   73.882633] dhd_wlan_init_gpio: host_oob_irq_flags=0x414
[   90.523027] ======== dhd_wlan_deinit_plat_data ========
[   90.606660] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

but if I unload/load it starts work

$ sudo modprobe wlan -r && sudo modprobe wlan

wlan0     Link encap:Ethernet  HWaddr 84:5d:d7:4a:32:02
          inet addr:192.168.1.45  Bcast:192.168.1.45  Mask:255.255.255.255
          inet6 addr: fe80::865d:d7ff:fe4a:3202/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1972 (1.9 KB)  TX bytes:590 (590.0 B)

+---------------------------+              ¦
¦                         ? ¦ <Deactivate> ¦
¦ Wi-Fi                   ¦ ¦              ¦
¦ * scWF_ZitoHome   ?_?¦  ¦ ¦              ¦
¦   TP-LINK_F90C_5G ?_?¦  ¦ ¦              ¦
¦   scWF_ZonHub     ?_?_  ¦ ¦              ¦
¦   NOS-E550        ?___  ¦ ¦              ¦
¦   NOS_WIFI_Fon    ?___  ? ¦              ¦
¦   ZON-C190        ?___  ¦ ¦              ¦
¦                         ¦ ¦              ¦
¦ Bridge (docker0)        ¦ ¦              ¦
¦ * docker0               ¦ ¦              ¦
¦                         ¦ ¦              ¦


this is a nightmware, and without wifi boot, its almos useless (for wifi dependent solution)

but I never give up, always is a solution for a problem :)

Posted

1. Wi Fi activation can take up to 5-7 minutes after the command is executed.

2. you can use systemd to run your command (this works better on new systems).

Posted
10 hours ago, balbes150 said:

1. Wi Fi activation can take up to 5-7 minutes after the command is executed.

2. you can use systemd to run your command (this works better on new systems).

 

Thanks @balbes150 I will try it 

I wait for more than 10minutes, I m working on my job, and sometimes I go to shell and try something.....

I will try systemd too, I report has ASAP

UPDATED: Forget to say that my init.d scripts is a systemd service, but thanks for the tip

Thanks for suports m8s :)

UPDATE : I Disable docker and problem continues, Juts in case its docker delay something, or interfer with modules
I Leave it disabled until problem is solved

Posted

Fix Boot Wifi with some hacks and a Init.d Script

The Problem : Cant boot with Wifi Kernel Module

 

After many hours of try and fail (almost fail),
I resolve the problem of Boot with Wifi with lots of pacience and despair,
and the precious help of @balbes150 and @guidol, and Armbian Forum :)

 

The above "solution works" with
AlfaWise H96 Pro+ and
3.14 Kernel Based` image (thank for the tip @balbes150) > Armbian_5.41_S9xxx_Ubuntu_xenial_3.14.29_server_20180225.img.xz,

belive me its not pretty/elegant solution, is more a despair solution........

 

First remove all modules from `/etc/modules` to leave it initialization for `init.d` script clean,
I leave the comments, just has a note of my adventure in /etc/modules file LOL


 

$ cat /etc/modules
#aml_nftl_dev
#wifi_dummy
#cfg80211
#dhd
#wlan

Next Create a `init.d` hacked script, with some magic and optimized sleeps, without that sleep times or with lower times it wont work,
Its very strange, I must load and unload module, and reload again, but its seems the only way to put this working,
I know its too strange, and hard to find, maybe someone has a better ways, I believe with some knowledge its easy,

 

Why its working only that way? 
don't ask me why, I don't care, for me its not pretty, but its ugly and working,
I'm happy with it, who cares, I don't waste more time for an elegant and pretty solution......

 

move on.....the `init.d` script

 

$ sudo nano /etc/init.d/wlan
#! /bin/sh
# /etc/init.d/wlan
#
### BEGIN INIT INFO
# Provides:          wlan
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: AlfaWise H96 Pro+ Wireless Boot Script
# Description:       This file should be used to construct scripts to be
#                    placed in /etc/init.d.  This example start a
#                    single forking daemon capable of writing a pid
#                    file.  To get other behavoirs, implemend
#                    do_start(), do_stop() or other functions to
#                    override the defaults in /lib/init/init-d-script.
### END INIT INFO

# Some things that run always
touch /var/lock/wlan

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "Starting Wlan Script"
    echo "modprobe wlan"
    /sbin/modprobe wlan
    echo "modprobe wlan -r in 28sec..."
    sleep 28
    /sbin/modprobe wlan -r
    echo "modprobe lan in 28sec..."
    sleep 28
    echo "modprobe wlan..."
    /sbin/modprobe wlan
    ;;
  stop)
    echo "Stopping script wlan"
    /sbin/modprobe wlan -r
    ;;
  *)
    echo "Usage: /etc/init.d/wlan {start|stop}"
    exit 1
    ;;
esac

exit 0

 

After boot inspect unload/load driver with

 

sudo tail -f /var/log/syslog | grep wlan

 

Install systemd service

 

$ sudo systemctl enable wlan

 

reboot to test if work

 

$ sudo reboot

 

in other pc ping the wifi ip and wait it responds without do anything, here it starts respond after 2minutes, not bad since reboot, shutdown and boot

 

I tested with a lots of combinations, modules, timers, I don't know the things I try,
but for me it only work that way on boot, maybe someone with knowledge can explain why this driver don't boot, or boot in a state that is faulty, and useless, and must be up, down and up again with this sleep times......

 

some info after login


 

$ lsmod
Module Size Used by
wlan 3435325 0
zram 8953 8
cfg80211 415017 1 wlan
ch341 5434 0

I anybody has questions, say so

thanks to all 

Posted
57 minutes ago, kingontheroad said:

I want to try archlinux_kodi17.6 img , must i here also copy and rename dtb.img ? or dtbs... ?

Yes.

Note that KODI will NOT run on S912. This version of KODI works only with MALI-450.

Posted

As I do remember right there was also such "problem" (which is to load the module twice) with the armbian image for the Sunvell R69 (H2 CPU TV Box) - and maybe others...

Posted
6 minutes ago, balbes150 said:

Yes.

Note that KODI will NOT run on S912. This version of KODI works only with MALI-450.

Thnx for your anser , uhm kodi will also not work with your img armbian 5.41 (s912) ??  i try it yesterday and when i start kodi it boots but after a few seconds later it stuck .....

Posted
14 minutes ago, guidol said:

As I do remember right there was also such "problem" (which is to load the module twice) with the armbian image for the Sunvell R69 (H2 CPU TV Box) - and maybe others...

Hello @guidol

The problem you are talking is about my post about load and reload module?

 

This is problem is a nightmare to fix.....now its very stable even boot only with power connected and nothing more (ethernet cable off) 

 

Now I can move on with APN and finish my docker/springboot headless server

(That is finished with mongodb Arm64v8 container ;)

 

If someone have interest in headless server say, I can create a topic from start to finish. 

Or I can upload the finish image version, no problem (AlfaWise H96 Pro+)

 

Once again thanks to all PPL envolve in Armbian and in Linux too

Posted
8 minutes ago, kingontheroad said:

Thnx for your anser , uhm kodi will also not work with your img armbian 5.41 (s912) ??  i try it yesterday and when i start kodi it boots but after a few seconds later it stuck .....

At the moment s912 full screen video works only in Libreelec (KODI who was going to S912 using libhibris) and in the images of GSTplay.

Posted

Just curiosity

What is the benefits of native Kodi image vs Android version?

 

Another question if I install my armbian to eMMC its easy to revert to Android simply flashing a oficial firmware?

Posted
12 minutes ago, balbes150 said:

At the moment s912 full screen video works only in Libreelec (KODI who was going to S912 using libhibris) and in the images of GSTplay.

Oke thnx again:) i gonna try libreelec  , and hopely after a time that kodi works in one of yours nice images of linux , so i can use kodi , plex etc :)

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines