From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: stefan.eletzhofer@pruftechnik-rv.com Cc: ecos Subject: Re: [ECOS] discontinguous memory setup Date: Thu, 20 Sep 2001 07:37:00 -0000 Message-id: <3BA9FF1F.3DB9005A@redhat.com> References: <0109201211530N.00522@ptcm-rv-41> X-SW-Source: 2001-09/msg00501.html Stefan Eletzhofer wrote: > > Hello, > we use RedBoot do boot linux on our SA1110/1111 dev board, which is roughly > assabet+neponset. For now, we use RedBoot-Assabet config as a starting point. > RedBoot currently runs and boots linux correctly, uses flash etc (CF slot not > detected, tough). > > Now i have two Questions: > 1) > I hacked hal_platform_setup.h to provide correct memory timings & SDRAM > configuration, our board uses 2 banks of ram, each 16 MB: > 0xc000000 - 16Mb > 0xd000000 - 16Mb > > I setup SA11X0_DRAM_CONFIGURATION correctly, but somehow RedBoot seems to > change the settings from 0x72557255 to 0x72547255 (Bank 2 Enabled -> disabled). Look a few lines further up at: // Enable DRAM controller ldr r1,=SA11X0_DRAM_CONFIGURATION ldr r2,=0x72547255 str r2,[r1] That value should really be a macro, but that's the one you want to change. > I have not changed plf_mmap.h to reflect my memory settings, as i wonder how > RedBoot detects available memory (or is it a compile-time option?). > > Does RedBoot support such discontinguous memory setups? For the assabet target, the memory map is all hard-coded I believe. RedBoot has some trouble with discontiguous memory - it makes assumptions when checking validity of RAM addresses. You may want to disable CYGSEM_REDBOOT_VALIDATE_USER_RAM_LOADS > 2) > If we decide to use RedBoot, how do i add Support for our Board? I understand > that hacking assabet code is not the Right Thing To Do, is it? No reason why not unless you want to contribute it back. Starting from an existing port is exactly the right thing to do. Or you can just create a new target and package in ecos.db and copy your current "assabet" directory to something else. Jifl -- Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062 Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine