When i try send a package in bochs,get the following error

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
Cobbage
Posts: 4
Joined: Thu Jan 02, 2014 12:10 am

When i try send a package in bochs,get the following error

Post by Cobbage »

When set the CR send command i will get the following error message:

00167863831p[NE2K ] >>PANIC<< CR write - tx start, tx bytes == 0
00167882994e[NE2K ] CR write, tx timer still active

And then test the cr register reg0&0x04 always true
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: When i try send a package in bochs,get the following er

Post by Combuster »

I have no experience with the NE2000, but the error message makes it obvious you are trying to send nothing.

What have you done to verify that?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Cobbage
Posts: 4
Joined: Thu Jan 02, 2014 12:10 am

Re: When i try send a package in bochs,get the following er

Post by Cobbage »

Combuster wrote:I have no experience with the NE2000, but the error message makes it obvious you are trying to send nothing.

What have you done to verify that?
when i set the TCR(value=E2) register loopback model,i can get the package from receive buffer.

But when i set the TCR(value=E0) register normal model,this error occurs.
I test through the register.
after write data set CR register send command 0x1E
get CR value but the result is 0x1E should 0x1A
get TSR value...................is 0x01
get ISR value...................is 0x42
Post Reply