Debian bootfloppies with -pa22 fails on 720/50
Hello,
I followed Richard Hirst's instructions:
palo -f /dev/null -k vmlinux -r root.bin -s lifimage \
-c "0/linux HOME=/ root=/dev/ram initrd=0/ramdisk"to modify the current Debian binary-hppa root.bin to boot 2.4.9-pa22 on my 720/50 (via rbootd lifimage). However, the problems from the 0.9.2 CD-ROM install returned:
Linux version 2.4.9-pa22 (fullung@dogbert) (gcc version 3.0.2 20010829 (prerelease)) #8 Sat Sep 22 02:57:21 SAST 2001
...
RAMDISK: Compressed image found at block 0
VFS: Mounted root (ext2 filesystem).handle_interruption() pid=1 command='init'handle_interruption() pid=1 command='init'handle_interruption() pid=1 command='init'
...
I'd be happy to test ANY (ANY! :-)) patches the great hackers of the PA-RISC domain might have to offer. My HP is depending on you to get the sweetest distro in the world installed! :-)
Regards,
Albert
Hello,
Thanks for the reply. I was considering exactly this course of action. Hopefully I can spot something then. I'll post my findings here. :-)
I was also thinking of adding some debug output to init itself. Seemingly it gets run, and during that process the kernel loses it...?
Regards,
Albert
Hello,
News from the front... :-)
The updated printk outputs:
handle_interruption() pid=1 command='init' code=18
I've also updated my init binary from the baseplus tarball to one I just cross-compiled from sysvinit-2.82 (along with modifying init.h to enable debugging output (#define DEBUG 1)), but it doesn't seem as if it is getting much further than the initial interruption; init probably isn't running very "far".
What next?
Regards,
Albert
Hi Albert,
Quoted 5 lines
Thanks for the reply. I was considering exactly this course of action. Hopefully I can spot something then. I'll post my findings here. :-)
I was also thinking of adding some debug output to init itself. Seemingly it gets run, and during that process the kernel loses it...?
There are some issues with 720 boxes. This old patch at least gets me started, although some alignment faults remain for some user space tools:
"Our" CPUs are very old. So there must be a line added in the arch/parisc/kernel/trap.c file. In the handle_interruption() you must add the line
`case 18:'
where
`case 15:'
`case 26:'is in the code, because these old CPUs use an older method of "reporting" page faults, etc...
There was a second patch posted some time ago, but that one didn't work for me:
Index: traps.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/traps.c,v retrieving revision 1.52
traps.c +7 -1
@@ -322,6 +322,11 @@ void handle_interruption(int code, struc fault_address = regs->ior;parisc_terminate ("Non access data tlb fault!" ,regs,code,fault_address); +case 18 :/* PCX-S processors don't use 26, 27, 28 */ +if (regs->ior &3 ) + goto unaligned_d_access; +/* Fall through */ +case 15 :case 26 : fault_address = regs->ior;
@@ -416,7 +421,8 @@ void handle_interruption(int code, strucforce_sig_info (SIGSEGV , &si, current);return ; -case 28 :/* Unaligned just causes SIGBUS for now */ + unaligned_d_access: +case 28 :handle_unaligned (regs);#if 0 die_if_kernel ("Unaligned data reference" , regs, code);
Cheers,
Jochen