Debian image available?

I have an output on the HDMI, but no network when using my USB-C hub with Ethernet.
I don’t have the mouse either on that hub. I guess the module corresponding to the chip that handles all that is not in that build. :person_shrugging:
This hub works with the MQ-Pro running Armbian though.

Is there any way to preconfigure the WiFi on the SDCard before booting?
Thanks.

I saw the Debian image here and it is working great for me, but it is a bit … bulky, Is anyone intending to post a “minimal” image so that we can simply pull the stuff we need? Either Debian or Armbian , any RedHat distros in the works? I am running headless, so ssh and cockpit are really all I need once I get going.

Regards,

Mine is working fine with a USB-C to microUSB adapter and a mini-hub from my Pi. Have you tried a different USB to Ethernet adapter? Keyboard and mouse work as well.

1 Like

I have also tried with a hat from Waveshare but it does not work either (no Ethernet, no USB working).
What I’d like is just a way to select a WiFi network, then only keep the USB-C power and get rid of all the rest. :person_shrugging:

poddingue …

Which OS image are you using. The only one I can get to boot is the debian image linked to from this page (Debian_bullseye_desktop_xfce_linux5.16.17_mqquad_root_orangepi.img.gz) and I would really like to see a “minimal” release of this as I run headless. HDMI display works with XVCE from this image, as does ssh.

WiFi runs just fine on mine after using nmtui to configure it.

Which Waveshare display? That’s next on my list. Other than a very limited (1) choice of boot media, stuff seems to be working OK. It just looks like I need to figure out how to generate a working boot sector. Documentation on how to load up a distribution would be great if somebody could post a pointer.

I’d be glad to supply it once I figure out how to build a working boot image.

$ hostnamectl
Static hostname: MangoPi-2
Icon name: computer
Machine ID: a5726a42a4604b13aeb7f137ea4ee8e5
Boot ID: 2b759cbf56cd4ae7b4ec521f8c783525
Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 5.16.17-sun50iw9
Architecture: arm64

I cannot get any ARMbian images to boot.

1 Like

Yes, the image that boots, and shows up a display for me is Debian_bullseye_desktop_xfce_linux5.16.17_mqquad_root_orangepi.img.gz.
Of course, without interaction, it starts the screensaver after some time.

Unfortunately, as the USB hub and hat don’t work for me, and Ethernet doesn’t work for me either, I’m stuck.
If you ever know how to configure the distro to start with a known WiFi network (as we did back in the day with Raspbian and Armbian), that would help.
The hat from Waveshare does not have a display on it, just a few USB ports and a RJ45 one. :person_shrugging:

That HAT also has a jumper that goes from the USB port on a Pi 0 to the board itself, and there is nothing to plug that into except the USB-C port. A suitable cable MIGHT work. I got mine up by plugging the HDMI connector into a monitor and then plugging a USB C port into hub connected to a mouse and keyboard. The hub I used for this also has an ethernet.

This is the adapter (hub) I used:
Ethernet Hub and USB Hub w/ Micro USB OTG Connector (pishop.ca)

I used it with the standard Raspberry Pi uUSB to USB-C adapter.

[USB micro-B to USB-C adapter, White - PiShop.ca]
(USB micro-B to USB-C adapter, White - PiShop.ca)

It picked up an IP address using DHCP, but it shouldn’t matter if you have a display and keyboard. Open up a terminal window and run nmtui to connect the WiFi

Plan B:

root@orangepizero2:~# sudo nmcli device wifi list
IN-USE BSSID SSID MODE CHAN RATE SIGNAL BARS SECURITY
0C:51:01:E3:5A:9A Anthony’s Wi-Fi Network Infra 11 195 Mbit/s 77 ?? WPA2
9A:0B:7C:E3:DB:A8 – Infra 11 195 Mbit/s 59 ?? WPA2
. . .
FC:9C:98:09:9A:EA ARLO_VMB_4006759516 Infra 2 130 Mbit/s 15 ?___ WPA1 WPA2
FA:8F:CA:66:E0:8A Bathroom TV.v Infra 6 65 Mbit/s 12 ?___ –

root@orangepizero2:~# ip -br address show dev wlan0
wlan0 DOWN

root@orangepizero2:~# sudo nmcli device wifi connect ‘name’ password ‘whatever’ ifname wlan0
Device ‘wlan0’ successfully activated with ‘d08508dd-c454-4721-b390-7b9785703d33’.

root@orangepizero2:~# ip -br address show dev wlan0
wlan0 UP 192.168.3.124/23 fe80::2ef:317c:8c06:d096/64

1 Like

Thank you. What is the chip that supplies Ethernet & USB hub on this adapter?

I have no idea. What I will do later is take a standard keyboard with a built in hub (Dell, because I work for them) with a USB mouse attached to it and see if that works. I suspect that the USB itself is not at issue. Once you can run nmtui, which is a curses based utility, I think you’re off to the races with WiFi, but because they provided a bloated distribution with X-Windows as configured, you’re stuck until you can click a mouse and open a window.

One of my Mango Pis came with a USB-C to A (female) adapter, so I’ll use that. I also have a USB-C Orico hub, but I don’t think which USB hub is used is important. I have the same Waveshare hubs too, but would have to pull one off a Pi Zero. Make sure you use the middle USB-C port to connect to. The outer one is for power (port usage is opposite to that of the Pi Zero USB gadget which powers/boots off the center microUSB port).

Tony

1 Like

Thanks @bracka .
I think I will order asap a USB-C to USB-A adapter, and I should be good to go.
Does the old trick to use CTRL+ALT+F[1…6] in order to get access to text console work for you?
That would allow me to use just a keyboard with an adapter and nothing else, then configure the wifi and forget about all that. :blush:

yes: that worked for me
:+1:

1 Like

Thanks a lot.
I just received my adapter, used the console trick, and I am now a happy camper. :partying_face:
I also tried another USB-C hub without much luck. :person_shrugging:
Anyhow, I now have a working machine connected to my WiFi network. :relieved:

You had a real run of bad luck there: I had trouble finding anything that DIDN’T work! (LoL), Now if I can only figure out how to make an SD card image that boots and isn’t bloatware. It doesn’t make much sense to upgrade from a Pi with 512MB and then suck up half a gig with X Windows and stuff I don’t need.

Nice little machine otherwise. Enjoy!

1 Like

I used the systemctl set-default multi-user.target trick to get it to boot without X.
Now I have to tackle getting rid of all the packages linked to X. :person_shrugging:

It looks like the image is built on top of an existing Orange Pi Zero 2 configuration…
If only we could get the build system, or get MangoPi to give it to Armbian, so that we get something more configurable :thinking:

Wifi: With the latest minimal image, after you have created your micro SD, mount it on a Linux box (or get a driver to mount ext4 on Windows.) Go to /boot. There’s a template file in there, just edit that and rename it without the .template (must be root to do that), and eject and boot your MangoPi. Simples.

Note the first boot takes a long time, and in my setup for whatever reason, the router doesn’t report seeing the board – but it does give it an address. What I finally did, after waiting 10 minutes or so, was pull the plug, and put the SD back in my laptop. In /var/log/syslog, you can see it starting up (giveaway is the file has today’s date and time, NTP came up OK). Saw the IP it was getting, replugged it in, and SSH’d to it - works fine.

when i installed it my username and password were both orangepi. might be the same case for you.

Easy!
Create a file anywhere an executable can run such as /usr/bin/connect_network

sudo nano /usr/bin/connect_network
# or
sudo vi /usr/bin/connect_network

in the file:

#!/bin/bash
sleep 20
nmcli dev wifi connect NETWORK_NAME password NETWORK_PASSWORD

then configure cron to run it at boot with:
crontab -e and adding the following line at the end of the file:

@reboot sh /usr/bin/connect_network

Note: this will also add the command connect_network anywhere in your system, so make sure not to overwrite another command

1 Like

For anyone looking for a Debian minimal install for the MQ-Quad, I’ve created an image containing the following changes from the stock image:

✓ Debian 12
✓ APT Sources Reconfigured to Stock
✓ Updated All Packages
✓ Removed All Desktop Apps
✓ Removed Library Bloat
✓ Removed OrangePi Apps
✓ Image Size 1GB when installed to disk
✓ Default username reflects MangoPi instead of OrangePi
✓ Everything you would expect from a standard "Debian Minimal Install"
Default Login Info
Username:      pi
Password:      frontesque
Root Password: frontesque
Hostname:      mango
Download Link

https://emerald.frontesque.me/ui/mangopi-quad-minimal.html

PLEASE NOTE: This image DOES NOT automatically resize itself. You may need to resize it manually if you wish to fill your entire SD card with usable storage unless your image flasher does this automatically.
(This is the same as the stock, mangopi-provided image)

Thanks, I’ve uploaded it and will give it a try. Thanks for putting in the work. In the interest of making these boards more supportable in perpetuity, I’d still like to build a base image from scratch.

Happy New Year!
Tony

I had a look at this, and it is very similar to the upgrade I performed on what is apparently the only available bootable image. It is still running a bullseye kernel:

bracka@MangoPi:~$ hostnamectl
Static hostname: MangoPi
Icon name: computer
Machine ID: 72220208b82d41a89e94c2e17deeba01
Boot ID: 144b3305e0be4adbabec81e2008ff454
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 5.16.17-sun50iw9
Architecture: arm64

I just installed full bookworm on an Orange Pi and this is what we should be reporting:

bracka@chinook:~$ hostnamectl
Static hostname: chinook
Icon name: computer
Machine ID: e1af5f93623b43d58c0567fea31978a8
Boot ID: e16a05ae186b47a493531cbcbf29c951
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.31-sun50iw9
Architecture: arm64

The product page has a source repository that I have also uploaded, so at least we are covered from that point of view. The last time I tried it, the OrangePi image would not boot, complaining about the memory controller. I may try a full build, but it looks pretty complex given that we aren’t privy to any source control.

Incidentally, mode of failure using a straight Orange Pi bookworm image. It looks like the boot loader is the first thing that’s messed up.

U-Boot SPL 2021.07-orangepi (Sep 07 2023 - 17:38:50 +0800)
DRAM:This DRAM setup is currently not supported.

resetting …

This is the one from the MangoPi supplied image that works:

U-Boot SPL 2021.10-orangepi (Oct 05 2022 - 14:25:44 +0800)
pmic id is 0x4b
DRAM: 1024 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.7(debug):ea7aee20
NOTICE: BL31: Built : 04:47:26, Oct 3 2022
NOTICE: BL31: Detected Allwinner H616 SoC (1823)
NOTICE: BL31: Found U-Boot DTB at 0x4a082610, model: OrangePi Zero2
INFO: ARM GICv2 driver initialized
INFO: Configuring SPC Controller
INFO: PMIC: Probing AXP305 on RSB
ERROR: RSB: set run-time address: 0x10003
INFO: Could not init RSB: -65539
INFO: BL31: Platform setup done
INFO: BL31: Initializing runtime services
INFO: BL31: cortex_a53: CPU workaround for 855873 was applied
INFO: BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO: PSCI: Suspend is unavailable
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x4a000000
INFO: SPSR = 0x3c9
INFO: Changed devicetree.

I am going to see if I can figure out how to move this over. I will be starting a new thread to follow the conversion to a bootable bookworm image. Setting up a build is non-trivial as it wants a very specific build machine.

Regards,
Tony