Re: ath0: unable to attach hardware

2012-12-29 Thread husyh
Hi,

here's my new config: http://nopaste.info/7c11afee7c.html
and here's the complete kernel build output: http://nopaste.info/34db985f16.html
The error message is this:

cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  -I. 
-I/usr/src/sys/modules/ath/../../dev/ath 
-I/usr/src/sys/modules/ath/../../dev/ath/ath_hal -DHAVE_KERNEL_OPTION_HEADERS 
-include /usr/obj/usr/src/sys/PAVILIONNOATH/opt_global.h -I. -I@ 
-I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer 
-I/usr/obj/usr/src/sys/PAVILIONNOATH  -mno-sse -mcmodel=kernel -mno-red-zone 
-mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding 
-fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  
-Wmissing-include-dirs -fdiagnostics-show-option -c 
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c
In file included from /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:55:
@/net/if_var.h:125: error: 'IFNAMSIZ' undeclared here (not in a function)
@/net/if_var.h:151: error: field 'if_data' has incomplete type
cc1: warnings being treated as errors
@/net/if_var.h:157: warning: 'struct sockaddr' declared inside parameter list
@/net/if_var.h:157: warning: its scope is only this definition or declaration, 
which is probably not what you want
@/net/if_var.h:167: warning: 'struct sockaddr' declared inside parameter list
@/net/if_var.h:187: error: 'AF_MAX' undeclared here (not in a function)
@/net/if_var.h:718: error: field 'if_data' has incomplete type
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c: In function 
'ath_hal_attach':
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: warning: dereferencing 
'void *' pointer
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: error: request for 
member 'sc_ifp' in something not a structure or union
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: warning: dereferencing 
'void *' pointer
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: error: request for 
member 'sc_ifp' in something not a structure or union
*** Error code 1 

What am I supposed to do?

Thank you very much. :)


Oh, comment out the if_ath_pci device too.

Sorry, forgot about that.



adrian


On 28 December 2012 03:48,  hu...@hush.com wrote:
 Hello again,

 here's the new kernel config: http://nopaste.info/d7929aa100.html
 and here's the make output: http://nopaste.info/ae7826ba48.html
 The error messages I get when building are these:

 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -
std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-
prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-
qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-
include-dirs -fdiagnostics-show-option -nostdinc  -I. -
I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -
DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -
finline-limit=8000 --param inline-unit-growth=100 --param large-
function-growth=1000  -fno-omit-frame-pointer -mno-sse -
mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-
asynchronous-unwind-tables -ffreestanding -fstack-protector -
Werror  vers.c
 linking kernel.debug
 if_ath_pci.o: In function `ath_pci_resume':
 /usr/src/sys/dev/ath/if_ath_pci.c:231: undefined reference to 
`ath_resume'
 if_ath_pci.o: In function `ath_pci_suspend':
 /usr/src/sys/dev/ath/if_ath_pci.c:221: undefined reference to 
`ath_suspend'
 if_ath_pci.o: In function `ath_pci_shutdown':
 /usr/src/sys/dev/ath/if_ath_pci.c:212: undefined reference to 
`ath_shutdown'
 if_ath_pci.o: In function `ath_pci_detach':
 /usr/src/sys/dev/ath/if_ath_pci.c:193: undefined reference to 
`ath_detach'
 if_ath_pci.o: In function `ath_pci_attach':
 /usr/src/sys/dev/ath/if_ath_pci.c:140: undefined reference to 
`ath_intr'
 /usr/src/sys/dev/ath/if_ath_pci.c:168: undefined reference to 
`ath_attach'
 if_ath_pci.o: In function `ath_pci_probe':
 /usr/src/sys/dev/ath/if_ath_pci.c:82: undefined reference to 
`ath_hal_probe'
 *** Error code 1

 I'm sorry for being so unexperienced. What am I doing wrong?


Hi,

Just leave all of the ath/ah options in the kernel.

Then comment out

device ath
device ath_hal
device ath_rate_sample

.. but yes, leave all the options in there.



Adrian


On 27 December 2012 12:06,  hu...@hush.com wrote:
 Hello,

 I hope you had a pleasant trip. Sorry for not replying for a
while.

 Anyway, I tried to do what you asked me to. However, it seems
like I misunderstood the handbook and/or your request, as I 
failed
to compile the kernel.

 I copied my previous, working kernel config to a new file, and
commented the devices ath, ath_pci, ath_hal and ath_rate_sample,
as well as the options AH_SUPPORT_AR5416, AH_DEBUG and ATH_DEBUG.
I did this because I could not find instructions in the handbook
that 

Re: ath0: unable to attach hardware

2012-12-29 Thread Adrian Chadd
Erm.. that's confusing. I've never seen this build problem before. The
modules should build fine..

On 29 December 2012 07:29,  hu...@hush.com wrote:
 Hi,

 here's my new config: http://nopaste.info/7c11afee7c.html
 and here's the complete kernel build output: 
 http://nopaste.info/34db985f16.html
 The error message is this:

 cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc  
 -I. -I/usr/src/sys/modules/ath/../../dev/ath 
 -I/usr/src/sys/modules/ath/../../dev/ath/ath_hal -DHAVE_KERNEL_OPTION_HEADERS 
 -include /usr/obj/usr/src/sys/PAVILIONNOATH/opt_global.h -I. -I@ 
 -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param 
 large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer 
 -I/usr/obj/usr/src/sys/PAVILIONNOATH  -mno-sse -mcmodel=kernel -mno-red-zone 
 -mno-mmx -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding 
 -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls 
 -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
 -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions  
 -Wmissing-include-dirs -fdiagnostics-show-option -c 
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c
 In file included from /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:55:
 @/net/if_var.h:125: error: 'IFNAMSIZ' undeclared here (not in a function)
 @/net/if_var.h:151: error: field 'if_data' has incomplete type
 cc1: warnings being treated as errors
 @/net/if_var.h:157: warning: 'struct sockaddr' declared inside parameter list
 @/net/if_var.h:157: warning: its scope is only this definition or 
 declaration, which is probably not what you want
 @/net/if_var.h:167: warning: 'struct sockaddr' declared inside parameter list
 @/net/if_var.h:187: error: 'AF_MAX' undeclared here (not in a function)
 @/net/if_var.h:718: error: field 'if_data' has incomplete type
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c: In function 
 'ath_hal_attach':
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: warning: 
 dereferencing 'void *' pointer
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: error: request for 
 member 'sc_ifp' in something not a structure or union
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: warning: 
 dereferencing 'void *' pointer
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: error: request for 
 member 'sc_ifp' in something not a structure or union
 *** Error code 1

 What am I supposed to do?

 Thank you very much. :)


Oh, comment out the if_ath_pci device too.

Sorry, forgot about that.



adrian


On 28 December 2012 03:48,  hu...@hush.com wrote:
 Hello again,

 here's the new kernel config: http://nopaste.info/d7929aa100.html
 and here's the make output: http://nopaste.info/ae7826ba48.html
 The error messages I get when building are these:

 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -
std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-
prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-
qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-
include-dirs -fdiagnostics-show-option -nostdinc  -I. -
I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -
DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -
finline-limit=8000 --param inline-unit-growth=100 --param large-
function-growth=1000  -fno-omit-frame-pointer -mno-sse -
mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-
asynchronous-unwind-tables -ffreestanding -fstack-protector -
Werror  vers.c
 linking kernel.debug
 if_ath_pci.o: In function `ath_pci_resume':
 /usr/src/sys/dev/ath/if_ath_pci.c:231: undefined reference to
`ath_resume'
 if_ath_pci.o: In function `ath_pci_suspend':
 /usr/src/sys/dev/ath/if_ath_pci.c:221: undefined reference to
`ath_suspend'
 if_ath_pci.o: In function `ath_pci_shutdown':
 /usr/src/sys/dev/ath/if_ath_pci.c:212: undefined reference to
`ath_shutdown'
 if_ath_pci.o: In function `ath_pci_detach':
 /usr/src/sys/dev/ath/if_ath_pci.c:193: undefined reference to
`ath_detach'
 if_ath_pci.o: In function `ath_pci_attach':
 /usr/src/sys/dev/ath/if_ath_pci.c:140: undefined reference to
`ath_intr'
 /usr/src/sys/dev/ath/if_ath_pci.c:168: undefined reference to
`ath_attach'
 if_ath_pci.o: In function `ath_pci_probe':
 /usr/src/sys/dev/ath/if_ath_pci.c:82: undefined reference to
`ath_hal_probe'
 *** Error code 1

 I'm sorry for being so unexperienced. What am I doing wrong?


Hi,

Just leave all of the ath/ah options in the kernel.

Then comment out

device ath
device ath_hal
device ath_rate_sample

.. but yes, leave all the options in there.



Adrian


On 27 December 2012 12:06,  hu...@hush.com wrote:
 Hello,

 I hope you had a pleasant trip. Sorry for not replying for a
while.

 Anyway, I tried to do what you asked me to. However, it seems
like I misunderstood the handbook and/or your request, as I
failed
to compile the kernel.

 I copied my previous, working kernel config to a new file, and
commented the 

Amd(8) Hangs at Boot

2012-12-29 Thread Cy Schubert
Just udated to the latest current and amd hangs at boot. Ideas?

NFS access cache time=0
Starting amd.
[halt - sent]
KDB: enter: Break to debugger
[ thread pid 762 tid 100072 ]
Stopped at  kdb_break+0x4e: movl$0,kdb_why
db bt
Tracing pid 762 tid 100072 td 0x8a1675e0
kdb_break(87641200,c7c8617c,807a9208,81ac6b54,81ac6b50,...) at 
kdb_break+0x4e/frame 0xc7c86130
uart_intr(87641200,0,8a1675e0,4,875f30d0,...) at uart_intr+0x8e/frame 
0xc7c8615c
intr_event_handle(8757fa80,c7c861c0,1,8a1675e0,8a22d6e4,...) at 
intr_event_handle+0x85/frame 0xc7c8617c
intr_execute_handlers(875f30d0,c7c861c0,0) at intr_execute_handlers+0x42/fra
me 0xc7c8619c
lapic_handle_intr(42,c7c861c0) at lapic_handle_intr+0x3d/frame 0xc7c861b0
Xapic_isr2() at Xapic_isr2+0x35/frame 0xc7c861b0
--- interrupt, eip = 0x80929af4, esp = 0xc7c86200, ebp = 0xc7c86220 ---
udp_bind(8a4b71a0,8a125380,8a1675e0,8a1675e0,8758b400,...) at 
udp_bind+0x104/frame 0xc7c86220
bindresvport(8a4b71a0,0,c7c86380,89fa8300,c7c86408,...) at 
bindresvport+0x14a/frame 0xc7c86284
clnt_reconnect_call(876e82e0,c7c86358,1,89fa8300,c7c86408,...) at 
clnt_reconnect_call+0x2a0/frame 0xc7c862e8
newnfs_request(c7c86408,8a229200,0,8a229310,0,...) at 
newnfs_request+0x82a/frame 0xc7c863b0
nfsrpc_getattrnovp(8a229200,8a22928c,20,1,8758be80,...) at 
nfsrpc_getattrnovp+0xfa/frame 0xc7c864b0
mountnfs(8a125b40,c7c86870,c7c8678c,0,c7c86728,...) at mountnfs+0x883/frame 
0xc7c865a0
nfs_mount(8a11c2a0,80d1e8e8,8a0fc400,8758be80,0,...) at 
nfs_mount+0x169f/frame 0xc7c86960
vfs_donmount(8a1675e0,80,0,c7c86b58,8a10b000,...) at 
vfs_donmount+0xc94/frame 0xc7c86b40
kernel_mount(87557a80,80,0,58,3,...) at kernel_mount+0x52/frame 
0xc7c86b80
nfs_cmount(87557a80,7fbfd170,80,0,80b46c55,...) at 
nfs_cmount+0x63/frame 0xc7c86c08
sys_mount(8a1675e0,c7c86cc8,8a1675e0,88bb82f0,80d94a80,...) at 
sys_mount+0x20b/frame 0xc7c86c40
syscall(c7c86d08) at syscall+0x479/frame 0xc7c86cfc
Xint0x80_syscall() at Xint0x80_syscall+0x21/frame 0xc7c86cfc
--- syscall (21, FreeBSD ELF32, sys_mount), eip = 0x280ebef7, esp = 
0x7fbfd09c, ebp = 0x7fbfd0c0 ---
db 


-- 
Cheers,
Cy Schubert cy.schub...@komquats.com
FreeBSD UNIX:  c...@freebsd.org   Web:  http://www.FreeBSD.org

The need of the many outweighs the greed of the few.


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


Re: ath0: unable to attach hardware

2012-12-29 Thread husyh
Hi,

I maybe should add that whenever I haven't explicitly mentioned the version of 
FreeBSD I'm using, it's 9.0-RELEASE, as it is in this case. Is this maybe the 
cause of confusion?

If you're still unsure why the build fails, please let me know how I can help 
to resolve this issue.

Thank you!



Erm.. that's confusing. I've never seen this build problem before. 
The
modules should build fine..

On 29 December 2012 07:29,  hu...@hush.com wrote:
 Hi,

 here's my new config: http://nopaste.info/7c11afee7c.html
 and here's the complete kernel build output: 
http://nopaste.info/34db985f16.html
 The error message is this:

 cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE 
-nostdinc  -I. -I/usr/src/sys/modules/ath/../../dev/ath -
I/usr/src/sys/modules/ath/../../dev/ath/ath_hal -
DHAVE_KERNEL_OPTION_HEADERS -include 
/usr/obj/usr/src/sys/PAVILIONNOATH/opt_global.h -I. -I@ -
I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 
--param large-function-growth=1000 -fno-common -g -fno-omit-frame-
pointer -I/usr/obj/usr/src/sys/PAVILIONNOATH  -mno-sse -
mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-
asynchronous-unwind-tables -ffreestanding -fstack-protector -
std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -
Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -
Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -
fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-
option -c /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c
 In file included from 
/usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:55:
 @/net/if_var.h:125: error: 'IFNAMSIZ' undeclared here (not in a 
function)
 @/net/if_var.h:151: error: field 'if_data' has incomplete type
 cc1: warnings being treated as errors
 @/net/if_var.h:157: warning: 'struct sockaddr' declared inside 
parameter list
 @/net/if_var.h:157: warning: its scope is only this definition 
or declaration, which is probably not what you want
 @/net/if_var.h:167: warning: 'struct sockaddr' declared inside 
parameter list
 @/net/if_var.h:187: error: 'AF_MAX' undeclared here (not in a 
function)
 @/net/if_var.h:718: error: field 'if_data' has incomplete type
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c: In function 
'ath_hal_attach':
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: warning: 
dereferencing 'void *' pointer
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:65: error: 
request for member 'sc_ifp' in something not a structure or union
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: warning: 
dereferencing 'void *' pointer
 /usr/src/sys/modules/ath/../../dev/ath/ath_hal/ah.c:70: error: 
request for member 'sc_ifp' in something not a structure or union
 *** Error code 1

 What am I supposed to do?

 Thank you very much. :)


Oh, comment out the if_ath_pci device too.

Sorry, forgot about that.



adrian


On 28 December 2012 03:48,  hu...@hush.com wrote:
 Hello again,

 here's the new kernel config: 
http://nopaste.info/d7929aa100.html
 and here's the make output: http://nopaste.info/ae7826ba48.html
 The error messages I get when building are these:

 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -
std=c99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-
prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-
qual  -Wundef -Wno-pointer-sign -fformat-extensions  -Wmissing-
include-dirs -fdiagnostics-show-option -nostdinc  -I. -
I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -
DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -
finline-limit=8000 --param inline-unit-growth=100 --param large-
function-growth=1000  -fno-omit-frame-pointer -mno-sse -
mcmodel=kernel -mno-red-zone -mno-mmx -msoft-float  -fno-
asynchronous-unwind-tables -ffreestanding -fstack-protector -
Werror  vers.c
 linking kernel.debug
 if_ath_pci.o: In function `ath_pci_resume':
 /usr/src/sys/dev/ath/if_ath_pci.c:231: undefined reference to
`ath_resume'
 if_ath_pci.o: In function `ath_pci_suspend':
 /usr/src/sys/dev/ath/if_ath_pci.c:221: undefined reference to
`ath_suspend'
 if_ath_pci.o: In function `ath_pci_shutdown':
 /usr/src/sys/dev/ath/if_ath_pci.c:212: undefined reference to
`ath_shutdown'
 if_ath_pci.o: In function `ath_pci_detach':
 /usr/src/sys/dev/ath/if_ath_pci.c:193: undefined reference to
`ath_detach'
 if_ath_pci.o: In function `ath_pci_attach':
 /usr/src/sys/dev/ath/if_ath_pci.c:140: undefined reference to
`ath_intr'
 /usr/src/sys/dev/ath/if_ath_pci.c:168: undefined reference to
`ath_attach'
 if_ath_pci.o: In function `ath_pci_probe':
 /usr/src/sys/dev/ath/if_ath_pci.c:82: undefined reference to
`ath_hal_probe'
 *** Error code 1

 I'm sorry for being so unexperienced. What am I doing wrong?


Hi,

Just leave all of the ath/ah options in the kernel.

Then comment out

device ath
device ath_hal
device ath_rate_sample

.. but yes, leave all the options in there.



Adrian


On 27 December 2012 12:06,  hu...@hush.com wrote:
 Hello,

 I hope you had