public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Redboot UART driver
@ 2006-05-25  6:25 Ray, Sujoy (Sujoy)
  0 siblings, 0 replies; 4+ messages in thread
From: Ray, Sujoy (Sujoy) @ 2006-05-25  6:25 UTC (permalink / raw)
  To: ecos-discuss

Hi ALL,

Problem Summary: - I am facing a problem with the redboot build
environment while porting it to our ARM9 based SOC. I found that it's
not compiling the serial driver even though "ecosconfig check" shows
that the required package is present.

Detailed Description:- We make ARM9 based SOC and the UART IP block is
completely different. So, I need to develop a different low level UART
driver for our chip. I did the following:-
	1)	Created a folder called myUART in
\ecos-2.0\packages\devs\serial\arm and added necessary cdl and src files
in 
            the said directory.
	2)	Created a package called CYGPKG_IO_SERIAL_ARM_MYUART in
ecos.db which points to the CDL file in \ecos-2.0
            \packages\devs\serial\arm\ myUART\ v2_0\cdl
	3)	Added following Lines in ecos.db
	     target my125Target  {
		alias { "myTarget" myTarget_arm9  }
		packages { CYGPKG_HAL_ARM
	                   CYGPKG_HAL_ARM_ARM9
	                   CYGPKG_HAL_ARM_ARM9_MYTARGET
	                   CYGPKG_ERROR
	                   CYGPKG_IO
	                   CYGPKG_IO_SERIAL
	                   CYGPKG_IO_SERIAL_ARM_ MYUART

	                   CYGPKG_DEVS_FLASH_INTEL_28FXXX
	                   CYGPKG_DEVS_FLASH_ARM_MYTARGET
	        }
	        description "
	        The target provides the packages needed to run
	        eCos on our SOC based board."
	}
	After adding above mentioned lines, my expectation is myUART.c
located in \ecos-2.0\packages\devs\serial\arm\ myUART 
      \ v2_0\src\ would be compiled. But in reality I found that this is
not getting compiled.

	Any help regarding this would be highly appreciated.

	Best regards,
	Sujoy Ray.



--
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] 4+ messages in thread

* RE: [ECOS] Redboot UART driver
@ 2006-05-25 11:53 Ray, Sujoy (Sujoy)
  0 siblings, 0 replies; 4+ messages in thread
From: Ray, Sujoy (Sujoy) @ 2006-05-25 11:53 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Hi Andrew,

As usual - you gave the correct starting point.

Thanks for your help.

Best regards,
Sujoy Ray.


-----Original Message-----
From: Andrew Lunn [mailto:andrew@lunn.ch] 
Sent: Thursday, May 25, 2006 11:55 AM
To: Ray, Sujoy (Sujoy)
Cc: ecos-discuss@ecos.sourceware.org
Subject: Re: [ECOS] Redboot UART driver


On Thu, May 25, 2006 at 08:23:27AM +0200, Ray, Sujoy (Sujoy) wrote:
> Hi ALL,
> 
> Problem Summary: - I am facing a problem with the redboot build 
> environment while porting it to our ARM9 based SOC. I found that it's 
> not compiling the serial driver even though "ecosconfig check" shows 
> that the required package is present.
> 
> Detailed Description:- We make ARM9 based SOC and the UART IP block is

> completely different. So, I need to develop a different low level UART

> driver for our chip. I did the following:-
> 	1)	Created a folder called myUART in
> \ecos-2.0\packages\devs\serial\arm and added necessary cdl and src 
> files in
>             the said directory.
> 	2)	Created a package called CYGPKG_IO_SERIAL_ARM_MYUART in
> ecos.db which points to the CDL file in \ecos-2.0
>             \packages\devs\serial\arm\ myUART\ v2_0\cdl
> 	3)	Added following Lines in ecos.db
> 	     target my125Target  {
> 		alias { "myTarget" myTarget_arm9  }
> 		packages { CYGPKG_HAL_ARM
> 	                   CYGPKG_HAL_ARM_ARM9
> 	                   CYGPKG_HAL_ARM_ARM9_MYTARGET
> 	                   CYGPKG_ERROR
> 	                   CYGPKG_IO
> 	                   CYGPKG_IO_SERIAL
> 	                   CYGPKG_IO_SERIAL_ARM_ MYUART
> 
> 	                   CYGPKG_DEVS_FLASH_INTEL_28FXXX
> 	                   CYGPKG_DEVS_FLASH_ARM_MYTARGET
> 	        }
> 	        description "
> 	        The target provides the packages needed to run
> 	        eCos on our SOC based board."
> 	}
> 	After adding above mentioned lines, my expectation is myUART.c 
> located in \ecos-2.0\packages\devs\serial\arm\ myUART
>       \ v2_0\src\ would be compiled. But in reality I found that this 
> is not getting compiled.
> 
> 	Any help regarding this would be highly appreciated.

Redboot uses the HAL serial driver, not the fully, interrupt serial
driver. The HAL serial driver should be in your
CYGPKH_HAL_ARM9_MYTARGET, normally in the file hal_diag.c

         Andrew

--
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] 4+ messages in thread

* Re: [ECOS] Redboot UART driver
  2006-05-25  6:23 Ray, Sujoy (Sujoy)
@ 2006-05-25  9:56 ` Andrew Lunn
  0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2006-05-25  9:56 UTC (permalink / raw)
  To: Ray, Sujoy (Sujoy); +Cc: ecos-discuss

On Thu, May 25, 2006 at 08:23:27AM +0200, Ray, Sujoy (Sujoy) wrote:
> Hi ALL,
> 
> Problem Summary: - I am facing a problem with the redboot build
> environment while porting it to our ARM9 based SOC. I found that it's
> not compiling the serial driver even though "ecosconfig check" shows
> that the required package is present.
> 
> Detailed Description:- We make ARM9 based SOC and the UART IP block is
> completely different. So, I need to develop a different low level UART
> driver for our chip. I did the following:-
> 	1)	Created a folder called myUART in
> \ecos-2.0\packages\devs\serial\arm and added necessary cdl and src files
> in 
>             the said directory.
> 	2)	Created a package called CYGPKG_IO_SERIAL_ARM_MYUART in
> ecos.db which points to the CDL file in \ecos-2.0
>             \packages\devs\serial\arm\ myUART\ v2_0\cdl
> 	3)	Added following Lines in ecos.db
> 	     target my125Target  {
> 		alias { "myTarget" myTarget_arm9  }
> 		packages { CYGPKG_HAL_ARM
> 	                   CYGPKG_HAL_ARM_ARM9
> 	                   CYGPKG_HAL_ARM_ARM9_MYTARGET
> 	                   CYGPKG_ERROR
> 	                   CYGPKG_IO
> 	                   CYGPKG_IO_SERIAL
> 	                   CYGPKG_IO_SERIAL_ARM_ MYUART
> 
> 	                   CYGPKG_DEVS_FLASH_INTEL_28FXXX
> 	                   CYGPKG_DEVS_FLASH_ARM_MYTARGET
> 	        }
> 	        description "
> 	        The target provides the packages needed to run
> 	        eCos on our SOC based board."
> 	}
> 	After adding above mentioned lines, my expectation is myUART.c
> located in \ecos-2.0\packages\devs\serial\arm\ myUART 
>       \ v2_0\src\ would be compiled. But in reality I found that this is
> not getting compiled.
> 
> 	Any help regarding this would be highly appreciated.

Redboot uses the HAL serial driver, not the fully, interrupt serial
driver. The HAL serial driver should be in your
CYGPKH_HAL_ARM9_MYTARGET, normally in the file hal_diag.c

         Andrew

-- 
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] 4+ messages in thread

* [ECOS] Redboot UART driver
@ 2006-05-25  6:23 Ray, Sujoy (Sujoy)
  2006-05-25  9:56 ` Andrew Lunn
  0 siblings, 1 reply; 4+ messages in thread
From: Ray, Sujoy (Sujoy) @ 2006-05-25  6:23 UTC (permalink / raw)
  To: ecos-discuss

Hi ALL,

Problem Summary: - I am facing a problem with the redboot build
environment while porting it to our ARM9 based SOC. I found that it's
not compiling the serial driver even though "ecosconfig check" shows
that the required package is present.

Detailed Description:- We make ARM9 based SOC and the UART IP block is
completely different. So, I need to develop a different low level UART
driver for our chip. I did the following:-
	1)	Created a folder called myUART in
\ecos-2.0\packages\devs\serial\arm and added necessary cdl and src files
in 
            the said directory.
	2)	Created a package called CYGPKG_IO_SERIAL_ARM_MYUART in
ecos.db which points to the CDL file in \ecos-2.0
            \packages\devs\serial\arm\ myUART\ v2_0\cdl
	3)	Added following Lines in ecos.db
	     target my125Target  {
		alias { "myTarget" myTarget_arm9  }
		packages { CYGPKG_HAL_ARM
	                   CYGPKG_HAL_ARM_ARM9
	                   CYGPKG_HAL_ARM_ARM9_MYTARGET
	                   CYGPKG_ERROR
	                   CYGPKG_IO
	                   CYGPKG_IO_SERIAL
	                   CYGPKG_IO_SERIAL_ARM_ MYUART

	                   CYGPKG_DEVS_FLASH_INTEL_28FXXX
	                   CYGPKG_DEVS_FLASH_ARM_MYTARGET
	        }
	        description "
	        The target provides the packages needed to run
	        eCos on our SOC based board."
	}
	After adding above mentioned lines, my expectation is myUART.c
located in \ecos-2.0\packages\devs\serial\arm\ myUART 
      \ v2_0\src\ would be compiled. But in reality I found that this is
not getting compiled.

	Any help regarding this would be highly appreciated.

	Best regards,
	Sujoy Ray.



--
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] 4+ messages in thread

end of thread, other threads:[~2006-05-25 11:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-25  6:25 [ECOS] Redboot UART driver Ray, Sujoy (Sujoy)
  -- strict thread matches above, loose matches on Subject: below --
2006-05-25 11:53 Ray, Sujoy (Sujoy)
2006-05-25  6:23 Ray, Sujoy (Sujoy)
2006-05-25  9:56 ` Andrew Lunn

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).