Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to increase the size of the vmalloc region from the default value, and pass vmalloc= as a command line parameter while booting. I am booting a uImage. In which file do I need to add the new vmalloc command line parameter so that it is known to the kernel at boot time?

share|improve this question

migrated from stackoverflow.com Jul 6 '12 at 4:06

This question came from our site for professional and enthusiast programmers.

2  
A uImage... are you on an ARM system? Which bootloader are you using? –  imm Jul 5 '12 at 1:54
    
@imm is right, this isn't a "linux" question. The answer depends entirely on the bootloader in use. –  Andy Ross Jul 5 '12 at 4:13
add comment

1 Answer

If you are using Lilo as a bootloader, edit the relevant part of /etc/lilo.conf to look something like this:

image=/vmlinuz
        label=Linux
        append="vmalloc=foo"
        initrd=/initrd.img
        read-only
        root=/dev/sda1

Then, run lilo(8) to reinstall the bootloader with the new parameter.

Of course, I cannot tell you exactly how your /etc/lilo.conf should look, since this depends on the overall configuration of your system, but the interesting line is the one that reads append=. You can use such a line to pass any desired boot parameter to the kernel.

(If you prefer Grub as a bootloader, this is fine, but someone else must answer your question in that case, for I do not happen to use Grub.)

If you just want to try your vmalloc=foo for one boot, rather than to install it persistently, you can simply type vmalloc=foo or (assuming that you have labeled your kernel as "Linux") Linux vmalloc=foo at the boot prompt. The only trick is getting to the boot prompt, which your bootloader may be configured to suppress. Try holding down the shift key at boot time, which may prevent the bootloader from suppressing the prompt.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.