cloudius-systems / osv

OSv, a new operating system for the cloud.
osv.io
Other
4.11k stars 604 forks source link

Include loader.elf artifact in future releases #1118

Open paulreimer opened 3 years ago

paulreimer commented 3 years ago

Including the loader.elf file as an artifact in future releases would help for debugging images based on the released osv-loader.qemu. scripts/loader.py could also be helpful since it is somewhat standalone and used with gdb as well.

wkozaczuk commented 3 years ago

The loader.elf is quite large (~100MB) and given we publish and upload the artifacts (like osv-loader.qemu which in reality is loader-stripped.elf) for each commit to github, we need to be mindful that is feasible. The gzipped version is around ~30MB so maybe we can start doing it.

paulreimer commented 3 years ago

Fair enough! I'm (quite new to the ecosystem and) trying to debug a capstan project build using the default image. IIUC I need the loader.elf used (I assume stripped is fine if just trying to debug my application and I'm not having any OSv problems?)

Is there a handy way to get that out of the osv-loader.qemu file or other artifacts? I've had some troubles trying to mount the images myself with manual qemu commands. If there's a workflow for debugging existing capstan images, that would solve my issue and the extra artifact wouldn't be necessary in that case.