Bootable GRUB2 disk image with ext2 partition
This provides bootable disk images for x86 platforms via ! RUN_OPT="--target disk" The resulting disk image contains one ext2 partition with binaries from the GRUB2 boot loader and the run scenario. The default disk size fits all binaries, but is configurable via ! --disk-size <size in MiB> in RUN_OPT. The feature depends on an grub2-head.img, which is part of the commit, but may also be generated by executing tool/create_grub2. The script generates a disk image prepared for one partition, which contains files for GRUB2. All image preparation steps that need superuser privileges are conducted by this script. The final step of writing the entire image to a disk must be executed later by sudo dd if=<image file> of=<device> bs=8M conv=fsync Fixes #1203.
This commit is contained in:
committed by
Norman Feske
parent
f442e64eaf
commit
dc2961338d
@@ -120,7 +120,8 @@ proc build_boot_image {binaries} {
|
||||
puts $fh "timeout 0"
|
||||
puts $fh "default 0"
|
||||
puts $fh "\ntitle Genode on L4/Fiasco"
|
||||
puts $fh " kernel /fiasco/bootstrap -serial -modaddr=0x02000000"
|
||||
puts $fh " kernel /boot/bender"
|
||||
puts $fh " module /fiasco/bootstrap -serial -modaddr=0x02000000"
|
||||
puts $fh " module /fiasco/fiasco -serial -jdb_cmd=JH $fiasco_serial_esc_arg"
|
||||
puts $fh " module /fiasco/sigma0"
|
||||
puts $fh " module /genode/core"
|
||||
@@ -137,6 +138,7 @@ proc build_boot_image {binaries} {
|
||||
install_pxe_bootloader_to_run_dir
|
||||
|
||||
create_iso_image_from_run_dir
|
||||
create_disk_image_from_run_dir
|
||||
|
||||
#
|
||||
# Generate pulsar config file
|
||||
|
||||
@@ -161,7 +161,8 @@ proc build_boot_image_x86 {binaries} {
|
||||
puts $fh "timeout 0"
|
||||
puts $fh "default 0"
|
||||
puts $fh "\ntitle Genode on Fiasco.OC"
|
||||
puts $fh " kernel /fiasco/bootstrap -modaddr=0x01100000"
|
||||
puts $fh " kernel /boot/bender"
|
||||
puts $fh " module /fiasco/bootstrap -modaddr=0x01100000"
|
||||
puts $fh " module /fiasco/fiasco $fiasco_serial_esc_arg"
|
||||
puts $fh " module /fiasco/sigma0"
|
||||
puts $fh " module /genode/core"
|
||||
@@ -174,6 +175,7 @@ proc build_boot_image_x86 {binaries} {
|
||||
|
||||
install_pxe_bootloader_to_run_dir
|
||||
create_iso_image_from_run_dir
|
||||
create_disk_image_from_run_dir
|
||||
|
||||
#
|
||||
# Generate pulsar config file
|
||||
|
||||
@@ -83,6 +83,7 @@ proc build_boot_image {binaries} {
|
||||
|
||||
install_pxe_bootloader_to_run_dir
|
||||
create_iso_image_from_run_dir
|
||||
create_disk_image_from_run_dir
|
||||
|
||||
#
|
||||
# Generate pulsar config file
|
||||
|
||||
@@ -200,11 +200,13 @@ proc build_boot_image {binaries} {
|
||||
puts $fh "default 0"
|
||||
puts $fh "hiddenmenu"
|
||||
puts $fh "\ntitle Genode on OKL4"
|
||||
puts $fh "kernel /image.elf"
|
||||
puts $fh "vbeset 0x117"
|
||||
puts $fh " kernel /boot/bender"
|
||||
puts $fh " module /image.elf"
|
||||
puts $fh " vbeset 0x117"
|
||||
close $fh
|
||||
|
||||
create_iso_image_from_run_dir
|
||||
create_disk_image_from_run_dir
|
||||
|
||||
#
|
||||
# Generate pulsar config file
|
||||
|
||||
@@ -115,6 +115,7 @@ proc build_boot_image {binaries} {
|
||||
install_pxe_bootloader_to_run_dir
|
||||
|
||||
create_iso_image_from_run_dir
|
||||
create_disk_image_from_run_dir
|
||||
|
||||
#
|
||||
# Generate pulsar config file
|
||||
|
||||
Reference in New Issue
Block a user