Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] where is my vmlinuz-3.10.7-gentoo?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Sat Feb 01, 2014 8:48 am    Post subject: [solved] where is my vmlinuz-3.10.7-gentoo? Reply with quote

After installed systemd, my menuentry in /boot/grub/grub.cfg has to be changed into
Code:

menuentry 'Gentoo write by myself UUID' --class gnu-linux --class gnu {
        root=hd0,2
        linux /boot/vmlinuz-3.10.7-gentoo-r1 root=UUID=671f9d17-5de7-4fe7-a6bf-f1096f4efe29 init=/usr/lib/systemd/systemd
}

according this websitehttp://wiki.gentoo.org/wiki/Systemd

However, in my /boot folder there is no file vmlinuz-3.10.7-gentoo-r1 but only vmlinuz which I copy from /usr/src/linux

and when excuting ls -l /usr/src/linux
Code:
lrwxrwxrwx 1 root root 22 Oct 22 00:38 /usr/src/linux -> linux-3.10.7-gentoo-r1


[1]I tried to rename vmlinuz-3.10.7-gentoo-r1 in menuentry to vmlinuz but the the boot hangs with notation:
Code:
Press any key to continue


[2]I also rename vmlinuz to vmlinuz-3.10.7-gentoo-r1 in /boot/ but still no luck.

So now how can I find the right vmlinuz-3.10.7-gentoo-r1 so that the system can be booted properly?


Last edited by diablo465 on Tue Feb 04, 2014 2:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
diablo465
Apprentice
Apprentice


Joined: 10 Sep 2013
Posts: 194

PostPosted: Sat Feb 01, 2014 4:04 pm    Post subject: Reply with quote

I found the solution.

first, select the kernel by

Code:
eselect kernel list

and
Code:
eselect kernel set 2


then configure your kernel by

Code:
cd /usr/src/linux

Code:
make menuconfig

Code:
make -j2


after that install modules and bzImage
Code:
make modules_install

Code:
make bzImage


To check how /usr/src/linux is linked to, one can execute
Code:
ls -l /usr/src/linux
lrwxrwxrwx 1 root root 20 Feb  2 00:57 /usr/src/linux -> linux-3.10.25-gentoo


now, the new kernel is stored in, say, /usr/src/linux/arch/x86_64/boot/bzImage (depending on the arch). One can copy the bzImage to /boot with a unique name e.g., bzImage-kernelversion-gentoo:

Code:
cp /usr/src/linux/arch/x86_64/arch/boot/bzImage /boot/bzImage-3.10.25-gentoo


then the last thing to do is to change the item in menuentry to bzImage-3.10.25-gentoo

reference: http://www.berkes.ca/guides/linux_kernel.html
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13974

PostPosted: Sat Feb 01, 2014 6:13 pm    Post subject: Reply with quote

You could instead run make install which would install the vmlinuz for you in $INSTALL_PATH/boot with the right name. That works even on non-x86 architectures, where your instructions require digging into an architecture-specific directory.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum