# unbrick proceedure not finding flat build

Source: https://forum.modalai.com/topic/4216/unbrick-proceedure-not-finding-flat-build
Category: General Questions (https://forum.modalai.com/category/2/general-questions)
Posted: 2025-02-27 16:22:08 UTC by claw
Replies: 10 · Views: 2074

## claw · 2025-02-27 16:22:08 UTC

I'm sure there is a simple problem here but I can't figure it out.

I am able to provision and flash CDT, but there are no choices for the flat build file in the dropdown. I've tried unzipping the archive in both: /modal-qdl/qdl/qfil_app/modalai and ~/modal-qdl/qdl/qfil_app/modalai. Where is is supposed to go? The log window seems to show that it found them (200 ok).
![fbe1d6ad-a777-4b78-8510-6e00cd5c59d5-image.png](https://forum.modalai.com/assets/uploads/files/1740673204120-fbe1d6ad-a777-4b78-8510-6e00cd5c59d5-image.png) 

![236fe722-7144-4ff8-996e-cfd8899459ce-image.png](https://forum.modalai.com/assets/uploads/files/1740673284955-236fe722-7144-4ff8-996e-cfd8899459ce-image.png)

## Reply by Nathan Raras (ModalAI staff) · 2025-02-28 00:10:14 UTC

@claw After downloading the flat build zip file from our downloads page [here](https://docs.modalai.com/downloads/), extract them into the following directory:
```
/modal-qdl/qdl/qfil_app/modalai
```
When running the QDL application, the downloaded flat build will populate in the drop down menu where you'll select the flat build, click "Select Build", and then click "Flash Flat Build". Let me know if you have any other issues. ![Screenshot from 2025-02-27 15-56-41.png](https://forum.modalai.com/assets/uploads/files/1740701142007-screenshot-from-2025-02-27-15-56-41.png) ![Screenshot from 2025-02-27 15-57-19.png](https://forum.modalai.com/assets/uploads/files/1740701149782-screenshot-from-2025-02-27-15-57-19.png)

## Reply by claw · 2025-02-28 17:28:06 UTC (in reply to Nathan Raras)

@Nathan-Raras Thank you for the replay. As I mentioned, that IS where I put the image. 

I reinstalled qdl using snap and now it finds the image.

It still does not work though. I get the following error I'm trying to unbrick the older model voxl2 board from a Starling.

![1f97ec09-8fb2-4a16-b068-e3bbc588fef6-image.png](https://forum.modalai.com/assets/uploads/files/1740763681930-1f97ec09-8fb2-4a16-b068-e3bbc588fef6-image.png)

## Reply by Nathan Raras (ModalAI staff) · 2025-02-28 19:22:57 UTC (in reply to claw)

@claw I see, when you open the flat build folder, are the following contents displayed as such:
![Screenshot from 2025-02-28 11-08-23.png](https://forum.modalai.com/assets/uploads/files/1740770062540-screenshot-from-2025-02-28-11-08-23.png) 

I've seen some occurrences after downloading the zip where the flat build folder gets extracted inside another folder. If that is the case, move the actual flat build folder to look like the image above.

If not, inside the ufs folder of the flat build image, you can run this command manually for a more detailed output:
```
sudo qdl --debug --storage ufs --include . prog_firehose_ddr.elf rawprogram_unsparse0.xml rawprogram1.xml rawprogram2.xml rawprogram3.xml rawprogram4.xml rawprogram5.xml patch0.xml patch1.xml patch2.xml patch3.xml patch4.xml patch5.xml
```

## Reply by claw · 2025-03-03 16:57:21 UTC

Thank you for that. You're correct that it unarchived with an extra level of folders. I corrected that and retried the process. This time it ran "flash flat build" for several minutes before returning the failure message. I tried starting from the first step, different cables etc but it failed each time - it runs for 10 minutes or so and then prints the fail message. Is there a log file that gives more information to troubleshoot why it fails?
![872e24da-e8d7-4b1d-bda2-3f729dfb411d-image.png](https://forum.modalai.com/assets/uploads/files/1741021025076-872e24da-e8d7-4b1d-bda2-3f729dfb411d-image.png)

## Reply by claw · 2025-03-03 18:40:43 UTC (in reply to claw)

@Nathan-Raras BTW, the terminal window displays a "500 internal server error"

## Reply by Nathan Raras (ModalAI staff) · 2025-03-03 21:47:39 UTC

I added some changes to output the data in the log, if you were to do a "git pull", you'll be able to see log data for Provision/CDT/Flat Build. There is a timeout implemented to avoid any issues that can cause the the process to hang indefinitely. Through testing we've noticed a significant difference in using a high speed USB-C cable which cuts the flat build flash roughly in half. If you do not have that available, you can run the following command inside */modal-qdl/qdl/qfil_app/modalai/2024-06-17-1.7.4-M0054-1/ufs* to flash the flat build manually (no timeout):
```
sudo qdl --debug --storage ufs --include . prog_firehose_ddr.elf rawprogram_unsparse0.xml rawprogram1.xml rawprogram2.xml rawprogram3.xml rawprogram4.xml rawprogram5.xml patch0.xml patch1.xml patch2.xml patch3.xml patch4.xml patch5.xml
```

## Reply by Nathan Raras (ModalAI staff) · 2025-03-03 21:49:34 UTC (in reply to claw)

@claw When finished, the terminal will display "partition 1 is now bootable" which signifies that the flat build was successfully flashed![Screenshot from 2025-03-03 13-48-20.png](https://forum.modalai.com/assets/uploads/files/1741038566019-screenshot-from-2025-03-03-13-48-20.png)

## Reply by claw · 2025-03-03 21:55:37 UTC (in reply to Nathan Raras)

@Nathan-Raras That's fantastic! Thank you. I will try it tomorrow when I'm back in the lab and let you know how it goes.

## Reply by claw · 2025-03-06 19:21:04 UTC (in reply to claw)

@claw said in [unbrick proceedure not finding flat build](/post/21202):
> @Nathan-Raras

I bought a high-speed cable and the flat build passed. Thank you for your help. I need to install both the SDK now and migrate to ROS2. Are there plans to update the SDK with ROS2 as the default so that the extra step isn't required?

## Reply by tom (ModalAI staff) · 2025-03-06 19:27:53 UTC (in reply to claw)

@claw Not at this time as ROS2 takes up a lot of space so we don't include it by default
