Page 1 of 1

usb net driver on gentoox

Posted: Sat May 28, 2005 5:49 pm
by gogetassj5
good evening... my problem is that: i have bought for the xbox gentoox an ethernet adapter USB, because the integrated ethernet device i think to be broken..... it doesn't work anyway......in linux and out linux with xbox applications.

now i would to compile the kernel with usb net support... i tried to compile a 2.6.8 kernel, but it doesn't work at all....

after, i thought about incompatibility (or however instability) of 2.6 kernel on gentoox.... and in the main page of site now i see that the same Shallax say about a possible return to 2.4.... at the end of first post about 600 days of gentoox on xbox server.

well, can you tell me what probably could be the better kernel for xbox gentoox with usb net support that i can compile without too problems?

tnx

Posted: Sun May 29, 2005 11:20 am
by gogetassj5
shallax gave me the kernel patch.... so i'll try, then i will tell you...

Posted: Mon May 30, 2005 10:47 pm
by gogetassj5
but shallax, when i try to patch the source, come on many errors and in many text string on the console is reported the kernel version 2.6.11.4 .. maybe you confused and gave me the patch for 2.6.11.4? or i made a bad explication of the problem :lol:

however, tomorrow i''l try to patch the right kernel source 2.6.11.4

are there many fixes between 2.6.11.4 and 2.6.11.10 ?????

Posted: Thu Jun 02, 2005 7:16 am
by gogetassj5
so, i tried to compile the kernel 2.6.11.4 after applying the patch at the source...

but now, if when i tried to compile kernel source without patching source for xbox, i could get a kernel image compiled but not working, now come up many errors just during compilation process


make
[............]
GEN .version
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
arch/i386/kernel/head.o(.text+0x203): In function `is386':
: undefined reference to `initialize_secondary'
init/built-in.o(.text+0xa1): In function `init':
: undefined reference to `smp_prepare_cpus'
init/built-in.o(.text+0xb4): In function `init':
: undefined reference to `cpu_callout_map'
init/built-in.o(.text+0x1ed): In function `init':
: undefined reference to `cpu_callout_map'
init/built-in.o(.init.text+0x697): In function `smp_init':
: undefined reference to `cpu_online_map'
init/built-in.o(.init.text+0x6c2): In function `smp_init':
: undefined reference to `smp_cpus_done'
init/built-in.o(.init.text+0x6d3): In function `smp_init':
: undefined reference to `cpu_online_map'
init/built-in.o(.init.text+0x6f0): In function `smp_init':
: undefined reference to `cpu_online_map'
init/built-in.o(.init.text+0x856): In function `start_kernel':
: undefined reference to `smp_prepare_boot_cpu'
arch/i386/kernel/built-in.o(.text+0x117): In function `cpu_idle_wait':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0x15d): In function `cpu_idle_wait':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0x17e): In function `cpu_idle_wait':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0x4893): In function `show_interrupts':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0x48d3): In function `show_interrupts':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0x49c3): more undefined references to `cpu_online_map' follow
arch/i386/kernel/built-in.o(.text+0x4d27): In function `mark_screen_rdonly':
: undefined reference to `flush_tlb_current_task'
arch/i386/kernel/built-in.o(.text+0x7a17): In function `alloc_ldt':
: undefined reference to `smp_call_function'
arch/i386/kernel/built-in.o(.text+0xa0c3): In function `show_cpuinfo':
: undefined reference to `cpu_data'
arch/i386/kernel/built-in.o(.text+0xa0cd): In function `show_cpuinfo':
: undefined reference to `cpu_online_map'
arch/i386/kernel/built-in.o(.text+0xa34d): In function `c_start':
: undefined reference to `cpu_data'
arch/i386/kernel/built-in.o(.text+0xae5d): In function `mce_work_fn':
: undefined reference to `smp_call_function'
arch/i386/kernel/built-in.o(.text+0xafce): In function `set_mtrr':
: undefined reference to `cpu_callout_map'
arch/i386/kernel/built-in.o(.text+0xb02a): In function `set_mtrr':
: undefined reference to `smp_call_function'
arch/i386/kernel/built-in.o(.text+0xb05d): In function `set_mtrr':
: undefined reference to `cpu_callout_map'
[..........]
: undefined reference to `cpu_callout_map'
net/built-in.o(.text+0x11ec3): In function `neigh_stat_seq_next':
: undefined reference to `cpu_callout_map'
net/built-in.o(.text+0x1a1d3): In function `rt_cpu_seq_start':
: undefined reference to `cpu_callout_map'
net/built-in.o(.text+0x1a223): In function `rt_cpu_seq_next':
: undefined reference to `cpu_callout_map'
net/built-in.o(.text+0x510d3): In function `fold_field':
: undefined reference to `cpu_callout_map'
net/built-in.o(.text+0x51a43): more undefined references to `cpu_callout_map' follow
make: *** [.tmp_vmlinux1] Error 1


i'd like post kernel configuration file, but it is very long and i can't find a command to upload directly in forum.....

Posted: Mon Jun 06, 2005 9:41 am
by gogetassj5
so any ideas??? :(

i saw that shallax is downgrading kernel to 2.4 .... i could compile a kernel 2.4 xbox-enabled and also usb-net enabled.

where can i find a xbox-enabling patch for 2.4 kernel source???

and can i install a 2.4 kernel on gentoox home edition 3.2, before the update with magic (the problem because i want to enable usb-net is just that my xbox ethernet device doesn't work at all ... :roll: )

Posted: Mon Jun 06, 2005 10:15 pm
by orochi
emerge xbox-sources

will give you xbox kernel sources

Posted: Thu Jun 09, 2005 5:41 pm
by gogetassj5
orochi wrote:emerge xbox-sources

will give you xbox kernel sources

when i execute that command, it prompt this:

Xbox root # emerge xbox-sources
!!! ARCH is not set... Are you missing the /etc/make.profile symlink?
!!! Is the symlink correct? Is your portage tree complete?

Xbox root #

what can i do??

could give me a kernel xbox patch to try to compile another kernel instead of 2.6.11.4 ?

Posted: Thu Jun 09, 2005 9:19 pm
by orochi
emerge sync && emerge xbox-sources

Posted: Fri Jun 17, 2005 5:30 pm
by gogetassj5
uhm, now i upgraded to home 4.0, i saw that the generic module usbnet is easy to be enabled with modprobe usbnet but my specific device, netgear fa120, is not recognized...

this is the dmesg

usb-storage: Command WRITE_10 (10 bytes)
usb-storage: 2a 00 00 00 00 01 00 00 01 00 00 00
usb-storage: Bulk command S 0x43425355 T 0x34 Trg 0 LUN 0 L 512 F 0 CL 10
usb-storage: Bulk command transfer result=0
usb-storage: usb_stor_transfer_partial(): xfer 512 bytes
usb-storage: usb_stor_bulk_msg() returned 0 xferred 512/512
usb-storage: usb_stor_transfer_partial(): transfer complete
usb-storage: Bulk data transfer result 0x0
usb-storage: Attempting to get CSW...
usb-storage: Bulk status result = 0
usb-storage: Bulk status Sig 0x53425355 T 0x34 R 0 Stat 0x0
usb-storage: scsi cmd done, result=0x0
usb-storage: *** thread sleeping.
usb.c: USB disconnect on device 00:02.0-1.4 address 7
usb-storage: storage_disconnect() called
usb-storage: -- releasing main URB
usb-storage: -- usb_unlink_urb() returned -19
hub.c: new USB device 00:02.0-1.4, assigned address 8
usb.c: USB device 8 (vend/prod 0x846/0x1040) is not claimed by any active driver.

so, is there a way to install the specific module (that i remember to be unchecked on kernel config of original 2.4.22-xbox-gentoox kernel source config file....) without re-compile the whole kernel????

Posted: Mon Jun 20, 2005 6:38 am
by orochi
re-googling my answer

*EDIT*

found.

use:

Code: Select all

modprobe pegasus
FA120 uses the pegasus brand chipset (shoulda known that, my dlink DSB-650TX does too

you might want to add that to your autoload modules file


sources:
http://www.nslu2-linux.org/wiki/HowTo/A ... netAdapter
http://www.linux-usb.org/usbnet/
(weird that same card is refrenced under both sites, and both say FA120 work with their modules)

Posted: Wed Jun 29, 2005 5:29 pm
by gogetassj5
uhm ... pegasus driver is not for netgear fa-120. it needs ax8817x.o driver . i tried also to install in my kernel already compiled the driver ax8817x.o downloaded from another site, but when i tried to enable it, the console said: this driver is not for this architecture (it surely means the prebuilt driver i downloaded is not compatible with xbox).

then i still tried to compile a kernel, making attention to type the right commands.

i caught the kernel xbox sources made by gentoox and copied them in a folder, with another name (es. 2.4.22-net)
from here,

cp .config config-save

and


make distclean


then

cp config-save .config

make xconfig

here i switch from NO to YES the option about support of ax887x devices on usb ----> ethernet devices.


saved it, i launch

make dep clean bzImage modules 2>&1 | tee make.log

but that is what the console prompt me (after some minutes of work):
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-xbox-gentoox-net/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=delay -c -o delay.o delay.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-xbox-gentoox-net/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=usercopy -c -o usercopy.o usercopy.c
gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux-2.4.22-xbox-gentoox-net/include -c getuser.S -o getuser.o
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-xbox-gentoox-net/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=memcpy -c -o memcpy.o memcpy.c
gcc -D__KERNEL__ -I/usr/src/linux-2.4.22-xbox-gentoox-net/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -nostdinc -iwithprefix include -DKBUILD_BASENAME=strstr -c -o strstr.o strstr.c
rm -f lib.a
ar rcs lib.a checksum.o old-checksum.o delay.o usercopy.o getuser.o memcpy.o strstr.o
make[2]: Leaving directory `/usr/src/linux-2.4.22-xbox-gentoox-net/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux-2.4.22-xbox-gentoox-net/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux-2.4.22-xbox-gentoox-net/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/video/video.o drivers/usb/usbdrv.o drivers/media/media.o drivers/input/inputdrv.o drivers/i2c/i2c.o drivers/isdn/vmlinux-obj.o \
net/network.o \
/usr/src/linux-2.4.22-xbox-gentoox-net/arch/i386/lib/lib.a /usr/src/linux-2.4.22-xbox-gentoox-net/lib/lib.a /usr/src/linux-2.4.22-xbox-gentoox-net/arch/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/usb/usbdrv.o(.text+0x14d6d): In function `ax8817x_set_multicast':
: undefined reference to `crc32_le'
drivers/usb/usbdrv.o(.text+0x14d75): In function `ax8817x_set_multicast':
: undefined reference to `bitreverse'
make: *** [vmlinux] Error 1
bash-2.05b#