using binary boot loader by risc-v fedora for now.
This commit is contained in:
parent
9df4b2cda8
commit
607e5ded7a
2
boot.sh
2
boot.sh
@ -94,7 +94,7 @@ qemu_setargs_riscv64() {
|
|||||||
-nographic
|
-nographic
|
||||||
-machine virt
|
-machine virt
|
||||||
-m 2G
|
-m 2G
|
||||||
-kernel bbl
|
-kernel "$1"/bbl
|
||||||
-append "console=ttyS0 rw root=/dev/vda"
|
-append "console=ttyS0 rw root=/dev/vda"
|
||||||
-drive file="${3}p3",format=raw,id=hd0
|
-drive file="${3}p3",format=raw,id=hd0
|
||||||
-device virtio-blk-device,drive=hd0
|
-device virtio-blk-device,drive=hd0
|
||||||
|
14
src/qemu.sh
14
src/qemu.sh
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
##############################################################################
|
##############################################################################
|
||||||
# parabola-arm-imagebuilder #
|
# parabola-imagebuilder #
|
||||||
# #
|
# #
|
||||||
# Copyright (C) 2018 Andreas Grapentin #
|
# Copyright (C) 2018 Andreas Grapentin #
|
||||||
# #
|
# #
|
||||||
@ -104,6 +104,16 @@ qemu_cleanup_user_static() {
|
|||||||
rm -f "$1"/usr/bin/qemu-*
|
rm -f "$1"/usr/bin/qemu-*
|
||||||
}
|
}
|
||||||
|
|
||||||
|
qemu_img_finalize_for_arm() {
|
||||||
|
true
|
||||||
|
}
|
||||||
|
|
||||||
|
qemu_img_finalize_for_riscv64() {
|
||||||
|
# for the time being, use fedora bbl to boot
|
||||||
|
wget https://fedorapeople.org/groups/risc-v/disk-images/bbl \
|
||||||
|
-O "$1"/boot/bbl
|
||||||
|
}
|
||||||
|
|
||||||
qemu_make_image() {
|
qemu_make_image() {
|
||||||
msg "preparing parabola qemu image for $ARCH"
|
msg "preparing parabola qemu image for $ARCH"
|
||||||
|
|
||||||
@ -144,6 +154,8 @@ EOF
|
|||||||
qemu_setup_user_static "$TOPBUILDDIR"/mnt || return
|
qemu_setup_user_static "$TOPBUILDDIR"/mnt || return
|
||||||
|
|
||||||
pacstrap -GMcd -C "$TOPBUILDDIR/pacman.conf.$ARCH" "$TOPBUILDDIR"/mnt || return
|
pacstrap -GMcd -C "$TOPBUILDDIR/pacman.conf.$ARCH" "$TOPBUILDDIR"/mnt || return
|
||||||
|
|
||||||
|
"qemu_img_finalize_for_$ARCH" "$TOPBUILDDIR"/mnt || return
|
||||||
) || return
|
) || return
|
||||||
|
|
||||||
mv "$tmpfile" "$1"
|
mv "$tmpfile" "$1"
|
||||||
|
Loading…
Reference in New Issue
Block a user