Re: My WLI-UC-GNM up crash

2013-08-01 Thread Rui Paulo
On 31 Jul 2013, at 01:28, XiaoQI Ge g...@7axu.com wrote: Last night, I use the latest FreeBSD source (r253827) and crochet-freebsd compile img My WLI-UC-GNM will be disconnected after a period of operation run0: device timeout run0: at uhub0, port 1, addr 2 (disconnected) If you are using

Re: My WLI-UC-GNM up crash

2013-08-01 Thread XiaoQI Ge
Before using the computer USB power supply, the implementation of usbdump, the kernel Panic Some log: http://pastebin.com/wPURnAg5 http://img.vim-cn.com/5f/576bc22abaadb1014dae4c4e73b07f48579e8e.bmp addr2line information: http://pastebin.com/sE5C7bqi 1A is used after the power supply Enter no

Re: My WLI-UC-GNM up crash

2013-07-31 Thread XiaoQI Ge
...@bitfrost.no ; freebsd-arm freebsd-...@freebsd.org mailto:freebsd-...@freebsd.org ; freebsd-wireless@freebsd.org mailto:freebsd-wireless@freebsd.org Subject: Re: My WLI-UC-GNM up crash Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed

Re: My WLI-UC-GNM up crash

2013-07-31 Thread Ian Lepore
On Wed, 2013-07-31 at 16:28 +0800, XiaoQI Ge wrote: Last night, I use the latest FreeBSD source (r253827) and crochet-freebsd compile img My WLI-UC-GNM will be disconnected after a period of operation run0: device timeout run0: at uhub0, port 1, addr 2 (disconnected) Another log prompted

Re: My WLI-UC-GNM up crash

2013-07-29 Thread Warner Losh
The __aligned(8) likely isn't going to do anything. It says that you are guaranteeing to the compiler that you'll only ever allocate / cast pointers to this data type on a 8-byte boundary. __packed might help, but likely won't because that's for on-wire things and anything thing that wasn't

Re: My WLI-UC-GNM up crash

2013-07-29 Thread Warner Losh
Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed)? Warner On Jul 28, 2013, at 11:50 AM, Adrian Chadd wrote: As long as that results in the radiotap structures being 4 or 8 byte padded when it's embedded in the softc - then yes, indeed.

RE: My WLI-UC-GNM up crash

2013-07-29 Thread Hans Petter Selasky
-wireless@freebsd.org Subject: Re: My WLI-UC-GNM up crash Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed)? Warner On Jul 28, 2013, at 11:50 AM, Adrian Chadd wrote: As long as that results in the radiotap structures being 4 or 8

Re: My WLI-UC-GNM up crash

2013-07-29 Thread Warner Losh
-...@freebsd.org; freebsd-wireless@freebsd.org Subject: Re: My WLI-UC-GNM up crash Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed)? Warner On Jul 28, 2013, at 11:50 AM, Adrian Chadd wrote: As long as that results

Re: My WLI-UC-GNM up crash

2013-07-29 Thread Konstantin Belousov
On Mon, Jul 29, 2013 at 12:34:00PM -0600, Warner Losh wrote: On Jul 29, 2013, at 11:58 AM, Hans Petter Selasky wrote: The aligned will make sure that the structure gets padded properly to the size specified. Only on ARM/MIPS etc, structures get automatically aligned according to the

Re: My WLI-UC-GNM up crash

2013-07-29 Thread John-Mark Gurney
@freebsd.org Subject: Re: My WLI-UC-GNM up crash Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed)? Warner On Jul 28, 2013, at 11:50 AM, Adrian Chadd wrote: As long as that results in the radiotap structures being 4

Re: My WLI-UC-GNM up crash

2013-07-29 Thread Ian Lepore
mailto:freebsd-wireless@freebsd.org Subject: Re: My WLI-UC-GNM up crash Aren't structures already aligned to 4 bytes when placed inside other structures (unless marked __packed)? Warner On Jul 28, 2013, at 11:50 AM, Adrian Chadd wrote: As long as that results in the radiotap

Re: My WLI-UC-GNM up crash

2013-07-28 Thread Hans Petter Selasky
Hi, Can you try the attached patch? --HPS === sys/dev/usb/wlan/if_rumvar.h == --- sys/dev/usb/wlan/if_rumvar.h (revision 253548) +++ sys/dev/usb/wlan/if_rumvar.h (local) @@ -29,7 +29,7 @@ int8_t wr_antsignal; int8_t

Re: My WLI-UC-GNM up crash

2013-07-28 Thread XiaoQI Ge
Patch radiotap.diff ifconfig wlan0 normal execution through wifi wpa also be connected to the But often disconnected: Edit /etc/motd to change this login announcement. root@FreeBSD:~ # uptime 11:13PM up 33 secs, 1 user, load averages: 1.34, 0.37, 0.13 root@FreeBSD:~ # date Thu Jul 25 23:13:43

Re: My WLI-UC-GNM up crash

2013-07-27 Thread XiaoQI Ge
That should be how to solve it? -- Regards. By: XiaoQI Ge; PGP:8B09D5F7 WWW: https://www.7axu.com/ 2013/7/27 Adrian Chadd adr...@freebsd.org: This is known; there's some alignment issue with the radiotap TX/RX structures in some of these USB devices. -adrain On 25 July 2013 20:23,

Re: My WLI-UC-GNM up crash

2013-07-27 Thread Adrian Chadd
Not sure, I haven't dug into it. It shouldn't be hard to fix though. I think someone just screwed up in defining the structures in the USB drivers and didn't specify alignment. ath(4) got it right because Sam ran it on MIPS/ARM boards. -adrian On 27 July 2013 20:34, XiaoQI Ge g...@7axu.com

Re: My WLI-UC-GNM up crash

2013-07-25 Thread XiaoQI Ge
我更新到最新的源码(r253662),这次错误信息变成了0xde9f4d34 [root@FreeBSD.ttyu0] ~ # Fatal kernel mode data abort: 'Alignment Fault 1' trapframe: 0xde9f4d34 FSR=0801, FAR=c284afbb, spsr=0013 r0 =c284c000, r1 =c284afbb, r2 =c284c210, r3 =096c r4 =c284c024, r5 =c05f07c5, r6 =0014, r7 =c2844800 r8

Re: My WLI-UC-GNM up crash

2013-07-23 Thread XiaoQI Ge
I manually make up, is compiling the kernel -- Regards. By: XiaoQI Ge; PGP:8B09D5F7 WWW: https://www.7axu.com/ 2013/7/24 XiaoQI Ge g...@7axu.com: patch /root/if_run_2013_01_19_radiotap_fix_only.diff appears to be invalid ] /usr/src/sys/dev/usb/wlan # patch

RE: My WLI-UC-GNM up crash

2013-07-15 Thread Hans Petter Selasky
Hi, Can you try the attached patch? --HPS diff --git a/sys/net80211/ieee80211_radiotap.h b/sys/net80211/ieee80211_radiotap.h index b8a8b51..c199d48 100644 --- a/sys/net80211/ieee80211_radiotap.h +++ b/sys/net80211/ieee80211_radiotap.h @@ -78,7 +78,7 @@ struct ieee80211_radiotap_header { *

RE: My WLI-UC-GNM up crash

2013-07-15 Thread Hans Petter Selasky
Can you tell us which compiler you used to build your image? --HPS ___ freebsd-wireless@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-wireless To unsubscribe, send any mail to freebsd-wireless-unsubscr...@freebsd.org

Re: My WLI-UC-GNM up crash

2013-07-15 Thread Daan Vreeken
Hi XiaoQI Ge, On Monday 15 July 2013 06:12:38 XiaoQI Ge wrote: My WLI-UC-GNM ifconfig up when collapsed, I do not know how to solve root@FreeBSD:~ # ifconfig wlan create wlandev run0 wlan0: Ethernet address: 10:6f:3f:2b:fd:6d wlan0 root@FreeBSD:~ # ifconfig lo0: