Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gentoo can't boot after kernel update[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Wed Aug 18, 2010 9:38 am    Post subject: gentoo can't boot after kernel update[solved] Reply with quote

There are two systems for me running gentoo.
And the both met problems.
PC1:
Used to run w/ 945 motherboard and T2500 CPU.
I moved the HDD to a PC w/ GM45 platform and T9400 processor. But it doesn't work.
so I boot from the liveCD and Build new kernel (2.6.33) w/ the original configuration(2.6.30)
But the system auto reboot while booting.

I change the processor configuration to core2 and rebuild the kernel. problem still.

PC2.
It Used to run gentoo w/ GM45platform T9400cpu. kernel 2.6.30
The motherboard is damaged, so I changed the same motherboard.

But when I boot to the system, It's showed need fsck, maybe the time is changed.
I use fsck to check the system, but it crashed my root partition. left the Boot partition w/ older kernel.

I use the latest stage3 and portage, livecd. build new kernel(2.6.34-r1),
But I can't boot w/ this kernel, the problem is similar to the previous.
it auto reboot after
scaning for memory ....
or
simple boot flag set @0x34 ....
or
RPC registeried ...
or type =2000, audit .... inlitialized

But I can boot w/ my older kernel 2.6.30, I've lost the .config file.


What's can I do w/ my kernel configuration?


Last edited by clouds222 on Thu Sep 02, 2010 12:59 am; edited 2 times in total
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Wed Aug 18, 2010 10:05 am    Post subject: Reply with quote

for PC2:
You say you can boot the old kernel, but lost the .config.

If you have config support in the kernel (most have), then you can get the config from your /proc directory and use it to build the new kernel:
Code:
# zcat /proc/config.gz > /root/.config


You can also do this on a liveCD like SystemRescue and use their .config to build your kernel.

For both PC, if you don't even reach "init" it's definately the kernel or grub that has a problem.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Thu Aug 19, 2010 4:04 am    Post subject: Reply with quote

I didn't enable the config support for kernel. And can't get config.gz from /proc

I use the config.gz from liveCD. and build kernel 2.6.33.

But the system hung after show
Code:

.....
highmem bounce pool size: 64 pages
HugeTLB registered 4 MB page size, pre-allocated 0 pages


Does there need some changes for make.conf, I removed the flags, but seems no good.

I use genkernel to generate the kernel w/ option all, and the system still can't boot. it stopped at unpacking ramfs or somewhere.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Thu Aug 19, 2010 7:16 am    Post subject: Reply with quote

It's so strange that I changed the BIOS vender from General Software(conquered by Phineox, The embeded BIOS solution) to AMI, and I got the system running OK with all the BIOSes.

What the difference between the two BIOSes is that:
for GS BIOS, the memory address from 2GB~4GB is allocated for PCI address.

The strange thing is not the BIOSes but why the older Kernel , and the liveCD can boot w/ GS BIOS, But the new build ones can't.

I noted there are some options for memory, 3G-1G, 2G-2G,1G-3G. but that doesn't help me.
The pysical memory for the system is 1GB DDR3.

How can I work out why it doesn't work for my newer build BIOS of generl sw
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Sat Aug 21, 2010 5:02 pm    Post subject: Reply with quote

Hi, all,
This issue is reported as a general software BIOS issue, but maybe a bug of new kernel.

I've found other users met the same issue also w/ rhel.

The older kernels before (include) 2.6.30, can support well.

But the newer versions (tried 2.6.33/34), will stop at some line in
Code:

NET: Registered protocol family 1
[b]Trying to unpack rootfs image as initramfs...[/b]
Freeing initrd memory: 1571k freed
audit: initializing netlink socket (disabled)
type=2000 audit(1257439929.696:1): initialized
highmem bounce pool size: 64 pages
[b]HugeTLB registered 4 MB page size, pre-allocated 0 pages[/b]


We have submit a request for the resolution. But I will not set this issue as solved here. I'll put the root cause here once resolved.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Tue Aug 24, 2010 9:24 am    Post subject: Reply with quote

It seems the newer version kernels after 2.6.31 encounter issues to support Intel C6 state w/ general software BIOS.
Back to top
View user's profile Send private message
disi
Veteran
Veteran


Joined: 28 Nov 2003
Posts: 1354
Location: Out There ...

PostPosted: Tue Aug 24, 2010 10:20 am    Post subject: Reply with quote

Nice to know and thanks for the informations

Just wanted to let you know that Asus and ATI is not better ;)
I have problems with my Asus Crosshair Formula III ever since I bought it and ASRock BIOS. Cannot Reboot, fails at detecting DRAM and the RAM that is detected is wrong.
_________________
Gentoo on Uptime Project - Larry is a cow
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Wed Aug 25, 2010 8:41 am    Post subject: Reply with quote

Yes, and some motherboards are not tested to support Linux but just windows, that may bring some strange errors.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Sat Aug 28, 2010 7:07 am    Post subject: Reply with quote

Why are you using initramfs? It's not needed with Gentoo, unless you absolutely have to have the splash screen instead of the kernel/init screen.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Thu Sep 02, 2010 12:57 am    Post subject: Reply with quote

I didn't use ramfs. But I have to try the kernel by genkernel. By default, it uses initramfs.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Thu Sep 02, 2010 5:18 am    Post subject: Reply with quote

I should have known. There is a better way to set up your kernel. You can use one of my seeds. That means no need for intiramfs, and a better running system.

Click on the link in my sig line, and take a shot at setting a kernel up for yourself. If you'd rather, I can do the job. To do it, I would need the results of lspci -n and cat /proc/cpuinfo as well as your /etc/fstab file, and your current .config (use pastebin, the other link in my sig).

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Fri Sep 10, 2010 3:27 pm    Post subject: Reply with quote

Hey pappy_mcfae, Here is the configuration of my homeserver. can you tweak the .config for me? Thanks. The CPU is T2500.

I have posted the .config at http://pastebin.com/4Jy7rVx6

Code:

homeserver ~ # lspci -n
00:00.0 0600: 8086:27a0 (rev 03)
00:02.0 0300: 8086:27a2 (rev 03)
00:02.1 0380: 8086:27a6 (rev 03)
00:1b.0 0403: 8086:27d8 (rev 02)
00:1c.0 0604: 8086:27d0 (rev 02)
00:1c.1 0604: 8086:27d2 (rev 02)
00:1c.2 0604: 8086:27d4 (rev 02)
00:1c.3 0604: 8086:27d6 (rev 02)
00:1d.0 0c03: 8086:27c8 (rev 02)
00:1d.1 0c03: 8086:27c9 (rev 02)
00:1d.2 0c03: 8086:27ca (rev 02)
00:1d.3 0c03: 8086:27cb (rev 02)
00:1d.7 0c03: 8086:27cc (rev 02)
00:1e.0 0604: 8086:2448 (rev e2)
00:1f.0 0601: 8086:27b9 (rev 02)
00:1f.2 0101: 8086:27c4 (rev 02)
00:1f.3 0c05: 8086:27da (rev 02)
03:00.0 0200: 14e4:169d (rev 21)
04:00.0 0200: 14e4:169d (rev 21)
06:06.0 0700: 13a8:0152 (rev 02)


Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 14
model name      : Intel(R) Pentium(R) M CPU        000  @ 2.00GHz
stepping        : 4
cpu MHz         : 2000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts aperfmperf pni monitor vmx est tm2 xtpr pdcm
bogomips        : 3999.90
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 32 bits virtual
power management:

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 14
model name      : Intel(R) Pentium(R) M CPU        000  @ 2.00GHz
stepping        : 4
cpu MHz         : 2000.000
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc arch_perfmon bts aperfmperf pni monitor vmx est tm2 xtpr pdcm
bogomips        : 4000.20
clflush size    : 64
cache_alignment : 64
address sizes   : 32 bits physical, 32 bits virtual
power management:


Code:

homeserver ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /boot           ext2            noauto,noatime  1 2
/dev/sda3               /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
/dev/sda5               /media/C  ext3            noatime         0 1
/dev/sda6               /media/D  ext3            noatime         0 1

#/dev/fd0               /mnt/floppy     auto            noauto          0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Fri Sep 10, 2010 9:01 pm    Post subject: Reply with quote

Your .config was quite overloaded with unused drivers, etc. The .config I'm sending along started with a fresh seed, and has the newest settings. It should be quite a step forward.

The only question mark I had with your setup was which driver to use for your com ports. The driver I set up is supposedly capable of handling those ports. You might not even use them, but they are turned on.

If you are having stability problems in X, which is likely, I'd suggest moving up to the .35 series, since it is in that version that they finally got KMS to be mostly stable with intel GPU's. Since you have set for KMS, it would be best if you used the most stable version I've found yet, especially if you are having X issues.

Click here for your new .config. Compile as is.

For the best results, please do the following:

1) Move your .config file out of your kernel source directory (/usr/src/linux-2.6.34-gentoo-r1 ).
2) Issue the command make mrproper. This is a destructive step. It returns the source to pristine condition. Unmoved .config files will be deleted!
3) Copy my .config into your source directory.
4) Issue the command make && make modules_install.
5) Install the kernel as you normally would, and reboot.
6) Once it boots, please post /var/log/dmesg so I can see how things loaded.

This is most important. I need to know if everything listed starts properly. Once I'm assured of that, then you should have a very stable system (barring KMS instability).

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Mon Sep 13, 2010 2:37 pm    Post subject: Reply with quote

Hi pappy, I have removed some HDA codec drivers left IDT driver and added NTFS support as there is a mobile disk may be attached.

And now I'm making the new kernel. That must be a very stable and fastest kernel for me! I'll post the information later.

Thank you!
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Mon Sep 13, 2010 3:11 pm    Post subject: Reply with quote

Hi pappy, I have posted the dmesg here http://pappy-mcfae.pastebin.com/eBsdzDrX.

It boot very fast, but there are some drv errors with virtual box since the CPU type changed from i686 to P4. Maybe I need to rebuild the VBOX.

For the serial port, I saw there is a line as:
Code:
Couldn't register serial port 0000:06:06.0: -28

Does mean it will not work? But it not important as there are other two serial ports there.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Mon Sep 13, 2010 6:31 pm    Post subject: Reply with quote

According to what I read, the serial ports should be active.

This .config was made to make things work faster. Clearly, that has happened.

As for the the virtual stuff, I would suggest you check the kernel settings against what is recommended to make the vbox stuff work. There should be pages up that tell you which options you need (apart from the seed basics) to add to the kernel to get your support, but not to overload the kernel with unneeded stuff.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Mon Sep 13, 2010 11:47 pm    Post subject: Reply with quote

I reinstalled the latest vbox again and got it work.
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Sep 14, 2010 1:54 am    Post subject: Reply with quote

I figured that would happen.

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
clouds222
Apprentice
Apprentice


Joined: 13 Jul 2009
Posts: 187
Location: Shanghai

PostPosted: Tue Sep 14, 2010 1:49 pm    Post subject: Reply with quote

Yes, and your kernel seeds do help much to linux newbie like me.

Again, thanks very much for your great help!
Back to top
View user's profile Send private message
pappy_mcfae
Watchman
Watchman


Joined: 27 Dec 2007
Posts: 5999
Location: Pomona, California.

PostPosted: Tue Sep 14, 2010 7:12 pm    Post subject: Reply with quote

You're most welcome!

Cheers,
Pappy
_________________
This space left intentionally blank, except for these ASCII symbols.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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