PCNet driver problem

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

PCNet driver problem

Post by digo_rp »

Now I'm back on trying to get PCNet to work properly, but I´m having some trouble...

example: when drivers starts, everything works ok! but when I'm trying to do some realmode int like int 0x10, I got invalid opcode exception!
then I disable the PcNet driver and restart my kernel.. and do the same thing example. int 0x10, at this case works properly, works good.

I'm using virtualbox. the ethernet card is using IRQ 9.
anyone knows what can I do?

thx in advance!
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: PCNet driver problem

Post by SpyderTL »

It's entirely possible that there could be a bug in the VirtualBox BIOS in that interrupt handler.

Their code is open source, so they may have the BIOS source available as well. You may be able to look through it and find the issue.

Which INT 0x10 function are you calling?

I assume your entire OS runs in Real Mode, and you aren't using any 32-bit to 16-bit transitions.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: PCNet driver problem

Post by digo_rp »

I'm trying to do something like int 13h for example!

without pcnet driver, that int works greate, but when I start the driver, all my vm86 ints does'nt work!
User avatar
SpyderTL
Member
Member
Posts: 1074
Joined: Sun Sep 19, 2010 10:05 pm

Re: PCNet driver problem

Post by SpyderTL »

If you are using vm86, then it’s going to be a lot harder to pinpoint the issue without seeing the actual code.

I would recommend stepping through your pcnet driver in Bochs or QEMU. Also, you could try commenting out your entire driver, and uncommenting one line at a time until things stop working.
Project: OZone
Source: GitHub
Current Task: LIB/OBJ file support
"The more they overthink the plumbing, the easier it is to stop up the drain." - Montgomery Scott
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: PCNet driver problem

Post by digo_rp »

tnx so much...
I'll try out!
digo_rp
Member
Member
Posts: 233
Joined: Sun Jun 05, 2005 11:00 pm

Re: PCNet driver problem

Post by digo_rp »

Problem solved!
the problem was with netbuf from tcp/udp protocol, I was allocating in wrong way that buffer.
thx a log guys.

Now my two ethernet drivers AMD PC-NET and Intel Pro/1000 is working ...

thx a lot.
Post Reply