Subject: Re: Problems with -current on 425e
To: Thilo Manske <Thilo.Manske@HEH.Uni-Oldenburg.DE>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: port-hp300
Date: 04/17/2002 14:10:59
> But I want -current, so I crosscompiled hp300 on my i386 (the new toolchain
> rocks!) but the 425e silently dies after loading the kernel from network.

Can you post the dmesg so I know what a 425e looks like?

Try the following patch:


--- dev/apci.c.orig     Wed Apr 17 14:06:29 2002
+++ dev/apci.c  Wed Apr 17 14:08:33 2002
@@ -113,9 +113,7 @@
 
 #include <dev/cons.h>
 
-#include <hp300/dev/dioreg.h>          /* to check for dca at 9 */
-#include <hp300/dev/diovar.h>
-#include <hp300/dev/diodevs.h>
+#include <hp300/dev/intiovar.h>
 
 #include <hp300/dev/frodoreg.h>
 #include <hp300/dev/frodovar.h>
@@ -904,7 +902,7 @@
        if (machineid != HP_425 || mmuid != MMUID_425_E)
                return (1);
 
-        if (bus_space_map(bst, addr, DIOCSIZE, 0, &bsh))
+        if (bus_space_map(bst, addr, INTIO_DEVSIZE, 0, &bsh)
)
                 return (1);
 
         va = bus_space_vaddr(bst, bsh);

--- hp300/autoconf.c.orig     Wed Apr 17 13:57:57 2002
+++ hp300/autoconf.c  Wed Apr 17 14:02:56 2002
@@ -801,7 +801,7 @@
                return;
 #endif
 #if NAPCI > 0
-       if (!dio_scan(apcicnattach))
+       if (!apcicnattach(HP300_BUS_SPACE_INTIO, 0x1c020, -1))
                return;
 #endif
 #if NDCM > 0

	-- Gregory McGarry <g.mcgarry@ieee.org>