Syed Ismail | 2 Dec 18:01 2007

Re: Re: nor flash issue


On Tue, 27 Nov 2007 Gary Thomas wrote :
> Andrew Lunn wrote:
> > On Mon, Nov 26, 2007 at 06:01:46PM -0000, Syed Ismail 
> wrote:
> >> Hi
> >>   I have an arm based processor and amd nor flash. I 
> built redboot for mx31 ADS board and everything works 
> fine. We have a custom board and are building redboot 
> for it. Here is my problem.
> >> i do fis write and when i read the written space 
> using x -b...., I get a corrupted data(for eg,"data" is 
> listed as "dada" in flash). 
> >> I read the data through debugging tool(not through 
> redboot) and found that the data written using fis 
> write in flash is actually fine. Any data in flash is 
> not being read properly through redboot. write works 
> just fine. What might be the problem. (Same code works 
> fine in the ADS board).
> > 
> > Try setting CYGSEM_IO_FLASH_READ_INDIRECT
> 
> Also, try turning off data caching on the FLASH device.
> 
Thanks for the suggestion. When I looked at the data cache code, I came across the configuration registers
(WEIM)   for the chipselect which connects nor flash in hal_platform_setup.h. Changing the
configuration register values to those which worked when testing the flash separately, solved it. Now
the redboot works fine. Thanks again Gary and Andrew.

--

-- 
(Continue reading)

Per-Erik Johansson | 3 Dec 09:03 2007
Picon
Picon

Re: Questions about dual flash

Hello again

Found some posts from 2004 about merging flash_v2 and trunk..
http://sources.redhat.com/ml/ecos-discuss/2004-10/msg00119.html
will this still work?
Also I have a home-cooked driver for the internal flash, do I have to
change this driver or will it work with v2 as it is?

Cheers
 Per-Erik

>> Hello
>>
>> I'm working on a redboot port for a PhyCore MPC5554 board.
>> Our eval board has flash on it and the MPC5554 also has flash, but on
>> startup the redboot prompt only displays one flash segment. Could it be
>> made to show both?
>> We added so redboot displays both our ram segments but cant understand
>> how
>> we could do it for flash since _flash_info() doesn't use a list.
>> Also, just by using both flash drivers, with corresponding cdl and
>> c-files, will redboot initiate both our flashes?
>
> The trunk of anoncvs has no support for discontinuous flash. Look at
> the flash_v2 branch, which can have multiple flash devices.
>
>     Andrew

--

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
(Continue reading)

Meiring, H, Mnr | 3 Dec 09:44 2007
Picon
Picon

RE: AT91sam7a guidance in porting


> I've not looked at the SAM7A2 much. Is it sufficiently different from
> the SAM7 what it needs a whole new platform & variant? If it fits, i
> would suggest extending the SAM7S package to cover the A2 as well.

Nick Garnett did a port for ecoscentric, and we agreed that a seperate port will be cleaner as there are quite
a few nigling differences between the uC's. There is however speculation that the a1 and a2 will be
discontinued in the near future so yes, it seems more pratical to create its own variant.

> > When using my sam-ice jtag device with gdb server and insight,
> > redboot runs successfully, (according to me) I can do mfill, dump
> > etc for the whole memory range over the usart.

> I would run clocktruth and tm_basic, the kernel test programs. If
> clock truth works correctly it means timers are O.K. and basic
> interrupt handling is working. tm_basic is a good all round test.
> Then just pick a few random tests and see if they work. You could
> systematically run all the tests, but that takes a while.

Ok, just step by step to see if I uderstand you correctly. I am currently running the redboot elf image direct
from ram using the Sam-ice JTAG device. 
Now I must build the kernel template I presume. 
When this is done, I must build the tm_basic test using the generated files from the last build and load the
executable using redboot with its load with ymodem command.
The basic test should now be able to execute, or is there a better way. 

Regards
Hendrik Meiring

--

-- 
(Continue reading)

sumanth | 3 Dec 11:30 2007

Does any one have Arm-cc compiled Ecos for Arm 922 excalibur processor


HI,
               I am working on Arm 920 T Excalibur processor on custom
designed board for which I have Ecos compiled on arm-elf-gcc. But now I have
requirement to port this to arm-cc.

Does any one have ported this already. Please give me some pointers to how
to proceed. If it is readily available please give me the link.

Thanks & regards,
Sumanth.
-- 
View this message in context: http://www.nabble.com/Does-any-one-have-Arm-cc-compiled-Ecos-for-Arm-922-excalibur-processor-tf4935598.html#a14127264
Sent from the Sourceware - ecos-discuss mailing list archive at Nabble.com.

--

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

Tom Deconinck | 3 Dec 13:31 2007
Picon

Questions about dual flash

On Dec 3, 2007 9:03 AM, Per-Erik Johansson <perka <at> dtek.chalmers.se> wrote:
> Hello again
>
> Found some posts from 2004 about merging flash_v2 and trunk..
> http://sources.redhat.com/ml/ecos-discuss/2004-10/msg00119.html
> will this still work?
> Also I have a home-cooked driver for the internal flash, do I have to
> change this driver or will it work with v2 as it is?
>
> Cheers
>  Per-Erik
>
>
>
> >> Hello
> >>
> >> I'm working on a redboot port for a PhyCore MPC5554 board.
> >> Our eval board has flash on it and the MPC5554 also has flash, but on
> >> startup the redboot prompt only displays one flash segment. Could it be
> >> made to show both?
> >> We added so redboot displays both our ram segments but cant understand
> >> how
> >> we could do it for flash since _flash_info() doesn't use a list.
> >> Also, just by using both flash drivers, with corresponding cdl and
> >> c-files, will redboot initiate both our flashes?
> >
> > The trunk of anoncvs has no support for discontinuous flash. Look at
> > the flash_v2 branch, which can have multiple flash devices.
> >
> >     Andrew
(Continue reading)

Andrew Lunn | 3 Dec 15:23 2007
Picon

Re: Does any one have Arm-cc compiled Ecos for Arm 922 excalibur processor

On Mon, Dec 03, 2007 at 02:30:23AM -0800, sumanth wrote:
> 
> HI,
>                I am working on Arm 920 T Excalibur processor on custom
> designed board for which I have Ecos compiled on arm-elf-gcc. But now I have
> requirement to port this to arm-cc.
> 
> Does any one have ported this already. Please give me some pointers to how
> to proceed. If it is readily available please give me the link.

This will be difficult. eCos makes use of gcc extensions. I suggest
you first try other solutions which don't require a change in
compiler. The GNU linker can probably link gcc and arm-cc generated
ELF files together if all you need to use is a binary blob which you
don't have the sources to.

     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

Stefan Pettersson | 3 Dec 17:10 2007
Picon

Disabling the console/debug port

Hello!

I am currently working on a project based on a ST STR712 microcontroller. We are about to extend the
functionality of an existing application and have the need for another serial port. Three of the four
existing serial ports of the STR7 are already occupied by the current application. The fourth serial port
is used as the console/debug port which we actually don't need. We would like to use this serial port as a
regular serial port as well. I guess that it is not enough to remove the console/debug port using the
configuration tool. Is creating a dummy console channel which does nothing the right way to go? 
Any hints on how this is done?

Regards,
Stefan Pettersson         

--

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

nabil mounir | 4 Dec 15:48 2007
Picon

EDF in eCos

hi,

I'm actually engineer for one period of six month. On this period i
have to implement EDF scheduling in eCos.

first of all, i will try to implement cyg_thread_deadline_wait() with
one table who store the different deadline, and after this, this
function will set priority for each thread. i assume i have to call
the scheduler ( bitmap i think ) for launch the thread with the
earliset deadline. i don't know if i am in the good way...

can you give me some help please because i don't know the function
who call the scheduler :  i assume if i attribuate the priority with
cyg_thread_set_priority in cyg_thread_deadline_wait function, i have
to call the scheduler for launch the thread with the new highest
priority.

if you could help i will be very pleased..

Best Regards,

Thank you

--

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

John Carter | 5 Dec 03:05 2007
Picon

-isystem and 'Template with C Linkage'

I have the answer now, so this is just for the next poor sod who gets
bitten by this fairly unlikely scenario...

So I wanted to extend "kapi.h" under ecos-2.0.

I wrote my .h I wrote my .cxx and pulled in "thread.hxx" to access
a certain C++ only method on threads. (stack_check)

Compiled and gcc spits a warning "Template with C linkage" in clist.hxx

Wah!? After a days worth of Googling and deep forensics of the
preprocessor output (Did you know the...
      # LINENUM FILENAME FLAGS
... linemarkers encode the C linkage in the FLAGS field?

Anyhoo, after a days worth of hunting inappropriate 'extern "C" {}'
behaviour I stumble on this brief paragraph in the info docs...

    "On very old systems, some of the pre-defined system header
     directories get even more special treatment.  GNU C++ considers
     code in headers found in those directories to be surrounded by an
     `extern "C"' block.  There is no way to request this behavior with
     a `#pragma', or from the command line."

Oh dear, the build system I'm using marks the ecos <cyg/kernel/...>
paths as -isystem. Stop doing that and use -I paths to the ecos stuff
and the problem went away.

Sigh! A wasted day.

(Continue reading)

Syed Ismail | 5 Dec 06:27 2007

uart utility


Hi
   I have redboot running on mx31 ads. I have been transfering images through a windriver debug tool. Can i
transfer data from host to target in redboot through UART,using xmodem protocol? How do i establish such a
connection (any host setup? i have a linux host)and what is the redboot command to do that.
          I tried load -m xmodem -b 0x100000 /transfer/zImage. I get the following..
        Cxyzmodem -CRC mode, 0(SOH)/0(STX)/0(CAN) packets, 0 retries

What is wrong here. Help

--

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


Gmane