Re: Wifi: TL-WN821N could not read ROM / kernel page fault
On Sun, Sep 11, 2011 at 10:10 AM, Bill Allaire open...@bogoflop.com wrote: TP-Link (TLWN812N 300Mbps) USB device. What I found really surprising was that unplugging the device locked up the OS. Due to message: Sep 7 15:19:08 geeky /bsd: athn0 at uhub0 Sep 7 15:19:08 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 7 15:19:08 geeky /bsd: athn0: failed loadfirmware of file athn-ar7010-11 (error 2) Sep 7 15:19:08 geeky /bsd: athn0: could not load firmware I downloaded athn-firmware-1.1.tgz and extracted those files into /etc/firmware. That file contained: firmware/athn-ar7010 firmware/athn-ar7010-11 firmware/athn-ar9271 That led to the following when plugged in: Sep 11 10:30:05 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 11 10:30:07 geeky /bsd: athn0: bad ROM checksum 0x2c17 Sep 11 10:30:07 geeky /bsd: athn0: could not read ROM Sep 11 10:30:07 geeky /bsd: athn0: could not attach chip When unplugged: uvm_fault(0xd0a31aa0, 0x0, 0, 3) - e kernel: page fault trap, code=0 Stopped at ieee80211_ifdetach+0x3e: movl %edx,0(%eax) ddb{1} (lost keyboard response at this point) You in X-Windows, I assume. I did try setting sysctl ddb.console=1 before unplugging the device again but: sysctl: ddb.console: Operation not permitted You can't change that setting at run time. You need to set it in your /etc/sysctl.conf file and reboot the system. I'm not sure how else I can get a trace, ps, show registers, etc... Try your experiment either from the console or set up a serial console for the machine. --patrick
Re: Wifi: TL-WN821N could not read ROM / kernel page fault
On 9/11/2011 2:37 PM, patrick keshishian wrote: On Sun, Sep 11, 2011 at 10:10 AM, Bill Allaireopen...@bogoflop.com wrote: TP-Link (TLWN812N 300Mbps) USB device. What I found really surprising was that unplugging the device locked up the OS. Due to message: Sep 7 15:19:08 geeky /bsd: athn0 at uhub0 Sep 7 15:19:08 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 7 15:19:08 geeky /bsd: athn0: failed loadfirmware of file athn-ar7010-11 (error 2) Sep 7 15:19:08 geeky /bsd: athn0: could not load firmware I downloaded athn-firmware-1.1.tgz and extracted those files into /etc/firmware. That file contained: firmware/athn-ar7010 firmware/athn-ar7010-11 firmware/athn-ar9271 That led to the following when plugged in: Sep 11 10:30:05 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 11 10:30:07 geeky /bsd: athn0: bad ROM checksum 0x2c17 Sep 11 10:30:07 geeky /bsd: athn0: could not read ROM Sep 11 10:30:07 geeky /bsd: athn0: could not attach chip When unplugged: uvm_fault(0xd0a31aa0, 0x0, 0, 3) - e kernel: page fault trap, code=0 Stopped at ieee80211_ifdetach+0x3e: movl %edx,0(%eax) ddb{1} (lost keyboard response at this point) You in X-Windows, I assume. No, console. Usually a headless device running as a firewall. I did try setting sysctl ddb.console=1 before unplugging the device again but: sysctl: ddb.console: Operation not permitted You can't change that setting at run time. You need to set it in your /etc/sysctl.conf file and reboot the system. I'm not sure how else I can get a trace, ps, show registers, etc... Try your experiment either from the console or set up a serial console for the machine. Made change to /etc/sysctl.conf and rebooted with wireless device connected. When login prompt appeared I unplugged the device and nothing has changed. I notice that once the lock up occurs, pressing the caps lock key no longer lights the indicator light on the keyboard. There is a COM port on this computer but it has a USB interface... --patrick
Re: Wifi: TL-WN821N could not read ROM / kernel page fault
On 9/11/2011 3:08 PM, roberth wrote: On Sun, 11 Sep 2011 13:10:17 -0400 Bill Allaireopen...@bogoflop.com wrote: I downloaded athn-firmware-1.1.tgz and extracted those files into /etc/firmware. It's a package, like the manpage says, use pkg_add. # pkg_add http://firmware.openbsd.org/firmware/athn-firmware-1.1.tgz Maybe, but i doubt that this will resolve your problem. I removed the firmware files and ran pkg_add with the URL you provided. No change with the problem I'm having.
Re: Wifi: TL-WN821N could not read ROM / kernel page fault
installed latest current 201109101515, received same msgs with previous current version 201109072136 Install non-free firmware files on first boot? [no] yes verified that firmware files are installed in /etc/firmware grep -i ath dmesg.boot athn0 at uhub0 port 1 ATHEROS UB95 rev 2.00/2.02 addr 2 athn0: failed loadfirmware of file athn-ar7010-11 (error 2) athn0: could not load firmware athn0 at uhub0 port 1 ATHEROS UB95 rev 2.00/2.02 addr 2 athn0: bad ROM checksum 0x2c17 athn0: could not read ROM athn0: could not attach chip reboot with TL-WN821N in computer when TL-WN821N disconnected # uvm_fault(0x80d2c0a0, 0x0, 0, 2) - e kernel: page fault trap, code=0 Stopped at ieee80211_ifdetach+0x49: movq %rdx,0(%rax) ddb{0} http://www.openbsd.org/report.html sysctl ddb.console=1 boot crash trace ieee80211_ifdetach() at ieee80211_ifdetach+0x49 athn_detach() at athn_detach+0x5a athn_usb_detach() at athn_usb_detach+0x11 config_detach() at config_detach+0x143 usb_disconnect_port() at usb_disconnect_port+0x6a uhub_expore()a at uhub_expore+0x12b usb_explore() at usb_explore+0xcf usb_task_thread() at usb_task_thread+0xb2 end trace frame: 0x0, count: -8 ps PID PPID PGRP UID S FLAGS WAIT COMMAND 22046 5938 22046 0 3 0x80 ttyin ksh 2594 12594 0 3 0x80 ttyin getty 24634 1 24634 0 3 0x80 ttyin getty 23530 1 23530 0 3 0x80 ttyin getty 1556 11556 0 3 0x80 ttyin getty 5938 15938 1000 3 0x88 pause ksh 19457 1 19457 0 3 0x80 select cron 17080 1 17080 0 3 0x80 select inetd 27633 1 27633 0 3 0x80 select sendmail 27154 1 27154 0 3 0x80 select sshd 32115 22870 22870 74 3 0x80 bpf pflogd 22870 1 22870 0 3 0x80 netio pflogd 24204 45374537 73 7 0x80 syslogd 4537 14537 0 3 0x80 netio syslogd 8741 18741 77 3 0x80 poll dhclient 20839 1 23652 0 3 0x80 poll dhclient 14 0 0 0 3 0x100200 aiodoned aiodoned 13 0 0 0 3 0x100200 syncer update 12 0 0 0 3 0x100200 cleaner cleaner 11 0 0 0 3 0x100200 reaper reaper 10 0 0 0 3 0x100200 pgdaemon pagedaemon 9 0 0 0 3 0x100200 bored pagedaemon On Sun, Sep 11, 2011 at 1:10 PM, Bill Allaire open...@bogoflop.com wrote: TP-Link (TLWN812N 300Mbps) USB device. What I found really surprising was that unplugging the device locked up the OS. Due to message: Sep 7 15:19:08 geeky /bsd: athn0 at uhub0 Sep 7 15:19:08 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 7 15:19:08 geeky /bsd: athn0: failed loadfirmware of file athn-ar7010-11 (error 2) Sep 7 15:19:08 geeky /bsd: athn0: could not load firmware I downloaded athn-firmware-1.1.tgz and extracted those files into /etc/firmware. That file contained: firmware/athn-ar7010 firmware/athn-ar7010-11 firmware/athn-ar9271 That led to the following when plugged in: Sep 11 10:30:05 geeky /bsd: port 1 ATHEROS UB95 rev 2.00/2.02 addr 3 Sep 11 10:30:07 geeky /bsd: athn0: bad ROM checksum 0x2c17 Sep 11 10:30:07 geeky /bsd: athn0: could not read ROM Sep 11 10:30:07 geeky /bsd: athn0: could not attach chip When unplugged: uvm_fault(0xd0a31aa0, 0x0, 0, 3) - e kernel: page fault trap, code=0 Stopped at ieee80211_ifdetach+0x3e: movl %edx,0(%eax) ddb{1} (lost keyboard response at this point) I did try setting sysctl ddb.console=1 before unplugging the device again but: sysctl: ddb.console: Operation not permitted I'm not sure how else I can get a trace, ps, show registers, etc... dmesg (from a fit-PC2i): OpenBSD 4.9 (GENERIC.MP) #794: Wed Mar 2 07:19:02 MST 2011 dera...@i386.openbsd.org:/usr/**src/sys/arch/i386/compile/GENE**RIC.MPhttp://GENERIC.MP cpu0: Intel(R) Atom(TM) CPU Z530 @ 1.60GHz (GenuineIntel 686-class) 1.60 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,**MCE,CX8,APIC,SEP,MTRR,PGE,MCA,** CMOV,PAT,CFLUSH,DS,ACPI,MMX,**FXSR,SSE,SSE2,SS,HTT,TM,SBF,** SSE3,MWAIT,DS-CPL,VMX,EST,TM2,**SSSE3,xTPR,PDCM,MOVBE real mem = 1063354368 (1014MB) avail mem = 1035804672 (987MB) mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 09/14/10, BIOS32 rev. 0 @ 0xfdc70, SMBIOS rev. 2.5 @ 0x3f69f000 (33 entries) bios0: vendor Phoenix Technologies LTD version NAPA0001.86C..D.**1009141059 date 09/14/2010 bios0: CompuLab
Re: Wifi: TL-WN821N could not read ROM / kernel page fault
re: previous message wasn't complete, sent finished bug report, with attached dmesg, to b...@openbsd.org regards, Daniel Villarreal On Sun, Sep 11, 2011 at 10:51 PM, Daniel Villarreal yclwebmas...@gmail.comwrote: installed latest current 201109101515, received same msgs with previous current version 201109072136 Install non-free firmware files on first boot? [no] yes verified that firmware files are installed in /etc/firmware [...] grep -i ath dmesg.bootps PID PPID PGRP UID S FLAGS WAIT COMMAND [deleted for brevity] 9 0 0 0 3 0x100200 bored pagedaemon [incomplete, complete info is in new bug report] On Sun, Sep 11, 2011 at 1:10 PM, Bill Allaire open...@bogoflop.comwrote: TP-Link (TLWN812N 300Mbps) USB device. What I found really surprising was that unplugging the device locked up the OS. [...]