[Coco] Howto for Altera DE1?
Steven Hirsch
snhirsch at gmail.com
Sun Jul 4 09:00:06 EDT 2010
On Mon, 28 Jun 2010, Aaron Wolfe wrote:
> On a side note, how big was the file you could not load with DriveWire
> 4? The only size limit *should* be available ram, but for very large
> images you may need to give the virtual machine more room with a
> command line argument to java:
>
> java -Xmx512m
>
> for example to grant 512MB ram to the process.
Aaron,
I finally got back to trying the problem disk image. Increasing the
memory setting as you suggested did not work. It fails with the following
when trying to mount a 128MB image found in one of the older Yahoo group
zip files (I'm not trying to boot the image, simply to access it):
hirsch at duo:/net/ips/dw4beta-2.01$ java -Xmx512m -jar DriveWire.jar
04 Jul 2010 08:56:52 INFO [dwserver-1 ] wireserver.DriveWireServer:
DriveWire Server 3.9.57 (06/05/2010) starting up
04 Jul 2010 08:56:52 INFO [dwserver-1 ] wireserver.DriveWireServer:
reading config from 'config.xml'
04 Jul 2010 08:56:52 DEBUG [dwserver-1 ] uration.ConfigurationUtils:
ConfigurationUtils.locate(): base is null, name is config.xml
04 Jul 2010 08:56:52 DEBUG [dwserver-1 ] uration.ConfigurationUtils:
Loading configuration from the path config.xml
04 Jul 2010 08:56:52 INFO [dwserver-1 ] wireserver.DriveWireServer:
Starting protocol handler #0: DriveWire4
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] lhandler.DWProtocolHandler:
handler #0: starting...
04 Jul 2010 08:56:52 DEBUG [dwUIserver-10 ] drivewireserver.DWUIThread:
run
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] ocolhandler.DWSerialDevice:
init /dev/ttyUSB0 for handler #0 (logging bytes: false)
04 Jul 2010 08:56:52 DEBUG [dskwriter-9 ] olhandler.DWDiskLazyWriter:
started, write interval is 15000
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] ocolhandler.DWSerialDevice:
attempting to open device '/dev/ttyUSB0'
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] ocolhandler.DWSerialDevice:
Note: RXTX Version mismatch here is not a problem...
04 Jul 2010 08:56:52 INFO [dwUIserver-10 ] drivewireserver.DWUIThread: UI
listening on port 6800
04 Jul 2010 08:56:52 DEBUG [dwUIserver-10 ] drivewireserver.DWUIThread: UI
waiting for connection
Experimental: JNI_OnLoad called.
WARNING: RXTX Version mismatch
Jar version = RXTX-2.2pre1
native lib Version = RXTX-2.1-7
RXTX Warning: Removing stale lock file. /var/lock/LCK..ttyUSB0
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] ocolhandler.DWSerialDevice:
setting port params to 460800 8N1
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] ocolhandler.DWSerialDevice:
succesfully opened /dev/ttyUSB0
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] otocolhandler.DWDiskDrives:
disk drives init for handler #0
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] otocolhandler.DWDiskDrives:
loading diskset 'dw4boot-6809l2-becker'
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] .apache.commons.vfs.VfsLog:
Using "/tmp/vfs_cache" as temporary files store.
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] fs.cache.SoftRefFilesCache:
putFile:
file:///net/ips/dw4beta-2.01/disks/nos96809l2v030209coco3_becker.dsk
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] r.dwprotocolhandler.DWDisk:
New DWDisk for
'/net/ips/dw4beta-2.01/disks/nos96809l2v030209coco3_becker.dsk'
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] r.dwprotocolhandler.DWDisk:
read 2221 sectors from
'file:///net/ips/dw4beta-2.01/disks/nos96809l2v030209coco3_becker.dsk'
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] otocolhandler.DWDiskDrives:
loaded disk
'file:///net/ips/dw4beta-2.01/disks/nos96809l2v030209coco3_becker.dsk' in
drive 0
04 Jul 2010 08:56:52 DEBUG [dwproto-0-8 ] fs.cache.SoftRefFilesCache:
putFile: file:///net/ips/dw4beta-2.01/disks/coco3fpga_old_os9.dsk
04 Jul 2010 08:56:52 INFO [dwproto-0-8 ] r.dwprotocolhandler.DWDisk:
New DWDisk for '/net/ips/dw4beta-2.01/disks/coco3fpga_old_os9.dsk'
Exception in thread "dwproto-0-8"
java.lang.ArrayIndexOutOfBoundsException: 222880
at
com.groupunix.drivewireserver.dwprotocolhandler.DWDisk.loadSectors(DWDisk.java:283)
at
com.groupunix.drivewireserver.dwprotocolhandler.DWDisk.<init>(DWDisk.java:44)
at
com.groupunix.drivewireserver.dwprotocolhandler.DWDiskDrives.LoadDiskFromFile(DWDiskDrives.java:145)
at
com.groupunix.drivewireserver.dwprotocolhandler.DWDiskDrives.LoadDiskSet(DWDiskDrives.java:73)
at
com.groupunix.drivewireserver.dwprotocolhandler.DWProtocolHandler.run(DWProtocolHandler.java:182)
at java.lang.Thread.run(Thread.java:619)
--
More information about the Coco
mailing list