pkg_add should ask for versions sooner
I'm setting up a new machine. At some point I'm going to run a command something like "pkg_add firefox ... lua ... ImageMagick". This goes off and downloads a million things, before eventually asking me what version of lua I want. I pick, then things go on, then eventually some dependency of ImageMagick, and so on. The problem is I'd like to walk away and take a nap while the downloading is taking place, but I can't because pkg_add asks questions in the middle. I have alternately tried frontloading or backloading known ambiguous packages, but new flavors and dependencies are always being introduced so that's not very effective. I would like pkg_add to scan the list of requested packages, their recursive dependencies, and then present me with all the questions at once. Ideally, it would also only ask the question once. Among the ... above I usually include git and rsync, but rsync is a dependency for git, which means pkg_add asks me twice which flavor I want.
SiS 7018 Audio Codec in current
Update to OpenBSD 5.3-current (GENERIC) #146: Thu Apr 25 16:55:16 MDT 2013 results in a dmesg with ohci1 at pci0 dev 1 function 3 "SiS 5597/5598 USB" rev 0x07: irq 5, version 1.0, legacy support autri0 at pci0 dev 1 function 4 "SiS 7018 Audio" rev 0x02: irq 11 autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec autri0: Codec timeout. Busy writing AC97 codec -- J. Scott Heppler
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
Hi Stuart, It's bad news or good news ... :) SHM - Original Message - From: Stuart Henderson To: slashwaves Cc: "bugs@openbsd.org" Sent: Monday, April 29, 2013 6:54 PM Subject: Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter On 2013/04/29 18:52, slashwaves wrote: > udav0: 1.10/1.01, addr 2> on usbus0 > ue0: on udav0 > ue0: Ethernet address: 00:e0:4c:53:44:58 Aha. http://svnweb.freebsd.org/base?view=revision&revision=238466 "The JP1082 device doesn't respond to the MII_BMSR command and it turns out that it has an unusable PHY. It still works, although very slowly, without a PHY, so I implemented non-PHY support in the udav driver."
Re: OpenBSD 5.3 kernel build ulpt(4)
On 29/04/13(Mon) 12:15, Dennis Lindroos wrote: > Hi > > I'm trying to compile a non-generic OPENBSD_5_3/i386 kernel and get > this error: > > ld -Ttext 0xD0200120 -e start -N --warn-common -nopie -X -o bsd > ${SYSTEM_HEAD} vers.o ${OBJS} > ulpt.o(.text+0x8d): In function `ulpt_ucode_loader_hp': > /mnt/src/sys/dev/usb/ulpt.c:685: undefined reference to `loadfirmware' > *** Error code 1 > > After applying this patch, it builds and boots fine - not that i > have a chance to actually test ulpt(4). > > --- dev/usb/files.usb.origMon Apr 29 09:09:11 2013 > +++ dev/usb/files.usb Mon Apr 29 11:37:09 2013 > @@ -109,7 +109,7 @@ > file dev/usb/ucycom.cucycom needs-flag > > # Printers > -device ulpt > +device ulpt: firmload > attach ulpt at uhub > file dev/usb/ulpt.c ulptneeds-flag Committed, thanks! M.
OpenBSD 5.3 kernel build ulpt(4)
Hi I'm trying to compile a non-generic OPENBSD_5_3/i386 kernel and get this error: ld -Ttext 0xD0200120 -e start -N --warn-common -nopie -X -o bsd ${SYSTEM_HEAD} vers.o ${OBJS} ulpt.o(.text+0x8d): In function `ulpt_ucode_loader_hp': /mnt/src/sys/dev/usb/ulpt.c:685: undefined reference to `loadfirmware' *** Error code 1 After applying this patch, it builds and boots fine - not that i have a chance to actually test ulpt(4). --- dev/usb/files.usb.orig Mon Apr 29 09:09:11 2013 +++ dev/usb/files.usb Mon Apr 29 11:37:09 2013 @@ -109,7 +109,7 @@ file dev/usb/ucycom.cucycom needs-flag # Printers -device ulpt +device ulpt: firmload attach ulpt at uhub file dev/usb/ulpt.c ulptneeds-flag Thanks, Dennis
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
On 2013/04/29 18:52, slashwaves wrote: > udav0: 1.10/1.01, addr 2> on usbus0 > ue0: on udav0 > ue0: Ethernet address: 00:e0:4c:53:44:58 Aha. http://svnweb.freebsd.org/base?view=revision&revision=238466 "The JP1082 device doesn't respond to the MII_BMSR command and it turns out that it has an unusable PHY. It still works, although very slowly, without a PHY, so I implemented non-PHY support in the udav driver."
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
udav0: on usbus0 ue0: on udav0 ue0: Ethernet address: 00:e0:4c:53:44:58 SHM - Original Message - From: Stuart Henderson To: Stefanus Hermawan ; "bugs@openbsd.org" Cc: Sent: Monday, April 29, 2013 4:23 PM Subject: Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter On 2013/04/29 19:11, Jonathan Gray wrote: > You need to figure out what chip it has. > FreeBSD don't seem to have a man page for 'ue' or a driver in > their sys/dev/usb/net/ dir so I have no idea what it is > attaching as. Looks like they attach all USB ethernet devices to ue; http://svnweb.freebsd.org/base/head/sys/dev/usb/net/usb_ethernet.c?view=log Stefanus, check your dmesg, the code has this: if_printf(ifp, " on %s\n", device_get_nameunit(ue->ue_dev)); which should print the actual driver it's using.
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
On 2013/04/29 19:11, Jonathan Gray wrote: > You need to figure out what chip it has. > FreeBSD don't seem to have a man page for 'ue' or a driver in > their sys/dev/usb/net/ dir so I have no idea what it is > attaching as. Looks like they attach all USB ethernet devices to ue; http://svnweb.freebsd.org/base/head/sys/dev/usb/net/usb_ethernet.c?view=log Stefanus, check your dmesg, the code has this: if_printf(ifp, " on %s\n", device_get_nameunit(ue->ue_dev)); which should print the actual driver it's using.
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
You need to figure out what chip it has. FreeBSD don't seem to have a man page for 'ue' or a driver in their sys/dev/usb/net/ dir so I have no idea what it is attaching as. On Mon, Apr 29, 2013 at 02:04:32PM +0700, Stefanus Hermawan wrote: > Hi Jonathan, > > I have test my device in FreeBSD 10-CURRENT, and run fine on 'ue' > pseudo-device. > > Any ideas? > > > Sent from my iPhone > > On Apr 23, 2013, at 4:40 PM, Jonathan Gray 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 > > --- usbdevs7 Mar 2013 23:39:14 -1.598 > > +++ usbdevs23 Apr 2013 09:34:55 - > > @@ -4045,6 +4045,7 @@ product UNKNOWN3 ZD1211B0x1233 ZD1211B > > > > /* Unknown vendor 4 */ > > product UNKNOWN4 DM96010x8101 DM9601 > > +product UNKNOWN4 DM9601_20x9700 DM9601 > > > > /* Unknown vendor 5 */ > > product UNKNOWN5 NF_RIC0x0001NF 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.c28 Mar 2013 03:58:03 -1.61 > > +++ if_udav.c23 Apr 2013 09:35:15 - > > @@ -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))
Re: Driver for Kontron (Industrial Computer Source / ICS Advent) DM9601 Fast Ethernet Adapter
Hi Jonathan, I have test my device in FreeBSD 10-CURRENT, and run fine on 'ue' pseudo-device. Any ideas? Sent from my iPhone On Apr 23, 2013, at 4:40 PM, Jonathan Gray 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 > --- usbdevs7 Mar 2013 23:39:14 -1.598 > +++ usbdevs23 Apr 2013 09:34:55 - > @@ -4045,6 +4045,7 @@ product UNKNOWN3 ZD1211B0x1233 ZD1211B > > /* Unknown vendor 4 */ > product UNKNOWN4 DM96010x8101 DM9601 > +product UNKNOWN4 DM9601_20x9700 DM9601 > > /* Unknown vendor 5 */ > product UNKNOWN5 NF_RIC0x0001NF 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.c28 Mar 2013 03:58:03 -1.61 > +++ if_udav.c23 Apr 2013 09:35:15 - > @@ -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))