<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} .ms-cui-menu {background-color:#ffffff;border:1px rgb(171, 171, 171) solid;font-family:'Segoe UI WPC','Segoe UI',Tahoma,'Microsoft Sans Serif',Verdana,sans-serif;font-size:10pt;color:rgb(51, 51, 51);} .ms-cui-menusection-title {display:none;} .ms-cui-ctl {vertical-align:text-top;text-decoration:none;color:rgb(51, 51, 51);} .ms-cui-ctl-on {background-color:rgb(223, 237, 250);opacity: 0.8;} .ms-cui-img-cont-float {display:inline-block;margin-top:2px} .ms-cui-smenu-inner {padding-top:0px;} .ms-owa-paste-option-icon {margin: 2px 4px 0px 4px;vertical-align:sub;padding-bottom: 2px;display:inline-block;} .ms-rtePasteFlyout-option:hover {background-color:rgb(223, 237, 250) !important;opacity:1 !important;} .ms-rtePasteFlyout-option {padding:8px 4px 8px 4px;outline:none;} .ms-cui-menusection {float:left; width:85px;height:24px;overflow:hidden}.wf {speak:none; font-weight:normal; font-variant:normal; text-transform:none; -webkit-font-smoothing:antialiased; vertical-align:middle; display:inline-block;}.wf-family-owa {font-family:'o365Icons'}@font-face { font-family:'o365IconsIE8'; src:url('prem/15.0.898.11/resources/styles/office365icons.ie8.eot?#iefix') format('embedded-opentype'), url('prem/15.0.898.11/resources/styles/office365icons.ie8.woff') format('woff'), url('prem/15.0.898.11/resources/styles/office365icons.ie8.ttf') format('truetype'); font-weight:normal; font-style:normal;}@font-face { font-family:'o365IconsMouse'; src:url('prem/15.0.898.11/resources/styles/office365icons.mouse.eot?#iefix') format('embedded-opentype'), url('prem/15.0.898.11/resources/styles/office365icons.mouse.woff') format('woff'), url('prem/15.0.898.11/resources/styles/office365icons.mouse.ttf') format('truetype'); font-weight:normal; font-style:normal;}.wf-family-owa {font-family:'o365IconsMouse'}.ie8 .wf-family-owa {font-family:'o365IconsIE8'}.ie8 .wf-owa-play-large:before {content:'\e254';}.notIE8 .wf-owa-play-large:before {content:'\e054';}.ie8 .wf-owa-play-large {color:#FFFFFF/*$WFWhiteColor*/;}.notIE8 .wf-owa-play-large {border-color:#FFFFFF/*$WFWhiteColor*/; width:1.4em; height:1.4em; border-width:.1em; border-style:solid; border-radius:.8em; text-align:center; box-sizing:border-box; -moz-box-sizing:border-box; padding:0.1em; color:#FFFFFF/*$WFWhiteColor*/;}.ie8 .wf-size-play-large {width:40px; height:40px; font-size:30px}.notIE8 .wf-size-play-large {width:40px; height:40px; font-size:30px}--></style>
</head>
<body>
<div style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Salut,</p>
<p><br>
</p>
<p>Am reusit sa configurez pci device si net device (in functia probe), insa am aceeasi problema ca si Andrei, nu reusesc sa comunic cu dispozitivul(sa ii dau reset, sa ii stabilesc base CU si RU, si pointerii catre lista de buffere din care sa trimita/in care
sa primeasca).<br>
</p>
<p><br>
</p>
<p>In momentul in care se apeleaza ndo_open (pentru ca i-am atribuit un ip, si am dat link up), eu iau registrul care contine adresa de I/O mapping si in cazul meu are valoarea C201 (conform documentatiei, acel 1 trebuie considerat 0, deci placa de retea are
mapat spatiul I/O C200-C23f). Aceeasi valoare se afla si in pci device -> resource[1].start (si anume C201).</p>
<p><br>
</p>
<p>Continutul primilor 16 octeti din CSR (exact cum se afla in memorie, octetul de la adresa 0, de la adresa 1, etc) :</p>
<p>00 01 00 01 | 00 00 00 00 | 00 00 00 00 | 00 00 08 00</p>
<p>In qemu (nu in masina virtuala) am mesajul</p>
<p>qemu-system-i386 : pci_add_option_rom: failed to find romfile "pxe-eepro100.rom"</p>
<p>iar la fiecare citire de octet afiseaza (la fel, in qemu, nu in masina virtuala)<br>
</p>
<p>eepro100 : feature is missing in this emulation : unknown byte read</p>
<p><br>
</p>
<p>Folosesc outb/w/l ca sa pun in general pointer si in control register comanda (de exemplu, set base CU), si imi apare in masina virtuala "attkbd serio0 : Spurious ACK on isa0060/serio0. Some program might be trying to access hardware directly.". Cand citesc
sa vad daca s-au modificat octetii, la citire se afiseaza acelasi lucru ca mai sus (ca si cum nu s-ar fi scris nimic).<br>
</p>
<p><br>
</p>
<p>Cum as putea sa comunic cu dispozitivul (ca sa ii dau comenzi) avand in vedere ca primesc aceste erori?</p>
<p><br>
</p>
<p>Mentionez ca am incercat sa folosesc si pc_iomap (folosind adresa unde este mapat in memorie dispozitivul, nu in I/O), daca citesc direct din memorie (fara inb/w/l) obtin exact acelasi output si exact acelasi erori in qemu, iar la scriere nu se intampla
nimic.<br>
</p>
<p><br>
</p>
<p>Daca dau cat /proc/ioports, am intrarile</p>
<p>c200-c23f : 0000:00:05.0</p>
<p><span> </span>c200-c20f : Ixia net device.(numele pe care l-am inregistat cand am mapat doar primele 16 porturi).</p>
<p><br>
</p>
<p>Cand ma refer ca se afiseaza in qemu, ma refer in fereastra de terminal, unde am introdus comanda "make" ca sa porneasca masina virtuala. Cand zic ca se afiseaza in masina virtuala, ma refer la fereastra numita QEMU, care reprezinta efectiv masina virtuala.<br>
</p>
<p><br>
</p>
<p>Vlad</p>
<p><br>
</p>
<p><br>
</p>
</div>
</body>
</html>