Fresh toolchain to build Kernel [Tiny6410]

jorikdima
Hi,

I am trying to improve my knowledge in Linux, rootfs etc. I use recent
buildroot to create rootfs instead of the rootfs provided by FriendlyARM.
It works perfectly and I compiled it using toolchain built inside
buildroot, but not in FA DVD. So it is toolchain base on gcc 4.8, but I
also did it with gcc 5 and even 6. Everything related to rootfs works good.
With that rootfs I used bootloader and kernel from FA. 
Now as a next step I want to build kernel. I use the kernel from DVD v.
2.6.38. If I build it using FA toolchain - everything is good. But when I
compile it with my toolchain build inside buildroot, kernel doesn't work at
all. Toolchain is OK, that's why I described my experience with rootfs
above. I used several toolchains, including those which are precompiled and
must work, but still... But once I use toolchain from FA (only toolchain
changed, nothing else, same config) - it works.
Can anybody say me what can be wrong?

Gcc -v from FA toolchain:

Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure
--build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu
--target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1
--with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root

--enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s
--with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp
--with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/
--disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap
--with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm'
--with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static
--enable-threads=posix
--with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys
-root
--disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 


Gcc -v from my toolchain:

Target: arm-buildroot-linux-gnueabi
Configured with: ./configure
--prefix=/home/jorikdima/workdir/buildroot/2016.05/output/host/usr
--sysconfdir=/home/jorikdima/workdir/buildroot/2016.05/output/host/etc
--enable-static --target=arm-buildroot-linux-gnueabi
--with-sysroot=/home/jorikdima/workdir/buildroot/2016.05/output/host/usr/arm-bui
ldroot-linux-gnueabi/sysroot
--disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib
--with-gmp=/home/jorikdima/workdir/buildroot/2016.05/output/host/usr
--with-mpfr=/home/jorikdima/workdir/buildroot/2016.05/output/host/usr
--with-pkgversion='Buildroot 2016.08-rc1-00008-g023bba7-dirty'
--with-bugurl=http://bugs.buildroot.net/ --disable-libquadmath --enable-tls
--enable-plugins --enable-lto --disable-libmudflap --enable-threads
--with-mpc=/home/jorikdima/workdir/buildroot/2016.05/output/host/usr
--without-isl --without-cloog --disable-decimal-float
--with-abi=aapcs-linux --with-cpu=arm1176jzf-s --with-fpu=vfp
--with-float=softfp --with-mode=arm --enable-languages=c,c++
--with-build-time-tools=/home/jorikdima/workdir/buildroot/2016.05/output/host/us
r/arm-buildroot-linux-gnueabi/bin
--enable-shared --disable-libgomp
Thread model: posix
gcc version 4.9.4 (Buildroot 2016.08-rc1-00008-g023bba7-dirty)


Thanks

davef
I was told something like this;

"to eliminate pain everything needs to be built with the same GCC, ie
toolchain, libraries, kernel and rootfs".

I know the kernels are patched by FA to work on these older units, I
wouldn't be surprised that they also modify the toolchains or they would
just say "use xyz toolchain".

In the very early days I believe the CodeSourcey toolchains were used on
the mini2440, but those guys were a lot brighter than me.

Good luck!