* [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC
@ 2009-02-07 0:27 ksi at koi8.net
2009-02-07 0:44 ` Ben Warren
0 siblings, 1 reply; 4+ messages in thread
From: ksi at koi8.net @ 2009-02-07 0:27 UTC (permalink / raw)
To: u-boot
This fixes MPC8260 compilation with ethernet on SCC. Probably was a
typo or something...
Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
---
diff -purN u-boot.orig/cpu/mpc8260/cpu.c u-boot/cpu/mpc8260/cpu.c
--- u-boot.orig/cpu/mpc8260/cpu.c 2009-02-02 13:39:05.000000000 -0800
+++ u-boot/cpu/mpc8260/cpu.c 2009-02-06 15:29:28.000000000 -0800
@@ -327,7 +327,7 @@ int cpu_eth_init(bd_t *bis)
fec_initialize(bis);
#endif
#if defined(CONFIG_ETHER_ON_SCC)
- mpc82xx_scc_enet_initialize(bd);
+ mpc82xx_scc_enet_initialize(bis);
#endif
return 0;
}
---
******************************************************************
* KSI at home KOI8 Net < > The impossible we do immediately. *
* Las Vegas NV, USA < > Miracles require 24-hour notice. *
******************************************************************
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC
2009-02-07 0:27 [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC ksi at koi8.net
@ 2009-02-07 0:44 ` Ben Warren
2009-02-10 19:38 ` Heiko Schocher
0 siblings, 1 reply; 4+ messages in thread
From: Ben Warren @ 2009-02-07 0:44 UTC (permalink / raw)
To: u-boot
ksi at koi8.net wrote:
> This fixes MPC8260 compilation with ethernet on SCC. Probably was a
> typo or something...
>
> Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
> ---
> diff -purN u-boot.orig/cpu/mpc8260/cpu.c u-boot/cpu/mpc8260/cpu.c
> --- u-boot.orig/cpu/mpc8260/cpu.c 2009-02-02 13:39:05.000000000 -0800
> +++ u-boot/cpu/mpc8260/cpu.c 2009-02-06 15:29:28.000000000 -0800
> @@ -327,7 +327,7 @@ int cpu_eth_init(bd_t *bis)
> fec_initialize(bis);
> #endif
> #if defined(CONFIG_ETHER_ON_SCC)
> - mpc82xx_scc_enet_initialize(bd);
> + mpc82xx_scc_enet_initialize(bis);
> #endif
> return 0;
> }
>
Nice catch. I'll apply it tonight.
regards,
Ben
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC
2009-02-07 0:44 ` Ben Warren
@ 2009-02-10 19:38 ` Heiko Schocher
2009-02-11 21:23 ` Wolfgang Denk
0 siblings, 1 reply; 4+ messages in thread
From: Heiko Schocher @ 2009-02-10 19:38 UTC (permalink / raw)
To: u-boot
Hello Ben,
Ben Warren wrote:
> ksi at koi8.net wrote:
>
>> This fixes MPC8260 compilation with ethernet on SCC. Probably was a
>> typo or something...
>>
>> Signed-off-by: Sergey Kubushyn <ksi@koi8.net>
>> ---
>> diff -purN u-boot.orig/cpu/mpc8260/cpu.c u-boot/cpu/mpc8260/cpu.c
>> --- u-boot.orig/cpu/mpc8260/cpu.c 2009-02-02 13:39:05.000000000 -0800
>> +++ u-boot/cpu/mpc8260/cpu.c 2009-02-06 15:29:28.000000000 -0800
>> @@ -327,7 +327,7 @@ int cpu_eth_init(bd_t *bis)
>> fec_initialize(bis);
>> #endif
>> #if defined(CONFIG_ETHER_ON_SCC)
>> - mpc82xx_scc_enet_initialize(bd);
>> + mpc82xx_scc_enet_initialize(bis);
>> #endif
>> return 0;
>> }
>>
>>
> Nice catch. I'll apply it tonight.
>
This is introduced from:
[hs at pollux u-boot]$ git log cpu/mpc8260/ether_scc.c
commit ba705b5b1a97b47388ed48858bef6bf7b6bfcd56
Author: Gary Jennejohn <garyj@denx.de>
Date: Thu Nov 20 12:28:38 2008 +0100
mgcoge make ether_scc.c work with CONFIG_NET_MULTI
This change is needed for mgcoge because it uses two ethernet drivers.
Add a check for the presence of the PIGGY board on mgcoge. Without this
board networking cannot work and the initialization must be aborted.
Only allocate rtx once to prevent DPRAM exhaustion.
Initialize ether_scc.c and the keymile-specific HDLC driver (to be added
soon) in eth.c.
Signed-off-by: Gary Jennejohn <garyj@denx.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
This patch also breaks compiling the mgcoge :-(
[hs at pollux u-boot]$ ./MAKEALL mgcoge
Configuring for mgcoge board...
ether_scc.c:47:2: error: #error "CONFIG_NET_MULTI must be defined."
cpu.c: In function 'cpu_eth_init':
cpu.c:330: error: 'bd' undeclared (first use in this function)
cpu.c:330: error: (Each undeclared identifier is reported only once
cpu.c:330: error: for each function it appears in.)
make[1]: *** [cpu.o] Fehler 1
make: *** [cpu/mpc8260/libmpc8260.a] Fehler 2
make: *** Warte auf noch nicht beendete Prozesse...
ppc_82xx-size: './u-boot': No such file
Second error fixed from ksi's patch.
Seems to me the mgcoge port is the only actual existing 8260 port who
uses CONFIG_ETHER_ON_SCC ... so adding a CONFIG_NET_MULTI
only in this config File will help ;-)
So, please when adding ksi's patch, add the following to:
Signed-off-by: Heiko Schocher <hs@denx.de>
---
include/configs/mgcoge.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/include/configs/mgcoge.h b/include/configs/mgcoge.h
index e4f4ff9..22e50ab 100644
--- a/include/configs/mgcoge.h
+++ b/include/configs/mgcoge.h
@@ -67,6 +67,7 @@
#define CONFIG_ETHER_ON_SCC /* Ethernet is on SCC */
#undef CONFIG_ETHER_ON_FCC /* Ethernet is not on FCC */
#undef CONFIG_ETHER_NONE /* No external Ethernet */
+#define CONFIG_NET_MULTI 1
#define CONFIG_ETHER_INDEX 4
#define CONFIG_SYS_SCC_TOUT_LOOP 10000000
--
1.6.0.6
bye
heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC
2009-02-10 19:38 ` Heiko Schocher
@ 2009-02-11 21:23 ` Wolfgang Denk
0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2009-02-11 21:23 UTC (permalink / raw)
To: u-boot
Dear Heiko,
In message <4991D7C9.9010100@denx.de> you wrote:
>
> This patch also breaks compiling the mgcoge :-(
...
> So, please when adding ksi's patch, add the following to:
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
> ---
> include/configs/mgcoge.h | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Sorry, doesn't apply:
error: patch failed: include/configs/mgcoge.h:67
error: include/configs/mgcoge.h: patch does not apply
fatal: sha1 information is lacking or useless
(include/configs/mgcoge.h).
Repository lacks necessary blobs to fall back on 3-way merge.
Cannot fall back to three-way merge.
Patch failed at 0001.
[And please provide a usable Subject / commit message. Thanks.]
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I really hate this damned machine It never does quite what I want
I wish that they would sell it. But only what I tell it.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-02-11 21:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-07 0:27 [U-Boot] PATCH: Fix MPC8260 with ethernet on SCC ksi at koi8.net
2009-02-07 0:44 ` Ben Warren
2009-02-10 19:38 ` Heiko Schocher
2009-02-11 21:23 ` Wolfgang Denk
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox