Page 1 of 2

Atheros L2

Posted: Thu May 09, 2019 10:52 pm
by Coldy
Привет!
Есть желание сделать драйвер для сетевой карты Atheros L2 (интегрирована в ASUS Eee PC 4G, см. пост http://board.kolibrios.org/viewtopic.ph ... 187#p73187).
Нашел исходный код в ядре Linux https://github.com/torvalds/linux/tree/ ... heros/atlx (исходник модуля L2 в файле atl2.c).
Ранее я драйверы не кодил, но теоретическая подготовка есть. Я пока только начал разбираться с драйверной моделью Linux. В Kolibri, чтобы карта заработала нужно перенести только базовый функционал (поиск на шине, прием-передача и т.п.). Может ли кто-то помочь в этих задачах? Где можно найти datacheet с подробным описанием для кодирования драйвера?

Re: Atheros L2

Posted: Tue Apr 21, 2020 10:41 pm
by hidnplayr
Atheros/Qualcomm does not publish datasheets for these chips unfortunately.

Only way is to study the code of existing open source drivers.
As an example for KolibriOS, here is a driver derived mostly from open source 'alx' driver http://websvn.kolibrios.org/filedetails ... m&peg=7809

Re: Atheros L2

Posted: Tue Apr 21, 2020 11:18 pm
by rgimad
hidnplayr wrote:Atheros/Qualcomm does not publish datasheets for these chips unfortunately.
Yes, but i found some leaked datasheets here https://github.com/Deoptim/atheros

Re: Atheros L2

Posted: Wed Apr 22, 2020 6:13 pm
by hidnplayr
I have only AR8171(QCA8171) and AR8131 for which no datasheets are to be found, maybe you are more lucky!

Re: Atheros L2

Posted: Thu Apr 23, 2020 2:46 am
by rgimad
from atheros i have only ar8131 and ar9285 (wifi)

Re: Atheros L2

Posted: Wed Aug 19, 2020 8:39 pm
by Coldy
Для карты L2 есть пример в Linux (см. ссылку в начале топика). Я сделал порт на Си, но это порт у меня не работает.
Есть еще пример в minix https://git.minix3.org/index.cgi?p=mini ... 35;hb=HEAD

Может кто-то помочь сделать работающий драйвер?

Re: Atheros L2

Posted: Mon Sep 07, 2020 2:10 pm
by denius
Coldy wrote:Для карты L2 есть пример в Linux (см. ссылку в начале топика). Я сделал порт на Си, но это порт у меня не работает.
Есть еще пример в minix https://git.minix3.org/index.cgi?p=mini ... 35;hb=HEAD

Может кто-то помочь сделать работающий драйвер?
А не пробовал перевести дрова на Assembler? Может и заработает. Hidnplayr должен мог бы этим заняться.

Re: Atheros L2

Posted: Tue Sep 15, 2020 3:40 pm
by Coldy
denius, от того, что ты переведешь код драйвера на асемблер он все равно не заработает. И проще, и быстрее сделать порт на С, а когда он заработает уже думать об ассемблерной версии.

Re: Atheros L2

Posted: Tue Sep 15, 2020 3:56 pm
by maxcodehack
Хочу сказать что дениус в этом не разбирается

Re: Atheros L2

Posted: Mon Aug 23, 2021 9:38 pm
by hidnplayr
Coldy: Do I understand correctly that you have a card with PCI ID 1069:2048 ?

Re: Atheros L2

Posted: Sat Aug 28, 2021 12:10 pm
by Coldy
hidnplayr, no. here info from windows device manager - pci\ven_1969&dev_2048...

Re: Atheros L2

Posted: Sat Aug 28, 2021 12:44 pm
by hidnplayr
Coldy wrote:hidnplayr, no. here info from windows device manager - pci\ven_1969&dev_2048...
It seems I made a typing error :) 1969:2048 it is indeed.
Anyway, I asked to check if it is possible to add support in AR81XX driver, but it's not so easy for this device, sorry.

Re: Atheros L2

Posted: Sat Aug 28, 2021 1:24 pm
by Coldy
As far as I know, the L2 chip is from Attansic, this is the company acquired by Atheros. So L2 is no Atheros chip, for him need his native driver.

Re: Atheros L2

Posted: Sat Aug 28, 2021 5:54 pm
by hidnplayr
Yes, Attansic seems to have been bought by Atheros which seems to have been bought by Qualcomm.
But I don't care about the brand name when making a driver, more about the architecture of the chip ;)

Anyway, it seems architecturally different enough to put in a separate driver.

Re: Atheros L2

Posted: Mon Aug 30, 2021 3:54 pm
by Coldy
hidnplayr wrote:Yes, Attansic seems to have been bought by Atheros which seems to have been bought by Qualcomm.
Yes, giant devours small :)
hidnplayr wrote:Anyway, it seems architecturally different enough to put in a separate driver.
Do you currently/or planning to develop driver for this NIC? As I wrote above I have try do port in C from Linux driver, but it not works. With current my driver state, NIC transmit DHCP packets (this logging my router), but no answer from DHCP server, I get packets for another PC instead. I not solved of this problem, in the end I abandoned this development.