public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
@ 2005-09-16 19:32 ??????????? ????? ???????????
  2005-09-28  9:22 ` Dave
  0 siblings, 1 reply; 14+ messages in thread
From: ??????????? ????? ??????????? @ 2005-09-16 19:32 UTC (permalink / raw)
  To: Dave; +Cc: ecos-discuss

OK. Take a look at:

packages\hal\arm\arch\current\src\redboot_linux_exec.c

There are directly used "CYGMEM_REGION_ram_SIZE" define:

#ifndef CYGHWR_REDBOOT_LINUX_ATAG_MEM
#define CYGHWR_REDBOOT_LINUX_ATAG_MEM(_p_)                                                      \
    CYG_MACRO_START                                                                             \
    /* Next ATAG_MEM. */                                                                        \
    _p_->hdr.size = (sizeof(struct tag_mem32) + sizeof(struct tag_header))/sizeof(long);        \
    _p_->hdr.tag = ATAG_MEM;                                                                    \
    /* Round up so there's only one bit set in the memory size.                                 \
     * Don't double it if it's already a power of two, though.                                  \
     */                                                                                         \
    _p_->u.mem.size  = 1<<hal_msbindex(CYGMEM_REGION_ram_SIZE);                                 \
    if (_p_->u.mem.size < CYGMEM_REGION_ram_SIZE)                                               \
	    _p_->u.mem.size <<= 1;                                                              \
    _p_->u.mem.start = CYGARC_PHYSICAL_ADDRESS(CYGMEM_REGION_ram);                              \
    CYG_MACRO_END
#endif


And in do exec:

    // Fill in the details of the memory layout
    CYGHWR_REDBOOT_LINUX_ATAG_MEM(params);

So you can diag_printf  "CYGMEM_REGION_ram_SIZE" before call to this macro and see
If there are right value. If not  - look for what is wrong. 












 

> -----Original Message-----
> From: Dave [mailto:dave@cc0.net] 
> Sent: Friday, September 16, 2005 10:57 AM
> To: ??????????? ????? ???????????
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> 
> Probably so...
> 
> 
> The only RB differences between the 64MB that does work and 
> the 32MB that does not work is the following:
> 
> 
> ixdp425.h:
> 
> #define SDRAM_SIZE                         0x02000000
> #define IXP425_SDRAM_CONFIG_INIT  (SDRAM_CONFIG_CAS_3 | 
> SDRAM_CONFIG_2x8Mx16)
> 
> 
> mlt_arm_xscale_ixdp425_ram.h:
> 
> #define CYGMEM_REGION_ram_SIZE (0x02000000)
> #define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t) 
> CYG_LABEL_NAME 
> (__heap1))
> 
> 
> 
> mlt_arm_xscale_ixdp425_rom.h:
> 
> #define CYGMEM_REGION_ram_SIZE (0x02000000)
> #define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t) 
> CYG_LABEL_NAME 
> (__heap1))
> 
> 
> mlt_arm_xscale_ixdp425_rom.ldi:
> 
> ram : ORIGIN = 0, LENGTH = 0x02000000
> 
> 
> 
> 
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> To: "Dave" <dave@cc0.net>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Thursday, September 15, 2005 11:34 PM
> Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> 
> You're did something wrong. It works. We have such 
> configuration as you.
> 
> > -----Original Message-----
> > From: Dave [mailto:dave@cc0.net]
> > Sent: Thursday, September 15, 2005 7:02 PM
> > To: ??????????? ????? ???????????
> > Cc: ecos-discuss@sources.redhat.com
> > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> >
> > It did not resolve the issue. I changed it to reflect 32MB
> > however ATAGs are still not passed to kernel.
> >
> >
> >
> >
> >
> >
> >
> > Thanks!
> >
> > -Dave
> >
> >
> >
> >
> > ----- Original Message ----- 
> > From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> > To: "Dave" <dave@cc0.net>
> > Cc: <ecos-discuss@sources.redhat.com>
> > Sent: Thursday, September 15, 2005 12:43 AM
> > Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> > For all. (since RAM is needed for any configuration)
> >
> > > -----Original Message-----
> > > From: Dave [mailto:dave@cc0.net]
> > > Sent: Wednesday, September 14, 2005 7:24 PM
> > > To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> > > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > >
> > >
> > > Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > > -Dave
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: ??????????? ????? ???????????
> > > Sent: Wednesday, September 14, 2005 4:46 PM
> > > To: 'Dave'
> > > Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > > packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> > > m_xscale_ixdp425_ram.h
> > >
> > > #define CYGMEM_REGION_ram (0)
> > > #define CYGMEM_REGION_ram_SIZE (0x10000000)
> > >
> > > > -----Original Message-----
> > > > From: ecos-discuss-owner@ecos.sourceware.org
> > > > [mailto:ecos-discuss-owner@ecos.sourceware.org] On 
> Behalf Of Dave
> > > > Sent: Wednesday, September 14, 2005 9:20 AM
> > > > To: ecos-discuss@sources.redhat.com
> > > > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > > >
> > > > Hello all,
> > > >
> > > > I am working on a custom IXP425 board which is wired
> > identical to an
> > > > IXDP425 except using different flash and SDRAM sizes/configs.
> > > >
> > > > I am running into an interesting problem regarding 
> passing of ATAG
> > > > values from RedBoot to a Linux kernel (2.4.27) and was
> > > hoping someone
> > > > might have some insight and pointers on where to look. I
> > > have reviewed
> > > > the several similar messages on the ecos-discuss mailing list
> > > > regarding SDRAM config on IXP boards but nothing that
> > > helped with my
> > > > issue. I have also been googling a bit to no avail.
> > > >
> > > > One of our boards is a 64MB SDRAM board and when using
> > RedBoot 2.01
> > > > and setting SDRAM size appropriately and
> > SDRAM_CONFIG_2x16Mx16, etc
> > > > all seems well. ATAGs are passed correctly from RB to the
> > > kernel, in
> > > > particular ATAG_CMDLINE gets passed correctly via exec -c
> > > ""...and the
> > > > kernel picks it up just fine.
> > > >
> > > > A new board is a 32MB SDRAM board and using same RB 2.01 except
> > > > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to
> > > reflect the 32MB
> > > > layout. This board boots fine and most all seems ok however
> > > ATAGs are
> > > > not being passed down to the kernel. Specifically
> > > ATAG_CMDLINE is not
> > > > being recognized and I would presume the others are not as well.
> > > >
> > > > I suspect I am missing something that needs to be modified
> > > in RB with
> > > > regard to the SDRAM changes between boards however I 
> cannot locate
> > > > anything that I may be missing. I have read that
> > > hal_platform_extras.
> > > > needs to be fixed up for SDRAM changes however it has
> > > apparently been
> > > > replaced with hal_platform_setup.h and it seems it uses 
> all macros
> > > > from ixdp425.h thus leading me to believe no change is needed.
> > > >
> > > > Anyone have any ideas on what I may be missing?
> > > >
> > > >
> > > > Thanks!
> > > >
> > > > -Dave
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Before posting, please read the FAQ:
> > > > http://ecos.sourceware.org/fom/ecos
> > > > and search the list archive:
> > > > http://ecos.sourceware.org/ml/ecos-discuss
> > > >
> > > >
> > >
> > > --
> > > Before posting, please read the FAQ:
> > > http://ecos.sourceware.org/fom/ecos
> > > and search the list archive:
> > > http://ecos.sourceware.org/ml/ecos-discuss
> > >
> > >
> > >
> >
> > -- 
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
> >
> 
> -- 
> Before posting, please read the FAQ: 
> http://ecos.sourceware.org/fom/ecos
> and search the list archive: 
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-16 19:32 [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS ??????????? ????? ???????????
@ 2005-09-28  9:22 ` Dave
  2005-09-28 18:24   ` Jon Ringle
  0 siblings, 1 reply; 14+ messages in thread
From: Dave @ 2005-09-28  9:22 UTC (permalink / raw)
  To: ??????????? ????? ???????????; +Cc: ecos-discuss


I just dug into this today...I put a dump in redboot_linux_exec.c after 
filling up the ATAGs and before executing kernel and looked at memory at 
0x100. It looks perfect to me...ATAGs present are ATAG_CORE, ATAG_MEM and 
ATAG_CMDLINE.

Just so I am sure I am not missing anything to modify...my understanding of 
what needs to be changed to accomodate ONLY an SDRAM configuration and size 
change from a 256MB IXDP425 to a 32MB IXDP425 is:


ixdp425/current/include/ixdp425.h

#define SDRAM_SIZE                         0x02000000
#define IXP425_SDRAM_CONFIG_INIT  (SDRAM_CONFIG_CAS_3 | 
SDRAM_CONFIG_2x16Mx16)


ixdp425/current/include/pkgconf/mlt_arm_xscale_ixdp425_rom.ldi

ram : ORIGIN = 0, LENGTH = 0x02000000



ixdp425/current/include/pkgconf/mlt_arm_xscale_ixdp425_rom.h

#define CYGMEM_REGION_ram_SIZE (0x02000000)
#define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t) CYG_LABEL_NAME 
(__heap1))



ixdp425/current/include/pkgconf/mlt_arm_xscale_ixdp425_rom.h

region ram 0 02000000 0 !


And just to be sure...I took previous advise and modified the ram mlt files 
as well.


Is there something I am missing that needs to be modified?



Thanks!

-Dave






----- Original Message ----- 
From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
To: "Dave" <dave@cc0.net>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Friday, September 16, 2005 2:26 AM
Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS


OK. Take a look at:

packages\hal\arm\arch\current\src\redboot_linux_exec.c

There are directly used "CYGMEM_REGION_ram_SIZE" define:

#ifndef CYGHWR_REDBOOT_LINUX_ATAG_MEM
#define CYGHWR_REDBOOT_LINUX_ATAG_MEM(_p_) 
\
    CYG_MACRO_START 
\
    /* Next ATAG_MEM. */ 
\
    _p_->hdr.size = (sizeof(struct tag_mem32) + sizeof(struct 
tag_header))/sizeof(long);        \
    _p_->hdr.tag = ATAG_MEM; 
\
    /* Round up so there's only one bit set in the memory size. 
\
     * Don't double it if it's already a power of two, though. 
\
     */ 
\
    _p_->u.mem.size  = 1<<hal_msbindex(CYGMEM_REGION_ram_SIZE); 
\
    if (_p_->u.mem.size < CYGMEM_REGION_ram_SIZE) 
\
    _p_->u.mem.size <<= 1; 
\
    _p_->u.mem.start = CYGARC_PHYSICAL_ADDRESS(CYGMEM_REGION_ram); 
\
    CYG_MACRO_END
#endif


And in do exec:

    // Fill in the details of the memory layout
    CYGHWR_REDBOOT_LINUX_ATAG_MEM(params);

So you can diag_printf  "CYGMEM_REGION_ram_SIZE" before call to this macro 
and see
If there are right value. If not  - look for what is wrong.














> -----Original Message-----
> From: Dave [mailto:dave@cc0.net]
> Sent: Friday, September 16, 2005 10:57 AM
> To: ??????????? ????? ???????????
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
>
> Probably so...
>
>
> The only RB differences between the 64MB that does work and
> the 32MB that does not work is the following:
>
>
> ixdp425.h:
>
> #define SDRAM_SIZE                         0x02000000
> #define IXP425_SDRAM_CONFIG_INIT  (SDRAM_CONFIG_CAS_3 |
> SDRAM_CONFIG_2x8Mx16)
>
>
> mlt_arm_xscale_ixdp425_ram.h:
>
> #define CYGMEM_REGION_ram_SIZE (0x02000000)
> #define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t)
> CYG_LABEL_NAME
> (__heap1))
>
>
>
> mlt_arm_xscale_ixdp425_rom.h:
>
> #define CYGMEM_REGION_ram_SIZE (0x02000000)
> #define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t)
> CYG_LABEL_NAME
> (__heap1))
>
>
> mlt_arm_xscale_ixdp425_rom.ldi:
>
> ram : ORIGIN = 0, LENGTH = 0x02000000
>
>
>
>
>
>
>
>
> ----- Original Message ----- 
> From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> To: "Dave" <dave@cc0.net>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Thursday, September 15, 2005 11:34 PM
> Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
>
> You're did something wrong. It works. We have such
> configuration as you.
>
> > -----Original Message-----
> > From: Dave [mailto:dave@cc0.net]
> > Sent: Thursday, September 15, 2005 7:02 PM
> > To: ??????????? ????? ???????????
> > Cc: ecos-discuss@sources.redhat.com
> > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> >
> > It did not resolve the issue. I changed it to reflect 32MB
> > however ATAGs are still not passed to kernel.
> >
> >
> >
> >
> >
> >
> >
> > Thanks!
> >
> > -Dave
> >
> >
> >
> >
> > ----- Original Message ----- 
> > From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> > To: "Dave" <dave@cc0.net>
> > Cc: <ecos-discuss@sources.redhat.com>
> > Sent: Thursday, September 15, 2005 12:43 AM
> > Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> > For all. (since RAM is needed for any configuration)
> >
> > > -----Original Message-----
> > > From: Dave [mailto:dave@cc0.net]
> > > Sent: Wednesday, September 14, 2005 7:24 PM
> > > To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> > > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > >
> > >
> > > Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > > -Dave
> > >
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: ??????????? ????? ???????????
> > > Sent: Wednesday, September 14, 2005 4:46 PM
> > > To: 'Dave'
> > > Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > > packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> > > m_xscale_ixdp425_ram.h
> > >
> > > #define CYGMEM_REGION_ram (0)
> > > #define CYGMEM_REGION_ram_SIZE (0x10000000)
> > >
> > > > -----Original Message-----
> > > > From: ecos-discuss-owner@ecos.sourceware.org
> > > > [mailto:ecos-discuss-owner@ecos.sourceware.org] On
> Behalf Of Dave
> > > > Sent: Wednesday, September 14, 2005 9:20 AM
> > > > To: ecos-discuss@sources.redhat.com
> > > > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > > >
> > > > Hello all,
> > > >
> > > > I am working on a custom IXP425 board which is wired
> > identical to an
> > > > IXDP425 except using different flash and SDRAM sizes/configs.
> > > >
> > > > I am running into an interesting problem regarding
> passing of ATAG
> > > > values from RedBoot to a Linux kernel (2.4.27) and was
> > > hoping someone
> > > > might have some insight and pointers on where to look. I
> > > have reviewed
> > > > the several similar messages on the ecos-discuss mailing list
> > > > regarding SDRAM config on IXP boards but nothing that
> > > helped with my
> > > > issue. I have also been googling a bit to no avail.
> > > >
> > > > One of our boards is a 64MB SDRAM board and when using
> > RedBoot 2.01
> > > > and setting SDRAM size appropriately and
> > SDRAM_CONFIG_2x16Mx16, etc
> > > > all seems well. ATAGs are passed correctly from RB to the
> > > kernel, in
> > > > particular ATAG_CMDLINE gets passed correctly via exec -c
> > > ""...and the
> > > > kernel picks it up just fine.
> > > >
> > > > A new board is a 32MB SDRAM board and using same RB 2.01 except
> > > > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to
> > > reflect the 32MB
> > > > layout. This board boots fine and most all seems ok however
> > > ATAGs are
> > > > not being passed down to the kernel. Specifically
> > > ATAG_CMDLINE is not
> > > > being recognized and I would presume the others are not as well.
> > > >
> > > > I suspect I am missing something that needs to be modified
> > > in RB with
> > > > regard to the SDRAM changes between boards however I
> cannot locate
> > > > anything that I may be missing. I have read that
> > > hal_platform_extras.
> > > > needs to be fixed up for SDRAM changes however it has
> > > apparently been
> > > > replaced with hal_platform_setup.h and it seems it uses
> all macros
> > > > from ixdp425.h thus leading me to believe no change is needed.
> > > >
> > > > Anyone have any ideas on what I may be missing?
> > > >
> > > >
> > > > Thanks!
> > > >
> > > > -Dave
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Before posting, please read the FAQ:
> > > > http://ecos.sourceware.org/fom/ecos
> > > > and search the list archive:
> > > > http://ecos.sourceware.org/ml/ecos-discuss
> > > >
> > > >
> > >
> > > --
> > > Before posting, please read the FAQ:
> > > http://ecos.sourceware.org/fom/ecos
> > > and search the list archive:
> > > http://ecos.sourceware.org/ml/ecos-discuss
> > >
> > >
> > >
> >
> > -- 
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
> >
>
> -- 
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-28  9:22 ` Dave
@ 2005-09-28 18:24   ` Jon Ringle
  2005-09-28 18:31     ` Dave
  2005-10-05 18:27     ` Dave
  0 siblings, 2 replies; 14+ messages in thread
From: Jon Ringle @ 2005-09-28 18:24 UTC (permalink / raw)
  To: ecos-discuss

On Wednesday 28 September 2005 02:54 am, Dave wrote:
> I just dug into this today...I put a dump in redboot_linux_exec.c after
> filling up the ATAGs and before executing kernel and looked at memory at
> 0x100. It looks perfect to me...ATAGs present are ATAG_CORE, ATAG_MEM and
> ATAG_CMDLINE.

Dump the value of 
CYGARC_PHYSICAL_ADDRESS(CYGHWR_REDBOOT_ARM_LINUX_TAGS_ADDRESS)

This is the value that should be in your linux's machine_desc.boot_params

Jon

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-28 18:24   ` Jon Ringle
@ 2005-09-28 18:31     ` Dave
  2005-10-05 18:27     ` Dave
  1 sibling, 0 replies; 14+ messages in thread
From: Dave @ 2005-09-28 18:31 UTC (permalink / raw)
  To: ml.ecos, ecos-discuss


CYGARC_PHYSICAL_ADDRESS(CYGHWR_REDBOOT_ARM_LINUX_TAGS_ADDRESS)

0x100



arch/arm/mach-ixp425/arch.c

#ifdef CONFIG_ARCH_IXDP425
...
BOOT_PARAMS(0x0100)




Is there another location I should be looking in the kernel for 
machine_desc.boot_params?



Thanks!

-Dave





> On Wednesday 28 September 2005 02:54 am, Dave wrote:
>> I just dug into this today...I put a dump in redboot_linux_exec.c after
>> filling up the ATAGs and before executing kernel and looked at memory at
>> 0x100. It looks perfect to me...ATAGs present are ATAG_CORE, ATAG_MEM and
>> ATAG_CMDLINE.
>
> Dump the value of
> CYGARC_PHYSICAL_ADDRESS(CYGHWR_REDBOOT_ARM_LINUX_TAGS_ADDRESS)
>
> This is the value that should be in your linux's machine_desc.boot_params
>
> Jon
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-28 18:24   ` Jon Ringle
  2005-09-28 18:31     ` Dave
@ 2005-10-05 18:27     ` Dave
  2005-10-06  6:36       ` Peter Korsgaard
  1 sibling, 1 reply; 14+ messages in thread
From: Dave @ 2005-10-05 18:27 UTC (permalink / raw)
  To: ecos-discuss

Hello all,

Following up on the issue I originally reported. I dug into the issue more 
and I just cannot see anything that I am missing. The memory looks correct 
between a working 64mb configuration and a 32mb configuration...however 
ATAGS are still not usable on the 32mb configuration.

The issue as originally reported is that I have a 64mb IXDP425 board with 
RedBoot 2.01 which works fine with a 2.4.27 kernel. ATAGS work correctly, I 
can override the kernel command line just fine via exec -c "". I have a 32mb 
IXDP425 board with the same RedBoot 2.01 except that changes have been made 
to reflect the SDRAM memory layout and size. Also adjusted are the mlt files 
in pkgconf/. The ATAGS on the 32mb board look fine in memory after calling 
exec -c "" however the 2.4.27 kernel thinks they are somewhere else than on 
the 64mb board. The kernel being used is identical for both the 32mb and 
64mb boards.

I placed a memory dump in redboot after exec but before kernel exec and the 
ATAGS can be seen just fine on both 32 and 64. I also placed some printks in 
the kernel to show ATAG stuff and it is different between the 64/32.

The changes made to the RedBoot source as well as the memory dump and kernel 
printks I placed at:

http://ixp.cc0.net/

To save forwarding all this info to the mailing list.

Anyone have an idea what I am missing that needs to be changed?


Thanks!

-Dave



> On Wednesday 28 September 2005 02:54 am, Dave wrote:
>> I just dug into this today...I put a dump in redboot_linux_exec.c after
>> filling up the ATAGs and before executing kernel and looked at memory at
>> 0x100. It looks perfect to me...ATAGs present are ATAG_CORE, ATAG_MEM and
>> ATAG_CMDLINE.
>
> Dump the value of
> CYGARC_PHYSICAL_ADDRESS(CYGHWR_REDBOOT_ARM_LINUX_TAGS_ADDRESS)
>
> This is the value that should be in your linux's machine_desc.boot_params
>
> Jon
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-10-05 18:27     ` Dave
@ 2005-10-06  6:36       ` Peter Korsgaard
  2005-10-06 14:51         ` Dave
  0 siblings, 1 reply; 14+ messages in thread
From: Peter Korsgaard @ 2005-10-06  6:36 UTC (permalink / raw)
  To: Dave; +Cc: ecos-discuss

>>>>> "Dave" == Dave  <dave@cc0.net> writes:

 Dave> Anyone have an idea what I am missing that needs to be changed?

Your cmdline tells your kernel that you have 64MB on the 32MB
board. The mem= line shouldn't be needed as the kernel gets it from
ATAG_MEM (if it works atleast).

Could you dump the mdesc->param_offset memory in the kernel to see if
it's the same as in RedBoot?

-- 
Bye, Peter Korsgaard

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-10-06  6:36       ` Peter Korsgaard
@ 2005-10-06 14:51         ` Dave
  2005-10-09 20:00           ` Peter Korsgaard
  0 siblings, 1 reply; 14+ messages in thread
From: Dave @ 2005-10-06 14:51 UTC (permalink / raw)
  To: Peter Korsgaard; +Cc: ecos-discuss


The offset is in the dumps at http://ixp.cc0.net
It is during the kernel boot there are a bunch of printk's and param_offset 
is one of them. It is at 0x100 which is same as RedBoot.

I know that the command line is offering a different mem value..that is what 
I am using to test if ATAGs are working or not. I should see the command 
line in the kernel if they are working.



-Dave


>>>>>> "Dave" == Dave  <dave@cc0.net> writes:
>
> Dave> Anyone have an idea what I am missing that needs to be changed?
>
> Your cmdline tells your kernel that you have 64MB on the 32MB
> board. The mem= line shouldn't be needed as the kernel gets it from
> ATAG_MEM (if it works atleast).
>
> Could you dump the mdesc->param_offset memory in the kernel to see if
> it's the same as in RedBoot?
>
> -- 
> Bye, Peter Korsgaard
>
> -- 
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
> 


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-10-06 14:51         ` Dave
@ 2005-10-09 20:00           ` Peter Korsgaard
  0 siblings, 0 replies; 14+ messages in thread
From: Peter Korsgaard @ 2005-10-09 20:00 UTC (permalink / raw)
  To: Dave; +Cc: ecos-discuss

>>>>> "Dave" == Dave  <dave@cc0.net> writes:

 Dave> The offset is in the dumps at http://ixp.cc0.net It is during
 Dave> the kernel boot there are a bunch of printk's and param_offset
 Dave> is one of them. It is at 0x100 which is same as RedBoot.

Yes, but could you dump the memory around 0x100 in the kernel as well?
It should be the same as the dump in RedBoot, but apparently it isn't.

-- 
Bye, Peter Korsgaard

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-16  6:54 [ECOS] FW: " ??????????? ????? ???????????
@ 2005-09-16 19:07 ` Dave
  0 siblings, 0 replies; 14+ messages in thread
From: Dave @ 2005-09-16 19:07 UTC (permalink / raw)
  To: ??????????? ????? ???????????; +Cc: ecos-discuss


Probably so...


The only RB differences between the 64MB that does work and the 32MB that 
does not work is the following:


ixdp425.h:

#define SDRAM_SIZE                         0x02000000
#define IXP425_SDRAM_CONFIG_INIT  (SDRAM_CONFIG_CAS_3 | 
SDRAM_CONFIG_2x8Mx16)


mlt_arm_xscale_ixdp425_ram.h:

#define CYGMEM_REGION_ram_SIZE (0x02000000)
#define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t) CYG_LABEL_NAME 
(__heap1))



mlt_arm_xscale_ixdp425_rom.h:

#define CYGMEM_REGION_ram_SIZE (0x02000000)
#define CYGMEM_SECTION_heap1_SIZE (0x02000000 - (size_t) CYG_LABEL_NAME 
(__heap1))


mlt_arm_xscale_ixdp425_rom.ldi:

ram : ORIGIN = 0, LENGTH = 0x02000000








----- Original Message ----- 
From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
To: "Dave" <dave@cc0.net>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Thursday, September 15, 2005 11:34 PM
Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS


You're did something wrong. It works. We have such configuration as you.

> -----Original Message-----
> From: Dave [mailto:dave@cc0.net]
> Sent: Thursday, September 15, 2005 7:02 PM
> To: ??????????? ????? ???????????
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
>
>
> It did not resolve the issue. I changed it to reflect 32MB
> however ATAGs are still not passed to kernel.
>
>
>
>
>
>
>
> Thanks!
>
> -Dave
>
>
>
>
> ----- Original Message ----- 
> From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> To: "Dave" <dave@cc0.net>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Thursday, September 15, 2005 12:43 AM
> Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
>
> For all. (since RAM is needed for any configuration)
>
> > -----Original Message-----
> > From: Dave [mailto:dave@cc0.net]
> > Sent: Wednesday, September 14, 2005 7:24 PM
> > To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> >
> > Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
> >
> >
> >
> > Thanks!
> >
> >
> > -Dave
> >
> >
> >
> >
> > -----Original Message-----
> > From: ??????????? ????? ???????????
> > Sent: Wednesday, September 14, 2005 4:46 PM
> > To: 'Dave'
> > Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> > packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> > m_xscale_ixdp425_ram.h
> >
> > #define CYGMEM_REGION_ram (0)
> > #define CYGMEM_REGION_ram_SIZE (0x10000000)
> >
> > > -----Original Message-----
> > > From: ecos-discuss-owner@ecos.sourceware.org
> > > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> > > Sent: Wednesday, September 14, 2005 9:20 AM
> > > To: ecos-discuss@sources.redhat.com
> > > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > > Hello all,
> > >
> > > I am working on a custom IXP425 board which is wired
> identical to an
> > > IXDP425 except using different flash and SDRAM sizes/configs.
> > >
> > > I am running into an interesting problem regarding passing of ATAG
> > > values from RedBoot to a Linux kernel (2.4.27) and was
> > hoping someone
> > > might have some insight and pointers on where to look. I
> > have reviewed
> > > the several similar messages on the ecos-discuss mailing list
> > > regarding SDRAM config on IXP boards but nothing that
> > helped with my
> > > issue. I have also been googling a bit to no avail.
> > >
> > > One of our boards is a 64MB SDRAM board and when using
> RedBoot 2.01
> > > and setting SDRAM size appropriately and
> SDRAM_CONFIG_2x16Mx16, etc
> > > all seems well. ATAGs are passed correctly from RB to the
> > kernel, in
> > > particular ATAG_CMDLINE gets passed correctly via exec -c
> > ""...and the
> > > kernel picks it up just fine.
> > >
> > > A new board is a 32MB SDRAM board and using same RB 2.01 except
> > > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to
> > reflect the 32MB
> > > layout. This board boots fine and most all seems ok however
> > ATAGs are
> > > not being passed down to the kernel. Specifically
> > ATAG_CMDLINE is not
> > > being recognized and I would presume the others are not as well.
> > >
> > > I suspect I am missing something that needs to be modified
> > in RB with
> > > regard to the SDRAM changes between boards however I cannot locate
> > > anything that I may be missing. I have read that
> > hal_platform_extras.
> > > needs to be fixed up for SDRAM changes however it has
> > apparently been
> > > replaced with hal_platform_setup.h and it seems it uses all macros
> > > from ixdp425.h thus leading me to believe no change is needed.
> > >
> > > Anyone have any ideas on what I may be missing?
> > >
> > >
> > > Thanks!
> > >
> > > -Dave
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Before posting, please read the FAQ:
> > > http://ecos.sourceware.org/fom/ecos
> > > and search the list archive:
> > > http://ecos.sourceware.org/ml/ecos-discuss
> > >
> > >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
> >
>
> -- 
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
@ 2005-09-16  6:54 ??????????? ????? ???????????
  2005-09-16 19:07 ` Dave
  0 siblings, 1 reply; 14+ messages in thread
From: ??????????? ????? ??????????? @ 2005-09-16  6:54 UTC (permalink / raw)
  To: Dave; +Cc: ecos-discuss

You're did something wrong. It works. We have such configuration as you. 

> -----Original Message-----
> From: Dave [mailto:dave@cc0.net] 
> Sent: Thursday, September 15, 2005 7:02 PM
> To: ??????????? ????? ???????????
> Cc: ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> 
> 
> It did not resolve the issue. I changed it to reflect 32MB 
> however ATAGs are still not passed to kernel.
> 
> 
> 
> 
> 
> 
> 
> Thanks!
> 
> -Dave
> 
> 
> 
> 
> ----- Original Message ----- 
> From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
> To: "Dave" <dave@cc0.net>
> Cc: <ecos-discuss@sources.redhat.com>
> Sent: Thursday, September 15, 2005 12:43 AM
> Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> 
> For all. (since RAM is needed for any configuration)
> 
> > -----Original Message-----
> > From: Dave [mailto:dave@cc0.net]
> > Sent: Wednesday, September 14, 2005 7:24 PM
> > To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> > Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> >
> >
> > Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
> >
> >
> >
> > Thanks!
> >
> >
> > -Dave
> >
> >
> >
> >
> > -----Original Message-----
> > From: ??????????? ????? ???????????
> > Sent: Wednesday, September 14, 2005 4:46 PM
> > To: 'Dave'
> > Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> > packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> > m_xscale_ixdp425_ram.h
> >
> > #define CYGMEM_REGION_ram (0)
> > #define CYGMEM_REGION_ram_SIZE (0x10000000)
> >
> > > -----Original Message-----
> > > From: ecos-discuss-owner@ecos.sourceware.org
> > > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> > > Sent: Wednesday, September 14, 2005 9:20 AM
> > > To: ecos-discuss@sources.redhat.com
> > > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> > >
> > > Hello all,
> > >
> > > I am working on a custom IXP425 board which is wired 
> identical to an
> > > IXDP425 except using different flash and SDRAM sizes/configs.
> > >
> > > I am running into an interesting problem regarding passing of ATAG
> > > values from RedBoot to a Linux kernel (2.4.27) and was
> > hoping someone
> > > might have some insight and pointers on where to look. I
> > have reviewed
> > > the several similar messages on the ecos-discuss mailing list
> > > regarding SDRAM config on IXP boards but nothing that
> > helped with my
> > > issue. I have also been googling a bit to no avail.
> > >
> > > One of our boards is a 64MB SDRAM board and when using 
> RedBoot 2.01
> > > and setting SDRAM size appropriately and 
> SDRAM_CONFIG_2x16Mx16, etc
> > > all seems well. ATAGs are passed correctly from RB to the
> > kernel, in
> > > particular ATAG_CMDLINE gets passed correctly via exec -c
> > ""...and the
> > > kernel picks it up just fine.
> > >
> > > A new board is a 32MB SDRAM board and using same RB 2.01 except
> > > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to
> > reflect the 32MB
> > > layout. This board boots fine and most all seems ok however
> > ATAGs are
> > > not being passed down to the kernel. Specifically
> > ATAG_CMDLINE is not
> > > being recognized and I would presume the others are not as well.
> > >
> > > I suspect I am missing something that needs to be modified
> > in RB with
> > > regard to the SDRAM changes between boards however I cannot locate
> > > anything that I may be missing. I have read that
> > hal_platform_extras.
> > > needs to be fixed up for SDRAM changes however it has
> > apparently been
> > > replaced with hal_platform_setup.h and it seems it uses all macros
> > > from ixdp425.h thus leading me to believe no change is needed.
> > >
> > > Anyone have any ideas on what I may be missing?
> > >
> > >
> > > Thanks!
> > >
> > > -Dave
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Before posting, please read the FAQ:
> > > http://ecos.sourceware.org/fom/ecos
> > > and search the list archive:
> > > http://ecos.sourceware.org/ml/ecos-discuss
> > >
> > >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
> >
> 
> -- 
> Before posting, please read the FAQ: 
> http://ecos.sourceware.org/fom/ecos
> and search the list archive: 
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-15 15:11 ??????????? ????? ???????????
@ 2005-09-15 20:55 ` Dave
  0 siblings, 0 replies; 14+ messages in thread
From: Dave @ 2005-09-15 20:55 UTC (permalink / raw)
  To: ??????????? ????? ???????????; +Cc: ecos-discuss



It did not resolve the issue. I changed it to reflect 32MB however ATAGs are 
still not passed to kernel.







Thanks!

-Dave




----- Original Message ----- 
From: "??????????? ????? ???????????" <kondratenko@tecon.ru>
To: "Dave" <dave@cc0.net>
Cc: <ecos-discuss@sources.redhat.com>
Sent: Thursday, September 15, 2005 12:43 AM
Subject: RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS


For all. (since RAM is needed for any configuration)

> -----Original Message-----
> From: Dave [mailto:dave@cc0.net]
> Sent: Wednesday, September 14, 2005 7:24 PM
> To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
>
>
> Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
>
>
>
> Thanks!
>
>
> -Dave
>
>
>
>
> -----Original Message-----
> From: ??????????? ????? ???????????
> Sent: Wednesday, September 14, 2005 4:46 PM
> To: 'Dave'
> Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
> packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> m_xscale_ixdp425_ram.h
>
> #define CYGMEM_REGION_ram (0)
> #define CYGMEM_REGION_ram_SIZE (0x10000000)
>
> > -----Original Message-----
> > From: ecos-discuss-owner@ecos.sourceware.org
> > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> > Sent: Wednesday, September 14, 2005 9:20 AM
> > To: ecos-discuss@sources.redhat.com
> > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> > Hello all,
> >
> > I am working on a custom IXP425 board which is wired identical to an
> > IXDP425 except using different flash and SDRAM sizes/configs.
> >
> > I am running into an interesting problem regarding passing of ATAG
> > values from RedBoot to a Linux kernel (2.4.27) and was
> hoping someone
> > might have some insight and pointers on where to look. I
> have reviewed
> > the several similar messages on the ecos-discuss mailing list
> > regarding SDRAM config on IXP boards but nothing that
> helped with my
> > issue. I have also been googling a bit to no avail.
> >
> > One of our boards is a 64MB SDRAM board and when using RedBoot 2.01
> > and setting SDRAM size appropriately and SDRAM_CONFIG_2x16Mx16, etc
> > all seems well. ATAGs are passed correctly from RB to the
> kernel, in
> > particular ATAG_CMDLINE gets passed correctly via exec -c
> ""...and the
> > kernel picks it up just fine.
> >
> > A new board is a 32MB SDRAM board and using same RB 2.01 except
> > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to
> reflect the 32MB
> > layout. This board boots fine and most all seems ok however
> ATAGs are
> > not being passed down to the kernel. Specifically
> ATAG_CMDLINE is not
> > being recognized and I would presume the others are not as well.
> >
> > I suspect I am missing something that needs to be modified
> in RB with
> > regard to the SDRAM changes between boards however I cannot locate
> > anything that I may be missing. I have read that
> hal_platform_extras.
> > needs to be fixed up for SDRAM changes however it has
> apparently been
> > replaced with hal_platform_setup.h and it seems it uses all macros
> > from ixdp425.h thus leading me to believe no change is needed.
> >
> > Anyone have any ideas on what I may be missing?
> >
> >
> > Thanks!
> >
> > -Dave
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* RE: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
@ 2005-09-15 15:11 ??????????? ????? ???????????
  2005-09-15 20:55 ` Dave
  0 siblings, 1 reply; 14+ messages in thread
From: ??????????? ????? ??????????? @ 2005-09-15 15:11 UTC (permalink / raw)
  To: Dave; +Cc: ecos-discuss

 For all. (since RAM is needed for any configuration)

> -----Original Message-----
> From: Dave [mailto:dave@cc0.net] 
> Sent: Wednesday, September 14, 2005 7:24 PM
> To: ??????????? ????? ???????????; ecos-discuss@sources.redhat.com
> Subject: Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> 
> 
> Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?
> 
> 
> 
> Thanks!
> 
> 
> -Dave
> 
> 
> 
> 
> -----Original Message-----
> From: ??????????? ????? ???????????
> Sent: Wednesday, September 14, 2005 4:46 PM
> To: 'Dave'
> Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_ar
> m_xscale_ixdp425_ram.h
> 
> #define CYGMEM_REGION_ram (0)
> #define CYGMEM_REGION_ram_SIZE (0x10000000)
> 
> > -----Original Message-----
> > From: ecos-discuss-owner@ecos.sourceware.org
> > [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> > Sent: Wednesday, September 14, 2005 9:20 AM
> > To: ecos-discuss@sources.redhat.com
> > Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> >
> > Hello all,
> >
> > I am working on a custom IXP425 board which is wired identical to an
> > IXDP425 except using different flash and SDRAM sizes/configs.
> >
> > I am running into an interesting problem regarding passing of ATAG 
> > values from RedBoot to a Linux kernel (2.4.27) and was 
> hoping someone 
> > might have some insight and pointers on where to look. I 
> have reviewed 
> > the several similar messages on the ecos-discuss mailing list 
> > regarding SDRAM config on IXP boards but nothing that 
> helped with my 
> > issue. I have also been googling a bit to no avail.
> >
> > One of our boards is a 64MB SDRAM board and when using RedBoot 2.01 
> > and setting SDRAM size appropriately and SDRAM_CONFIG_2x16Mx16, etc 
> > all seems well. ATAGs are passed correctly from RB to the 
> kernel, in 
> > particular ATAG_CMDLINE gets passed correctly via exec -c 
> ""...and the 
> > kernel picks it up just fine.
> >
> > A new board is a 32MB SDRAM board and using same RB 2.01 except 
> > changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to 
> reflect the 32MB 
> > layout. This board boots fine and most all seems ok however 
> ATAGs are 
> > not being passed down to the kernel. Specifically 
> ATAG_CMDLINE is not 
> > being recognized and I would presume the others are not as well.
> >
> > I suspect I am missing something that needs to be modified 
> in RB with 
> > regard to the SDRAM changes between boards however I cannot locate 
> > anything that I may be missing. I have read that 
> hal_platform_extras.
> > needs to be fixed up for SDRAM changes however it has 
> apparently been 
> > replaced with hal_platform_setup.h and it seems it uses all macros 
> > from ixdp425.h thus leading me to believe no change is needed.
> >
> > Anyone have any ideas on what I may be missing?
> >
> >
> > Thanks!
> >
> > -Dave
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > Before posting, please read the FAQ:
> > http://ecos.sourceware.org/fom/ecos
> > and search the list archive:
> > http://ecos.sourceware.org/ml/ecos-discuss
> >
> >
> 
> --
> Before posting, please read the FAQ: 
> http://ecos.sourceware.org/fom/ecos
> and search the list archive: 
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 
> 

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
  2005-09-14 19:34 ??????????? ????? ???????????
@ 2005-09-14 19:51 ` Dave
  0 siblings, 0 replies; 14+ messages in thread
From: Dave @ 2005-09-14 19:51 UTC (permalink / raw)
  To: ??????????? ????? ???????????, ecos-discuss



Isn't that for a RAM or ROMRAM RedBoot and not a ROM RedBoot?



Thanks!


-Dave




-----Original Message-----
From: ??????????? ????? ???????????
Sent: Wednesday, September 14, 2005 4:46 PM
To: 'Dave'
Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS

packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_arm_xscale_ixdp425_ram.h

#define CYGMEM_REGION_ram (0)
#define CYGMEM_REGION_ram_SIZE (0x10000000)

> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> Sent: Wednesday, September 14, 2005 9:20 AM
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
>
> Hello all,
>
> I am working on a custom IXP425 board which is wired identical to an
> IXDP425 except using different flash and SDRAM sizes/configs.
>
> I am running into an interesting problem regarding passing of ATAG
> values from RedBoot to a Linux kernel (2.4.27) and was hoping someone
> might have some insight and pointers on where to look. I have reviewed
> the several similar messages on the ecos-discuss mailing list
> regarding SDRAM config on IXP boards but nothing that helped with my
> issue. I have also been googling a bit to no avail.
>
> One of our boards is a 64MB SDRAM board and when using RedBoot 2.01
> and setting SDRAM size appropriately and SDRAM_CONFIG_2x16Mx16, etc
> all seems well. ATAGs are passed correctly from RB to the kernel, in
> particular ATAG_CMDLINE gets passed correctly via exec -c ""...and the
> kernel picks it up just fine.
>
> A new board is a 32MB SDRAM board and using same RB 2.01 except
> changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to reflect the 32MB
> layout. This board boots fine and most all seems ok however ATAGs are
> not being passed down to the kernel. Specifically ATAG_CMDLINE is not
> being recognized and I would presume the others are not as well.
>
> I suspect I am missing something that needs to be modified in RB with
> regard to the SDRAM changes between boards however I cannot locate
> anything that I may be missing. I have read that hal_platform_extras.
> needs to be fixed up for SDRAM changes however it has apparently been
> replaced with hal_platform_setup.h and it seems it uses all macros
> from ixdp425.h thus leading me to believe no change is needed.
>
> Anyone have any ideas on what I may be missing?
>
>
> Thanks!
>
> -Dave
>
>
>
>
>
>
>
>
>
> --
> Before posting, please read the FAQ:
> http://ecos.sourceware.org/fom/ecos
> and search the list archive:
> http://ecos.sourceware.org/ml/ecos-discuss
>
>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

* [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
@ 2005-09-14 19:34 ??????????? ????? ???????????
  2005-09-14 19:51 ` Dave
  0 siblings, 1 reply; 14+ messages in thread
From: ??????????? ????? ??????????? @ 2005-09-14 19:34 UTC (permalink / raw)
  To: ecos-discuss

 

-----Original Message-----
From: ??????????? ????? ??????????? 
Sent: Wednesday, September 14, 2005 4:46 PM
To: 'Dave'
Subject: RE: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS

packages\hal\arm\xscale\ixdp425\current\include\pkgconf\mlt_arm_xscale_ixdp425_ram.h  

#define CYGMEM_REGION_ram (0)
#define CYGMEM_REGION_ram_SIZE (0x10000000)

> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org
> [mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Dave
> Sent: Wednesday, September 14, 2005 9:20 AM
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS
> 
> Hello all,
> 
> I am working on a custom IXP425 board which is wired identical to an 
> IXDP425 except using different flash and SDRAM sizes/configs.
> 
> I am running into an interesting problem regarding passing of ATAG 
> values from RedBoot to a Linux kernel (2.4.27) and was hoping someone 
> might have some insight and pointers on where to look. I have reviewed 
> the several similar messages on the ecos-discuss mailing list 
> regarding SDRAM config on IXP boards but nothing that helped with my 
> issue. I have also been googling a bit to no avail.
> 
> One of our boards is a 64MB SDRAM board and when using RedBoot 2.01 
> and setting SDRAM size appropriately and SDRAM_CONFIG_2x16Mx16, etc 
> all seems well. ATAGs are passed correctly from RB to the kernel, in 
> particular ATAG_CMDLINE gets passed correctly via exec -c ""...and the 
> kernel picks it up just fine.
> 
> A new board is a 32MB SDRAM board and using same RB 2.01 except 
> changing SDRAM size and SDRAM_CONFIG_2x8Mx16, etc to reflect the 32MB 
> layout. This board boots fine and most all seems ok however ATAGs are 
> not being passed down to the kernel. Specifically ATAG_CMDLINE is not 
> being recognized and I would presume the others are not as well.
> 
> I suspect I am missing something that needs to be modified in RB with 
> regard to the SDRAM changes between boards however I cannot locate 
> anything that I may be missing. I have read that hal_platform_extras. 
> needs to be fixed up for SDRAM changes however it has apparently been 
> replaced with hal_platform_setup.h and it seems it uses all macros 
> from ixdp425.h thus leading me to believe no change is needed.
> 
> Anyone have any ideas on what I may be missing?
> 
> 
> Thanks!
> 
> -Dave
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> Before posting, please read the FAQ: 
> http://ecos.sourceware.org/fom/ecos
> and search the list archive: 
> http://ecos.sourceware.org/ml/ecos-discuss
> 
> 

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2005-10-09 20:00 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-16 19:32 [ECOS] FW: [ECOS] IXDP425 SDRAM CONFIG & Linux ATAGS ??????????? ????? ???????????
2005-09-28  9:22 ` Dave
2005-09-28 18:24   ` Jon Ringle
2005-09-28 18:31     ` Dave
2005-10-05 18:27     ` Dave
2005-10-06  6:36       ` Peter Korsgaard
2005-10-06 14:51         ` Dave
2005-10-09 20:00           ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2005-09-16  6:54 [ECOS] FW: " ??????????? ????? ???????????
2005-09-16 19:07 ` Dave
2005-09-15 15:11 ??????????? ????? ???????????
2005-09-15 20:55 ` Dave
2005-09-14 19:34 ??????????? ????? ???????????
2005-09-14 19:51 ` Dave

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).