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 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
@jamesharton sorry for the delay, I didn’t see the thread earlier 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.
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.
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.
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:
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.
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?
How is the MCU flashed from the SoC? I presume a pin is used to trigger a reboot into the bootloader or something?
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.
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?