From 891742e62d79aeaf7dfd052df87777c2e4826357 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 30 Nov 2024 21:16:54 +0100 Subject: Simplify the qemu target by removing QEMU_BIOS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The QEMU_BIOS parameter was meant to help on old QEMU installations which did not support the proper fw_dynamic workflow. That being said, old QEMU versions might also not implement the proper SBI specification, or it may have other unexpected issues. Hence, just remove the option and force people to have a sufficiently recent QEMU version. Finally, I have updated the SVG showing off a QEMU run. Signed-off-by: Miquel Sabaté Solà --- doc/qemu.svg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/qemu.svg') diff --git a/doc/qemu.svg b/doc/qemu.svg index c8cccd0..4b0dc49 100644 --- a/doc/qemu.svg +++ b/doc/qemu.svg @@ -1 +1 @@ -mssola:~/src/github.com/mssola/fbos@main$mssola:~/src/github.com/mssola/fbos@main$makemssola:~/src/github.com/mssola/fbos@main$makeqemuCCkernel/headCCkernel/stringCCkernel/initrdCCkernel/mainCCkernel/printkCCkernel/sbiCCkernel/trapCClib/dtLDfbosCCusr/src/initLDusr/bin/initCCusr/src/fizzLDusr/bin/fizzCCusr/src/buzzLDusr/bin/buzzCCusr/src/fizzbuzzLDusr/bin/fizzbuzzCPIOusr/initramfs.cpioOpenSBIv1.5__________________/__\/____|_\__|||||_________|(___||_)|||||||'_\/_\'_\\___\|_<||||__|||_)|__/|||____)||_)|||_\____/|.__/\___|_||_|_____/|____/_____||||_|PlatformName:riscv-virtio,qemuPlatformFeatures:medelegPlatformHARTCount:1PlatformIPIDevice:aclint-mswiPlatformTimerDevice:aclint-mtimer@10000000HzPlatformConsoleDevice:uart8250PlatformHSMDevice:---PlatformPMUDevice:---PlatformRebootDevice:syscon-rebootPlatforPlatformShutdownDevice:syscon-poweroffPlatformSuspendDevice:---PlatformCPPCDevice:---FirmwareBaseFirmwareBase:0x80000000FirmwFirmwareSizeFirmwareSize:327KBFirmwareRWOffset:0x40000FirmwareRWSize:71KBFirmwareHeapOffset:0x49000FirmwaFirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),21KB(free)FirmwareScratchSize:4096B(total),416B(used),3680B(free)RuntimeSBIVersion:2.0Domain0Name:rootDomain0Domain0BootHART:0Domain0HARTsDomain0HARTs:0*Domain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,W)S/U:(R,W)Domain0Region01Domain0Region01:0x0000000010000000-0x0000000010000fffM:(I,R,W)S/U:(R,W)Domain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,W)S/U:()Domain0Region03:0x0000000080040000-0x000000008005ffffM:(R,W)S/U:()Domain0Region0Domain0Region04:0x0000000080000000-0x000000008003ffffM:(R,X)S/U:()Domain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,R,W)S/U:(R,W)DoDomain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,W)S/U:(R,W)Domain0Region07:0x0000000000000000-0xffffffffffffffffM:()S/U:(R,W,X)Domain0NextAddress:0x0000000080200000Domain0NextArg1:0x0000000087e00000Domain0NextMode:S-modeDomain0SysReset:yesDomain0SysSuspend:yesBootHARTIDBootHARTID:0BootHBootHARTDomain:rootBootHARTPrivVersion:v1.12BootBootHARTBaseISA:rv64imafdchBootHARTISAExtensions:sstc,zicntr,zihpm,zicboz,zicbom,sdtrig,svaduBootHARTPMPCountBootHARTPMPCount:16BootHARTPMPGranularity:2bitsBootHARTPMPAddressBits:54BootHARTMHPMInfo:16(0x0007fff8)BootHARTDebugTriggers:2triggersBootHARTMIDELEG:0x0000000000001666BootHARTMEDELEG:0x0000000000f0b509WelcometoFizzBuzzOS!fizzbuzzfizzbuzzQEMU:Terminatedmssola:~/src/github.com/mssola/fbos@main$mmssola:~/src/github.com/mssola/fbos@main$mamssola:~/src/github.com/mssola/fbos@main$makmssola:~/src/github.com/mssola/fbos@main$makeqmssola:~/src/github.com/mssola/fbos@main$makeqemssola:~/src/github.com/mssola/fbos@main$makeqem___________/__\/__\/____||||||____||||_________|(__||||'_||||'_\/_\'_\||__|||_||__|||_)|__/|||__|||_)|__/|||____)||\____/|.__\____/|.__/\___|_||_|__\____/|.__/\___|_||_|_____/|___PlatformNamePlatformName:riscv-virtio,qemPlatformHARTCPlatformIPPlatformIPIDevice:PlatformTimerDevice:aclint-mtimer@PlatformConsolePlatformConsoleDevice:uart82PlPlatformHSMDePlatformHSMDevice:-PlatPlatformPMUDevicPlatformPMUDevice:-PlatformRebootDevice:syscon-PlatformShutPlatformShutdownDevicPlatformShutdownDevice:PlatformSuspePlatformSuspendDevicPlatformCPPCDevPlatformCPPCDeviceFirFirmwareBFirmwareBase:0x8000FirmwareSize:3FirmwareRWOFirmwareRWOffsetFirmwareRWOffset:FirmwareHeapFirmwareHeapSizeFirmwareHeapSize:35FirmwareHeapSize:35KB(total),2KB(reFirmwareHeapSize:35KB(total),2KB(reserved),1FirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),FirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),21KB(FirmwareScratFirmwareScratchSizeFirmwareScratchSize:409FirmwareScratchSize:4096B(tFirmwareScratchSize:4096B(total),FirmwareScratchSize:4096B(total),416B(FirmwareScratchSize:4096B(total),416B(used),3FirmwareScratchSize:4096B(total),416B(used),3680BRuntimeSRuntimeSBIVersiRuntimeSBIVersionRuntimeSBIVersion:2.Domain0BootHARTDomain0HARTs:DomaiDomain0RegionDomain0Region00Domain0Region00:Domain0Region00:0x0000000000100000-Domain0Region00:0x0000000000100000-0x000000000Domain0Region00:0x0000000000100000-0x0000000000100fffDomain0Region00:0x0000000000100000-0x0000000000100fffM:Domain0Region00:0x0000000000100000-0x0000000000100fffM:(I,RDomain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,WDomain0RegDomain0Region01:0x0000000010000000Domain0Region01:0x0000000010000000-0x0000000Domain0Region01:0x0000000010000000-0x0000000010000fDomain0Region01:0x0000000010000000-0x0000000010000fffM:(IDomain0Region01:0x0000000010000000-0x0000000010000fffM:(I,R,W)S/Domain0Region02Domain0Region02:0x0000Domain0Region02:0x00000000020Domain0Region02:0x0000000002000000-0Domain0Region02:0x0000000002000000-0x0000000Domain0Region02:0x0000000002000000-0x000000000200fffDomain0Region02:0x0000000002000000-0x000000000200ffffM:(Domain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,W)Domain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,W)S/U:DomainDomain0RegioDomain0Region03:0x0000000080040000-0x00000000Domain0Region03:0x0000000080040000-0x000000008005ffffM:Domain0Region03:0x0000000080040000-0x000000008005ffffM:(R,W)S/UDomain0Region04Domain0Region04:0x00000000Domain0Region04:0x0000000080000000-0Domain0Region04:0x0000000080000000-0x0000Domain0Region04:0x0000000080000000-0x000000008003Domain0Region04:0x0000000080000000-0x000000008003ffffM:Domain0Region04:0x0000000080000000-0x000000008003ffffM:(RDomain0Region04:0x0000000080000000-0x000000008003ffffM:(R,X)S/U:Domain0Region05Domain0Region05:0x000000000c400000-0x000000000c5Domain0Region05:0x000000000c400000-0x000000000c5fffffM:(IDomain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,R,W)Domain0RegiDomain0Region06Domain0Region06:0x0000Domain0Region06:0x000000000c0Domain0Region06:0x000000000c000000-0xDomain0Region06:0x000000000c000000-0x000000000c3fffffM:Domain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,W)S/Domain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,W)S/U:(R,Domain0Region07Domain0Region07:0x0000Domain0Region07:0x00000000000Domain0Region07:0x0000000000000000-0xfffffffffffDomain0Region07:0x0000000000000000-0xffffffffffffffffM:Domain0Region07:0x0000000000000000-0xffffffffffffffffM:()Domain0Region07:0x0000000000000000-0xffffffffffffffffM:()S/U:(RDomain0Region07:0x0000000000000000-0xffffffffffffffffM:()S/U:(R,W,XDomaDomain0NexDomain0NextAddrDomain0NextAddressDomain0NextAddress:0x0000Domain0NextADomain0NextArg1Domain0NextArg1:0x000000Domain0NextArg1:0x0000000087e00Domain0NDomain0NextModDomain0NextModeDomain0NextMode:Domain0SDomain0SysSuspeDomain0SysSuspendDomain0SysSuspend:yeBootHARTDomaiBootHARTDomainBootHARTDomain:rooBootHARTPrivVersioBootHARTPrivVersion:vBootHARTBaseBootHARTBaseISABootHARTBaseISA:rBootHARTISAEBootHARTISAExtensions:BootHARTISAExtensions:sstc,ziBootHARTISAExtensions:sstc,zicntr,zihBootHARTISAExtensions:sstc,zicntr,zihpm,zicbBootHARTISAExtensions:sstc,zicntr,zihpm,zicboz,zicbBootHARTISAExtensions:sstc,zicntr,zihpm,zicboz,zicbom,sdtrBootHARBootHARTPMPBootHARTPMPGranuBootHARTPMPGranularityBootHARTPMPGranularity:2bitBootHARTPMBootHARTPMPAddresBootHARTPMPAddressBits:BootHABootHARTMHPMBootHARTMHPMInfoBootHARTDebugTrigBootHARTDebugTriggers:2tBootHARTMIBootHARTMIDELEGBootHARTMIDELEG:BootHARTMIDELEG:0x0000BootHARTMIDELEG:0x00000000000BootHARTMBootHARTMEDELEGBootHARTMEDELEG:WelcomWelcometoWelcometoFizzBuzzmssola:~/src/github.com/mssola/fbos@main$exit \ No newline at end of file +mssola:~/src/github.com/mssola/fbos@main$mssola:~/src/github.com/mssola/fbos@main$makemssola:~/src/github.com/mssola/fbos@main$makeqemuCCkernel/headCCkernel/mainCCkernel/printkCCkernel/sbiCCkernel/trapCClib/dtCClib/initrdCClib/stringLDfbos.elfOBJCOPYfbosCCusr/src/initLDusr/bin/initCCusr/src/fizzLDusr/bin/fizzCCusr/src/buzzLDusr/bin/buzzCCusr/src/fizzbuzzLDusr/bin/fizzbuzzCPIOusr/initramfs.cpioOpenSBIv1.5__________________/__\/____|_\__|||||_________|(___||_)|||||||'_\/_\'_\\___\|_<||||__|||_)|__/|||____)||_)|||_\____/|.__/\___|_||_|_____/|____/_____||||_|PlatformName:riscv-virtio,qemuPlatformFeatures:medelegPlatformHARTCount:1PlatformIPIDevice:aclint-mswiPlatformTimerDevice:aclint-mtimer@10000000HzPlatformConsoleDevice:uart8250PlatformHSMDevice:---PlatformPMUDevice:---PlatfoPlatformRebootDevice:syscon-rebootPlatformShutdownDevice:syscon-poweroffPlatformSuspendDevice:---PlatformCPPCDevice:---FirmwareBase:0x80000000FirmwFirmwareSizeFirmwareSize:327KBFirmwareRWOffset:0x40000FirmwareRWSize:71KBFirmwareHeapOffset:0x49000FirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),21KB(free)FirmwareScratchSize:4096B(total),416B(used),3680B(free)RuntimeSBIVersion:2.0Domain0NameDomain0Name:rootDomainDomain0BootHART:0Domain0HARTsDomain0HARTs:0*Domain0Region00Domain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,W)S/U:(R,W)Domain0RegioDomain0Region01:0x0000000010000000-0x0000000010000fffM:(I,R,W)S/U:(R,W)Domain0Region02Domain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,W)S/U:()Domain0Region03:0x0000000080040000-0x000000008005ffffM:(R,W)S/U:()Domain0Region04:0x0000000080000000-0x000000008003ffffM:(R,X)S/U:()Domain0Domain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,R,W)S/U:(R,W)Domain0Region06Domain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,W)S/U:(R,W)Domain0Region07:0x0000000000000000-0xffffffffffffffffM:()S/U:(R,W,X)Domain0NextAddress:0x0000000080200000Domain0NextArg1:0x0000000087e00000Domain0NextMode:S-modeDomain0SysReset:yesDomain0SysSuspend:yesBootBootHARTIDBootHARTID:0BootHARTDomain:rootBootHARTPrivVersion:v1.12BootHARTBaseISA:rv64imafdchBootHARTISAExtensions:sstc,zicntr,zihpm,zicboz,zicbom,sdtrig,svaduBootHARTPMPCount:16BootHARTPMPGranularity:2bitsBootHARTPMPAddressBits:54BootHABootHARTMHPMInfo:16(0x0007fff8)BootHARTDebugTriggers:2triggersBootHARTMIDELEG:0x0000000000001666BootHARTMEDELEG:0x0000000000f0b509WelcometoFizzBuzzOS!Runningon:riscv-virtio,qemufizzbuzzfizzbuzzQEMU:Terminatedmssola:~/src/github.com/mssola/fbos@main$mmssola:~/src/github.com/mssola/fbos@main$mamssola:~/src/github.com/mssola/fbos@main$makmssola:~/src/github.com/mssola/fbos@main$makeqmssola:~/src/github.com/mssola/fbos@main$makeqemssola:~/src/github.com/mssola/fbos@main$makeqem____/__\||||_____||||_________|(___||||||'_\||||'_\/_\'_\\___||__|||_)|||__|||_)|__/|||_||__|||_)|__/|||____)||_)\__\____/|.__/\_PlatformFeaturesPlatformFeatures:medPlatformHARTCouPlatformTimerDevice:aclint-PlatformTimerDevice:aclint-mtimer@1000PlatformConsolPlatformConsoleDevicePlatformConsoleDevice:uart8PlatformHSMDevicePlatformPMUDevicePlatformRebootPlatformRebootDevicPlatPlatformShPlatformShutdownDePlatformShutdownDevice:PlatformShutdownDevice:syscon-powePlatformPlatformSuspendDeviPlatformSuspendDevice:PlatformCPPCPlatformCPPCDevicePlatformCPPCDevice:-FirmwareBaseFirmwareBase:0x80000FirmwareSize:32FirmwarFirmwareRWOfFirmwareRWOffsetFirmwareRWOffset:FirmFirmwareHeaFirmwareHeapOffseFirmwareHeapOffsetFirmwaFirmwareHeapSFirmwareHeapSizeFirmwareHeapSize:35KB(totFirmwareHeapSize:35KB(total),2KBFirmwareHeapSize:35KB(total),2KB(reserFirmwareHeapSize:35KB(total),2KB(reserved),11KB(useFirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),21KFirmwareHeapSize:35KB(total),2KB(reserved),11KB(used),21KB(freFirmwareScraFirmwareScratchSizeFirmwareScratchSize:4096B(total),416BFirmwareScratchSize:4096B(total),416B(used)RuntimeRuntimeSBIVerRuntimeSBIVersionDomain0Name:Domain0BootHDomain0BootHARTDomain0HARTs:DomaDomain0RegDomain0Region00:0x00Domain0Region00:0x0000000000Domain0Region00:0x0000000000100000-0x0000000000100fffDomain0Region00:0x0000000000100000-0x0000000000100fffM:Domain0Region00:0x0000000000100000-0x0000000000100fffM:(IDomain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,W)S/Domain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,W)S/U:(RDomain0Region00:0x0000000000100000-0x0000000000100fffM:(I,R,W)S/U:(R,WDomaiDomain0Region01Domain0Region01:Domain0Region01:0x0000000010000000Domain0Region01:0x0000000010000000-0x000000Domain0Region01:0x0000000010000000-0x0000000010000Domain0Region01:0x0000000010000000-0x0000000010000fffM:(I,R,W)Domain0Region01:0x0000000010000000-0x0000000010000fffM:(I,R,W)S/U:(RDomain0Region02:0x0000000002000000-0Domain0Region02:0x0000000002000000-0x000000000Domain0Region02:0x0000000002000000-0x000000000200ffffM:(Domain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,WDomain0Region02:0x0000000002000000-0x000000000200ffffM:(I,R,W)S/U:Domain0RegiDomain0Region03Domain0Region03:0x000Domain0Region03:0x00000000800Domain0Region03:0x0000000080040000-Domain0Region03:0x0000000080040000-0x00000Domain0Region03:0x0000000080040000-0x000000008005fffDomain0RDomain0Region0Domain0Region04Domain0Region04:0x0Domain0Region04:0x0000000080Domain0Region04:0x0000000080000000Domain0Region04:0x0000000080000000-0x00000Domain0Region04:0x0000000080000000-0x000000008003Domain0Region04:0x0000000080000000-0x000000008003ffffMDomain0Region04:0x0000000080000000-0x000000008003ffffM:(RDomain0Region04:0x0000000080000000-0x000000008003ffffM:(R,X)S/UDomain0RegionDomain0Region05Domain0Region05:Domain0Region05:0x0000Domain0Region05:0x000000000c4Domain0Region05:0x000000000c400000-0x00Domain0Region05:0x000000000c400000-0x000000000Domain0Region05:0x000000000c400000-0x000000000c5fffffDomain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,Domain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,R,W)Domain0Region05:0x000000000c400000-0x000000000c5fffffM:(I,R,W)S/U:(Domain0ReDomain0Region06:0x0Domain0Region06:0x000000000Domain0Region06:0x000000000c000000Domain0Region06:0x000000000c000000-0x0000Domain0Region06:0x000000000c000000-0x000000000c3Domain0Region06:0x000000000c000000-0x000000000c3fffffM:Domain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,WDomain0Region06:0x000000000c000000-0x000000000c3fffffM:(I,R,W)S/U:Domain0NDomain0NextAddreDomain0NextAddressDomain0NextAddress:0x000Domain0NextAddress:0x0000000080Domain0NextDomain0NextArg1Domain0NextArg1:Domain0NextArg1:0x0000Domain0NextArg1:0x0000000087e0Domain0NextMoDomain0NextModeDomain0NextMode:Domain0NextMode:S-modDomain0SysReDomain0SysResetDomain0SysReset:yBootHARTBootHARBootHARTDomaBootHARTDomainBootHARTDomain:rBootHARTBBootHARTBaseISABootHARTBaseISA:BootHARTBaseISA:rv64imafdBootHARTISBootHARTISAExtensionsBootHARTISAExtensions:sstcBootHARTISAExtensions:sstc,zicnBootHARTISAExtensions:sstc,zicntrBootHARTISAExtensions:sstc,zicntr,zihpm,ziBootHARTISAExtensions:sstc,zicntr,zihpm,zicboBootHARTISAExtensions:sstc,zicntr,zihpm,zicboz,zicboBootHARTPMPCountBootHBootHARTPMPBootHARTPMPGranulBootHARTPMPGranularity:2BootHARTMHPBootHARTMHPMInfoBootHARTMHPMInfo:BootHARTMHPMInfo:16(0xBootHARTMHPMInfo:16(0x0007fff8BootHARTDebBootHARTDebugTriggeBootHARTDebugTriggers:2tBootHARTMEDELEBootHARTMEDELEGBootHARTMEDELEG:0x00000BootHARTMEDELEG:0x0000000000f0WelcoWelcometoFizzRunningRunningon:riscv-vmssola:~/src/github.com/mssola/fbos@main$exit \ No newline at end of file -- cgit v1.2.3