Issue with wlan0 not able to connect

Discussion in 'UDOO NEO' started by oxoocoffee, Oct 18, 2016.

  1. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Hello,

    I just got couple of brand new Neo's and I am trying to set up one of them. After downloading udoobuntu-udoo-neo-minimal_2.1.zip and dd to sdcard, connecting Tx/RX I was able to see console boot.
    I was able to setup eth0 and it works fine. Now plan is another problem. No matter what I do it does not want to continue.

    EDIT: I was asked to place my solution in thread I started.
    Please see my post in
    OpenEmbedded/Yocto for UDOO Boards
     
    Last edited: Nov 10, 2016
  2. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  3. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Thank you for your post. Following above link and what is on my SD card I noticed that wireless folder is missing in minimal image I downloaded yesterday (udoobuntu-udoo-neo-minimal_2.1.zip). This does not look right...

    Here is my content of /lib/modules/3.14.56-udooneo-02023-g8d371df/kernel/drivers/net/

    ├── bonding
    │ └── bonding.ko
    ├── can
    │ ├── can-dev.ko
    │ ├── flexcan.ko
    │ └── m_can.ko
    ├── dummy.ko
    ├── eql.ko
    ├── macvlan.ko
    ├── macvtap.ko
    ├── mii.ko
    ├── netconsole.ko
    ├── ppp
    │ ├── bsd_comp.ko
    │ ├── ppp_async.ko
    │ ├── ppp_deflate.ko
    │ o
    │ ├── pppox.ko
    │ └── ppp_synctty.ko
    ├── slip
    │ └── slhc.ko
    ├── team
    │ └── team.ko
    ├── tun.ko
    ├── usb
    │ ├── asix.ko
    │ ├── ax88179_178a.ko
    │ ├── cdc_eem.ko
    │ ├── cdc_ether.ko
    │ ├── cdc_ncm.ko
    │ ├── cdc_subset.ko
    │ ├── net1080.ko
    │ ├── pegasus.ko
    │ ├── r8152.ko
    │ ├└── zaurus.ko
    └── vxlan.ko
     
  4. Andrea Rovai

    Andrea Rovai Well-Known Member

    Joined:
    Oct 27, 2014
    Messages:
    1,703
    Likes Received:
    240
    With minimal we mean Ubuntu core + almost exclusively the packages you need for the proper working of UDOO (graphic acceleration, peripherals etc).
    Whatever you need to add you can add it yourself.
     
  5. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
  6. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Ok, So what do package do I need add to enable WIFI from command line? Which driver is needed for WIFI. I am not interested in running Desktop. In above list of modules which driver needs to be loaded to enable WIFI? Or do I have to compile one myself? name of module?
    Are you guys planning to release minimal images with working WIFI anytime soon? Working on it?

    Also I noticed on this page http://www.udoo.org/docs-neo/Basic_Setup/Usb_Direct_Connection.html
    that one needs to install drivers on El Capitan. Is Sierra Supported?
     
    Last edited: Oct 19, 2016
  7. waltervl

    waltervl UDOOer

    Joined:
    Dec 12, 2015
    Messages:
    2,314
    Likes Received:
    580
    Perhaps another idea is to use a full Udoobuntu 2 and disable or erase the desktop and other programs you don't use (like Arduino IDE etc).
    Udoobuntu is based on Lubuntu so removing lxde should do the desktop trick.
    Edit: Udoobuntu uses lightdm as desktop so removing or not starting that will do the trick.
    To prevent starting lightdm rename /etc/init/lightdm.conf to /etc/init/lightdm.conf.nostart
    Code:
    sudo mv /etc/init/lightdm.conf  /etc/init/lightdm.conf.nostart
    reboot
     
    Last edited: Oct 22, 2016
    Andrea Rovai likes this.
  8. cyrilf

    cyrilf Active Member

    Joined:
    Feb 19, 2015
    Messages:
    168
    Likes Received:
    47
    You can build your own instance of OpenEmbedded (Yocto-Project). Here is my repository:
    Code:
    git clone https://gitlab.com/cyrilfr/udoo-yocto-base
    To setup the environment:
    Code:
    cd udoo-yocto-base
    MACHINE=udooneo source setup.sh build
    To build your instance:
    Code:
    MACHINE=udooneo bitbake udoo-image-full-cmdline
    Have a coffee...

    To create your SD card:
    Code:
    lsblk
    Look at the device NAME of your SD card. In udoo-yocto-base/poky/build, type:
    Code:
    sudo umount /dev/<DEVICE_NAME>?
    zcat tmp/deploy/images/udooneo/udoo-image-full-cmdline-udooneo.sdcard.gz | sudo dd of=/dev/<DEVICE_NAME> bs=16M
    sudo sync
    For the Wi-Fi, configure your WPA Supplicant config file in /etc/wpa_supplicant.conf on the SD card. Here are examples of configuration.

    Thanks to @graugans.
     
    Last edited: Oct 20, 2016
  9. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Thank you. Will try this over the weekend :) Also to enable CAN interfaces anything special that needs to be done with dev tree? Like in other posts?

    Thank you
     
  10. cyrilf

    cyrilf Active Member

    Joined:
    Feb 19, 2015
    Messages:
    168
    Likes Received:
    47
    Remove your project
    Code:
    rm -r poky
    run the setup again
    Code:
    MACHINE=udooneo source setup.sh build
    and set
    Code:
    ENABLE_CAN_BUS ?= "1"
    in your machine configuration file (meta-udoo/conf/machines/udooneo.conf)
    Compile your system from build/
    Code:
    bitbake udoo-image-full-cmdline
    Let me know ;)
     
    Last edited: Oct 24, 2016
  11. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
     
    Last edited: Oct 26, 2016
  12. cyrilf

    cyrilf Active Member

    Joined:
    Feb 19, 2015
    Messages:
    168
    Likes Received:
    47
    OK. Let's remove the meta-udoo and build directories first.
    Code:
    cd udoo-yocto-base
    rm -rf poky/meta-udoo poky/build
    Pull the last commit of the base (important!).
    Code:
    git pull
    Run the setup again.
    Code:
    MACHINE=udooneo source setup.sh build
    Now you should be in udoo-yocto-base/poky/build. Add the sanity.conf file to avoid the error of host distribution support.
    Code:
    touch sanity.conf
    By default, the general configuration file in build/conf/local.conf set the package managment system to OPKG (OpenEmbedded lightweight package manager). If you want to use RPM of DEB packages, feel free to change this option.
    To enable the SPI and CAN buses, change the ENABLE_CAN_BUS and ENABLE_SPI_BUS options in the machine configuration file meta-udoo/conf/machine/udooneo.conf. When it's done, run the build from the build/ directory.
    Code:
    bitbake udoo-image-full-cmdline
     
    Last edited: Oct 27, 2016
  13. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    You can use the web configuration tool to configure the Wi-Fi.
     
  14. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    thank you but I am not using UI version. I am only interested in minimal/shell version. And the minimal version WIFI is not working. I am trying Yocto build suggestion.
     
  15. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
     
  16. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Cyrilf

    Removing udoo-yocto-base and cloning it fresh and enabling SPI and CAN worked so far. I started build and it is in progress. I will report any issues if so.

    bitbake udoo-image-full-cmdline

    UPDATE 1:
    After some time building I got this message. Looks like connection broken?
    Is there some ways to "retry" if connection broken from script?

    I did just try to re-execute "bitbake udoo-image-full-cmdline" and it is still going. Is this safe or should I clean and start from beginning?

    $ MACHINE=udooneo bitbake udoo-image-full-cmdline
    Parsing recipes: 100% |################################################################| Time: 00:00:51
    Parsing of 1895 .bb files complete (0 cached, 1895 parsed). 2459 targets, 370 skipped, 0 masked, 0 errors.
    NOTE: Resolving any missing task queue dependencies

    Build Configuration:
    BB_VERSION = "1.30.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-14.04"
    TARGET_SYS = "arm-poky-linux-gnueabi"
    MACHINE = "udooneo"
    DISTRO = "poky"
    DISTRO_VERSION = "2.1.1"
    TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
    TARGET_FPU = "hard"
    meta
    meta-poky = "krogoth:40f4a6d075236265086cc79400dea3c14720383a"
    meta-oe
    meta-python
    meta-networking = "krogoth:851a064b53dca3b14dd33eaaaca9573b1a36bf0e"
    meta-fsl-arm = "krogoth:a85fa8bf68517ca5cd9bb00bf792f54016799bed"
    meta-qt5 = "krogoth:1ec776771f5f09c97917d3839d8140f9a7668c4a"
    meta-udoo = "krogoth:bd9767b991412ac1cfb7cc4ac3991275ada542e1"

    NOTE: Fetching uninative binary shim from http://downloads.yoctoproject.org/r...da6426197d36358bf7b4e88e552ef933128498c8910f8
    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: linux-udooboard-3.14.56-r0 do_fetch: Failed to fetch URL git://github.com/UDOOboard/linux_kernel.git;branch=3.14-1.0.x-udoo, attempting MIRRORS if available
    ERROR: linux-udooboard-3.14.56-r0 do_fetch: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/media/Yocto/udoo-yocto-base/poky/build/downloads/git2/github.com.UDOOboard.linux_kernel.git'...
    fatal: read error: Connection reset by peer
    fatal: early EOF
    fatal: index-pack failed

    ERROR: linux-udooboard-3.14.56-r0 do_fetch: Function failed: Fetcher failure for URL: 'git://github.com/UDOOboard/linux_kernel.git;branch=3.14-1.0.x-udoo'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /media/Yocto/udoo-yocto-base/poky/build/tmp/work/udooneo-poky-linux-gnueabi/linux-udooboard/3.14.56-r0/temp/log.do_fetch.27713
    ERROR: Task 54 (/media/Yocto/udoo-yocto-base/poky/meta-udoo/recipes-kernel/linux/linux-udooboard_3.14.56.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 922 tasks of which 0 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /media/Yocto/udoo-yocto-base/poky/meta-udoo/recipes-kernel/linux/linux-udooboard_3.14.56.bb, do_fetch
    Summary: There was 1 WARNING message shown.
    Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

    UPDATE 2:
    So after I restarted the command I got this

    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: libevent-2.0.22-r0 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/levent/libevent-2.0.22-stable.tar.gz, attempting MIRRORS if available
    WARNING: unzip-native-1_6.0-r5 do_fetch: Failed to fetch URL http://downloads.sourceforge.net/infozip/UnZip 6.x (latest)/UnZip 6.0/unzip60.tar.gz, attempting MIRRORS if available
    WARNING: nano-2.2.5-r3.0 do_fetch: Failed to fetch URL ftp://nano-editor.org/pub/nano/v2.2/nano-2.2.5.tar.gz, attempting MIRRORS if available
    NOTE: Tasks Summary: Attempted 3842 tasks of which 933 didn't need to be rerun and all succeeded.

    After rerunning it again I got this

    NOTE: Preparing RunQueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 3842 tasks of which 3842 didn't need to be rerun and all succeeded.
    No currently running tasks (1326 of 1330)
    ✔ /media/Yocto/udoo-yocto-base/poky/build [krogoth|✔]

    So this looks good? Is thee a log of all packages that were build? I know this might be outside of this thread subject :)
     
    Last edited: Oct 28, 2016
    cyrilf likes this.
  17. Francesco

    Francesco Active Member

    Joined:
    Jun 23, 2015
    Messages:
    220
    Likes Received:
    110
    You are right, udoo-web-conf is not installed by default on the minimal!
    However you can install it using `apt install udoo-web-conf`.
     
  18. cyrilf

    cyrilf Active Member

    Joined:
    Feb 19, 2015
    Messages:
    168
    Likes Received:
    47
    It depends on which package manager he decided to install. OpenEmbedded supports RPM (yum), DEB (apt) and IPK (opkg) packages.
    He probably also have to configure the repository sources to use the official UDOO DEB repo.
     
    oxoocoffee likes this.
  19. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    Also I was wondering is there a way to find out list of packages that are considered to be build and their dependencies before starting build so I might experiment with removing some to make image it small as possible ? :) Or perhaps add something that I need.
     
  20. oxoocoffee

    oxoocoffee Member

    Joined:
    Sep 13, 2016
    Messages:
    57
    Likes Received:
    6
    This was was my next question. Does anyone has url list to add so I can get updates?
     

Share This Page