fail to compile rt2x00-cvs-2007082013 on 2.6.22 (Gutsy)

Live forum: http://rt2x00.serialmonkey.com/viewtopic.php?t=4190

Hazzl

20-08-2007 19:04:12

Hello,

I just downloaded the latest CVS snapshot, unfortunately I'm not able to compile it on ubuntu's gutsy kernel (2.6.22-9)

Here's the error I get (after numerous warnings)

[codev373w3su]
/rt2x00-cvs-2007082013/rt2x00mac.c:62: error: too many arguments to function 'ieee80211_ctstoself_get'[/codev373w3su]

I suspect there is a mac80211 mismatch. Is compilation of snapshots on earlier kernels supposed to be working? (The Wiki says something about supporting all post-2.6.22-rc1 kernels)

Thanks a lot for your work!
Bye Felix

AdamBaker

20-08-2007 19:23:50

The wiki is out of date (

The API of the mac80211 stack changed recently so a couple of edits are needed to rt2x00 to make it compile with older kernels, see these 2 posts.

http//rt2x00.serialmonkey.com/phpBB2/v ... php?t=4109

http//rt2x00.serialmonkey.com/phpBB2/v ... php?t=4187

loswillios

12-09-2007 14:51:13

this error seems a real bugger. I'm running 2.6.23-rc6 and it still appears

[code35o281ts]$ LANG=C make clean all
CC [M] /home/jan/src/rt2x00-cvs-2007091204/eeprom_93cx6/eeprom_93cx6.o
CC [M] /home/jan/src/rt2x00-cvs-2007091204/rt2x00dev.o
CC [M] /home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.o
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c: In function 'rt2x00mac_tx_rts_cts':
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:62: warning: passing argument 2 of 'ieee80211_ctstoself_get' makes pointer from integer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:62: warning: passing argument 3 of 'ieee80211_ctstoself_get' makes integer from pointer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:62: warning: passing argument 4 of 'ieee80211_ctstoself_get' makes pointer from integer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:62: warning: passing argument 5 of 'ieee80211_ctstoself_get' from incompatible pointer type
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:62: error: too many arguments to function 'ieee80211_ctstoself_get'
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:66: warning: passing argument 2 of 'ieee80211_rts_get' makes pointer from integer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:66: warning: passing argument 3 of 'ieee80211_rts_get' makes integer from pointer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:66: warning: passing argument 4 of 'ieee80211_rts_get' makes pointer from integer without a cast
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:66: warning: passing argument 5 of 'ieee80211_rts_get' from incompatible pointer type
/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.c:66: error: too many arguments to function 'ieee80211_rts_get'
make[2]: *** [/home/jan/src/rt2x00-cvs-2007091204/rt2x00mac.o] Error 1
make[1]: *** [_module_/home/jan/src/rt2x00-cvs-2007091204] Error 2
make: *** [default] Error 2[/code35o281ts]

gusm

15-09-2007 20:14:34

Hi,

I have the same result when I try to compile the rt2xx0 with kernel 2.6.22-6. I have the same result if I compile the driver for rt61 or rt73. If I set with 'n' value the option CONFIG_RT2X00 all works fine but I don't get the module -(. I don't know if this gives you any extra clue.

Rt2x00 version cvs date 15-09-2007 (dd-mm-yyyy) 11

I paste the output

CC [M] /root/downloads/rt2x00-cvs-2007091511/eeprom_93cx6/eeprom_93cx6.o
CC [M] /root/downloads/rt2x00-cvs-2007091511/rt2x00dev.o
CC [M] /root/downloads/rt2x00-cvs-2007091511/rt2x00mac.o
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c In function `rt2x00mac_tx_rts_cts'
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c62 warning passing arg 2 of `ieee80211_ctstoself_get' makes pointer from integer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c62 warning passing arg 3 of `ieee80211_ctstoself_get' makes integer from pointer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c62 warning passing arg 4 of `ieee80211_ctstoself_get' makes pointer from integer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c62 warning passing arg 5 of `ieee80211_ctstoself_get' from incompatible pointer type
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c62 error too many arguments to function `ieee80211_ctstoself_get'
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c66 warning passing arg 2 of `ieee80211_rts_get' makes pointer from integer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c66 warning passing arg 3 of `ieee80211_rts_get' makes integer from pointer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c66 warning passing arg 4 of `ieee80211_rts_get' makes pointer from integer without a cast
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c66 warning passing arg 5 of `ieee80211_rts_get' from incompatible pointer type
/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.c66 error too many arguments to function `ieee80211_rts_get'
make[2] *** [/root/downloads/rt2x00-cvs-2007091511/rt2x00mac.o] Error 1
make[1] *** [_module_/root/downloads/rt2x00-cvs-2007091511] Error 2
make *** [default] Error 2

Thank you very much.

PS For eager people Cvs legacy driver for rt61 runs perfectly (tested Driver 1.1.0 CVS 2007091513)

IvD

15-09-2007 21:03:34

If you have the same result, that would imply that the response from AdamBaker about the solution counts for you too...

joske

20-09-2007 14:29:39

these 2 fixes makes rt2x00 compile cleanly on gutsy kernel. Have not tried to run yet.

zeekoe

22-10-2007 21:13:09

Hmm... is there an alternative then that works for the plain vanilla Ubuntu Gutsy 2.6.22-14-generic kernel? Or is there really no alternative than going through the hassle of downloading and compiling the kernel and finding out what exactly git is and applying that knowledge?

Amp_God

24-10-2007 17:31:34

Hmm... is there an alternative then that works for the plain vanilla Ubuntu Gutsy 2.6.22-14-generic kernel? Or is there really no alternative than going through the hassle of downloading and compiling the kernel and finding out what exactly git is and applying that knowledge?[/quote2csnfqp9]

Im quessing the kernel compilation cant be too big of a hassle...
atleast it isnt a problem on Debian =)
debian make-kpkg --initrd --revision=thinkSomething1.0 linux_image


and neither is git.



cg clone git//git.kernel.org/pub/scm/linux/kern ... rt2x00.git
is sufficient "knowledge" of the git )

darkbasic

24-10-2007 20:17:58

git//git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git[/quote21uizngq]
Is it a 2.6.23 kernel with the new mac80211 stack?

zeekoe

27-10-2007 16:59:04

Im quessing the kernel compilation cant be too big of a hassle...
atleast it isnt a problem on Debian =)
debian make-kpkg --initrd --revision=thinkSomething1.0 linux_image


and neither is git.



cg clone git//git.kernel.org/pub/scm/linux/kern ... rt2x00.git
is sufficient "knowledge" of the git )[/quote341fekmx]
Whee... thanks! That's easy, you get the entire kernel tree thingy and don't have to patch anything (except for this[/url341fekmx], but that's temporarily I suppose)
@darkbasic it says 2.6.24-rc1 while compiling/linking.
I'll post in a moment what I've done to make it compile and if it succeeds.

[edit] this is how it can be done
[code341fekmx]# cd /usr/src
# sudo cg clone git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git
# cd rt2x00
# sudo cp /boot/config-2.6.22-14-generic .config
[/code341fekmx]
Replace config-2.6.22-14-generic with your latest installed kernel config. Alternatively, it seems that in debian/Config/config.* the default Ubuntu config files are located.
[code341fekmx]# sudo make menuconfig[/code341fekmx]
Now, enable Ralink support and select your device (for me rt2500usb), it's under Drivers -> Networking -> Wireless. For me, suspend support was disabled, so be sure to check for those kind of things.
[code341fekmx]# sudo make-kpkg --initrd --revision=kernelrt2x00 linux_image[/code341fekmx]
wait for an hour or two, or three
[code341fekmx]# cd ..
# sudo dpkg --install ../linux-image-2.6.24[tab]
[/code341fekmx]
To quickly reconfigure grub manually-automatically, you can type "sudo update-grub" (but it's done by dpkg too)
Thanks to Amp_God for the directions, and of course to all rt2x00 contributors for all their hard work!

It does not work, but it did compile. Let's open another thread for that (sorry for hijacking this thread a bit)

Amp_God

29-10-2007 19:38:23

Im quessing the kernel compilation cant be too big of a hassle...
atleast it isnt a problem on Debian =)
debian make-kpkg --initrd --revision=thinkSomething1.0 linux_image


and neither is git.



cg clone git//git.kernel.org/pub/scm/linux/kern ... rt2x00.git
is sufficient "knowledge" of the git )[/quote11pjpx1j]
Whee... thanks! That's easy, you get the entire kernel tree thingy and don't have to patch anything (except for this[/url11pjpx1j], but that's temporarily I suppose)
@darkbasic it says 2.6.24-rc1 while compiling/linking.
I'll post in a moment what I've done to make it compile and if it succeeds.

[edit] this is how it can be done
[code11pjpx1j]# cd /usr/src
# sudo cg clone git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git
# cd rt2x00
# sudo cp /boot/config-2.6.22-14-generic .config
[/code11pjpx1j]
Replace config-2.6.22-14-generic with your latest installed kernel config. Alternatively, it seems that in debian/Config/config.* the default Ubuntu config files are located.
[code11pjpx1j]# sudo make menuconfig[/code11pjpx1j]
Now, enable Ralink support and select your device (for me rt2500usb), it's under Drivers -> Networking -> Wireless. For me, suspend support was disabled, so be sure to check for those kind of things.
[code11pjpx1j]# sudo make-kpkg --initrd --revision=kernelrt2x00 linux_image[/code11pjpx1j]
wait for an hour or two, or three
[code11pjpx1j]# cd ..
# sudo dpkg --install ../linux-image-2.6.24[tab]
[/code11pjpx1j]
To quickly reconfigure grub manually-automatically, you can type "sudo update-grub" (but it's done by dpkg too)
Thanks to Amp_God for the directions, and of course to all rt2x00 contributors for all their hard work!

It does not work, but it did compile. Let's open another thread for that (sorry for hijacking this thread a bit)[/quote11pjpx1j]

As a bonus.

if you want the "bleeding edge" of the kernel, with the rt2x00,
1) cg clone
git//git.kernel.org/pub/scm/linux/kern ... ux-2.6.git
or
cd linux-2.6 and cg update
2) cg clone git//git.kernel.org/pub/scm/linux/kern ... rt2x00.git
or
cd rt2x00 and cg update
3) go to the rt2x00 dir.
4) git pull <where you downloaded the linux-2.6>

output
[code11pjpx1j]
ampgod@ThunderBird:/pub/Linux$ cd rt2x00
ampgod@ThunderBird:/pub/Linux/rt2x00$ time git pull ../linux-2.6
remote: Generating pack...
remote: Done counting 2356 objects.
remote: Result has 1859 objects.
remote: Deltifying 1859 objects.
remote: 100% (1859/1859) done
Unpacking 1859 objects
remote: Total 1859, written 1859 (delta 1561), reused 1111 (delta 891)
100% (1859/1859) done
Merging HEAD with 3529a233421fc43fa7bfdf7a4317daf28348a23d
Merging:
db0d1a7 rt2x00: Release rt2x00 2.0.12
3529a23 Merge branch 'alpm' of master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/libata-dev
found 2 common ancestor(s):
6ef89d0 [PATCH] iwl3945: fix direct scan problem
ddd6858 [PATCH] mac80211: fix printk warning on 64-bit
Merging:
6ef89d0 [PATCH] iwl3945: fix direct scan problem
ddd6858 [PATCH] mac80211: fix printk warning on 64-bit
found 1 common ancestor(s):
c9927c2 Linux 2.6.24-rc1
merging of trees 365bfcf0aa2b166f849c7c4343f91f8a300a57f4 and 1b1576ed774d34b7575e492195af75cfe3894668 resulted in 04d45f54012e35d8057ee381f786f99b167ccff9
Removing Documentation/networking/net-modules.txt
Auto-merging MAINTAINERS
Removing arch/i386/.gitignore
Removing arch/x86_64/.gitignore
Removing arch/x86_64/Kconfig.debug
Merge made by recursive.
Documentation/kernel-parameters.txt | 3 +-
Documentation/lguest/lguest.c | 178 ++--
Documentation/networking/00-INDEX | 2 -
Documentation/networking/ip-sysctl.txt | 6 +-
Documentation/networking/net-modules.txt | 315 ------
Documentation/networking/tc-actions-env-rules.txt | 29 +
.../scsi/link_power_management_policy.txt | 19 +
MAINTAINERS | 17 +-
Makefile | 7 +-
arch/blackfin/kernel/dma-mapping.c | 1 +
arch/frv/mb93090-mb00/pci-dma.c | 3 +-
arch/i386/.gitignore | 1 -
arch/m68k/kernel/dma.c | 2 +-
arch/sparc/kernel/pcic.c | 2 +-
arch/sparc/kernel/process.c | 7 +-
arch/sparc/kernel/time.c | 9 +-
arch/sparc/mm/btfixup.c | 5 +-
arch/sparc/mm/io-unit.c | 2 +-
arch/sparc/mm/sun4c.c | 15 +-
arch/sparc64/kernel/binfmt_elf32.c | 4 +-
arch/sparc64/kernel/central.c | 9 +-
arch/sparc64/kernel/iommu_common.c | 2 +-
arch/sparc64/kernel/ldc.c | 2 +-
arch/sparc64/kernel/semaphore.c | 5 +-
arch/sparc64/kernel/smp.c | 4 +-
arch/sparc64/kernel/sys_sparc.c | 2 +-
arch/sparc64/kernel/traps.c | 9 +-
arch/sparc64/mm/init.c | 4 +-
arch/sparc64/prom/console.c | 9 +-
arch/sparc64/prom/tree.c | 49 +-
arch/um/Kconfig.i386 | 2 +-
arch/um/Makefile-i386 | 5 +-
arch/um/Makefile-x86_64 | 5 +-
arch/um/drivers/ubd_kern.c | 2 +
arch/um/kernel/mem.c | 2 +-
arch/um/sys-i386/ptrace.c | 8 +-
arch/um/sys-x86_64/ptrace.c | 4 +-
arch/{i386 => x86}/Kconfig.cpu | 0
arch/{i386 => x86}/Kconfig.debug | 51 +-
arch/{i386/Kconfig => x86/Kconfig.i386} | 4 +-
arch/{x86_64/Kconfig => x86/Kconfig.x86_64} | 2 +-
arch/x86/Makefile | 16 +
arch/{i386/Makefile => x86/Makefile_32} | 7 +-
arch/{i386/Makefile.cpu => x86/Makefile_32.cpu} | 0
arch/{x86_64/Makefile => x86/Makefile_64} | 5 +-
arch/x86/boot/boot.h | 8 +-
arch/x86/boot/compressed/head_32.S | 12 +-
arch/x86/boot/compressed/head_64.S | 7 +
arch/x86/boot/header.S | 62 +-
arch/x86/boot/video-bios.c | 2 +-
arch/x86/boot/video-vesa.c | 2 +-
arch/x86/boot/video.c | 2 +-
.../{i386/defconfig => x86/configs/i386_defconfig} | 0
.../defconfig => x86/configs/x86_64_defconfig} | 0
arch/x86/kernel/acpi/processor.c | 3 +-
arch/x86/kernel/asm-offsets_64.c | 10 +
arch/x86/kernel/crash.c | 6 +-
arch/x86/kernel/early-quirks.c | 4 +-
arch/x86/kernel/machine_kexec_64.c | 2 +
arch/x86/kernel/pci-gart_64.c | 5 +-
arch/x86/kernel/smp_32.c | 8 +-
arch/x86/lguest/boot.c | 54 +-
arch/x86/lguest/i386_head.S | 8 +-
arch/x86/mach-voyager/voyager_smp.c | 4 +-
arch/x86/mm/fault_32.c | 2 +-
arch/x86_64/.gitignore | 1 -
arch/x86_64/Kconfig.debug | 61 --
block/cfq-iosched.c | 7 +-
block/compat_ioctl.c | 2 +-
block/ll_rw_blk.c | 45 +-
crypto/hmac.c | 11 +-
crypto/tcrypt.c | 20 +-
drivers/acpi/sleep/proc.c | 66 +-
drivers/ata/ahci.c | 318 ++++++-
drivers/ata/libata-core.c | 387 ++++++--
drivers/ata/libata-eh.c | 41 +-
drivers/ata/libata-scsi.c | 91 ++-
drivers/ata/libata.h | 2 +
drivers/ata/pata_acpi.c | 4 +-
drivers/ata/pata_icside.c | 42 +-
drivers/ata/pata_ns87415.c | 2 +
drivers/ata/pata_optidma.c | 2 +-
drivers/ata/pata_pcmcia.c | 12 +-
drivers/ata/pata_pdc2027x.c | 2 +-
drivers/ata/pata_pdc202xx_old.c | 4 +-
drivers/ata/pata_scc.c | 13 +-
drivers/ata/pata_via.c | 2 +-
drivers/ata/pata_winbond.c | 2 +-
drivers/ata/pdc_adma.c | 12 +-
drivers/ata/sata_inic162x.c | 4 +-
drivers/ata/sata_mv.c | 7 +-
drivers/ata/sata_nv.c | 126 ++-
drivers/ata/sata_promise.c | 38 +-
drivers/ata/sata_qstor.c | 3 +-
drivers/ata/sata_sil.c | 11 +-
drivers/ata/sata_sil24.c | 9 +-
drivers/ata/sata_sis.c | 64 +-
drivers/ata/sata_svw.c | 10 +-
drivers/ata/sata_sx4.c | 177 ++--
drivers/ata/sata_uli.c | 18 +-
drivers/ata/sata_via.c | 20 +-
drivers/ata/sata_vsc.c | 15 +-
drivers/block/cciss.c | 14 +-
drivers/block/cciss_scsi.c | 14 +-
drivers/block/cciss_scsi.h | 14 +-
drivers/block/cryptoloop.c | 9 +-
drivers/block/sunvdc.c | 1 +
drivers/block/ub.c | 11 +-
drivers/block/virtio_blk.c | 10 +-
drivers/cdrom/viocd.c | 3 +-
drivers/char/mem.c | 4 +-
drivers/crypto/padlock-sha.c | 4 +-
drivers/ide/arm/icside.c | 16 +-
drivers/ide/ide-iops.c | 3 +
drivers/ide/pci/cy82c693.c | 6 +-
drivers/ide/pci/generic.c | 2 +-
drivers/ide/pci/hpt366.c | 32 +-
drivers/ide/pci/sc1200.c | 9 +-
drivers/ieee1394/dma.c | 4 +-
drivers/infiniband/core/umem.c | 4 +-
drivers/infiniband/hw/mthca/mthca_memfree.c | 9 +-
drivers/isdn/capi/capidrv.c | 25 +-
drivers/isdn/sc/shmem.c | 9 +-
drivers/lguest/core.c | 5 +-
drivers/lguest/hypercalls.c | 11 +-
drivers/lguest/interrupts_and_traps.c | 37 +-
drivers/lguest/lg.h | 7 +-
drivers/lguest/lguest_device.c | 11 +-
drivers/lguest/lguest_user.c | 23 +-
drivers/lguest/page_tables.c | 113 ++-
drivers/lguest/segments.c | 48 +-
drivers/lguest/x86/core.c | 122 ++-
drivers/lguest/x86/switcher_32.S | 71 +-
drivers/md/dm-crypt.c | 10 +-
drivers/md/raid6algos.c | 4 +-
drivers/md/raid6mmx.c | 2 +-
drivers/md/raid6sse1.c | 2 +-
drivers/md/raid6sse2.c | 4 +-
drivers/md/raid6x86.h | 2 +-
drivers/media/common/saa7146_core.c | 3 +-
drivers/media/video/ivtv/ivtv-udma.c | 6 +-
drivers/media/video/videobuf-dma-sg.c | 10 +-
drivers/message/i2o/i2o_block.c | 1 +
drivers/mmc/core/mmc_ops.c | 22 +-
drivers/mmc/core/sd_ops.c | 4 +-
drivers/mmc/host/au1xmmc.c | 6 +-
drivers/mmc/host/imxmmc.c | 2 +-
drivers/mmc/host/mmc_spi.c | 52 +-
drivers/mmc/host/mmci.c | 6 +-
drivers/mmc/host/pxamci.c | 1 -
drivers/mmc/host/sdhci.c | 2 -
drivers/mmc/host/wbsd.c | 2 +-
drivers/net/Kconfig | 37 +-
drivers/net/Makefile | 4 +
drivers/net/bonding/bond_main.c | 5 +-
drivers/net/bonding/bonding.h | 1 -
drivers/net/cpmac.c | 145 ++-
drivers/net/e1000e/e1000.h | 5 +-
drivers/net/e1000e/netdev.c | 425 ++-------
drivers/net/ehea/ehea.h | 2 +-
drivers/net/ehea/ehea_main.c | 28 +-
drivers/net/fec_mpc52xx.c | 1112 ++++++++++++++++++++
drivers/net/fec_mpc52xx.h | 313 ++++++
drivers/net/fec_mpc52xx_phy.c | 198 ++++
drivers/net/forcedeth.c | 16 +
drivers/net/ipg.c | 22 +-
drivers/net/ipg.h | 20 -
drivers/net/irda/au1k_ir.c | 11 +-
drivers/net/loopback.c | 2 +-
drivers/net/mlx4/icm.c | 4 +-
drivers/net/natsemi.c | 1 +
drivers/net/pcmcia/3c574_cs.c | 2 +-
drivers/net/pcmcia/3c589_cs.c | 2 +-
drivers/net/pcmcia/axnet_cs.c | 2 +-
drivers/net/pcmcia/fmvj18x_cs.c | 2 +-
drivers/net/pcmcia/pcnet_cs.c | 2 +-
drivers/net/pcmcia/smc91c92_cs.c | 2 +-
drivers/net/pcmcia/xirc2ps_cs.c | 2 +-
drivers/net/ppp_mppe.c | 10 +-
drivers/net/r8169.c | 12 +-
drivers/net/rrunner.c | 8 +-
drivers/net/ucc_geth.c | 15 +-
drivers/net/usb/rndis_host.c | 18 +-
drivers/pci/intel-iommu.c | 7 +-
drivers/pci/intel-iommu.h | 2 +-
drivers/s390/scsi/zfcp_aux.c | 12 +-
drivers/s390/scsi/zfcp_def.h | 6 +-
drivers/s390/scsi/zfcp_erp.c | 7 +-
drivers/scsi/aacraid/commctrl.c | 12 +-
drivers/scsi/aacraid/comminit.c | 2 +-
drivers/scsi/aacraid/dpcsup.c | 2 +-
drivers/scsi/arcmsr/arcmsr.h | 39 +-
drivers/scsi/arcmsr/arcmsr_attr.c | 6 +-
drivers/scsi/arcmsr/arcmsr_hba.c | 205 ++--
drivers/scsi/atari_NCR5380.c | 5 +-
drivers/scsi/ipr.c | 2 +-
drivers/scsi/iscsi_tcp.c | 9 +-
drivers/scsi/osst.c | 6 +-
drivers/scsi/sg.c | 14 +-
drivers/scsi/st.c | 14 +-
drivers/scsi/sun3x_esp.c | 4 +-
drivers/serial/serial_core.c | 3 +-
drivers/serial/serial_cs.c | 2 +-
drivers/spi/spidev.c | 6 +-
drivers/usb/core/message.c | 8 +-
drivers/usb/core/urb.c | 2 +-
drivers/usb/gadget/amd5536udc.c | 2 +-
drivers/usb/host/Kconfig | 2 +-
drivers/usb/host/ohci-hcd.c | 9 +-
drivers/usb/host/uhci-q.c | 19 +-
drivers/usb/misc/cytherm.c | 4 +-
drivers/usb/misc/emi26.c | 4 +
drivers/usb/misc/emi62.c | 4 +
drivers/usb/misc/ftdi-elan.c | 130 ++--
drivers/usb/misc/idmouse.c | 45 +-
drivers/usb/misc/iowarrior.c | 11 +-
drivers/usb/misc/legousbtower.c | 14 +-
drivers/usb/misc/rio500.c | 15 +-
drivers/usb/misc/usblcd.c | 11 +-
drivers/usb/serial/ark3116.c | 13 +-
drivers/usb/serial/ch341.c | 8 +-
drivers/usb/serial/console.c | 4 +-
drivers/usb/serial/cp2101.c | 48 +-
drivers/usb/serial/digi_acceleport.c | 16 +-
drivers/usb/serial/empeg.c | 23 +-
drivers/usb/serial/ftdi_sio.c | 33 +-
drivers/usb/serial/generic.c | 7 +-
drivers/usb/serial/io_edgeport.c | 18 +-
drivers/usb/serial/ir-usb.c | 11 +-
drivers/usb/serial/keyspan.c | 16 +-
drivers/usb/serial/kobil_sct.c | 5 +-
drivers/usb/serial/mos7840.c | 23 +-
drivers/usb/serial/option.c | 5 +-
drivers/usb/serial/pl2303.c | 12 +-
drivers/usb/serial/pl2303.h | 1 +
drivers/usb/serial/sierra.c | 2 +-
drivers/usb/serial/usb-serial.c | 6 +-
drivers/usb/serial/whiteheat.c | 11 +-
drivers/usb/storage/Kconfig | 1 -
drivers/usb/storage/isd200.c | 105 ++-
drivers/video/cirrusfb.c | 3 +-
fs/ecryptfs/crypto.c | 25 +-
fs/jffs2/acl.c | 2 +-
fs/mbcache.c | 2 +-
fs/proc/proc_net.c | 2 +-
fs/proc/proc_sysctl.c | 6 +-
include/asm-avr32/dma-mapping.h | 2 +-
include/asm-frv/scatterlist.h | 3 +-
include/asm-sparc/atomic.h | 4 +-
include/asm-sparc/dma.h | 9 +-
include/asm-sparc/floppy.h | 14 +-
include/asm-sparc/ide.h | 9 +-
include/asm-sparc/posix_types.h | 8 +-
include/asm-sparc/system.h | 6 +-
include/asm-sparc64/atomic.h | 7 +-
include/asm-sparc64/backoff.h | 4 +-
include/asm-sparc64/byteorder.h | 7 +-
include/asm-sparc64/fpumacro.h | 4 +-
include/asm-sparc64/io.h | 29 +-
include/asm-sparc64/irq.h | 11 +-
include/asm-sparc64/mostek.h | 9 +-
include/asm-sparc64/ns87303.h | 5 +-
include/asm-sparc64/parport.h | 21 +-
include/asm-sparc64/posix_types.h | 8 +-
include/asm-sparc64/sbus.h | 4 +-
include/asm-sparc64/spitfire.h | 53 +-
include/asm-sparc64/system.h | 9 +-
include/asm-sparc64/upa.h | 17 +-
include/asm-sparc64/visasm.h | 3 +-
include/asm-um/unistd.h | 1 -
include/asm-x86/bitops_32.h | 7 +-
include/asm-x86/bitops_64.h | 57 +-
include/asm-x86/lguest_hcall.h | 16 +-
include/asm-x86/smp_32.h | 9 +-
include/asm-xtensa/dma-mapping.h | 2 +-
include/linux/ata.h | 22 +
include/linux/blkdev.h | 2 +-
include/linux/compiler.h | 6 +
include/linux/completion.h | 18 +-
include/linux/dccp.h | 12 +-
include/linux/eventpoll.h | 7 +-
include/linux/lguest.h | 4 +-
include/linux/lguest_launcher.h | 24 +-
include/linux/libata.h | 30 +-
include/linux/mv643xx_eth.h | 3 +
include/linux/netdevice.h | 4 +-
include/linux/pci_ids.h | 4 +
include/linux/scatterlist.h | 53 +-
include/linux/sched.h | 9 +-
include/linux/skbuff.h | 4 +-
include/linux/sunrpc/rpc_rdma.h | 32 +-
include/linux/types.h | 2 +
include/net/inet_hashtables.h | 6 -
include/net/inet_sock.h | 7 +
include/net/irda/ircomm_tty.h | 1 -
include/net/net_namespace.h | 2 -
include/net/sch_generic.h | 15 +
include/net/sctp/auth.h | 3 +-
include/net/sctp/sctp.h | 1 -
include/net/tcp.h | 2 +-
include/net/xfrm.h | 2 +
init/Kconfig | 1 -
kernel/hrtimer.c | 2 +-
kernel/profile.c | 5 +
kernel/sched.c | 330 ++++---
kernel/sched_fair.c | 48 +-
kernel/sched_idletask.c | 18 +-
kernel/sched_rt.c | 32 +-
kernel/signal.c | 2 +-
kernel/time/tick-sched.c | 2 -
kernel/time/timer_list.c | 6 +-
kernel/user.c | 5 +-
lib/Kconfig.debug | 8 +
mm/filemap.c | 1 +
mm/nommu.c | 1 +
mm/slub.c | 2 +-
net/9p/mux.c | 4 +-
net/core/dev.c | 29 +-
net/core/dev_mcast.c | 2 +-
net/core/flow.c | 5 +-
net/core/net-sysfs.c | 2 +
net/core/net-sysfs.h | 8 +
net/core/rtnetlink.c | 2 +-
net/core/skbuff.c | 16 +-
net/core/sock.c | 1 -
net/core/sysctl_net_core.c | 17 +-
net/dccp/ccids/ccid2.c | 4 -
net/dccp/ccids/ccid3.c | 15 +-
net/dccp/input.c | 48 +-
net/dccp/ipv4.c | 6 +-
net/dccp/ipv6.c | 4 +-
net/dccp/options.c | 33 +-
net/dccp/proto.c | 33 +-
net/ethernet/eth.c | 9 +
net/ieee80211/ieee80211_crypt_tkip.c | 11 +-
net/ieee80211/ieee80211_crypt_wep.c | 2 +-
net/ipv4/cipso_ipv4.c | 39 +-
net/ipv4/esp4.c | 11 +-
net/ipv4/fib_frontend.c | 12 +-
net/ipv4/icmp.c | 1 -
net/ipv4/ip_gre.c | 14 +-
net/ipv4/ip_output.c | 2 +-
net/ipv4/ipip.c | 2 +-
net/ipv4/ipvs/ip_vs_xmit.c | 2 +-
net/ipv4/proc.c | 8 -
net/ipv4/tcp_input.c | 34 +-
net/ipv4/tcp_ipv4.c | 5 +
net/ipv4/udp.c | 2 +-
net/ipv6/esp6.c | 12 +-
net/ipv6/ip6_output.c | 2 +-
net/ipv6/ip6_tunnel.c | 2 +-
net/ipv6/sit.c | 2 +-
net/ipv6/tcp_ipv6.c | 7 +
net/irda/ircomm/ircomm_tty.c | 2 +-
net/netlabel/netlabel_domainhash.c | 37 +-
net/netlabel/netlabel_mgmt.c | 4 -
net/netlabel/netlabel_unlabeled.c | 4 +-
net/netlink/af_netlink.c | 18 +-
net/rxrpc/rxkad.c | 66 +-
net/sched/act_mirred.c | 2 +-
net/sched/sch_prio.c | 4 +-
net/sctp/auth.c | 15 +-
net/sctp/crc32c.c | 2 +
net/sctp/sm_make_chunk.c | 10 +-
net/sctp/ulpqueue.c | 34 +-
net/sunrpc/auth_gss/gss_krb5_crypto.c | 46 +-
net/sunrpc/auth_gss/gss_spkm3_seal.c | 2 +-
net/sunrpc/xdr.c | 6 +-
net/sunrpc/xprtrdma/rpc_rdma.c | 24 +-
net/xfrm/xfrm_algo.c | 10 +-
scripts/kconfig/Makefile | 35 +-
sound/pci/hda/patch_realtek.c | 1 -
372 files changed, 5566 insertions(+), 3200 deletions(-)
delete mode 100644 Documentation/networking/net-modules.txt
create mode 100644 Documentation/networking/tc-actions-env-rules.txt
create mode 100644 Documentation/scsi/link_power_management_policy.txt
delete mode 100644 arch/i386/.gitignore
rename arch/{i386/Kconfig.cpu => x86/Kconfig.cpu} (100%)
rename arch/{i386/Kconfig.debug => x86/Kconfig.debug} (65%)
rename arch/{i386/Kconfig => x86/Kconfig.i386} (100%)
rename arch/{x86_64/Kconfig => x86/Kconfig.x86_64} (100%)
create mode 100644 arch/x86/Makefile
rename arch/{i386/Makefile => x86/Makefile_32} (98%)
rename arch/{i386/Makefile.cpu => x86/Makefile_32.cpu} (100%)
rename arch/{x86_64/Makefile => x86/Makefile_64} (99%)
rename arch/{i386/defconfig => x86/configs/i386_defconfig} (100%)
rename arch/{x86_64/defconfig => x86/configs/x86_64_defconfig} (100%)
delete mode 100644 arch/x86_64/.gitignore
delete mode 100644 arch/x86_64/Kconfig.debug
create mode 100644 drivers/net/fec_mpc52xx.c
create mode 100644 drivers/net/fec_mpc52xx.h
create mode 100644 drivers/net/fec_mpc52xx_phy.c
create mode 100644 net/core/net-sysfs.h

real 1m2.461s
user 0m11.673s
sys 0m2.540s
ampgod@ThunderBird:/pub/Linux/rt2x00$
[/code11pjpx1j]


and a bonus II, for archiving git project )
will download, update and compress it to a archive with current date. )

ampgod@ThunderBird/pub/Linux$ ls linux-2.6.archive/
[F]_2007-09-27_2048.tar.gz [U]_2007-09-30_2051.tar.gz
[F]_2007-09-28_1002.tar.gz [U]_2007-10-10_2027.tar.gz
[F]_2007-10-28_2226.tar.gz [U]_2007-10-29_2116.tar.gz

the [F] files are full clones,
[U] are updated ones. )

[code11pjpx1j]
#!/bin/bash
################
### Settings ###

# Mirrors #
SITE="git://git.kernel.org/pub/scm/linux/kernel/git/ivd/rt2x00.git"

## Path ##
DIR="rt2x00"
ARCHIVE="$DIR.archive"

##/Settings ##
##############

##################
## Preparations ##

DATE=$(date +%Y-%m-%d_%H:%M)
[ ! -d $DIR ] && mkdir $DIR
[ ! -d $ARCHIVE ] && mkdir $ARCHIVE

##/Preparations ##
##################

case "$1" in
fetch)
rm -fr $DIR
cg clone $SITE $DIR
if [ $? != 0 ]; then exit 1 ; fi
printf "\n\nCompressing to $ARCHIVE/[F]_$DATE.tar.gz..."
tar -cf - $DIR | gzip -9 > $ARCHIVE/[F]_$DATE.tar.gz
printf "done.\n"
;;
update)
cd $DIR
cg-update
if [ $? != 0 ]; then exit 1 ; fi
cd ..
printf "\n\nCompressing to $ARCHIVE/[U]_$DATE.tar.gz..."
tar -cf - $DIR | gzip -9 > $ARCHIVE/[U]_$DATE.tar.gz
printf "done.\n"
;;
*)
printf "Simple GIT download helper.\n"
printf "Usage:\n"
printf " $0 fetch\n"
printf " ^- Re-Downloads the entire archive\n\n"
printf " $0 update\n"
printf " ^- Updates the archive\n"
;;
esac

exit 0
[/code11pjpx1j]

ebs16

04-11-2007 21:22:18

Hi,

I would like to use an rt61 wifi card in master mode on an Ubuntu Gutsy machine. I'm confused as to how to proceed. I am unable to successfully compile the rt2x00 daily build. By reading the forums, it seems as though downloading the 'git' files is one way of getting the card to work, although I am not sure of what git is and how it would allow me to install the wifi card. Can anyone help me get this working in Gutsy?

Thanks!

zeekoe

04-11-2007 22:20:59

Read just a few posts above. This[/url1sjq1dmn] is about how I did it, with above and below that post some comments from Amp_god about it. Though you have to choose rt2x00 ("Ralink support") & rt61 of course, and not rt2500. Enabling debug can be a good idea too, so you won't have to do that again in case you need it -)

I know not exactly what GIT is, but the idea is that it downloads a complete kernel tree onto your pc, including latest patches specifically for, in this case, rt2x00.

ebs16

05-11-2007 01:44:26

i am running into a compilation error at [b20vabnnl]sudo make menuconfig[/b20vabnnl]. any ideas? or better yet, can someone upload pre-compiled binaries?

thanks for your help!

balak

07-11-2007 03:39:28

I also have compile errors in the 'make menuconfig' step
Any tips? I think I am missing some dev. packages, but can't figure out which one..

[code2kthshmz] HOSTCC scripts/basic/fixdep
scripts/basic/fixdep.c:107:23: error: sys/types.h: No such file or directory
scripts/basic/fixdep.c:108:22: error: sys/stat.h: No such file or directory
scripts/basic/fixdep.c:109:22: error: sys/mman.h: No such file or directory
scripts/basic/fixdep.c:110:20: error: unistd.h: No such file or directory
scripts/basic/fixdep.c:111:19: error: fcntl.h: No such file or directory
scripts/basic/fixdep.c:112:20: error: string.h: No such file or directory
scripts/basic/fixdep.c:113:20: error: stdlib.h: No such file or directory
scripts/basic/fixdep.c:114:19: error: stdio.h: No such file or directory
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/syslimits.h:7,
from /usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:11,
from scripts/basic/fixdep.c:115:
/usr/lib/gcc/x86_64-linux-gnu/4.1.3/include/limits.h:122:61: error: limits.h: No such file or directory
scripts/basic/fixdep.c:116:19: error: ctype.h: No such file or directory
scripts/basic/fixdep.c:117:23: error: arpa/inet.h: No such file or directory
scripts/basic/fixdep.c: In function ‘usage’:
scripts/basic/fixdep.c:131: warning: implicit declaration of function ‘fprintf’
scripts/basic/fixdep.c:131: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:131: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:131: error: (Each undeclared identifier is reported only once
scripts/basic/fixdep.c:131: error: for each function it appears in.)
scripts/basic/fixdep.c:132: warning: implicit declaration of function ‘exit’
scripts/basic/fixdep.c:132: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘print_cmdline’:
scripts/basic/fixdep.c:140: warning: implicit declaration of function ‘printf’
scripts/basic/fixdep.c:140: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:143: error: ‘NULL’ undeclared here (not in a function)
scripts/basic/fixdep.c: In function ‘grow_config’:
scripts/basic/fixdep.c:156: warning: implicit declaration of function ‘realloc’
scripts/basic/fixdep.c:156: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:158: warning: implicit declaration of function ‘perror’
scripts/basic/fixdep.c:158: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c: In function ‘is_defined_config’:
scripts/basic/fixdep.c:174: warning: implicit declaration of function ‘memcmp’
scripts/basic/fixdep.c: In function ‘define_config’:
scripts/basic/fixdep.c:187: warning: implicit declaration of function ‘memcpy’
scripts/basic/fixdep.c:187: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c: In function ‘use_config’:
scripts/basic/fixdep.c:206: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:214: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:220: warning: implicit declaration of function ‘tolower’
scripts/basic/fixdep.c:222: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:206: warning: unused variable ‘s’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:225: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_config_file’:
scripts/basic/fixdep.c:227: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:233: warning: implicit declaration of function ‘ntohl’
scripts/basic/fixdep.c:244: warning: implicit declaration of function ‘isalnum’
scripts/basic/fixdep.c: In function ‘strrcmp’:
scripts/basic/fixdep.c:261: warning: implicit declaration of function ‘strlen’
scripts/basic/fixdep.c:261: warning: incompatible implicit declaration of built-in function ‘strlen’
scripts/basic/fixdep.c: In function ‘do_config_file’:
scripts/basic/fixdep.c:272: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:276: warning: implicit declaration of function ‘open’
scripts/basic/fixdep.c:276: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:278: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:278: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:280: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:282: warning: implicit declaration of function ‘fstat’
scripts/basic/fixdep.c:284: warning: implicit declaration of function ‘close’
scripts/basic/fixdep.c:287: warning: implicit declaration of function ‘mmap’
scripts/basic/fixdep.c:287: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:287: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:287: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:294: error: too many arguments to function ‘parse_config_file’
scripts/basic/fixdep.c:296: warning: implicit declaration of function ‘munmap’
scripts/basic/fixdep.c:272: warning: unused variable ‘st’
scripts/basic/fixdep.c: At top level:
scripts/basic/fixdep.c:301: error: expected declaration specifiers or ‘...’ before ‘size_t’
scripts/basic/fixdep.c: In function ‘parse_dep_file’:
scripts/basic/fixdep.c:304: error: ‘len’ undeclared (first use in this function)
scripts/basic/fixdep.c:306: error: ‘PATH_MAX’ undeclared (first use in this function)
scripts/basic/fixdep.c:308: warning: implicit declaration of function ‘strchr’
scripts/basic/fixdep.c:308: warning: incompatible implicit declaration of built-in function ‘strchr’
scripts/basic/fixdep.c:310: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:310: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:311: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:313: warning: incompatible implicit declaration of built-in function ‘memcpy’
scripts/basic/fixdep.c:314: warning: incompatible implicit declaration of built-in function ‘printf’
scripts/basic/fixdep.c:306: warning: unused variable ‘s’
scripts/basic/fixdep.c: In function ‘print_deps’:
scripts/basic/fixdep.c:343: error: storage size of ‘st’ isn’t known
scripts/basic/fixdep.c:347: error: ‘O_RDONLY’ undeclared (first use in this function)
scripts/basic/fixdep.c:349: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:349: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:351: warning: incompatible implicit declaration of built-in function ‘exit’
scripts/basic/fixdep.c:355: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:359: error: ‘PROT_READ’ undeclared (first use in this function)
scripts/basic/fixdep.c:359: error: ‘MAP_PRIVATE’ undeclared (first use in this function)
scripts/basic/fixdep.c:359: warning: assignment makes pointer from integer without a cast
scripts/basic/fixdep.c:366: error: too many arguments to function ‘parse_dep_file’
scripts/basic/fixdep.c:343: warning: unused variable ‘st’
scripts/basic/fixdep.c: In function ‘traps’:
scripts/basic/fixdep.c:378: warning: incompatible implicit declaration of built-in function ‘fprintf’
scripts/basic/fixdep.c:378: error: ‘stderr’ undeclared (first use in this function)
scripts/basic/fixdep.c:380: warning: incompatible implicit declaration of built-in function ‘exit’
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2
[/code2kthshmz]

zeekoe

11-11-2007 16:22:17

Perhaps this[/url1kov7tkk] suggestion will help you.

ebs16

11-11-2007 18:28:28

that got me [i31fcndl4]much[/i31fcndl4] further, although i am now running into the following error at [b31fcndl4]make-kpkg --initrd --revision=kernelrt2x00 linux_image[/b31fcndl4]

[code31fcndl4]
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/x86/kernel/built-in.o: In function `smp_send_nmi_allbutself':
/usr/src/rt2x00/arch/x86/kernel/crash.c:85: undefined reference to `genapic'
make[1]: *** [.tmp_vmlinux1] Error 1
make[1]: Leaving directory `/usr/src/rt2x00'
make: *** [debian/stamp-build-kernel] Error 2
[/code31fcndl4]

does anyone know how to fix this?

thanks for your help!

AdamBaker

11-11-2007 22:58:05

Yes, here's what I posted to the rt2400 mailing list when I hit the same problem.

[quote3vb43idq]
It appears that rt2x00 git currently requires the patch for 2.6.24-rc1 that
Ingo Molnar posted at http//lkml.org/lkml/2007/10/24/128 before it will
compile for x86.
[/quote3vb43idq]

ebs16

12-11-2007 13:47:00

the compilation worked and i'm booted into the new kernel, although the wireless card is not showing up. are there any additional steps to configuring these drivers?

thanks!

IvD

12-11-2007 13:56:28

Does dmesg report anything that indicates an error with rt2x00?

ebs16

12-11-2007 15:08:50

there is no mention of rt2x00 in dmesg. The device does show up properly in lspci.

IvD

12-11-2007 15:20:29

What is the output of "lspci" and "ifconfig -a"?

ebs16

12-11-2007 19:08:12

lspci

[codewpqf9583]
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 02)
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corporation 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:0e.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8029(AS)
00:0f.0 PCI bridge: Digital Equipment Corporation DECchip 21152 (rev 03)
00:11.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 24)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)
02:0b.0 Network controller: RaLink RT2600 802.11 MIMO
[/codewpqf9583]

ifconfig -a
[codewpqf9583]
eth0 Link encap:Ethernet HWaddr 00:C0:4F:XX:XX:XX
inet addr:192.168.149.10 Bcast:192.168.151.255 Mask:255.255.252.0
inet6 addr: fe80::2c0:4fff:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:22948 errors:0 dropped:0 overruns:0 frame:0
TX packets:757 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3763221 (3.5 MB) TX bytes:69063 (67.4 KB)
Interrupt:11 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:40:F4:XX:XX:XX
inet6 addr: fe80::240:f4ff:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:229 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:76734 (74.9 KB)
Interrupt:10 Base address:0xdcc0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[/codewpqf9583]

i have two ethernet cards (which display in ifconfig) and one wifi card. i've obscured part of the above mac addresses.

thanks again

AdamBaker

12-11-2007 21:25:37

Is the rt61 module loaded (look in the lsmod output)? What happens if you try modprobe rt61pci?

ebs16

12-11-2007 21:34:47

loading the rt2x00lib module has no noticeable effects. loading rt61 does the following

iconfig
[code310gdprd]
eth0 Link encap:Ethernet HWaddr 00:C0:4F:xx:xx:xx
inet addr:192.168.149.10 Bcast:192.168.151.255 Mask:255.255.252.0
inet6 addr: fe80::2c0:4fff:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33200 errors:0 dropped:0 overruns:0 frame:0
TX packets:1361 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5437796 (5.1 MB) TX bytes:143378 (140.0 KB)
Interrupt:11 Base address:0xa000

eth1 Link encap:Ethernet HWaddr 00:40:F4:xx:xx:xx
inet6 addr: fe80::240:f4ff:xxxx:xxxx/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:344 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:112896 (110.2 KB)
Interrupt:10 Base address:0xdcc0

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
[/code310gdprd]

iwconfig
[code310gdprd]
lo no wireless extensions.

eth0 no wireless extensions.

eth1 no wireless extensions.

wmaster0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:""
Mode:Managed Channel:0 Access Point: Not-Associated
Tx-Power=0 dBm
Retry min limit:7 RTS thr:off Fragment thr=2346 B
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/code310gdprd]

the device shows up in iwconfig, but not ifconfig. also, trying to set the wifi card mode to master using [b310gdprd]sudo iwconfig wlan0 mode master[/b310gdprd] generates the following error

[code310gdprd]
Error for wireless request "Set Mode" (8B06) :
SET failed on device wlan0 ; Invalid argument.
[/code310gdprd]

i would like to use this computer as an all in one wireless router (that is, without an external ap). i was under the impression that the rt2x00 beta drivers did support master mode.

AdamBaker

12-11-2007 23:12:24

The interface won't show up in ifconfig unless either it is configured or you give the -a switch. Master mode support has been temporarily removed from the mac80211 stack (which rt2x00 depends on) while it is re-written.

The rewrite in patch form is currently to be found referenced from http//marc.info/?l=linux-wireless&m=11 ... 311598&w=2.

You could try running in ad-hoc mode (i.e. no access point) but that isn't very well tested.

Nazcafan

13-11-2007 12:47:57

Just to tell I followed the steps indicated in this thread to compile a kernel on a debian testing and after using it for many hours, rt61pci seems to work [b2s7uppum]very, very[/b2s7uppum] well.

Just a little trick
- no cogito on debian testing -> git-clone instead of cg (took me a while to find this one)

Some remarks

I didn't perform any serious benchmark, but during a big apt-get upgrade I kind of noticed that downloads usually start quite slowly and speed steadily increases to reach a good point (steadily = quite slowly, not as fast as with my rt2500 legacy box). If I notice that again in other circumstances, I'll report on it.


(This only happened once) After a reboot and login, I noticed no wireless lan was detected, I just unplugged the rt61 pcmcia card, replugged it and after a few seconds my wlan was detected (maybe I did not give enough time to the nm applet to completely load and perform a scan ?)

Just a question, the kernel package seem to indicate I compiled a RC1. Shouldn't it be RC2 now? (it might be something related with syncs between linus and ivd trees, but I don't know git at all)

Congratulations to the whole rt2x00 team!

fatbob

13-11-2007 16:12:24


The rewrite in patch form is currently to be found referenced from http//marc.info/?l=linux-wireless&m=11 ... 311598&w=2.

[/quote160nx10a]

I tried to get master mode working with this patch without success and later saw this mail on linux-wireless from Ivo van Doorn stating that ad-hoc and master mode is currently unsupported http//marc.info/?l=linux-wireless&m=11 ... 816868&w=2

I'm just guessing so please correct me if I'm wrong, but I think we'll see master mode support some time after 2.6.24 has been released since the focus right now is stable managed mode.

IvD

13-11-2007 19:04:01


I'm just guessing so please correct me if I'm wrong, but I think we'll see master mode support some time after 2.6.24 has been released since the focus right now is stable managed mode.[/quoteakuhsz17]

That is a correct assumption. I disabled adhoc and master mode to prevent numerous bug reports about it for rt2x00 inside the main kernel tree. It will be enabled later again for new testing/development.

ebs16

16-11-2007 00:55:55

Hm - I'm not really sure how to go about applying those patches. Is there an ETA on drivers with master mode enabled?

Thanks again for your help.

IvD

16-11-2007 18:55:12

2.6.25 might contain a mac80211 with master mode enabled,
2.6.26 might be the version with rt2x00 with master mode.
But that all depends on how hard it is to get beaconing working again.
If we are really lucky we might make 2.6.25 but I wouldn't count on that.

ebs16

02-12-2007 02:52:34

do you have estimated dates for these releases? i don't mean to sound pushy, but i would like to plan accordingly.

thanks again