| View previous topic :: View next topic |
| Author |
Message |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sat Jul 07, 2012 5:05 pm Post subject: new install - powerdown during kernel compilation. <solve |
|
|
need some suggestions:
i'm an experienced gentoo user, but have taken a haitus for the past year when my laptop running gentoo died a horrible death.
i finally have the time to install gentoo again, but is having a hard time getting through the installation process.
first attempt, i used a kernel seed from pappy, was able to complete kernel build, but was unable to boot using the new kernel. after troubleshooting, i realized that i used a wrong version of kernel seed 3.4 instead of 3.2. I did an mrproper and tried to rebuild another kernel, but the laptop would get to a certain point compiling and then shut it self down.
i decided to change my approach, use genkernel defaults to build a bootable system and customize later (to save some time). but that too resulted in the laptop rebooting after sometime compiling.
any help would be appreciated!
-=g=-
Last edited by geburns on Mon Jul 09, 2012 5:30 pm; edited 2 times in total |
|
| Back to top |
|
 |
The Doctor l33t


Joined: 27 Jul 2010 Posts: 948
|
Posted: Sat Jul 07, 2012 5:54 pm Post subject: |
|
|
This sounds to me like the laptop may be overheating. Try propping it up on several books to increase the airflow around the case. I would also try the custom kernel seed first as it is smaller and therefore less likely to overheat the laptop. _________________ First things first, but not necessarily in that order. |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sun Jul 08, 2012 7:14 am Post subject: |
|
|
i thought the same thing... cpu is over heating during compilation and shutting down the system, but that didn't seem to be the problem.
i was able to do an emerge -up system, emerge -up world, emerge vim and emerge -up gcc. no shutdown.
when i tried another genkernel all, the laptop shutdown.
i did all of this while the laptop is inside the fridge... yes call me crazy, but i wanted to eliminate cpu overheating as the problem...
i'm configuring a kernel seed from pappy and trying again, but at this point, i think something else is causing the machine to shutdown when building a kernel.
-=g=- |
|
| Back to top |
|
 |
The Doctor l33t


Joined: 27 Jul 2010 Posts: 948
|
Posted: Sun Jul 08, 2012 7:07 pm Post subject: |
|
|
Well, That is strange. Of course the -p flag is the pretend flag so its not actually installing anything you know. Perhaps trying the system rescue CD or similar will have better results.
You might also want to try is running the memtest. The only other explanation I can think of would be hardware problems, and I really hope that is a lack of imagination on my part. _________________ First things first, but not necessarily in that order. |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sun Jul 08, 2012 8:09 pm Post subject: |
|
|
yep, understood that the -p is pretend, but i did emerge with out the -p. sorry for the the confusion, i was posting late last night.
i'm still trying today, same results. i migrated from grub to grub2 and ran the appropriate commands to install and configure. genkernel all did finish compiling bzImage before shutting down, not sure when it actually stopped. i've yet to look at the genkernel logs.
i'm working on a customized kernel config, hopefully, i'll get that completed and successfully compiled.
i don't have a second computer, so it is a bit of a pain to go back and forth between win7 and gentoolive via usb and having to chroot everytime to troubleshoot (i'm installing gentoo on a different drive)
a lot has changed since i installed from scratch a while back. its good though, to have to learn/relearn what has changed. hopefully, i'll have a break though soon.
-=g=- |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sun Jul 08, 2012 8:46 pm Post subject: |
|
|
i still do not have bootable kernel. i'm using the the latest gentoo live on a usb stick. the info below is from my chrooted environment:
| Code: | (chroot) Gentoo-2012 / # emerge --info
Portage 2.1.11.5 (default/linux/x86/10.0/desktop, gcc-4.6.3, glibc-2.14.1-r3, 3.3.0-gentoo i686)
=================================================================
System uname: Linux-3.3.0-gentoo-i686-Pentium-R-_Dual-Core_CPU_T4400_@_2.20GHz-with-gentoo-2.1
Timestamp of tree: Sun, 08 Jul 2012 06:15:01 +0000
app-shells/bash: 4.2_p29
dev-lang/python: 3.2.3
dev-util/pkgconfig: 0.26
sys-apps/baselayout: 2.1-r1
sys-apps/openrc: 0.10.5
sys-apps/sandbox: 2.5
sys-devel/autoconf: 2.68
sys-devel/automake: 1.11.1
sys-devel/binutils: 2.22-r1
sys-devel/gcc: 4.6.3
sys-devel/gcc-config: 1.6
sys-devel/libtool: 2.4-r1
sys-devel/make: 3.82-r3
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc: 2.14.1-r3
Repositories: gentoo
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /usr/share/themes/oxygen-gtk/gtk-2.0"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk iconv ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3support qt4 readline sdl session spell ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis wxwidgets x264 x86 xcb xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
|
| Code: | (chroot) Gentoo-2012 / # cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Pentium(R) Dual-Core CPU T4400 @ 2.20GHz
stepping : 10
microcode : 0xa07
cpu MHz : 2194.491
cache size : 1024 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 : 13
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 aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
bogomips : 4388.98
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 23
model name : Pentium(R) Dual-Core CPU T4400 @ 2.20GHz
stepping : 10
microcode : 0xa07
cpu MHz : 2194.491
cache size : 1024 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 : 13
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 aperfmperf pni dtes64 monitor ds_cpl est tm2 ssse3 cx16 xtpr pdcm xsave lahf_lm dts
bogomips : 4388.98
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
|
| Code: | (chroot) Gentoo-2012 / # lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 09)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
02:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
04:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller
|
|
|
| Back to top |
|
 |
djdunn l33t


Joined: 26 Dec 2004 Posts: 617 Location: Under the moon and all the stars in the sky.
|
Posted: Sun Jul 08, 2012 9:47 pm Post subject: |
|
|
try not using genkernel, and going to the /usr/src/linux directory and run
_________________ Now, with penguins, (cuddly such), "contented" means it has either just gotten laid, or it's stuffed on herring. Take it from me, I'm an expert on penguins, those are really the only two options.
--Linus Torvalds |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Sun Jul 08, 2012 11:22 pm Post subject: |
|
|
i was able to complete kernel build using pappy's seed. but, restart failed with a VFS error.
it appears that the kernel is unable to find root (/dev/sda3)
i'm using grub2, so the config is automatically generated given what it sees in my chrooted environment. i followed the grub2 wiki instructions to mount /boot after going into the chrooted env. same issue on reboot.
anyone familiar enough with GRUB2 care to interject? i'm looking at docs, but seems to be limited at this point.
-=g=- |
|
| Back to top |
|
 |
BillWho Veteran


Joined: 03 Mar 2012 Posts: 1576 Location: US
|
Posted: Mon Jul 09, 2012 12:01 am Post subject: |
|
|
geburns,
The newer grub should be easy - here's my entries for gentoo and arch. If you don't have an initramfs, don't use uuid
menuentry "Gentoo Base System x86_64-3.4.2-gentoo-r1 (on /dev/sdb14)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 1a808cff-31af-4036-8fa7-380098554f71
linux /kernel root=UUID=b3bfd853-2f66-4946-9a08-428af6f50ba1 rootfstype=ext3 vga=794
initrd /initramfs
}
menuentry "Arch Linux [/boot/vmlinuz-linux] (on /dev/sda9)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos8)'
search --no-floppy --fs-uuid --set=root d2f27d2e-f241-443f-b2fb-79869d2ef3f4
linux /vmlinuz-linux root=UUID=73954c34-b96e-4f7a-a555-66b07fa78080 #nomodeset vga=794 radeon.modeset=1
initrd /initramfs-linux.img _________________ Good luck
Since installing gentoo, my life has become one long emerge  |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Mon Jul 09, 2012 5:33 pm Post subject: |
|
|
Marked solved as the original problem of shutting down when compiling using genkernel was fixed by:
not using genkernel and
creating cleaner .config file from pappy's kernel seed
make && make modules_install.
-=g=- |
|
| Back to top |
|
 |
The Doctor l33t


Joined: 27 Jul 2010 Posts: 948
|
Posted: Mon Jul 09, 2012 6:03 pm Post subject: |
|
|
Ok, even though you already marked this as solved, I don't know much about grub 2 as I refuse to use it, but I think you have a kernel problem, not a grub problem.
Did you build you root file system and disk drivers into the kernel, not as modules? _________________ First things first, but not necessarily in that order. |
|
| Back to top |
|
 |
geburns n00b


Joined: 19 Apr 2002 Posts: 65 Location: st paul, mn
|
Posted: Thu Jul 12, 2012 1:16 pm Post subject: |
|
|
the original problem of the machine shutting down while building a kernel is solved. the problem of not having a bootable kernel is not. it's certainly possible to have a misconfiguration in the .config that's causing this, but the usual suspects like not having the filesystem drivers compiled directly and not as a module. the symptoms certainly matches that, but it the first thing i checked and double checked. it may be my bios is not properly reporting and that's causing the problem, but i haven't figured out what boot parameters i can add to the kernel line in .cfg to for the issue. i can take the quick way out and ask pappy to review my .config, but where's the fun in that
unfortunately, having only one useable laptop stops me from throwing all my time at this. i have to use the laptop for work (not dual booting, i have a separate drive, for now)
the next step is to install grub legacy and chainload or revert back to grub legacy and mask v2.0 if that works. maybe even lilo just just exhaust that line
at any rate, i'm fairly confident that once i can devote more than 20-30 min at a time to troubleshooting this, that i will eventually figure it out. at this point, its more important to learn along the way than just to get it done.
thanks for the suggestions! |
|
| 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
|
|