Nowind, Mac and Linux

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |

By Haohmaru

Paladin (773)

Haohmaru's picture

18-11-2012, 19:04

Right. More compiling of the Nowind host application. This time on a iBook G4 running 10.5.8

* Install Xcode 3.1.4
* Install Macports 2.1.2
(see also http://guide.macports.org/#installing)

* Install dependencies

sudo port install cmake boost libusb libftdi

This takes several hours, be patient.

* get the latest nwhostapp source

svn checkout <a href="http://nowindlibraries.googlecode.com/svn/trunk/" title="http://nowindlibraries.googlecode.com/svn/trunk/">http://nowindlibraries.googlecode.com/svn/trunk/</a> nowindlibraries-read-only

(nowindlibraries-read-only can be named whatever you feel like btw)
EDIT: Yeah forum breaks this... remove all the href whatever crap...
Or just go to http://code.google.com/p/nowindlibraries/source/checkout <- there for the svn command you need.

* This step might be important as well (:

cd nowindlibraries-read-only

* Build makefiles

cmake -G 'Unix Makefiles'

* Compile the thing

make

* Testage

cd nwhostapp
./nwhostapp -i ~/Documents/MSX/DSK/demos/Alankomaat\ -\ Bandwagon\ \(2000\).dsk

Make sure your Nowind interface is seated in your MSX, USB cable is connected and so on.

* Yay

sudo cp nwhostapp /usr/local/bin/

So you won't have to do excessive directory nonsense every time you want to run it.

In case you're feeling lucky, here's one I made earlier:
http://members.home.nl/darknessgod/dump/msxnowind/nwhostapp
Note that it might not run on anything else than a PPC mac running OS X 10.5.8. YMMV. (:

By Sh0ck

Rookie (18)

Sh0ck's picture

11-12-2012, 21:02

Hi,
I've a question about compiling the nwhostapp. I can't get it working under Debian squeeze, lenny or etch. I also tried compiling it on my mac, but I get the same result every time. (btw my Nowind works fine when I use the precompiled binaries for windows). Every time i start nwhostapp (under root privileges) I got this result:

[nwhost] nowindusb_startup
Nowind Interface USB host application v4.2
Parse commandline parameters...
Inserting image disks/MSX20th.dsk into drive 0
NwhostService::setImage: disks/MSX20th.dsk
[nwhost] nowindusb_set_image 0, disks/MSX20th.dsk
[nwhost] nowindusb_add_drive 0
[nwhost] Opened file disks/MSX20th.dsk read/write.
Using LIBUSB + LIBFTDI
Found Nowind Interface using LIBFTDI!
Internal buffers purged!
[nwhost] prepareCommand: 147 (0x93)
[nwhost] MSX requests command at startup
[nwhost] prepareCommand: 147 (0x93)
[nwhost] MSX requests next command at startup
[nwhost] prepareCommand: 147 (0x93)
[nwhost] MSX requests next command at startup
[nwhost] No more startup commands.
[nwhost] prepareCommand: 146 (0x92)
[nwhost] MSX IDBYTE_2D contains: 0 (MSX1 detected)
[nwhost] DOS1 enabled as requested.
[nwhost] MSX reset
[nwhost] prepareCommand: 133 (0x85)
[nwhost] prepareCommand: 134 (0x86)
[nwhost] INIENV (romdrv nr: 255)
[nwhost] prepareCommand: 128 (0x80)
[nwhost] READ SPEED: 512 bytes in 4 ms -> 125.00 kB/s

It keeps displaying this last line and nothing happens on my msx (TurboR GT), got a blue screen and nothing happens.
Has anyone an idea what I'm doing wrong?

Best regards,
Johan.

By Sky_hawk

Champion (267)

Sky_hawk's picture

11-12-2012, 21:35

I find this remarkable:
MSX IDBYTE_2D contains: 0 (MSX1 detected)
If you machine is really a msx-turbo-R, this is pretty strange, you might try:

?peek (&H2d) in basic and see what that returns.

A reason why you might get this wrong identification is bad USB communication (timing problems).
When in doubt always test first with the nowind interface connected directly to your PC (without a USB hub, or intergrated hub from monitor or keyboard).

On turbo-R you can use the -a option to allow the turbo-r diskrom to initialize.
Also some software require you to hold '1' at boot for compatibiliy reasons on turbo-r.

Let me know how this turns out.

Greetings,

Jan

By Sh0ck

Rookie (18)

Sh0ck's picture

11-12-2012, 21:18

?peek(&H2d) returns 3 in basic. Holding 1 and the -a option don't help. I got the same result.

By Sky_hawk

Champion (267)

Sky_hawk's picture

11-12-2012, 21:54

The 'prepareCommand' logging seem to indicate that the sources are not the latest from the google-code repository, what are you compiling exactly?

Also did you update the firwmare using ./nwhostapp -f msxsrc/nowind.rom ?
It is very important to keep the host-binary and firmware in sync, we do not provide backwards compatibility for previous firmware versions so when using the latest code from the google code repository you should also make sure to use the firmware from there.

Greetings,

Jan

By Sh0ck

Rookie (18)

Sh0ck's picture

11-12-2012, 21:31

yes. I just tried this on my mac mini. And I also have a PC with standard USB port running debian. Same result.

By Manuel

Ascended (18256)

Manuel's picture

11-12-2012, 22:36

It works fine for me in Debian testing.

By Sh0ck

Rookie (18)

Sh0ck's picture

11-12-2012, 22:49

Hi Jan, it works! I had to flash the firmware first with the msxsrc/nowind.rom which is found in the svn repository. Thank you for the help!

Page 7/7
1 | 2 | 3 | 4 | 5 | 6 |