Felix Fietkau wrote: > Hinko Kočevar wrote: >> Felix Fietkau wrote: >> >>> I've found a way to remove the need for a separate cris-elf toolchain >>> altogether. The way it is in svn right now, head.S and misc.c can be >>> compiled with the regular toolchain, and we tested it on a real system. >> Sounds great. >> I've checked out fresh copy of SVN and tried to build the openwrt for etrax. >> >> Also: >> - Image is 3GB (-rw-r--r-- 1 hinkok hinkok 3222945098 Jun 9 10:32 Image) >> - cris linker fails with above errors >> >> Did you test the uclibc toolchain or you used Axis precompiled toolchain? > I patched binutils 2.17 to support the criself emulation. > The change is in toolchain/binutils/patches/2.17/610-cris_target.patch > I wonder why it didn't apply on your system - we did not use the Axis > toolchain at all during our test.
By copying the to the 2.18 patches folder make no difference, linux kernel compilation fails the same: ... SYSMAP System.map OBJCOPY arch/cris/boot/Image Kernel: arch/cris/boot/Image is ready GZIP arch/cris/boot/compressed/piggy.gz LD arch/cris/boot/compressed/decompress.o cris-linux-uclibc-ld: arch/cris/boot/compressed/head.o: uses non-prefixed symbols, but writing file with _-prefixed symbols cris-linux-uclibc-ld: failed to merge target specific data of file arch/cris/boot/compressed/head.o cris-linux-uclibc-ld: arch/cris/boot/compressed/misc.o: uses non-prefixed symbols, but writing file with _-prefixed symbols cris-linux-uclibc-ld: failed to merge target specific data of file arch/cris/boot/compressed/misc.o make[7]: *** [arch/cris/boot/compressed/decompress.o] Error 1 make[6]: *** [arch/cris/boot/compressed/vmlinux] Error 2 make[5]: *** [zImage] Error 2 make[5]: Leaving directory `/work/stage/openwrt2/build_dir/linux-etrax/linux-2.6.25.4' make[4]: *** [/work/stage/openwrt2/build_dir/linux-etrax/linux-2.6.25.4/.image] Error 2 make[4]: Leaving directory `/work/stage/openwrt2/target/linux/etrax' make[3]: *** [install] Error 2 make[3]: Leaving directory `/work/stage/openwrt2/target/linux' make[2]: *** [target/linux/install] Error 2 make[2]: Leaving directory `/work/stage/openwrt2' make[1]: *** [/work/stage/openwrt2/staging_dir/cris/stamp/.target_install] Error 2 make[1]: Leaving directory `/work/stage/openwrt2' make: *** [world] Error 2 Next I've tried out binutils 2.17 - the result is the same! ... LD vmlinux SYSMAP System.map OBJCOPY arch/cris/boot/Image Kernel: arch/cris/boot/Image is ready GZIP arch/cris/boot/compressed/piggy.gz LD arch/cris/boot/compressed/decompress.o cris-linux-uclibc-ld: arch/cris/boot/compressed/head.o: uses non-prefixed symbols, but writing file with _-prefixed symbols cris-linux-uclibc-ld: failed to merge target specific data of file arch/cris/boot/compressed/head.o cris-linux-uclibc-ld: arch/cris/boot/compressed/misc.o: uses non-prefixed symbols, but writing file with _-prefixed symbols cris-linux-uclibc-ld: failed to merge target specific data of file arch/cris/boot/compressed/misc.o make[7]: *** [arch/cris/boot/compressed/decompress.o] Error 1 make[6]: *** [arch/cris/boot/compressed/vmlinux] Error 2 make[5]: *** [zImage] Error 2 make[5]: Leaving directory `/work/stage/openwrt2/build_dir/linux-etrax/linux-2.6.25.4' make[4]: *** [/work/stage/openwrt2/build_dir/linux-etrax/linux-2.6.25.4/.image] Error 2 make[4]: Leaving directory `/work/stage/openwrt2/target/linux/etrax' make[3]: *** [install] Error 2 make[3]: Leaving directory `/work/stage/openwrt2/target/linux' make[2]: *** [target/linux/install] Error 2 make[2]: Leaving directory `/work/stage/openwrt2' make[1]: *** [/work/stage/openwrt2/staging_dir/cris/stamp/.target_install] Error 2 make[1]: Leaving directory `/work/stage/openwrt2' I've confirmed that the 610-cris_target.patch actually applied to 2.18 and 2.17... weird. -- ČETRTA POT, d.o.o., Kranj Planina 3 4000 Kranj Slovenia, Europe Tel. +386 (0) 4 280 66 03 E-mail: [EMAIL PROTECTED] Http: www.cetrtapot.si _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel