• Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
RetroPie forum home
  • Recent
  • Tags
  • Popular
  • Home
  • Docs
  • Register
  • Login
Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

Fresh install of RetroPie 4.8 won't boot due to timeouts

Scheduled Pinned Locked Moved Help and Support
pi4boot issuetimeoutretropie4.8
10 Posts 2 Posters 1.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M
    mfretro
    last edited by mfretro 17 Aug 2022, 10:06

    Pi Model: 4 B
    Power Supply used: Official Raspberry Pi Power Supply
    RetroPie Version Used: 4.8
    Built From: Pre made SD Image on RetroPie website
    USB Devices connected: Microsoft Sidewinder X4 Keyboard, NESPi 4 case
    Controller used: none (yet)
    Guide used: https://retropie.org.uk/docs/First-Installation/
    Error messages received:

    • [FAILED] Failed to start Load Kernel Modules.
    • [FAILED] Failed to start Configure Bluetooth Modems connected by UART.
    • [FAILED] Failed to start dhcpcd on all interfaces.

    How to replicate the problem:
    I initially tried to update my dated version of RetroPie trough the retropie_setup.sh
    script. That update didn't go well and resulted in similar errors. After I gave up trying to find out what the cause was, I did the following:

    1. Formatted my SD card with SD Card Formatter (no quick format)
    2. Used 'Raspberry Pi Imager v1.7.2' to install 'RetroPie 4.8 (RPI 4/400)'
    3. Put SD card back into Pi and turn it on
    4. The initial boot of the Pi already ends in emergency mode with above errors

    Here are more details regarding the error messages, I was in a hurry and only took a photo with my phone so I apologize for not pasting the actual text here:

    RetroPie_4.8_boot_timeouts.jpg

    I am grateful for any advice on how to proceed!

    1 Reply Last reply Reply Quote 0
    • M
      mitu Global Moderator
      last edited by 17 Aug 2022, 10:18

      This looks like an issue with the card or the writing of the image file. Is the system working fine if you write another image - for instance the official Raspberry Pi OS from https://www.raspberrypi.com/software/ ?

      M 1 Reply Last reply 18 Aug 2022, 08:04 Reply Quote 0
      • M
        mfretro @mitu
        last edited by 18 Aug 2022, 08:04

        I just tried your suggestion: The first boot of Pi OS already complains with "Failed to write wtmp record, ignoring: Read-only file system". After reboot the welcome screen is shown forever with "systemd.sysctl.service" in the corner, then it ends up in emergency mode as well.

        So it seems the SD card is the problem, I'll try with a new card and report back whether it worked.

        1 Reply Last reply Reply Quote 0
        • M
          mfretro
          last edited by mfretro 18 Aug 2022, 20:03

          Just tried with a brand new SD card (SanDisk Extreme 64GB) directly out of the package.

          As before, I installed RetroPie 4.8 via the Pi Imager. At first boot a disk check is timing out and again I am ending up in emergency mode:

          A start job is running for /dev/disk/by-partuuid/7f2cbd05-01
          ...
          [TIME] Timed out waiting for device /dev/disk/by-partuuid/7f2cbd05-01
          [DEPEND] Dependency failed for File System Check ...
          [DEPEND] Dependency failed for /boot.
          [DEPEND] Dependency failed for Local File Systems.
          

          From there I first increased the device timeout in /etc/fstab (x-systemd.device-timeout) for the partition, hoping that the check can run through next time.

          I then also updated:

          sudo systemctl daemon-reload
          sudo dhclient eth0
          sudo ifconfig eth0 up
          sudo apt update
          sudo apt full-upgrade
          sudo systemctl reboot
          

          Everything above works, then after reboot the check of the boot partition runs through successfully. But then I get the exact same errors / timeouts as in my initial post ...

          I can't imagine that the RetroPie image isn't written successfully to the card as the Pi Imager's verify step completes without error.

          1 Reply Last reply Reply Quote 0
          • M
            mitu Global Moderator
            last edited by 19 Aug 2022, 03:01

            Can you run a dmesg after an unsuccessful boot and save the output on the /boot partition, then post it on pastebin.com ? You can run dmesg > /boot/dmesg.txt and you'll can get the file from your PC.

            M 1 Reply Last reply 19 Aug 2022, 11:26 Reply Quote 0
            • M
              mfretro @mitu
              last edited by mfretro 19 Aug 2022, 11:26

              Actually, when I try to run sudo dmesg > /boot/dmesg.txt I just get the output Permission denied, is that normal?

              Anyway, I just put the file on the other partition, here it is:
              https://pastebin.com/rNPWYJ8W

              In line 232 it says:
              [ 1.642532] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem

              And then in line 236:
              [ 1.660679] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.

              Is the boot partition supposed to be mounted read-only?
              Maybe that is the cause of my problems?

              Also, what I forgot to mention in my initial post: The Pi is inside a NESPi 4 case (which never caused any problems so far).
              I have edited the initial post to include that information.

              1 Reply Last reply Reply Quote 0
              • M
                mitu Global Moderator
                last edited by 19 Aug 2022, 11:56

                The issue seems to be the communication with the USB disk (which you didn't mention about):

                ...
                [    9.075648] sd 0:0:0:0: [sda] Unit Not Ready
                [    9.075671] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
                [    9.075692] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
                [   39.394795] random: crng init done
                [   39.394808] random: 7 urandom warning(s) missed due to ratelimiting
                [  189.085669] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [  243.674499] INFO: task systemd-modules:131 blocked for more than 122 seconds.
                [  243.674519]       Tainted: G         C        5.10.103-v7l+ #1529
                [  243.674535] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
                [  243.674552] task:systemd-modules state:D stack:    0 pid:  131 ppid:     1 flags:0x00000001
                [  243.674586] Backtrace: 
                [  243.674633] [<c0b91740>] (__schedule) from [<c0b92118>] (schedule+0x68/0xe4)
                [  243.674657]  r10:c1205048 r9:c120f480 r8:c1356018 r7:c1205048 r6:00000000 r5:c2fc3e00 
                ... later on...
                
                [  549.145730] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [  549.145797] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
                [  549.145819] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
                [  549.145840] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
                [  549.145867] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
                [  549.145885] sd 0:0:0:0: [sda] 0-byte physical blocks
                [  729.165631] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [  729.165699] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
                [  909.195633] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [  909.195853] sd 0:0:0:0: [sda] Asking for cache data failed
                [  909.195875] sd 0:0:0:0: [sda] Assuming drive cache: write through
                [  909.250741] sd 0:0:0:0: [sda] Unit Not Ready
                [  909.250767] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
                [  909.250788] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
                [ 1089.265664] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [ 1269.305667] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [ 1449.345672] sd 0:0:0:0: tag#0 timing out command, waited 180s
                [ 1449.345743] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
                [ 1449.345766] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
                [ 1449.345786] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
                [ 1629.355676] sd 0:0:0:0: tag#0 timing out command, waited 180s
                ...
                

                Do you have an USB disc attached ? Looks like the communication with it fails - either the disc/USB port is faulty or the case's USB/Sata controller has issues (perhaps subject to the problems described in https://forums.raspberrypi.com/viewtopic.php?t=245931 ?).

                1 Reply Last reply Reply Quote 0
                • M
                  mfretro
                  last edited by mfretro 19 Aug 2022, 12:09

                  No, there is no USB disk attached. The only device connected to the Pi is the NESPi 4 case, which I have set up as described in the manual (without SSD though):
                  https://retroflag.com/download/NESPi_4_CASE_Manual.pdf

                  The keyboard is connected to the single exposed USB 3.0 port of the case and that's it.

                  M 1 Reply Last reply 19 Aug 2022, 12:39 Reply Quote 0
                  • M
                    mitu Global Moderator @mfretro
                    last edited by 19 Aug 2022, 12:39

                    @mfretro Try removing the Pi from the case and see if you get the same timeouts. If not, then the issue may be caused by the case's USB hub/controller.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mfretro
                      last edited by mfretro 19 Aug 2022, 15:31

                      I just tried to boot with just the lid of the NESPi case removed, where the SATA-to-USB adapter is located, which was of course plugged into one of the Pi's USB 3.0 ports.

                      Now it boots without problems!

                      Since these problems started after I performed an update of RetroPie, I suspect an EEPROM update of the Pi made the SATA-to-USB adapter incompatible. I never would have suspected the case lid as it has worked without problems in the past.

                      At least we finally found the problem. I'll now try to fix this by updating the firmware of the adapter in the case lid and report back whether it worked.

                      Thanks for your help, mitu! :-)

                      1 Reply Last reply Reply Quote 2
                      10 out of 10
                      • First post
                        10/10
                        Last post

                      Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                      Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.

                        This community forum collects and processes your personal information.
                        consent.not_received