So I was able to build my first 2.6 kernel using all the defaults - just setting freescale and mcf5282lite.
When I download the image and then do a go 0x10000 all I get is a bit of jibberish as if the image is corrupt. Do I need to convert the image to a different format first? THanks, Greg On Feb 26, 2010, at 1:22 PM, Greg Hulands wrote: > Looks like I needed to use uC-libc, not glibc (oops!) or uClibc. > > What is the difference between uC-libc and uClibc? > > Cheers, > Greg > > On Feb 26, 2010, at 12:55 PM, Greg Hulands wrote: > >> Thanks Dan, >> That helped tremendously. When building the kernel, I now see this error >> >> m68k-uclinux-gcc -m5307 -DCONFIG_COLDFIRE ../sysdeps/wordsize-32/divdi3.c -c >> -std=gnu99 -DEMBED -D__linux__ -D__uClinux__ -Dlinux -Dunix -O2 -Wall >> -Winline -Wstrict-prototypes -Wwrite-strings -fgnu89-inline -g -msep-data >> -pipe -fpic -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES >> -I../include -I. -I/home/ghulands/uClinux-dist/glibc/build/csu -I.. >> -I../libio -I/home/ghulands/uClinux-dist/glibc/build -I../sysdeps/m68k/elf >> -I../libidn/sysdeps/unix -I../linuxthreads/sysdeps/unix/sysv/linux/m68k >> -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread >> -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv >> -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/m68k >> -I../sysdeps/unix/sysv/linux/m68k -I../sysdeps/unix/sysv/linux >> -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman >> -I../sysdeps/unix/inet -I../sysdeps/unix/sysv -I../sysdeps/unix >> -I../sysdeps/posix -I../sysdeps/m68k/m68020 -I../sysdeps/m68k/fpu >> -I../sysdeps/m68k -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 >> -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 >> -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem >> /usr/local/lib/gcc/m68k-uclinux/4.2.4/include -isystem >> /home/ghulands/uClinux-dist/include -D_LIBC_REENTRANT -include >> ../include/libc-symbols.h -DPIC -DSHARED -DHAVE_INITFINI -o >> /home/ghulands/uClinux-dist/glibc/build/csu/divdi3.os -MD -MP -MF >> /home/ghulands/uClinux-dist/glibc/build/csu/divdi3.os.dt -MT >> /home/ghulands/uClinux-dist/glibc/build/csu/divdi3.os >> ../sysdeps/wordsize-32/divdi3.c: In function '__moddi3': >> ../sysdeps/wordsize-32/divdi3.c:312: warning: pointer targets in passing >> argument 3 of '__udivmoddi4' differ in signedness >> {standard input}: Assembler messages: >> {standard input}:430: Error: invalid instruction for this architecture; >> needs 68000 or higher (68000 [68ec000, 68hc000, 68hc001, 68008, 68302, >> 68306, 68307, 68322, 68356], 68010, 68020 [68k, 68ec020], 68030 [68ec030], >> 68040 [68ec040], 68060 [68ec060], cpu32 [68330, 68331, 68332, 68333, 68334, >> 68336, 68340, 68341, 68349, 68360], fidoa [fido]) -- statement `eor.w >> %d0,%d0' ignored >> make[6]: *** [/home/ghulands/uClinux-dist/glibc/build/csu/divdi3.os] Error 1 >> >> >> is there a cflag I need to pass into make? >> >> Thanks, >> Greg >> >> On Feb 26, 2010, at 9:52 AM, Dan Snyder wrote: >> >>> Greg - >>> >>> I'm not sure why this is not posted on the web site, but Greg Ungerer >>> posted the following links on 8/19/2009: >>> >>> http://www.uclinux.org/pub/uClinux/m68k-elf-tools/m68k-uclinux-tools-20080626.sh >>> >>> Source here: >>> >>> http://www.uclinux.org/pub/uClinux/m68k-elf-tools/tools-20080626/ >>> >>> Using this version should solve both of the problems you reported. >>> >>> - Dan >>> >>> >>> -----Original Message----- >>> From: uclinux-dev-boun...@uclinux.org >>> [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Gregory Hulands >>> Sent: Thursday, February 25, 2010 8:32 PM >>> To: uclinux-dev@uclinux.org >>> Subject: [uClinux-dev] First timer >>> >>> Hi, >>> I've got a MCF5282 LITE board that I am wanting to teach myself embedded >>> programming on. I've been following the steps here to setup the toolchain >>> (http://www.uclinux.org/get_started/uClinuxbeginner.html). All of the >>> versions of the versions of the tools I've tried to install have complained >>> that it isn't a valid bzip2 archive, except for the >>> m68k-uclinux-tools-20061214.sh one. I installed it and went to build the >>> kernel after configuring it, but I get the following error: >>> >>> In file included from include/linux/compiler-gcc.h:86, >>> from include/linux/compiler.h:40, >>> from include/linux/stddef.h:4, >>> from include/linux/posix_types.h:4, >>> from include/linux/types.h:11, >>> from include/linux/page-flags.h:8, >>> from kernel/bounds.c:9: >>> include/linux/compiler-gcc4.h:7:3: error: #error Your version of gcc >>> miscompiles the __weak directive >>> make[2]: *** [kernel/bounds.s] Error 1 >>> make[1]: *** [prepare0] Error 2 >>> make[1]: Leaving directory `/home/ghulands/uClinux-dist/linux-2.6.x' >>> make: *** [linux] Error 1 >>> >>> Can anyone offer any suggestions on what I have done wrong? >>> >>> Thanks, >>> Greg >>> >>> _______________________________________________ >>> uClinux-dev mailing list >>> uClinux-dev@uclinux.org >>> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev >>> This message was resent by uclinux-dev@uclinux.org >>> To unsubscribe see: >>> http://mailman.uclinux.org/mailman/options/uclinux-dev >> >> _______________________________________________ >> uClinux-dev mailing list >> uClinux-dev@uclinux.org >> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev >> This message was resent by uclinux-dev@uclinux.org >> To unsubscribe see: >> http://mailman.uclinux.org/mailman/options/uclinux-dev > > _______________________________________________ > uClinux-dev mailing list > uClinux-dev@uclinux.org > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by uclinux-dev@uclinux.org > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev