-
Notifications
You must be signed in to change notification settings - Fork 174
meta-zephyr-sdk: build custom SeaBIOS for QEMU #124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
you have the patch in the PR already which will go into the SDK meta-zephyr-sdk/recipes-devtools/qemu/files/0002-pc-bios-Update-SeaBIOS-to-skip-clearing-screen.patch Does the patch justify a git repo? We have other patches under meta-zephyr-sdk.. |
This patch is replacing the binary files. Not the actual source change to SeaBIOS.
Ideally we'd build SeaBIOS as part of |
oh ok, did not see that :)
Right, hopefully it will not pull all kind of dependencies. But that does not mean we should host the git repo for seabios, we can build it in the SDK with the patches from @dcpleung, right? |
|
I thought about building with the sdk, but I am not too familiar with Yocto and have no idea how to use the custom-built SeaBIOS in QEMU build. Or we could build SeaBIOS binaries and put them into different directory under sysroot, and point to those binaries in the build system. |
I wonder if we can pull something like the following in: |
6237f44 to
cee1e3f
Compare
|
Updated the PR to build SeaBIOS binaries and have QEMU pull them in before building. Used MD5SUM to verify files are actually the custom built binaries. |
|
Thanks for working to resolve this very annoying issue. I actually saw even more weird effects of this SeaBIOS screen initialization, specifically: after running such a QEMU session, "git add -p" (interactive add chunk by chunk) stopped working, specifically it just quit on first interactive prompt, kinda as if it was run as I can't say it happened 100% after each QEMU run (and I don't use |
|
Hm... I have never seen any issue with git after running QEMU. Let me see if I can reproduce it on my end. |
|
@nashif can you look at the shippable failure, not sure I understand it. Something w/the S3 upload. |
This adds a receipe to build SeaBIOS for use with QEMU, which includes a patch to avoid clearing screen and disabling line wrapping in serial console. This helps with looking at emulator outputs (from both running locally and sanitycheck) as clearing screen and disabling line wrapping affect developer terminal, requiring running 'reset' to make it useful again. The config files comes from QEMU. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
cee1e3f to
8365679
Compare
|
CI is passing now. Should be good to go. |
This adds a receipe to build SeaBIOS for use with QEMU,
which includes a patch to avoid clearing screen and
disabling line wrapping in serial console. This helps
with looking at emulator outputs (from both running
locally and sanitycheck) as clearing screen and disabling
line wrapping affect developer terminal, requiring
running 'reset' to make it useful again.
The config files comes from QEMU.
Fixes zephyrproject-rtos/zephyr#11717
The code can be found https://github.com/dcpleung/seabios/tree/zephyr