View previous topic :: View next topic |
Author |
Message |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 12:23 pm Post subject: Solved: Hang after "Ok booting the kernel" |
|
|
Hi,
is someone of you familiar with this problem: I recompilied my 2.4.25 kernel, unfortunately copied it over my old working one (yes yes, i learned from this.. :s ) and rebooted. Now the system just displays grub and after that "OK booting the kernel.." and thats it. No more output.
But the weird thing: Booting sounds normal. Hdd does all familar "sounds" and i think the system boots fine. I can even press ctrl-alt-del to reboot. logging in doesn't work..
maybe someone has an idea whats going on.
now i can only boot from live-cd and chroot in my system. in a few hours i can paste the kernelconfig. i have checked the config but it seems ok. in a few hours i can paste the config here..
btw: when i chroot from livecd in my system i do following steps:
Code: | mount /dev/hdd5 /mnt/gentoo (hdd5 is my / )
chroot /mnt/gentoo
source /etc/profile
env-update |
did i forget something important while chrooting?
any hint is appreciated
shiny
Last edited by shiny on Mon Dec 20, 2004 8:41 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Raistlin l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1784031407449a32cfd7c14.jpg)
Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Mon Dec 20, 2004 1:00 pm Post subject: |
|
|
Hi,
hmm, sounds interesting
two rather quick-and-dirty things you can do:
1) if you have enabled frame buffer console, disable it, maybe that's what is causing the lack of further output.
2) in your chroot-ed environment: enable the sshd Code: | rc-uptdate add sshd boot | and log in from a remote station... maybe you can derive that way some "irregularities".
but in any case: I'm looking forward for your detailed config.
cheers, R. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 1:09 pm Post subject: |
|
|
Hi,
Raistlin wrote: |
1) if you have enabled frame buffer console, disable it, maybe that's what is causing the lack of further output.
|
No frame buffer console here
Raistlin wrote: |
2) in your chroot-ed environment: enable the sshd Code: | rc-uptdate add sshd boot | and log in from a remote station... maybe you can derive that way some "irregularities". |
Sshd is already running but I can't ssh or even ping that machine. So unfortunately I can't dmesg, too. But maybe there are some logs. Have to check that later.
cheers
shiny |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SaMe n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Dec 2004 Posts: 30
|
Posted: Mon Dec 20, 2004 5:00 pm Post subject: |
|
|
I think your chrooting is wrong... you should follow this sequence;
Code: | chroot /mnt/gentoo
env-update
source /etc/profile |
because the env-update generates info in /etc/profile.env ... your sequence loads incorrect data into the ram... off course this doesnt solve your problem but it's pretty important to chroot right into your new environment...
Can you give us the 'kernel' line in your grub.conf? Except if you are sure the line is okay... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Taladar Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 09 Oct 2004 Posts: 458 Location: Bielefeld, Germany
|
Posted: Mon Dec 20, 2004 5:39 pm Post subject: |
|
|
AFAIK env-update only regenerates /etc/profile from /etc/env.d so if you changed nothing in there you should be fine without it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 6:51 pm Post subject: |
|
|
hi,
so here is my .config and messages (too large to put in here).
grub.conf
Code: | title=Gentoo Linux 2.4.25
root=(hd1,5)
kernel (hd1,5)/boot/2.4.25/bzImage root=/dev/hdd5
|
kernel
Code: | livecd / # ls -l /boot/2.4.25/bzImage
-rw-r--r-- 1 root root 1069854 Dec 20 02:10 /boot/2.4.25/bzImage
|
mountings
Code: | livecd / # mount
/dev/hdd5 on / type ext3 (rw,noatime)
none on /dev type devfs (rw)
none on /proc type proc (rw)
/dev/hdd6 on /boot type ext3 (rw,noatime) |
machine's configuration:
celeron 433
192 ram
kyro2 gfx
realtek 8139 lan
hardware itself is working as it boots from livecd.
anything else important i forgot to post?
Last edited by shiny on Mon Dec 20, 2004 6:54 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bet1m l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/87322020642af487f807e5.png)
Joined: 04 Dec 2004 Posts: 631 Location: Kosova/Prishtine
|
Posted: Mon Dec 20, 2004 6:53 pm Post subject: |
|
|
yes you forgot
wrong:
Code: |
chroot /mnt/gentoo
env-update
sorce /etc/profile
|
true:
Code: |
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
|
recompile your kernel, and use 2.6.x maybe better ![Smile :)](images/smiles/icon_smile.gif) _________________ #370559
Last edited by bet1m on Mon Dec 20, 2004 7:00 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 6:58 pm Post subject: |
|
|
bet1m wrote: | yes you forgot
wrong:
Code: |
chroot /mnt/gentoo
env-update
sorce /etc/profile
|
true:
[code]
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile |
does it make a difference? (i don't know)
so if i recompile the kernel after chrooting this way there is a chance it works? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 7:10 pm Post subject: |
|
|
in the file "messages" (link is 3 posts above) there are some errors when it tries to insmod 8139cp but i think this is not the reason for the main problem.
hm, but maybe thats why network doesn't work. i recompile kernel and put network drivers inside.
do you see any problems with console-related stuff in my config? i can't remember that i changed anything in this section.. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bet1m l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/87322020642af487f807e5.png)
Joined: 04 Dec 2004 Posts: 631 Location: Kosova/Prishtine
|
Posted: Mon Dec 20, 2004 7:13 pm Post subject: |
|
|
okay,
recompile kernel and
try to use 2.6.x kernel ![Very Happy :D](images/smiles/icon_biggrin.gif) _________________ #370559 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 7:21 pm Post subject: |
|
|
bet1m wrote: | okay,
recompile kernel and
try to use 2.6.x kernel ![Very Happy :D](images/smiles/icon_biggrin.gif) |
hm i thought about switching to 2.6.x too but i don't think this resolves my problem. if it works again and i have some free time, i switch
but another thing about my console settings: do you have "VGA text console" enabled? i think it doesn't deal with "frame-buffer support for console" as it is in another section. hm, i just switch it on and test |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Mon Dec 20, 2004 8:31 pm Post subject: SOLVED |
|
|
woohoo it's solved
here is my little log:
Code: |
livecd / # chroot /mnt/gentoo/ /bin/bash
livecd / # env-update
>>> Regenerating /etc/ld.so.cache...
* Caching service dependencies...
livecd / # source /etc/profile
livecd / # cd /usr/src/linux
livecd linux # make menuconfig
/* changes in menuconfig:
~ lan-card is no longer module (that can't be loaded) but hard inside now
~ vga-console support is now on (was off)
*/
livecd linux # make dep 2> /root/make.dep.error
make clean bzImage modules modules_install 2> /root/make.clean.bzImage.error
livecd linux # cat /root/make.dep.error
md5sum: WARNING: 1 of 13 computed checksums did NOT match
(o_O i hope it's ok anyway)
livecd linux # cat /root/make.clean.bzImage.error
dnsdomainname: Unknown host
sysctl.c: In function `do_proc_dointvec':
sysctl.c:1101: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `proc_dointvec_minmax':
sysctl.c:1254: warning: use of cast expressions as lvalues is deprecated
sysctl.c: In function `do_proc_doulongvec_minmax':
sysctl.c:1355: warning: use of cast expressions as lvalues is deprecated
vt.c: In function `do_kdsk_ioctl':
vt.c:168: warning: comparison is always false due to limited range of data type
vt.c: In function `do_kdgkb_ioctl':
vt.c:285: warning: comparison is always false due to limited range of data type
keyboard.c: In function `do_fn':
keyboard.c:683: warning: comparison is always true due to limited range of data type
ppp_generic.c: In function `ppp_ioctl':
ppp_generic.c:662: warning: comparison is always true due to limited range of data type
parport_pc.c: In function `parport_pc_epp_read_data':
parport_pc.c:417: warning: use of cast expressions as lvalues is deprecated
parport_pc.c:444: warning: use of cast expressions as lvalues is deprecated
parport_pc.c: In function `parport_pc_epp_write_data':
parport_pc.c:473: warning: use of cast expressions as lvalues is deprecated
parport_pc.c: In function `parport_pc_epp_read_addr':
parport_pc.c:497: warning: use of cast expressions as lvalues is deprecated
parport_pc.c: In function `parport_pc_epp_write_addr':
parport_pc.c:522: warning: use of cast expressions as lvalues is deprecated
base.c: In function `devfsd_ioctl':
base.c:3433: warning: unused variable `lock'
array.c: In function `show_map':
array.c:542: warning: unused variable `task'
proc_misc.c: In function `proc_misc_init':
proc_misc.c:709: warning: implicit declaration of function `proc_config_init'
block_dev.c: In function `check_disk_change':
block_dev.c:519: warning: unused variable `sb'
readdir.c: In function `filldir':
readdir.c:281: warning: use of cast expressions as lvalues is deprecated
readdir.c: In function `filldir64':
readdir.c:372: warning: use of cast expressions as lvalues is deprecated
udp.c: In function `udp_setsockopt':
udp.c:1109: warning: unused variable `tp'
make[3]: Circular /usr/src/linux-2.4.25-gentoo/include/linux/netfilter_ipv4/ip_conntrack_help
er.h <- /usr/src/linux-2.4.25-gentoo/include/linux/netfilter_ipv4/ip_conntrack.h dependency d
ropped.
ip_conntrack_core.c: In function `ip_conntrack_helper_unregister':
ip_conntrack_core.c:1160: warning: passing arg 1 of `unhelp' discards qualifiers from pointer
target type
string.c:384: warning: conflicting types for built-in function `bcopy'
crc32.c: In function `crc32_le':
crc32.c:103: warning: use of cast expressions as lvalues is deprecated
crc32.c:124: warning: use of cast expressions as lvalues is deprecated
crc32.c: In function `crc32_be':
crc32.c:204: warning: use of cast expressions as lvalues is deprecated
crc32.c:225: warning: use of cast expressions as lvalues is deprecated
{standard input}: Assembler messages:
{standard input}:1085: Warning: indirect lcall without `*'
{standard input}:1161: Warning: indirect lcall without `*'
{standard input}:1240: Warning: indirect lcall without `*'
{standard input}:1338: Warning: indirect lcall without `*'
{standard input}:1354: Warning: indirect lcall without `*'
{standard input}:1365: Warning: indirect lcall without `*'
{standard input}:1453: Warning: indirect lcall without `*'
{standard input}:1468: Warning: indirect lcall without `*'
{standard input}:1479: Warning: indirect lcall without `*'
{standard input}:1946: Warning: indirect lcall without `*'
{standard input}:2046: Warning: indirect lcall without `*'
setup.S: Assembler messages:
setup.S:167: Warning: value 0x37ffffff truncated to 0x37ffffff
Root device is (22, 69)
Boot sector 512 bytes.
Setup is 2522 bytes.
System is 1057 kB
warning: kernel is too big for standalone boot from floppy
scsiglue.c: In function `release':
scsiglue.c:130: warning: use of cast expressions as lvalues is deprecated
usb.c: In function `storage_probe':
usb.c:1002: warning: use of cast expressions as lvalues is deprecated
(seems ok to me)
livecd linux # mount /boot/
livecd linux # cp arch/i386/boot/bzImage /boot/2.4.25/bzImage
livecd linux # ls -l /boot/2.4.25/bzImage
-rw-r--r-- 1 root root 1085667 Dec 20 22:16 /boot/2.4.25/bzImage
livecd linux # exit
livecd / # reboot
|
i think the reason was "VGA console". so listen everyone: never turn it off at least in 2.4.x
cheers and thanks for all answers
shiny |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Raistlin l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/1784031407449a32cfd7c14.jpg)
Joined: 17 May 2004 Posts: 691 Location: Boston, MA
|
Posted: Tue Dec 21, 2004 7:27 am Post subject: |
|
|
cool - I'm glad it works now.
to answer the question about chroot: if you don't specify the interpreter then the default will be used (at least on that machine here - it's not a gentoo box, so I'm not sure if it's that way on all distributions)
cheers, R. _________________ Zwei Was Eins Initially
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
shiny n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1869241296405f6da95ff7f.jpg)
Joined: 08 Sep 2003 Posts: 17 Location: Wiesbaden - Germany
|
Posted: Tue Dec 21, 2004 12:07 pm Post subject: |
|
|
thanks, i'm so happy too took me 2 weeks to figure it out. now i will save any working config and just diff the last operation one with a modified if it doesn't work
Quote: |
then the default
Code:
/bin/sh
will be used (at least on that machine here - it's not a gentoo box, so I'm not sure if it's that way on all distributions)
|
bash already default on my box and that's why i didn't notice any difference. thanks anyway for info.
cheers |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|