fix to enet.c to enable networking when booting from flash

Robert P. J. Day rpjday at
Wed Jul 14 03:34:37 EST 2004

   with our current 2.4.22-pre8 kernel, we found that, on our 850DE
board (ethernet on SCC3), ethernet would work fine when we downloaded
the bootable image, but not if we booted from the image that was
burned into flash.

   eventually, one of the guys here tracked the problem to
arch/ppc/8xx_io/enet.c, and made the following change (around line 915
in enet.c in both this version of the kernel and in the latest bk pull
of linuxppc-2.5):

#if defined(CONFIG_RPXLITE) || defined(CONFIG_RPXCLASSIC) ||
defined(CONFIG_EP8xx) || defined(CONFIG_EP852)
         /* And while we are here, set the configuration to enable
         *((volatile uint *)RPX_CSR_ADDR) &= ~BCSR0_ETHLPBK;
         *((volatile uint *)RPX_CSR_ADDR) |=
>        *((volatile uint *)RPX_CSR_ADDR) |=0x00100000;  <-- add this

   i don't know enough about the hardware to know what this is for.  if
anyone does, is it still an issue?  is there a better way to handle
this?  as much as possible, i'm trying to get everything running on
this board without messing with the kernel source.  thanks.  given
that the author of that line is not around at the moment, i'm just
going to poke around the source and see if i can deduce what it's for.


** Sent via the linuxppc-embedded mail list. See
** This list is shutting down 7/24/2004.

More information about the Linuxppc-embedded mailing list