ccc said:thx, but what about freeBSD 8.0 current ?
does 8.0 current support rt2860 ?
mathuin said:Nope! After compiling in ral, ralfw, firmware, and the wlan crew, the closest I get is this:
pci1: <network> at device 0.0 (no driver attached)
In the handbook ? :OOOmathuin said:Where can I find detailed instructions on how to do this? I haven't messed with NDIS since Novell Netware...
mathuin said:I've been running 8-CURRENT using csup to keep up to date. I am using /usr/share/examples/cvsup/standard-supfile as my supfile.
I modified the kernel file I'm using (ASUS-EEEPC-901-8.0 which I got from a FreeBSD wiki page) to include the five 'device' lines found in the ral(4) man page: ral, ralfw, wlan, wlan_amrr, and firmware. The man page doesn't list RT2860 support, but the original author has been focusing on OpenBSD support and the OpenBSD CVS mailing list archives show that he has committed RT2860 support into OpenBSD last November. I wish I was clever enough to somehow take that driver and run it on FreeBSD.
Is it worth making a PR?
ndis0: NDIS ERROR c0001388 (unknown error)
pci1: driver added
found-> vendor=0x1814, dev=0x0781, revid=0x00
domain=0, bus=1, slot=0, func=0
class=02-80-00, hdrtype=0x00, mfdev=0
cmdreg=0x0007, statreg=0x0010, cachelnsz=8 (dwords)
lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
intpin=a, irq=19
powerspec 3 supports D0 D3 current D0
MSI supports 32 messages, 64 bit
pci0:1:0:0: reprobing on driver added
ral0: <Ralink Technology RT2860> mem 0xfbef0000-0xfbefffff irq 19 at device 0.0 on pci1
pcib4: ral0 requested memory range 0xfbef0000-0xfbefffff: good
ral0: rt2860_attach: Bozo was here.
ral0: MAC/BBP RT2872 (rev 0x0200), RF RT2720 (1T2R)
ral0: bpf attached
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ral0: [MPSAFE]
ral0: [ITHREAD]
pci3: driver added
pci4: driver added
pci5: driver added
pci6: driver added
ral0: rt2860_init_locked: Bozo was here.
ral0: rt2860_stop_locked: Bozo was here.
ral0: trying to load firmware rt2860fw
firmware: 'rt2860fw' version 0: 8192 bytes loaded at 0xc55295e0
ral0: rt2860_load_microcode: loading firmware...
ral0: rt2860_load_microcode: firmware loaded successfully.
ral0: rt2860_stop_locked: Bozo was here.
ral0: detached
eeepc#
to finish the driver yr need implement(porting) the DMA engine and rx/tx procedure
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x303d726f
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc073ad81
stack pointer = 0x28:0xc0c20ce0
frame pointer = 0x28:0xc0c20d1c
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 0 (swapper)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1s
Cannot dump. Device not defined or unavailable.
Automatic reboot in 15 seconds - press a key on the console to abort