mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
NOVA: use grub instead of pxe
Make pxe optional and use by default grub. For that to work we use objcopy to repack the elf64 file into elf32. With this commit more tests succeed. Most tests use 64M and with that pulsar even does not start the hypervisor. With 96M more test run however that would mean to adjust most of the run scripts ...
This commit is contained in:
parent
a4cac757e2
commit
c56c9f586d
@ -57,7 +57,7 @@ proc build_boot_image {binaries} {
|
|||||||
if {![nova_external] && ![file exists [nova_kernel]]} { build { kernel } }
|
if {![nova_external] && ![file exists [nova_kernel]]} { build { kernel } }
|
||||||
|
|
||||||
puts "using NOVA kernel at [nova_kernel]"
|
puts "using NOVA kernel at [nova_kernel]"
|
||||||
exec cp [nova_kernel] [run_dir]/hypervisor
|
exec objcopy -O elf32-i386 [nova_kernel] [run_dir]/hypervisor
|
||||||
|
|
||||||
install_iso_bootloader_to_run_dir
|
install_iso_bootloader_to_run_dir
|
||||||
|
|
||||||
|
13
tool/run
13
tool/run
@ -440,12 +440,13 @@ proc spawn_qemu { wait_for_re timeout_value } {
|
|||||||
if {[have_spec platform_vpb926]} { append qemu_args " -M versatilepb -m 128 " }
|
if {[have_spec platform_vpb926]} { append qemu_args " -M versatilepb -m 128 " }
|
||||||
if {[have_spec platform_vea9x4]} { append qemu_args " -M vexpress-a9 -cpu cortex-a9 -m 256 " }
|
if {[have_spec platform_vea9x4]} { append qemu_args " -M vexpress-a9 -cpu cortex-a9 -m 256 " }
|
||||||
|
|
||||||
# on x86, we supply the boot image as ISO image
|
# on x86, we support booting via pxe or iso image [default]
|
||||||
if {[have_spec x86_64] && [have_spec nova]} {
|
if {[have_spec x86]} {
|
||||||
append qemu_args " -boot n -tftp [run_dir] -bootp boot/pulsar -no-reboot -no-shutdown "
|
if {[have_spec boot_pxe]} {
|
||||||
} else {
|
append qemu_args " -boot n -tftp [run_dir] -bootp boot/pulsar -no-reboot -no-shutdown "
|
||||||
# on x86, we supply the boot image as ISO image
|
} else {
|
||||||
if {[have_spec x86]} { append qemu_args " -cdrom [run_dir].iso " }
|
append qemu_args " -cdrom [run_dir].iso "
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
# on ARM, we supply the boot image as kernel
|
# on ARM, we supply the boot image as kernel
|
||||||
|
Loading…
Reference in New Issue
Block a user