Help needed to use drivers of Wand-board dual in Ubuntu minimal root file-system

Hi I have downloaded Ubuntu Root filesystem from the following link.

wget -c https://rcn-ee.com/rootfs/eewiki/minfs/ubuntu-20.04.2-minimal-armhf-2021-04-14.tar.xz

It has no UI or window system.
So please help me to use the following features of Wand board dual.
They are Wifi, Bluetooth, Audio, Microphone, LAN, USB Host and OTG.

Is there any utilities/packages to use these features.

Please reply.

Correct, the default image is just a minimal image for all users to start as a base… If you want a full 2D/3D windows manager, keep reading the directions, specifically at the end:

Vivante GC320/GC880 (quad GC320/GC355/GC2000) 2D/3D Acceleration via [Etnaviv|Etnaviv · GitHub]
This sections assumes you have already installed your favorite xorg based window manager, such as lxde, lxqt, xfce, kde, gnome, etc… These are packages that need to be installed on top of your selected windows manager and an xorg.conf needed to correctly setup the video interface.

Regards,

Thanks Robert.

But still I need some more info.

When searched in the internet how to install those window manager I find like to issue commands

sudo apt-get update
sudo apt-get install package-xxx

and some other things to add repositories involving ppa so and so and then to issue reboot command.

My doubts are

  1. with this minimal root file system base is it enough to follow that instructions alone or I have to take extra care? if so can you please provide those instructions.

  2. As sudo apt-get need internet connection, how to enable that in this root file system
    I have one wifi antenna that can be connected to this board along with the enclosure.
    So can you please guide me how to turn on Wifi connection using the minimal root file system through command line. If Wifi not possible, how to turn on LAN connection(I have mobile hot-spot facility with me but for LAN connection I have to get it from neighbours,so only I am preferring instructions for Wifi enabling.)

  3. If sudo apt-get commands will not work with minimal root file system and if I have to get the files copied to SD card to the required locations after downloading and cross compiling in the host, Can you please provide instructions to install any of the window manager package?
    (I will be excited if I could install any of the window manager with touch support.)

As this kind of root file system is not prevalent, I am not getting enough help from internet.

Please reply.

Thanks.

Since the version of ubuntu you installed is Ubuntu 20.04, “any” guide for installing a built-in window manager such as xfce/lxqt/etc can be installed out of the box… You can use “tasksel” to have it install everything (will take lots and lots of space…)

I don’t remember if the minimal image contains wpa_supplicant, i’d advice you to use the ethernet connection first to setup your wifi connection. Remember this was a “minimal” image, it’s goal isn’t to shove one setup to every user, but a simple minimal image to build your custom setup on top of…

If something fails, it’s either something Ubuntu 20.04 didn’t support, or it’s broken… Just let me know, some things we can fix, other’s are just an Ubuntu thing…

Regards,

Thanks Robert,

I will try to use tasksel. And one more doubt, I have 16GB SD card with me now. Is it sufficient for installing Desktop environment using tasksel or should I go for larger memory size SD card such as 32GB,64 GB…

As I am going to execute tasksel from target if I encounter memory crunch during that process, it will crash.
That’s why I am asking before trying.

Please reply.

tasksel is a front end for a bunch of “*-desktop” meta packages, however it will not directly show disk usage…

Instead, you’d need to use apt… For example, if you wanted to install xfce, in ubuntu this would be:

sudo apt update
sudo apt install xubuntu-desktop

apt would then show how much disk space xubuntu-desktop

Regards,

Thanks for the help.

Also I saw a way in the the internet, to share my wifi connection to the board through LAN port of my laptop.

I am going to give a try for this.

Thanks & Regards.

Hi Robert,

I could not run sudo apt-get update command in the target.
I tried using minicom. It showed up as follows for some seconds

ubuntu@arm:~$ sudo apt-get update
Err:1 http://ports.ubuntu.com focal InRelease                       
  Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://repos.rcn-ee.com/ubuntu focal InRelease                
  Temporary failure resolving 'repos.rcn-ee.com'
0% [Connecting to ports.ubuntu.com]

And after that it showed like

ubuntu@arm:~$ sudo apt-get update
Err:1 http://ports.ubuntu.com focal InRelease                       
  Temporary failure resolving 'ports.ubuntu.com'
Err:2 http://repos.rcn-ee.com/ubuntu focal InRelease                
  Temporary failure resolving 'repos.rcn-ee.com'
Err:3 http://ports.ubuntu.com focal-updates InRelease               
  Temporary failure resolving 'ports.ubuntu.com'
Reading package lists... Done      
W: Failed to fetch http://ports.ubuntu.com/dists/focal/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://ports.ubuntu.com/dists/focal-updates/InRelease  Temporary failure resolving 'ports.ubuntu.com'
W: Failed to fetch http://repos.rcn-ee.com/ubuntu/dists/focal/InRelease  Temporary failure resolving 'repos.rcn-ee.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.

I followed the first answer of the following query

[type or paste code here](https://askubuntu.com/questions/1104506/share-wireless-internet-connection-through-ethernet-on-18-04-lts)

to share the internet connection to target using LAN.

In the target I checked the LAN configuration. It showed as follows.

ubuntu@arm:~$ ifconfig
eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500
        ether 00:1f:7b:0a:23:15  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 939  bytes 58609 (58.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 939  bytes 58609 (58.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Do you see any configuration is missing and that would be the reason for not sudo apt-get update not connecting to the server?
Or what else may be the reason?

Please reply.

Thanks.

Also tasksel was not installed in the target. so I had to use sudo apt-get update. and sudo apt-get install commands.

Well you lan connection on the WandBoard doesn’t have an IP address, thus no internet.

Either fix your Shared Connection, or connect the WandBoard directly into a network switch,

Regards,

Hi Robert,

I have configured the LAN connection of wandboard and PC as follows.

In wand board.

ubuntu@arm:~$ ifconfig
eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.43.229  netmask 255.255.255.0  broadcast 192.168.43.255
        ether 00:1f:7b:0a:23:15  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 471  bytes 30545 (30.5 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 471  bytes 30545 (30.5 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

In PC

$ ifconfig
enp3s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.43.227  netmask 255.255.255.0  broadcast 192.168.43.255
        ether 28:f1:0e:28:89:bc  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 3338  bytes 326907 (326.9 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 3338  bytes 326907 (326.9 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.43.226  netmask 255.255.255.0  broadcast 192.168.43.255
        inet6 fe80::81f1:6be2:6abc:b3f7  prefixlen 64  scopeid 0x20<link>
        ether e4:02:9b:13:8a:62  txqueuelen 1000  (Ethernet)
        RX packets 1339  bytes 905322 (905.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1172  bytes 178637 (178.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

LAN connection in PC was configured to share the internet connection as follows.

I observe the same behaviour as before.
I dont know what else is missing. One difference I am seeing in the ifconfig output is Wifi is showing as
flags=4163<UP,BROADCAST,RUNNING,MULTICAST>
but ethernet in PC and wandboard RUNNING is missed.
flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>

I don’t have sufficient knowledge in network configuring and usage. So please help me what I have to do.
Also when I configure these things as above my Laptop’s internet connection became unusable.

In the boot log of Wandboard I see like

 Starting WPA supplicant...
[  OK  ] Started System Logging Service.
[  OK  ] Finished Remove Stale Onli��…ext4 Metadata Check Snapshots.
[  OK  ] Finished Load/Save Random Seed.
[  OK  ] Started LSB: Start busybox udhcpd at boot time.
[  OK  ] Started Connection service.
[  OK  ] Started Telephony service.
[  OK  ] Started WPA supplicant.

WPA supplicant was started. Is it just a log or it is showing because it will be functional? I am using linux kernel 5.4 version.
If it is functional can I use that by command prompt in Wandboard. I have a Wifi antenna and enclosure.

Please guide me through.

Thanks.

Hi @ayyappanmuthu

Please post these:

sudo ifconfig -a
dmesg | grep brcm

PS, your ethernet port is active…

ubuntu@arm:~$ ifconfig
eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500
        inet 192.168.43.229  netmask 255.255.255.0  broadcast 192.168.43.255
        ether 00:1f:7b:0a:23:15  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Regards,

Hi Robert,

PFB…

ubuntu@arm:~$ sudo ifconfig -a
[sudo] password for ubuntu: 
eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500
        ether 00:1f:7b:0a:23:15  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 126  bytes 9672 (9.6 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 126  bytes 9672 (9.6 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ubuntu@arm:~$ dmesg | grep brcm
ubuntu@arm:~$ 

Note: I have not connected the wifi antenna and did not configure any IP address in the wandboard before taking this log.Is it right to take log as such?

Please reply.

Thanks.

Hi Robert,

Got some improvement. I am able to share the internet connection to wand board.

Earlier through nm-connection-editor I made ethernet port as shared to other computers and now when made that same to wifi interface additionally I am able to get internet connection in the wandboard.

Now I will try to install desktop and use for some time and if I find any issues I shall ask.

Thanks.

Hi Robert,

I have installed ubuntu-desktop by
sudo apt-get install ubuntu-desktop

and installation completed.

Then I issued
sudo shutdown -h now
command.
and I connected my Adafruit 5" display and powered up the board and display.
On boot up it showed wandboard logo and 2 penguin images and after that screen is blank.
Should I install xserver-xorg-video-armada-etnaviv and follow the instructions at the bottom of the guide in

to see the UI.

I have attached the boot log got through minicom in the host.

Can you please check and reply what might be the problem?

Thanks.
After_ubuntu_desktop_install.txt (33.3 KB)

Hi @ayyappanmuthu if you want 2d/3d acceleration you must do:

sudo apt update
sudo apt install xserver-xorg-video-armada-etnaviv
#/etc/X11/xorg.conf
Section "Monitor"
        Identifier      "Builtin Default Monitor"
EndSection
Section "Device"
        Identifier      "Builtin Default fbdev Device 0"
        Driver          "armada"
EndSection
Section "Screen"
        Identifier      "Builtin Default fbdev Screen 0"
        Device          "Builtin Default fbdev Device 0"
        Monitor         "Builtin Default Monitor"
EndSection
Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen          "Builtin Default fbdev Screen 0"
EndSection

Regards,

Then can you please let me know what to do.
What kind of log I have to give to you to diagnose the problem?

Even in the minimal root file system I was able to use keyboard connected to wandboard usb port. Now I am seeing only black screen after logo.

hi @ayyappanmuthu well you installed ubuntu-desktop…

First check etnaviv loaded:

debian@arm:~$ dmesg | grep etnaviv

2nd check it’s running xorg…

cat /var/log/Xorg.0.log

If ubuntu-desktop setup “wayland” vs xorg, good luck! I don’t use wayland…

Regards,

Hi Robert,

PFB,…

ubuntu@arm:~$ dmesg | grep etnaviv
[    2.667983] etnaviv etnaviv: bound 130000.gpu (ops 0xc0bc6fd4)
[    2.674335] etnaviv etnaviv: bound 134000.gpu (ops 0xc0bc6fd4)
[    2.680289] etnaviv-gpu 130000.gpu: model: GC880, revision: 5106
[    2.686566] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[    2.693655] [drm] Initialized etnaviv 1.3.0 20151214 for etnaviv on minor 0
ubuntu@arm:~$ cat /var/log/Xorg.0.log
[    32.144] (--) Log file renamed from "/var/log/Xorg.pid-2597.log" to "/var/log/Xorg.0.log"
[    32.150] 
X.Org X Server 1.20.13
X Protocol Version 11, Revision 0
[    32.152] Build Operating System: linux Ubuntu
[    32.152] Current Operating System: Linux arm 5.4.154-armv7-x62 #1 SMP PREEMPT Fri Feb 4 11:31:59 IST 2022 armv7l
[    32.152] Kernel command line: console=ttymxc0 root=PARTUUID=d9e4a558-01 ro rootfstype=ext4 rootwait video=HDMI-A-1:1024x768@60e
[    32.152] Build Date: 14 December 2021  02:14:13PM
[    32.152] xorg-server 2:1.20.13-1ubuntu1~20.04.2 (For technical support please see http://www.ubuntu.com/support) 
[    32.153] Current version of pixman: 0.38.4
[    32.153]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[    32.153] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    32.153] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 12 08:32:23 2022
[    32.165] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    32.172] (==) No Layout section.  Using the first Screen section.
[    32.173] (==) No screen section available. Using defaults.
[    32.173] (**) |-->Screen "Default Screen Section" (0)
[    32.173] (**) |   |-->Monitor "<default monitor>"
[    32.174] (==) No monitor specified for screen "Default Screen Section".
        Using a default monitor configuration.
[    32.174] (==) Automatically adding devices
[    32.174] (==) Automatically enabling devices
[    32.174] (==) Automatically adding GPU devices
[    32.174] (==) Automatically binding GPU devices
[    32.175] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    32.185] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    32.185]    Entry deleted from font path.
[    32.185] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    32.185]    Entry deleted from font path.
[    32.186] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    32.186]    Entry deleted from font path.
[    32.188] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    32.188]    Entry deleted from font path.
[    32.188] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    32.188]    Entry deleted from font path.
[    32.189] (==) FontPath set to:
        /usr/share/fonts/X11/misc,
        /usr/share/fonts/X11/Type1,
        built-ins
[    32.189] (==) ModulePath set to "/usr/lib/xorg/modules"
[    32.189] (II) The server relies on udev to provide the list of input devices.
        If no devices become available, reconfigure udev or disable AutoAddDevices.
[    32.189] (II) Loader magic: 0x57c008
[    32.189] (II) Module ABI versions:
[    32.189]    X.Org ANSI C Emulation: 0.4
[    32.189]    X.Org Video Driver: 24.1
[    32.189]    X.Org XInput driver : 24.1
[    32.189]    X.Org Server Extension : 10.0
[    32.211] (++) using VT number 1

[    32.227] (II) systemd-logind: took control of session /org/freedesktop/login1/session/c2
[    32.231] (II) xfree86: Adding drm device (/dev/dri/card0)
[    32.258] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
[    32.276] (II) xfree86: Adding drm device (/dev/dri/card1)
[    32.292] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 13 paused 0
[    32.293] (II) no primary bus or device found
[    32.293]    falling back to /sys/devices/platform/etnaviv/drm/card0
[    32.293] (II) LoadModule: "glx"
[    32.297] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    32.318] (II) Module glx: vendor="X.Org Foundation"
[    32.318]    compiled for 1.20.13, module version = 1.0.0
[    32.318]    ABI class: X.Org Server Extension, version 10.0
[    32.318] (==) Matched modesetting as autoconfigured driver 0
[    32.318] (==) Matched fbdev as autoconfigured driver 1
[    32.318] (==) Assigned the driver to the xf86ConfigLayout
[    32.319] (II) LoadModule: "modesetting"
[    32.319] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[    32.325] (II) Module modesetting: vendor="X.Org Foundation"
[    32.325]    compiled for 1.20.13, module version = 1.20.13
[    32.325]    Module class: X.Org Video Driver
[    32.325]    ABI class: X.Org Video Driver, version 24.1
[    32.325] (II) LoadModule: "fbdev"
[    32.326] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    32.328] (II) Module fbdev: vendor="X.Org Foundation"
[    32.329]    compiled for 1.20.1, module version = 0.5.0
[    32.329]    Module class: X.Org Video Driver
[    32.329]    ABI class: X.Org Video Driver, version 24.0
[    32.329] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    32.329] (II) FBDEV: driver for framebuffer: fbdev
[    32.330] (WW) Falling back to old probe method for modesetting
[    32.330] (WW) Falling back to old probe method for fbdev
[    32.330] (II) Loading sub module "fbdevhw"
[    32.330] (II) LoadModule: "fbdevhw"
[    32.331] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    32.333] (II) Module fbdevhw: vendor="X.Org Foundation"
[    32.333]    compiled for 1.20.13, module version = 0.0.2
[    32.333]    ABI class: X.Org Video Driver, version 24.1
[    32.334] (II) FBDEV(0): using default device
[    32.334] (II) modeset(G0): using drv /dev/dri/card1
[    32.334] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    32.334] (EE) 
Fatal server error:
[    32.334] (EE) Cannot run in framebuffer mode. Please specify busIDs        for all framebuffer devices
[    32.334] (EE) 
[    32.334] (EE) 
Please consult the The X.Org Foundation support 
         at http://wiki.x.org
 for help. 
[    32.335] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[    32.335] (EE) 
[    32.352] (EE) Server terminated with error (1). Closing log file.
ubuntu@arm:~$ 

Please look into this and reply what is the problem and how to fix it.

Thanks.