Jump to content

>
Viewing Profile

asiekierka

Member Since 26 Sep 2007
Offline Last Active Nov 17 2011 06:24 PM

Topics I've Started

DSTwux - Linux on the DSTwo

11 May 2011 - 06:45 PM

QUOTE
Dear SuperCard,

We are contacting you because we are huge fans of your products, and in particular the SuperCard DSTWO flashcart.

We'd love to port over the Linux Kernel, along with a few applications to it, but unfortunately we've found that we are severely limited by the current state of the DSTWO SDK.

Linux for the DSTWO would open up new possibilities: emulators, applications, office software, internet, programming - essentially anything anyone would need.
Given the opportunity to begin porting over, we would take it, but first we require additional information on the DSTWO and how it interfaces with the DS, because at present we cannot use the current development resources available to us to write the required drivers. Good documentation or access to the complete SDK sources would certainly help in making Linux work on the DSTWO flashcart.

As far as we know, many (if not all) users of the device would appreciate it.

Yours faithfully,
Adrian "asiekierka" Siekierka
Alex "Antoligy" Wilson
Luke "mercluke" Mercuri
Nick "nupanick" Lamicela


This is an email we sent to SuperCard a few days ago. Since then, there was no reply. That's why we're asking for a more direct way of contact. I know there are many Chinese users on here that may have some kind of contact with the team.

picocDS - C programming on the go! (DS Entry)

26 February 2011 - 09:02 AM

So I am working on a proper port of picoc to the DS as my Homebrew Bounty project. I only started working on it today, though.

picoc is a C interpreter with 99% of the ANSI C standard supported. That's right, it's an interpreter.

CURRENT PORT FEATURES:
- a quick port of the picoc interactive shell
- most C standard functions supported
- DS-specific functions added (with more coming!)

HOW TO USE:

Self-explanatory, really. Just input C code into the shell.

CODE
starting picoc v2.1
picoc> char inbuf[80];
picoc> gets(inbuf);
hello!
picoc> printf("I got: %s\n", inbuf);
I got: hello!


Sometimes in interactive mode you want to change a function or redeclare a variable. You can do this using the "delete" statement:

CODE
starting picoc v2.1
picoc> int fred = 1234;
picoc> printf("fred = %d\n", fred);
fred = 1234
picoc> delete fred;
picoc> char *fred = "hello";
picoc> printf("fred = '%s'\n", fred);
fred = 'hello'


You may want to load C files that you've prepared before. Let's assume you want to load test1.c, which is located in the main directory of your SD card. To do that, do this:

CODE
picoc> load "/test1.c";
picoc>


You can now use functions and code from that C file!

Works in both DS and DSi mode, and it's quite fast!

For more information please consult the README or the picoc wiki.

MILESTONES (bXX - build XX):
M1 (done at b02)
- Have it work (b01)
- Most standard C functions working (b02)

M2 (done at b04)
- Add some of the NDS-specific functions (began at b03, still in progress)
- Add loading C files (b04)

M3
Idk. Maybe integrate a text editor?

I fixed the links now
DOWNLOAD:
build 04 (20110326) - binary
build 04 (20110326) - source

asie's DSTwo software

17 January 2011 - 08:16 PM

Here I'll post my DSTwo apps.

First of all comes a benchmark for the DSTwo (a port of Linpack).
Notice that as the DSTwo uses software floating-point, floating-point operations WILL be slow. (I will try to port a benchmark which does not use floating-point later).

http://64pixels.org/linpacktwo.zip

Windows 2.03 on DS2x86 0.01

08 January 2011 - 05:35 PM

I've done it!

I was trying to do it for Pate (read: bug/testing reports)... didn't expect it worked.

Tutorial:
1. Get Windows 2.03 (or any 2.0x version).
2. Copy the files from all 9 disks to your SD card (all to one folder, that's the installer)
3. Use DS2x86 (if it fails, use DSx86 instead) to install: IBM CGA graphics adapter, no mouse/pointing device, US keyboard, no printer
4. Run Windows 2.03 from DS2x86 (remember to type "ver 3.30" earlier)
5. Enjoy!

MUCH MORE COMPLICATED MANUAL FOR 0.01:
Warning! Spoiler inside. 


EDIT: Installing a PS/2 mouse driver makes Windows 2.03 crash while booting (returns to console). So no mouse yet frown.gif
EDIT2: http://toastytech.com/guis/w1w2app.zip <- Windows 2.x apps biggrin.gif


DSTwo programming tips

02 January 2011 - 12:11 PM

Hello. This is a small list of tips for DSTwo programmers. Seeing as the SDK is not the best, you may need them.

1. You really should include ds2_malloc.h if you use malloc() and others.
Why? Because by default it'll use the GCC standard libraries, which have a broken malloc(). ds2_malloc.h adds the DSTwo-specific malloc functions.
A similar situation is to include fs_api.h if you use fopen()...

2. stat() does not exist.
Workaround: Use opendir()/closedir() and readdir_ex() to get the stat data.

3. For directory functions, the directory should be "fat:/", "fat:/dir0" or "fat:" and not "fat:/dir0/"

If you know any other tips, feel free to mention them here!