View previous topic :: View next topic |
Author |
Message |
Seph64 Apprentice
Joined: 13 May 2003 Posts: 191
|
Posted: Fri Feb 13, 2009 2:05 pm Post subject: System hangs on kernel startup. |
|
|
I've been having trouble getting the framebuffer device to work for at least a day.
It hangs at the message "Freeing unused kernel memory: ###K", and it's a hard lock, it won't accept any input from the keyboard at all.
I followed the framebuffer instructions from the gentoo-wiki to a T (including the "event handlers" option at the input devices section in the menuconfig). I used to genkernel to build the kernel.
here's the grub line:
Code: | title Linux (with Splash)
root (hd0,6)
kernel (hd0,6)/boot/kernel-genkernel-x86-2.6.27-gentoo-r8 root=/dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 video=vesafb:mtrr:3,ywrap vga=792 splash=silent,theme:livecd-2007.0 console=tty1 quiet
initrd (hd0,6)/boot/initramfs-genkernel-x86-2.6.27-gentoo-r8 |
However, if I boot the system up without Code: | video= vga= and splash= | it boots up (at a low resolution) just fine. It's just when I try to change the framebuffer resolution is where the trouble lies.
Is there anyone who can help? |
|
Back to top |
|
|
avx Advocate
Joined: 21 Jun 2004 Posts: 2152
|
Posted: Fri Feb 13, 2009 3:23 pm Post subject: |
|
|
Try booting without "quiet" and see, if that results in some strane messages. |
|
Back to top |
|
|
Seph64 Apprentice
Joined: 13 May 2003 Posts: 191
|
Posted: Fri Feb 13, 2009 3:36 pm Post subject: |
|
|
Err, I forgot to say that is the last message I see when the quiet option is taken away. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Fri Feb 13, 2009 9:47 pm Post subject: |
|
|
Post your .config, the results of lspci -n and cat /proc/cpuinfo as well as your /etc/fstab file, and I'll take a look at your kernel to see if your problem lies there.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Fri Feb 13, 2009 10:29 pm Post subject: |
|
|
try vga=ask so you'll get a list of avaiable resolutions |
|
Back to top |
|
|
Seph64 Apprentice
Joined: 13 May 2003 Posts: 191
|
Posted: Fri Feb 13, 2009 11:30 pm Post subject: |
|
|
It does not matter which resolution I choose, even if it is from the vga=ask option, it'll still hang at the same place.
.config:
http://pastebin.com/m625d94e0
lspci -n:
Quote: | 00:00.0 0600: 8086:29a0 (rev 02)
00:01.0 0604: 8086:29a1 (rev 02)
00:19.0 0200: 8086:104c (rev 02)
00:1a.0 0c03: 8086:2834 (rev 02)
00:1a.1 0c03: 8086:2835 (rev 02)
00:1a.7 0c03: 8086:283a (rev 02)
00:1b.0 0403: 8086:284b (rev 02)
00:1c.0 0604: 8086:283f (rev 02)
00:1d.0 0c03: 8086:2830 (rev 02)
00:1d.1 0c03: 8086:2831 (rev 02)
00:1d.2 0c03: 8086:2832 (rev 02)
00:1d.7 0c03: 8086:2836 (rev 02)
00:1e.0 0604: 8086:244e (rev f2)
00:1f.0 0601: 8086:2812 (rev 02)
00:1f.2 0104: 8086:2822 (rev 02)
00:1f.3 0c05: 8086:283e (rev 02)
01:00.0 0300: 10de:0402 (rev a1)
03:03.0 0780: 14f1:2f20 |
cpuinfo:
Quote: | processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz
stepping : 2
cpu MHz : 1795.492
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 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3590.98
clflush size : 64
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU 4300 @ 1.80GHz
stepping : 2
cpu MHz : 1795.492
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 pat pse36 clflush dts acpi mmx fxsr sse sse2 ss httm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3591.02
clflush size : 64
power management: |
fstab:
Quote: | # /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/sda7 / ext3 noatime 0 1
/dev/sda8 none swap sw 0 0
# /dev/cdrom /mnt/cdrom audo noauto,ro 0 0
# /dev/fd0 /mnt/floppy auto noauto 0 0
/dev/sda5 /Win-XP ntfs umask=000 0 0
/dev/sda6 /Win7 ntfs umask=000 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
proc /proc proc nodev,nosuid,noexec 0 0 |
I am not sure why the fstab is needed since the linux boot process when I try to boot using the options for a higher resolution/using splash never get to the point where it starts mounting filesystems, it just gets stuck at the specified kernel message. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sat Feb 14, 2009 12:50 am Post subject: |
|
|
The kernel needs to know which file systems you are using. That means I do, and the /etc/fstab file contains that info. It looked to me like you were running a genkernel special. Therefore, I completely redid your .config using one of my seeds. It will be a lot lighter, and will most likely get over the hump you describe.
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 (2.6.27-gentoo-r8 ).
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.
When you finish compiling this kernel, use vga=791. That should tell the tale really quickly.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
Seph64 Apprentice
Joined: 13 May 2003 Posts: 191
|
Posted: Sat Feb 14, 2009 2:42 am Post subject: |
|
|
Wow that worked, thanks.
I wonder what was wrong with the config that was generated by genkernel?
dmesg:
http://pastebin.com/m29822e8a
Is the kernel I just compiled a debug kernel? Because my system seems to be a bit slower than usual. |
|
Back to top |
|
|
pappy_mcfae Watchman
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Sat Feb 14, 2009 7:27 am Post subject: |
|
|
First of all, there were lots of conflicting drivers set. As a matter of fact, pretty much everything was turned on or set as modules. That is never a good thing.
Secondly, you had the slow-downs set, group CPU scheduling, and all it's different forms. I have yet to read of a userspace application that uses that portion of the kernel.
Oh, and the settings for frame buffer were not right. For nvidia, you should only engage the VESA VGA. You had others engaged. Nvidia doesn't like that at all.
Overall, with a kernel, the minimal footprint tends to give the maximum power, speed, and stability. That's my story, and I'm sticking to it. hehehe
No, I generally leave debugging turned off until after the kernel boots. You can go through now, and turn on the debugging if you wish. I'd advise to only use it concerning your immediate problem. Turning on lots of debugging slows things down, just so you know.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
|
|
|
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
|
|