How to reinstall graphics drivers?

I copied the /usr directory to the NVMe hard drive, then mounted the hard drive to the /usr directory. After that, I installed Nvidia JetPack, and upon restarting, I couldn’t access the desktop system. The HDMI monitor shows: “Reserved SVD code 0.” However, I can access the system through the serial terminal. So, I want to reinstall the graphics driver. How can I do that?

The system log messages during boot.

Dec  3 11:14:28 nvidia gnome-session[8527]: libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
Dec  3 11:14:28 nvidia gnome-session[8527]: libGL error: failed to load driver: swrast
Dec  3 11:14:28 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.2' (uid=120 pid=8528 comm="/usr/lib/gnome-session/gnome-session-check-acceler")
Dec  3 11:14:28 nvidia systemd[8498]: Starting Accessibility services bus...
Dec  3 11:14:28 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Activating via systemd: service name='org.gtk.vfs.Daemon' unit='gvfs-daemon.service' requested by ':1.3' (uid=120 pid=8529 comm="/usr/lib/at-spi2-core/at-spi-bus-launcher ")
Dec  3 11:14:28 nvidia systemd[8498]: Starting Virtual filesystem service...
Dec  3 11:14:28 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Successfully activated service 'org.gtk.vfs.Daemon'
Dec  3 11:14:28 nvidia systemd[8498]: Started Virtual filesystem service.
Dec  3 11:14:28 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Successfully activated service 'org.a11y.Bus'
Dec  3 11:14:28 nvidia systemd[8498]: Started Accessibility services bus.
Dec  3 11:14:28 nvidia at-spi-bus-launcher[8529]: dbus-daemon[8540]: Activating service name='org.a11y.atspi.Registry' requested by ':1.0' (uid=120 pid=8528 comm="/usr/lib/gnome-session/gnome-session-check-acceler")
Dec  3 11:14:28 nvidia at-spi-bus-launcher[8529]: dbus-daemon[8540]: Successfully activated service 'org.a11y.atspi.Registry'
Dec  3 11:14:28 nvidia at-spi-bus-launcher[8529]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Dec  3 11:14:28 nvidia gnome-session[8527]: libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
Dec  3 11:14:28 nvidia gnome-session[8527]: libGL error: failed to load driver: swrast
Dec  3 11:14:28 nvidia gnome-session[8527]: X Error of failed request:  GLXBadContext
Dec  3 11:14:28 nvidia gnome-session[8527]:   Major opcode of failed request:  154 (GLX)
Dec  3 11:14:28 nvidia gnome-session[8527]:   Minor opcode of failed request:  6 (X_GLXIsDirect)
Dec  3 11:14:28 nvidia gnome-session[8527]:   Serial number of failed request:  35
Dec  3 11:14:28 nvidia gnome-session[8527]:   Current serial number in output stream:  34
Dec  3 11:14:28 nvidia gnome-session[8527]: gnome-session-check-accelerated: GL Helper exited with code 256
Dec  3 11:14:29 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Activating service name='org.gnome.ScreenSaver' requested by ':1.17' (uid=120 pid=8527 comm="/usr/lib/gnome-session/gnome-session-binary --auto")
Dec  3 11:14:29 nvidia gnome-screensav[8560]: Couldn't get presence status: The name org.gnome.SessionManager was not provided by any .service files
Dec  3 11:14:29 nvidia dbus-daemon[8524]: [session uid=120 pid=8524] Successfully activated service 'org.gnome.ScreenSaver'
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia org.gnome.Shell.desktop[8565]: libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
Dec  3 11:14:29 nvidia org.gnome.Shell.desktop[8565]: libGL error: failed to load driver: swrast
                                                                                                                                                                        20111,1       98%
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia gnome-shell[8565]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Dec  3 11:14:29 nvidia gnome-shell[8565]: Unable to initialize Clutter.
Dec  3 11:14:29 nvidia gnome-session[8527]: gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec  3 11:14:29 nvidia gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia org.gnome.Shell.desktop[8572]: libGL error: MESA-LOADER: failed to open swrast (search paths /usr/lib/aarch64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri)
Dec  3 11:14:29 nvidia org.gnome.Shell.desktop[8572]: libGL error: failed to load driver: swrast
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): connected
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (--) NVIDIA(GPU-0): XXX HDMI (DFP-0): External TMDS
Dec  3 11:14:29 nvidia gnome-shell[8572]: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.
Dec  3 11:14:29 nvidia gnome-shell[8572]: Unable to initialize Clutter.
Dec  3 11:14:29 nvidia gnome-session[8527]: gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec  3 11:14:29 nvidia gnome-session[8527]: gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec  3 11:14:29 nvidia gnome-session[8527]: gnome-session-binary[8527]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Dec  3 11:14:29 nvidia gnome-session-binary[8527]: Unrecoverable failure in required component org.gnome.Shell.desktop
Dec  3 11:14:29 nvidia gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' exited with code 1
Dec  3 11:14:29 nvidia gnome-session-binary[8527]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Dec  3 11:14:29 nvidia gnome-session-binary[8527]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Dec  3 11:14:29 nvidia gnome-screensav[8560]: gnome-screensaver: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (**) Option "fd" "33"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) event5  - ikbc ikbc: device removed
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (**) Option "fd" "36"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (**) Option "fd" "37"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) event4  - gpio-keys: device removed
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (**) Option "fd" "36"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) event6  - ikbc ikbc: device removed
Dec  3 11:14:29 nvidia at-spi-bus-launcher[8529]: XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
Dec  3 11:14:29 nvidia at-spi-bus-launcher[8529]:       after 21 requests (21 known processed) with 0 events remaining.
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) UnloadModule: "libinput"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) systemd-logind: not releasing fd for 13:70, still in use
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) UnloadModule: "libinput"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) systemd-logind: releasing fd for 13:68
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) UnloadModule: "libinput"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) systemd-logind: releasing fd for 13:70
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) UnloadModule: "libinput"
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) systemd-logind: releasing fd for 13:69
Dec  3 11:14:29 nvidia kernel: [   26.435098] tegradc 15200000.nvdisplay: blank - powerdown
Dec  3 11:14:29 nvidia kernel: [   26.492315] extcon-disp-state external-connection:disp-state: cable 47 state 0
Dec  3 11:14:29 nvidia kernel: [   26.492320] Extcon AUX1(HDMI) disable
Dec  3 11:14:29 nvidia kernel: [   26.515994] tegra_nvdisp_handle_pd_disable: Powergated Head1 pd
Dec  3 11:14:29 nvidia kernel: [   26.516500] tegra_nvdisp_handle_pd_disable: Powergated Head0 pd
Dec  3 11:14:29 nvidia kernel: [   26.516631] tegradc 15210000.nvdisplay: blank - powerdown
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) NVIDIA(GPU-0): Deleting GPU-0
Dec  3 11:14:29 nvidia kernel: [   26.524090] tegradc 15200000.nvdisplay: blank - powerdown
Dec  3 11:14:29 nvidia kernel: [   26.524140] tegradc 15200000.nvdisplay: unblank
Dec  3 11:14:29 nvidia kernel: [   26.525423] tegra_nvdisp_handle_pd_enable: Unpowergated Head0 pd
Dec  3 11:14:29 nvidia kernel: [   26.525638] tegra_nvdisp_handle_pd_enable: Unpowergated Head1 pd
Dec  3 11:14:29 nvidia kernel: [   26.528765] Parent Clock set for DC plld2
Dec  3 11:14:29 nvidia kernel: [   26.537566] tegradc 15200000.nvdisplay: hdmi: tmds rate:148500K prod-setting:prod_c_hdmi_111m_223m
Dec  3 11:14:29 nvidia kernel: [   26.539081] tegradc 15200000.nvdisplay: hdmi: get YCC quant from EDID.
Dec  3 11:14:29 nvidia kernel: [   26.571116] Reserved SVD code 0
Dec  3 11:14:29 nvidia kernel: [   26.574722] extcon-disp-state external-connection:disp-state: cable 47 state 1
Dec  3 11:14:29 nvidia kernel: [   26.574726] Extcon AUX1(HDMI) enable
Dec  3 11:14:29 nvidia kernel: [   26.589330] tegradc 15200000.nvdisplay: sync windows ret = 246
Dec  3 11:14:29 nvidia /usr/lib/gdm3/gdm-x-session[8510]: (II) Server terminated successfully (0). Closing log file.
Dec  3 11:14:29 nvidia gdm3: GdmDisplay: display lasted 1.631283 seconds
Dec  3 11:14:29 nvidia gdm3: GdmLocalDisplayFactory: maximum number of X display failures reached: check X server log for errors
Dec  3 11:14:29 nvidia gdm3: Child process -8510 was already dead.
Dec  3 11:14:29 nvidia gdm3: Child process 8489 was already dead.
Dec  3 11:14:29 nvidia gdm3: Unable to kill session worker process

我已經在原本那一篇回覆你了

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.