Skip to content
View rcman's full-sized avatar
💭
Always working on SDL2 code of some sort.
💭
Always working on SDL2 code of some sort.
  • Canada

Block or report rcman

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
rcman/README.md

Linux, Programming, SDL2, SDL3 Tutorials, Allegro, Java, DOS Programming and examples.

All things Linux and RISC-V - Banana PI-F3 - Lechee PI 4A - Star Five Vision 2

Ubuntu 24.04 on BPI-F3 from SD-Card and running from NVME

Updated Aug 21st 2024


A little about me....I'm an old school guy who likes things simple. I've got a lot of systems, ranging from my 1950X threadripper, Mac Pro, iMac and all are running Linux usually Ubuntu.

Three RISC-V boards, a Banana PI-F3, Lechee PI 4A Laptop and Star five vision 2. I'll be honest it's been a struggle using these RISC-V boards. They're not well supported getting them installed/upgraded to Ubuntu has been difficult.

The only one that's running Ubuntu (24.10) right from the NVME is the Star Five Vision 2 but the HDMI still doesn't work. I've ordered some HDMI 2.1 cables to see if that makes a difference so we'll see.

Looking to start my Youtube channel soon.

Here's a description how I have my Banana PI-F3 Running Ubuntu 24.04. This should also work with 24.10. I release it would be easier to upload my SD Card image so I'll do that shortly.

The Short Version

Download the initrd.gz from the files Image directory. Rename it to the same name of the initrd in the boot directory, I would backup the original first. Make sure you run sync from the command line to make sure everthing is written to the SD Card. Burn the Ubuntu image (link below) to m.2. Your system will boot from Micro SD Card and then run from m.2

Long Version
Ubuntu 24.04 is now running on my BPI-F3. Will be working on a video for YouTube soon.

This should work for any version of Linux, this has only been tested with Ubuntu 24.04

Getting Started

Download the Bianbu Image and use your favorite tool to image it to micro SD card.

Download the Ubuntu Image Ubuntu 24.04 to the NVME (NOTE: you will lose all your data)

Imaging to the NVME can be performed a couple differnet ways. You copy copy the image from another system to your risc machine's SD Card, or use an image program like raspberry pi Imager or Balena Etcher. You can buy a USB to m.2 adapter which you can purchase on Amazon for about $20 dollars.

This boot has only been verified on this version of Ubuntu. It should work for all versions of Linux you just need to know which partition is root(/). After you've imaged Bianbu to the SD card. Re-insert it to your PC and mount partition. Run this command next.

sudo mkdir /mnt/sd

sudo mount /dev/sdd5 /mnt/sd
(or which ever drive letter yours shows up as. Mine shows up as sdd. if yours shows up as SDA then mount /dev/sda5). You can determine which drive it is by running the command (lsblk) Once mounted run the command to change directory.

cd /mnt/sd

Make a working directory in your home directory.

mkdir ~/work

Now copy the initrd-6.1.15 with the command below.
cp initrd.img-6-1-15 ~/work/

Download Copy the cpionew.sh Link below. Download the File here and copy it to your work directory. type this command to go there

cd ~/work

you should already have the initrd.img-6.1.15 in this directory along with the cpionew.sh type this command:

mkdir initrd-tree

type this command

cp initrd.img-6.1.15 initrd.gz

now uncompress the initrd with this command:

./cpionew.sh -u

this should extract the initrd to the initrd-tree directory Change to that directory with this command

cd initrd-tree

Download the init file located in the files directory. Replace the init in initrd-tree with the one you Downloaded. Go back one directory by typing:

cd ..

Now re-compress the initrd with this command

./cpionew.sh -r

Now run this command

cp initrd.gz initrd.img-6.1.15

with the SD card still mounted as above run this command

sudo cp initrd.img-6.1.15 /mnt/sd/

type this command

sync

and then type cd to change back to your home directory now unmount the sd card with this command

sudo umount /mnt/sd

remove the sd card and put it in the BPI-F3 machine and turn it on. It should boot to Ubuntu located on the NVME

If you need help let me know. Thanks Franco BPI-F3 Running Ubuntu 24.04

Project 2 Fixing the kernel


https://github.com/TroyMitchell911/bpi-f3-linux-6.6
The link below is to show the modules and network drivers needed to boot.
https://github.com/jellyterra/bpi-f3-archlinux

Fixing the boot so it will always boot
https://gitlab.com/rkraevskiy/ubootpubkey/-/blob/master/README?ref_type=heads

Pinned Loading

  1. BPI-F3 BPI-F3 Public

    Working with my banana-pi F3 board and figuring it out

    Shell 4 1

  2. LicheePi4A LicheePi4A Public

    Building a new install

  3. riscvboot riscvboot Public

    C

  4. visionfive2 visionfive2 Public