* [ECOS] ixp42x NPE networking build issue.
@ 2005-12-28 16:56 Karel Gardas
2005-12-28 17:10 ` Andrew Lunn
2005-12-28 17:15 ` Mark Salter
0 siblings, 2 replies; 20+ messages in thread
From: Karel Gardas @ 2005-12-28 16:56 UTC (permalink / raw)
To: eCos Mailing List
Hello,
I'm experimenting with CVS eCos and trying to get it working for ixp42x
board including NPE ethernet support. I've downloaded:
Redboot-v2_01-epk.zip
Redboot-v2_01-npe-microcode.zip
files from intel.com and installed them following their documentation.
Unfortunately when I try to build ixdp425 with NPE Ethernet with `all'
packages, I get this error message:
arm-elf-gcc -c -I/home/karel/usr/local/xscale-npe1/full_install/include
-I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0
-I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src
-I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/tests
-I.
-I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/
-finline-limit=7000 -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes
-Winline -Wundef -g -O2 -ffunction-sections -fdata-sections
-fno-exceptions -mapcs-frame -D_KERNEL -D__ECOS -DCPU=33 -DXSCALE=33
-DIX_COMPONENT_NAME=1 -DNDEBUG
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/bufferMgt
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/core
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/modules/bufferMgt
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/modules/ioMem
-I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/platforms/ixp400
-Wp,-MD,src/if_npe.tmp -o src/devs_eth_intel_npe_common_if_npe.o
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c
In file included from
/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalIoMem.h:58,
from
/home/karel/usr/local/xscale-npe1/full_install/include/osal/IxOsalConfig.h:68,
from
/home/karel/usr/local/xscale-npe1/full_install/include/osal/IxOsal.h:62,
from
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:68:
/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalEndianess.h:74:2:
error: #error "Need something for non-RedBoot case!"
In file included from
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:68:
/home/karel/usr/local/xscale-npe1/full_install/include/osal/IxOsal.h:1133:
warning: function declaration isn't a prototype
In file included from
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsalBackward.h:57,
from
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsBuffMgt.h:52,
from
/home/karel/usr/local/xscale-npe1/full_install/include/IxEthAcc.h:56,
from
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:69:
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsalBackwardOsServices.h:72:1:
warning: "LOG_WARNING" redefined
In file included from
/home/karel/usr/local/xscale-npe1/full_install/include/cyg/io/eth/eth_drv.h:63,
from
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:66:
/home/karel/usr/local/xscale-npe1/full_install/include/sys/param.h:1023:1:
warning: this is the location of the previous definition
In file included from
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsalBackward.h:63,
from
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsBuffMgt.h:52,
from
/home/karel/usr/local/xscale-npe1/full_install/include/IxEthAcc.h:56,
from
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:69:
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsalBackwardOssl.h:166:
warning: function declaration isn't a prototype
/home/karel/usr/local/xscale-npe1/full_install/include/IxOsalBackwardOssl.h:246:
warning: function declaration isn't a prototype
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:
In function 'npe_init':
/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:917:
warning: unused variable 'i'
make[1]: *** [src/if_npe.o.d] Error 1
make[1]: Leaving directory
`/home/karel/usr/local/xscale-npe1/full_build/devs/eth/intel/npe/common/v2_0'
make: *** [build] Error 2
Has anybody here succeed compiling this stuff?
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 16:56 [ECOS] ixp42x NPE networking build issue Karel Gardas
@ 2005-12-28 17:10 ` Andrew Lunn
2005-12-28 17:15 ` Mark Salter
1 sibling, 0 replies; 20+ messages in thread
From: Andrew Lunn @ 2005-12-28 17:10 UTC (permalink / raw)
To: Karel Gardas; +Cc: eCos Mailing List
On Wed, Dec 28, 2005 at 05:56:05PM +0100, Karel Gardas wrote:
>
> Hello,
>
> I'm experimenting with CVS eCos and trying to get it working for ixp42x
> board including NPE ethernet support. I've downloaded:
>
> Redboot-v2_01-epk.zip
> Redboot-v2_01-npe-microcode.zip
>
> files from intel.com and installed them following their documentation.
> Unfortunately when I try to build ixdp425 with NPE Ethernet with `all'
> packages, I get this error message:
>
> arm-elf-gcc -c -I/home/karel/usr/local/xscale-npe1/full_install/include
> -I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0
> -I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src
> -I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/tests
> -I.
> -I/usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/
> -finline-limit=7000 -mcpu=xscale -Wall -Wpointer-arith -Wstrict-prototypes
> -Winline -Wundef -g -O2 -ffunction-sections -fdata-sections
> -fno-exceptions -mapcs-frame -D_KERNEL -D__ECOS -DCPU=33 -DXSCALE=33
> -DIX_COMPONENT_NAME=1 -DNDEBUG
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/bufferMgt
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/core
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/modules/bufferMgt
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/modules/ioMem
> -I/home/karel/usr/local/xscale-npe1/full_install/include/osal/ecos/platforms/ixp400
> -Wp,-MD,src/if_npe.tmp -o src/devs_eth_intel_npe_common_if_npe.o
> /usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c
> In file included from
> /home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalIoMem.h:58,
> from
> /home/karel/usr/local/xscale-npe1/full_install/include/osal/IxOsalConfig.h:68,
> from
> /home/karel/usr/local/xscale-npe1/full_install/include/osal/IxOsal.h:62,
> from
> /usr/local/src/cvs/ecos/ecos/packages/devs/eth/intel/npe/common/v2_0/src/if_npe.c:68:
> /home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalEndianess.h:74:2:
> error: #error "Need something for non-RedBoot case!"
The code from Intel is only for RedBoot, not normal eCos applications.
Search the archive, there have been a few people who have added the
extra code needed for using the ethernet in normal applications.
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] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 16:56 [ECOS] ixp42x NPE networking build issue Karel Gardas
2005-12-28 17:10 ` Andrew Lunn
@ 2005-12-28 17:15 ` Mark Salter
2005-12-28 18:35 ` Karel Gardas
1 sibling, 1 reply; 20+ messages in thread
From: Mark Salter @ 2005-12-28 17:15 UTC (permalink / raw)
To: Karel Gardas; +Cc: eCos Mailing List
On Wed, 2005-12-28 at 17:56 +0100, Karel Gardas wrote:
> Hello,
>
> I'm experimenting with CVS eCos and trying to get it working for ixp42x
> board including NPE ethernet support. I've downloaded:
>
> Redboot-v2_01-epk.zip
> Redboot-v2_01-npe-microcode.zip
>
> files from intel.com and installed them following their documentation.
> Unfortunately when I try to build ixdp425 with NPE Ethernet with `all'
> packages, I get this error message:
>
> /home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalEndianess.h:74:2:
> error: #error "Need something for non-RedBoot case!"
I think the error message is a pretty good clue.
>
> Has anybody here succeed compiling this stuff?
>
jerzy.dyrda@kontron.pl got the older NPE driver working as a full eCos
driver. But the 2_01 Intel code is a good bit different and I wasn't
able to include Jerzy's work due to time constraints in the contract
that paid for the RedBoot-only port.
--Mark
--
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] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 17:15 ` Mark Salter
@ 2005-12-28 18:35 ` Karel Gardas
2005-12-28 20:39 ` Karel Gardas
0 siblings, 1 reply; 20+ messages in thread
From: Karel Gardas @ 2005-12-28 18:35 UTC (permalink / raw)
To: Mark Salter, Andrew Lunn; +Cc: eCos Mailing List
On Wed, 28 Dec 2005, Mark Salter wrote:
> On Wed, 2005-12-28 at 17:56 +0100, Karel Gardas wrote:
>> Hello,
>>
>> I'm experimenting with CVS eCos and trying to get it working for ixp42x
>> board including NPE ethernet support. I've downloaded:
>>
>> Redboot-v2_01-epk.zip
>> Redboot-v2_01-npe-microcode.zip
>>
>> files from intel.com and installed them following their documentation.
>> Unfortunately when I try to build ixdp425 with NPE Ethernet with `all'
>> packages, I get this error message:
>>
>> /home/karel/usr/local/xscale-npe1/full_install/include/osal/modules/ioMem/IxOsalEndianess.h:74:2:
>> error: #error "Need something for non-RedBoot case!"
>
> I think the error message is a pretty good clue.
Yes, it is hence my question.
>>
>> Has anybody here succeed compiling this stuff?
>>
>
> jerzy.dyrda@kontron.pl got the older NPE driver working as a full eCos
> driver. But the 2_01 Intel code is a good bit different and I wasn't
> able to include Jerzy's work due to time constraints in the contract
> that paid for the RedBoot-only port.
Thanks to you both Mark and Andrew! The only older version available on
the intel website seems to be 1.94, I hope this is what Jerzy used and
which will also do the job for me.
Thanks!
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 18:35 ` Karel Gardas
@ 2005-12-28 20:39 ` Karel Gardas
2005-12-28 21:05 ` Mark Salter
0 siblings, 1 reply; 20+ messages in thread
From: Karel Gardas @ 2005-12-28 20:39 UTC (permalink / raw)
To: Mark Salter, Andrew Lunn; +Cc: eCos Mailing List
On Wed, 28 Dec 2005, Karel Gardas wrote:
>> jerzy.dyrda@kontron.pl got the older NPE driver working as a full eCos
>> driver. But the 2_01 Intel code is a good bit different and I wasn't
>> able to include Jerzy's work due to time constraints in the contract
>> that paid for the RedBoot-only port.
>
> Thanks to you both Mark and Andrew! The only older version available on the
> intel website seems to be 1.94, I hope this is what Jerzy used and which will
> also do the job for me.
FYI: adding npe-1.4.epk to the current CVS fails with:
silence:/usr/local/src/cvs/ecos/ecos/packages$ ./ecosadmin.tcl add /tmp/rebdoot/npe-1.4.epk
ecosadmin error: extracting pkgadd.db:
tar: Read 6144 bytes from -
silence:/usr/local/src/cvs/ecos/ecos/packages$
so it seems manual "merge" will be needed...
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 20:39 ` Karel Gardas
@ 2005-12-28 21:05 ` Mark Salter
2005-12-28 21:14 ` Karel Gardas
0 siblings, 1 reply; 20+ messages in thread
From: Mark Salter @ 2005-12-28 21:05 UTC (permalink / raw)
To: Karel Gardas; +Cc: Andrew Lunn, eCos Mailing List
On Wed, 2005-12-28 at 21:39 +0100, Karel Gardas wrote:
> On Wed, 28 Dec 2005, Karel Gardas wrote:
>
> >> jerzy.dyrda@kontron.pl got the older NPE driver working as a full eCos
> >> driver. But the 2_01 Intel code is a good bit different and I wasn't
> >> able to include Jerzy's work due to time constraints in the contract
> >> that paid for the RedBoot-only port.
> >
> > Thanks to you both Mark and Andrew! The only older version available on the
> > intel website seems to be 1.94, I hope this is what Jerzy used and which will
> > also do the job for me.
>
> FYI: adding npe-1.4.epk to the current CVS fails with:
>
> silence:/usr/local/src/cvs/ecos/ecos/packages$ ./ecosadmin.tcl add /tmp/rebdoot/npe-1.4.epk
> ecosadmin error: extracting pkgadd.db:
> tar: Read 6144 bytes from -
> silence:/usr/local/src/cvs/ecos/ecos/packages$
>
> so it seems manual "merge" will be needed...
>
6144 bytes looks wrong. tar should be reading around 1MB. Looks
like something is wrong with the .epk file. The file is really
a gzip'ed tarball, so "tar -ztf npe-1.4.epk" should give you a
list of the contents.
--Mark
--
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] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 21:05 ` Mark Salter
@ 2005-12-28 21:14 ` Karel Gardas
2005-12-28 21:31 ` Andrew Lunn
2005-12-28 22:00 ` Mark Salter
0 siblings, 2 replies; 20+ messages in thread
From: Karel Gardas @ 2005-12-28 21:14 UTC (permalink / raw)
To: Mark Salter; +Cc: Andrew Lunn, eCos Mailing List
On Wed, 28 Dec 2005, Mark Salter wrote:
> On Wed, 2005-12-28 at 21:39 +0100, Karel Gardas wrote:
>> On Wed, 28 Dec 2005, Karel Gardas wrote:
>>
>>>> jerzy.dyrda@kontron.pl got the older NPE driver working as a full eCos
>>>> driver. But the 2_01 Intel code is a good bit different and I wasn't
>>>> able to include Jerzy's work due to time constraints in the contract
>>>> that paid for the RedBoot-only port.
>>>
>>> Thanks to you both Mark and Andrew! The only older version available on the
>>> intel website seems to be 1.94, I hope this is what Jerzy used and which will
>>> also do the job for me.
>>
>> FYI: adding npe-1.4.epk to the current CVS fails with:
>>
>> silence:/usr/local/src/cvs/ecos/ecos/packages$ ./ecosadmin.tcl add /tmp/rebdoot/npe-1.4.epk
>> ecosadmin error: extracting pkgadd.db:
>> tar: Read 6144 bytes from -
>> silence:/usr/local/src/cvs/ecos/ecos/packages$
>>
>> so it seems manual "merge" will be needed...
>>
>
> 6144 bytes looks wrong. tar should be reading around 1MB. Looks
> like something is wrong with the .epk file. The file is really
> a gzip'ed tarball, so "tar -ztf npe-1.4.epk" should give you a
> list of the contents.
Yes, I think the intention of the error above is that ecosadmin "detects"
error in pkgadd.db and exists making tar also exists. Anyway, the file is
OK, I've decomplressed it and did
cat pkgadd.db >> <path>/ecos.db
I've also copied Jerzy's if_npe.c and now I'm fighting with various
compilation issues. Generaly Intel code's complaining about RebBoot not
enabled. Is RedBoot required for this to work? i.e. do I need to build my
NPE-enabled eCos app including RedBoot just to be able to build it?
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 21:14 ` Karel Gardas
@ 2005-12-28 21:31 ` Andrew Lunn
2005-12-28 21:51 ` Karel Gardas
2005-12-28 22:00 ` Mark Salter
1 sibling, 1 reply; 20+ messages in thread
From: Andrew Lunn @ 2005-12-28 21:31 UTC (permalink / raw)
To: Karel Gardas; +Cc: Mark Salter, Andrew Lunn, eCos Mailing List
> Yes, I think the intention of the error above is that ecosadmin "detects"
> error in pkgadd.db and exists making tar also exists. Anyway, the file is
> OK, I've decomplressed it and did
> cat pkgadd.db >> <path>/ecos.db
>
> I've also copied Jerzy's if_npe.c and now I'm fighting with various
> compilation issues. Generaly Intel code's complaining about RebBoot not
> enabled. Is RedBoot required for this to work? i.e. do I need to build my
> NPE-enabled eCos app including RedBoot just to be able to build it?
Now, you do not want RedBoot.
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] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 21:31 ` Andrew Lunn
@ 2005-12-28 21:51 ` Karel Gardas
0 siblings, 0 replies; 20+ messages in thread
From: Karel Gardas @ 2005-12-28 21:51 UTC (permalink / raw)
To: Andrew Lunn; +Cc: Mark Salter, eCos Mailing List
On Wed, 28 Dec 2005, Andrew Lunn wrote:
>> Yes, I think the intention of the error above is that ecosadmin "detects"
>> error in pkgadd.db and exists making tar also exists. Anyway, the file is
>> OK, I've decomplressed it and did
>> cat pkgadd.db >> <path>/ecos.db
>>
>> I've also copied Jerzy's if_npe.c and now I'm fighting with various
>> compilation issues. Generaly Intel code's complaining about RebBoot not
>> enabled. Is RedBoot required for this to work? i.e. do I need to build my
>> NPE-enabled eCos app including RedBoot just to be able to build it?
>
> Now, you do not want RedBoot.
I also though that, but unfortunatelly whole code looks like expecting
RedBoot... Now I'm fighting with this (RedBoot still not enabled in
config), which seems to be MAC address "detection":
if_npe.c file from Jerzy:
806 // Set MAC address
807 #if defined(CYGSEM_NPE_REDBOOT_HOLDS_ESA)
808 {
809 char *cfgname = NULL;
810 #if defined(CYGSEM_INTEL_NPE_USE_ETH0)
811 if (p_npe == &npe_eth0_priv_data)
812 cfgname = "npe_eth0_esa";
813 #endif
814 #if defined(CYGSEM_INTEL_NPE_USE_ETH1)
815 if (p_npe == &npe_eth1_priv_data)
816 cfgname = "npe_eth1_esa";
817 #endif
818
819 #elif defined(CYGHAL_GET_NPE_ESA)
820
821 mac_ok = CYGACC_CALL_IF_FLASH_CFG_OP(CYGNUM_CALL_IF_FLASH_CFG_GET, cfgname,
822 p_npe->mac_address, CONFIG_ESA);
823 }
1. cfgname is used here, but it is not defined. It is defined in above
#ifdef statement.
2. CONFIG_ESA is not defined. It seems CONFIG_ESA is defined to 6 when
RedBoot is enabled
824 #else
825 #error No mechanism to get MAC address
826 #endif
827
828 if (!mac_ok) {
829 #ifdef DEBUG
830 diag_printf("Error getting MAC address.\n");
831 #endif
832 return 0;
833 }
here we test !mac_ok, but strangely when CYGSEM_NPE_REDBOOT_HOLDS_ESA is
defined, then mac_ok is not set to true.
So now, I'm searching where is all these defines provided to find out more
info about this issue.
Thanks,
Karel
--
Karel Gardas kgardas@objectsecurity.com
ObjectSecurity Ltd. http://www.objectsecurity.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 21:14 ` Karel Gardas
2005-12-28 21:31 ` Andrew Lunn
@ 2005-12-28 22:00 ` Mark Salter
2006-01-09 10:07 ` jerzy dyrda
1 sibling, 1 reply; 20+ messages in thread
From: Mark Salter @ 2005-12-28 22:00 UTC (permalink / raw)
To: Karel Gardas; +Cc: Andrew Lunn, eCos Mailing List
On Wed, 2005-12-28 at 22:13 +0100, Karel Gardas wrote:
> I've also copied Jerzy's if_npe.c and now I'm fighting with various
> compilation issues. Generaly Intel code's complaining about RebBoot not
> enabled. Is RedBoot required for this to work? i.e. do I need to build my
> NPE-enabled eCos app including RedBoot just to be able to build it?
>
Hmm, Jerzy may have had to make changes in the Intel code to get it all
to build. RedBoot isn't the solution.
--Mark
--
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] 20+ messages in thread
* Re: [ECOS] ixp42x NPE networking build issue.
2005-12-28 22:00 ` Mark Salter
@ 2006-01-09 10:07 ` jerzy dyrda
0 siblings, 0 replies; 20+ messages in thread
From: jerzy dyrda @ 2006-01-09 10:07 UTC (permalink / raw)
To: ecos-discuss, Karel Gardas
Hello all,
On Wednesday 28 of December 2005 23:00, Mark Salter wrote:
> On Wed, 2005-12-28 at 22:13 +0100, Karel Gardas wrote:
> > I've also copied Jerzy's if_npe.c and now I'm fighting with various
> > compilation issues. Generaly Intel code's complaining about RebBoot not
> > enabled. Is RedBoot required for this to work? i.e. do I need to build my
> > NPE-enabled eCos app including RedBoot just to be able to build it?
>
> Hmm, Jerzy may have had to make changes in the Intel code to get it all
> to build. RedBoot isn't the solution.
>
Sorry, but I have had vacation.
I made some modification in Intel code ( very minor ) but without their npe
driver can't be compiled.
Regarding MAC address - I "ported" this driver to custom board with own mac
getting mechanism ( I have special function to do it) - please don't suggest
actual state of CONFIG_ESA - it is valid only for RedBoot.
Karel : I assume that you need to add some defines like DEBUG ( I made
mistake add counter - variable i - and forgot to remove, this problem appears
only when DEBUG is define ) or NPE_USE_INTS
( initially I tried to use suspended thread to pool dispatcherFunc() ) which
are added to cdl file.
Best Regards,
jerzy
--
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] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue.
@ 2006-07-17 5:40 vijay.peshkar
0 siblings, 0 replies; 20+ messages in thread
From: vijay.peshkar @ 2006-07-17 5:40 UTC (permalink / raw)
To: jerzy.dyrda, ecos-discuss, kgardas
Hi all,
Am a newbie to ecos on ixp425 npe.
Searching my mails archive, found the below discussion.
Any pointers on availiblity of eth npe driver(if_npe.c ?)
Or I will have to write it from scratch?.
Jerzy and Karel - any pointers would be helpful.
Regards,
Vijay
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of jerzy dyrda
Sent: Monday, January 09, 2006 3:37 PM
To: ecos-discuss@ecos.sourceware.org; Karel Gardas
Subject: Re: [ECOS] ixp42x NPE networking build issue.
Hello all,
On Wednesday 28 of December 2005 23:00, Mark Salter wrote:
> On Wed, 2005-12-28 at 22:13 +0100, Karel Gardas wrote:
> > I've also copied Jerzy's if_npe.c and now I'm fighting with various
> > compilation issues. Generaly Intel code's complaining about RebBoot
> > not enabled. Is RedBoot required for this to work? i.e. do I need to
> > build my NPE-enabled eCos app including RedBoot just to be able to
build it?
>
> Hmm, Jerzy may have had to make changes in the Intel code to get it
> all to build. RedBoot isn't the solution.
>
Sorry, but I have had vacation.
I made some modification in Intel code ( very minor ) but without their
npe
driver can't be compiled.
Regarding MAC address - I "ported" this driver to custom board with own
mac getting mechanism ( I have special function to do it) - please don't
suggest actual state of CONFIG_ESA - it is valid only for RedBoot.
Karel : I assume that you need to add some defines like DEBUG ( I made
mistake add counter - variable i - and forgot to remove, this problem
appears only when DEBUG is define ) or NPE_USE_INTS ( initially I tried
to use suspended thread to pool dispatcherFunc() ) which are added to
cdl file.
Best Regards,
jerzy
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue.
@ 2006-07-18 3:44 vijay.peshkar
2006-07-18 14:22 ` Mark Salter
0 siblings, 1 reply; 20+ messages in thread
From: vijay.peshkar @ 2006-07-18 3:44 UTC (permalink / raw)
To: jerzy.dyrda, ecos-discuss
Hi Jerzy,
Thanks for the reply. Are you saying that such a driver already exists
For non-interrupt mode?. Am unable to locate it.
The intel site no longer maintains redboot for IXP425. Its all 2800 now.
And, even in this 2800's redboot, I guess I will have to extract the
same and
Port it to IXP425 and also to run in my non-redboot build?.
Another alternative am thinking of is to check if netbsd has a npe
driver.
Regards,
Vijay
-----Original Message-----
From: jerzy dyrda [mailto:jerzy.dyrda@kontron.pl]
Sent: Monday, July 17, 2006 8:59 PM
To: Vijay Kumar Peshkar (WT01 - Semiconductors IP Solutions)
Subject: Re: [ECOS] ixp42x NPE networking build issue.
Hello Vijay,
> Am a newbie to ecos on ixp425 npe.
> Searching my mails archive, found the below discussion.
> Any pointers on availiblity of eth npe driver(if_npe.c ?)
Discussion was about extending driver to interrupt mode but if you use
Redboot you don't need such feature.
> Or I will have to write it from scratch?.
No driver has been ported to Redboot - below it's mail from Mark Salter
(author of this port) about as I suppose similar question.
> > Hi,
> >
> > It may be basic or asked before but still.... ,does
> > Ecos have microcode for the npe's ? which can configure the npe as
> > eternet,
atm,
> > hss ... ,I have options like
> >
>
> The eCos CVS repository does not have the NPE microcode because of
> license issues with it and the Intel CSR library. You can grab both
> from Intel:
>
> http://developer.intel.com/design/network/products/npfamily/ixp425swr1
> .htm
>
> --Mark
Best regards,
jerzy
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue.
@ 2006-07-20 10:29 vijay.peshkar
2006-07-20 13:36 ` Mark Salter
0 siblings, 1 reply; 20+ messages in thread
From: vijay.peshkar @ 2006-07-20 10:29 UTC (permalink / raw)
To: msalter; +Cc: jerzy.dyrda, ecos-discuss
Mark,
I picked up if_npe.c from Jerzy's mail as am not seeing it in any other
place/CVS.
Also, have downloaded the microcode(IxNpeMicrocode.c) from the link you
have suggested below.
But the epk you mentioned contains only the RedBoot Pre-Built Binaries
(includes NPE Ethernet support).
Since my aim is to get the NPE eth working on my regular image, this
would not be helpful.
Now,the only missing link in my puzzle is the access library.
Is there any ecos access library (which intel must have ported for its
ecos redboot binary) that can be used or I have to port the whole access
library to ecos?.
Regards,
Vijay
-----Original Message-----
From: ecos-discuss-owner@ecos.sourceware.org
[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Mark Salter
Sent: Tuesday, July 18, 2006 7:52 PM
To: Vijay Kumar Peshkar (WT01 - Semiconductors IP Solutions)
Cc: jerzy.dyrda@kontron.pl; ecos-discuss@ecos.sourceware.org
Subject: RE: [ECOS] ixp42x NPE networking build issue.
On Tue, 2006-07-18 at 09:13 +0530, vijay.peshkar@wipro.com wrote:
> The intel site no longer maintains redboot for IXP425. Its all 2800
now.
http://developer.intel.com/design/network/products/npfamily/ixp425swr1.h
tm
After registration/login you can get to the NPE driver code (eCos .epk)
and microcode. The same driver works for all IXP4xx family. It is a
RedBoot-only driver, but I may have an opportunity to add interrupt
support (Jerzy did this for an earlier version) to the official Intel
package in the near future.
--Mark
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.
WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
www.wipro.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
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue.
2006-07-20 10:29 vijay.peshkar
@ 2006-07-20 13:36 ` Mark Salter
0 siblings, 0 replies; 20+ messages in thread
From: Mark Salter @ 2006-07-20 13:36 UTC (permalink / raw)
To: vijay.peshkar; +Cc: jerzy.dyrda, ecos-discuss
On Thu, 2006-07-20 at 15:59 +0530, vijay.peshkar@wipro.com wrote:
> Mark,
>
> I picked up if_npe.c from Jerzy's mail as am not seeing it in any other
> place/CVS.
> Also, have downloaded the microcode(IxNpeMicrocode.c) from the link you
> have suggested below.
>
> But the epk you mentioned contains only the RedBoot Pre-Built Binaries
> (includes NPE Ethernet support).
The link for "RedBoot 2.02 NPE support in an eCos Package File (epk)"
will download "Redboot-v2_02-epk.zip" which unzips into npe-2.02.epk.
This contains the access library code sources with RedBoot support.
Add it to your source tree with something like:
% ecosadmin.tcl add npe-2.02.epk
--Mark
--
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] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue
@ 2006-07-26 5:59 sumanth
2006-07-26 14:57 ` Mark Salter
2006-08-01 13:15 ` sumanth
0 siblings, 2 replies; 20+ messages in thread
From: sumanth @ 2006-07-26 5:59 UTC (permalink / raw)
To: ecos-discuss
HI Jerzy and Mark,
This is sumanth , i have compiled the source of ecos what intel
gives ,but i am short falling of one header file which i could'nt get in the
intel site, can you please give us the link from where we can get the header
file
devs_eth_intel_npe.h
Thanks & regards,
Sumanth.
--
View this message in context: http://www.nabble.com/RE%3A--ECOS--ixp42x-NPE-networking-build-issue-tf2002214.html#a5498126
Sent from the Sourceware - ecos-discuss forum 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
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue
2006-07-26 5:59 sumanth
@ 2006-07-26 14:57 ` Mark Salter
2006-08-01 13:15 ` sumanth
1 sibling, 0 replies; 20+ messages in thread
From: Mark Salter @ 2006-07-26 14:57 UTC (permalink / raw)
To: sumanth; +Cc: ecos-discuss
On Tue, 2006-07-25 at 22:59 -0700, sumanth wrote:
> HI Jerzy and Mark,
>
> This is sumanth , i have compiled the source of ecos what intel
> gives ,but i am short falling of one header file which i could'nt get in the
> intel site, can you please give us the link from where we can get the header
> file
> devs_eth_intel_npe.h
>
This file is generated during the build. It is not part of the sources.
If you properly configure things to include the NPE packages, that
file will get generated in <builddir>/install/include/pkgconf.
--Mark
--
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] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue
2006-07-26 5:59 sumanth
2006-07-26 14:57 ` Mark Salter
@ 2006-08-01 13:15 ` sumanth
2006-08-01 15:34 ` Mark Salter
1 sibling, 1 reply; 20+ messages in thread
From: sumanth @ 2006-08-01 13:15 UTC (permalink / raw)
To: ecos-discuss
Hi Mark & Jerzy,
I am trying to build the ram based image with npe
support, now i am able to suceed by compiling the redboot related acess
library which intel supplies, but when i call the api which starts the
downloading of microcode and start functioning
ixNpeDlNpeInitAndStart(IX_NPEDL_NPEIMAGE_NPEB_ETH);
he show the error message as [warning] Warning: the NPE B component you
specified does not exist
he is searching the microcode for NPE B at location 0x01000200 ,where that
Macro was defined to.
But since i compiled this NPE B microcode is at different location. are
there any compiler options such that we can specify the binary should be
loaded at specific location ?
are there any other mechanism to locate the microcode for NPE B and
download that into npe.
Thanks for your earlier repley, with that only i could proceed upto here.
Thanks & regards,
Sumanth.
--
View this message in context: http://www.nabble.com/RE%3A--ECOS--ixp42x-NPE-networking-build-issue-tf2002214.html#a5594188
Sent from the Sourceware - ecos-discuss forum 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
^ permalink raw reply [flat|nested] 20+ messages in thread
* RE: [ECOS] ixp42x NPE networking build issue
2006-08-01 13:15 ` sumanth
@ 2006-08-01 15:34 ` Mark Salter
0 siblings, 0 replies; 20+ messages in thread
From: Mark Salter @ 2006-08-01 15:34 UTC (permalink / raw)
To: sumanth; +Cc: ecos-discuss
On Tue, 2006-08-01 at 06:15 -0700, sumanth wrote:
> Hi Mark & Jerzy,
> I am trying to build the ram based image with npe
> support, now i am able to suceed by compiling the redboot related acess
> library which intel supplies, but when i call the api which starts the
> downloading of microcode and start functioning
> ixNpeDlNpeInitAndStart(IX_NPEDL_NPEIMAGE_NPEB_ETH);
> he show the error message as [warning] Warning: the NPE B component you
> specified does not exist
> he is searching the microcode for NPE B at location 0x01000200 ,where that
> Macro was defined to.
Are you sure? I thought those macros (IX_NPEDL_NPEIMAGE_NPEB_ETH et al)
were bitfields indicating the functionality of the microcode, not the
microcode's address. The CSR library code looks for the microcode in
the IxNpeMicrocode_array[] array.
--Mark
--
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] 20+ messages in thread
end of thread, other threads:[~2006-08-01 15:34 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28 16:56 [ECOS] ixp42x NPE networking build issue Karel Gardas
2005-12-28 17:10 ` Andrew Lunn
2005-12-28 17:15 ` Mark Salter
2005-12-28 18:35 ` Karel Gardas
2005-12-28 20:39 ` Karel Gardas
2005-12-28 21:05 ` Mark Salter
2005-12-28 21:14 ` Karel Gardas
2005-12-28 21:31 ` Andrew Lunn
2005-12-28 21:51 ` Karel Gardas
2005-12-28 22:00 ` Mark Salter
2006-01-09 10:07 ` jerzy dyrda
2006-07-17 5:40 vijay.peshkar
2006-07-18 3:44 vijay.peshkar
2006-07-18 14:22 ` Mark Salter
2006-07-20 10:29 vijay.peshkar
2006-07-20 13:36 ` Mark Salter
2006-07-26 5:59 sumanth
2006-07-26 14:57 ` Mark Salter
2006-08-01 13:15 ` sumanth
2006-08-01 15:34 ` Mark Salter
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).