me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Use the Vinix hybrid EFI image layout and GICv3 for ARM guest tests

diviocity committed 5 days ago · 5e65700089755718805fb16ecac9c1dfa2b4ece0 View patch
Unverified signature 1 files changed +4 -3
tests/busybox/boot.v +4 -3

@@ -72,14 +72,15 @@ fn boot_image(root string, iso string, output string, mode string, fixture strin

7272 ['boot/limine-bios.sys', 'boot/limine-bios-cd.bin']

7373 }

7474 run(['bsdtar', '-xf', iso, '-C', os.dir(boot), 'boot/vinix', ...boot_files])!

75- os.write_file(os.join_path(boot, 'limine.conf'), 'timeout: 0\nserial: yes\n/BusyBox\n' +

75+ os.write_file(os.join_path(boot, 'limine.conf'), 'timeout: 0\nserial: yes\nverbose: yes\n/BusyBox\n' +

7676 ' protocol: limine\n kernel_path: boot():/boot/vinix\n resolution: 1024x768x32\n' +

7777 ' kaslr: no\n module_path: boot():/boot/initramfs.tar.gz\n cmdline: vinix.disk=live\n')!

7878 run(['tar', '--format=ustar', '--owner=0', '--group=0', '-czf', os.join_path(boot,

7979 'initramfs.tar.gz'), '-C', root, '.', '-C', additions, './etc', './' + helper])!

8080 test_iso := os.join_path(output, if shell { 'busybox-shell.iso' } else { 'busybox.iso' })

8181 cd_boot := if arm {

82- ['-e', 'boot/limine-uefi-cd.bin', '-no-emul-boot']

82+ ['-J', '--efi-boot', 'boot/limine-uefi-cd.bin', '-efi-boot-part', '--efi-boot-image',

83+ '--protective-msdos-label']

8384 } else {

8485 ['-b', 'boot/limine-bios-cd.bin', '-no-emul-boot', '-boot-load-size', '4', '-boot-info-table']

8586 }

@@ -93,7 +94,7 @@ fn boot_image(root string, iso string, output string, mode string, fixture strin

9394 code := os.getenv('AARCH64_EFI_CODE')

9495 vars := os.join_path(output, 'vars.fd')

9596 os.cp(os.getenv('AARCH64_EFI_VARS'), vars)!

96- ['qemu-system-aarch64', '-machine', 'virt', '-device', 'ramfb', '-drive',

97+ ['qemu-system-aarch64', '-machine', 'virt,gic-version=3', '-device', 'ramfb', '-drive',

9798 'if=pflash,format=raw,readonly=on,file=' + code, '-drive',

9899 'if=pflash,format=raw,file=' + vars, '-device', 'virtio-scsi-pci,id=scsi0', '-drive',

99100 'if=none,id=cd0,media=cdrom,readonly=on,file=' + test_iso, '-device',