You are not logged in.

#1 2012-12-22 21:17:17

mogeb
Member
Registered: 2012-12-22
Posts: 5

Can't boot vanilla kernel

Hey everyone,
I am new to Arch so far it's been great. I am encountering a problem when it comes to booting into a kernel that i built myself from the mainline (kernel.org).
The steps i took:
- get the kernel source
- make , make modules_install
- make install

This last step didnt work as it said that i didnt have LILO installed. So I removed grub and installed lilo, it then worked. I ran mkinitcpio as suggested on the wiki page:
https://wiki.archlinux.org/index.php/Ke … raditional

When I start my computer I can see the new kernel entry, but if I select to boot from it, It gets nowhere: i see lots of messages and then it stops.

I am used to building kernels on Ubuntu, as you just have to run mkinitramfs after make install and it works. What am I missing here?
Thanks!

Offline

#2 2012-12-22 21:24:50

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Can't boot vanilla kernel


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2012-12-23 01:09:53

mogeb
Member
Registered: 2012-12-22
Posts: 5

Re: Can't boot vanilla kernel

Thanks for your reply. But I really need to compile the source code as it is, including run makeconfig and being able to modify the code. Is linux-mainline the way to do so?

Offline

#4 2012-12-23 02:36:49

opensrcrox
Member
Registered: 2012-08-10
Posts: 32

Re: Can't boot vanilla kernel

Why do you suppose using abs/makepkg prevents you from "compiling source code as is", and modifying things?
Take a look at the abs linux PKGBUILD. You will see that it gives you plenty of options.
Makepkg ( as the name implies) creates a package that can easily be installed via pacman ( and obviously tracked by it.)

Offline

#5 2012-12-23 04:45:40

mogeb
Member
Registered: 2012-12-22
Posts: 5

Re: Can't boot vanilla kernel

Ok so I tried this approach:
$> yaourt -S linux-mainline
Kernel source is now /usr/src/linux-3.7.0-1-mainline
$> make menuconfig
$> make
scripts/Makefile.build:44: /usr/src/linux-3.7.0-1-mainline/arch/x86/syscalls/Makefile: No such file or directory
make[1]: *** No rule to make target `/usr/src/linux-3.7.0-1-mainline/arch/x86/syscalls/Makefile'.  Stop.
make: *** [archheaders] Error 2

The folder arch/x86/syscalls isn't there. I read the documentation about ABS and PKGBUILD, but i still can't get it to work.
And another question, does the package linux-mainline only gets the source relevant to the architecture as if you were installing a binary? I don't think so, but the folder arch/ only contains x86 and arm64 which is weird.
Thanks!

Offline

#6 2012-12-23 05:37:10

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: Can't boot vanilla kernel

mogeb wrote:

When I start my computer I can see the new kernel entry, but if I select to boot from it, It gets nowhere: i see lots of messages and then it stops.

Some details here might be nice.

Offline

#7 2012-12-23 06:03:35

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Can't boot vanilla kernel

I would remove yaourt from the equation, it isn't doing you any favours here.


Not an installation issue, moving to Kernel and Hardware...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#8 2012-12-23 06:26:46

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: Can't boot vanilla kernel

A man arrives at a hotel. The man is shown to a room on the second floor with a marvellous view of the adjoining gardens. Seeing this, he naturally desires to take a stroll through them. He thus opens the window and jumps out, injuring his leg in the fall. He awakens back in his room, surrounded by the management and other guests. He explains to them that he wishes to stroll through the gardens and asks how he might avoid injury when jumping through the window. They in turn inform him that down the hallway there are stairs which lead to a door through which he may enter the gardens. The man states that he is not interested in the stairs, only the gardens. After further insistence, he understands that the stairs may lead him to the gardens. He limps over to them and then violently throws himself down the first flight, before climbing over the railing and falling to the bottom of the stairwell, injuring himself further. This time he has not even made it to the gardens before he is brought back to his room.

At this point some of the other guests have abandoned their attempts to explain the merits of the stairs and have simply decided to unlatch the window and allow the man to determine this for himself.

Last edited by Xyne (2012-12-23 06:28:44)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#9 2012-12-23 06:51:24

mogeb
Member
Registered: 2012-12-22
Posts: 5

Re: Can't boot vanilla kernel

Xyne wrote:

A man arrives at a hotel. The man is shown to a room on the second floor with a marvellous view of the adjoining gardens. Seeing this, he naturally desires to take a stroll through them. He thus opens the window and jumps out, injuring his leg in the fall. He awakens back in his room, surrounded by the management and other guests. He explains to them that he wishes to stroll through the gardens and asks how he might avoid injury when jumping through the window. They in turn inform him that down the hallway there are stairs which lead to a door through which he may enter the gardens. The man states that he is not interested in the stairs, only the gardens. After further insistence, he understands that the stairs may lead him to the gardens. He limps over to them and then violently throws himself down the first flight, before climbing over the railing and falling to the bottom of the stairwell, injuring himself further. This time he has not even made it to the gardens before he is brought back to his room.

At this point some of the other guests have abandoned their attempts to explain the merits of the stairs and have simply decided to unlatch the window and allow the man to determine this for himself.

ok

Offline

#10 2012-12-23 06:56:58

mogeb
Member
Registered: 2012-12-22
Posts: 5

Re: Can't boot vanilla kernel

So I followed the steps described at https://wiki.archlinux.org/index.php/Cu … n_with_ABS and the process is getting more clear, so thanks.
The kernel version described in PKGBUILD is 3.6, but I need at least the 3.7.
The steps described in the above link mention modifying the PKGBUILD for the build() function mainly. Is it a good idea to change also the version from 3.6 to 3.7 within the file? I tried it but it said that the file didn't pass the check test. I'm guessing it's because of the md5sum that is expecting a 3.6 kernel.

Thanks again.

Offline

#11 2012-12-23 12:55:52

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,097

Re: Can't boot vanilla kernel

The pkgbuild in [testing] is for 3.7.1

Or you could just grab linux-git from aur if you really want to live on the edge....

Or you can bump linux-mainline from aur to 3.8 rc1

But anyway, if you are just after 3.7, why not just install the package from testing?

Last edited by Mr.Elendig (2012-12-23 12:56:49)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#12 2012-12-23 13:08:26

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Can't boot vanilla kernel

Xyne wrote:

A man arrives at a hotel. The man is shown to a room on the second floor with a marvellous view of the adjoining gardens. Seeing this, he naturally desires to take a stroll through them. He thus opens the window and jumps out, injuring his leg in the fall. He awakens back in his room, surrounded by the management and other guests. He explains to them that he wishes to stroll through the gardens and asks how he might avoid injury when jumping through the window. They in turn inform him that down the hallway there are stairs which lead to a door through which he may enter the gardens. The man states that he is not interested in the stairs, only the gardens. After further insistence, he understands that the stairs may lead him to the gardens. He limps over to them and then violently throws himself down the first flight, before climbing over the railing and falling to the bottom of the stairwell, injuring himself further. This time he has not even made it to the gardens before he is brought back to his room.

At this point some of the other guests have abandoned their attempts to explain the merits of the stairs and have simply decided to unlatch the window and allow the man to determine this for himself.

Brilliant!  Loved it.

Offline

#13 2012-12-23 13:35:21

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Can't boot vanilla kernel

mogeb wrote:

I tried it but it said that the file didn't pass the check test. I'm guessing it's because of the md5sum that is expecting a 3.6 kernel.

man makepkg wrote:
makepkg -g >> PKGBUILD

See also:

Creating Packages
Makepkg


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

Board footer

Powered by FluxBB