Before I begin, yes I understand that I could do this with a native Ubuntu machine, but at this point the sunken cost fallacy wants me to get to the bottom of this.
So I have an Orin AGX Developer kit which was flashes 6.0 and is having some problems with bluetooth. I am attempting to roll this back to 5.1.13 or 5.1.12 utilizing WSL Ubuntu 18.04 (WSL2 on Windows 10 I have tried 22 20 and 18 with the best luck at 18).
From the following instruction page: Windows Subsystem for Linux (WSL) — sdk-manager 2.0.0 documentation I am able to setup a WSL environment and with the addition of upgrading and the info from this stack overflow about libnss3: linux - "Error while loading shared libraries: libnss3.so" while running Gtlab CI job to perform automated testing using webdriverio - Stack Overflow
(the documentation for the wsl-system should be updated, sdkmanager cannot run without installing these packages first and updating)
sudo apt install libnss3 libgconf-2-4 libatk1.0-0 libatk-bridge2.0-0 libgdk-pixbuf2.0-0 libgtk-3-0 libgbm-dev libnss3-dev libxss-dev
Then applying the fix from: Installation fails on WSL - #23 by michel30 I am able to get a build going ready to flash.
Now I am hit with yet another roadblock where:
23:11:35 INFO: Flash Jetson Linux - flash: [ 0.0483 ] File rcm_state open failed
23:11:35 ERROR: Flash Jetson Linux - flash: [ 0.0485 ] ERROR: failed to read rcm_state
23:11:36 ERROR: Flash Jetson Linux - flash: --- Error: Reading board information failed.
23:11:36 ERROR: Flash Jetson Linux - flash: [exec_command]: /bin/bash -c /tmp/tmp_NV_L4T_FLASH_JETSON_LINUX_COMP.calvin.sh; [error]: --- Error: Reading board information failed.
23:11:36 SUMMARY: Flash Jetson Linux - flash: First Error: Installation failed.
Where here I am stuck on what appears to be an issue of reading the board information. Where on WSL you cannot utilize the fix recommended in Jetson AGX Orin FAQ
This was addressed in a recent forum post: Unable to flash Jetson Orin Nano - #14 by salamander1 in which my ultimate take away was from @DaveYYY that “You won’t be able to flash the device with the default WSL2 setting even after the timeout issue is solved, so please consider finding a real Ubuntu PC instead unless you really cannot.”
I feel like I am really close. I want to believe that this is possible, I mean if not why is there even a documentation page for it?
I will attach the total logs incase it is useful.
(upload://x8seWSgoyVuV
sdkm-2024-03-05-22-45-01.log (616.7 KB)
RPXNGogjq8du4lD.zip) (162.8 KB)