📄 romutil.txt
字号:
I wrote the attached little util program to try out the basic approachand thought that you might find it useful as well as providing somesimple testing. It isn't a final solution so the interface is rough. Theprogram must be run as root on an Intel based machine.The key point is that the IO address needs to be entered - I grab itfrom the dmesg output:eth0: 3Com 3c905B Cyclone 100baseTx at 0xe400, 00:10:4b:d2:5e:0d, IRQ11or "cat /proc/pci" to find the "I/O at XXXXXX" for your 3Com Card.Some example commands are:romutil 0xe400 erase - erases the ROM contentsromutil 0xe400 protect - enables the Software Data Protectionon the ROM [3c905B only]romutil 0xe400 unprotect - disables the Software Data Protectionon the ROM [3c905B only]romutil 0xe400 id - displays the manufacturer anddevice IDsromutil 0xe400 read >file - writes the contents of the ROM to stdoutromutil 0xe400 prog <file - writes the contents of the stdin into theROM (<64k)I tried reading and writing the ROM while doing large ftp transfers andexperienced no problems. I didn't spend much time worrying about thepossible race conditions. My system has lots of resources (450MHx P2,128MB RAM) so it might not provide the best test candidate.Let me know what results you get if you try it out.ThanksJohn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -