Help - Search - Members - Calendar
Full Version: Attansic L1 Driver Project
InsanelyMac Forum > OSx86 Project > Hardware and Drivers > LAN and Wireless
Pages: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
DaemonES
Mail me. I will forward to you a mail of those guy, who have done port for FreeBSD. He said, that anyway performance is poor.
NoSTaBoNN
Are there other people that can confirm that the attansic L1 works/is recognised with iATKOS?
If so... anybody that can link me to the network related drivers included with iATKOS?
Gonna try this while I keep looking for a way to make DaemonES his driver work.
Hacktrix2006
QUOTE(NoSTaBoNN @ Apr 3 2008, 11:03 PM) *
Are there other people that can confirm that the attansic L1 works/is recognised with iATKOS?
If so... anybody that can link me to the network related drivers included with iATKOS?
Gonna try this while I keep looking for a way to make DaemonES his driver work.


That a negative sorry. It shows that my L1 is there and Intel 3945 abg is there but after install nothing.

I know that Ubuntu has everything working the Wifi and L1 is there anyway to port the driver from ubuntu to osx.
DaemonES
Direct port coudn't be done.
NoSTaBoNN
So back to the code censored2.gif
ali123
"bump" for updates!
MadInt
He there.
Almost got this driver working on my P5KR. Performance is quite poor, thought. So little more time to optimize receiver ring handler.
You also need to enter sudo ifconfig en0 media 100BaseTX, cause there are no autonegotiation (sadly)

Strongly recommend first try "release" version (debug will cause too much stress to system logger)
NoSTaBoNN
You are my hero biggrin.gif
The performance ain't that bad blink.gif
I can watch youtube without having to wait longer then i have in Vista so thats ok.

But i had to use the debug kext, the release said cable was not connecting after setting mediatype.

Thanks.. really biggrin.gif
MadInt
QUOTE(NoSTaBoNN @ Apr 9 2008, 06:12 PM) *
But i had to use the debug kext, the release said cable was not connecting after setting mediatype.

You may also try ifconfig en0 media 100BaseTX mediaopt full-duplex
It seems that PHY code probably broken somewhere.
DaemonES
QUOTE(MadInt @ Apr 9 2008, 06:25 PM) *
You may also try ifconfig en0 media 100BaseTX mediaopt full-duplex
It seems that PHY code probably broken somewhere.

Not really, look to the FreeBSD driver. Attansic L1 has several revisions, sometimes Linux driver doesn't work too. Autonegotiation works, but setting of 1 gigabit mode not.

Anyway, good job. I was afraid, that nobody can finish my job smile.gif
NoSTaBoNN
I think i found problem with the release version.
If i dont set mediatype to 1000BaseT and then put it back to 100BaseTX it thinks there's no cable biggrin.gif
MadInt
QUOTE(DaemonES @ Apr 9 2008, 06:52 PM) *
Not really, look to the FreeBSD driver. Attansic L1 has several revisions, sometimes Linux driver doesn't work too. Autonegotiation works, but setting of 1 gigabit mode not.

Anyway, good job. I was afraid, that nobody can finish my job smile.gif

Да вобщем-то и думаю большую часть драйвера переписать из BSD, вот только семерку воткну smile.gif
Спасибо за порт, без него точно ничего не получилось бы у меня...
Amoralez
QUOTE(MadInt @ Apr 10 2008, 12:52 AM) *
Да вобщем-то и думаю большую часть драйвера переписать из BSD, вот только семерку воткну smile.gif
Спасибо за порт, без него точно ничего не получилось бы у меня...


Гуд ворк:) только потерь с этими дровами много, но лучше хоть что то чем ничего

Good work.

MadInt
QUOTE(Amoralez @ Apr 9 2008, 11:11 PM) *
Гуд ворк:) только потерь с этими дровами много, но лучше хоть что то чем ничего

Good work.

Ну я много потерь не замечал, имхо все зависит от дуплекса, мой свич очень не любит полудуплекс smile.gif На полном дуплексе разогнался до 80 мегабит.
А латенси действительно ужасный, видимо что-то неладно в коде прерываний, работы еще много...
Amoralez
QUOTE(MadInt @ Apr 10 2008, 12:27 PM) *
Ну я много потерь не замечал, имхо все зависит от дуплекса, мой свич очень не любит полудуплекс smile.gif На полном дуплексе разогнался до 80 мегабит.
А латенси действительно ужасный, видимо что-то неладно в коде прерываний, работы еще много...


Потерей тоже уже нет, вчера как только поставил кекс, было все ужасно, сегодня проснулся уже работает нормально. но лейтенси... угук
Главное что работает smile.gif А то я уже отчаялся, полный набор неудачника: жмикрон контролер, 512мб видюха, аттансик л1...
MadInt
QUOTE(Amoralez @ Apr 10 2008, 08:33 AM) *
Потерей тоже уже нет, вчера как только поставил кекс, было все ужасно, сегодня проснулся уже работает нормально. но лейтенси... угук
Главное что работает smile.gif А то я уже отчаялся, полный набор неудачника: жмикрон контролер, 512мб видюха, аттансик л1...

[offtop] для жмикрона вроде есть драйвера, по крайней мере у меня завелось. работает правда через раз, но работает! Единственная трабла с загрузкой с DVD, пришлось покупать сатовый привод...
У меня из всего моего железа сейчас не работает только PCI'шный SBlive (уж очень я его люблю), видимо им тоже как нибудь займусь...
Asus P5KR, Intel E6550 2.33Ghz, Radeon HD3870 512MB...
[/offtop]
antaholics
Hello,

I tried the debug driver, and it didn't add a new Network adapter to the list... and I still can't connect. It MIGHT be that the interface (PCI or w/e it is) does not have a driver yet (I'm using a laptop - Asus F3SV), but I'm not really sure. How do I find out? Console spits this message:

CODE
10/04/08 5:24:25 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=51
10/04/08 5:24:26 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:26 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:24:28 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=52
10/04/08 5:24:28 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:28 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:24:32 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=53
10/04/08 5:24:32 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:32 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:24:41 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=54
10/04/08 5:24:41 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:41 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:24:49 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=55
10/04/08 5:24:50 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:50 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:24:58 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=56
10/04/08 5:24:58 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:24:58 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:25:06 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=57
10/04/08 5:25:06 AM kernel [AttansicL1Ethernet] SMB RX: rx_ok=0 rx_bcast=0 rx_mcast=0 rx_sz_ov=0 rx_rxf_ov=0 rx_rrd_ov=0 rx_align_err=0
10/04/08 5:25:06 AM kernel [AttansicL1Ethernet] SMB TX: tx_ok=1 tx_exc_defer=0 tx_defer=0 tx_bcast=1 tx_mcast=0 tx_underrun=0 tx_rd_eop=0 tx_trunc=0
10/04/08 5:25:14 AM kernel [AttansicL1Ethernet] AttansicL1Ethernet::outputPacket, length 342 tp_next_to_use=58
MadInt
QUOTE(antaholics @ Apr 10 2008, 09:30 AM) *
Hello,

I tried the debug driver, and it didn't add a new Network adapter to the list... and I still can't connect. It MIGHT be that the interface (PCI or w/e it is) does not have a driver yet (I'm using a laptop - Asus F3SV), but I'm not really sure. How do I find out?


Can you paste ifconfig -a output here?
link2db
QUOTE(NoSTaBoNN @ Apr 9 2008, 09:14 PM) *
I think i found problem with the release version.
If i dont set mediatype to 1000BaseT and then put it back to 100BaseTX it thinks there's no cable biggrin.gif

I can confirm!
I set 1000BaseT e back to 100BaseTX, on my Pro31S (F3sa) and network work........with debug drivers.....

EDIT (from my F3sa):
this is my "ifconfig -a" output:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::21d:60ff:feee:a24d%en0 prefixlen 64 scopeid 0x4
inet 192.4.0.250 netmask 0xffffff00 broadcast 192.4.0.255
ether 00:1d:60:ee:a2:4d
media: 100baseTX <half-duplex> status: active
supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 100baseTX <half-duplex> 100baseTX <full-duplex> 1000baseT <half-duplex> 1000baseT <full-duplex>
fw0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 2030
lladdr 00:e0:18:00:03:b7:3d:4b
media: autoselect <full-duplex> status: inactive
supported media: autoselect <full-duplex>

olvko
Wow! Indeed it works! Great job and thanks!!
undefined
am i the only one who doesn't know how to install this? tongue.gif please tell me, please. tell me. tell me, please.
MadInt
QUOTE(undefined @ Apr 10 2008, 02:07 PM) *
am i the only one who doesn't know how to install this? tongue.gif please tell me, please. tell me. tell me, please.

you have to use one of included shell scripts (eg, installrelease.sh)
undefined
well, i figured that out, but i don't have any kexts in my unzipped zip! i get tons of 'not such file or directory' errors while running scripts
DaemonES
Тупые буржуи smile.gif

undefined look better! And do not post noob questions in the development thread.
undefined
QUOTE(DaemonES @ Apr 10 2008, 04:35 PM) *
Тупые буржуи smile.gif

undefined look better! And do not post noob questions in the development thread.

i will while after you guys stop speaking russian in non-russian forum
MadInt
Hi, small update - I'm sure that latency issue is fixed now.
So to get good speed and latency you need to set network media properties to 100 Mbit full-duplex operation (in most cases).
NoSTaBoNN
I am currently working with 100BaseTX half-duplex,
how do i get it in full-duplex?

further the driver works like before.. maybe a bit faster. But I'm not noticing it.
MadInt
QUOTE(NoSTaBoNN @ Apr 10 2008, 06:36 PM) *
I am currently working with 100BaseTX half-duplex,
how do i get it in full-duplex?

There must be appropriate option in ethernet adapter settings.
Another way is do it throught terminal, by entering sudo ifconfig en0 media 100BaseTX mediaopt full-duplex
NoSTaBoNN
Thanks i like gained 10 times speed biggrin.gif

Really DaemonES & MadInt thanks biggrin.gif
Jimmy Mallmann
Hi!

Thanks from Brazil! The Driver Works just Fine here!

Great job DaemonES and MadInt... thumbsup_anim.gif
gahyoo
when I -> sudo ./loaddebug.sh
this show (I use Kalyway 10.5.2)


file attribute adjusting for AttansicL1Ethernet.kext
extension AttansicL1Ethernet.kext has potential problems:
Warnings
{
"Kext has immediate dependencies on both com.apple.kernel and com.apple.kpi components; use only one style" = true
}

kextload: extension AttansicL1Ethernet.kext appears to be loadable
kextload: loaded version 1.0.0 of module ru.Applelife.AttansicL1Ethernet differs from requested version 1.0.0 (UUIDs differ)
kextload: a different version of AttansicL1Ethernet.kext, or of one of its dependencies, is already loaded

help me please?
DaemonES
Try to
sudo rm -R /System/Library/Extensions/AttansicL1Ethernet.kext
sudo touch /System/Library/Extensions
sudo reboot

It seems someone included unworkable version of driver to DVD. Stupid decission include unstable SW.
eberts
Congratulations DaemonEs and MadInt. Nice work.
I hardly dare to ask about the Attansic L2... angel.png
I tried the L1: I get an active link with mac-address. I can also ping itself but I don't get through to the router. sad.gif
Any chance for us Attansic L2 users? DaemonES? MadInt? smile.gif
undefined
thanks, it works great with a fine speed!
will there be any new versions?
emulatorb
great work, nice team effort.

unfortunately, ain't working on P5KC with Kalyway 10.5.2.
Amoralez
QUOTE(emulatorb @ Apr 12 2008, 01:02 PM) *
great work, nice team effort.

unfortunately, ain't working on P5KC with Kalyway 10.5.2.


And perfectly work on P5K with Kalyway 10.5.2 tongue.gif
antaholics
I got it to work!! yay!! I wasn't really sure how to use the install .sh files though, so I just used kexthelper. Can anyone confirm if the release version works? I am using the debug version right now.

Thanks everyone for the development and efforts!!
emulatorb
Indeed. kexthelper and a couple of cable in // out did the trick form me. the extension kept diappearing from the ext folder so made a copy to the desktop and installed it from there.

thx again. tongue.gif
undefined
QUOTE(antaholics @ Apr 12 2008, 11:16 AM) *
I got it to work!! yay!! I wasn't really sure how to use the install .sh files though, so I just used kexthelper. Can anyone confirm if the release version works? I am using the debug version right now.

Thanks everyone for the development and efforts!!

i can tongue.gif
and when i turned comptuer on with cable plugged, it didnt recognize it as connected, i had to install the new version and reboot to get it to work!
braveskunk
hey guys!
been following this thread a long time now. i'm very happy that somebody finally got it to work.
it works on my mobo as well but i cannot say it's working good. the problem is with the speed and autonegotiation.
when i install the kext(no matter: debug, release or via kext helper) it install and loads allright:)
then i have to select(manually) speed and duplex mode. if i select 10 or 100mbit and half or full duplex(no matter what combination) it gets the right ip and all the configuration from dhcp but the speed is about 1kb/s in/out and barely loads the top of web pages. i can ping servers, adium works, so i guess the only thing whats wrong is something with the speed configuration thus it cannot load pages becouse of 1kb/s transfer.
i wanted to change/reconfigure something in the script itself but just don't know excacly what is resposible for what.
when i change the speed to 1000mbit it says its manually configured(by osx i guess...) address from 169.x.x.x or 10.39.x.x and cannot connect to anything.

below, my ifconfig dump:
CODE
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
    inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    inet 127.0.0.1 netmask 0xff000000
    inet6 ::1 prefixlen 128
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::200:1cff:fec9:df81%en0 prefixlen 64 scopeid 0x4
    inet 192.168.0.8 netmask 0xffffff00 broadcast 192.168.0.255
    ether 00:00:1c:c9:df:81
    media: autoselect (100baseTX <full-duplex,flow-control>) status: active
    supported media: autoselect 100baseTX <full-duplex> 100baseTX <full-duplex,flow-control> 100baseTX <hw-loopback> 100baseTX <half-duplex> 10baseT/UTP <full-duplex> 10baseT/UTP <full-duplex,flow-control> 10baseT/UTP <hw-loopback> 10baseT/UTP <half-duplex> none
en3: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::218:f3ff:fe74:4f14%en3 prefixlen 64 scopeid 0x5
    inet 192.168.0.107 netmask 0xffffff00 broadcast 192.168.0.255
    ether 00:18:f3:74:4f:14
    media: 100baseTX <full-duplex> status: active
    supported media: autoselect 10baseT/UTP <half-duplex> 10baseT/UTP <full-duplex> 100baseTX <half-duplex> 100baseTX <full-duplex> 1000baseT <half-duplex> 1000baseT <full-duplex>
en1: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::21c:42ff:fe00:0%en1 prefixlen 64 scopeid 0x6
    inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
    ether 00:1c:42:00:00:00
    media: autoselect status: active
    supported media: autoselect
en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    inet6 fe80::21c:42ff:fe00:1%en2 prefixlen 64 scopeid 0x7
    inet 10.211.55.2 netmask 0xffffff00 broadcast 10.211.55.255
    ether 00:1c:42:00:00:01
    media: autoselect status: active
    supported media: autoselect

i have 2 parallels desktop interfaces and 2 from my se k800i. the 2 "real" interfaces are en0(realtek) and en3(l1).
if anyone get a clue how to speedup my connection i would be happy:)
anyway, thanks for all ur help and work to get this done:)

undefined
braveskunk - try setting it to 100 and full-duplex. i had lack of performance at the beginning, but after about 10 minutes it was all fine!
also check your dns servers, if adium seems to work and webistes dont.
braveskunk
no no ur missing the point a bit:) all types of connections work but its just so slow. thats the problem, will give it a try for longer,and how is it after restart? u have to wait 10 minutes again? or its just a one time problem?
emulatorb
since I set it to 100 my connection is stable from the first minute after login. I get my full broadband (around 1.6 MB) on a P5KC.

On my setup, full duplex or half duplex did not make any difference.
braveskunk
i changed it to 100 half/full still no any better after waitng almost an hour. tried pluggin in/out few times. will try to play with my router now
undefined
no, it was just one time problem. did you check dns server/s?
braveskunk
as i said before. it can connect and ping to the (www)servers(so both dns works), safari sees the page, starting to display it and then stuck on loading page. checked on istat and the speeds are up to 5kb/s down, and 1kb/up. the thing is the connection itself is so slow that osx cant download all the data:/
strange
MadInt
I think i've done most of work with link autosensing. Now OS can detect when you plug and unplug cable and show appropriate link status, speed and duplex. Still some problems with gigabit, but i'm working on it.
Please try this WITHOUT manual link setting (keep with "auto" configuration in ethernet card properties).
NoSTaBoNN
It detects the cable.. and it detects the correct speed and duplex.
But i think it handles it wrong.
Ifconfig gives me this at media: 1000BaseT <full-duplex> (100BaseTX <full-duplex>) status: active
braveskunk
yeah, that might be it. the same with mine. detects connection but somehow its just sloooow:P
NoSTaBoNN
OK.. I fixed it. Now it auto detects and sets the correct speed & duplex.
Someone might want to check the code.. but it works tongue.gif

What i have done is added a boolean called autoMediaType to the atl1Adapter...
Which is set to true if autoselect.

And in atl1GetAndUpdateLinkStatus i added this

if(atl1Adapter_.autoMediaType)
{
DbgPrint("Media is autoconfigured!");
atl1Hw_.media_type = currentMediumIndex;
setCurrentMedium(mediumTable[currentMediumIndex]);
}

EDIT: It could be i modified the debug at some place to make sure i had a new kext... had some problems with that at first
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.