Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] 2006.1 PPC failure: Missing default kernel config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
yther
Apprentice
Apprentice


Joined: 25 Oct 2002
Posts: 151
Location: Charlotte, NC (USA)

PostPosted: Tue Sep 05, 2006 1:58 pm    Post subject: [Solved] 2006.1 PPC failure: Missing default kernel config Reply with quote

OK, I seached the FAQ, my friend Mr. Zarro Boogs, and indeed Google for this; the only hit I got was from a year ago on gentoo-laptop list. (The person solved it but stated that he didn't know how.)

I am using the 2006.1 Universal LiveCD; I have installed the G4 stage3, and downloaded the G4 packages "CD" image, though it's big enough now that I had to burn it to a DVD. :)

Attempting to install on Power Mac G4, I am at step 7.c of installation process. When I enter /usr/src/linux and attempt "make defconfig", I get this:
Code:
(chroot) livecd linux # make defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/mconf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/lex.zconf.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
COPYING CREDITS Documentation Kbuild MAINTAINERS MAINTAINERS.orig Makefile README REPORTING-BUGS arch block crypto drivers fs include init ipc kernel lib mm net patches.txt scripts security sound usr Default configuration is based on ppc_defconfig
***
*** Can't find default configuration "arch/powerpc/configs/ppc_defconfig"!
***
make[1]: *** [defconfig] Error 1
make: *** [defconfig] Error 2

Sure enough, it's not there:
Code:
(chroot) livecd linux # ls arch/powerpc/configs
cell_defconfig     maple_defconfig        pmac32_defconfig
g5_defconfig       mpc834x_sys_defconfig  ppc64_defconfig
iseries_defconfig  mpc8540_ads_defconfig  pseries_defconfig

It also isn't in arch/ppc/configs.

Further:
Code:
(chroot) livecd linux # make mrproper
awk: cmd. line:1: fatal: cannot open file `/usr/src/linux-2.6.17-gentoo-r7/include/linux/version.h' for reading (No such file or directory)
  CLEAN   scripts/basic
  CLEAN   scripts/kconfig


:?:

Could it be, something needed a wee bit more testing before being released into the wild? ;)

Anyway, I'm going to try the 2.6.17-r5 package from the DVD (yay for "mount -o loop") and see if that works any better. If that doesn't work, I'll copy in a config I saved from before I wiped the drive, modify it to try to get all the hardened crap out of it (long story), and see what happens. (If it does, I'll file a report because something's broken with -r7.)

If someone has an idea about what's going on, I'd love to hear it!


Last edited by yther on Wed Sep 06, 2006 6:55 am; edited 2 times in total
Back to top
View user's profile Send private message
yther
Apprentice
Apprentice


Joined: 25 Oct 2002
Posts: 151
Location: Charlotte, NC (USA)

PostPosted: Tue Sep 05, 2006 2:09 pm    Post subject: Fyi... Reply with quote

Update: No better with -r5.
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Sep 05, 2006 5:04 pm    Post subject: Reply with quote

I'm not sure if this would be a bug in gentoo-sources (I use vanilla-sources), but why would you need to use "make defconfig" ?

I normally just start off with "make menuconfig".
Back to top
View user's profile Send private message
limn
l33t
l33t


Joined: 13 May 2005
Posts: 997

PostPosted: Tue Sep 05, 2006 5:51 pm    Post subject: Reply with quote

This is an upstream change. I believe make defconfig using uname to create the *_defconfig string and there is, as you point out, no such file
It appears the handbook has been corrected to have pmac32_defconfig.
Back to top
View user's profile Send private message
yther
Apprentice
Apprentice


Joined: 25 Oct 2002
Posts: 151
Location: Charlotte, NC (USA)

PostPosted: Tue Sep 05, 2006 5:54 pm    Post subject: Reply with quote

cyrillic wrote:
I'm not sure if this would be a bug in gentoo-sources (I use vanilla-sources), but why would you need to use "make defconfig" ?

I normally just start off with "make menuconfig".

Well, I was following the instructions... ;)

Seriously, it's so long since I did a full installation, that I've forgotten a lot of the stuff. So, I brought up the Handbook on this box, booted up enough to get sshd running, and went ahead. Since it said, "Here, use this to install the default configuration and modify it as you need," that's what I tried.

It may be a bug in the source package... when "make mrproper" fails (well, it didn't exactly fail, but threw an error anyway) I start worrying.

Anyway, modifying my old config at least got me a kernel that finished compiling, so in a little while I'll reboot and see what happens.

Edit: Heh... yep, limn, apparently they changed it in the last few hours. :P
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Tue Sep 05, 2006 6:23 pm    Post subject: Reply with quote

Moved from Installing Gentoo to Gentoo on PPC.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Sep 05, 2006 9:55 pm    Post subject: Reply with quote

Sorry about that. It was actually changed in the handbook, but was overwritten when I did the updates for 2006.1. Oops. Anyway, someone else pointed it out to me this morning so I fixed it right away. :) The issue is that with 2.6.15 and earlier, "make defconfig" was actually the right thing to do (2006.0 shipped with 2.6.15). In 2.6.16, because of the merge between the ppc32 and ppc64 headers, the defconfig command was changed, resulting in this required change.

Anyway, enough history, it's fixed now. Feel free to let me know if there's anything else in the handbook that you think needs fixing. :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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