Subject: Re: Unable to boot latest snapshot with Microdrive
To: None <port-hpcmips@netbsd.org>
From: Russell McManus <russell_mcmanus@yahoo.com>
List: port-hpcmips
Date: 09/22/2002 15:32:12
Can someone who is able to build hpcmips kernels take pity on the z50
/ microdrive users out there who want to upgrade to 1.6 apply this
patch, build a kernel, and post it on a web page somewhere?
This would be greatly appreciated. I just tried to downgrade just the
kernel to the latest kernel to be found at
http://www.netbsd.org/~greg/hpcmips/, but it didn't work, some problem
with /etc/rc.subr not being found.
-russ
Takao Shinohara <shin@sm.sony.co.jp> writes:
> David Krause <netbsd@davidkrause.com> writes:
> > I am unable to boot the latest snapshot from the following URLs:
> > ftp://releng.netbsd.org/pub/NetBSD-daily/200209080000/
> > ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6/
> >
> > The snapshot from the naobsd site works fine however.
> > http://kame.naobsd.org/snapshots/20020812-1.6F/
> >
> > I have a IBM Workpad Z50 with 340 MB Microdrive and it gives the
> > following errors. It looks like it is not waiting long enough before
> > trying to mount the root. Naoki's kernel outputs "pcmcia1: card irq 3"
> > four times before trying to mount. Does anybody else have this problem?
>
> Attached patch (against 1.6 souce) seems to 'fix' the problem.
> But I am not sure this is the right way.
>
> --- Takao Shinohara
>
> Index: i82365.c
> ===================================================================
> RCS file: /cvsroot/syssrc/sys/dev/ic/i82365.c,v
> retrieving revision 1.65
> diff -u -C8 -r1.65 i82365.c
> *** i82365.c 2001/12/15 13:23:21 1.65
> --- i82365.c 2002/09/16 08:13:38
> ***************
> *** 1498,1513 ****
> --- 1498,1514 ----
> st_pcic_read(h, idx)
> struct pcic_handle *h;
> int idx;
> {
>
> if (idx != -1)
> bus_space_write_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_INDEX,
> h->sock + idx);
> + delay(1);
> return (bus_space_read_1(h->ph_bus_t, h->ph_bus_h, PCIC_REG_DATA));
> }
>
> static void
> st_pcic_write(h, idx, data)
> struct pcic_handle *h;
> int idx;
> u_int8_t data;