Buildroot support for UNO Q

Hi folks.

I have started working on a buildroot branch to support the UNO Q, however my device hasn't arrived yet, so it's mostly assumptions gleaned from the arduino/linux-qcom github repo and the debian image that the arduino-flasher-cli downloads.

I know that the fine folks at Arduino are working hard to get all the code ready for public release and a lot of my guesses will have definitive answers then.

Regardless, I wanted to post progress here in case anyone else is working on the same thing or has expertise in this area and advice to give.

Okay, I have the system booting, but relies on the boot.img and prof_firehose_ddr.elf from the Arduino debian image flasher, but it does work:

# uname -a
Linux arduino-uno-q 6.16.7 #1 SMP PREEMPT Wed Oct 29 21:03:26 NZDT 2025 aarch64 GNU/Linux
# cat /etc/os-release
NAME=Buildroot
VERSION=2025.08-791-gaaa3b0f4d8-dirty
ID=buildroot
VERSION_ID=2025.11-git
PRETTY_NAME="Buildroot 2025.11-git"

Okay so neither mainline u-boot nor linaro’s Qualcomm fork will boot a kernel as far as I can tell. Looking at the log output for the stock u-boot it’s version string contains a sha that isn’t present in either repo so my guess is that the hard working folks at Arduino have their own u-boot fork that they’re working on which are not yet publicly available.
If anyone has any suggestions other than “hurry up and wait” I’d love to hear them.

@manchuino any chance we can get the bootloader code bumped up the priority list? I know you’re all flat out so no pressure but if you don’t ask you don’t get :person_shrugging:

@jamesharton

Let me collect all the information… thank you so much for your effort so far!

@jamesharton sorry for the delay, I didn’t see the thread earlier :frowning: The bootloader code is here GitHub - arduino/u-boot at qcom-mainline , we are currently in the process of upstreaming so the commit history will likely change soon, but it can safely be used.

Thank you so much! This is awesome. For my next ask, can you tell me where the prog_firehose_ddr.elf binary comes from in the debian image? I need it to make QDL work, but I've just had to copy it for now.

It boots! Great success! Now all that's left is the firehose binary conundrum.

boot_log_success.txt (33.0 KB)

Hey @jamesharton, very cool!

Cool @jamesharton!

prog_firefose_ddr.elf is typically found in the “boot binaries” download for that platform; for this platform, the current best place to find these is within the Linaro “rescue” image zip file for this board. You can check the debos recipe for creating “flat” images too (which supports other platforms too); this was derived from qcom-deb-images, I’d be happy to help with questions for the buildroot port if you have any. :slight_smile:

Awesome! Thanks for pointing me at this! This is great because my buildroot rules can download extract it rather than checking it in which I really didn’t want to do.

You can now refer to the proper zip file https://github.com/arduino/arduino-deb-images/blob/arduino/debos-recipes/qualcomm-linux-debian-flash.yaml#L134 that also tracks the differences between UNOQ and RB1 :slightly_smiling_face:

This is great! Thank you. I have already integrated it into the buildroot config.

Okay, I have made heaps of progress with buildroot, including building a u-boot based on the Arduino sources that when the POWER button is detected during boot it starts up USB Mass Storage mode and makes the entire eMMC available, which makes flashing so much easier because it no longer relies on QDL - this is very simple so I think you might want to consider enabling this behaviour in the stock bootloader @facchinm - config here: buildroot/board/arduino/arduino-uno-q/uboot.config at main · jimsynz/buildroot · GitHub

I have additional questions:

  1. Is the source for the default MCU firmware available? I'd like to modify the loading animation, as well as add a feature where it shows a USB logo when the device is in mass storage mode.
  2. Is there a way to flash the MCU at the same time as writing the eMMC or do I need to explicitly build the MCU firmware into the firmware image and load flash the MCU as part of the boot process?
  3. How is the MCU flashed from the SoC? I presume a pin is used to trigger a reboot into the bootloader or something?

Hi @jamesharton

The boot animation sketch is here ArduinoCore-zephyr/libraries/Arduino_LED_Matrix/examples/Reflash_Bootanimation at main · arduino/ArduinoCore-zephyr · GitHub .

There is no way to flash the MCU simultaneously with the eMMC. You need to flash during the (first) boot, maybe via initd/systemd service.

It is done via OpenOCD through our new remoteocd wrapping tool. If you mind including the ArduinoCore-Zephyr and arduino-cli in your image, you can also use the arduino-cli upload command.

You might need to reflash the bootloader on the MCU, and this is done via the following command:

arduino-cli burn-bootloader -P jlink -b arduino:zephyr:unoq

that can be executed from the board itself.

Given the fact that the MCU is directly connected via SWD, there is no need to trigger the bootloader mode.

More details on the Uno Q support via Zephyr OS is available here Arduino UNO Q — Zephyr Project Documentation

Please let me know if you have any questions.

Hi @jamesharton. I'm try to build your WIP.
Problem in executing post-image script.

>>>   Executing post-image script board/arduino/arduino-uno-q/post-image.sh
Arduino UNO Q: Post-build processing
Creating Android boot image with mkbootimg...
board/arduino/arduino-uno-q/post-image.sh: line 38: /home/seko/arduino-uno/james/buildroot/output/host/bin/mkbootimg-qcom: No such file or directory
make[1]: *** [Makefile:830: target-post-image] Error 127
make: *** [Makefile:83: _all] Error 2

It's not doing a docker-based build is it?

No, it's not a Docker-based build.
I'm building on Ubuntu LTS 24.04.3
I tried adding the BR2_PACKAGE_HOST_ANDROID_TOOLS_MKBOOTIMG package, but the mkbootimg executable isn't generated.

I solved it this way:

  • downloaded mkbootimg_tools from this link
  • copied mkbootimg_tools-master/mkbootimg to output/host/bin/mkbootimg-qcom
    This is the build output:
anto@anto-VirtualBox:~/Projects/buildroot$ ls -la output/images/
total 299752
drwxr-xr-x 4 anto anto      4096 Dec  1 14:41 .
drwxrwxr-x 6 anto anto      4096 Dec  1 09:22 ..
-rw-r--r-- 1 anto anto    606208 Dec  1 14:41 boot.img
-rw-r--r-- 1 anto anto      1320 Dec  1 14:41 boot.scr
drwxr-xr-x 3 anto anto      4096 Dec  1 13:45 deploy
-rw-r--r-- 1 anto anto 536870912 Dec  1 14:41 efi.vfat
-rw-r--r-- 1 anto anto         0 Dec  1 14:41 empty-ramdisk
-rw-r--r-- 1 anto anto  40389120 Dec  1 09:22 Image
drwxr-xr-x 3 anto anto      4096 Dec  1 09:02 qcom
-rwxr-xr-x 1 anto anto      2545 Dec  1 09:22 qrb2210-arduino-imola-camera-rpiv2.dtbo
-rwxr-xr-x 1 anto anto     72393 Dec  1 09:22 qrb2210-arduino-imola.dtb
-rwxr-xr-x 1 anto anto      1813 Dec  1 09:22 qrb2210-arduino-imola-gigadisplay.dtbo
-rwxr-xr-x 1 anto anto      3777 Dec  1 09:22 qrb2210-arduino-imola-odd.dtbo
-rw-r--r-- 1 anto anto 209715200 Dec  1 14:41 rootfs.ext2
lrwxrwxrwx 1 anto anto        11 Dec  1 14:41 rootfs.ext4 -> rootfs.ext2
-rw-r--r-- 1 anto anto 111400960 Dec  1 14:41 rootfs.tar
-rw-r--r-- 1 anto anto   1235632 Dec  1 09:07 u-boot.bin
-rw-r--r-- 1 anto anto    528244 Dec  1 14:41 u-boot.bin.gz
-rw-r--r-- 1 anto anto    600637 Dec  1 14:41 u-boot-gz-dtb
-rw-r--r-- 1 anto anto   1235632 Dec  1 14:41 u-boot-nodtb.bin

Now I need to test it on the board I just received, but first I need to figure out how to do it :slightly_smiling_face:.

Thanks for giving it a try! It should have included the mkbootimg host package in the build. I’ll take a look and try and figure out why it’s being weird.
So far I have only used it via a serial console so I’m not sure if the usb-c DisplayPort, etc work.
Also I have been unable to get the wifi interface to show up even after close inspection of the Debian image I can’t figure out which magical Qualcomm incantations I am missing.

I tried, but the flash.sh command in the deploy directory doesn't seem to work.
I managed to connect to the MPU's serial port (Default Debugging Shell Serial on JCTL connector after purchasing a 1.8V USB serial TTL converter).
I'd like to try downloading the compiled images directly from U-boot, but I have no idea what commands to use: I don't know much about UEFI!
Any references or guides?