Jivin Grant Edwards lays it down ... > I'm attempting to follow the "getting started" article at > http://www.ucdot.org/archive/tb/tb20020807.shtml. I'm trying > to build uClinux-dist-20080808 for the xcopilot target using > toolchain binaries from m68k-uclinux-tools-20061214.tar.bz2. > > None of the kernel versions will build.
xcopilot is (as you have demonstrably shown) well out of date. The getting started guide you referred to also talks about the GDB/ARMulator but you don't seem to have tried that one. The GDB/ARMulator is almost always tested prior to release. The Samsung target you tried has never worked that I can recall. Did something recommend trying that ? Only trick with the GDB/ARMulator, the 2.6 kernel don't boot under the old ARMulator code, but skyeye, that was originally based off the ARMulator ideas has all these problems fixed and is being maintained. Also remember you are working with a guide for a 2002 version of the dist. If you use that version and the tools listed it will work :-) Cheers Davidm > 2.6 Fails thusly: > > [...] > CC arch/m68knommu/platform/68328/timers.o > CC arch/m68knommu/platform/68328/config.o > AS arch/m68knommu/platform/68328/romvec.o > LD arch/m68knommu/platform/68328/built-in.o > AS arch/m68knommu/platform/68328/head-pilot.o > arch/m68knommu/platform/68328/head-pilot.S:37:23: error: > bootlogo.rh: No such file or directory > make[2]: *** [arch/m68knommu/platform/68328/head-pilot.o] Error 1 > make[1]: *** [arch/m68knommu/platform/68328] Error 2 > make[1]: Leaving directory > /home/grante/uclinux/uClinux-dist/linux-2.6.x' > make: *** [linux] Error 1 > > Indeed, there doesn't appear to be a bootlogo.rh file in the > 2.6 tree (there is in the 2.4 tree). > > 2.4 Fails like this: > > [...] > /home/grante/uclinux/uClinux-dist/linux-2.4.x/include/asm/atomic.h:70: > warning: matching constraint does not allow a register > In file included from config.c:29: > /home/grante/uclinux/uClinux-dist/linux-2.4.x/include/asm/MC68328.h: > At top level: > /home/grante/uclinux/uClinux-dist/linux-2.4.x/include/asm/MC68328.h:996: > warning: 'packed' attribute ignored > config.c: In function 'BSP_reset': > config.c:104: error: missing terminating " character > config.c:105: error: expected string literal before 'moveal' > config.c:105: error: stray '#' in program > config.c:106: error: stray '#' in program > config.c:110: error: missing terminating " character > config.c: In function 'config_BSP': > config.c:129: warning: implicit declaration of function > 'config_M68328_irq' > make[2]: *** [config.o] Error 1 > make[2]: Leaving directory > > /home/grante/uclinux/uClinux-dist/linux-2.4.x/arch/m68knommu/platform/68328' > make[1]: *** [_dir_arch/m68knommu/platform/68328] Error 2 > make[1]: Leaving directory > /home/grante/uclinux/uClinux-dist/linux-2.4.x' > make: *** [linux] Error 1 > > In this case, it appears gcc is choking on a multi-line string > literal. > > > And 2.0 likewise: > > [...] > /home/grante/uclinux/uClinux-dist/linux-2.0.x/include/linux/blk.h:71:8: > warning: extra tokens at end of #endif directive > /home/grante/uclinux/uClinux-dist/linux-2.0.x/include/linux/blk.h:74:8: > warning: extra tokens at end of #endif directive > /home/grante/uclinux/uClinux-dist/linux-2.0.x/include/linux/blk.h:89:8: > warning: extra tokens at end of #endif directive > /home/grante/uclinux/uClinux-dist/linux-2.0.x/include/linux/blk.h:92:8: > warning: extra tokens at end of #endif directive > init/main.c:134:8: warning: extra tokens at end of #endif directive > init/main.c:137:8: warning: extra tokens at end of #endif directive > init/main.c:140:8: warning: extra tokens at end of #endif directive > init/main.c:143:8: warning: extra tokens at end of #endif directive > init/main.c:146:8: warning: extra tokens at end of #endif directive > init/main.c:149:8: warning: extra tokens at end of #endif directive > init/main.c:152:8: warning: extra tokens at end of #endif directive > init/main.c:155:8: warning: extra tokens at end of #endif directive > init/main.c:158:8: warning: extra tokens at end of #endif directive > init/main.c:161:8: warning: extra tokens at end of #endif directive > init/main.c:164:8: warning: extra tokens at end of #endif directive > init/main.c:173:8: warning: extra tokens at end of #endif directive > init/main.c:464:8: warning: extra tokens at end of #endif directive > init/main.c:467:8: warning: extra tokens at end of #endif directive > init/main.c:470:8: warning: extra tokens at end of #endif directive > init/main.c:473:8: warning: extra tokens at end of #endif directive > init/main.c:476:8: warning: extra tokens at end of #endif directive > init/main.c:479:8: warning: extra tokens at end of #endif directive > init/main.c:482:8: warning: extra tokens at end of #endif directive > init/main.c:485:8: warning: extra tokens at end of #endif directive > init/main.c:488:8: warning: extra tokens at end of #endif directive > init/main.c:491:8: warning: extra tokens at end of #endif directive > init/main.c:494:8: warning: extra tokens at end of #endif directive > make[1]: *** [init/main.o] Error 1 > make[1]: Leaving directory `/home/grante/uclinux/uClinux-dist/linux-2.0.x' > make: *** [linux] Error 1 > > The 2.0 errors look an awful lot like what happens when you try > to compile source files with DOS line endings using an old > version of gcc. But, I thought the version being used (4.1.1) > no longer barfed on CR/LF line endings. > > > Is there different simulator target that's recommended over > xcopilot? Is there a more recent "getting started document" > somewhere? I also found > http://www.uclinux.org/get_started/uClinuxbeginner.html, > but it's also 5 years old and shows the exact same steps as the > other getting started article. > > -- > Grant Edwards grante Yow! I smell a RANCID > at CORN DOG! > visi.com > > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > -- David McCullough, [EMAIL PROTECTED], Ph:+61 734352815 Secure Computing - SnapGear http://www.uCdot.org http://www.snapgear.com _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
