Building a NanoPi M4V2 based All-in-One Linux PC running Armbian (Ubuntu/Debian)

At the end of my review of “RPI All-in-One” PC with Raspberry Pi 4, I noted the system also appeared to be compatible with NanoPi M4V2 single board computer. I’ve now tried it out, and assembling the board inside the 10.1-inch display is even easier than I initially thought. That means I now have a NanoPi M4V2 All-in-One PC running Ubuntu Hirsute or Debian Buster with XFCE desktop environment from Armbian, and most features work including the display and wireless connectivity, but I still have an issue with the touchscreen function.

Armbian All-in-One PC

Here are the steps I followed initially:

  1. Download Armbian Buster XFCE image from Armbian and flash it to a microSD card with tools like USBimager.
  2. Insert the microSD card in the board
  3. Install the USB Type-C and HDMI-A adapters in the display.
  4. Insert the USB Type-C and HDMI port of the NanoPi M4V2 SBC into the adapters
  5. Install the RPI3 side plate from the display kit with openings for USB ports, Ethernet, and as well see below the antennas…
  6. Secure the board in the display with four screws (or three since I lost one)
  7. Install the USB cable (green, white, black) for the touchscreen display.
  8. Attach the two SMA connectors to the two remaining holes of RPI3 side plateNanoPi M4V2 SBC installation All-in-One PC
  9. Close the bottom cover of the display and secure it for the provided screws
  10. Install the two 2.4/5.8 GHz antennasRPI All-in-One WiFi Antennas
  11. Connect the power supply and profit!?

Not so fast! Did you really think it would be that easy? When Armbian boots it will ask the user to input a new root password in the terminal. So I connected my wireless keyboard USB dongle, and… I wasn’t able to type. I borrowed a USB keyboard, but I could not type… hmm what’s going on? I then decided to disconnect the USB touchscreen cable and it worked! I was able to complete the setup, configure WiFi and browse the web using a wireless mouse and keyboard.

NanoPi M4V2 All-in-One PC WiFi

It’s really odd the touchscreen does not work and causes other USB devices not to work. So let’s see what happens when we connect the USB cable:


It’s perfectly recognized, but then there’s an error, and eventually, the xHCI host is halted and all USB peripherals disconnected.  The Debian Buster image runs Linux 4.4, so maybe it’s a driver issue? I tried Armbian Bullseye (client/headless) image with Linux 5.10, but a similar issue occurred.

xHCI controller dead

Scrolling down in Armbian, there are unstable images with Linux 5.13, I flashed Ubuntu Hirsute with XFCE, and nothing changed:


Again, I can use the Ubuntu image and browse the web without issues. it’s just that nagging USB touchscreen issue.

Armbian Ubuntu All-in-One PC

Loading the hid-multitouch module with modprobe did not help. I’ve read somewhere that TSTP Mtouch drivers have been part of the Linux kernel for several years, so it may be a hardware issue instead…

USB touchscreen, GND USB DP, USB DM

The USB cable only carries GND and data signal, so the 5V signal comes from another location in the display, and I suspect there may be an issue with the 5V signal or grounding that makes the USB host turn it off completely. I haven’t found a solution yet.

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
20 Comments
oldest
newest
Willy
Willy
2 years ago

It definitely looks like a hardware issue. Usually such USB errors appear when you’re connected to a device that seems to short the pins (i.e. possibly not powered and pulling too much from the DM/DP pins through the protection diodes that route the voltage to the Vcc rails). Maybe something in your connections doesn’t work and the touchscreen is not properly powered (e.g. if it takes the power from the HDMI connector, maybe one optional pin is not connected). If you have an HDMI cable extender, you could try to connect the screen to another board and see if the… Read more »

Marco
Marco
2 years ago

I have the exact same issue on the NanoPi M4V1, I’ve an externally powered HDD I use for backups, if connected everything else on the usb3 ports doesn’t work at all be it a pendrive or the remote for wireless keyboard. Not a big issue since I use it completely headless but sometime I have to make some work on console and it’s annoying to juggle with cables every time.

Willy
Willy
2 years ago

I seem to remember (but I have not rechecked) that there’s a USB3 hub on these boards, it’s possible that it’s powered from the same power rails that are delivered to the ports, through a regulator, and that if too much power is pulled there, the hub itself disappears.
I’ve only used thumb drives on my M4V1 and don’t remember observing such issues.

tkaiser
tkaiser
2 years ago

> there’s a USB3 hub on these boards

VIA Labs VL817-Q7

Marco
Marco
2 years ago

My apologizes Willy I’ve given a wrong explanation of the problem, it’s not the USB disk that’s unavailable, it’s everything else attached that doesn’t get recognized. And yes as tkaiser said every rear usb 3 port is connected to a VIA Labs usb switch.

Willy
Willy
2 years ago

That was my understanding, yes. If the USB hub is powered down, everything behind it disappears as well.

Willy
Willy
2 years ago

It would be useful to connect one of these USB power-meters between the cable and the board (or another board) to completely rule out this aspect, then this will mean that it could be a signaling bug (e.g. the devices sending non-compliant frames or so).

roel
roel
2 years ago

Maybe you should try to connect the touchscreen to the 24-pin connector on 16 & 18 or 22 & 24. Then you keep the usb3 ports free and you minimize the problem of short circuit in the usb connector. I had once the same problem on my M8S tv-box and there I had to retract the usb stick a little bit and then usb worked again. It seemed when putting a usb-stick to far in the usb ports, it gave a short circuit that made the usb switch off.

Diii
Diii
2 years ago

Isn’t CPU on bottom side of Nanopi without heatsink(no space) and in enclosed space would melt into LCD panel, you should have tested thermals with this configuration.

Jerry
Jerry
2 years ago

Debian Buster and kernels 4.4, 5.10, and 5.13? That’s a huge problem with third party SBC manufacturers, no good up-to-date software support. Also XFCE makes me worry how the legacy X graphics support will work after RPi and other systems have switched to Wayland/Pipewire by default. Vulkan capable systems with kernel 5.17 and Mesa 22 will perform a lot faster and have full video acceleration in browsers.

Willy
Willy
2 years ago

Jerry, care to elaborate exactly what you mean by “third party SBC manufacturers” ? How is a manufacturer a “third party” ? Maybe you wear “third party jeans”, drive a “third party car”, or take a “third party train” ? 🙂

Jerry
Jerry
2 years ago

“of, relating to, or being software that is created by a vendor to be compatible with the products of another vendor”

The typical workflow is: Customer (first party) buys products that either conform to the specs (form factor), or are directly produced by the second party (RPi Trading).

Willy
Willy
2 years ago

Ah, so you’re considering RPi as the second party hence the original, and the other ones as third parties. I’m having a different view where each of them benefitted from each other’s improvements. For example, regarding 64-bit support, RPi definitely is the third party since for many years they refused and claimed it was pointless, before finally accepting to adopt the obvious solution all others already adopted. Also it’s pretty possible that others did replace the RCA video connector with an HDMI connector before RPi did the same. Also you’ll note that among the vast majority of SBC, almost only… Read more »

David Jashi
2 years ago

I may propose a stupid thing, but sometimes with low-quality USB hardware it helps to connect them through a powered USB hub.

Willy
Willy
2 years ago

Yep, that’s what Jean-Luc will try. We’re all putting him under pressure on this 🙂

Ray Knight
Ray Knight
2 years ago

Just received mine today. I’ll be attempting to use it with a Rock Pi 4. Judging by your photos I have a newer version as the main display board in mine shows as CX101PI-C_V2 while your photo shows CX101PI-C_V1. I wonder what was changed.

Johannes Bormann
Johannes Bormann
2 years ago

Don´t know, if it is to late, but I use the same Touch-Display with an Raspberry4, Raspi-Image and there are no problems.

Boardcon Rockchip and Allwinner SoM and SBC products