Re: ath0: kernel panic when adhoc mode.

2010-04-19 Thread Lystopad Olexandr
 Hello, Paul B Mahol!

On Sun, Apr 18, 2010 at 10:20:26AM +
one...@gmail.com wrote about Re: ath0: kernel panic when adhoc mode.:
 On 4/14/10, Lystopad Olexandr l...@laa.zp.ua wrote:
  Hi!
 
  I install 8.0 FreeBSD, upgrade it to yesturday stable.
  I need to create wireless link in adhoc mode.
  Help me to do this.
 
 
  I put a wireless card into this box:
 
  a...@pci0:3:3:0:class=0x02 card=0xcc2114b9 chip=0x0013168c
  rev=0x01 hdr=0x00
  vendor = 'Atheros Communications Inc.'
  device = '802.11a/b/g Wireless Adapter (AR5212)'
  class  = network
  subclass   = ethernet
  cap 01[44] = powerspec 2  supports D0 D3  current D0
 
 
 
  when I do:
  # ifconfig wlan0 create wlandev ath0 wlanmode adhoc
 
  server reboot with kernel panic:
 
  Fatal trap 12: page fault while in kernel mode
  cpuid = 1; apic id = 01
  fault virtual address   = 0x
  fault code  = supervisor read, page not present
  instruction pointer = 0x20:0xc0791612
  stack pointer   = 0x28:0xd2f42ba4
  frame pointer   = 0x28:0xd2f42bac
  code segment= base 0x0, limit 0xf, type 0x1b
  = DPL 0, pres 1, def32 1, gran 1
  processor eflags= interrupt enabled, resume, IOPL = 0
  current process = 0 (ath0 taskq)
  trap number = 12
  panic: page fault
  cpuid = 1
  Uptime: 3m35s
  Physical memory: 439 MB
  Dumping 80 MB: 65 49 33panic: bufwrite: buffer is not busy???
  cpuid = 1
   17 1
 
  #0  doadump () at pcpu.h:246
  246 pcpu.h: No such file or directory.
  in pcpu.h
  (kgdb) #0  doadump () at pcpu.h:246
  #1  0xc06b3497 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
  #2  0xc06b3789 in panic (fmt=Variable fmt is not available.
  ) at /usr/src/sys/kern/kern_shutdown.c:579
  #3  0xc08b63bc in trap_fatal (frame=0xd2f42b64, eva=65535)
  at /usr/src/sys/i386/i386/trap.c:938
  #4  0xc08b6620 in trap_pfault (frame=0xd2f42b64, usermode=0, eva=65535)
  at /usr/src/sys/i386/i386/trap.c:851
  #5  0xc08b6f39 in trap (frame=0xd2f42b64) at
  /usr/src/sys/i386/i386/trap.c:533
  #6  0xc0899b3b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
  #7  0xc0791612 in ieee80211_getcapinfo (vap=0xc2d5f000, chan=0x)
  at /usr/src/sys/net80211/ieee80211_output.c:1836
  #8  0xc0793d17 in ieee80211_beacon_construct (m=0xc2edca00,
  frm=0xc2f0516e , bo=0xc2d5f884, ni=0xc2ceb000)
  at /usr/src/sys/net80211/ieee80211_output.c:2559
  #9  0xc07946db in ieee80211_beacon_alloc (ni=0xc2ceb000, bo=0xc2d5f884)
  at /usr/src/sys/net80211/ieee80211_output.c:2756
  #10 0xc050eaea in ath_newstate (vap=0xc2d5f000, nstate=IEEE80211_S_RUN,
  arg=-1) at /usr/src/sys/dev/ath/if_ath.c:2641
  #11 0xc0798db1 in ieee80211_newstate_cb (xvap=0xc2d5f000, npending=3)
  at /usr/src/sys/net80211/ieee80211_proto.c:1654
  #12 0xc06ebf92 in taskqueue_run (queue=0xc2a84c80)
  at /usr/src/sys/kern/subr_taskqueue.c:239
  #13 0xc06ec19d in taskqueue_thread_loop (arg=0xc2ada074)
  at /usr/src/sys/kern/subr_taskqueue.c:360
  #14 0xc068a331 in fork_exit (callout=0xc06ec0e0 taskqueue_thread_loop,
  arg=0xc2ada074, frame=0xd2f42d38) at /usr/src/sys/kern/kern_fork.c:843
  #15 0xc0899bb0 in fork_trampoline () at
  /usr/src/sys/i386/i386/exception.s:270
  (kgdb)
 
 
 This is bug, please report it ASAP.

Thanks.
Done. http://www.freebsd.org/cgi/query-pr.cgi?pr=145826

-- 
 Olexandr Lystopad
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ath0: kernel panic when adhoc mode.

2010-04-18 Thread Paul B Mahol
On 4/14/10, Lystopad Olexandr l...@laa.zp.ua wrote:
 Hi!

 I install 8.0 FreeBSD, upgrade it to yesturday stable.
 I need to create wireless link in adhoc mode.
 Help me to do this.


 I put a wireless card into this box:

 a...@pci0:3:3:0:class=0x02 card=0xcc2114b9 chip=0x0013168c
 rev=0x01 hdr=0x00
 vendor = 'Atheros Communications Inc.'
 device = '802.11a/b/g Wireless Adapter (AR5212)'
 class  = network
 subclass   = ethernet
 cap 01[44] = powerspec 2  supports D0 D3  current D0



 when I do:
 # ifconfig wlan0 create wlandev ath0 wlanmode adhoc

 server reboot with kernel panic:

 Fatal trap 12: page fault while in kernel mode
 cpuid = 1; apic id = 01
 fault virtual address   = 0x
 fault code  = supervisor read, page not present
 instruction pointer = 0x20:0xc0791612
 stack pointer   = 0x28:0xd2f42ba4
 frame pointer   = 0x28:0xd2f42bac
 code segment= base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, def32 1, gran 1
 processor eflags= interrupt enabled, resume, IOPL = 0
 current process = 0 (ath0 taskq)
 trap number = 12
 panic: page fault
 cpuid = 1
 Uptime: 3m35s
 Physical memory: 439 MB
 Dumping 80 MB: 65 49 33panic: bufwrite: buffer is not busy???
 cpuid = 1
  17 1

 #0  doadump () at pcpu.h:246
 246 pcpu.h: No such file or directory.
 in pcpu.h
 (kgdb) #0  doadump () at pcpu.h:246
 #1  0xc06b3497 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
 #2  0xc06b3789 in panic (fmt=Variable fmt is not available.
 ) at /usr/src/sys/kern/kern_shutdown.c:579
 #3  0xc08b63bc in trap_fatal (frame=0xd2f42b64, eva=65535)
 at /usr/src/sys/i386/i386/trap.c:938
 #4  0xc08b6620 in trap_pfault (frame=0xd2f42b64, usermode=0, eva=65535)
 at /usr/src/sys/i386/i386/trap.c:851
 #5  0xc08b6f39 in trap (frame=0xd2f42b64) at
 /usr/src/sys/i386/i386/trap.c:533
 #6  0xc0899b3b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
 #7  0xc0791612 in ieee80211_getcapinfo (vap=0xc2d5f000, chan=0x)
 at /usr/src/sys/net80211/ieee80211_output.c:1836
 #8  0xc0793d17 in ieee80211_beacon_construct (m=0xc2edca00,
 frm=0xc2f0516e , bo=0xc2d5f884, ni=0xc2ceb000)
 at /usr/src/sys/net80211/ieee80211_output.c:2559
 #9  0xc07946db in ieee80211_beacon_alloc (ni=0xc2ceb000, bo=0xc2d5f884)
 at /usr/src/sys/net80211/ieee80211_output.c:2756
 #10 0xc050eaea in ath_newstate (vap=0xc2d5f000, nstate=IEEE80211_S_RUN,
 arg=-1) at /usr/src/sys/dev/ath/if_ath.c:2641
 #11 0xc0798db1 in ieee80211_newstate_cb (xvap=0xc2d5f000, npending=3)
 at /usr/src/sys/net80211/ieee80211_proto.c:1654
 #12 0xc06ebf92 in taskqueue_run (queue=0xc2a84c80)
 at /usr/src/sys/kern/subr_taskqueue.c:239
 #13 0xc06ec19d in taskqueue_thread_loop (arg=0xc2ada074)
 at /usr/src/sys/kern/subr_taskqueue.c:360
 #14 0xc068a331 in fork_exit (callout=0xc06ec0e0 taskqueue_thread_loop,
 arg=0xc2ada074, frame=0xd2f42d38) at /usr/src/sys/kern/kern_fork.c:843
 #15 0xc0899bb0 in fork_trampoline () at
 /usr/src/sys/i386/i386/exception.s:270
 (kgdb)


This is bug, please report it ASAP.



 dmesg is:

 Copyright (c) 1992-2010 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.
 FreeBSD is a registered trademark of The FreeBSD Foundation.
 FreeBSD 8.0-STABLE #0: Wed Apr 14 07:45:45 MSD 2010
 r...@serv01:/usr/obj/usr/src/sys/serv01 i386
 Timecounter i8254 frequency 1193182 Hz quality 0
 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2194.76-MHz 686-class
 CPU)
   Origin = AuthenticAMD  Id = 0x40fb2  Family = f  Model = 4b  Stepping =
 2

 Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
   Features2=0x2001SSE3,CX16
   AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!
   AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8
 real memory  = 536870912 (512 MB)
 avail memory = 449187840 (428 MB)
 ACPI APIC Table: 050407 APIC1334
 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 FreeBSD/SMP: 1 package(s) x 2 core(s)
  cpu0 (BSP): APIC ID:  0
  cpu1 (AP): APIC ID:  1
 ioapic0 Version 2.1 irqs 0-23 on motherboard
 kbd1 at kbdmux0
 acpi0: 050407 RSDT1334 on motherboard
 acpi0: [ITHREAD]
 acpi0: Power Button (fixed)
 acpi0: reservation of fee0, 1000 (3) failed
 acpi0: reservation of ffb8, 8 (3) failed
 acpi0: reservation of fff8, 8 (3) failed
 acpi0: reservation of 0, a (3) failed
 acpi0: reservation of 10, 1bf0 (3) failed
 ACPI HPET table warning: Sequence is non-zero (2)
 Timecounter ACPI-safe frequency 3579545 Hz quality 850
 acpi_timer0: 32-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
 cpu0: ACPI CPU on acpi0
 cpu1: ACPI CPU on acpi0
 acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on
 acpi0
 Timecounter HPET frequency 

ath0: kernel panic when adhoc mode.

2010-04-14 Thread Lystopad Olexandr
Hi!

I install 8.0 FreeBSD, upgrade it to yesturday stable.
I need to create wireless link in adhoc mode.
Help me to do this.


I put a wireless card into this box:

a...@pci0:3:3:0:class=0x02 card=0xcc2114b9 chip=0x0013168c rev=0x01 
hdr=0x00
vendor = 'Atheros Communications Inc.'
device = '802.11a/b/g Wireless Adapter (AR5212)'
class  = network
subclass   = ethernet
cap 01[44] = powerspec 2  supports D0 D3  current D0



when I do:
# ifconfig wlan0 create wlandev ath0 wlanmode adhoc

server reboot with kernel panic:

Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x
fault code  = supervisor read, page not present
instruction pointer = 0x20:0xc0791612
stack pointer   = 0x28:0xd2f42ba4
frame pointer   = 0x28:0xd2f42bac
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 0 (ath0 taskq)
trap number = 12
panic: page fault
cpuid = 1
Uptime: 3m35s
Physical memory: 439 MB
Dumping 80 MB: 65 49 33panic: bufwrite: buffer is not busy???
cpuid = 1
 17 1

#0  doadump () at pcpu.h:246
246 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0  doadump () at pcpu.h:246
#1  0xc06b3497 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:416
#2  0xc06b3789 in panic (fmt=Variable fmt is not available.
) at /usr/src/sys/kern/kern_shutdown.c:579
#3  0xc08b63bc in trap_fatal (frame=0xd2f42b64, eva=65535)
at /usr/src/sys/i386/i386/trap.c:938
#4  0xc08b6620 in trap_pfault (frame=0xd2f42b64, usermode=0, eva=65535)
at /usr/src/sys/i386/i386/trap.c:851
#5  0xc08b6f39 in trap (frame=0xd2f42b64) at /usr/src/sys/i386/i386/trap.c:533
#6  0xc0899b3b in calltrap () at /usr/src/sys/i386/i386/exception.s:165
#7  0xc0791612 in ieee80211_getcapinfo (vap=0xc2d5f000, chan=0x)
at /usr/src/sys/net80211/ieee80211_output.c:1836
#8  0xc0793d17 in ieee80211_beacon_construct (m=0xc2edca00,
frm=0xc2f0516e , bo=0xc2d5f884, ni=0xc2ceb000)
at /usr/src/sys/net80211/ieee80211_output.c:2559
#9  0xc07946db in ieee80211_beacon_alloc (ni=0xc2ceb000, bo=0xc2d5f884)
at /usr/src/sys/net80211/ieee80211_output.c:2756
#10 0xc050eaea in ath_newstate (vap=0xc2d5f000, nstate=IEEE80211_S_RUN,
arg=-1) at /usr/src/sys/dev/ath/if_ath.c:2641
#11 0xc0798db1 in ieee80211_newstate_cb (xvap=0xc2d5f000, npending=3)
at /usr/src/sys/net80211/ieee80211_proto.c:1654
#12 0xc06ebf92 in taskqueue_run (queue=0xc2a84c80)
at /usr/src/sys/kern/subr_taskqueue.c:239
#13 0xc06ec19d in taskqueue_thread_loop (arg=0xc2ada074)
at /usr/src/sys/kern/subr_taskqueue.c:360
#14 0xc068a331 in fork_exit (callout=0xc06ec0e0 taskqueue_thread_loop,
arg=0xc2ada074, frame=0xd2f42d38) at /usr/src/sys/kern/kern_fork.c:843
#15 0xc0899bb0 in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:270
(kgdb)




dmesg is:

Copyright (c) 1992-2010 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.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.0-STABLE #0: Wed Apr 14 07:45:45 MSD 2010
r...@serv01:/usr/obj/usr/src/sys/serv01 i386
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ (2194.76-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x40fb2  Family = f  Model = 4b  Stepping = 2
  
Features=0x178bfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
  Features2=0x2001SSE3,CX16
  AMD Features=0xea500800SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!
  AMD Features2=0x1fLAHF,CMP,SVM,ExtAPIC,CR8
real memory  = 536870912 (512 MB)
avail memory = 449187840 (428 MB)
ACPI APIC Table: 050407 APIC1334
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 1 package(s) x 2 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 Version 2.1 irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: 050407 RSDT1334 on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of fee0, 1000 (3) failed
acpi0: reservation of ffb8, 8 (3) failed
acpi0: reservation of fff8, 8 (3) failed
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, 1bf0 (3) failed
ACPI HPET table warning: Sequence is non-zero (2)
Timecounter ACPI-safe frequency 3579545 Hz quality 850
acpi_timer0: 32-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
cpu1: ACPI CPU on acpi0
acpi_hpet0: High Precision Event Timer iomem 0xfed0-0xfed003ff on acpi0
Timecounter HPET frequency 14318180 Hz quality 900
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
pcib1: ACPI PCI-PCI bridge at device 1.0 on pci0
pci1: ACPI PCI bus on pcib1
vgapci0: 

Re: ath0: kernel panic when adhoc mode.

2010-04-14 Thread Johann Hugo
On Wednesday 14 April 2010 10:30:54 am Lystopad Olexandr wrote:
 Hi!
 
 I install 8.0 FreeBSD, upgrade it to yesturday stable.
 I need to create wireless link in adhoc mode.
 Help me to do this.
 
 
 I put a wireless card into this box:
 
 a...@pci0:3:3:0:class=0x02 card=0xcc2114b9 chip=0x0013168c
  rev=0x01 hdr=0x00 vendor = 'Atheros Communications Inc.'
 device = '802.11a/b/g Wireless Adapter (AR5212)'
 class  = network
 subclass   = ethernet
 cap 01[44] = powerspec 2  supports D0 D3  current D0
 
 
 
 when I do:
 # ifconfig wlan0 create wlandev ath0 wlanmode adhoc
 

I remember a colleague of mine having a similar problem. I think he eventually 
tried a workaround by doing it in two commands. Try to split it up to see if 
it works.

#ifconfig wlan0 create wlandev ath0
#ifconfig wlan0 wlanmode adhoc
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ath0: kernel panic when adhoc mode.

2010-04-14 Thread Lystopad Olexandr
 Hello, Johann Hugo!

  when I do:
  # ifconfig wlan0 create wlandev ath0 wlanmode adhoc
  
 
 I remember a colleague of mine having a similar problem. I think he 
 eventually 
 tried a workaround by doing it in two commands. Try to split it up to see if 
 it works.
 
 #ifconfig wlan0 create wlandev ath0
 #ifconfig wlan0 wlanmode adhoc

Thanks for your reply!

But no luck:
# ifconfig wlan0 wlanmode adhoc
ifconfig: wlanmode: bad value


and:
# ifconfig -m ath0|grep -c adhoc
80


-- 
 Olexandr Lystopad
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ath0: kernel panic when adhoc mode.

2010-04-14 Thread Johann Hugo
On Wednesday 14 April 2010 02:57:35 pm Lystopad Olexandr wrote:
 But no luck:
 # ifconfig wlan0 wlanmode adhoc
 ifconfig: wlanmode: bad value
 

Oops, should be:
# ifconfig wlan0 mediaopt adhoc
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: ath0: kernel panic when adhoc mode.

2010-04-14 Thread Lystopad Olexandr
 Hello, Johann Hugo!

On Wed, Apr 14, 2010 at 04:19:01PM +0200
jh...@meraka.csir.co.za wrote about Re: ath0: kernel panic when adhoc mode.:
 On Wednesday 14 April 2010 02:57:35 pm Lystopad Olexandr wrote:
  But no luck:
  # ifconfig wlan0 wlanmode adhoc
  ifconfig: wlanmode: bad value
  
 
 Oops, should be:
 # ifconfig wlan0 mediaopt adhoc

# ifconfig wlan0 mediaopt adhoc
ifconfig: SIOCSIFMEDIA (media): Device not configured

:-(

-- 
 Olexandr Lystopad
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org