For some reason my AGX Xavier won’t boot any more, is there a way to reflash the AGX but keep the data? and How? Please help.
edit: I connect serial console port and log the output during boot up as console.log (95.3 KB)
. It seems the agx bootup successfully and show the login prompt in the serial console. Then I try to remote login from ssh and I am able to login. So somehow the GUI mess up. Is there a way for quick fix the GUI? My agx is running 18.04 and Jetpack 4.2. It already installed camera drivers, so I would rather not to reflash it ; )) Thanks for your help.
Attached please find the Xorg.0.log (14.0 KB)
file of /var/log/Xorg.0.log
Magically this morning, it bootup with GUI (yesterday tried dozen times and cannot bootup GUI…) Could you share your insights on why this happened and how to avoid this? and if it happens again, how to quick recover it? (instead wait overnight?) Thanks a lot for your help.
Retrospect notes: (might help those who has the same experience) after a road test the system crash (perhaps due to power not stable in the car), then come back to the lab and plug back to regular power supply, try to boot up and won’t “boot up” (no GUI but blinking screen with full of boot up text, no login prompt…) after several attempts ( > 7 times) and then plug in serial console to find out why… and found it actually boot up and show the login prompt in the serial console (but not on the screen). Then try Alt-Ctrl-F2 and then I see the login prompt and can login from there and backup all my data, then sudo shutdown… that calls a day. Next day, when I boot up again, the GUI shows up ! Everything seems back to normal again. So I would guess: in my case (don’t how to specified it), if do following steps, the system might be able to recover:
somehow the crash (due to power interrupt?) might cause the GUI status file got corrupted(?)
boot up and check serial console if it show login prompt (means did boot up successfully but may not see it on AGX screen)
then hit Alt-Ctrl-F2 (or F1, etc.) to see if you can login there
if yes, that might “fix” (rewrite) the GUI status file (how? don’t know) then try to sudo reboot from there and get finger cross…
Praise the Lord! I don’t need to reflash this time and I already got all my data backup. I hope this might help someone encounter the similar situation. Before panic, try the above steps to see if you can get back to normal boot up again. Good Luck ; )
I would suggest that if you suspect boot is going to fail (I am guessing when transferring from car to other), then set up serial console to log the boot. It would be very nice to see (in addition to the Xorg.0.log) the dmesg occurring during the flashing screen.
FYI, if something causes an incorrect shutdown in the car, then it is possible that the first boot after this will replay a journal in the ext4 filesystem and some content will be lost or corrupt. Conceivably this could be fixed with a reboot, but that’s quite a lot of guessing.
That log does not actually show enough to say what is going on. Even the Xorg log is not particularly useful in this case. I don’t know if it would help, but using ssh or other console login, could you edit “/etc/X11/Xorg.conf”, and when you find Section "Device", add this line to it?
Section "Device"
Option "ModeDebug"
...
Then, after it boots to the error, the Xorg log will have much more information. Post the more verbose “/var/log/Xorg.0.log” (which might provide information the less verbose log does not show).
Also, is the monitor purely HDMI without adapters?
Btw, I suspect you will end up flashing anyway, but you could clone the rootfs first to save a copy. The clone can be used during the flash to reflash that same clone. Limitations are that the clone and the version flashed must be from the same release, and that if the problem is something on the clone, then you’ll still have the problem.