|
View:
New views
16 Messages
—
Rating Filter:
Alert me
|
|
|
Serial Console Support in KernelHi Christian,
when I configured Elgar lately for the data center, I realized that the Debian kernel was without serial console support. I believe it would be nice to have this enabled by default, so could you please do so? TIA! :) BTW: Elgar dropped off the net and needs a caring hand. I don't know when the people at NMMN will find some time to have a look at it, but a serial console would surely help... ;) -- Ciao... // Fon: 0381-2744150 Ingo \X/ SIP: 2744150@... gpg pubkey: http://www.juergensmann.de/ij_public_key.asc -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelHi,
> BTW: Elgar dropped off the net and needs a caring hand. I don't know when > the people at NMMN will find some time to have a look at it, but a serial > console would surely help... ;) What sort of serial console do yo need - just enough to log in after a normal boot, for single user or for debugging the early boot stages? Michael -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Wed, Jun 11, 2008 at 05:24:04AM +0200, Michael Schmitz wrote:
>> BTW: Elgar dropped off the net and needs a caring hand. I don't know when >> the people at NMMN will find some time to have a look at it, but a serial >> console would surely help... ;) > What sort of serial console do yo need - just enough to log in after a > normal boot, for single user or for debugging the early boot stages? The latter... the sooner the better. :) -- Ciao... // Fon: 0381-2744150 Ingo \X/ SIP: 2744150@... gpg pubkey: http://www.juergensmann.de/ij_public_key.asc -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Tue, Jun 10, 2008 at 02:44:48PM +0200, Ingo Juergensmann wrote:
> Hi Christian, > > when I configured Elgar lately for the data center, I realized that the > Debian kernel was without serial console support. I believe it would be nice > to have this enabled by default, so could you please do so? TIA! :) Just tell me which option I need to activate, and I will try to include that in the next images, and I can also build some test images for you. Christian -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in Kernel>> Debian kernel was without serial console support. I believe it would be nice
>> to have this enabled by default, so could you please do so? TIA! :) > > Just tell me which option I need to activate, and I will try to include that > in the next images, and I can also build some test images for you. CONFIG_SERIAL_CONSOLE is the config option. AFAICS Amiga only offers two options - debug=mem saves the dmesg buffer in chip RAM for later reading by AmigaOS dmesg. Not too useful for us (Geert: could we leave the corresponding chunk in chipram untouched for reading it out using a different kernel (or different parameter, like debug=getmem ??) debug=ser is active once consoles have been set up (and it looks like you should be able to use it as command console as well). HTH, Michael -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, Jun 12, 2008 at 03:19:08AM +0200, Michael Schmitz wrote:
>>> Debian kernel was without serial console support. I believe it would be nice >>> to have this enabled by default, so could you please do so? TIA! :) >> Just tell me which option I need to activate, and I will try to include that >> in the next images, and I can also build some test images for you. > CONFIG_SERIAL_CONSOLE is the config option. Yes, I think so... > AFAICS Amiga only offers two options - debug=mem saves the dmesg buffer > in chip RAM for later reading by AmigaOS dmesg. Not too useful for us Indeed, especially at the moment without a suitable monitor at the data center. I plan to get one there when I'm visiting my parents the next time. > (Geert: could we leave the corresponding chunk in chipram untouched for > reading it out using a different kernel (or different parameter, like > debug=getmem ??) Would be nice to have, yes, but it's difficult to use when there's a non-booting kernel and you can't change the commandline remotely to boot another kernel. ;) A real Amiga bootloader with serial console would be really great for this! ;) > debug=ser is active once consoles have been set up (and it looks like you > should be able to use it as command console as well). Well, when the consoles are up you can use the normal serial console as well. I don't know what's the difference when you set debug=ser without looking it up... Anyway, it would be nice to have a serial console (system messages during boot) as soon as possible and we should setup at least Crest as well for using such a serial console. Due to it's VGA output and the FlickerFixer, Kullervo don't need this as urgent as Crest and Elgar, IMHO... -- Ciao... // Fon: 0381-2744150 Ingo \X/ SIP: 2744150@... gpg pubkey: http://www.juergensmann.de/ij_public_key.asc -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, 12 Jun 2008, Ingo Juergensmann wrote:
> On Thu, Jun 12, 2008 at 03:19:08AM +0200, Michael Schmitz wrote: > > AFAICS Amiga only offers two options - debug=mem saves the dmesg buffer > > in chip RAM for later reading by AmigaOS dmesg. Not too useful for us > > Indeed, especially at the moment without a suitable monitor at the data > center. I plan to get one there when I'm visiting my parents the next time. > > > (Geert: could we leave the corresponding chunk in chipram untouched for > > reading it out using a different kernel (or different parameter, like > > debug=getmem ??) Should be possible. Probably the nicest would be to copy the old data somewhere else, and provide it to the user of the new kernel through sysfs... > Would be nice to have, yes, but it's difficult to use when there's a > non-booting kernel and you can't change the commandline remotely to boot > another kernel. ;) One of my wild plans is to get kexec working. Then you can boot your test kernel using kexec. If it crashes, just reboot, and the normal bootloader boots the known-good kernel. > A real Amiga bootloader with serial console would be really great for this! > ;) Hey, amiga-lilo does have serial support! > > debug=ser is active once consoles have been set up (and it looks like you > > should be able to use it as command console as well). > > Well, when the consoles are up you can use the normal serial console as > well. I don't know what's the difference when you set debug=ser without > looking it up... debug=ser also gives you kernel messages, inclusing early debug console=ttyS0 gives you `late' kernel messages, plus user space console > Anyway, it would be nice to have a serial console (system messages during > boot) as soon as possible and we should setup at least Crest as well for > using such a serial console. Due to it's VGA output and the FlickerFixer, > Kullervo don't need this as urgent as Crest and Elgar, IMHO... Then you should probably use `debug=ser console=ttyS0', and set up amiga-lilo to use the serial console. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, Jun 12, 2008 at 09:28:40AM +0200, Geert Uytterhoeven wrote:
> On Thu, 12 Jun 2008, Ingo Juergensmann wrote: > > Would be nice to have, yes, but it's difficult to use when there's a > > non-booting kernel and you can't change the commandline remotely to boot > > another kernel. ;) > One of my wild plans is to get kexec working. Then you can boot your test > kernel using kexec. If it crashes, just reboot, and the normal bootloader > boots the known-good kernel. Yes, that would be great, especially when the IP power switches are installed at the data center. ;) IIRC, Smurf did some Amiga Shell scripting to emulate a similar behavior: if a certain file exists, rename it and boot that file/kernel. On the next boot the old kernel is loaded. That way a new kernel could be tested and if it's working properly it can be installed the proper way as the default kernel. Hmmm, maybe I (or someone else) can write such a script... > > A real Amiga bootloader with serial console would be really great for this! > > ;) > Hey, amiga-lilo does have serial support! Oh, amiga-lilo is actually working? Last I heard was that it had some issues and development was stuck. > > > debug=ser is active once consoles have been set up (and it looks like you > > > should be able to use it as command console as well). > > Well, when the consoles are up you can use the normal serial console as > > well. I don't know what's the difference when you set debug=ser without > > looking it up... > debug=ser also gives you kernel messages, inclusing early debug > console=ttyS0 gives you `late' kernel messages, plus user space console Ah, ok, I'll add debug=ser on Elgar then... > > Anyway, it would be nice to have a serial console (system messages during > > boot) as soon as possible and we should setup at least Crest as well for > > using such a serial console. Due to it's VGA output and the FlickerFixer, > > Kullervo don't need this as urgent as Crest and Elgar, IMHO... > Then you should probably use `debug=ser console=ttyS0', and set up > amiga-lilo to use the serial console. Well, I would prefer to test amiga-lilo locally before setting it up on remote hosts. ;) But adding the kernel params is a quick fix... ;) Erm, where can I get amiga-lilo? Aminet? -- Ciao... // Fon: 0381-2744150 Ingo \X/ SIP: 2744150@... gpg pubkey: http://www.juergensmann.de/ij_public_key.asc -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, 12 Jun 2008, Ingo Juergensmann wrote:
> On Thu, Jun 12, 2008 at 09:28:40AM +0200, Geert Uytterhoeven wrote: > > On Thu, 12 Jun 2008, Ingo Juergensmann wrote: > > > A real Amiga bootloader with serial console would be really great for this! > > > ;) > > Hey, amiga-lilo does have serial support! > > Oh, amiga-lilo is actually working? Last I heard was that it had some issues > and development was stuck. I think so. IIRC Roman Zippel fixed '060 support. I'm still using my old binaries (from 1997?), as my floppy drive is probably dead, and thus I'm a bit reluctant to change it. > > > Anyway, it would be nice to have a serial console (system messages during > > > boot) as soon as possible and we should setup at least Crest as well for > > > using such a serial console. Due to it's VGA output and the FlickerFixer, > > > Kullervo don't need this as urgent as Crest and Elgar, IMHO... > > Then you should probably use `debug=ser console=ttyS0', and set up > > amiga-lilo to use the serial console. > > Well, I would prefer to test amiga-lilo locally before setting it up on > remote hosts. ;) Of course. > But adding the kernel params is a quick fix... ;) > > Erm, where can I get amiga-lilo? Aminet? cvs.linux-m68k.org, CVS module m68kboot. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelHi,
>>> (Geert: could we leave the corresponding chunk in chipram untouched for >>> reading it out using a different kernel (or different parameter, like >>> debug=getmem ??) > > Should be possible. Probably the nicest would be to copy the old data > somewhere else, and provide it to the user of the new kernel through sysfs... Thanks, I'll look into that. crest spontaneously rebooted two days ago; debug=mem might help, well, debug that. >> Would be nice to have, yes, but it's difficult to use when there's a >> non-booting kernel and you can't change the commandline remotely to boot >> another kernel. ;) > > One of my wild plans is to get kexec working. Then you can boot your test > kernel using kexec. If it crashes, just reboot, and the normal bootloader > boots the known-good kernel. Wild plans indeed :-) >> A real Amiga bootloader with serial console would be really great for this! >> ;) > > Hey, amiga-lilo does have serial support! Good, now we just have to get all these boxes to use amiga-lilo (from memory, at least kullervo needs to load some sort of AmigaOS 060 support library before amiboot works - does amiga-lilo require such tricks as well?) Cheers, Michael -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, 12 Jun 2008, Michael Schmitz wrote:
> > > A real Amiga bootloader with serial console would be really great for > > > this! > > > ;) > > > > Hey, amiga-lilo does have serial support! > > Good, now we just have to get all these boxes to use amiga-lilo (from memory, > at least kullervo needs to load some sort of AmigaOS 060 support library > before amiboot works - does amiga-lilo require such tricks as well?) I assume Roman can tell you... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in Kernel>>> Hey, amiga-lilo does have serial support!
>> >> Good, now we just have to get all these boxes to use amiga-lilo (from memory, >> at least kullervo needs to load some sort of AmigaOS 060 support library >> before amiboot works - does amiga-lilo require such tricks as well?) > > I assume Roman can tell you... Just saw your other mail (hey, you guys awake yet ... I started to miss these instant replies :-). If you say 060 support has been fixed I'll take your word for it. Is that the same CVS server as the one for fbutils? Could not log on to that one the other day... Michael -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, Jun 12, 2008 at 10:42:49AM +0200, Ingo Juergensmann wrote:
> On Thu, Jun 12, 2008 at 09:28:40AM +0200, Geert Uytterhoeven wrote: > > > On Thu, 12 Jun 2008, Ingo Juergensmann wrote: > > > Would be nice to have, yes, but it's difficult to use when there's a > > > non-booting kernel and you can't change the commandline remotely to boot > > > another kernel. ;) > > One of my wild plans is to get kexec working. Then you can boot your test > > kernel using kexec. If it crashes, just reboot, and the normal bootloader > > boots the known-good kernel. > > Yes, that would be great, especially when the IP power switches are > installed at the data center. ;) > > IIRC, Smurf did some Amiga Shell scripting to emulate a similar behavior: > if a certain file exists, rename it and boot that file/kernel. On the next > boot the old kernel is loaded. That way a new kernel could be tested and if > it's working properly it can be installed the proper way as the default > kernel. > > Hmmm, maybe I (or someone else) can write such a script... I wrote a couple of scripts which are now used on crest and kullervo to switch betwen different kernels, taking into account if the last kernel booted successfully or not. There are not very pretty, but they seem to do the job. You should be able to see them on crest/kullervo. > > > A real Amiga bootloader with serial console would be really great for this! > > > ;) > > Hey, amiga-lilo does have serial support! > > Oh, amiga-lilo is actually working? Last I heard was that it had some issues > and development was stuck. My last try with Amiga-lilo created a crashing bootblock, there were problems on 060s... > > > > debug=ser is active once consoles have been set up (and it looks like you > > > > should be able to use it as command console as well). > > > Well, when the consoles are up you can use the normal serial console as > > > well. I don't know what's the difference when you set debug=ser without > > > looking it up... > > debug=ser also gives you kernel messages, inclusing early debug > > console=ttyS0 gives you `late' kernel messages, plus user space console > > Ah, ok, I'll add debug=ser on Elgar then... > > > > Anyway, it would be nice to have a serial console (system messages during > > > boot) as soon as possible and we should setup at least Crest as well for > > > using such a serial console. Due to it's VGA output and the FlickerFixer, > > > Kullervo don't need this as urgent as Crest and Elgar, IMHO... > > Then you should probably use `debug=ser console=ttyS0', and set up > > amiga-lilo to use the serial console. > > Well, I would prefer to test amiga-lilo locally before setting it up on > remote hosts. ;) > But adding the kernel params is a quick fix... ;) > > Erm, where can I get amiga-lilo? Aminet? I think there was a CVS on kullervo with the latest(?) source. I did build a package of it a little while ago... http://people.debian.org/~cts/debian-m68k/amiga-lilo/ I hope that is not the current source. Christian -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelOn Thu, Jun 12, 2008 at 11:42:41AM +0200, Christian T. Steigies wrote:
> I wrote a couple of scripts which are now used on crest and kullervo to > switch betwen different kernels, taking into account if the last kernel booted > successfully or not. There are not very pretty, but they seem to do the job. > You should be able to see them on crest/kullervo. No, I cannot... because DSA once thought it would be a nice idea to close my account on Crest. ;) > > > > A real Amiga bootloader with serial console would be really great for this! > > > Hey, amiga-lilo does have serial support! > > Oh, amiga-lilo is actually working? Last I heard was that it had some issues > > and development was stuck. > My last try with Amiga-lilo created a crashing bootblock, there were > problems on 060s... Maybe it's a good idea to test again? You're in front of aahz and can do things, whileas I'm currently in Berlin whereas Spice is in Rostock and it's still building packages. A crashing bootblock does less harm on aahz at the moment than on spice. ;) (I know: missing time ;) -- Ciao... // Fon: 0381-2744150 Ingo \X/ SIP: 2744150@... gpg pubkey: http://www.juergensmann.de/ij_public_key.asc -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelNew images for amiga and atari are here:
http://people.debian.org/~cts/debian-m68k/linux-image/ All other arches had SERIAL_CONSOLE already enabled, it seems. On Thu, Jun 12, 2008 at 12:02:29PM +0200, Ingo Juergensmann wrote: > On Thu, Jun 12, 2008 at 11:42:41AM +0200, Christian T. Steigies wrote: > > > I wrote a couple of scripts which are now used on crest and kullervo to > > switch betwen different kernels, taking into account if the last kernel booted > > successfully or not. There are not very pretty, but they seem to do the job. > > You should be able to see them on crest/kullervo. > > No, I cannot... because DSA once thought it would be a nice idea to close my > account on Crest. ;) user-startup calls autoboot (it seems I do not need any 060 commands or libraries, at least on kullervo). ;--- schnipp --- ;c:setpatch ;c:cpu060 EXECUTE s:autoboot ;--- schnapp --- autoboot looks like this: ;--- schnipp --- IF exists SYS:linux/boot-2.6.24-1 ECHO "Booting kernel 2.6.24-1" WAIT 10 DELETE SYS:linux/boot-2.6.24-1 EXECUTE SYS:linux/Linuxstart-2.6.24-1 ELSE ECHO "no kernel 2.6.24-1" ENDIF IF exists SYS:linux/boot-2.6.22 ECHO "Booting kernel 2.6.22" WAIT 10 DELETE SYS:linux/boot-2.6.22 EXECUTE SYS:linux/Linuxstart-2.6.22 ELSE ECHO "no kernel 2.6.22" ENDIF IF exists SYS:linux/boot-2.6.18-4 ECHO "Booting kernel 2.6.18-4" WAIT 10 DELETE SYS:linux/boot-2.6.18-4 EXECUTE SYS:linux/Linuxstart-2.6.18-4 ELSE ECHO "Booting fallback kernel" WAIT 5 EXECUTE c:Linuxstart ENDIF c:Linuxstart-2.4.31 ;--- schnapp --- linux/Linuxstart-2.6.24-1 is created by a script, looks like this: ;--- schnipp --- sys:bin/amiboot-5.6 -k sys:linux/vmlinux-2.6.24-1-amiga root=/dev/sdb4 video=amifb debug-mem ;--- schnapp --- to /etc/crontab I added this ;--- schnipp --- @reboot root /usr/local/sbin/select-kernelversion boot ;--- schnapp --- select-kernelversion is this script (which is slightly different on crest and kullervo for the ADOS and ROOT variables) ;--- schnipp --- #! /bin/bash # select kernelversion # install: copy uncompressed vmlinux to Amiga DOS partition, create boot # script # boot: create AmigaOS file to select default boot kernel #VER=2.6.18-4 VER=2.6.24-1 ARCH=amiga ADOS=/dev/sda1 ROOT=/dev/sdb4 echo "kernel version vmlinux-$VER-$ARCH" case "$1" in install) if [ -e "/boot/vmlinuz-$VER-$ARCH" ]; then mount $ADOS /mnt gunzip -cd /boot/vmlinuz-$VER-$ARCH > /mnt/linux/vmlinux-$VER-$ARCH echo \ "sys:bin/amiboot-5.6 -k sys:linux/vmlinux-$VER-$ARCH root=$ROOT video=amifb debug-mem" > /mnt/linux/Linuxstart-$VER echo "yes"> /mnt/linux/boot-$VER ls -l /mnt/linux/ umount /mnt fi ;; boot) if [ -e "/boot/vmlinuz-$VER-$ARCH" ]; then mount $ADOS /mnt echo "yes"> /mnt/linux/boot-$VER ls -l /mnt/linux/ umount /mnt fi ;; *) echo "Usage: select-kernelversion {install|boot}" exit 1 ;; esac exit 0 ;--- schnapp --- When a new kernel is installed, the script should be called with the install option, after VER has been updated. This kernel needs to be added (manually) to the top of the autoboot script, so it will be tried first. If that kernel fails to boot, on the next reboot, an older version will be tried, until one boots. If the new kernel failed, on the next reboot it will be activated again for autoboot, so this needs to be fixed manually as well. So a few things could be made better, but it has been working fine so far and there are several fallback kernels on the machine. > Maybe it's a good idea to test again? You're in front of aahz and can do > things, whileas I'm currently in Berlin whereas Spice is in Rostock and it's > still building packages. > A crashing bootblock does less harm on aahz at the moment than on spice. ;) > (I know: missing time ;) Since I need to reinstall, it can not hurt. But you guessed where the real problem is... Christian -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
|
|
Re: Serial Console Support in KernelHi,
On Thu, 12 Jun 2008, Geert Uytterhoeven wrote: > > Oh, amiga-lilo is actually working? Last I heard was that it had some issues > > and development was stuck. > > I think so. IIRC Roman Zippel fixed '060 support. Yes, it works fine on 060. The only bigger issue I know of is partitions above 4GB. I played with sending SCSI commands, but that doesn't work with SCSI emulation on IDE drives above 4GB. > I'm still using my old binaries (from 1997?), as my floppy drive is > probably dead, and thus I'm a bit reluctant to change it. I'm using a second boot partition for that. :) If one has never setup amiga-lilo it's likely to be a big help, I think it can be even any affs partition, as one will at least get a shell prompt. Maybe parted could be utilizied to help with setting this up correctly... > > But adding the kernel params is a quick fix... ;) > > > > Erm, where can I get amiga-lilo? Aminet? > > cvs.linux-m68k.org, CVS module m68kboot. That's were the development for the Amiga support is a little stuck. The latest release version from me is at http://www.xs4all.nl/~zippel/amiga-lilo-2.3.tar.gz bye, Roman -- To UNSUBSCRIBE, email to debian-68k-REQUEST@... with a subject of "unsubscribe". Trouble? Contact listmaster@... |
| Free Forum Powered by Nabble | Forum Help |