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: <rbus> 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 <[email protected]> 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 <[email protected]> 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
>>> :<[email protected]> 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. <[email protected]> wrote:
>>> :>> try fw_update (provided in OpenBSD 5.0)
>>> :>>
>>> :>> Wesley.
>>> :>>
>>> :>> On Sun, 26 Feb 2012 17:51:03 +1030, David Walker
>>> :>> <[email protected]> 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

Reply via email to