Unbricking of VOXL2 is failing (build failure)
-
Hi,
I lost my device after getting it to work for a while, and thought that the issue was that my device got bricked.
I was following your unbricking tutorial and ran into following error (not encountered in the previous unbricking threads 1, 2, 3, 4, 5, 6)
I think I got the
Provisioning
andFlash CDT
done with some warnings (also weirdly the green text says that things succeeded even if things failed)I have the QRB5165M version and I was using the Latest: VOXL 2 QDL Image 14.1a_1.7.8. I am usinf Ubuntu 22.04 and like said, the Starling 2 was working for a while and established a connection there, but then I lost it.
Any ideas why the flashing fails?
Build log:
{"message": "modal hello\n[MODALAI] test log\n\n[MODALAI] Executing usb_open\n[MODALAI] Completed usb_open\n[MODALAI] Executing sahara_run\nHELLO version: 0x2 compatible: 0x1 max_len: 1024 mode: 0\nREAD64 image: 13 offset: 0x0 length: 0x40\nREAD64 image: 13 offset: 0x40 length: 0x310\nREAD64 image: 13 offset: 0x1000 length: 0x1000\nREAD64 image: 13 offset: 0x2000 length: 0xc48\nREAD64 image: 13 offset: 0x3000 length: 0x1000\nREAD64 image: 13 offset: 0x4000 length: 0x1000\nREAD64 image: 13 offset: 0x5000 length: 0x1000\nREAD64 image: 13 offset: 0x6000 length: 0x1000\nREAD64 image: 13 offset: 0x7000 length: 0x1000\nREAD64 image: 13 offset: 0x8000 length: 0x1000\nREAD64 image: 13 offset: 0x9000 length: 0x1000\nREAD64 image: 13 offset: 0xa000 length: 0x1000\nREAD64 image: 13 offset: 0xb000 length: 0x1000\nREAD64 image: 13 offset: 0xc000 length: 0x1000\nREAD64 image: 13 offset: 0xd000 length: 0x1000\nREAD64 image: 13 offset: 0xe000 length: 0x1000\nREAD64 image: 13 offset: 0xf000 length: 0x1000\nREAD64 image: 13 offset: 0x10000 length: 0x1000\nREAD64 image: 13 offset: 0x11000 length: 0x1000\nREAD64 image: 13 offset: 0x12000 length: 0x1000\nREAD64 image: 13 offset: 0x13000 length: 0x1000\nREAD64 image: 13 offset: 0x14000 length: 0x1000\nREAD64 image: 13 offset: 0x15000 length: 0x1000\nREAD64 image: 13 offset: 0x16000 length: 0x1000\nREAD64 image: 13 offset: 0x17000 length: 0x1000\nREAD64 image: 13 offset: 0x18000 length: 0x1000\nREAD64 image: 13 offset: 0x19000 length: 0x1000\nREAD64 image: 13 offset: 0x1a000 length: 0x1000\nREAD64 image: 13 offset: 0x1b000 length: 0x1000\nREAD64 image: 13 offset: 0x1c000 length: 0x1000\nREAD64 image: 13 offset: 0x1d000 length: 0x1000\nREAD64 image: 13 offset: 0x1e000 length: 0x1000\nREAD64 image: 13 offset: 0x1f000 length: 0x1000\nREAD64 image: 13 offset: 0x20000 length: 0x1000\nREAD64 image: 13 offset: 0x21000 length: 0x1000\nREAD64 image: 13 offset: 0x22000 length: 0x1000\nREAD64 image: 13 offset: 0x23000 length: 0x1000\nREAD64 image: 13 offset: 0x24000 length: 0x1000\nREAD64 image: 13 offset: 0x25000 length: 0x1000\nREAD64 image: 13 offset: 0x26000 length: 0x1000\nREAD64 image: 13 offset: 0x27000 length: 0x1000\nREAD64 image: 13 offset: 0x28000 length: 0x1000\nREAD64 image: 13 offset: 0x29000 length: 0x1000\nREAD64 image: 13 offset: 0x2a000 length: 0x1000\nREAD64 image: 13 offset: 0x2b000 length: 0x1000\nREAD64 image: 13 offset: 0x2c000 length: 0x1000\nREAD64 image: 13 offset: 0x2d000 length: 0x1000\nREAD64 image: 13 offset: 0x2e000 length: 0x1000\nREAD64 image: 13 offset: 0x2f000 length: 0x1000\nREAD64 image: 13 offset: 0x30000 length: 0x1000\nREAD64 image: 13 offset: 0x31000 length: 0x1000\nREAD64 image: 13 offset: 0x32000 length: 0x1000\nREAD64 image: 13 offset: 0x33000 length: 0x1000\nREAD64 image: 13 offset: 0x34000 length: 0x1000\nREAD64 image: 13 offset: 0x35000 length: 0x1000\nREAD64 image: 13 offset: 0x36000 length: 0x1000\nREAD64 image: 13 offset: 0x37000 length: 0x1000\nREAD64 image: 13 offset: 0x38000 length: 0x1000\nREAD64 image: 13 offset: 0x39000 length: 0x1000\nREAD64 image: 13 offset: 0x3a000 length: 0x1000\nREAD64 image: 13 offset: 0x3b000 length: 0x1000\nREAD64 image: 13 offset: 0x3c000 length: 0x1000\nREAD64 image: 13 offset: 0x3d000 length: 0x1000\nREAD64 image: 13 offset: 0x3e000 length: 0x1000\nREAD64 image: 13 offset: 0x3f000 length: 0x1000\nREAD64 image: 13 offset: 0x40000 length: 0x1000\nREAD64 image: 13 offset: 0x41000 length: 0x1000\nREAD64 image: 13 offset: 0x42000 length: 0x1000\nREAD64 image: 13 offset: 0x43000 length: 0x1000\nREAD64 image: 13 offset: 0x44000 length: 0x1000\nREAD64 image: 13 offset: 0x45000 length: 0x1000\nREAD64 image: 13 offset: 0x46000 length: 0x1000\nREAD64 image: 13 offset: 0x47000 length: 0x1000\nREAD64 image: 13 offset: 0x48000 length: 0x1000\nREAD64 image: 13 offset: 0x49000 length: 0x1000\nREAD64 image: 13 offset: 0x4a000 length: 0x1000\nREAD64 image: 13 offset: 0x4b000 length: 0x1000\nREAD64 image: 13 offset: 0x4c000 length: 0x1000\nREAD64 image: 13 offset: 0x4d000 length: 0x1000\nREAD64 image: 13 offset: 0x4e000 length: 0x1000\nREAD64 image: 13 offset: 0x4f000 length: 0x1000\nREAD64 image: 13 offset: 0x50000 length: 0x1000\nREAD64 image: 13 offset: 0x51000 length: 0x1000\nREAD64 image: 13 offset: 0x52000 length: 0x1000\nREAD64 image: 13 offset: 0x53000 length: 0x1000\nREAD64 image: 13 offset: 0x54000 length: 0x1000\nREAD64 image: 13 offset: 0x55000 length: 0x1000\nREAD64 image: 13 offset: 0x56000 length: 0x1000\nREAD64 image: 13 offset: 0x57000 length: 0x1000\nREAD64 image: 13 offset: 0x58000 length: 0x1000\nREAD64 image: 13 offset: 0x59000 length: 0x1000\nREAD64 image: 13 offset: 0x5a000 length: 0x1000\nREAD64 image: 13 offset: 0x5b000 length: 0x1000\nREAD64 image: 13 offset: 0x5c000 length: 0x1000\nREAD64 image: 13 offset: 0x5d000 length: 0x1000\nREAD64 image: 13 offset: 0x5e000 length: 0x1000\nREAD64 image: 13 offset: 0x5f000 length: 0x1000\nREAD64 image: 13 offset: 0x60000 length: 0x1000\nREAD64 image: 13 offset: 0x61000 length: 0x1000\nREAD64 image: 13 offset: 0x62000 length: 0x1000\nREAD64 image: 13 offset: 0x63000 length: 0x1000\nREAD64 image: 13 offset: 0x64000 length: 0x1000\nREAD64 image: 13 offset: 0x65000 length: 0x16c\nREAD64 image: 13 offset: 0x65170 length: 0x1000\nREAD64 image: 13 offset: 0x66170 length: 0x1000\nREAD64 image: 13 offset: 0x67170 length: 0x1000\nREAD64 image: 13 offset: 0x68170 length: 0x1000\nREAD64 image: 13 offset: 0x69170 length: 0x1000\nREAD64 image: 13 offset: 0x6a170 length: 0x1000\nREAD64 image: 13 offset: 0x6b170 length: 0x1000\nREAD64 image: 13 offset: 0x6c170 length: 0x1000\nREAD64 image: 13 offset: 0x6d170 length: 0x1000\nREAD64 image: 13 offset: 0x6e170 length: 0x1000\nREAD64 image: 13 offset: 0x6f170 length: 0x1000\nREAD64 image: 13 offset: 0x70170 length: 0x1000\nREAD64 image: 13 offset: 0x71170 length: 0x6a0\nREAD64 image: 13 offset: 0x71810 length: 0x1000\nREAD64 image: 13 offset: 0x72810 length: 0x1000\nREAD64 image: 13 offset: 0x73810 length: 0x1000\nREAD64 image: 13 offset: 0x74810 length: 0x1000\nREAD64 image: 13 offset: 0x75810 length: 0x1000\nREAD64 image: 13 offset: 0x76810 length: 0x1000\nREAD64 image: 13 offset: 0x77810 length: 0x1000\nREAD64 image: 13 offset: 0x78810 length: 0x1000\nREAD64 image: 13 offset: 0x79810 length: 0x1000\nREAD64 image: 13 offset: 0x7a810 length: 0x1000\nREAD64 image: 13 offset: 0x7b810 length: 0x1000\nREAD64 image: 13 offset: 0x7c810 length: 0x1000\nREAD64 image: 13 offset: 0x7d810 length: 0x1000\nREAD64 image: 13 offset: 0x7e810 length: 0x1000\nREAD64 image: 13 offset: 0x7f810 length: 0x1000\nREAD64 image: 13 offset: 0x80810 length: 0x1000\nREAD64 image: 13 offset: 0x81810 length: 0xcc\nREAD64 image: 13 offset: 0x818e0 length: 0x84\nREAD64 image: 13 offset: 0x81964 length: 0x1000\nREAD64 image: 13 offset: 0x82964 length: 0x1000\nREAD64 image: 13 offset: 0x83964 length: 0x1000\nREAD64 image: 13 offset: 0x84964 length: 0x1000\nREAD64 image: 13 offset: 0x85964 length: 0x1000\nREAD64 image: 13 offset: 0x86964 length: 0x1000\nREAD64 image: 13 offset: 0x87964 length: 0x1000\nREAD64 image: 13 offset: 0x88964 length: 0x134\nREAD64 image: 13 offset: 0x88a98 length: 0x1000\nREAD64 image: 13 offset: 0x89a98 length: 0x1000\nREAD64 image: 13 offset: 0x8aa98 length: 0x1000\nREAD64 image: 13 offset: 0x8ba98 length: 0x1000\nREAD64 image: 13 offset: 0x8ca98 length: 0x1000\nREAD64 image: 13 offset: 0x8da98 length: 0x1000\nREAD64 image: 13 offset: 0x8ea98 length: 0x3f0\nREAD64 image: 13 offset: 0x8ee88 length: 0x1000\nREAD64 image: 13 offset: 0x8fe88 length: 0x1000\nREAD64 image: 13 offset: 0x90e88 length: 0x1000\nREAD64 image: 13 offset: 0x91e88 length: 0x1000\nREAD64 image: 13 offset: 0x92e88 length: 0x1000\nREAD64 image: 13 offset: 0x93e88 length: 0x1000\nREAD64 image: 13 offset: 0x94e88 length: 0x3f0\nREAD64 image: 13 offset: 0x95278 length: 0x1000\nREAD64 image: 13 offset: 0x96278 length: 0x1000\nREAD64 image: 13 offset: 0x97278 length: 0x1000\nREAD64 image: 13 offset: 0x98278 length: 0x1000\nREAD64 image: 13 offset: 0x99278 length: 0x1000\nREAD64 image: 13 offset: 0x9a278 length: 0x1000\nREAD64 image: 13 offset: 0x9b278 length: 0x1000\nREAD64 image: 13 offset: 0x9c278 length: 0x1000\nREAD64 image: 13 offset: 0x9d278 length: 0x1000\nREAD64 image: 13 offset: 0x9e278 length: 0x1000\nREAD64 image: 13 offset: 0x9f278 length: 0x1000\nREAD64 image: 13 offset: 0xa0278 length: 0x1000\nREAD64 image: 13 offset: 0xa1278 length: 0x1000\nREAD64 image: 13 offset: 0xa2278 length: 0x1000\nREAD64 image: 13 offset: 0xa3278 length: 0x1000\nREAD64 image: 13 offset: 0xa4278 length: 0x1000\nREAD64 image: 13 offset: 0xa5278 length: 0x1000\nREAD64 image: 13 offset: 0xa6278 length: 0x1000\nREAD64 image: 13 offset: 0xa7278 length: 0x1000\nREAD64 image: 13 offset: 0xa8278 length: 0x1000\nREAD64 image: 13 offset: 0xa9278 length: 0x1000\nREAD64 image: 13 offset: 0xaa278 length: 0x1000\nEND OF IMAGE image: 13 status: 0\nDONE status: 1\n[MODALAI] Completed sahara_run\n[MODALAI] Executing firehose_run\n[MODALAI] Executing firehose_read\nLOG: INFO: Binary build date: Aug 17 2021 @ 23:37:37\nLOG: INFO: Binary build date: Aug 17 2021 @ 23:37:37 \nLOG: INFO: Chip serial num: 2602494656 (0x9b1eeac0)\nLOG: INFO: Supported Functions (15):\nLOG: INFO: program\nLOG: INFO: read\nLOG: INFO: nop\nLOG: INFO: patch\nLOG: INFO: configure\nLOG: INFO: setbootablestoragedrive\nLOG: INFO: erase\nLOG: INFO: power\nLOG: INFO: firmwarewrite\nLOG: INFO: getstorageinfo\nLOG: INFO: benchmark\nLOG: INFO: emmc\nLOG: INFO: ufs\nLOG: INFO: fixgpt\nLOG: INFO: getsha256digest\nLOG: INFO: End of supported functions 15\n[MODALAI] Completed firehose_read\n[MODALAI] Executing ufs_need_provisioning\n\n\n[MODALAI] ==== Executing firehose configure ====\nqdl: firehose operation timed out\nERROR: n = -1, errno = 19 (No such device)\n\nFlash flat build failed\n"}
-
Hi @pettertei,
Can you run the following command inside the flat build folder?:
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
This will flash the flat build manually and give a more verbose output as to why you're experiencing issues with the flat build flash
-
@Nathan-Raras said in Unbricking of VOXL2 is failing (build failure):
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
Thanks for the reply @Nathan-Raras
It gives me the following error:
I/O warning : failed to load external entity "rawprogram_unsparse0.xml" [PATCH] failed to parse rawprogram_unsparse0.xml qdl: failed to detect file type of rawprogram_unsparse0.xml
I have the
rawprogram_unsparse0.xml
there in theufs
And, I am using USB-C -> USB-A via USB-C hub to my Dell XPS 13 if that makes any difference?
And on my Ubuntu, the
install_dependencies.sh
did not install theqdl
to/usr/local/bin
, thus calling it from the "local"modules
folder. -
Hi @pettertei,
It's possible that there's an issue with the XML parser where it tried to open or failed to find the rawprogram_unsparse0.xml file.
Can you ensure libxml2 is installed by running:
dpkg -l | grep libxml2
If not present, run the following to install:
sudo apt install libxml2
-
@Nathan-Raras It seems that the
libxml2
is up-to-date