We tried to use dosemu today on Ubuntu 12.04 to access an ISA card with 
the same machine and software as previously worked with Ubuntu 10.04 and 
found that it no longer works.

After a bit of investigation we found the problem appears to be that the 
/proc/ioports "file" that dosemu checks for available IO ranges is now 
shown as this:

psc@terra:~$ more /proc/ioports
0000-0cf7 : PCI Bus 0000:00
   0000-001f : dma1
   0020-0021 : pic1
   0040-0043 : timer0
   0050-0053 : timer1
   0060-0060 : keyboard
   0064-0064 : keyboard
   0080-008f : dma page reg
   00a0-00a1 : pic2
   00c0-00df : dma2
   00f0-00ff : fpu
   0170-0177 : 0000:00:1f.1
     0170-0177 : ata_piix
   01f0-01f7 : 0000:00:1f.1
     01f0-01f7 : ata_piix
   02d0-02d7 : serial
   02d8-02df : serial
   02e0-02e7 : serial
   02e8-02ef : serial
   02f0-02f7 : serial
   02f8-02ff : serial
   0376-0376 : 0000:00:1f.1
     0376-0376 : ata_piix
   0378-037a : parport0

And do on.

As you can see, it is reporting that the whole legacy IO range is 
'owned' by the PCI bridge device in "0000-0cf7 : PCI Bus 0000:00" and 
dosemu is not checking the sub-ranges that it is in turn is using for 
real devices.

This seems to be done in port_allow_io() in emu-i386/ports.c and we 
hacked it simply to read another file with a manually edited copy of 
/proc/ioports for this specific machine.

but that is not a good solution, as we want to use this operationally 
and supported by the package manager's dosemu updates, and expect that 
others are going to find the same problem as we die.

Is this a known problem, and is there any more elegant fix planned?

Regards,
Paul
-- 
Dr. Paul S. Crawford
Satellite Station
Dundee University
Small's Wynd, Dundee,
DD1 4HN, U.K.
Tel: +44 (0)1382 38 4687
Email: p...@sat.dundee.ac.uk
The University of Dundee is a Scottish Registered Charity, No. SC015096

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dosemu-devel mailing list
Dosemu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dosemu-devel

Reply via email to