Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/riscv-fs/riscv-ubuntu-22.04-24.04/BUILING.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
---
title: Building the base x86-ubuntu image
title: Building the base riscv-ubuntu image
authors:
- Harshil Patel
---

This document provides instructions to create the "x86-ubuntu" image. This image is a 22.04 Ubuntu image.
This document provides instructions to create the "riscv-ubuntu" image. This image is a 22.04 Ubuntu image.

## Directory map

Expand Down
12 changes: 8 additions & 4 deletions src/riscv-fs/riscv-ubuntu-22.04-24.04/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,17 @@ fi
ubuntu_version="$1"

if [[ "$ubuntu_version" == "22.04" ]]; then
wget https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img.xz
unxz ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img.xz
if [ ! -f ./ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img ]; then
wget https://old-releases.ubuntu.com/releases/jammy/ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img.xz
unxz ubuntu-22.04.3-preinstalled-server-riscv64+unmatched.img.xz
fi
fi

if [[ "$ubuntu_version" == "24.04" ]]; then
wget https://old-releases.ubuntu.com/releases/noble/ubuntu-24.04-preinstalled-server-riscv64.img.xz
unxz ubuntu-24.04-preinstalled-server-riscv64.img.xz
if [ ! -f ./ubuntu-24.04-preinstalled-server-riscv64.img ]; then
wget https://old-releases.ubuntu.com/releases/noble/ubuntu-24.04-preinstalled-server-riscv64.img.xz
unxz ubuntu-24.04-preinstalled-server-riscv64.img.xz
fi
fi


Expand Down
1 change: 1 addition & 0 deletions src/riscv-fs/riscv-ubuntu-22.04-24.04/riscv-ubuntu.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ source "qemu" "initialize" {
headless = "true"
disk_image = "true"
boot_command = [
"<wait10><enter>",
"<wait120>",
"ubuntu<enter><wait>",
"ubuntu<enter><wait>",
Expand Down