Re: ath(4) major update

2007-02-05 Thread Ja'far Railton
> I don't think HAL can return such a large error code, there must be
> something out of sync.  Can you post the full dmesg?

(First, I think there may have been a problem with the TERM setting.
I have it back on cons25 now. I don't know if that could have been
responsible for the weird HAL error.)

Here's the last two dmesgs (they differ). Do you smell a hardware
problem here?

Copy\M-*Ugh(c) 2003, 2004, 2005, 2006, 2007 The DragonFly Project.
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
DragonFly 1.9.0-PREVIEW #2: Mon Feb  5 16:39:40 AST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL
TSC clock: 996295240 Hz, i8254 clock: 1193167 Hz
CPU: Intel Pentium III (996.32-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x68a  Stepping = 10
  
Features=0x387f9ff
real memory  = 259915776 (253824K bytes)
config> en apm0
config> q
avail memory = 243277824 (237576K bytes)
Preloaded elf kernel "/kernel" at 0xc04db000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc04db210.
Preloaded elf module "/modules/if_ath.ko" at 0xc04db260.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Preloaded elf module "/modules/ath_rate.ko" at 0xc04db308.
Preloaded elf module "/modules/ath_hal.ko" at 0xc04db3b4.
Preloaded elf module "/modules/sound.ko" at 0xc04db45c.
Pentium Pro MTRR support enabled
pcibios: BIOS version 2.10
Using $PIR table, 10 entries at 0xc00fb9d0
apm0:  on motherboard
apm0: found APM BIOS v1.2, connected at v1.2
npx0:  on motherboard
npx0: INT 16 interface
Using MMX optimized bcopy/copyin/copyout
legacypci0 on motherboard
pcib0:  on legacypci0
pci0:  on pcib0
agp0:  mem 0xf000-0xf3ff at device 0.0 
on pci0
agp0: bad initial aperture size, disabling
agp: ops removed
device_probe_and_attach: agp0 attach returned 6
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci1:  at 0.0 irq 11
pci0:  (vendor=0x10b9, dev=0x5451) at 6.0 irq 11
isab0:  at device 7.0 on pci0
isa0:  on isab0
fxp0:  port 0x9000-0x903f mem 
0x81a2-0x81a3,0x81a0-0x81a00fff irq 11 at device 10.0 on pci0
miibus0:  on fxp0
inphy0:  on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: MAC address: 00:00:e2:56:c1:da
atapci0:  port 0x7050-0x705f irq 15 at 
device 16.0 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0:  at 17.0
cbb0:  irq 11 at device 19.0 on pci0
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
ohci0:  mem 0x81e0-0x81e00fff 
irq 10 at device 20.0 on pci0
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0:  on ohci0
usb0: USB revision 1.0
uhub0: 4 ports with 4 removable, self powered
orm0:  at iomem 0xc-0xcbfff on isa0
fdc0: ready for input in output
fdc0: cmd 3 failed at out byte 1 of 3
atkbdc0:  at port 0x60,0x64 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: can't drain, serial port might not exist, disabling
sio1: can't drain, serial port might not exist, disabling
ad0: 38154MB  [77520/16/63] at ata0-master UDMA66
acd0: CDROM  at ata1-master PIO4
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=10, size=1
ath0:  mem 0x8801-0x8801 irq 11 at device 0.0 on cardbus0
ath0: unable to attach hardware; HAL status 14
device_probe_and_attach: ath0 attach returned 6
pass0 at ata1 bus 0 target 0 lun 0
pass0:  Removable CD-ROM SCSI-0 device
pass0: 16.000MB/s transfers
Mounting root from ufs:/dev/ad0s2a
ad0s4: rejecting partition in BSD label: it isn't entirely within the slice
ad0s4: start 25114383, end 78140159, size 53025777
ad0s4d: start 0, end 78140159, size 78140160
ad0s4: rejecting partition in BSD label: it isn't entirely within the slice
ad0s4e: start 63, end 12292559, size 12292497
ad0s4: rejecting partition in BSD label: it isn't entirely within the slice
ad0s4f: start 12292560, end 24509519, size 12216960
ad0s4: rejecting partition in BSD label: it isn't entirely within the slice
ad0s4i: start 24509583, end 25114319, size 604737
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=10, size=1
ath0:  mem 0x8801-0x8801 irq 11 at device 0.0 on cardbus0
ath0: unable to attach hardware; HAL status 14
device_probe_and_attach: ath0 attach returned 6
cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=10, size=10
cardbus0: Resource not specified in CIS: id=14, size=10
cardbus0: Resource not specified in CIS: id=18, size=10
cardbus0: Resource not specified in CIS: id=1c, size=10
cardbus0: Resource not specified in CIS: id=20, size=20
cardbus0: Resource not specified in CIS: id=24, size=20
cardbus0:  (vendor=0x0

UFS disklabel recovery/restore?

2007-02-05 Thread Petr Janda
Is there a program out there that can restore a disklabel by guessing 
the offset/size of each partition?


Petr


Re: ath(4) major update

2007-02-05 Thread Sepherosa Ziehau

On 2/6/07, Ja'far Railton <[EMAIL PROTECTED]> wrote:

> I don't think HAL can return such a large error code, there must be
> something out of sync.  Can you post the full dmesg?

(First, I think there may have been a problem with the TERM setting.
I have it back on cons25 now. I don't know if that could have been
responsible for the weird HAL error.)

Here's the last two dmesgs (they differ). Do you smell a hardware
problem here?


...


Preloaded elf module "/modules/if_ath.ko" at 0xc04db260.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
Preloaded elf module "/modules/ath_rate.ko" at 0xc04db308.
Preloaded elf module "/modules/ath_hal.ko" at 0xc04db3b4.


...


cardbus0: Expecting link target, got 0xff
cardbus0: Resource not specified in CIS: id=10, size=1
ath0:  mem 0x8801-0x8801 irq 11 at device 0.0 on cardbus0
ath0: unable to attach hardware; HAL status 14
device_probe_and_attach: ath0 attach returned 6


HAL status 14 is card "self test fail" :(



I would also like to check something. You may have noted that I'm using
Preview now instead of Release. I applied the ath0 and cbb patches but
not the sample.h.diff patch. Is that right?


As long as the ath patch applies cleanly, it will not be problem.

Best Regards,
sephe

--
Live Free or Die


Upgrading bootblocks

2007-02-05 Thread Petr Janda

Im trying to edit a disklabel of an old DF instalation, but I get an error:

disklabel: Will not overwrite old bootblocks w/ label, install new boot 
blocks first!


How do I install new boot blocks?

Petr