Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
libbsdxml is just normal expat with different name. Also, libjail and libsbuf seem relatively small. Would it make sense to just package these separately and have freebsd-utils build-depend on them? Note that libsbuf is packaged already (it's in freebsd-libs). As for libbsdxml, perhaps it'd be useful if libexpat provided a compatibility symlink? -- Robert Millan -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktikr962iqup+bv_+gn3beqmrtlbnjvyt+5h1j...@mail.gmail.com
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
Robert Millan r...@debian.org writes: As for libbsdxml, perhaps it'd be useful if libexpat provided a compatibility symlink? For the headers too? They expect bsdxml.h to exist. -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/84pqu9cddr@sauna.l.org
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
Hi, I think this is caused by the fact that ifieee80211.c is not compiled at all(!). The old build log https://buildd.debian.org/fetch.cgi?pkg=freebsd-utilsver=7.2-9arch=kfreebsd-i386stamp=1256686015file=log shows cc -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D#39;__FBSDID(string)=#39; -O2 -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wnested-externs -Wall -g -pipe -fPIC -I. -D_GNU_SOURCE -D#39;__FBSDID(string)=#39; -O2 -c ifieee80211.c but https://buildd.debian.org/fetch.cgi?pkg=freebsd-utilsver=8.0-7arch=kfreebsd-i386stamp=1264384567file=log does not show it anymore. -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/844obtm44y@sauna.l.org
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
package kfreebsd-image-8.1-1-686 reassign 601803 freebsd-utils retitle 601803 not compiled with ieee80211 (WLAN) support thanks Indeed debian/patches/002_ifconfig.diff comments out ifieee80211.c from the ifconfig/Makefile. Was this done since libbsdxml was not available? According to http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libexpat/libbsdxml.3?rev=1.6 libbsdxml is just normal expat with different name. Also, libjail and libsbuf seem relatively small. Would it make sense to just package these separately and have freebsd-utils build-depend on them? -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/84wropkorl@sauna.l.org
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
where if_iterate (if_fn fn, void *private) does buf = alloca (bufsize); if (__sysctl (request, 6, buf, bufsize, NULL, 0) = 0) Are you still saying that it should pass zero as third argument? No ;-) The code is different on plain FreeBSD and GNU/kFreeBSD. The FreeBSD one 1st passes zero, to get right buffer size, while our code uses doubling of buffer size. Sorry, wrong guess. BTW, for your pet project, the kernel syscall convention on kfreebsd-amd64 is the same as syscall convention on (linux-)amd64: syscall number rax arg 1 rdi arg 2 rsi arg 3 rdx arg 4 r10 arg 5 r8 arg 6 r9 Petr -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/pine.lnx.4.62.1011062246300.22...@sci.felk.cvut.cz
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
I downloaded ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/ISO-IMAGES/8.1/FreeBSD-8.1-RELEASE-i386-disc1.iso and combined the base.?? files as http://lindi.iki.fi/lindi/kfreebsd/freebsd-8.1-release-i386-base.tar.bz2 which I extracted to /root/freebsd-8.1-release-i386-base and added /usr/local/bin/freebsd wrapper that contains #!/bin/sh exec chroot /root/freebsd-8.1-release-i386-base $@ and lets me do # freebsd ifconfig wlan0 create wlandev eth0 which does not fail with SIOCIFCREATE2. = this looks like a userland bug in debian. -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/84vd4b3jka@sauna.l.org
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
2010/11/5 Timo Juhani Lindfors timo.lindf...@iki.fi: # freebsd ifconfig wlan0 create wlandev eth0 which does not fail with SIOCIFCREATE2. Could you compare ktrace output? -- Robert Millan -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/aanlktiknm4uy=ywtduaxvzut0bqw3axukrcfcb6tz...@mail.gmail.com
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
Robert Millan r...@debian.org writes: Could you compare ktrace output? I tried but if I attach the 7 KB files then bugs.debian.org ignores my emails silently. -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/84iq0b32i7@sauna.l.org
Bug#601803: kfreebsd-image-8.1-1-686: ifconfig wlan0 create wlandev ath0 = SIOCIFCREATE2: Bad address
Package: kfreebsd-image-8.1-1-686 Version: 8.1-5 Severity: normal [ this is resend #1 since I did not receive any reply in hours although my email works otherwise. This time the attachment is not included. ] ifconfig wlan0 create wlandev ath0 fails with ifconfig: SIOCIFCREATE2: Bad address on my aspire one laptop. I recompiled freebsd-utils with debugging symbols and set a breakpoint at ifclone.c just before if (ioctl(s, SIOCIFCREATE2, ifr) 0) Here gdb shows the ifr as (gdb) p ifr $1 = {ifr_name = wlan0\000\000\000\000\000\000\000\000\000\000, ifr_ifru = {ifru_addr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' repeats 13 times}, ifru_dstaddr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' repeats 13 times}, ifru_broadaddr = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' repeats 13 times}, ifru_netmask = {sa_len = 0 '\000', sa_family = 0 '\000', sa_data = '\000' repeats 13 times}, ifru_buffer = {length = 0, buffer = 0x0}, ifru_flags = {0, 0}, ifru_index = 0, ifru_jid = 0, ifru_metric = 0, ifru_mtu = 0, ifru_phys = 0, ifru_media = 0, ifru_data = 0x0, ifru_cap = {0, 0}}} (gdb) x/100xb (char*)ifr 0xbfbfe7bc: 0x770x6c0x610x6e0x300x000x000x00 0xbfbfe7c4: 0x000x000x000x000x000x000x000x00 0xbfbfe7cc: 0x000x000x000x000x000x000x000x00 0xbfbfe7d4: 0x000x000x000x000x000x000x000x00 0xbfbfe7dc: 0xb90xc00x890xa90x020x000x000x00 0xbfbfe7e4: 0x980x210x050x080x280xe80xbf0xbf 0xbfbfe7ec: 0x160xa50x040x080x060x000x000x00 0xbfbfe7f4: 0x000x000x000x000x060x000x000x00 0xbfbfe7fc: 0x600x280x050x080xc00xff0x080x28 0xbfbfe804: 0x980x210x050x080x200xdd0x060x28 0xbfbfe80c: 0x060x000x000x000xc00x3f0x050x08 0xbfbfe814: 0x000x000x000x000xcb0x030x050x08 0xbfbfe81c: 0x600x280x050x08 I then recompiled kfreebsd-8 with debugging symbols and DDB/KDB support (and documented this as http://wiki.debian.org/Debian_GNU/kFreeBSD_FAQ#Q.HowdoIdebugthekernel.3F ) and saw that copyin() in wlan_clone_create() fails since its third argument, caddr_t params, contains just 0x10 which can not be a valid pointer. trace shows that the third argument of ifioctl is 0xc32477e0 so I dumped its contents with the kernel debugger. Unfortunately I do not know how to save debugger output to a file so I took a photo of the screen instead (see the attached 41KB png file). -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (500, 'testing') Architecture: kfreebsd-i386 (i686) Kernel: kFreeBSD 8.1-1-686 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages kfreebsd-image-8.1-1-686 depends on: ii freebsd-utils 8.1-2+b1 FreeBSD utilities needed for GNU/k ii kldutils 8.1-2+b1 tools for managing kFreeBSD module Versions of packages kfreebsd-image-8.1-1-686 recommends: pn libc0.1-i686 none (no description available) kfreebsd-image-8.1-1-686 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/84d3qsagh6@sauna.l.org