[uClinux-dev] FTP Server on the 5272 board

Greg Ungerer gerg at snapgear.com
Mon Mar 17 19:34:06 EST 2003


Hi Rene,

Rene Gegusch wrote:
> make dep went on without any errors, but make gave me this error:
> m68k-elf-gcc -fno-builtin -nostdinc -D__KERNEL__ 
> -I/home/rgegusch/test/coldfire/uClinux-dist-patched/linux-2.4.x/include  
> -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
> -fomit-frame-pointer -I/usr/local/lib/gcc-lib/m68k-elf/2.95.3/./include -pipe 
> -DNO_MM -DNO_FPU -m5307 -Wa,-S -Wa,-m5307 -D__ELF__ -DMAGIC_ROM_PTR 
> -DUTS_SYSNAME="uClinux" -D__linux__ -O1   -nostdinc -iwithprefix include 
> -DKBUILD_BASENAME=fec  -c -o fec.o fec.c
> fec.c: In function `fec_enet_init':
> fec.c:1676: `fec_hwaddr' undeclared (first use in this function)
> fec.c:1676: (Each undeclared identifier is reported only once
> fec.c:1676: for each function it appears in.)

OK, this looks like a real bug in the current fec.c driver.

Change lines 96-104 to be:

     #if defined(CONFIG_BOARD_UC5272)
     unsigned char    fec_hwaddr[6] = { 0x00, 0xd0, 0xcf, 0x00, 0x00, 
0x72 };
     #elif defined(CONFIG_M5272)
     static volatile fec_t   *fec_hwp = (volatile fec_t *) (MCF_MBAR + 
0x840);
     static ushort           my_enet_addr[] = { 0x00d0, 0xcf00, 0x0072 };
     #else
     static volatile fec_t   *fec_hwp = &(((immap_t 
*)IMAP_ADDR)->im_cpm.cp_fec)
     static ushort           my_enet_addr[3];
     #endif /* CONFIG_M5272 */

This is probably not exactly what Arcturus intended here, since
it is hard coding the MAC address. But it should get you compiling,
and it will work on a single unit.

Regards
Greg


------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Wizard        EMAIL:  gerg at snapgear.com
SnapGear Pty Ltd                               PHONE:    +61 7 3435 2888
825 Stanley St,                                  FAX:    +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia              WEB:   www.SnapGear.com




More information about the uClinux-dev mailing list