There is an error:

../../../../dev/usb/if_udav.c
../../../../dev/usb/if_udav.c:171: error: 'USB_PRODUCT_UNKNOWN4_DM9601_2' 
undeclared here (not in a function)
*** Error code 1




----- Original Message -----
From: Stuart Henderson <st...@openbsd.org>
To: Stefanus Hermawan <slashwa...@yahoo.com>
Cc: Jonathan Gray <j...@jsg.id.au>; "bugs@openbsd.org" <bugs@openbsd.org>
Sent: Wednesday, April 24, 2013 6:33 AM
Subject: Re: Driver for Kontron (Industrial Computer Source / ICS Advent)
 DM9601 Fast Ethernet Adapter

On 2013/04/23 23:28, Stefanus Hermawan wrote:
> Could you tell me how to apply this diff? Step by step please.

cd /sys/dev/usb
ftp -o- 'http://marc.info/?l=openbsd-bugs&m=136671009414593&q=raw' | patch -Ep0
make
cd /sys/arch/<--whatever-->/conf
config GENERIC
cd ../COMPILE/GENERIC
make && sudo make install



> Sent from my iPhone
> 
> On Apr 23, 2013, at 4:40 PM, Jonathan Gray <j...@jsg.id.au> wrote:
> 
> > Try the following diff, you'll have to run make in
> > sys/dev/usb after applying.
> > 
> > Index: usbdevs
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/usb/usbdevs,v
> > retrieving revision 1.598
> > diff -u -p -r1.598 usbdevs
> > --- usbdevs    7 Mar 2013 23:39:14 -0000    1.598
> > +++ usbdevs    23 Apr 2013 09:34:55 -0000
> > @@ -4045,6 +4045,7 @@ product UNKNOWN3 ZD1211B    0x1233 ZD1211B
> > 
> > /* Unknown vendor 4 */
> > product UNKNOWN4 DM9601        0x8101 DM9601
> > +product UNKNOWN4 DM9601_2    0x9700 DM9601
> > 
> > /* Unknown vendor 5 */
> > product UNKNOWN5 NF_RIC        0x0001    NF RIC
> > Index: if_udav.c
> > ===================================================================
> > RCS file: /cvs/src/sys/dev/usb/if_udav.c,v
> > retrieving revision 1.61
> > diff -u -p -r1.61 if_udav.c
> > --- if_udav.c    28 Mar 2013 03:58:03 -0000    1.61
> > +++ if_udav.c    23 Apr 2013 09:35:15 -0000
> > @@ -165,6 +165,7 @@ static const struct udav_type {
> >    {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ZT6688 }, 0 },
> >    {{ USB_VENDOR_SHANTOU, USB_PRODUCT_SHANTOU_ADM8515 }, 0 },
> >    {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601 }, 0 },
> > +    {{ USB_VENDOR_UNKNOWN4, USB_PRODUCT_UNKNOWN4_DM9601_2 }, 0 },
> >    {{ USB_VENDOR_UNKNOWN6, USB_PRODUCT_UNKNOWN6_DM9601 }, 0 }
> > };
> > #define udav_lookup(v, p) ((struct udav_type *)usb_lookup(udav_devs, v, p))

Reply via email to