-
Notifications
You must be signed in to change notification settings - Fork 47
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
Implement the loading of initrd image #25
Conversation
Reservation of 32MiB introduces about 20~30 seconds of extra booting time on my The user may find the OS stop at the following line for a while:
One dirty fix for short term might be shrinking the size of the |
Let's set 8 MB by default and introduce build-time option to specify the memory layout. |
In this commit, the `rootfs.cpio` provided by the buildroot can be passed to semu with -i option. In order to achieve such function, the following modifcations are conducted: 1. Reserve 8 MiB of memory at the end of the guest OS before the dtb region, and map initrd image to the new reserved area. 2. Adjust device tree source by specifying `initrd-start` and `initrd-end`. 3. Support passing initrd image with -i option.
This commit forces the Linux kernel to load initrd image from external environment.
This pull request is for solving #24, where the modifications mainly include:
initrd-start
andinitrd-end
properties.initramfs
by default.build-image.sh
to copy therootfs.cpio
file frombuildroot/
to project's root directory.