Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 02-01-2005, 03:41 PM   #1
Registered: Apr 2004
Posts: 42

Rep: Reputation: 15
build kernel with make-kpkg wrong processor type


I just build a kernel 2.6.10 using make-kpkg.
Everything went fine, except that i have a athlon cpu (and of course i tilled this on the processor type) and the package built by make-kpkg has the 396 suffix...

What's wrong with it?

Here is the beginning og the compiling process:

make-kpkg -rev bla.1 kernel_image
/usr/bin/make \
ARCH=i386 oldconfig
make[1]: Entering directory `/usr/src/linux-2.6.10'
scripts/kconfig/conf -o arch/i386/Kconfig

and this :

* Processor type and features
Subarchitecture Type
> 1. PC-compatible (X86_PC)
2. AMD Elan (X86_ELAN)
3. Voyager (NCR) (X86_VOYAGER)
4. NUMAQ (IBM/Sequent) (X86_NUMAQ)
5. SGI 320/540 (Visual Workstation) (X86_VISWS)
choice[1-5]: 1
Processor family
1. 386 (M386)
2. 486 (M486)
3. 586/K5/5x86/6x86/6x86MX (M586)
4. Pentium-Classic (M586TSC)
5. Pentium-MMX (M586MMX)
6. Pentium-Pro (M686)
7. Pentium-II/Celeron(pre-Coppermine) (MPENTIUMII)
8. Pentium-III/Celeron(Coppermine)/Pentium-III Xeon (MPENTIUMIII)
9. Pentium M (MPENTIUMM)
10. Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon (MPENTIUM4)
11. K6/K6-II/K6-III (MK6)
> 12. Athlon/Duron/K7 (MK7)

Where does make-kpkg get this 386 variable?
In the man, it speaks about setting ARCH variable but only for crosscompiling. I also says that the processor type should be autamically found...

Old 02-01-2005, 05:14 PM   #2
Senior Member
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,247

Rep: Reputation: 78
The package you create automatically has "_10.00.Custom_i386" appended to it, even if you selected 586, 686, k7, etc. as the processor type. It doesn't mean anything and it doesn't show up on the kernel name. For example, my package name is:
and uname -r gives:
and if I check my configuration, it is configured for a k7 processor.
Old 02-01-2005, 05:23 PM   #3
Registered: Apr 2004
Posts: 42

Original Poster
Rep: Reputation: 15

i was just wondering why it does't end up with
as you can find it onto the debian package for k7 you can get on the official testing repository.....

I tried to pass option

as it says in the manpage : it should add the subarchitecture in the package name but it didn't change anything for me...

Anyway, i gonna install it and test it.

Old 02-01-2005, 06:04 PM   #4
Registered: Apr 2004
Posts: 42

Original Poster
Rep: Reputation: 15

Kernel panic!

not syncing: VFS: unable to mount root fs on unknown block (0,0)

I'm tired, i'm going to sleep

Old 02-03-2005, 11:14 PM   #5
Registered: Apr 2004
Location: Singapore
Distribution: Debian Sarge/Sid
Posts: 52

Rep: Reputation: 15
Hmph, you have to compile using make-kpkg and create the initrd as well. Debian uses initrd to boot (it's a ramdisk where it loads the drivers, especially for the filesystems). You can try compiling the kernel with built-in (not module) support for whatever filesystems you are using for root partition (ext2, ext3, reiser?).

Since I haven't tried the above step myself, you can always read the sticky topic on Debian forum here (the one about compiling Linux kernel). It shows the crucial steps to compile kernel with initrd for debian. And it works with mine! =)



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Kernel compile fails with make-kpkg, not with make cspos Debian 37 11-09-2005 09:11 AM
Kernel make-kpkg error TaNeK Debian 7 01-09-2005 12:24 PM
make-kpkg not working, so no kernel includes genixpro Linux - Hardware 3 09-14-2004 06:56 PM
"make-kpkg --revision=foo.1.0 kernel_image" gives some errors (kernel 2.6.3) Duukkis Debian 14 05-23-2004 03:58 AM
Need some advice on upgrading kernel via make-kpkg davidas Debian 4 04-07-2004 07:02 PM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:20 AM.

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