Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-28 Thread waltdnes
On Mon, Oct 26, 2009 at 09:10:33AM +, Neil Bothwick wrote

 That's a correct assumption. The assumption about which options you don't
 need may not have been so correct. It's safer to start with a bloated but
 working kernel and whittle it down gradually.

  And keep backup copies of each working .config file as you go merrily
whittling away, so you can fall back to something other than back to
square 1.

-- 
Walter Dnes waltd...@waltdnes.org



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-28 Thread Maxim Wexler
On 10/26/09, Neil Bothwick n...@digimed.co.uk wrote:
 On Sun, 25 Oct 2009 22:52:26 -0600, Maxim Wexler wrote:

  Could be over-zealous whittling. Why not use the Live DVD .config
  unchanged?


OK, done. Crashed. Almost identical to the first post in this thread.



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-28 Thread Maxim Wexler

   And keep backup copies of each working .config file as you go merrily
 whittling away, so you can fall back to something other than back to
 square 1.


I keep all my spares in /boot/safe.

mw



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-26 Thread Neil Bothwick
On Sun, 25 Oct 2009 22:52:26 -0600, Maxim Wexler wrote:

  Could be over-zealous whittling. Why not use the Live DVD .config
  unchanged?  
 
 I assumed there was no need for a 1001 modules for hardware i don't
 have.

That's a correct assumption. The assumption about which options you don't
need may not have been so correct. It's safer to start with a bloated but
working kernel and whittle it down gradually.


-- 
Neil Bothwick

Aibohphobia: an irrational fear of palindromes.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-25 Thread Maxim Wexler

 Could be over-zealous whittling. Why not use the Live DVD .config
 unchanged?

I assumed there was no need for a 1001 modules for hardware i don't
have. But there's still some things that need sorting, so it may come
to that.



Re: [gentoo-user] Re: kernel panic -- finding proper config diff - RESOLVED

2009-10-24 Thread Maxim Wexler
fyi, sound card problems when updating to 2.6.30 seem to be common.
Typically the boot msg is something like unknown hardware
initializing by guess method

The fix seem to be just to run alsaconf and follow the prompts.

On 10/23/09, Maxim Wexler maxim.wex...@gmail.com wrote:

 Well, whatever changes you made to .config fixed the original panic,
 so I'd start by diff'ing the first .config with the new .config (or

 After some more tweaking 2.6.30-r7 boots successfully, except for an
 error with the sound card famous which should be easy to fix /last
 words

 mw
 .




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Neil Bothwick
On Fri, 23 Oct 2009 22:05:19 -0600, Maxim Wexler wrote:

 900a

[tons of bottom quoting snipped]

I'm sure my 900 had working cursor and delete keys.


-- 
Neil Bothwick

There is so much sand in Northern Africa that if it were spread out it
would completely cover the Sahara Desert.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Neil Bothwick
On Fri, 23 Oct 2009 15:57:10 -0600, Maxim Wexler wrote:

 Since LiveDvD-10.1 boots, albeit buggily, on the netbook. I tried to
 use the kernel config provided with it. I ran make oldconfig then
 opened up the menu and whittled away the extraneous modules, built the
 new kernel, installed it and rebooted. This time, after a flurry of
 red exclamation points, it reached the login and crashed there.

Could be over-zealous whittling. Why not use the Live DVD .config
unchanged?


-- 
Neil Bothwick

We've all heard that a million monkeys banging on a million
typewriters will eventually reproduce the works of Shakespeare.
Now, thanks to the Internet, we know this is not true.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Stroller


On 22 Oct 2009, at 19:50, Alan McKinnon wrote:

On Thursday 22 October 2009 20:17:46 Maxim Wexler wrote:

Why not copy over the .29 config and run make oldconfig?


I thought of that, but isn't there too much difference in the
versions? I read somewhere that taking to big a leap between versions
is unsafe. Not to mention the great whack of new options. If you do a
diff -y between the two configs there are lots of gaps.



That's version jumps like 2.4 to 2.6

The 2.6 development model is small incremental steps, so the odds  
are always
in your favour that it will work just fine. Occasionally you might  
find two
versions that don't like to play nicely with oldconfig but that  
isn't the

norm.

FWIW, I haven't encountered a single problem with the entire 2.6  
range.


There was a change between 2.6.x and 2.6.x+1 where the whole .config  
was rearranged and `make oldconfig` no longer worked. It was a while  
ago, so maybe you don't recall it. I think x was circa 22 or so. It  
was discussed on here at the time, IIRC, and caused filesystems such   
as ext2 (at least) to be unselected if you just ran `make oldconfig`.


Stroller.




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-23 Thread Maxim Wexler
not an idea really but further experience

Since LiveDvD-10.1 boots, albeit buggily, on the netbook. I tried to
use the kernel config provided with it. I ran make oldconfig then
opened up the menu and whittled away the extraneous modules, built the
new kernel, installed it and rebooted. This time, after a flurry of
red exclamation points, it reached the login and crashed there.

Is it feasible that I should go back in and compile in that kernel log
option, what's it called? Then after it crashes, reboot into the
working kernel, and see if that log has been created?  Hey, I guess
that counts as an idea :)

BTW, the major problem with the LiveDvD is the tendency for the
syslog(?) console to bleed into all the other consoles -- messages
just popped onto the screen.

mw

On 10/23/09, walt w41...@gmail.com wrote:
 On 10/22/2009 04:31 PM, walt wrote:
 On 10/21/2009 11:25 AM, Maxim Wexler wrote:

 The kernel panicked. The relevant messages are:

 ...
 VFS: Mounted root (ext2 filesystem) readonly on device 8:1,
 Freeing unused kernel memory: 276k freed
 Warning: unable to open an initial console

  ...I don't know if that warning is important.

 Apparently it is important.  I just discovered /var/log/kern.log,
 which logs things that happen even before / is mounted.

 Here is the relevant part:

 Oct 23 08:18:39 k2 kernel: EXT3-fs: mounted filesystem with writeback data
 mode.
 Oct 23 08:18:39 k2 kernel: VFS: Mounted root (ext3 filesystem) readonly on
 device 8:7.
 Oct 23 08:18:39 k2 kernel: Freeing unused kernel memory: 256k freed
 Oct 23 08:18:39 k2 kernel: kjournald starting.  Commit interval 5 seconds
 Oct 23 08:18:39 k2 kernel: udev: starting version 141

 No such warning for me.  The question is why not?  Any ideas?






Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-23 Thread Richard Marza


- Original Message - 
From: walt w41...@gmail.com

To: gentoo-user@lists.gentoo.org
Sent: Friday, October 23, 2009 6:54 PM
Subject: [gentoo-user] Re: kernel panic -- finding proper config diff



On 10/23/2009 02:57 PM, Maxim Wexler wrote:

not an idea really but further experience

Since LiveDvD-10.1 boots, albeit buggily, on the netbook. I tried to
use the kernel config provided with it. I ran make oldconfig then
opened up the menu and whittled away the extraneous modules, built the
new kernel, installed it and rebooted. This time, after a flurry of
red exclamation points, it reached the login and crashed there.


Well, whatever changes you made to .config fixed the original panic,
so I'd start by diff'ing the first .config with the new .config (or
post the new .config here).









No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.423 / Virus Database: 270.14.28/2454 - Release Date: 10/23/09 
14:09:00


For which netbook are trying to compile a kernel for? 





Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-23 Thread Maxim Wexler
900a

On 10/23/09, Richard Marza richardmar...@optonline.net wrote:

 - Original Message -
 From: walt w41...@gmail.com
 To: gentoo-user@lists.gentoo.org
 Sent: Friday, October 23, 2009 6:54 PM
 Subject: [gentoo-user] Re: kernel panic -- finding proper config diff


 On 10/23/2009 02:57 PM, Maxim Wexler wrote:
 not an idea really but further experience

 Since LiveDvD-10.1 boots, albeit buggily, on the netbook. I tried to
 use the kernel config provided with it. I ran make oldconfig then
 opened up the menu and whittled away the extraneous modules, built the
 new kernel, installed it and rebooted. This time, after a flurry of
 red exclamation points, it reached the login and crashed there.

 Well, whatever changes you made to .config fixed the original panic,
 so I'd start by diff'ing the first .config with the new .config (or
 post the new .config here).




 



 No virus found in this incoming message.
 Checked by AVG - www.avg.com
 Version: 8.5.423 / Virus Database: 270.14.28/2454 - Release Date: 10/23/09
 14:09:00

 For which netbook are trying to compile a kernel for?






Re: [gentoo-user] Re: kernel panic -- finding proper config diff - RESOLVED

2009-10-23 Thread Maxim Wexler

 Well, whatever changes you made to .config fixed the original panic,
 so I'd start by diff'ing the first .config with the new .config (or

After some more tweaking 2.6.30-r7 boots successfully, except for an
error with the sound card famous which should be easy to fix /last
words

mw
.



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Neil Bothwick
On Wed, 21 Oct 2009 21:28:10 -0600, Maxim Wexler wrote:

 I did the 30-r6 from scratch, then copied the .config over to the
 30-r7 slot and ran make oldconfig. No change.
 
 Least I still have the 29 kernel; it works fine ;)

Why not copy over the .29 config and run make oldconfig?


-- 
Neil Bothwick

Of course, I could switch back to Windows. At least there, if I have a
problem, I don't suffer under the illusion that I could ever fix it. -


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Maxim Wexler

 Why not copy over the .29 config and run make oldconfig?

I thought of that, but isn't there too much difference in the
versions? I read somewhere that taking to big a leap between versions
is unsafe. Not to mention the great whack of new options. If you do a
diff -y between the two configs there are lots of gaps.

mw



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Neil Bothwick
On Thu, 22 Oct 2009 12:17:46 -0600, Maxim Wexler wrote:

  Why not copy over the .29 config and run make oldconfig?  
 
 I thought of that, but isn't there too much difference in the
 versions? I read somewhere that taking to big a leap between versions
 is unsafe.

0.0.01 is hardly a big leap! You wouldn't want to use oldconfig in a big
jump, say from 2.4 to 2.6, but for incremental versions it is the best
approach. There is far more chance of you messing things up in a new,
from scratch config than using oldconfig.

 Not to mention the great whack of new options. If you do a
 diff -y between the two configs there are lots of gaps.

That's precisely what oldconfig deals with.


-- 
Neil Bothwick

Custer was fitted for an Arrow shirt.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Maxim Wexler
OK, went ahead and did it. It's already broke, what's the harm?.
Looks like I'll be answering a lot of questions before I'm done.
STRIP_ASM_SYMS !? what th'?

On 10/22/09, Maxim Wexler maxim.wex...@gmail.com wrote:

 Why not copy over the .29 config and run make oldconfig?

 I thought of that, but isn't there too much difference in the
 versions? I read somewhere that taking to big a leap between versions
 is unsafe. Not to mention the great whack of new options. If you do a
 diff -y between the two configs there are lots of gaps.

 mw




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Alan McKinnon
On Thursday 22 October 2009 20:17:46 Maxim Wexler wrote:
  Why not copy over the .29 config and run make oldconfig?
 
 I thought of that, but isn't there too much difference in the
 versions? I read somewhere that taking to big a leap between versions
 is unsafe. Not to mention the great whack of new options. If you do a
 diff -y between the two configs there are lots of gaps.


That's version jumps like 2.4 to 2.6

The 2.6 development model is small incremental steps, so the odds are always 
in your favour that it will work just fine. Occasionally you might find two 
versions that don't like to play nicely with oldconfig but that isn't the 
norm.

FWIW, I haven't encountered a single problem with the entire 2.6 range. But 
then again I don't do version jumps on the order of 2.6.9 to 2.6.15, it's more 
like 2.6.30-r6 to 2.6.31

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Alan McKinnon
On Thursday 22 October 2009 20:36:48 Maxim Wexler wrote:
 OK, went ahead and did it. It's already broke, what's the harm?.
 Looks like I'll be answering a lot of questions before I'm done.
 STRIP_ASM_SYMS !? what th'?

run menuconfig in another terminal, type /, enter the string, press enter, 
read screen. Possibly google some stuff. Entire problem sorted

But tell me, how is that different from doing it from scratch? You'd still 
look at the option, you'd still have a ???WTF??? moment, you'd still use the 
help function, google and this list. I fail to see any real difference

Unless of course your emotions and frustrations are clouding your judgement in 
this regard...



 
 On 10/22/09, Maxim Wexler maxim.wex...@gmail.com wrote:
  Why not copy over the .29 config and run make oldconfig?
 
  I thought of that, but isn't there too much difference in the
  versions? I read somewhere that taking to big a leap between versions
  is unsafe. Not to mention the great whack of new options. If you do a
  diff -y between the two configs there are lots of gaps.
 
  mw
 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Neil Bothwick
On Thu, 22 Oct 2009 12:36:48 -0600, Maxim Wexler wrote:

 OK, went ahead and did it. It's already broke, what's the harm?.
 Looks like I'll be answering a lot of questions before I'm done.
 STRIP_ASM_SYMS !? what th'?

Look at the list of choices it gives you, probably something like y/n/? -
guess what the ? does.


-- 
Neil Bothwick

The man who dies with the most toys is dead.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-22 Thread Neil Bothwick
On Thu, 22 Oct 2009 16:31:10 -0700, walt wrote:

 In the dark ages, before udev, /dev/console had to be created in the
 bare /dev directory (i.e. before anything is mounted on /dev) to
 prevent this sort of error.  I thought it had been solved, but maybe
 I'm wrong about that.

You still need it, and /dev/null, because udev is not running yet.


-- 
Neil Bothwick

Top Oxymorons Number 23: Sweet sorrow


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Alan McKinnon
On Wednesday 21 October 2009 21:07:18 Jonathan Callen wrote:
 Maxim Wexler wrote:
  VFS: Mounted root (ext2 filesystem) readonly on device 8:1,
  Freeing unused kernel memory: 276k freed
  Warning: unable to open an initial console
  Kernel panic - not syncing. No init found. Try passing init=option to
  kernel.
 
 To me, that looks like /dev/sda1 (which is what the kernel is using as
 root=) doesn't contain any of the following:
   /sbin/init
   /etc/init
   /bin/init
   /bin/sh
 
 Noting that the kernel output implied that it was an ext2 filesystem,
 that looks like it mounted your /boot as /, which fails as there isn't
 any init available on it.
 
 PS:
 In case you were wondering how I knew it was /dev/sda1, that's what
 device 8:1 means: the block device with major number 8 and minor
 number 1, which happens to be the major:minor assigned to /dev/sda1.

Does /dev/sda1 genuinely contain / and not for example /boot?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Maxim Wexler
 Does /dev/sda1 genuinely contain / and not for example /boot?


This is on an Asus 900A. 4G SSD, / and /boot all on one partition,
formatted ext2, to prevent journalling overhead, with e2fsck set to
check the fs at every boot.  An 8G card contains /home and /var.

mw



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Albert Hopkins
On Wed, 2009-10-21 at 14:22 -0600, Maxim Wexler wrote:
  Does /dev/sda1 genuinely contain / and not for example /boot?
 
 
 This is on an Asus 900A. 4G SSD, / and /boot all on one partition,
 formatted ext2, to prevent journalling overhead, with e2fsck set to
 check the fs at every boot.  An 8G card contains /home and /var.

FYI you can still create the filesystem as, e.g., ext4 with -O
^has_journal and still enjoy the performance benefits such as extents
and delayed allocation without the (minor) overhead that journalling
incurs.

-a





Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Maxim Wexler
 To me, that looks like /dev/sda1 (which is what the kernel is using as
 root=) doesn't contain any of the following:
   /sbin/init
   /etc/init
   /bin/init
   /bin/sh

 Noting that the kernel output implied that it was an ext2 filesystem,
 that looks like it mounted your /boot as /, which fails as there isn't
 any init available on it.

The partitioning scheme and fs hasn't changed. Just the kernel. It
wasn't a problem before. Also, I don't think the fs id is significant
since, if you look at the photo attached to the bug report, ext3 is
involved in that case. In the new config  have CONFIG_EXT2_FS_XATTR is
not set,  whereas it's set 'y' in the old. Maybe that's it.  The
help page says choose N if unsure, which is what I did this time.
I'll wait to hear back from the group and give it another try.

mw



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Maxim Wexler
Ok, I went back and found what looks like a glaring error. The old
config had the CONFIG_PHYSICAL_START=0x100 under processor
options, the new one was missing a zero. A ha! sez I and fixed it.
Nope. I get the exact same panic.

Setting CONFIG_EXT2_FS_XATTR=y doesn't help either.

On a related note, I see that CONFIG_NR_CPUS only allows for 8 in the
30 kernel. Trying any other number leads to an error Invalid Number
, whereas for the 29 kernel, 64 seems to be the default.



On 10/21/09, Maxim Wexler maxim.wex...@gmail.com wrote:
 To me, that looks like /dev/sda1 (which is what the kernel is using as
 root=) doesn't contain any of the following:
  /sbin/init
  /etc/init
  /bin/init
  /bin/sh

 Noting that the kernel output implied that it was an ext2 filesystem,
 that looks like it mounted your /boot as /, which fails as there isn't
 any init available on it.

 The partitioning scheme and fs hasn't changed. Just the kernel. It
 wasn't a problem before. Also, I don't think the fs id is significant
 since, if you look at the photo attached to the bug report, ext3 is
 involved in that case. In the new config  have CONFIG_EXT2_FS_XATTR is
 not set,  whereas it's set 'y' in the old. Maybe that's it.  The
 help page says choose N if unsure, which is what I did this time.
 I'll wait to hear back from the group and give it another try.

 mw




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Maxim Wexler
 Do you use 'make oldconfig' to generate the .config file for your new
 kernel?  I'm getting the impression that you did the menuconfig thing
 from scratch, but maybe I'm wrong?

I did the 30-r6 from scratch, then copied the .config over to the
30-r7 slot and ran make oldconfig. No change.

Least I still have the 29 kernel; it works fine ;)

mw



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread William Kenworthy
Run diff on both config files and see what you missed ...

BillK

On Wed, 2009-10-21 at 21:28 -0600, Maxim Wexler wrote:
  Do you use 'make oldconfig' to generate the .config file for your new
  kernel?  I'm getting the impression that you did the menuconfig thing
  from scratch, but maybe I'm wrong?
 
 I did the 30-r6 from scratch, then copied the .config over to the
 30-r7 slot and ran make oldconfig. No change.
 
 Least I still have the 29 kernel; it works fine ;)
 
 mw
 
-- 
William Kenworthy bi...@iinet.net.au
Home in Perth!




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-21 Thread Maxim Wexler
I missed?

Read the OP again.


On 10/21/09, William Kenworthy bi...@iinet.net.au wrote:
 Run diff on both config files and see what you missed ...

 BillK

 On Wed, 2009-10-21 at 21:28 -0600, Maxim Wexler wrote:
  Do you use 'make oldconfig' to generate the .config file for your new
  kernel?  I'm getting the impression that you did the menuconfig thing
  from scratch, but maybe I'm wrong?

 I did the 30-r6 from scratch, then copied the .config over to the
 30-r7 slot and ran make oldconfig. No change.

 Least I still have the 29 kernel; it works fine ;)

 mw

 --
 William Kenworthy bi...@iinet.net.au
 Home in Perth!