Board.KolibriOS.org

Official KolibriOS board
It is currently Mon Oct 25, 2021 8:37 am

All times are UTC+03:00




Post new topic  Reply to topic  [ 18 posts ]  Go to page 1 2 Next
Author Message
 Post subject: Atheros L2
PostPosted: Thu May 09, 2019 10:52 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
Привет!
Есть желание сделать драйвер для сетевой карты Atheros L2 (интегрирована в ASUS Eee PC 4G, см. пост http://board.kolibrios.org/viewtopic.php?f=4&p=73187#p73187).
Нашел исходный код в ядре Linux https://github.com/torvalds/linux/tree/master/drivers/net/ethernet/atheros/atlx (исходник модуля L2 в файле atl2.c).
Ранее я драйверы не кодил, но теоретическая подготовка есть. Я пока только начал разбираться с драйверной моделью Linux. В Kolibri, чтобы карта заработала нужно перенести только базовый функционал (поиск на шине, прием-передача и т.п.). Может ли кто-то помочь в этих задачах? Где можно найти datacheet с подробным описанием для кодирования драйвера?


Top
   
 Post subject: Re: Atheros L2
PostPosted: Tue Apr 21, 2020 10:41 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
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

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Atheros L2
PostPosted: Tue Apr 21, 2020 11:18 pm 
Offline
User avatar

Joined: Mon Apr 06, 2020 1:09 pm
Posts: 112
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

_________________
The best way to predict the future is to create it.


Top
   
 Post subject: Re: Atheros L2
PostPosted: Wed Apr 22, 2020 6:13 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
I have only AR8171(QCA8171) and AR8131 for which no datasheets are to be found, maybe you are more lucky!

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Atheros L2
PostPosted: Thu Apr 23, 2020 2:46 am 
Offline
User avatar

Joined: Mon Apr 06, 2020 1:09 pm
Posts: 112
from atheros i have only ar8131 and ar9285 (wifi)

_________________
The best way to predict the future is to create it.


Top
   
 Post subject: Re: Atheros L2
PostPosted: Wed Aug 19, 2020 8:39 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
Для карты L2 есть пример в Linux (см. ссылку в начале топика). Я сделал порт на Си, но это порт у меня не работает.
Есть еще пример в minix https://git.minix3.org/index.cgi?p=minix.git;a=tree;f=minix/drivers/net/atl2;h=8df11a05046c1d7a0abefc375cfd27bc8907db35;hb=HEAD

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


Top
   
 Post subject: Re: Atheros L2
PostPosted: Mon Sep 07, 2020 2:10 pm 
Offline

Joined: Mon Sep 07, 2020 1:54 pm
Posts: 12
Coldy wrote:
Для карты L2 есть пример в Linux (см. ссылку в начале топика). Я сделал порт на Си, но это порт у меня не работает.
Есть еще пример в minix https://git.minix3.org/index.cgi?p=minix.git;a=tree;f=minix/drivers/net/atl2;h=8df11a05046c1d7a0abefc375cfd27bc8907db35;hb=HEAD

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

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


Top
   
 Post subject: Re: Atheros L2
PostPosted: Tue Sep 15, 2020 3:40 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
denius, от того, что ты переведешь код драйвера на асемблер он все равно не заработает. И проще, и быстрее сделать порт на С, а когда он заработает уже думать об ассемблерной версии.


Top
   
 Post subject: Re: Atheros L2
PostPosted: Tue Sep 15, 2020 3:56 pm 
Offline

Joined: Mon Sep 07, 2020 7:09 pm
Posts: 411
Хочу сказать что дениус в этом не разбирается


Top
   
 Post subject: Re: Atheros L2
PostPosted: Mon Aug 23, 2021 9:38 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
Coldy: Do I understand correctly that you have a card with PCI ID 1069:2048 ?

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Atheros L2
PostPosted: Sat Aug 28, 2021 12:10 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
hidnplayr, no. here info from windows device manager - pci\ven_1969&dev_2048...


Top
   
 Post subject: Re: Atheros L2
PostPosted: Sat Aug 28, 2021 12:44 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
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.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Atheros L2
PostPosted: Sat Aug 28, 2021 1:24 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
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.


Top
   
 Post subject: Re: Atheros L2
PostPosted: Sat Aug 28, 2021 5:54 pm 
Offline
Mentor/Kernel Developer
User avatar

Joined: Fri Jun 30, 2006 9:01 am
Posts: 1306
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.

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Top
   
 Post subject: Re: Atheros L2
PostPosted: Mon Aug 30, 2021 3:54 pm 
Offline

Joined: Tue Apr 09, 2019 8:57 pm
Posts: 63
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 18 posts ]  Go to page 1 2 Next

All times are UTC+03:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited