Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
129 user(s) are online (32 user(s) are browsing Forums)

Members: 0
Guests: 129

more...

Support us!

Headlines

Forum Index


Board index » All Posts (jaokim)




Re: New XTools - supports X5000
Just popping in
Just popping in


I’ve got a repo with some examples here: https://sourceforge.net/p/xena-examples/code/HEAD/tree/

It not very well documented but also not overly complex. If you have XTools and Gabrielle in path they should build out of the box.

- stack shows a simple stack kind of thingie. You can put data to Xena to some sort of stack/list, and you can get it back. Mostly to show how interfaces in .xc works.

- optimusprime starts three threads on Xena to calculate prime numbers using three different algorithms. You can then get back into on how long they took from the Amiga side. Should probably also do the same fully on the amiga side to get an idea of what speeds one can expect? An assignment for anyone else?

Oh and yeah — these only work on X1000 now. The localbus.c isn’t adapted to X5000 ways of doing the localbus. (Of course it’s different. It’s better they say, but none the less different.)

Go to top


Re: New XTools - supports X5000
Just popping in
Just popping in


@afxgroup
Quote:

know it is OT.. but cand you try to use clib4 to finish Java runtime for OS4?

Been wanting to resurrect my OpenJDK efforts. Might try and get that somewhere.

Quote:

And BTW, thanks for the tool. Do you think it can be used to accelerate SSL via xena?

Don’t really know, but I do want to get something running that tries to do some processor off-loading. Its indeed an interesting idea.

Go to top


Re: New XTools - supports X5000
Just popping in
Just popping in


@NinjaCyborg
Anything and nothing… I have the prototype board which I’ve been thinking of doing something with. But it’s all kind of gimmicky tbh — perhaps some buttons and leds.

With the localbus comms working you could possibly stream some audio to it and process it, without requiring any extra hardware.
I’ve thought about getting an Amiga parallell port, but I doubt I’ll ever get that running.

Go to top


New XTools - supports X5000
Just popping in
Just popping in


Currently in the os4depot upload queue, there's a new version of the Xena XTools available. These should now work on the X5000!

I've also updated Gabrielle (more on the backend side of things, so nothing fancy, but you need to upgrade). So download both and give it a go! They should be available here soon:
- os4depot: dev/misc/xtools
- os4depot: dev/misc/gabrielle

I might try and get some more examples up on my blog. I have an example that uses the localbus, but it only supports X1000 so far. But I think I should be able to get the X5000 comms working too.

Anyways, have fun!

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


@Maijestro
@FlynnTheAvatar

Thanks for testing!
I've got yet another on to try out:
https://jaokim.github.io/files/XTools-1.7h.lha

This now does it according to TRM, but also adds some PPCs eieio, and sync. Lets see what it'll show us.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


So wanting to see more of what's in that memory space I've added more reads.
But I'm soon out of ideas of why this isn't working in AmigaOS, but seems to be working in uboot land.

https://jaokim.github.io/files/XTools-1.7g.lha

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


Good thinking, thanks for testing! I checked, and I've got the same 53.3 version here.

And if I understand correctly, the xena resource doesn't really do much setup, but rather acts a semaphore. But... then again, I don't know -- myabe it really sets up some stuff?

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


Thanks for testing!

The uboot results seem promising. So I guess there must be something wrong with how it's done from AmigaOS.

I've created a new binary, 1.7f that uses ITimer->MicroDelay() instead of IDOS->Delay(), and I also added a small loop to test reads: https://jaokim.github.io/files/XTools-1.7f.lha

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


@MigthyMax
That looks great actually! Thanks!
It seems you have rev 2.2 (that 2210 value). The manual I have is for revision 2.1. I wonder if that is different from those who have tested the XTools?
Are there even different revision in circulation, or should all X5000 be the same?

I mean, it looks good from uboot. Don't quite understand why it looks different when done from AmigaOS.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


So.. wondering if anyone is willing to do some testing in uboot on an X5000?

The way the TRM says it should work is to write the register we're interested in to the index register at 0000.0000, and then read the value from data register e000.8000 (dot for easier read). This differs slightly from f.i. Tabor, where we write to 0x0000, but read from 0x8000 plus the register.

I'd like to see what we get in uboot.

md is memory display
mw is memory write

First I want to just see if anything is at 0x8000 without us having written anything to the index register.

The first line should give us 8 16 bit words from the data register. This might contain 0xdead, 0xbeef, and then it should be the hardware revision, and then I don't know.

The seconds test will write 1 to the index reg, and we would then see 0xbeef in the data register.


The third test will write 2 to the index reg, and we would then see the hardware rev in the data register.


The fourth test will write 4 to the index reg, and that should return a 1 if the localbus is alive.

The last line should dump

You can corroborate all this by checking the Cyrus TRM.

md.w e0008000 8

mw
.w e0000000 1
md
.w e0008000 8

mw
.w e0000000 2
md
.w e0008000 8

mw
.w e0000000 4
md
.w e0008000 8


You can take photos and e-mail me if can't copy from uboot. It's joakim.nordstrom at gmail.com.

Thanks!

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


A new version to test: https://jaokim.github.io/files/XTools-1.7e.lha
Maybe also do a reboot if this shows same or weirder results.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


@FlynnTheAvatar
Thanks for quick test!

They are indeed very strange. I don't know if there's some sort of weird caching issue... or have I done something totally weird. I'll see if i can come up with something new.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


I've created a new test-version of XTools version for X5000.
It now tests a few calls with differing delays. The longest delay is 10 ticks, but it also tests with 2 and 5. If anyone could
you must read the X5000 section in XTools.txt in the archive to know how to test it. Archive is here: https://jaokim.github.io/files/XTools-1.7d.lha Very beta. I'm not responsible if anything breaks your machine.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


@FlynnTheAvatar

Great, thanks for testing!

Seems I don't release the XTAG resource when doing Ctrl-C in that test. Regarding the reads and writes, I've seen similar result for another X5000 user, so it's good to see that it's the same for you.
I'm in contact with some other developers so I hope to get something working for X5000 soonish.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


I've added an example of some Xena localbus communications here:
https://sourceforge.net/p/xena-examples/code/HEAD/tree/

It should build out of the box and work on X1000. It's not too much code, and it just implements a simple circular stack so should be relatively self-explanatory. Might try and write something up on the blog explaining some more about it.

svn checkout https://svn.code.sf.net/p/xena-examples/code/ xena-examples
cd xena-examples/stack
make run


Oh, and yeah, this doesn’t require any extra hardware, it should just work on the plain X1000. It won’t work on X5000 even if you got it on to that chip since the localbus interface is way different.


Edited by jaokim on 2026/1/11 12:32:14
Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


Well, it’s usefulness I don’t know about… but honestly, I could say the same about Amiga in general . Anyways, Xena can do stuff on its own, and basically offload the cpu. The example I have on my blog (https://jaokim.github.io/amiga/2025/10/27/threading-water.html) is absolutely useless, but it shows that we can calculate a value on Xena and see it on the Amiga — no other peripherals involved.
So I think the uselessness of Xena has been greatly exaggerated, although its usefulness might not live up to the hype it got initially.
Lyle did get the localbus communication working, and I’ve managed to create some sort of data exchange scheme. Don’t know the exact speed, but it’s not as slow as jtag.

So, yes, Xena can do something without any extra add-ons — but I think it gets more fun when adding stuff.

Go to top


Re: Introducing Gabrielle - Xena's companion
Just popping in
Just popping in


So, in os4depot's queue there now exists a new version of Gabrielle, including a set of updated XTools.

I finally managed to get the PLL stuff working allowing the Xena chip to run in full speed, and getting some localbus communication working. I also managed to make it quite a bit faster when working with smaller programs.

I've also added -very experimental- X5000 support. It currently mostly tries to write and read to some registers to get the JTAG communcation running. Any help in testing this is highly appreciated! It currently doesn't work, but it does something, and I need to find out more. There are more instructions in the archive -- please read. It's not super straight forward, for reasons.
A previous X5000 version has been tested on an X5000 with some success. I've tested it on my micro A1 (it obvisouly doesn't do much there, but I tested it to make sure it didn't crash or caused major havoc. But I take no responsiblity!

Go to top


Re: Xena, dis-xs1 sources
Just popping in
Just popping in


And I’ve also tried archive.org, asking AI etc to no avail.

Go to top


Xena, dis-xs1 sources
Just popping in
Just popping in


Does anyone here have a copy or fork of the dis-xs1 sources from: http://git.infradead.org/users/segher/dis-xs1.git?

In my Xena adventures I’ve found that the XTools XRunXE doesn’t set the xs-1 chips PLL registers correct causing it to run too slow to handle any localbus communication. I’ve got a copy of a later XRunXE v 1.3 from a 2013 binary that did some stuff to the PLL register that made the localbus example work, but I don’t have the sources. I got it from Lyle many years ago, but he’s lost the sources.
The sources in the XTools drawer on my x1000 are older than 2013, so doesn’t have the PLL things.

I’ve asked around on xcore.com and contacted the original author but as of yet to no avail. Hoping someone here is a source code hoarder…

Go to top


Re: Help on Cubic IDE/ GoldED
Just popping in
Just popping in


Pressing F2 usually allows you to edit strings. Or triple click?

Go to top



TopTop
(1) 2 3 4 ... 10 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project