I have been banging my head against the desk over this. I can use u-boot on the SD card to boot alpine off a flash drive. I cannot get the entire thing running off SD card though. It keeps doing this. What am I missing?

3 points
*

Bad SD card.

SD cards aren’t meant to handle sustained read/write loads, and they wear out and die quickly on these devices.

Start with a fresh card, and if you run a lot of services that generate a lot of log noise, set up log2ram to help extend the life of the SD card. A more permanent fix would be to boot from an SSD which won’t have these failure issues.

permalink
report
reply
2 points

That’s why I’m running alpine. It runs in ram and only writes to the SD card when I run “lbu commit.”

As an experiment, I wrote u-boot to a different blank SD card and put the supposedly bad SD card with alpine on it into an USB card reader and connected that to the nanopi. Sure enough, the nanopi loaded u-boot on the sd card, then loaded alpine just fine off the USB card reader.

The card is fine. It just wont run alpine linux off the built in card reader.

permalink
report
parent
reply
1 point

Ah, so it’s the boot order and why it can’t mount the volume.

The wiki seems to suggest a process to boot reliably from SD card, but I’m seeing a lot of posts with the same issues. https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5C#Install_OS

permalink
report
parent
reply
1 point

I’m using the R4S, it’s a different model with a different SoC. I know there used to be a weird bug on this board regarding SD cards that was supposedly fixed in 2022 (https://kohlschuetter.github.io/blog/posts/2022/10/28/linux-nanopi-r4s/)

permalink
report
parent
reply

Linux

!linux@lemmy.ml

Create post

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word “Linux” in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

  • Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
  • No misinformation
  • No NSFW content
  • No hate speech, bigotry, etc

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

Community stats

  • 7.4K

    Monthly active users

  • 5K

    Posts

  • 77K

    Comments