home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!mcsun!news.funet.fi!hydra!klaava!torvalds
- From: torvalds@klaava.Helsinki.FI (Linus Torvalds)
- Subject: Re: More 0.99 boot problems (even after fixes)
- Message-ID: <1992Dec16.155659.13740@klaava.Helsinki.FI>
- Keywords: 0.99, boot, hang, fixes
- Organization: University of Helsinki
- References: <dpn2.208.724469868@po.CWRU.Edu> <dpn2.209.724487553@po.CWRU.Edu> <2c.t03Kac4Y200@amdahl.uts.amdahl.com>
- Date: Wed, 16 Dec 1992 15:56:59 GMT
- Lines: 34
-
- In article <2c.t03Kac4Y200@amdahl.uts.amdahl.com> garyf@uts.amdahl.com (Gary Faulkner) writes:
- >Hello all
- >
- >I have been trying to get 0.99 to boot on my 486 tonight, with no
- >luck. It's dying in a very strange (to me) place...
- >
- >The system comes up and appears to sense all of the devices, until
- >it gets to the call to move_to_user_mode() in init/main.c. When
- >this call is made, the system just hangs. I can't even
- >ctl-alt-del reboot. I have to reset the machine.
- >
- >I'm not very 80x86 assembler literate, so I'm not sure what
- >move_to_user_mode() is trying to do. Is it 'supposed' to return to
- >main? If so, it is not. I put a printk() before and after it, and
- >the one before prints, but nothing thereafter.
-
- You cannot use a "printk()" after calling move_to_user_mode: you no
- longer have priviledges, so the swapper has to open a file like
- everybody else (and it cannot do this: the swapper may not sleep, so you
- can open files only after forking (in init)).
-
- The above means that it's essentially impossible to debug the thing
- until it has forked(), but I doubt the problem is in move_to_user_mode()
- anyway: that part of the kernel hasn't changed at all in the last few
- releases.
-
- Make sure that you have applied the inode.c patch (search for
- "IMPORTANT" in the subject line on col or cola), as without that patch
- you can get errors in various places at bootup. Also make sure that the
- math-emulation code is compiled into the kernel if you don't have a
- coprocessor, as otherwise init will die, and you'll be looking at a very
- dead machine.
-
- Linus
-