[uClinux-dev] dist 20030305 doesn't build for Arcturus uC5272

Rene Gegusch rgegusch at mf.tu-berlin.de
Wed Mar 19 07:28:42 EST 2003


OK, my work went on...

after I edited fec.c and it compiled without errors I got this error message 
regarding missing MAC adress.
I wondered a little bit around, because in line 302 of uCcs8900.c there is 
this comment:
/* dev->dev_addr[0] through dev->dev_addr[6] holds the mac address
this array contains 7 fields???
however, I "hard encoded" my 6 hex-digit MAC adress of my uC5272 into this 
array from [0]..[5]. So what about [6]? Didn't care about it.
By the way:
Everyone who ask for his MAC adress of his uC5272:
on my board there is a sticker on the CPU with both MAC adresses. I believe 
the first one is for the 100MBit port. If someone has further details let me 
know.

So, uCcs8900.c looks from line 312 on like this:
#elif defined (CONFIG_BOARD_UCLINKII) || \
      defined (CONFIG_BOARD_EVS3C4530LII) || \
      defined (CONFIG_BOARD_EVS3C4530HEI)
      memcpy(dev->dev_addr, get_MAC_address("dev1"), 6);
#elif defined (CONFIG_BOARD_UC5272)
	//hard encoded MAC address
	dev->dev_addr[0] = 0x00;
	dev->dev_addr[1] = 0x06;
	dev->dev_addr[2] = 0x3B;
	dev->dev_addr[3] = 0x00;
	dev->dev_addr[4] = 0x03;
	dev->dev_addr[5] = 0x85;
#else
#error	    MAC address is not defined
#endif

Compiling seems to work fine now, for a few second, till the next problem. :(
now I get this error message:

/tmp/ccsdN6uK.s: Assembler messages:
/tmp/ccsdN6uK.s:246: Error: invalid instruction for this architecture; needs 
68000 or higher -- statement `oriw #0x2700,%sp@' ignored
make[2]: *** [himemloader.o] Fehler 1

this is a little bit overhead for me... so, does anyone has an idea how to fix 
this?



Am Mittwoch, 19. März 2003 02:34 schrieb Brad Clements:
> Before diving in to "fix" I just want to confirm that no one else has tried
> and succeeded building a basic kernel for the Arcturus uC5272
>
> I selected the board, and left all other settings as defaults. Make dep;
> make and get this:
>
> make[2]: Entering directory
> `/var/local/src/uClinux-dist/linux-2.4.x/arch/m68knommu/platform/5272'
> make[2]: *** No rule to make target `/crt0_ram.S', needed by `/crt0_ram.o'.
>  Stop. make[2]: Leaving directory
> `/var/local/src/uClinux-dist/linux-2.4.x/arch/m68knommu/platform/5272'
> make[1]: *** [_dir_arch/m68knommu/platform/5272] Error 2
> make[1]: Leaving directory `/var/local/src/uClinux-dist/linux-2.4.x'
> make: *** [linux] Error 1
>
>
>
> The Arcturus uC5272 didn't work with previous dists either, probably
> because they just hadn't submitted the necessary patches.
>
> I just wanted to see if anyone else had this problem before I "dive in".
>
> I see other 5272 users on the list using this dist, so .. maybe it's just
> my luck.
>
> --  here's some things I've tried tinkering with tonight before sending
> this, based on my previously "working" dist (feb 2002 that came with
> Arcturus CD)
>
> Snooping linux-2.4.x/arch/Boards.mk, I see I had this in my previous dist
>
> #ifdef CONFIG_M5272
> <snip>
>
> ifdef CONFIG_BOARD_UC5272
> BOARD := uC5272
> endif
>
> I also see I that in my "working" dist I have a
>
> uClinux-coldfire/linux-2.4.x/arch/m68knommu/platform/5272/uC5272
>
> With the necessary files:
>
> total 40
> drwxr-xr-x    2 bkc      bkc          4096 Jan 29 10:15 ./
> drwxr-xr-x    5 bkc      bkc          4096 Jan 29 10:15 ../
> -rw-rw-r--    1 bkc      bkc          1812 Jan 29 10:15 crt0_ram.o
> -rw-r--r--    1 bkc      bkc          3882 Mar 26  2002 crt0_ram.S
> -rw-r--r--    1 bkc      bkc          3158 Mar 26  2002 crt0_rom.S
> -rw-r--r--    1 bkc      bkc          4615 Mar 26  2002 .gdbinit
> -rw-r--r--    1 bkc      bkc          1569 Oct 31 14:59 ram.ld
> -rw-r--r--    1 bkc      bkc            22 Jan 30 18:30 romfs.default.ld
> -rw-r--r--    1 bkc      bkc            22 Jan 30 18:30 romfs.ld
>
>
> Guess I'll copy these..
>
> also need to edit config.in and add
>
>         bool 'Arcturus Networks uC5272 dimm board support'
> CONFIG_BOARD_UC5272
>
> added this to vendors/Arcturus/uC5272/config.linux-2.4.x
>
> CONFIG_BOARD_UC5272=y
>
>
> Now this is starting to smell bad. I'm beginning to think that my previous
> "fix" for this wasn't correct.
>
> After all this, BOARDS still isn't being set correctly. :-(





More information about the uClinux-dev mailing list