|
Rockbox mail archiveSubject: Re: another 8MB upgrade success storyRe: another 8MB upgrade success story
From: Blue Chip <cs_bluechip_at_webtribe.net>
Date: Wed, 19 Mar 2003 18:58:20 +0000 'scuse me butting in, I am only subscribing at the moment as I am =considering= an archos, but the Creative Jukebox 3 seems to be winning atm. Shame :( The big killer is no infra-red rcu and I understand that you cannot activate the line-in during playback - so no building one either :( Having written BIOSes for several years, memory detection is a basic procedure for us. Obviously on a PC you have SPD which makes life easy, but an alternative is to attempt a (read/)write/read(/write) cycle. #define UI8 unsigned char #define UI32 unsigned long UI32 AutoSizeRAM(void) { UI32 i; for (i=RAMbottom; i<MaxRam; i+=RAMSectorSize) { #if defined protect_memory UI8 t = bpeek(i); #endif UI8 x = 0xA5; bpoke(i, x); if (bpeek(i)!=x) { i--; break; } else { #if defined protect_memory bpoke(i, t); #endif } } #if defined return_top_address return(rt); #elsif defined return_ram_size_in_bytes return(rt-RAMBottom); #elsif defined return_ram_size_in_KB return((rt-RAMBottom)/1024); #elsif defined return_ram_size_in_MB return((rt-RAMBottom)/(1024*1024)); #else #error you have to define SOMETHING dude! } At 18:54 19/03/03 +0100, you wrote: >On Wed, 19 Mar 2003 idc-dragon_at_gmx.de wrote: > > > And I'm writing this to encourage 8MB support like RAM size autodetect > > within rockbox > >Autodetecting will make a lot of problems and require more code. I think we >can go with special 8MB-versions until someone proves me wrong. > > > or at least 8MB variants of the daily builds. > >I started this a bit today by adding a "Recorder Normal 8MB" build to the CVS >compile status table on the daily build page. > >As soon as Björn has committed his local changes to daily.t (hint hint), we >can add a link and make "bleeding edge" versions available. > >-- > Daniel Stenberg -- http://rockbox.haxx.se/ -- http://daniel.haxx.se/ Received on 2003-03-19 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |