Jump to content


Photo

Please Post Binaries Openxdk *samples*


  • Please log in to reply
5 replies to this topic

#1 swolchok

swolchok

    X-S Enthusiast

  • Members
  • 3 posts

Posted 04 January 2009 - 11:41 PM

I'm trying to set up OpenXDK on my Linux system using the MinGW32 cross compiler. I have tried both the Debian mingw32 package (gcc 4.0.x; doesn't compile CVS head or 0.07 because the old newlib doesn't work with gcc 4; I ported to newlib 1.14) and the canonical automatic installer (gcc 3.4.5; compiles out of the box) with both CVS Head and the 0.07 OpenXDK release. In both cases, the generated XBEs either hang at a black screen or reboot my Xbox. I've checked with PEdump to confirm that they're not linked against anything but xboxkrnl.exe, and I disassembled the text section of the generated XBE to confirm that the entry point looks like WinMainCRTStartup and the called XBoxStartup is in fact the sample code. It all looks good to me. What's especially troubling is that debugPrint.xbe hangs my Xbox, whereas if I insert "while(1){}" at the front of the code, causing the XBoxStartup to be generated as:

1000 push ebp
1001 mov ebp, esp
1003 jmp 0x00001003

it does NOT hang my Xbox, and reboots instead.

What I need from someone is the exe, xbe, and cxbe files generated when you build the sample applications, together with the versions of gcc and OpenXDK you used. Digging through the cxbe and the disassembly should help give me a clue as to what is going wrong here.

Thanks!

#2 openxdkman

openxdkman

    X-S Genius

  • Moderator
  • PipPipPipPip
  • 823 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 10 January 2009 - 09:15 AM

I don't know anything about Linux running on Xbox1 hardware.
Openxdk NEEDS standard xbox1 kernel to run.
Because it calls many kernel low level functions.
Maybe standard kernel is no longer here when Linux boots (I guess Linux has its own kernel)?

Openxdk is made to allow you to run .xbe from a dash. That way, free ram is all ram minus what dash consumes.

Also Linux is oriented multitask whereas xbox1 kernel is oriented monotask

What you can do is to create new libraries for Linux that copies a bit what openxdk code does at low level.

But be aware that handling context switching (at GPU level for example) for concurrent applications under Linux is a NIGHTMARE when documentation is kept secret by chipsets manufacturers.

Edited by openxdkman, 10 January 2009 - 09:24 AM.


#3 swolchok

swolchok

    X-S Enthusiast

  • Members
  • 3 posts

Posted 10 January 2009 - 09:21 AM

I guess my post wasn't clear -- my Xbox is not running Linux; it's softmodded and running UnrealX. My laptop, which I use to run the OpenXDK, is running Linux. The generated XBEs are not running properly (as outlined in my original post), so I'd like a set of known working XBEs compiled by someone with a working OpenXDK to compare against (using a disassembler). I am under the impression that it's legal for someone with a working OpenXDK to post these XBEs since they were generated with OpenXDK and the whole point of OpenXDK is to make that possible.

Edit #1: Oh, I missed the XBE ready to run note at the end of your post. That should help (although I'd really like very simple demos, without having to install pbKit and add more complexity)!

Edit #2: The pbkit stuff you link to doesn't include actual XBEs. Source isn't going to help me, since I think that the problem is my OpenXDK build not generating correct XBEs.

Edited by swolchok, 10 January 2009 - 09:27 AM.


#4 openxdkman

openxdkman

    X-S Genius

  • Moderator
  • PipPipPipPip
  • 823 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 10 January 2009 - 09:28 AM

I had to remove the links because I realized I saved space by removing .xbe from all archives.
I'm trying to look for a compiled xbe I could publish again at the moment.
But my current ISP is unstable, I can't touch my published archives anymore and I expect to lose all of them at the end of this month (January 2009). I have their copies on hard disk so I will be able to upload them once more and fix all the URL's to them in x-s posts I've made so far, but will take time.

I could publish in another space storage oggdec.zip that holds a .ogg music file and oggdec.xbe that should convert it back to a .wav
http://minilgos.com/oggdec.zip

Edited by openxdkman, 10 January 2009 - 09:36 AM.


#5 swolchok

swolchok

    X-S Enthusiast

  • Members
  • 3 posts

Posted 10 January 2009 - 09:47 AM

Thanks! Does this correspond to the oggdec source that you linked to before?

#6 openxdkman

openxdkman

    X-S Genius

  • Moderator
  • PipPipPipPip
  • 823 posts
  • Xbox Version:unk
  • 360 version:unknown

Posted 10 January 2009 - 10:23 AM

yes
(look at bottom of oggdec.c)

Edited by openxdkman, 10 January 2009 - 10:25 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users