No response from keyboard on Oldworld: possibly relevant kernel change
>From the patch-2.2.18.gz pot file:
<excerpt>
diff -u --new-file --recursive --exclude-from /usr/src/exclude
v2.2.17/drivers/block/rd.c linux/drivers/block/rd.c
--- v2.2.17/drivers/block/rd.c Sat Sep 9 18:42:34 2000
+++ linux/drivers/block/rd.c Wed Nov 8 23:00:34 2000
@@ -614,9 +614,11 @@
#ifdef CONFIG_MAC_FLOPPY
if(MAJOR(ROOT_DEV) == FLOPPY_MAJOR)
swim3_fd_eject(MINOR(ROOT_DEV));
+#ifdef CONFIG_BLK_DEV_INITRD
else if(MAJOR(real_root_dev) == FLOPPY_MAJOR)
swim3_fd_eject(MINOR(real_root_dev));
#endif
+#endif
printk(KERN_NOTICE
"VFS: Insert root floppy disk to be loaded into RAM disk and
press ENTER\n");
wait_for_keypress();
@@ -653,7 +655,9 @@
#define OF(args) args
+#ifndef memzero
#define memzero(s, n) memset ((s), 0, (n))
+#endif
typedef unsigned char uch;
</excerpt>
>From the most recent kernel 2.4.3 in the same spot:
<excerpt>
#ifdef CONFIG_BLK_DEV_FD
floppy_eject();
#endif
#ifdef CONFIG_MAC_FLOPPY
if(MAJOR(ROOT_DEV) == FLOPPY_MAJOR)
swim3_fd_eject(MINOR(ROOT_DEV));
else if(MAJOR(real_root_dev) == FLOPPY_MAJOR)
swim3_fd_eject(MINOR(real_root_dev));
#endif
printk(KERN_NOTICE
"VFS: Insert root floppy disk to be loaded into RAM disk and
press ENTER\n");
wait_for_keypress();
</excerpt>
It looks to me like the lines that were added in 2.2.18 just prior to the
Insert root
floppy prompt, which check for initrd, were reverted sometime before 2.4.3.
I don't
have a clue how to easily find out what revision the revert took place in,
but I'm thinking
this might be the cause of the no-response woes. ('Cause they probably had a
similar problem
and later fixed it by reverting.) I would normally look for something after
the wait_for_keypress
to have been changed, but I'm thinking maybe if the floppy doesn't get into
the right state before
the wait, the wait could last a long time.
Here are other possibilities of powerpc kernel changes in 2.2.18 related to
floppy,
boot, etc.
Summary of changes for 2.2.18. A full change document will follow later
2.2.18pre25
o Fix drivers/char/Makefile buglet (Chip Salzenberg)
o PPC syscall table fix (Chip Salzenberg)
2.2.18pre21
o Resnchronize Apple PowerMac codebase (Paul Mackerras & co)
o Merge powermac tree fixes into usb
o Powermac input device handling changes
o Fix console switch fonts
2.2.18pre19
o Update IDE floppy maintainer (Paul Bristow)
2.2.18pre18
o IDE floppy updates for clik support, cleanups (Paul Bristow)
2.2.18pre16
o Console 'quiet' boot option as in 2.4 (Rusty Russell)
o Fix PPC for loops per jiffy (Cort Dougan)
o Restore old block size on devices after a
partition scan (needed for powermac for one) (Michael Schmitz)
2.2.18pre10
o Allow PlanB video on generic PPC (Michel Lanners)
2.2.18pre9
o Use both fast and slow A20 gating on boot (Kira Brown)
| if your box doesnt boot I want to know about it...
| Needed for stuff like the AMD Elan
2.2.18pre8
o Alpha PCI boot up fix (Michal Jaegermann)
o Fix vt/keyboard dependancy in USB config (Arjan van de Ven)
2.2.18pre5
o Fix crash on boot problem with __setup stuff (me)
Linux 2.2.17 Release Notes
PowerPC
PPC should now be back in line between the main tree and the PPC
distribution save for USB.
o ATI video fixes
o Fix zImage for chrp platforms
o Numerous small fixes
--
Chris Tillman
tillman@azstarnet.com
Reply to: