This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Re: updated AT91/EB40 hal


Christophe,

in order to get the AT91 and EB40 HALs, you do not need
flash_at49xxxx.epk, nor the redboot or io/flash patches.
The reason why they are included is that I wanted to
pack together everything covered by the copyright assignment
I submitted. Sorry for the confusion this caused to you.

Install as follows:

1. Remove the old AT91/EB40 HAL package using ecosadmin.
2. Install hal_at91.epk and hal_eb40.epk, again using ecosadmin.
3. Apply the devs/flash/arm/at91 patch.

Since these files are fairly recent, Tim's patches
probably won't apply unchanged, but I did not try that.

The addresses in my version of the var_io.h are wrong,
of course. I already fixed that once but the fix seems
to have been lost somewhere along the way. However,
these registers are currently unused, so the wrong
addresses should not do any harm.

tk
----------------------------------------------- 
Thomas Koeller, Software Development 

Basler Vision Technologies 
An der Strusbek 60-62 
22926 Ahrensburg 
Germany 

Tel +49 (4102) 463-390 
Fax +49 (4102) 463-46390

mailto:Thomas.Koeller@baslerweb.com 
http://www.baslerweb.com 




> -----Original Message-----
> From: Christophe Part [mailto:christophe_part@yahoo.ca]
> Sent: Monday, October 21, 2002 3:39 AM
> To: thomas.koeller@baslerweb.com; Thomas Koeller;
> ecos-discuss@sources.redhat.com
> Cc: tdrury@siliconmotorsports.com; part@silicomp.qc.ca;
> RomanJordan@gmx.de; greghol@sbcglobal.net; daniel.neri@sigicom.com;
> maillist@presslab.us
> Subject: [ECOS] Re: updated AT91/EB40 hal
> 
> 
> Hi Thomas,
> 
> I have tried your epk files on the snapshot 
> ecos-v2-full-alpha-snap-2002-10-14 
> from the ecoscentric web site. 
> 
> [chpart@cortomaltese packages]$ tclsh ecosadmin.tcl add 
> ../epk/flash_at49xxxx.epk
> adding package CYGPKG_DEVS_FLASH_ATMEL_AT49XX1604A
> [chpart@cortomaltese packages]$ tclsh ecosadmin.tcl add 
> ../epk/hal_at91.epk
> adding package CYGPKG_HAL_ARM_AT91
> [chpart@cortomaltese packages]$ tclsh ecosadmin.tcl add 
> ../epk/hal_eb40.epk
> adding package CYGPKG_HAL_ARM_AT91_EB40
> adding target eb40
> 
> then I have applied the patch file :
> 
> [chpart@cortomaltese ecos]$ patch -p0 < epk/ThomasKeller.patchpourepk
> patching file packages/devs/flash/arm/at91/current/ChangeLog
> Hunk #1 succeeded at 1 with fuzz 1.
> patching file packages/devs/flash/arm/at91/current/src/at91_flash.c
> patching file packages/devs/flash/arm/at91/current/src/flash.h
> patching file 
> packages/devs/flash/arm/at91/current/src/flash_erase_block.c
> patching file 
> packages/devs/flash/arm/at91/current/src/flash_program_buf.c
> patching file packages/devs/flash/arm/at91/current/src/flash_query.c
> patching file packages/io/flash/current/ChangeLog
> Hunk #1 succeeded at 1 with fuzz 1.
> patching file packages/io/flash/current/include/flash.h
> patching file packages/io/flash/current/src/flash.c
> patching file packages/redboot/current/ChangeLog
> Hunk #1 succeeded at 1 with fuzz 1.
> patching file packages/redboot/current/src/flash.c
> Hunk #11 FAILED at 1241.
> 1 out of 12 hunks FAILED -- saving rejects to file 
> packages/redboot/current/src/flash.c.rej
> 
> I have attached flash.c.rej , flash.c.orig and my flash.c.
> Could you look at my correction ? The rej file surprise me.
> 
> Now, when I start configtool, I have this error.
> 
> ecos.db, package CYGPKG_HAL_ARM_AT91: warning
>     Version subdirectory `var' does not have a CDL script 
> `hal_arm_at91.cdl'.
> ecos.db, package CYGPKG_HAL_ARM_AT91: warning
>     Version subdirectory `eb40' does not have a CDL script 
> `hal_arm_at91.cdl'.
> 
> 
> If I understand well I have now to patch the directory eb40 
> to create the 
> directory eb40A with the patch of Tim but without the patch 
> for the flash.
> Is it true ?
> 
> In the var_io.h file, do i have to correct the register ?
> 
> #define AT91_PS         0xFFFF4000
> #define AT91_PS_CR        0x000    // Control
> #define AT91_PS_PCER      0x004    // Peripheral clock enable
> #define AT91_PS_PCDR      0x004    // Peripheral clock disable
> #define AT91_PS_PCSR      0x004    // Peripheral clock status
> 
> by 
> #define AT91_PS         0xFFFF4000
> #define AT91_PS_CR        0x000    // Control
> #define AT91_PS_PCER      0x004    // Peripheral clock enable
> #define AT91_PS_PCDR      0x008    // Peripheral clock disable
> #define AT91_PS_PCSR      0x00C    // Peripheral clock status
> 
> From Marc Pignat.
> 
> 
> Thanks for your help,
> 
> Christophe
> 
> 
> On Sunday 20 October 2002 08:19 am, Thomas Koeller wrote:
> > There has been some discussion about the modular AT91/EB40 hal
> > recently. I'd like to point those using it to an updated 
> version that I
> > uploaded to ecos-patches@sources.redhat.com about a week ago,
> > and for which I submitted a copyright assignment to Red Hat:
> >
> > http://sources.redhat.com/ml/ecos-patches/2002-10/msg00008.html
> >
> > So this will be the version that will (hopefully) be 
> included into CVS and
> > I'd like to encourage everyone using one of the older 
> versions to have a
> > look at it.
> >
> > tk
> 

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]