This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: a question about anoncvs
- From: Indra Antonius Simalango <indra at vlsi dot itb dot ac dot id>
- To: Gary Thomas <gary at mlbassoc dot com>
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: Thu, 25 Aug 2005 14:06:28 +0700 (WIT)
- Subject: Re: [ECOS] a question about anoncvs
I finally move the declaration "cyg_uint8 lo,hi;" as seen on this quote
snippet :
----------------------------------------------------------------------
void hal_platform_init(void)
{
int vector;
cyg_uint8 lo, hi;
HAL_ICACHE_INVALIDATE_ALL();
HAL_ICACHE_ENABLE();
HAL_DCACHE_INVALIDATE_ALL();
HAL_DCACHE_ENABLE();
#ifdef CYGPKG_HAL_I386_PC_MEMSIZE_HARDCODE
cyg_hal_pc_memsize_base = CYGNUM_HAL_I386_PC_MEMSIZE_BASE;
cyg_hal_pc_memsize_extended = CYGNUM_HAL_I386_PC_MEMSIZE_EXTENDED;
#endif
#ifdef CYGPKG_HAL_I386_PC_MEMSIZE_BIOS
/* cyg_uint8 lo,hi; */
HAL_READ_CMOS( 0x15, lo );
HAL_READ_CMOS( 0x16, hi );
cyg_hal_pc_memsize_base = ((hi<<8)+lo)*1024;
-----------------------------------------------------------------------
And voila, the previous error messages disappeared. But a new error
message come :
-----------------------------------------------------------------------
/home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c: In
function `cyg_ppp_die':
/home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c:512:
parse error before `extern'
/home/indra/anoncvs/eCos-new/ecos/packages/net/ppp/current/src/pppd.c:514:
warning: implicit declaration of function `cyg_ppp_sys_exit'
make[1]: *** [src/pppd.o.d] Error 1
make: *** [build] Error 2
----------------------------------------------------------------------
Well, I really need more suggestions here, please.
Thank you.
On Thu, 25 Aug 2005, Indra Antonius Simalango wrote:
>
> I take a look on file plf_misc.c, on this snippet quote :
> ---------------------------------------------------------
> #ifdef CYGPKG_HAL_I386_PC_MEMSIZE_BIOS
> cyg_uint8 lo,hi;
>
> HAL_READ_CMOS( 0x15, lo );
> HAL_READ_CMOS( 0x16, hi );
>
> cyg_hal_pc_memsize_base = ((hi<<8)+lo)*1024;
> ---------------------------------------------------------
>
> And then, I try to find "CYGPKG_HAL_I386_PC_MEMSIZE_BIOS"
> in my ecos.ecc , and added my user_value :
> -------------------------------------------------------------------
> cdl_component CYGPKG_HAL_I386_PC_MEMSIZE {
> # Added by Simalango
> user_value BIOS
> };
>
> But still, I face the same error messages.
>
> Or should I comment CYGPKG_HAL_I386_PC_MEMSIZE_BIOS? Is
> CYGPKG_HAL_I386_PC_MEMSIZE_BIOS a valid parameter? Because I don't find
> any word match with it in my ecos.ecc. The closing match is only
> CYGPKG_HAL_I386_PC_MEMSIZE, not CYGPKG_HAL_I386_PC_MEMSIZE_BIOS.
>
> Please share your experinces.
>
> Thank you.
>
> > On Wed, 24 Aug 2005, Gary Thomas wrote:
> >
> > > On Thu, 2005-08-25 at 04:01 +0700, Indra Antonius Simalango wrote:
> > > >
> > > > Dear all,
> > > >
> > > > I'd like to use fat filesystem for my target i386pc. In order to do that,
> > > > I do anoncvs to update my repository. Here're my steps work :
> > > >
> > > > #cd ~/anoncvs
> > > > #cvs -z3 -d :pserver:anoncvs@ecos.sourceware.org:/cvs/ecos co -P ecos
> > > > #cvs -z3 update -d -P
> > > > #mkdir ~/tests
> > > > #cd ~/tests
> > > > #export ECOS_REPOSITORY=~/anoncvs/ecos/packages
> > > > #/opt/ecos-2.0/tools/bin/ecosconfig new pc all
> > > > #vi ecos.ecc
> > > > ... editing ecos.ecc ...
> > > > #/opt/ecos-2.0/tools/bin/ecosconfig tree
> > > > #make -s
> > > > headers finished
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:
> > > > In function `hal_platform_init':
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:129:
> > > > parse error before `lo'
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:131:
> > > > `lo' undeclared (first use in this function)
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:131:
> > > > (Each undeclared identifier is reported only once
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:131:
> > > > for each function it appears in.)
> > > > /home/indra/anoncvs/ecos/packages/hal/i386/pc/current/src/plf_misc.c:132:
> > > > `hi' undeclared (first use in this function)
> > > > make[1]: *** [src/plf_misc.o.d] Error 1
> > > > make: *** [build] Error 2
> > > >
> > > > I've tried repeated my anoncvs update in another new directory, and build
> > > > it with the same way. But still, it gives the same error message.
> > > >
> > > > Please share your experiences, should I use another anoncvs site? Which
> > > > site? Or it's something wrong in my steps work.
> > > >
> > >
> > > This worked just fine for me.
> > >
> > > Exactly what did you change during your "vi ecos.ecc" step?
> > >
> > >
> >
> >
>
>
--
regards,
IndrA on 13:58, Aug 25
http://ic.ee.itb.ac.id/~antonius
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss