Hello,
I am using PB 5.0 with a BSP from VIA technologies,
because my SBC is based on a complete VIA chipset,
All is identical to the VIA board except for the Ethernet controller
mounted on my SBC which is a RealTek RTL8139

When I try to remove the VIA Rhine LAN,
Platform Builder pops up a message saying that many features depend on that
component.
I'd like to replace the VIA Rhine LAN with RealTek RTL8139,
and not removing the LAN.

So I wonder if is possible to modify an existing BSP changing one of its
components,
and where PB knows that a component is related to another.
Can I remove this dependency ?

TIA

Re: Changing a BSP dependency by Mike

Mike
Tue Jul 26 07:03:03 CDT 2005

Hi Shutruk,

have a look into the platform.bib or platform.reg file. It could be that you
can disable the component with a variable switch. Than add directly your
Realtek Ethernet support to your project. As long as the registry setting
are not included in your kernel the VIA Ethernet driver will never be loaded
for the OS.

Best regards,

Mike Engel

"Shutruk Nahunte" <Shutruk@Nahunte.iq> escribió en el mensaje
news:eMNa4cdkFHA.3968@tk2msftngp13.phx.gbl...
> Hello,
> I am using PB 5.0 with a BSP from VIA technologies,
> because my SBC is based on a complete VIA chipset,
> All is identical to the VIA board except for the Ethernet controller
> mounted on my SBC which is a RealTek RTL8139
>
> When I try to remove the VIA Rhine LAN,
> Platform Builder pops up a message saying that many features depend on
that
> component.
> I'd like to replace the VIA Rhine LAN with RealTek RTL8139,
> and not removing the LAN.
>
> So I wonder if is possible to modify an existing BSP changing one of its
> components,
> and where PB knows that a component is related to another.
> Can I remove this dependency ?
>
> TIA
>
>
>
>



Re: Changing a BSP dependency by Shutruk

Shutruk
Tue Jul 26 09:17:48 CDT 2005

> have a look into the platform.bib or platform.reg file. It could be that you
> can disable the component with a variable switch. Than add directly your
> Realtek Ethernet support to your project. As long as the registry setting
> are not included in your kernel the VIA Ethernet driver will never be loaded
> for the OS.

Hi Mike,
I disabled the default ethernet with BSP_VIA_FETCE5B=0 in environment,
then added RTL8139,
but the VMINI network adapter never appears into the system.
Are you sure that is so easy as you said ?

TIA

Re: Changing a BSP dependency by Mike

Mike
Tue Jul 26 09:38:44 CDT 2005

Hi Shutruk,

Vmini is used for debugging only. If you would like to use it only disable
your ethernet driver, that it is not loaded during the debugging. Have you
looked into _FLASTRELEASEDIR\reginit.ini or _FLASTRELEASEDIR\ce.bib if your
VIA Ethernet driver has been sucessfully removed from you image? You can use
BSP_NOSHAREETH= for the Vmini setting, have a look into the common.reg.

Best regards,

Mike Engel

"Shutruk Nahunte" <shutruk@nahunte.iq> escribió en el mensaje
news:u$mOQzekFHA.1416@TK2MSFTNGP09.phx.gbl...
> > have a look into the platform.bib or platform.reg file. It could be that
you
> > can disable the component with a variable switch. Than add directly your
> > Realtek Ethernet support to your project. As long as the registry
setting
> > are not included in your kernel the VIA Ethernet driver will never be
loaded
> > for the OS.
>
> Hi Mike,
> I disabled the default ethernet with BSP_VIA_FETCE5B=0 in environment,
> then added RTL8139,
> but the VMINI network adapter never appears into the system.
> Are you sure that is so easy as you said ?
>
> TIA



Re: Changing a BSP dependency by Steve

Steve
Tue Jul 26 09:45:20 CDT 2005

Typically this means that multiple components depend on the presence of an
Ethernet driver (not necessarily the specific one you have) so as long as
you add the new driver into the OS design BEFORE removing the original one
you should be OK as there will always be one in the design

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com



Re: Changing a BSP dependency by Shutruk

Shutruk
Tue Jul 26 09:54:34 CDT 2005

Steve Maillet (eMVP) wrote:

> Typically this means that multiple components depend on the presence of an
> Ethernet driver (not necessarily the specific one you have) so as long as
> you add the new driver into the OS design BEFORE removing the original one
> you should be OK as there will always be one in the design
>

Unfortunately is not this case.
I added the new LAN before trying to remove the old one,
but the system does not enable this removal operation.

However with BSP_VIA_FETCE5B=0 in environment the only message I get
back is "This build environment is always including the selected item"

I never see the ethernet module in the debug log.

TIA

Re: Changing a BSP dependency by Shutruk

Shutruk
Tue Jul 26 10:05:13 CDT 2005

> Vmini is used for debugging only. If you would like to use it only disable
> your ethernet driver, that it is not loaded during the debugging.

No, it's my misunderstanding.
I do not need VMINI, (however in debug session the VMINI is OK)
I need a LAN up and running in the standalone release image (NK.BIN).

> Have you
> looked into _FLASTRELEASEDIR\reginit.ini or _FLASTRELEASEDIR\ce.bib if your
> VIA Ethernet driver has been sucessfully removed from you image? You can use
> BSP_NOSHAREETH= for the Vmini setting, have a look into the common.reg.


The FETCE5B.DLL (the VIA Rhine LAN driver) is again in the
_FLATRELEASEDIR directory, but now there is also the new RTL8139.DLL.

There are both FETCE5B and RTL8139 in _FLATRELEASEDIR\reginit.ini and
_FLATRELEASEDIR\ce.bib

What can I do now ?
TIA


Re: Changing a BSP dependency by Mike

Mike
Tue Jul 26 10:25:21 CDT 2005

Hi Shutruk,

you could remove the variable BSP_VIA_FETCE5B=0 from you settings and
include it into the *.bat file you have in you platform\VIA_BSP\ folder like
this.

set BSP_VIA_FETCE5B=

The problem could be that even with a zero PB will detect it as set. Thus,
better to no put any value.

They other possiblity is to modify the platform.reg and platform.bib. As you
do not need that Ethernet driver.

Have you had a look into the *.cec file? Maybe you can see their how to
disable the componente.

Best regards,

Mike Engel

"Shutruk Nahunte" <shutruk@nahunte.iq> escribió en el mensaje
news:#lvfwNfkFHA.3336@tk2msftngp13.phx.gbl...
> > Vmini is used for debugging only. If you would like to use it only
disable
> > your ethernet driver, that it is not loaded during the debugging.
>
> No, it's my misunderstanding.
> I do not need VMINI, (however in debug session the VMINI is OK)
> I need a LAN up and running in the standalone release image (NK.BIN).
>
> > Have you
> > looked into _FLASTRELEASEDIR\reginit.ini or _FLASTRELEASEDIR\ce.bib if
your
> > VIA Ethernet driver has been sucessfully removed from you image? You can
use
> > BSP_NOSHAREETH= for the Vmini setting, have a look into the common.reg.
>
>
> The FETCE5B.DLL (the VIA Rhine LAN driver) is again in the
> _FLATRELEASEDIR directory, but now there is also the new RTL8139.DLL.
>
> There are both FETCE5B and RTL8139 in _FLATRELEASEDIR\reginit.ini and
> _FLATRELEASEDIR\ce.bib
>
> What can I do now ?
> TIA
>



Re: Changing a BSP dependency by Shutruk

Shutruk
Tue Jul 26 12:02:35 CDT 2005

> you could remove the variable BSP_VIA_FETCE5B=0 from you settings and
> include it into the *.bat file you have in you platform\VIA_BSP\ folder like
> this.
>
> set BSP_VIA_FETCE5B=
>
> The problem could be that even with a zero PB will detect it as set. Thus,
> better to no put any value.

The best thing should undefine the variable, but how ?

> They other possiblity is to modify the platform.reg and platform.bib. As you
> do not need that Ethernet driver.
>
> Have you had a look into the *.cec file? Maybe you can see their how to
> disable the componente.

Yes, but I see nothing useful.

I have also tried with CE modules and symbols shows any LAN adapter (no
RTL8139 and no FETCE5B)

TIA

Re: Changing a BSP dependency by Steve

Steve
Tue Jul 26 13:11:23 CDT 2005

>The best thing should undefine the variable, but how ?
so long as there are no spaces after the "=" the following statement will
undefine the variable:
set BSP_VIA_FETCE5B=


--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com