4 mb memory enough?

3 views
Skip to first unread message

Mechiel Lukkien

unread,
Mar 31, 2008, 3:20:28 PM3/31/08
to infer...@googlegroups.com
it seems you can put more memory in an nds than the default 4mb ram.
e.g. dslinux recommends this:

"You will probably want some kind of RAM expansion in Slot-2 otherwise
you'll run out of memory very quickly, so you will only be able to run
simple text only programs."

how low-memory is inferno really? so far i've only ran inferno on
machines where memory is abundant.

mechiel

Charles Forsyth

unread,
Mar 31, 2008, 3:46:10 PM3/31/08
to infer...@googlegroups.com
> how low-memory is inferno really? so far i've only ran inferno on
> machines where memory is abundant.

it could run charon under wm on 386dx/20 that had only 4mbytes of memory.

Charles Forsyth

unread,
Mar 31, 2008, 3:45:39 PM3/31/08
to infer...@googlegroups.com
strange. gmail idiotically believes stupid spamhaus and its pathetic
PBL rather than SPF,
according to the Permanent Failure gmail just sent me at home, but the
message appeared in the list anyway?

David Leimbach

unread,
Mar 31, 2008, 3:53:47 PM3/31/08
to infer...@googlegroups.com
The M3 reader I have comes with 32MB of RAM that DSLinux can use.  There are libraries out there to access this memory on Nintendo DS.  I pointed Salva to one of them.

However, this doesn't really answer your question :-)  Just thought I'd point out that you can get at more with hardware you probably already have for doing this sort of development/homebrew fun stuff.

Dave

Salva Peiró

unread,
Mar 31, 2008, 4:11:03 PM3/31/08
to infer...@googlegroups.com
On Mon, Mar 31, 2008 at 9:53 PM, David Leimbach <lei...@gmail.com> wrote:
> The M3 reader I have comes with 32MB of RAM that DSLinux can use. There are
> libraries out there to access this memory on Nintendo DS. I pointed Salva
> to one of them.
>
I've looked at them; i've added the links to the wiki,
the thing is that i wasn't able to find the libs from the first link,
Only thing close i could find is: http://www.pineight.com/ds/ (see memtest)

The nds RAM expansions memory are in fact memory ROM iirc,
and it seems that it can only be accessed using halfwords (16 bits).

Right now the RAM consumption comes from the devroot filesystem:
% i mk CONF=sds
% sed -n ' /DATA root[0-9]*len/ s/.* \$//p;' sds.root.s | awk '{sum
+= $1} END{print sum/1024, "kb"}'
415.002 kb
% i mk CONF=ds
% sed -n ' /DATA root[0-9]*len/ s/.* \$//p;' ds.root.s | awk '{sum +=
$1} END{print sum/1024, "kb"}'
1337.75 kb

This could be put in the ROM, but this should not be an issue once
devdldi.c is working.

> However, this doesn't really answer your question :-) Just thought I'd
> point out that you can get at more with hardware you probably already have
> for doing this sort of development/homebrew fun stuff.
>
> Dave
>
>
>
> On Mon, Mar 31, 2008 at 12:20 PM, Mechiel Lukkien <mec...@ueber.net> wrote:
> >
> > it seems you can put more memory in an nds than the default 4mb ram.
> > e.g. dslinux recommends this:
> >
> > "You will probably want some kind of RAM expansion in Slot-2 otherwise
> > you'll run out of memory very quickly, so you will only be able to run
> > simple text only programs."
> >
> > how low-memory is inferno really? so far i've only ran inferno on
> > machines where memory is abundant.
> >
> > mechiel
> >
> >
> >
>
>
>
> >
>

--
salva

Salva Peiró

unread,
Jun 25, 2008, 6:58:00 AM6/25/08
to infer...@googlegroups.com
On Mon, Mar 31, 2008 at 10:11 PM, Salva Peiró <saore...@gmail.com> wrote:
> The nds RAM expansions memory are in fact memory ROM iirc,
> and it seems that it can only be accessed using halfwords (16 bits).
>

more on this:
While trying caerwyn's sequencer.b and skini/midi player,
i was getting a lot of 'out of heap' errors. so i returned to this.

i was able to test one of the available memory expansions for the ds:
the Opera expansion pack [1], and seems that you can r/w 8/16/32 bits,
and it seems to be RAM memory as it's lost after poweroff/reset.

The memory is located at 0x09000000 and it's size is 12 Mb.

I've put some test code at archds.c:^/archconfinit which tries make this memory
usable by Inferno by filling conf.{base1 npages1}, but i haven't been
able to make it work
as the framebuffer/lcd becomes black and dark blue, so by default it
is disabled by setting:

conf.base1 = 0;
conb.npages1 =0;

any idea or suggestion on what i'm missing would be great

[1] http://en.wikipedia.org/wiki/Nintendo_DS_Browser
--
salva

Reply all
Reply to author
Forward
0 new messages