From: Jeff D. <jd...@ka...> - 2000-06-18 12:55:47
|
wst...@po... said: > unable to allocate pty/tty pair Do you have the kernel mounting devfs? If so, that will cover up /dev, and things likely won't work. Try booting with 'devfs=nomount' and see if it works better. Jeff |
From: Jeff D. <jd...@ka...> - 2000-06-18 15:37:12
|
> Try booting with 'devfs=nomount' and see if it works better. I forgot to mention that you'll also need to add a ubd device or two (block major 98) to /dev. BTW, what is Tom's Root/boot? Is there anything special about it? Would it make sense to add it to my downloads when it can boot uml? Jeff |
From: William S. <wst...@po...> - 2000-06-18 17:26:08
Attachments:
toms-uml.tar.gz
|
Good morning, Jeff, On Sun, 18 Jun 2000, Jeff Dike wrote: > > Try booting with 'devfs=nomount' and see if it works better. OK, that helped. > I forgot to mention that you'll also need to add a ubd device or two (block > major 98) to /dev. That didn't seem to make a difference to my current problem; /sbin/init seems to execute rc.S but not get any further. I added an "echo Exiting rc.S" to the end and that shows up on the screen, but the corresponding "entering rc.M" does not show up on the screen. Init and the tracing thread start fighting for CPU time. Here's a snippet from strace -p 6081 (the tracing thread). 6083 is init. I'm not sure whether this is normal or abnormal: --- SIGCHLD (Child exited) --- wait4(-1, [WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP], WUNTRACED, NULL) = 6083 gettimeofday({961299583, 134497}, NULL) = 0 ptrace(PTRACE_PEEKUSER, 6083, 4*EIP, [0x4005b1b4]) = 0 ptrace(PTRACE_???, 6083, 0, 0x50fe827c) = 0 ptrace(PTRACE_???, 6083, 0, 0x50fe82c0) = 0 ptrace(PTRACE_POKEUSER, 6083, 4*ORIG_EAX, 0x14) = 0 ptrace(PTRACE_CONT, 6083, 0, SIG_0) = 0 --- SIGCHLD (Child exited) --- wait4(-1, [WIFSTOPPED(s) && WSTOPSIG(s) == SIGUSR1], WUNTRACED, NULL) = 6083 gettimeofday({961299583, 139633}, NULL) = 0 ptrace(PTRACE_PEEKUSER, 6083, 4*EIP, [0x100a4541]) = 0 ptrace(PTRACE_???, 6083, 0, 0x50fe827c) = 0 ptrace(PTRACE_SYSCALL, 6083, 0, SIG_0) = 0 --- SIGCHLD (Child exited) --- wait4(-1, [WIFSTOPPED(s) && WSTOPSIG(s) == SIGTRAP], WUNTRACED, NULL) = 6083 gettimeofday({961299583, 142397}, NULL) = 0 ptrace(PTRACE_PEEKUSER, 6083, 4*EIP, [0x4005b1b4]) = 0 ptrace(PTRACE_???, 6083, 0, 0x50fe827c) = 0 ptrace(PTRACE_???, 6083, 0, 0x50fe82c0) = 0 ptrace(PTRACE_POKEUSER, 6083, 4*ORIG_EAX, 0x14) = 0 ptrace(PTRACE_CONT, 6083, 0, SIG_0) = 0 --- SIGCHLD (Child exited) --- (repeat, ad infinitum) By adding "init=/bin/ash" to the command line, I can get to a command prompt. Hey, we're getting somewhere, bit by bit. > BTW, what is Tom's Root/boot? Is there anything special about it? Would it > make sense to add it to my downloads when it can boot uml? Toms Root/boot (available at ftp.toms.net) is a single floppy Linux. Tom Oehser <to...@to...> has done a marvelous job of packing an entire recovery environment into a 1.7M floppy. It's really indespensible for emergencies. Ny using a libc5 environment and doing insane things to shrink the binaries, he's succeded at getting a very functional Linux system on a single floppy. I'd love to see it as one of the available root environments for uml. He does have a short copyright message and two urls that he'd like included in any derivative works, but I suspect that's not too much of a problem; they could be included in a short README.toms. Quite honestly, if the last few details can be worked out, the availability of a 3.6M root filesystem is a nice plus for simple projects. While I'm all for full distributions and their features, a slim root_fs should be useful in itself. I've attached a tar file of the current work. I'll be traveling for a few days, so if anybody feels like playing, feel free. I'd love to see what people find... mkdir --parents /mnt/spare/mirrors/ #Or change workpath in the script cd /mnt/spare/mirrors tar -xzvf toms-uml.tar.gz cd /mnt/spare/mirrors/toms-uml If you don't have wget on your system, you'll have to manually download tomsrtbt-1.7.205.tar.gz from ftp.toms.net to /mnt/spare/mirrors/toms-uml Copy/link the uml kernel into /mnt/spare/mirrors/toms-uml . ./mk_toms_root 1.7.205 Cheers, - Bill --------------------------------------------------------------------------- I called up the Bureau of Alcohol, Tobacco, and Firearms regional office and asked, "What wine goes best with an M-16?" The guy who answered did his best to be helpful: "That depends. What are you smoking?" (Courtesy of Andrej Todosic <ato...@ub...>) -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |
From: Jeff D. <jd...@ka...> - 2000-06-18 19:03:23
|
I got it to boot with no changes to the disk itself except for adding an /etc/passwd (not even /dev/ubd/*, which I forgot :-). Your immediate problem is probably that I have the old select syscall hooked up wrong. It goes into an infinite loop returning an error because the arguments are being picked up wrong in the kernel. Fixing that and another problem gives me a clean boot. If you are building from sources, I can give you patches which fix things. And what's with no /etc/passwd, anyway? Is there some other way to get a shell out of it? > I'd love to see it as one of the available root environments for uml. > He does have a short copyright message and two urls that he'd like > included in any derivative works, but I suspect that's not too much of > a problem; they could be included in a short README.toms. OK, I can stick it up there once I put up a kernel that can boot it. Jeff |
From: William S. <wst...@po...> - 2000-06-19 16:27:25
|
Good afternoon, Jeff, On Sun, 18 Jun 2000, Jeff Dike wrote: > I got it to boot with no changes to the disk itself except for adding an > /etc/passwd (not even /dev/ubd/*, which I forgot :-). I get the impression I didn't add those devices correctly; I added /dev/udbX instead of /dev/ubd/X. Which is correct? > Your immediate problem is probably that I have the old select syscall hooked > up wrong. It goes into an infinite loop returning an error because the > arguments are being picked up wrong in the kernel. Fixing that and another > problem gives me a clean boot. I'll lay odds that was it. I take it this is a global fix that needed to be made, rather than some custom fix for Toms? > If you are building from sources, I can give you patches which fix things. I should start doing that someday. *smile* Darn it, it's so _convenient_ to use your precompiled ones! On the other hand, I would like to see if the uml patch meshes with the ac-x series. > And what's with no /etc/passwd, anyway? Is there some other way to get a > shell out of it? It actually does create /etc/passwd when the system boots. From /fl/rc.custom.gz: cat>passwd<<X root:$PASSWD:0:0::/:/bin/sh shutdown:*:6:0::/:/usr/bin/shutdown halt:*:7:0::/:/usr/bin/halt X and /fl/settings.s: PASSWD=xxxx > > I'd love to see it as one of the available root environments for uml. > > He does have a short copyright message and two urls that he'd like > > included in any derivative works, but I suspect that's not too much of > > a problem; they could be included in a short README.toms. > > OK, I can stick it up there once I put up a kernel that can boot it. Deal. If it makes sense to you, we could have both the prebuilt root_fs (with or without the actual uml-kernel, as you choose), and something similar to the toms-uml.tar.gz I just sent out; the build script and the necessary changes to build a root_fs. As a side note, what would you think of splitting the kernel from the root_fs instead of making them a unified package? That would save you the effort of rebuilding the unified package each time a new kernel comes out. On the other hand, it means an extra step for the users. 6 of one, half dozen of the other... Cheers, - Bill --------------------------------------------------------------------------- /* * Leonard, I'll tie you, draw around you a pentagram * and read this file. Aloud. */ - from kernel 2.3.40-pre6's drivers/block/DAC960.c -------------------------------------------------------------------------- William Stearns (wst...@po...). Mason, Buildkernel, named2hosts, and ipfwadm2ipchains are at: http://www.pobox.com/~wstearns LinuxMonth; articles for Linux Enthusiasts! http://www.linuxmonth.com -------------------------------------------------------------------------- |
From: Jeff D. <jd...@ka...> - 2000-06-19 17:57:44
|
wst...@po... said: > I get the impression I didn't add those devices correctly; I added / > dev/udbX instead of /dev/ubd/X. Which is correct? The convention would be /dev/udbX in a non-devfs environment, but it's arbitrary, since you're going to have to stick those names in fstab (which is about the only thing that cares), and mount will use whatever names you give it. > I'll lay odds that was it. I take it this is a global fix that > needed to be made, rather than some custom fix for Toms? Yeah. It was stupid, and I thought I had checked all of the entry points to make sure they were right. > It actually does create /etc/passwd when the system boots. From /fl/ > rc.custom.gz: Then why didn't it? > As a side note, what would you think of splitting the kernel from the > root_fs instead of making them a unified package? That would save you > the effort of rebuilding the unified package each time a new kernel > comes out. On the other hand, it means an extra step for the users. > 6 of one, half dozen of the other... I do that as a convenience. It occupies an interesting (NOT) hour or so of my time fiddling with the sourceforge webby interface. So, it's not all that big a deal. Jeff |