LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 11-15-2005, 06:13 PM   #1
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Rep: Reputation: 15
build kernel failed


I followed instructions on http://newbiedoc.sourceforge.net/sys...ILD-KERNEL-PKG
as closely as I could.

I could not make a boot floppy, because when I typed
mkboot /boot/vmlinuz-xxx, it says vmlinuz-xxx can not be read.

then when I ran
fakeroot make-kpkg clean,
it ran into permission problem.
so I ran the make-kpkg commands as root.

the new kernel-image.xxxx.deb was built. when I reboot, it stops at

can not open root device "hda1"

could someone tell me how to save this build? I don't remember if hda1 was the / partition. how do I find out? is that supposed to be the root device? hda is the correct disk drive though.
 
Old 11-15-2005, 10:33 PM   #2
nonzero
Member
 
Registered: Feb 2005
Distribution: Debian FC4 LFS Slackware
Posts: 174

Rep: Reputation: 31
What was your make-kpkg command to make kernel-image.deb?

nz
 
Old 11-15-2005, 10:58 PM   #3
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Original Poster
Rep: Reputation: 15
make-kpkg --append-to-version=.051115 kernel-image

as root!
 
Old 11-16-2005, 02:00 AM   #4
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
I think (correct me if I'm wrong) what is recommend is to create a special user (dummy), put it in a new group (src).


Code:
su
addgroup src
adduser --ingroup src dummy

cd /usr/src
chown -R dummy:src linux-2.6.12.3
chown dummy:src .
chmod -R g+s linux-2.6.12.3

su dummy
cd /usr/src
ln -s linux-2.6.12.3 linux
cd linux

fakeroot make-kpkg clean && fakeroot make-kpkg --append-to-version=.051115 kernel-image

you should have your new kernel in /usr/src

su
cd /usr/src
dpkg -i kernel-image-2.6.12.3.051115.deb
 
Old 11-16-2005, 02:36 PM   #5
bhomass
Member
 
Registered: Nov 2005
Posts: 69

Original Poster
Rep: Reputation: 15
ok found why the permission error. fakeroot make-kpkg clean ran fine.

make-kpkg kernel-image ran thru fine too. no error.

but on reboot, the same error. the exact error message is

VFS: Cannot open root device "hda1" or unknow-block (0,0)

I think I found the answer on
http://kerneltrap.org/node/970

it appear to me that adding --initrd in make-kpkg fixed it.

now the newly built kernel boots.

wonderful!

Last edited by bhomass; 11-18-2005 at 02:40 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
failed to build linux-2.6.10 cyu021 Linux - Software 1 11-21-2005 09:32 AM
kernel-source-2.6.5-7.src.rpm requires kernel-dummy to build!? fizzdandantilus SUSE / openSUSE 5 12-02-2004 12:48 PM
Garnome Failed to build gordingin Linux - Software 3 10-12-2004 04:31 AM
Garnome Failed to build gordingin Linux - Newbie 1 10-07-2004 03:54 PM
New FAQ topic: Should I edit my kernel configuration?/Should I build a custom kernel? chort *BSD 10 09-10-2004 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration