OSDev.org https://forum.osdev.org/ |
|
Intel 8254x don't work on real hardware https://forum.osdev.org/viewtopic.php?f=1&t=56101 |
Page 1 of 1 |
Author: | nlg [ Sun Jan 23, 2022 2:49 pm ] |
Post subject: | Intel 8254x don't work on real hardware |
I wrote a driver for an i8254x card which works very well on virtualbox but which is not able to send frames on a real machine (the reception works on the other hand) Do you have an idea of what could block the emission? edit: here is the code: https://github.com/N-LG/SEAC/blob/master/ASM/PROG/I8254X.asm |
Author: | nlg [ Mon Jan 24, 2022 5:33 pm ] |
Post subject: | Re: Intel 8254x don't work on real hardware |
I compared my code with sources found on the internet and I found that I did not correctly disable the interrupts nor did not configure the TIPG register but it still does not work in transmission. The procedure for configuring the transmission does not change compared to the config that I found as an example (I still have to check that the descriptors have no problem, however) I still have to check the configuration at the level of the transmission speed, I had set an auto detection but maybe it does not work or only at the level of the reception but I admit having problems understanding the documentation about the "PHY" |
Author: | nifanfa [ Sat Jan 29, 2022 5:22 am ] |
Post subject: | Re: Intel 8254x don't work on real hardware |
nlg wrote: I wrote a driver for an i8254x card which works very well on virtualbox but which is not able to send frames on a real machine (the reception works on the other hand) Do you have an idea of what could block the emission? edit: here is the code: https://github.com/N-LG/SEAC/blob/master/ASM/PROG/I8254X.asm Hi nlg. I wrote an intel8254x driver in c# that works fine on real hardware. But sorry I don't have an assembly version. https://github.com/nifanfa/Solution1/bl ... el8254X.cs |
Author: | nifanfa [ Sat Jan 29, 2022 5:32 am ] |
Post subject: | Re: Intel 8254x don't work on real hardware |
I've also used to get the driver not working. That's because I didn't clear the interrupt mask. so it won't suffer any interruptions |
Author: | nlg [ Tue Feb 01, 2022 3:55 pm ] |
Post subject: | Re: Intel 8254x don't work on real hardware |
thank you for this source, it allows me to revise my C# a bit. and I was able to observe a few tracks: - I start with a reset of the card and you don't -I do not initialize the multicast reception registers (but I have no reception problem so I doubt that it comes from there) -I initialize the TCTL and CRT registers differently, and the problem probably comes from there |
Author: | nlg [ Wed Feb 09, 2022 12:29 pm ] |
Post subject: | Re: Intel 8254x don't work on real hardware |
I found why the frame sending did not work: I did not activate the Insert FCS/CRC(IFCS) bit in the command of the Transmit Descriptor and therefore the card did not add the CRC at the end of the frame sent virtualbox sending the packet to a real card (with a good driver not written by me ) the CRC had to be added anyway thank you for your source nifanfa, it helped me a lot |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |