my first time posting here, so I’m sorry if this is the wrong place for that.
I’m having an issue when trying to do the first boot/install of NixOS using an SD card into my Raspberry Pi 4B 2GB. This only happens with the SD card, I successfully installed NixOS from a USB stick.
I also have tried many different versions of the NixOS for aarch64 from Hydra. Again, all gave me the same error.
There is also the possibility that my Raspberry Pi has a hardware problem, it would be good to validate that possibility without buying another Raspberry Pi.
I would appreciate any suggestions on how to solve this problem.
EDIT: I managed to install another Linux distro using the SD card.
Hey @afaelcgs10! I’m having the exact same issue and was also able to boot Raspbian on my Raspberry Pi 4. I also had an easy time installing NixOS on a Raspberry Pi 3 so I was a little surprised by this. I’ll follow up with any ideas or solutions I may encounter.
## Updating the bootloader using Raspberry Pi Imager
# Raspberry Pi Imager provides a GUI for updating the bootloader and selecting the boot mode.
Install package: rpi-imager
Launch the application: rpi-imager
Insert a spare sd-card. The contents will get overwritten!
Choose OS > Misc utility images > Bootloader
Boot-mode: SD (recommended), USB or Network.
Choose Storage: Select the sd-card
WRITE
Boot the Raspberry Pi with the new image and wait for at least 10 seconds.
The green activity LED will blink with a steady pattern and the HDMI display will be green on success.
Power off the Raspberry Pi and remove the sd-card.
note: Sometimes a command seems to be finished, but is still writing to storage. You might have disconnected the sd-card too soon?
I don’t know if this helps, but when I update the firmware from NixOS I do this:
[nix-shell:~]# mount /dev/disk/by-label/FIRMWARE /mnt
[nix-shell:~]# BOOTFS=/mnt FIRMWARE_RELEASE_STATUS=stable rpi-eeprom-update -d -a
BCM2711 detected
VL805 firmware in bootloader EEPROM
Checking for updates in /nix/store/fvpchpwlsaip0j4swbi7q9l5yj1xv61i-raspberrypi-eeprom-2021-03-18/share/rpi-eeprom/stable
Use raspi-config to select either the default-production release or latest update.
BOOTLOADER: up-to-date
CURRENT: qui 29 abr 2021 16:11:25 UTC (1619712685)
LATEST: qui 18 mar 2021 08:54:11 UTC (1616057651)
RELEASE: stable
VL805: up-to-date
CURRENT: 000138a1
LATEST: 000138a1
I thought there was a somewhat recent fix that added the SDHC module to the initrd kernel modules to specifically fix this scenario of / not mounting from SD?
(Now that I’ve tried to look in git history, though, I can’t find a supporting commit.)
Yes, I confirm this works and is a workaround to the problem.
However, I still think that keeping this thread is relevant because this problem shouldn’t happen with images from hydra, right?
What do you people think?