Context
Windows 10 being what it is, I thought it was time for me to move to Linux.
The biggest thing that still kept me on Windows was the Katana devkit & SDK,
so I searched / am searching for a way to make them work under Linux... with some success already after a few hours
This is a work in progress, I'll keep updating this when I have new info.
DISCLAIMER:
I'm a total noob in Linux, so don't hesitate to correct me where needed / suggest better solutions.
Related Threads:
- How To Use the Katana SDK on Windows 7
- How to connect the HKT-01 devkit without pci slot
- Recommended (replacement) hard drive for katana dev unit
Current Status
18/11/2016:
Installing
Execution
Windows 10 being what it is, I thought it was time for me to move to Linux.
The biggest thing that still kept me on Windows was the Katana devkit & SDK,
so I searched / am searching for a way to make them work under Linux... with some success already after a few hours

This is a work in progress, I'll keep updating this when I have new info.
DISCLAIMER:
I'm a total noob in Linux, so don't hesitate to correct me where needed / suggest better solutions.
Related Threads:
- How To Use the Katana SDK on Windows 7
- How to connect the HKT-01 devkit without pci slot
- Recommended (replacement) hard drive for katana dev unit
Current Status
18/11/2016:
- DAcheck works for the DA part only.
- Does not work for the GD-M part. Error:
- Failed to get the drive map for the GDM Device.
- Please check the GDM Drive is set as a 'Removable Drive'.
- Codescape seems to work
- Tested with km2Demo\CheapBump & several other demos (dragonfly, Marble, ...) which seemed to run ok.
- CodeWarrior works partially
- Opening/Creating a project, compiling works
- sending a program to the devkit to debug/run seems to have some issues
- DBFlash does not work
- I expect a small patch to Wine should fix this, ie implement ASPI32_SC_GETSET_TIMEOUTS.
- (even a dummy implementation should work, since that worked on my wnaspi32.dll replacement for Windows 7)
- GDWorkshop does not work
- Several patches are needed to Wine to fix this, this is more complicated
- Linux - tested with Manjaro Linux 16.10 with xcfe that I updated on 11/11/2016
- install Wine, Wine-mono & wine-gecko. I tested with:
- Wine 1.9.22-1
- wine-mono 4.6.3-1
- wine-gecko 2.47-1
- launch the SCSI Generic (sg) module (since it is not loaded by default):
sudo modprobe sg
If you want to launch sg at boot, create a sg.conf file in /etc/modules-load.d/ with following content:
If you want to launch sg at boot, create a sg.conf file in /etc/modules-load.d/ with following content:
# Load SCSI generic driver (sg) at boot
sg
sg
- install lsscsi to easily find the sg* number of the Katana DA
lsscsi -g
gives sg10 on my pc:
[2:0:3:0] process CPL KATANA DA 4090 - /dev/sg10
[2:0:3:0] process CPL KATANA DA 4090 - /dev/sg10
- To avoid having to use sudo with wine, grant read & write access to the Katana Debug Adapter (DA)
ls -al /dev/sg10
shows that by default, you don't have read/write access to the DA:crw------- 1 root root 21, 10 Nov 11 18:33 sg10
sudo chmod 666 /dev/sg10
If you want this done automatically at boot, adding this command in file /etc/rc.local should do the trick (not the cleanest way I'm certain...):
If you want this done automatically at boot, adding this command in file /etc/rc.local should do the trick (not the cleanest way I'm certain...):
lsscsi -g |grep 'KATANA DA' |grep -E -o '/dev/sg\w+' |sudo xargs chmod 666
- unzip the SDK in a folder if needed
I tested with Katana SDK 11b only.
Installing
- launch setup.exe (of the Katana SDK) by right-clicking on the .exe file & choose "open with Wine Windows program loader"
- follow the instructions of the Setup Wizard:
- ignore the warning that says you need the latest wnaspi drivers
- you can select any folder where to install to, I chose to install to a folder in my /home directory
- ignore the reflash of the firmware
- if the screen remains black, you might have to click somewhere to make a dialog bog appear
- Launch the dos-prompt in WINE:
wineconsole cmd
- go to the /bin directory of CodeWarrior in the SDK:
/Utl/Dev/CodeWarrior/Bin/
- launch the batch file: regservers.bat
- after that, you can launch the CodeWarrior IDE directly from Wine
- right-click on the .exe file of the application & choose "open with Wine Windows program loader", or
- launch the application via a terminal:
- eg: wine DAcheck
- if you want to debug an application under Wine:
- winedbg DAcheck
(and press 'c' to continue once you get the winedbg prompt)