* Booting Linux without a head? @ 2000-10-18 4:00 Mike Sullivan 2000-10-18 4:00 ` Marble Head 0 siblings, 1 reply; 8+ messages in thread From: Mike Sullivan @ 2000-10-18 4:00 UTC (permalink / raw) I am trying to install/boot linux on an ES40 without a graphics card. I have the Vt port connected to the serial port on a PC The boot process hangs at the kernel boot phase at which point I get a bit of garbage on the terminal. I ended up installing the OS by placing placing a video card temporarily in the machine. But upon removal I get the same symptom as with the install boot. I found this in the Alpha FAQ >12.4 Can Linux/Alpha Run Without Graphics Card? >The firmware can be controlled over a serial line terminal at 9600 Baud >and it is possible to boot Linux/Alpha in that manner, but Linux >itself does not currently support headless boots. There are kernel >patches floating on the net that add this functionality, however. Does anyone know where these patches are. Mike ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-18 4:00 Booting Linux without a head? Mike Sullivan @ 2000-10-18 4:00 ` Marble Head 2000-10-18 4:00 ` JJ 0 siblings, 1 reply; 8+ messages in thread From: Marble Head @ 2000-10-18 4:00 UTC (permalink / raw) The information you found is not exactly true. Linux itself does, in fact, support headless boot, if you build it into the kernel. Problem is, I've never seen any distribution that has this built into the installation. Needing to do this, here's what I did: (You can read all this stuff below, but believe me, it's far easier to locate a graphics card for installation purposes, and only use the headless mode later on, when the system is installed) The easiest thing to do is: Find a graphics card to use for installation, and afterward, put the machine into headless mode. Using another linux box, build a kernel. Pay particular attention to Character Devices, virtual term console on virtual term standard/generic (dumb) serial support support for console on serial port Next, I downloaded the rescue and root floppies from ftp://ftp.debian.org/pub/Linux/distributions/debian/dists/stable/main/disks-alpha/current Also download the base and drivers. Available as large tarballs or disk images. On the rescue disk, replace the old kernel with the recently built one. The next problem was: When I boot with this command b dva -fi whatever -fl "root=/dev/fd0 console=ttyS0,9600 load_ramdisk=1" there's a problem The ramdisk prompt won't take keyboard input from a serial line. Instead use: b dva -fi whatever -fl "root=/dev/fd0 console=ttyS0,9600 load_ramdisk=1 prompt_ramdisk=0" You have to watch the led, and swap disks when it stops, without waiting for the prompt. A couple more pitfalls to expect: I think the debian install doesn't put a getty on serial, so you might have to modify /etc/inittab and/or install a copy of getty. The kernel may not recognize the name 'ttyS0' so you might have to look up the major and minor numbers. Things might still fail. I did it about a couple months ago, and I don't remember exactly how things turned out. I might have given in and used the graphics card. Mike Sullivan wrote: > I am trying to install/boot linux on an ES40 without a graphics card. > I have the Vt port connected to the serial port on a PC > The boot process hangs at the kernel boot phase at which point > I get a bit of garbage on the terminal. > I ended up installing the OS by placing placing a video card temporarily > > in the machine. But upon removal I get the same symptom as with the > install boot. > > I found this in the Alpha FAQ > > >12.4 Can Linux/Alpha Run Without Graphics Card? > > >The firmware can be controlled over a serial line terminal at 9600 Baud > > >and it is possible to boot Linux/Alpha in that manner, but Linux > >itself does not currently support headless boots. There are kernel > >patches floating on the net that add this functionality, however. > > Does anyone know where these patches are. > > Mike ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-18 4:00 ` Marble Head @ 2000-10-18 4:00 ` JJ 2000-10-20 2:41 ` Michal Jaegermann 0 siblings, 1 reply; 8+ messages in thread From: JJ @ 2000-10-18 4:00 UTC (permalink / raw) which dist do you have? The current kernels are built with serial console enabled just add "console=ttyS0" to the -fl string you boot with, or if you use aboot.conf, add "console=ttyS0" to the entries. (example boot dka0 -fi 2/boot/vmlinuz -fl "root=/dev/sda2 console=ttyS0") You do not need to specify the ttyS0 parameters, the defaults are correct. Now... a little additional. You have to add a "getty" to /etc/inittab so you can get a prompt. Copy the tty6 entry, make it 7: and the device is /dev/ttyS0 Edit "/etc/securetty" and add ttyS0, so you can login as root on ttyS0.. This works for me JJ Marble Head <Marble.Head@nospam.guacamole.com> wrote in message news:39EDDD73.DF7A3826@nospam.guacamole.com... > The information you found is not exactly true. > Linux itself does, in fact, support headless boot, if you build it into the > kernel. > Problem is, I've never seen any distribution that has this built into the > installation. > Needing to do this, here's what I did: > > (You can read all this stuff below, but believe me, it's far easier to > locate a graphics card for installation purposes, and only use the headless > mode later on, when the system is installed) > The easiest thing to do is: Find a graphics card to use for installation, > and afterward, put the machine into headless mode. > > Using another linux box, build a kernel. Pay particular attention to > Character Devices, > virtual term > console on virtual term > standard/generic (dumb) serial support > support for console on serial port > > Next, I downloaded the rescue and root floppies from > > ftp://ftp.debian.org/pub/Linux/distributions/debian/dists/stable/main/disks- alpha/current > > Also download the base and drivers. Available as large tarballs or disk > images. > > On the rescue disk, replace the old kernel with the recently built one. > > The next problem was: > When I boot with this command > b dva -fi whatever -fl "root=/dev/fd0 console=ttyS0,9600 load_ramdisk=1" > > there's a problem > The ramdisk prompt won't take keyboard input from a serial line. Instead > use: > b dva -fi whatever -fl "root=/dev/fd0 console=ttyS0,9600 load_ramdisk=1 > prompt_ramdisk=0" > You have to watch the led, and swap disks when it stops, without waiting for > the prompt. > > A couple more pitfalls to expect: > I think the debian install doesn't put a getty on serial, so you might have > to modify /etc/inittab and/or install a copy of getty. > The kernel may not recognize the name 'ttyS0' so you might have to look up > the major and minor numbers. > Things might still fail. I did it about a couple months ago, and I don't > remember exactly how things turned out. I might have given in and used the > graphics card. > > Mike Sullivan wrote: > > > I am trying to install/boot linux on an ES40 without a graphics card. > > I have the Vt port connected to the serial port on a PC > > The boot process hangs at the kernel boot phase at which point > > I get a bit of garbage on the terminal. > > I ended up installing the OS by placing placing a video card temporarily > > > > in the machine. But upon removal I get the same symptom as with the > > install boot. > > > > I found this in the Alpha FAQ > > > > >12.4 Can Linux/Alpha Run Without Graphics Card? > > > > >The firmware can be controlled over a serial line terminal at 9600 Baud > > > > >and it is possible to boot Linux/Alpha in that manner, but Linux > > >itself does not currently support headless boots. There are kernel > > >patches floating on the net that add this functionality, however. > > > > Does anyone know where these patches are. > > > > Mike > ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-18 4:00 ` JJ @ 2000-10-20 2:41 ` Michal Jaegermann 2000-10-20 4:00 ` Marble Head 2000-10-20 4:00 ` Hartmann Schaffer 0 siblings, 2 replies; 8+ messages in thread From: Michal Jaegermann @ 2000-10-20 2:41 UTC (permalink / raw) JJ (john.jemiolo@mindspring.com) wrote: : which dist do you have? : The current kernels are built with serial console enabled At least those distributed by us, i.e. Hard Data. :-) : just add "console=ttyS0" to the -fl string you boot with, or if you use : aboot.conf, add "console=ttyS0" to the entries. The funny thing is that I was booting recently UP1100 with no video card at all. SRM autodected a serial port and getting to an SRM prompt was not a problem. Actually it was quite chatty and dumped on my screen a lot of mesages you normally do not see while booting with a regular monitor attached. Using the method like above did work but it had this disconcerting habit that all startup messages vanished. The screen was clear up to the moment when 'login:' prompt appeared after a while and from that moment things looked as usual. Also typing 'shutdown -h now' rendered the whole thing silent until an SRM prompt returned after a prolonge pause. OTOH booting _without_ "console=ttyS0" in -flags, but with a kernel with a support for a serial console, caused startup and shutdown to look as usual - with all usual chatter on a terminal screen. This effect may depend on properties of a particular SRM. I did not have an opportunity to try that recently on some other boards. If you are booting headless you should remember to add in your /etc/inittab a line which spawns some kind of getty on /dev/ttyS0. Something like that: 0:2345:respawn:/sbin/mingetty ttyS0 should do for Red Hat distributions. Also do not forget to add /dev/ttyS0 to your /etc/securetty or you may have troubles to log in into your freshly rebooted machine if only a root account is on it. :-) Running some services is also kind of pointless in such situations. 'keytable' and 'gpm' come to mind as prime candidates to turn off. Likely 'kudzu' as well. Quite likely more - depends on your plans. Michal ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-20 2:41 ` Michal Jaegermann @ 2000-10-20 4:00 ` Marble Head 2000-10-21 4:00 ` Michal Jaegermann 2000-10-20 4:00 ` Hartmann Schaffer 1 sibling, 1 reply; 8+ messages in thread From: Marble Head @ 2000-10-20 4:00 UTC (permalink / raw) > Using the method like above did work but it had this disconcerting > habit that all startup messages vanished. The screen was clear up > to the moment when 'login:' prompt appeared after a while and from > that moment things looked as usual. Also typing 'shutdown -h now' > rendered the whole thing silent until an SRM prompt returned after > a prolonge pause. > > OTOH booting _without_ "console=ttyS0" in -flags, but with a kernel with > a support for a serial console, caused startup and shutdown to look as > usual - with all usual chatter on a terminal screen. My guess is you were actually using ttyS1, but didn't know it. Whatever you do, you want to be sure you *can* see those messages at startup and shutdown. If those are missing, then all kernel messages are missing too. Usually you don't have any kernel messages except startup and shutdown, but say you have a scsidisk i/o error or something, you want to know about it. ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-20 4:00 ` Marble Head @ 2000-10-21 4:00 ` Michal Jaegermann 0 siblings, 0 replies; 8+ messages in thread From: Michal Jaegermann @ 2000-10-21 4:00 UTC (permalink / raw) Marble Head (Marble.Head@nospam.guacamole.com) wrote: : My guess is you were actually using ttyS1, but didn't know it. Strange as it may sound but most of the time I have some idea what I am using. Morever, as that machine at that moment had only a root account, and mingetty was running on ttyS0, and ttyS1 was not listed in /etc/securetty I would have small problems with logging in if connected via ttyS1, wouldn't I? Even assuming that your guess is correct what that would change? : Whatever you do, you want to be sure you *can* see those messages at startup : and shutdown. If those are missing, then all kernel messages are missing : too. Yeap! That was the whole point although you may later examine 'dmesg' output. Michal ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-20 2:41 ` Michal Jaegermann 2000-10-20 4:00 ` Marble Head @ 2000-10-20 4:00 ` Hartmann Schaffer 2000-10-21 4:00 ` JJ 1 sibling, 1 reply; 8+ messages in thread From: Hartmann Schaffer @ 2000-10-20 4:00 UTC (permalink / raw) In article <8sobc6$q4g$1@rover.ucs.ualberta.ca>, Michal Jaegermann <michal@phys.ualberta.ca> wrote: > ... >If you are booting headless you should remember to add in your >/etc/inittab a line which spawns some kind of getty on /dev/ttyS0. >Something like that: >0:2345:respawn:/sbin/mingetty ttyS0 better make that mgetty or gettyps. unless things changed recently, mingetty will not work on serial terminals (it was introduced as a small and efficient getty for the typical workstation situation). or do you link the name to some other getty? > ... hs ^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Booting Linux without a head? 2000-10-20 4:00 ` Hartmann Schaffer @ 2000-10-21 4:00 ` JJ 0 siblings, 0 replies; 8+ messages in thread From: JJ @ 2000-10-21 4:00 UTC (permalink / raw) Mingetty works just find on the serial port, it's preferred, if you do not want all the modem handling junk.. HS's inittab entry is correct.. If you have serial console support and DO NOT add "console=ttyS0" to the boot_flags (-fl) The kernel boot messages will try to display to a graphics display and will not be directed to the serial port. Same for shutdowns, that's why it looks silent. If there is NO graphics card present (Physically Removed), the kernel will automatically redirect to the serial port, if its built into the kernel. So: Graphics + Serial console support + NO "console=ttyS0" = ttyS0 only displays the login prompt after bootup completes Graphics + Serial console support+ "console=ttyS0" = ttyS0 displays the bootup kernel messages and init messages.. No graphics card installed + serial console support + NO "console=ttyS0" = Kernel redirects to serial console on ttyS0 (if present) else panics. JJ Hartmann Schaffer <hs@paradise.nirvananet> wrote in message news:8sr3aq$qln$1@paradise.nirvananet... > In article <8sobc6$q4g$1@rover.ucs.ualberta.ca>, > Michal Jaegermann <michal@phys.ualberta.ca> wrote: > > ... > >If you are booting headless you should remember to add in your > >/etc/inittab a line which spawns some kind of getty on /dev/ttyS0. > >Something like that: > >0:2345:respawn:/sbin/mingetty ttyS0 > > better make that mgetty or gettyps. unless things changed recently, > mingetty will not work on serial terminals (it was introduced as a > small and efficient getty for the typical workstation situation). or > do you link the name to some other getty? > > > ... > > hs ^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2000-10-21 4:00 UTC | newest] Thread overview: 8+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2000-10-18 4:00 Booting Linux without a head? Mike Sullivan 2000-10-18 4:00 ` Marble Head 2000-10-18 4:00 ` JJ 2000-10-20 2:41 ` Michal Jaegermann 2000-10-20 4:00 ` Marble Head 2000-10-21 4:00 ` Michal Jaegermann 2000-10-20 4:00 ` Hartmann Schaffer 2000-10-21 4:00 ` JJ
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox