Project

General

Profile

Actions

Bug #317

closed

Toshiba Satellite M50 and ndis

Added by nonsolosoft almost 18 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Ferruccio Zamuner wrote:

I've found an update version of yk51x86 ethernet driver at opendriver.com/net/org

iconv -c -f CSUNICODE -t US-ASCII yk51x86.inf > yk51x86_a.inf

then ndiscvt gives me more parse errors and I've add comment to remove
for following lines:

;HKR, Ndi\Params\WakeUpModeCap_A\enum, "25", 0, Magic
Packet

;HKR, Ndi\Params\WakeUpModeCap_A\enum, "26", 0, Pattern
Match

;HKR, Ndi\Params\WakeUpModeCap_A\enum, "27", 0, Mag Pack
Patt Match

;HKR, Ndi\Params\WakeUpModeCap_A\enum, "28", 0, Link Change

I report them here because I don't know how if they are to fix or to
remove.

Now ndiscvt completes, but make fails:

% cd /usr/src/sys/dev/netif/ndis
% make obj
% make clean
% ndiscvt -s /usr/local/modules/if_ndis/yk51x86.sys -i
/usr/local/modules/if_ndis/yk51x86.inf -n yk5 -o
/usr/obj/usr/src/sys/dev/netif/ndis/ndis_driver_data.h
% make

now it fails only for an old type proto at line 2012 of if_ndis.c
and I've fixed quickly.

then

% make install
% kldload /modules/wlan.ko
% kldload /modules/ndis.ko
% kldload /modules/if_ndis.ko
link_elf: symbol kmalloc undefined
kldload: can't load /modules/if_ndis.ko: Exec format error

I hope that this report can be useful.

Bye, \fer

[...]
cc -O -pipe -mtune=pentiumpro -D_KERNEL -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -ansi -DKLD_MODULE -nostdinc -I. -I@
-I@/../include -I/usr/include -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 -fno-common
-ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector
-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -Wall -Wredundant-decls
-Wnested-externs -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Winline -Wcast-qual -ansi -c
/usr/src/sys/dev/netif/ndis/if_ndis.c
In file included from /usr/src/sys/dev/netif/ndis/if_ndis.c:87:
./ndis_driver_data.h:3487: error: excess elements in char array initializer
./ndis_driver_data.h:3487: error: (near initialization for
`ndis_regvals1011.nc_val')
./ndis_driver_data.h:3488: warning: braces around scalar initializer
./ndis_driver_data.h:3488: warning: (near initialization for
`ndis_regvals1011.nc_val0')
./ndis_driver_data.h:3488: warning: initialization makes integer from
pointer without a cast
./ndis_driver_data.h:3488: error: initializer element is not computable
at load time
./ndis_driver_data.h:3488: error: (near initialization for
`ndis_regvals1011.nc_val0')
[...]

I leave a complete archive at:

http://vola.diff.org/dfbsd_yk51x86.tgz

with:

rwxr-xr-x 0 root wheel 230400 12 Set 19:36
usr/local/modules/if_ndis/yk51x86.sys
-rw-r--r-
0 root wheel 164981 12 Set 19:36
usr/local/modules/if_ndis/yk51x86.inf
rw-r--r- 0 root wheel 2122109 12 Set 19:48
usr/obj/usr/src/sys/dev/netif/ndis/ndis_driver_data.h
rw-r--r- 0 root 1001 890828 12 Set 19:49 tmp/err.log

The last is full error log from make.

I'll appreciate any hint or help.

Thank you in advance, \fer

Actions

Also available in: Atom PDF