Re: pgt firmware ...

2012-02-29 Thread David Walker
Hi Stuart.

> do you know which device you have?

This is what I get on the console:
pgt0 at cardbus0 dev 0 function 0 "Intersil Prism GT/Duette" rev 0x01: irq 11

According to the meagre research I've done it's a 3880 chipset.
The card is an SMC2835W ...

> In theory dmesg should be able to pick up the message buffer from that
> dump, see the options in dmesg(8).

Cheers.
I think this is right:

cbb0:  no bus space
panic: io alloc
Stopped at  Debugger+0x4:   popl%ebp

ddb>PID   PPID   PGRPUID  S   FLAGS  WAIT  COMMAND
  3832  1  1  0  30x80  nanosleep init
14  0  0  0  30x100200  aiodoned  aiodoned
13  0  0  0  30x100200  syncerupdate
12  0  0  0  30x100200  cleaner   cleaner
11  0  0  0  30x100200  reaperreaper
10  0  0  0  30x100200  pgdaemon  pagedaemon
 9  0  0  0  30x100200  bored crypto
 8  0  0  0  30x100200  pftm  pfpurge
 7  0  0  0  30x100200  usbtskusbtask
 6  0  0  0  30x100200  usbatsk   usbatsk
 5  0  0  0  30x100200  apmev apm0
*4  0  0  0  70x100200syswq
 3  0  0  0  3  0x40100200idle0
 2  0  0  0  30x100200  kmalloc   kmthread
 1  0  1  0  30x80  wait  init
 0 -1  0  0  3   0x200  scheduler swapper
ddb> Debugger(d08cee78,d94fcc88,d097fc1c,d94fcc88,1000) at Debugger+0x4
panic(d097fc1c,d1178ea0,38901270,10,) at panic+0x5d
cardbus_read_exrom(d1191c00,0,10,0,0) at cardbus_read_exrom
cardbus_read_tuples(d94fcd94,801,d11c6000,800,0) at cardbus_read_tuples+0x125
cardbus_attach_card(d1191c00,d560,d94fcf6c,d03ece07,d0a20ba0) at
cardbus_attach_card+0x58d
cardslot_event(d1191c80,0,d02008c4,d09b3a60,d03e4e40) at cardslot_event+0x11a
workq_thread(d09b3a60) at workq_thread+0x36
Bad frame pointer: 0xd0b8ce38

OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011
dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 266 MHz
cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PSE36,MMX,FXSR
real mem  = 301330432 (287MB)
avail mem = 286351360 (273MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 09/18/99, BIOS32 rev. 0 @ 0xfd820
apm0 at bios0: Power Management spec V1.2
pcibios0 at bios0: rev 2.1 @ 0xfd880/0x800
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf9e10/96 (4 entries)
pcibios0: PCI Exclusive IRQs: 11
pcibios0: PCI Interrupt Router at 000:07:0 ("Intel 82371AB PIIX4 ISA" rev 0x00)
pcibios0: PCI bus #4 is the last bus
bios0: ROM list: 0xc/0xa000
cpu0 at mainbus0: (uniprocessor)
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82443BX" rev 0x02
cbb0 at pci0 dev 2 function 0 "TI PCI1250 CardBus" rev 0x02: irq 11
cbb1 at pci0 dev 2 function 1 "TI PCI1250 CardBus" rev 0x02: irq 11
vga1 at pci0 dev 3 function 0 "Neomagic Magicgraph NM2160" rev 0x01
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
piixpcib0 at pci0 dev 7 function 0 "Intel 82371AB PIIX4 ISA" rev 0x01
pciide0 at pci0 dev 7 function 1 "Intel 82371AB IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: 
wd0: 16-sector PIO, LBA, 57231MB, 117210240 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0:  ATAPI
5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 7 function 2 "Intel 82371AB USB" rev 0x01: irq 11
piixpm0 at pci0 dev 7 function 3 "Intel 82371AB Power" rev 0x01: SMI
iic0 at piixpm0
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 1 device 0 cacheline 0x8, lattimer 0xb0
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 4 device 0 cacheline 0x8, lattimer 0xb0
pcmcia1 at cardslot1
isa0 at piixpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.02
midi0 at sb0: 
audio0 at sb0
opl at sb0 not configured
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt2 at isa0 port 0x3bc/4: polled
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 "Intel UHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
vscsi0 at root
scsibus1 at vscsi0: 2

Re: pgt firmware ...

2012-02-28 Thread Andres Perera
On Mon, Feb 27, 2012 at 7:52 AM, Janne Johansson  wrote:
> 2012/2/27 David Walker :
>> Thank you Peter.
>> I still get the same error message (error line wrapped):
>>
>> pkg_add ./pgt-firmware-1.2p2.tgz
>> Bad pkg_db: No such file or directory at
> [...]
>> Somethings wrong with my environment but what ...
>
> Yes, the thing that makes it impossible for you to run exactly what we
> tell you to, and instead you add ./ when pkg_add
> takes URLs directly.

but that couldn't possibly make a difference so why do you keep repeating

> Now exactly what in your environment is doing that, I can't really tell.
>
> --
> B To our sweethearts and wives. B May they never meet. -- 19th century
toast



Re: pgt firmware ...

2012-02-28 Thread Stuart Henderson
On 2012-02-27, David Walker  wrote:
> Unfortunately it seems there's bigger issue anyway.
> When I plug the card in there's either no action (no ifconfig, no
> LEDs, no console message) or I get a panic.
> It happens invariably (I think) if the card's in at boot, here's one
> (hand typed) ...

from pgt(4),

 The pgt driver provides support for Conexant/Intersil GT-series devices
 which can support the Full-Mac firmwares, using the ISL3877, ISL3880, and
 ISL3890 chips.  The pgt driver will not (yet) work on similar devices
 using the ISL3886 or similar chips which use the Soft-Mac firmwares.

do you know which device you have?

> I've done 'ps' and 'trace' but they're a bit long to transcribe right now.
> I did 'boot dump' and can see the dump in /var/crash - when I get
> sometime I'll try and read some more man pages and see if I can
> extract anything useful.

In theory dmesg should be able to pick up the message buffer from that
dump, see the options in dmesg(8).



Re: pgt firmware ...

2012-02-27 Thread Claudio Jeker
On Mon, Feb 27, 2012 at 10:28:01PM +1030, David Walker wrote:
> Thank you Peter.
> 
> I still get the same error message (error line wrapped):
> 
> pkg_add ./pgt-firmware-1.2p2.tgz
> Bad pkg_db: No such file or directory at
> /usr/libdata/perl5/OpenBSD/PackageInfo.pm line 63.
> 
> Line 63:
> 
> opendir(my $dir, $pkg_db) or die "Bad pkg_db: $!");
> 
> Somethings wrong with my environment but what ...


This smells like a bad install of OpenBSD. Your /var is lacking
/var/db/pkg. Maybe rerun mtree to verify your install.

 
> On 27/02/2012, Peter Hessler  wrote:
> > NO!
> >
> > For the love of everything holy, don't fucking use wget.
> >
> > the built-in ftp(1) client can download from http servers.
> >
> > and, do NOT just extract the files.  we have package tools for a reason.
> >
> > EITHER:
> >  a) pkg_add http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz
> >
> > OR
> >
> >  b) ftp http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz &&
> > pkg_add ./pgt-firmware-1.2.tgz
> >
> > Anything else is stupid.
> >
> >
> >
> > On 2012 Feb 26 (Sun) at 18:21:31 +0400 (+0400), Wesley M. wrote:
> > :Try this :
> > :add wget package using pkg_add -vi wget
> > :wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz
> > :Then extract this in /etc/firmware.
> > :Halt your machine, Remove your network card, and now plug the new card,
> > :boot
> > :
> > :Hope that it will help.
> > :
> > :Wesley.
> > :
> > :
> > :On Mon, 27 Feb 2012 00:02:28 +1030, David Walker
> > : wrote:
> > :> Thanks Wesley.
> > :>
> > :> I forgot about that.
> > :> I was going from man pgt which says:
> > :> FILES
> > :>
> > :>  A prepackaged version of the firmware, designed to be used with
> > :>  pkg_add(1), can be found at:
> > :>
> > :> http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz
> > :>
> > :> The problem I have is that fw_update doesn't accept arguments and I
> > :> need the adjacent pcmcia slot for the ethernet card and they are both
> > :> bulky cards.
> > :> I need to remove the conexant card to insert the ethernet card to
> > :> access the network and then fw_update reports there are no devices to
> > :> update - the conexant card is no longer attached.
> > :> :]
> > :>
> > :> If you can think of a way to run this locally it'd be great.
> > :>
> > :> On 26/02/2012, Wesley M.  wrote:
> > :>> try fw_update (provided in OpenBSD 5.0)
> > :>>
> > :>> Wesley.
> > :>>
> > :>> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
> > :>>  wrote:
> > :>>> Hi.
> > :>>>
> > :>>> I'm trying to do:
> > :>>> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
> > :>>>
> > :>>> I get this:
> > :>>> parsing pgt-firmware-1.2.tgz
> > :>>> Bad pkg_db: No such file or directory at
> > :>>> /usr/libdata/perl5/OpenBSD/PackageInfo.
> > :>>> pm line 63.
> > :>>>
> > :>>> Do I need to add perl manually?
> > :>>>
> > :>>> Best wishes.
> > :
> >
> > --
> > Cleaning your house while your kids are still growing is like
> > shoveling the walk before it stops snowing.
> > -- Phyllis Diller
> 

-- 
:wq Claudio



Re: pgt firmware ...

2012-02-27 Thread David Walker
Hi Wesley.

On 28/02/2012, Wesley M.  wrote:
> Why don't you try to install a snapshot version ?
> Just to see if the problem is resolved for the next release (5.1)...

I have some access to ADSL for the time being so I'll try do that.

> And sorry for the wget advice :-)

Thank you for reminding me about fw_update in your initial reply.
Besides, I broke my system (rule number one) - it's all on me anyway.

>
> All the best,
>
> Wesley.
>
> On Tue, 28 Feb 2012 00:33:06 +1030, David Walker
>  wrote:
>> Hi Magnus.
>>
>> That was the issue - that directory didn't exist.
>> It was my fault - playing with fstab ...
>>
>> Unfortunately it seems there's bigger issue anyway.
>> When I plug the card in there's either no action (no ifconfig, no
>> LEDs, no console message) or I get a panic.
>> It happens invariably (I think) if the card's in at boot, here's one
>> (hand typed) ...
>>
>> cbb0:  no bus space
>> panic: io alloc
>> Stopped at Debugger+0x4: popl %ebp
>>
>> ddb>
>>
>> I've done 'ps' and 'trace' but they're a bit long to transcribe right
> now.
>> I did 'boot dump' and can see the dump in /var/crash - when I get
>> sometime I'll try and read some more man pages and see if I can
>> extract anything useful.
>> If anyone's interested and wants me to extract anything, please tell
>> me how, and I'll do it soonest. I'm not sure what I'm looking for.
>>
>> Regardless, I might re-install so I can guarantee any other changes
>> I've made are voided and try again. It's quite possible theres an
>> issue with the card also. I might try it on another OS to verify that.
>>
>> Best wishes.
>>
>> On 27/02/2012, Magnus  wrote:
>>> Hello,
>>>
>>> check that you have the path /var/db/pkg
>>>
>>> Information about the package(s) is recorded in a central repository,
> by
>>> default located in /var/db/pkg/. This will, among other things, prevent
>>> the dependencies of a package from being deleted before the package
>>> itself has been deleted. This helps ensure that an application cannot
> be
>>> accidentally broken by a careless user
>>>
>>> f.i. mine looks like this:
>>>
>>> # ls -Fl /var/db/pkg
>>> total 76
>>> drwxr-xr-x  2 root  wheel  512 Oct 19 11:29 bacula-client-5.0.2p1/
>>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 bash-4.1.9p0/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 dnsmasq-2.55/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 gd-2.0.35p0/
>>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 gettext-0.18.1p0/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 joe-3.7p0/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 jpeg-8b/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 libdnet-1.12p1/
>>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 libiconv-1.13p2/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 lua-5.1.4p1/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nano-2.2.6/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ngrep-1.45p1/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nmap-5.21p3/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ntop-1.1/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pcre-8.02p1/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pfstat-2.3p1/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 png-1.2.44/
>>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 postfix-2.8.20110113/
>>> drwxr-xr-x  2 root  wheel  512 Sep 12 12:56 screen-4.0.3p2/
>>>
>>> // Magnus
>>>
>>>
>>>
>>>
>>> On 2012-02-27 12:58, David Walker wrote:
>>>> Thank you Peter.
>>>>
>>>> I still get the same error message (error line wrapped):
>>>>
>>>> pkg_add ./pgt-firmware-1.2p2.tgz
>>>> Bad pkg_db: No such file or directory at
>>>> /usr/libdata/perl5/OpenBSD/PackageInfo.pm line 63.
>>>>
>>>> Line 63:
>>>>
>>>> opendir(my $dir, $pkg_db) or die "Bad pkg_db: $!");
>>>>
>>>> Somethings wrong with my environment but what ...
>>>>
>>>> On 27/02/2012, Peter Hessler  wrote:
>>>>> NO!
>>>>>
>>>>> For the love of everything holy, don't fucking use wget.
>>>>>
>>>>> the built-in ftp(1) client can download from http servers.
>>>>>
>>>>> and, d

Re: pgt firmware ...

2012-02-27 Thread Wesley M.
Why don't you try to install a snapshot version ?
Just to see if the problem is resolved for the next release (5.1)...
And sorry for the wget advice :-)

All the best,

Wesley.

On Tue, 28 Feb 2012 00:33:06 +1030, David Walker
 wrote:
> Hi Magnus.
> 
> That was the issue - that directory didn't exist.
> It was my fault - playing with fstab ...
> 
> Unfortunately it seems there's bigger issue anyway.
> When I plug the card in there's either no action (no ifconfig, no
> LEDs, no console message) or I get a panic.
> It happens invariably (I think) if the card's in at boot, here's one
> (hand typed) ...
> 
> cbb0:  no bus space
> panic: io alloc
> Stopped at Debugger+0x4: popl %ebp
> 
> ddb>
> 
> I've done 'ps' and 'trace' but they're a bit long to transcribe right
now.
> I did 'boot dump' and can see the dump in /var/crash - when I get
> sometime I'll try and read some more man pages and see if I can
> extract anything useful.
> If anyone's interested and wants me to extract anything, please tell
> me how, and I'll do it soonest. I'm not sure what I'm looking for.
> 
> Regardless, I might re-install so I can guarantee any other changes
> I've made are voided and try again. It's quite possible theres an
> issue with the card also. I might try it on another OS to verify that.
> 
> Best wishes.
> 
> On 27/02/2012, Magnus  wrote:
>> Hello,
>>
>> check that you have the path /var/db/pkg
>>
>> Information about the package(s) is recorded in a central repository,
by
>> default located in /var/db/pkg/. This will, among other things, prevent
>> the dependencies of a package from being deleted before the package
>> itself has been deleted. This helps ensure that an application cannot
be
>> accidentally broken by a careless user
>>
>> f.i. mine looks like this:
>>
>> # ls -Fl /var/db/pkg
>> total 76
>> drwxr-xr-x  2 root  wheel  512 Oct 19 11:29 bacula-client-5.0.2p1/
>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 bash-4.1.9p0/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 dnsmasq-2.55/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 gd-2.0.35p0/
>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 gettext-0.18.1p0/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 joe-3.7p0/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 jpeg-8b/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 libdnet-1.12p1/
>> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 libiconv-1.13p2/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 lua-5.1.4p1/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nano-2.2.6/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ngrep-1.45p1/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nmap-5.21p3/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ntop-1.1/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pcre-8.02p1/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pfstat-2.3p1/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 png-1.2.44/
>> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 postfix-2.8.20110113/
>> drwxr-xr-x  2 root  wheel  512 Sep 12 12:56 screen-4.0.3p2/
>>
>> // Magnus
>>
>>
>>
>>
>> On 2012-02-27 12:58, David Walker wrote:
>>> Thank you Peter.
>>>
>>> I still get the same error message (error line wrapped):
>>>
>>> pkg_add ./pgt-firmware-1.2p2.tgz
>>> Bad pkg_db: No such file or directory at
>>> /usr/libdata/perl5/OpenBSD/PackageInfo.pm line 63.
>>>
>>> Line 63:
>>>
>>> opendir(my $dir, $pkg_db) or die "Bad pkg_db: $!");
>>>
>>> Somethings wrong with my environment but what ...
>>>
>>> On 27/02/2012, Peter Hessler  wrote:
>>>> NO!
>>>>
>>>> For the love of everything holy, don't fucking use wget.
>>>>
>>>> the built-in ftp(1) client can download from http servers.
>>>>
>>>> and, do NOT just extract the files.  we have package tools for a
>>>> reason.
>>>>
>>>> EITHER:
>>>>  a) pkg_add
>>>>  http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz
>>>>
>>>> OR
>>>>
>>>>  b) ftp http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz
>>>>  &&
>>>> pkg_add ./pgt-firmware-1.2.tgz
>>>>
>>>> Anything else is stupid.
>>>>
>>>>
>>>>
>>>> On 2012 Feb 26 (Sun) at 18:21:31 +0400 (+0400), Wesley M. wrote:
>>>> :Try this :
>>>> :add wg

Re: pgt firmware ...

2012-02-27 Thread David Walker
Hi Magnus.

That was the issue - that directory didn't exist.
It was my fault - playing with fstab ...

Unfortunately it seems there's bigger issue anyway.
When I plug the card in there's either no action (no ifconfig, no
LEDs, no console message) or I get a panic.
It happens invariably (I think) if the card's in at boot, here's one
(hand typed) ...

cbb0:  no bus space
panic: io alloc
Stopped at Debugger+0x4: popl %ebp

ddb>

I've done 'ps' and 'trace' but they're a bit long to transcribe right now.
I did 'boot dump' and can see the dump in /var/crash - when I get
sometime I'll try and read some more man pages and see if I can
extract anything useful.
If anyone's interested and wants me to extract anything, please tell
me how, and I'll do it soonest. I'm not sure what I'm looking for.

Regardless, I might re-install so I can guarantee any other changes
I've made are voided and try again. It's quite possible theres an
issue with the card also. I might try it on another OS to verify that.

Best wishes.

On 27/02/2012, Magnus  wrote:
> Hello,
>
> check that you have the path /var/db/pkg
>
> Information about the package(s) is recorded in a central repository, by
> default located in /var/db/pkg/. This will, among other things, prevent
> the dependencies of a package from being deleted before the package
> itself has been deleted. This helps ensure that an application cannot be
> accidentally broken by a careless user
>
> f.i. mine looks like this:
>
> # ls -Fl /var/db/pkg
> total 76
> drwxr-xr-x  2 root  wheel  512 Oct 19 11:29 bacula-client-5.0.2p1/
> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 bash-4.1.9p0/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 dnsmasq-2.55/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 gd-2.0.35p0/
> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 gettext-0.18.1p0/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 joe-3.7p0/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 jpeg-8b/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 libdnet-1.12p1/
> drwxr-xr-x  2 root  wheel  512 Sep 13 10:14 libiconv-1.13p2/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 lua-5.1.4p1/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nano-2.2.6/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ngrep-1.45p1/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 nmap-5.21p3/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 ntop-1.1/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pcre-8.02p1/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 pfstat-2.3p1/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 png-1.2.44/
> drwxr-xr-x  2 root  wheel  512 Jun 15  2011 postfix-2.8.20110113/
> drwxr-xr-x  2 root  wheel  512 Sep 12 12:56 screen-4.0.3p2/
>
> // Magnus
>
>
>
>
> On 2012-02-27 12:58, David Walker wrote:
>> Thank you Peter.
>>
>> I still get the same error message (error line wrapped):
>>
>> pkg_add ./pgt-firmware-1.2p2.tgz
>> Bad pkg_db: No such file or directory at
>> /usr/libdata/perl5/OpenBSD/PackageInfo.pm line 63.
>>
>> Line 63:
>>
>> opendir(my $dir, $pkg_db) or die "Bad pkg_db: $!");
>>
>> Somethings wrong with my environment but what ...
>>
>> On 27/02/2012, Peter Hessler  wrote:
>>> NO!
>>>
>>> For the love of everything holy, don't fucking use wget.
>>>
>>> the built-in ftp(1) client can download from http servers.
>>>
>>> and, do NOT just extract the files.  we have package tools for a reason.
>>>
>>> EITHER:
>>>  a) pkg_add http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz
>>>
>>> OR
>>>
>>>  b) ftp http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz &&
>>> pkg_add ./pgt-firmware-1.2.tgz
>>>
>>> Anything else is stupid.
>>>
>>>
>>>
>>> On 2012 Feb 26 (Sun) at 18:21:31 +0400 (+0400), Wesley M. wrote:
>>> :Try this :
>>> :add wget package using pkg_add -vi wget
>>> :wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz
>>> :Then extract this in /etc/firmware.
>>> :Halt your machine, Remove your network card, and now plug the new card,
>>> :boot
>>> :
>>> :Hope that it will help.
>>> :
>>> :Wesley.
>>> :
>>> :
>>> :On Mon, 27 Feb 2012 00:02:28 +1030, David Walker
>>> : wrote:
>>> :> Thanks Wesley.
>>> :>
>>> :> I forgot about that.
>>> :> I was going from man pgt which says:
>>> :> FILES
>>> :>
>>> :>  A prepackaged version of the firmware, designed to be used with
&g

Re: pgt firmware ...

2012-02-27 Thread Janne Johansson
2012/2/27 David Walker :
> Thank you Peter.
> I still get the same error message (error line wrapped):
>
> pkg_add ./pgt-firmware-1.2p2.tgz
> Bad pkg_db: No such file or directory at
[...]
> Somethings wrong with my environment but what ...

Yes, the thing that makes it impossible for you to run exactly what we
tell you to, and instead you add ./ when pkg_add
takes URLs directly.
Now exactly what in your environment is doing that, I can't really tell.

--
 To our sweethearts and wives.  May they never meet. -- 19th century toast



Re: pgt firmware ...

2012-02-27 Thread David Walker
Thank you Peter.

I still get the same error message (error line wrapped):

pkg_add ./pgt-firmware-1.2p2.tgz
Bad pkg_db: No such file or directory at
/usr/libdata/perl5/OpenBSD/PackageInfo.pm line 63.

Line 63:

opendir(my $dir, $pkg_db) or die "Bad pkg_db: $!");

Somethings wrong with my environment but what ...

On 27/02/2012, Peter Hessler  wrote:
> NO!
>
> For the love of everything holy, don't fucking use wget.
>
> the built-in ftp(1) client can download from http servers.
>
> and, do NOT just extract the files.  we have package tools for a reason.
>
> EITHER:
>  a) pkg_add http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz
>
> OR
>
>  b) ftp http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz &&
> pkg_add ./pgt-firmware-1.2.tgz
>
> Anything else is stupid.
>
>
>
> On 2012 Feb 26 (Sun) at 18:21:31 +0400 (+0400), Wesley M. wrote:
> :Try this :
> :add wget package using pkg_add -vi wget
> :wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz
> :Then extract this in /etc/firmware.
> :Halt your machine, Remove your network card, and now plug the new card,
> :boot
> :
> :Hope that it will help.
> :
> :Wesley.
> :
> :
> :On Mon, 27 Feb 2012 00:02:28 +1030, David Walker
> : wrote:
> :> Thanks Wesley.
> :>
> :> I forgot about that.
> :> I was going from man pgt which says:
> :> FILES
> :>
> :>  A prepackaged version of the firmware, designed to be used with
> :>  pkg_add(1), can be found at:
> :>
> :> http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz
> :>
> :> The problem I have is that fw_update doesn't accept arguments and I
> :> need the adjacent pcmcia slot for the ethernet card and they are both
> :> bulky cards.
> :> I need to remove the conexant card to insert the ethernet card to
> :> access the network and then fw_update reports there are no devices to
> :> update - the conexant card is no longer attached.
> :> :]
> :>
> :> If you can think of a way to run this locally it'd be great.
> :>
> :> On 26/02/2012, Wesley M.  wrote:
> :>> try fw_update (provided in OpenBSD 5.0)
> :>>
> :>> Wesley.
> :>>
> :>> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
> :>>  wrote:
> :>>> Hi.
> :>>>
> :>>> I'm trying to do:
> :>>> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
> :>>>
> :>>> I get this:
> :>>> parsing pgt-firmware-1.2.tgz
> :>>> Bad pkg_db: No such file or directory at
> :>>> /usr/libdata/perl5/OpenBSD/PackageInfo.
> :>>> pm line 63.
> :>>>
> :>>> Do I need to add perl manually?
> :>>>
> :>>> Best wishes.
> :
>
> --
> Cleaning your house while your kids are still growing is like
> shoveling the walk before it stops snowing.
>   -- Phyllis Diller



Re: pgt firmware ...

2012-02-26 Thread Tomas Bodzar
On Sun, Feb 26, 2012 at 8:21 AM, David Walker  wrote:
> Hi.
>
> I'm trying to do:
> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
>
> I get this:
> parsing pgt-firmware-1.2.tgz
> Bad pkg_db: No such file or directory at 
> /usr/libdata/perl5/OpenBSD/PackageInfo.
> pm line 63.
>
> Do I need to add perl manually?

You're supposed to read. Eg.
http://www.openbsd.org/cgi-bin/man.cgi?query=fw_update&apropos=0&sektion=0&manpath=OpenBSD+Current&arch=i386&format=html
or page for release you're on.

>
> Best wishes.



Re: pgt firmware ...

2012-02-26 Thread Ted Unangst
On Sun, Feb 26, 2012, David Walker wrote:
> Hi.
> 
> I'm trying to do:
> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz

The correct url is openbsd.ORG.



Re: pgt firmware ...

2012-02-26 Thread Peter Hessler
NO!

For the love of everything holy, don't fucking use wget.

the built-in ftp(1) client can download from http servers.

and, do NOT just extract the files.  we have package tools for a reason.

EITHER:
 a) pkg_add http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz

OR 

 b) ftp http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2.tgz && 
pkg_add ./pgt-firmware-1.2.tgz

Anything else is stupid.



On 2012 Feb 26 (Sun) at 18:21:31 +0400 (+0400), Wesley M. wrote:
:Try this :
:add wget package using pkg_add -vi wget
:wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz
:Then extract this in /etc/firmware.
:Halt your machine, Remove your network card, and now plug the new card,
:boot
:
:Hope that it will help.
:
:Wesley.
:
:
:On Mon, 27 Feb 2012 00:02:28 +1030, David Walker
: wrote:
:> Thanks Wesley.
:> 
:> I forgot about that.
:> I was going from man pgt which says:
:> FILES
:> 
:>  A prepackaged version of the firmware, designed to be used with
:>  pkg_add(1), can be found at:
:> 
:>         http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz
:> 
:> The problem I have is that fw_update doesn't accept arguments and I
:> need the adjacent pcmcia slot for the ethernet card and they are both
:> bulky cards.
:> I need to remove the conexant card to insert the ethernet card to
:> access the network and then fw_update reports there are no devices to
:> update - the conexant card is no longer attached.
:> :]
:> 
:> If you can think of a way to run this locally it'd be great.
:> 
:> On 26/02/2012, Wesley M.  wrote:
:>> try fw_update (provided in OpenBSD 5.0)
:>>
:>> Wesley.
:>>
:>> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
:>>  wrote:
:>>> Hi.
:>>>
:>>> I'm trying to do:
:>>> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
:>>>
:>>> I get this:
:>>> parsing pgt-firmware-1.2.tgz
:>>> Bad pkg_db: No such file or directory at
:>>> /usr/libdata/perl5/OpenBSD/PackageInfo.
:>>> pm line 63.
:>>>
:>>> Do I need to add perl manually?
:>>>
:>>> Best wishes.
:

-- 
Cleaning your house while your kids are still growing is like
shoveling the walk before it stops snowing.
-- Phyllis Diller



Re: pgt firmware ...

2012-02-26 Thread Janne Johansson
2012/2/26 Wesley M. :
> Try this :
> add wget package using pkg_add -vi wget
> wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz

Or skip getting wget alltogether and just use the /usr/bin/ftp which
can talk http good enough for this.
Or, skip getting the package down locally and just give pkg_add the
url directly and notice how it can DL stuff for itself.


--
 To our sweethearts and wives.  May they never meet. -- 19th century toast



Re: pgt firmware ...

2012-02-26 Thread Wesley M.
Try this :
add wget package using pkg_add -vi wget
wget http://firmware.openbsd.org/firmware/5.0/pgt-firmware-1.2p2.tgz
Then extract this in /etc/firmware.
Halt your machine, Remove your network card, and now plug the new card,
boot

Hope that it will help.

Wesley.


On Mon, 27 Feb 2012 00:02:28 +1030, David Walker
 wrote:
> Thanks Wesley.
> 
> I forgot about that.
> I was going from man pgt which says:
> FILES
> 
>  A prepackaged version of the firmware, designed to be used with
>  pkg_add(1), can be found at:
> 
> http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz
> 
> The problem I have is that fw_update doesn't accept arguments and I
> need the adjacent pcmcia slot for the ethernet card and they are both
> bulky cards.
> I need to remove the conexant card to insert the ethernet card to
> access the network and then fw_update reports there are no devices to
> update - the conexant card is no longer attached.
> :]
> 
> If you can think of a way to run this locally it'd be great.
> 
> On 26/02/2012, Wesley M.  wrote:
>> try fw_update (provided in OpenBSD 5.0)
>>
>> Wesley.
>>
>> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
>>  wrote:
>>> Hi.
>>>
>>> I'm trying to do:
>>> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
>>>
>>> I get this:
>>> parsing pgt-firmware-1.2.tgz
>>> Bad pkg_db: No such file or directory at
>>> /usr/libdata/perl5/OpenBSD/PackageInfo.
>>> pm line 63.
>>>
>>> Do I need to add perl manually?
>>>
>>> Best wishes.



Re: pgt firmware ...

2012-02-26 Thread David Walker
Thanks Wesley.

I forgot about that.
I was going from man pgt which says:
FILES

 A prepackaged version of the firmware, designed to be used with
 pkg_add(1), can be found at:

http://firmware.openbsd.org/firmware/pgt-firmware-1.2.tgz

The problem I have is that fw_update doesn't accept arguments and I
need the adjacent pcmcia slot for the ethernet card and they are both
bulky cards.
I need to remove the conexant card to insert the ethernet card to
access the network and then fw_update reports there are no devices to
update - the conexant card is no longer attached.
:]

If you can think of a way to run this locally it'd be great.

On 26/02/2012, Wesley M.  wrote:
> try fw_update (provided in OpenBSD 5.0)
>
> Wesley.
>
> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
>  wrote:
>> Hi.
>>
>> I'm trying to do:
>> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
>>
>> I get this:
>> parsing pgt-firmware-1.2.tgz
>> Bad pkg_db: No such file or directory at
>> /usr/libdata/perl5/OpenBSD/PackageInfo.
>> pm line 63.
>>
>> Do I need to add perl manually?
>>
>> Best wishes.



Re: pgt firmware ...

2012-02-26 Thread Wesley M.
try fw_update (provided in OpenBSD 5.0)

Wesley.

On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
 wrote:
> Hi.
> 
> I'm trying to do:
> pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz
> 
> I get this:
> parsing pgt-firmware-1.2.tgz
> Bad pkg_db: No such file or directory at
> /usr/libdata/perl5/OpenBSD/PackageInfo.
> pm line 63.
> 
> Do I need to add perl manually?
> 
> Best wishes.



pgt firmware ...

2012-02-25 Thread David Walker
Hi.

I'm trying to do:
pkg_add http://firmware.openbsd.olg/firmware/pgt-firmware-1.2.tgz

I get this:
parsing pgt-firmware-1.2.tgz
Bad pkg_db: No such file or directory at /usr/libdata/perl5/OpenBSD/PackageInfo.
pm line 63.

Do I need to add perl manually?

Best wishes.