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

Request: kernel initrd support #392

Closed
retux opened this Issue Oct 2, 2013 · 8 comments

Comments

Projects
None yet
4 participants
@retux

retux commented Oct 2, 2013

Would you please consider including this option in stock kernel build?

CONFIG_BLK_DEV_INITRD=y

initrd is a very useful feature, i.e. for using uuid ID in cmdline.txt.

Thanks!

@popcornmix

This comment has been minimized.

Show comment
Hide comment
@popcornmix

popcornmix Oct 2, 2013

Collaborator

Can you determine the memory cost of this option?
i.e. after booting from default kernel what does
free -h
report? After enabling that option what does it report?

Collaborator

popcornmix commented Oct 2, 2013

Can you determine the memory cost of this option?
i.e. after booting from default kernel what does
free -h
report? After enabling that option what does it report?

@retux

This comment has been minimized.

Show comment
Hide comment
@retux

retux Oct 2, 2013

kernel using initrd:

$ free -h
total used free shared buffers cached
Mem: 438M 52M 385M 0B 6,6M 25M
-/+ buffers/cache: 21M 417M
Swap: 99M 0B 99M

Reported by dmesg:

[ 1.049995] Trying to unpack rootfs image as initramfs...
[ 1.501765] Freeing initrd memory: 3456K

kernel not using initrd:

$ zcat /proc/config.gz | grep -i initrd

CONFIG_BLK_DEV_INITRD is not set

pi@raspberrypi ~ $ dmesg | grep -i initr
pi@raspberrypi ~ $

$ free -h
total used free shared buffers cached
Mem: 438M 51M 386M 0B 7.9M 23M
-/+ buffers/cache: 20M 417M
Swap: 99M 0B 99M

It seems there's no big differences in terms of memory usage.

retux commented Oct 2, 2013

kernel using initrd:

$ free -h
total used free shared buffers cached
Mem: 438M 52M 385M 0B 6,6M 25M
-/+ buffers/cache: 21M 417M
Swap: 99M 0B 99M

Reported by dmesg:

[ 1.049995] Trying to unpack rootfs image as initramfs...
[ 1.501765] Freeing initrd memory: 3456K

kernel not using initrd:

$ zcat /proc/config.gz | grep -i initrd

CONFIG_BLK_DEV_INITRD is not set

pi@raspberrypi ~ $ dmesg | grep -i initr
pi@raspberrypi ~ $

$ free -h
total used free shared buffers cached
Mem: 438M 51M 386M 0B 7.9M 23M
-/+ buffers/cache: 20M 417M
Swap: 99M 0B 99M

It seems there's no big differences in terms of memory usage.

@popcornmix

This comment has been minimized.

Show comment
Hide comment
@popcornmix

popcornmix Oct 7, 2013

Collaborator

Can you test next firmware branch - should be added.
sudo BRANCH=next rpi-update

Collaborator

popcornmix commented Oct 7, 2013

Can you test next firmware branch - should be added.
sudo BRANCH=next rpi-update

@retux

This comment has been minimized.

Show comment
Hide comment
@retux

retux Oct 8, 2013

cool! I'll test it as soon as possible.
I tested and everything initrd related works just fine.
Thanks a lot!

retux commented Oct 8, 2013

cool! I'll test it as soon as possible.
I tested and everything initrd related works just fine.
Thanks a lot!

@evilpower

This comment has been minimized.

Show comment
Hide comment
@evilpower

evilpower Oct 24, 2013

This was the only reason why I was compiling my own kernels for the past year. With initrd enabled and a simple initramfs we can set up root fs as btrfs or f2fs or anything else that's built in the kernel with a breeze. I hope this gets carried over to the master branch as well. Thank you!

evilpower commented Oct 24, 2013

This was the only reason why I was compiling my own kernels for the past year. With initrd enabled and a simple initramfs we can set up root fs as btrfs or f2fs or anything else that's built in the kernel with a breeze. I hope this gets carried over to the master branch as well. Thank you!

@retux

This comment has been minimized.

Show comment
Hide comment
@retux

retux Nov 5, 2013

lurch,
Yes, it does. I'm using UUID through cmdline.txt, but in order to use it is required to create an initial ram disk (initrd). That's why adding initrd support to the stock kernel has been very useful.
Now initrd support is included in the stock kernel using initrd and all the features it allows is much easier.

retux commented Nov 5, 2013

lurch,
Yes, it does. I'm using UUID through cmdline.txt, but in order to use it is required to create an initial ram disk (initrd). That's why adding initrd support to the stock kernel has been very useful.
Now initrd support is included in the stock kernel using initrd and all the features it allows is much easier.

@lurch

This comment has been minimized.

Show comment
Hide comment
@lurch

lurch Nov 7, 2013

In that case, maybe both this bug and your other one I linked to ( raspberrypi/firmware#209 ) should both be closed? ;-)

lurch commented Nov 7, 2013

In that case, maybe both this bug and your other one I linked to ( raspberrypi/firmware#209 ) should both be closed? ;-)

@retux retux closed this Nov 7, 2013

@retux

This comment has been minimized.

Show comment
Hide comment
@retux

retux Nov 7, 2013

You're right. Sorry I just closed both issues.
Regards,
Matías

El 06/11/13 21:43, Andrew Scheller escribió:

In that case, maybe both this bug and your other one I linked to (
raspberrypi/firmware#209
raspberrypi/firmware#209 ) should both be
closed? ;-)


Reply to this email directly or view it on GitHub
#392 (comment).

retux commented Nov 7, 2013

You're right. Sorry I just closed both issues.
Regards,
Matías

El 06/11/13 21:43, Andrew Scheller escribió:

In that case, maybe both this bug and your other one I linked to (
raspberrypi/firmware#209
raspberrypi/firmware#209 ) should both be
closed? ;-)


Reply to this email directly or view it on GitHub
#392 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment