Skip to content

Commit 048dd88

Browse files
authored
[riscv-fs] fix stucking at bootup (#73)
I found that with the ubuntu-24.04 preinstalled image, it requires one more <enter> before the login prompt. Also, we should not redownloaded the downloaded sources. The document shows that it is a x86 image while the document is for riscv.
1 parent 2c4c8c2 commit 048dd88

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

src/riscv-fs/riscv-ubuntu-22.04-24.04/BUILING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Building the base x86-ubuntu image
2+
title: Building the base riscv-ubuntu image
33
authors:
44
- Harshil Patel
55
---
66

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

99
## Directory map
1010

src/riscv-fs/riscv-ubuntu-22.04-24.04/build.sh

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ fi
2121
ubuntu_version="$1"
2222

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

2830
if [[ "$ubuntu_version" == "24.04" ]]; then
29-
wget https://old-releases.ubuntu.com/releases/noble/ubuntu-24.04-preinstalled-server-riscv64.img.xz
30-
unxz ubuntu-24.04-preinstalled-server-riscv64.img.xz
31+
if [ ! -f ./ubuntu-24.04-preinstalled-server-riscv64.img ]; then
32+
wget https://old-releases.ubuntu.com/releases/noble/ubuntu-24.04-preinstalled-server-riscv64.img.xz
33+
unxz ubuntu-24.04-preinstalled-server-riscv64.img.xz
34+
fi
3135
fi
3236

3337

src/riscv-fs/riscv-ubuntu-22.04-24.04/riscv-ubuntu.pkr.hcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ source "qemu" "initialize" {
5353
headless = "true"
5454
disk_image = "true"
5555
boot_command = [
56+
"<wait10><enter>",
5657
"<wait120>",
5758
"ubuntu<enter><wait>",
5859
"ubuntu<enter><wait>",

0 commit comments

Comments
 (0)