public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] cs8900a_int_vector
@ 2004-04-18 13:03 Bob Koninckx
  2004-04-18 18:50 ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Bob Koninckx @ 2004-04-18 13:03 UTC (permalink / raw)
  To: ecos-discuss

file devs/eth/cl/cs8900a/current/src/if_cs8900a.c

static int
cs8900a_int_vector(struct eth_drv_sc *sc)
{
    cs8900a_priv_data_t *cpd = (cs8900a_priv_data_t*)sc->driver_private;
    return (cpd->interrupt) ? 1 : 0;
}

Does anybody know the rationale of the return statement? Shouldn't this
simply be

return (cpd->interrupt)

Thanks,
Bob


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

* Re: [ECOS] cs8900a_int_vector
  2004-04-18 13:03 [ECOS] cs8900a_int_vector Bob Koninckx
@ 2004-04-18 18:50 ` Gary Thomas
  2004-04-19  8:22   ` [ECOS] AT91/EB40 redboot and uCnet daugter board Felix Nielsen
  2004-04-20 16:30   ` [ECOS] cs8900a_int_vector Jani Monoses
  0 siblings, 2 replies; 6+ messages in thread
From: Gary Thomas @ 2004-04-18 18:50 UTC (permalink / raw)
  To: bob.koninckx; +Cc: ecos-discuss

On Sun, 2004-04-18 at 06:13, Bob Koninckx wrote:
> file devs/eth/cl/cs8900a/current/src/if_cs8900a.c
> 
> static int
> cs8900a_int_vector(struct eth_drv_sc *sc)
> {
>     cs8900a_priv_data_t *cpd = (cs8900a_priv_data_t*)sc->driver_private;
>     return (cpd->interrupt) ? 1 : 0;
> }
> 
> Does anybody know the rationale of the return statement? Shouldn't this
> simply be
> 
> return (cpd->interrupt)

Yes, what's there is clearly wrong.  Most importantly, this would keep
GDB via ethernet from ever seeing ^C interrupts.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

* [ECOS] AT91/EB40 redboot and uCnet daugter board
  2004-04-18 18:50 ` Gary Thomas
@ 2004-04-19  8:22   ` Felix Nielsen
  2004-04-21  6:42     ` Felix Nielsen
  2004-04-20 16:30   ` [ECOS] cs8900a_int_vector Jani Monoses
  1 sibling, 1 reply; 6+ messages in thread
From: Felix Nielsen @ 2004-04-19  8:22 UTC (permalink / raw)
  To: ecos-discuss

Hi

I am having trouble getting the redboot compiled and up and running.

I have a AT91/EB40 devboard 2mb ram and a uCnet daugter board with 2mb 
flash AT49BV1614 and CS8900A. I started without the uCnet - just to keep 
things simple.

When I use the precompiled redboot 
(http://sources.redhat.com/ecos/boards/redbootbins/at91eb40/redboot_RAM.elf) 
I get this result :

************

RedBoot(tm) bootstrap and debug environment, version UNKNOWN - built 
17:01:31, 1

Platform: Atmel AT91/EB40 (ARM7TDMI)
Copyright (C) 2000, 2001, Red Hat, Inc.

RAM: 0x02000000-0x02080000, 0x0202d9f8-0x0207ef00 available
FLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.

************

This look just right - besides the wrong amount of memory, but that 
should be easy to change :)

I then got the latest CVS, and tried to build reboot :

ecosconfig new eb40 redboot
U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
U CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK, new inferred value 0

ecosconfig import 
/opt/ecos/cvs/ecos/packages/hal/arm/at91/eb40/current/misc/redboot_RAM.ecm

make -s
headers finished
/opt/ecos/cvs/ecos/packages/redboot/current/src/load.c: In function 
`do_load':
/opt/ecos/cvs/ecos/packages/redboot/current/src/load.c:606: warning: 
unused variable `port'
/opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c: In function 
`do_flash_init':
/opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c:1318: warning: 
unused variable `err_addr'
build finished

(gdb) set $cpsr=0xd3
(gdb) load
Loading section .rom_vectors, size 0x40 lma 0x2020000
Loading section .text, size 0xbc28 lma 0x2020040
Loading section .rodata, size 0x1eb3 lma 0x202bc68
Loading section .data, size 0x738 lma 0x202db1c
Start address 0x2020040, load size 57939
Transfer rate: 6098 bits/sec, 499 bytes/write.

*****************

RedBoot(tm) bootstrap and debug environment [RAM]
Non-certified release, version UNKNOWN - built 20:45:01, Apr 18 2004

Platform: Atmel AT91/EB40 (ARM7TDMI)
Copyright (C) 2000, 2001, 2002, Red Hat, Inc.

RAM: 0x02000000-0x02080000, [0x02034400-0x02080000] available
FLASH: 0x00000000 - 0x00000001, 0 blocks of 0x00000000 bytes each.


*****************

But the reboot is unable to find the flash, can anyone help with that?

Is it possible to backup the flash before I flash with a working 
redboot?, because it is flashed with prebuild uClinux bootstrap - and 
would to keep it as a backup.

Secondly I would really like to get the uCnet daugter board up and 
running, if anyone have information on that I would be happy.

Thanks for your time and hope to get some help :)
Felix



















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

* Re: [ECOS] cs8900a_int_vector
  2004-04-18 18:50 ` Gary Thomas
  2004-04-19  8:22   ` [ECOS] AT91/EB40 redboot and uCnet daugter board Felix Nielsen
@ 2004-04-20 16:30   ` Jani Monoses
  1 sibling, 0 replies; 6+ messages in thread
From: Jani Monoses @ 2004-04-20 16:30 UTC (permalink / raw)
  To: ecos-discuss


> > Does anybody know the rationale of the return statement? Shouldn't
> > this simply be
> > 
> > return (cpd->interrupt)
> 
> Yes, what's there is clearly wrong.  Most importantly, this would keep
> GDB via ethernet from ever seeing ^C interrupts.

So this is the reason I never got gdb over eth working since all
targets I used had cs8900. I always though I was misconfiguring
something.

Jani

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

* Re: [ECOS] AT91/EB40 redboot and uCnet daugter board
  2004-04-19  8:22   ` [ECOS] AT91/EB40 redboot and uCnet daugter board Felix Nielsen
@ 2004-04-21  6:42     ` Felix Nielsen
  2004-04-21  6:51       ` Gary Thomas
  0 siblings, 1 reply; 6+ messages in thread
From: Felix Nielsen @ 2004-04-21  6:42 UTC (permalink / raw)
  To: Felix Nielsen; +Cc: ecos-discuss

Finally found the reason :)

Default the AT29LV1024 is write protected, and the CVS version of target 
EB40 is using the whole flash from 0x1000000 - 0x1020000 (when jumper J7 
is bridged whole flash is writeable)

The prebuild binaries from sources.redhat.com/ecos is compiled with 
FLASH_BASE at 0x1010000 - 0x1020000

Still need to know if it is possible to transfer data from the flash, 
back to host computer? - would like a backup of the top flash area 
(uClinux bootstrap)


Felix

Felix Nielsen wrote:

> Hi
>
> I am having trouble getting the redboot compiled and up and running.
>
> I have a AT91/EB40 devboard 2mb ram and a uCnet daugter board with 2mb 
> flash AT49BV1614 and CS8900A. I started without the uCnet - just to 
> keep things simple.
>
> When I use the precompiled redboot 
> (http://sources.redhat.com/ecos/boards/redbootbins/at91eb40/redboot_RAM.elf) 
> I get this result :
>
> ************
>
> RedBoot(tm) bootstrap and debug environment, version UNKNOWN - built 
> 17:01:31, 1
>
> Platform: Atmel AT91/EB40 (ARM7TDMI)
> Copyright (C) 2000, 2001, Red Hat, Inc.
>
> RAM: 0x02000000-0x02080000, 0x0202d9f8-0x0207ef00 available
> FLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.
>
> ************
>
> This look just right - besides the wrong amount of memory, but that 
> should be easy to change :)
>
> I then got the latest CVS, and tried to build reboot :
>
> ecosconfig new eb40 redboot
> U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
> U CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK, new inferred value 0
>
> ecosconfig import 
> /opt/ecos/cvs/ecos/packages/hal/arm/at91/eb40/current/misc/redboot_RAM.ecm 
>
>
> make -s
> headers finished
> /opt/ecos/cvs/ecos/packages/redboot/current/src/load.c: In function 
> `do_load':
> /opt/ecos/cvs/ecos/packages/redboot/current/src/load.c:606: warning: 
> unused variable `port'
> /opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c: In function 
> `do_flash_init':
> /opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c:1318: warning: 
> unused variable `err_addr'
> build finished
>
> (gdb) set $cpsr=0xd3
> (gdb) load
> Loading section .rom_vectors, size 0x40 lma 0x2020000
> Loading section .text, size 0xbc28 lma 0x2020040
> Loading section .rodata, size 0x1eb3 lma 0x202bc68
> Loading section .data, size 0x738 lma 0x202db1c
> Start address 0x2020040, load size 57939
> Transfer rate: 6098 bits/sec, 499 bytes/write.
>
> *****************
>
> RedBoot(tm) bootstrap and debug environment [RAM]
> Non-certified release, version UNKNOWN - built 20:45:01, Apr 18 2004
>
> Platform: Atmel AT91/EB40 (ARM7TDMI)
> Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
>
> RAM: 0x02000000-0x02080000, [0x02034400-0x02080000] available
> FLASH: 0x00000000 - 0x00000001, 0 blocks of 0x00000000 bytes each.
>
>
> *****************
>
> But the reboot is unable to find the flash, can anyone help with that?
>
> Is it possible to backup the flash before I flash with a working 
> redboot?, because it is flashed with prebuild uClinux bootstrap - and 
> would to keep it as a backup.
>
> Secondly I would really like to get the uCnet daugter board up and 
> running, if anyone have information on that I would be happy.
>
> Thanks for your time and hope to get some help :)
> Felix
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>


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

* Re: [ECOS] AT91/EB40 redboot and uCnet daugter board
  2004-04-21  6:42     ` Felix Nielsen
@ 2004-04-21  6:51       ` Gary Thomas
  0 siblings, 0 replies; 6+ messages in thread
From: Gary Thomas @ 2004-04-21  6:51 UTC (permalink / raw)
  To: Felix Nielsen; +Cc: ecos-discuss

On Wed, 2004-04-21 at 02:09, Felix Nielsen wrote:
> Finally found the reason :)
> 
> Default the AT29LV1024 is write protected, and the CVS version of target 
> EB40 is using the whole flash from 0x1000000 - 0x1020000 (when jumper J7 
> is bridged whole flash is writeable)
> 
> The prebuild binaries from sources.redhat.com/ecos is compiled with 
> FLASH_BASE at 0x1010000 - 0x1020000
> 
> Still need to know if it is possible to transfer data from the flash, 
> back to host computer? - would like a backup of the top flash area 
> (uClinux bootstrap)

How much data is it?  If it's reasonably small, use "dump -s" in RedBoot
to dump the data as Motorola S-records which you can capture and then
reconstitute using objcopy.

If it's a lot, then you might need something more powerful / flexible.

> 
> 
> Felix
> 
> Felix Nielsen wrote:
> 
> > Hi
> >
> > I am having trouble getting the redboot compiled and up and running.
> >
> > I have a AT91/EB40 devboard 2mb ram and a uCnet daugter board with 2mb 
> > flash AT49BV1614 and CS8900A. I started without the uCnet - just to 
> > keep things simple.
> >
> > When I use the precompiled redboot 
> > (http://sources.redhat.com/ecos/boards/redbootbins/at91eb40/redboot_RAM.elf) 
> > I get this result :
> >
> > ************
> >
> > RedBoot(tm) bootstrap and debug environment, version UNKNOWN - built 
> > 17:01:31, 1
> >
> > Platform: Atmel AT91/EB40 (ARM7TDMI)
> > Copyright (C) 2000, 2001, Red Hat, Inc.
> >
> > RAM: 0x02000000-0x02080000, 0x0202d9f8-0x0207ef00 available
> > FLASH: 0x01010000 - 0x01020000, 256 blocks of 0x00000100 bytes each.
> >
> > ************
> >
> > This look just right - besides the wrong amount of memory, but that 
> > should be easy to change :)
> >
> > I then got the latest CVS, and tried to build reboot :
> >
> > ecosconfig new eb40 redboot
> > U CYGSEM_HAL_USE_ROM_MONITOR, new inferred value 0
> > U CYGIMP_HAL_COMMON_INTERRUPTS_USE_INTERRUPT_STACK, new inferred value 0
> >
> > ecosconfig import 
> > /opt/ecos/cvs/ecos/packages/hal/arm/at91/eb40/current/misc/redboot_RAM.ecm 
> >
> >
> > make -s
> > headers finished
> > /opt/ecos/cvs/ecos/packages/redboot/current/src/load.c: In function 
> > `do_load':
> > /opt/ecos/cvs/ecos/packages/redboot/current/src/load.c:606: warning: 
> > unused variable `port'
> > /opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c: In function 
> > `do_flash_init':
> > /opt/ecos/cvs/ecos/packages/redboot/current/src/flash.c:1318: warning: 
> > unused variable `err_addr'
> > build finished
> >
> > (gdb) set $cpsr=0xd3
> > (gdb) load
> > Loading section .rom_vectors, size 0x40 lma 0x2020000
> > Loading section .text, size 0xbc28 lma 0x2020040
> > Loading section .rodata, size 0x1eb3 lma 0x202bc68
> > Loading section .data, size 0x738 lma 0x202db1c
> > Start address 0x2020040, load size 57939
> > Transfer rate: 6098 bits/sec, 499 bytes/write.
> >
> > *****************
> >
> > RedBoot(tm) bootstrap and debug environment [RAM]
> > Non-certified release, version UNKNOWN - built 20:45:01, Apr 18 2004
> >
> > Platform: Atmel AT91/EB40 (ARM7TDMI)
> > Copyright (C) 2000, 2001, 2002, Red Hat, Inc.
> >
> > RAM: 0x02000000-0x02080000, [0x02034400-0x02080000] available
> > FLASH: 0x00000000 - 0x00000001, 0 blocks of 0x00000000 bytes each.
> >
> >
> > *****************
> >
> > But the reboot is unable to find the flash, can anyone help with that?
> >
> > Is it possible to backup the flash before I flash with a working 
> > redboot?, because it is flashed with prebuild uClinux bootstrap - and 
> > would to keep it as a backup.
> >
> > Secondly I would really like to get the uCnet daugter board up and 
> > running, if anyone have information on that I would be happy.
> >
> > Thanks for your time and hope to get some help :)
> > Felix
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


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

end of thread, other threads:[~2004-04-20 23:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-18 13:03 [ECOS] cs8900a_int_vector Bob Koninckx
2004-04-18 18:50 ` Gary Thomas
2004-04-19  8:22   ` [ECOS] AT91/EB40 redboot and uCnet daugter board Felix Nielsen
2004-04-21  6:42     ` Felix Nielsen
2004-04-21  6:51       ` Gary Thomas
2004-04-20 16:30   ` [ECOS] cs8900a_int_vector Jani Monoses

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