- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I'm building Linux kernel and root filesystem for Arrow SoCKit. I've installed cross compiler on Ubuntu 14.10 machine: $ sudo apt-get install gcc-arm-linux-gnueabihf $ arm-linux-gnueabihf-gcc --version arm-linux-gnueabihf-gcc (Ubuntu/Linaro 4.9.1-16ubuntu6) 4.9.1 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. The cross-compiler works. I've used it to build kernel for Arrow SoCKit: $ make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm socfpga_defconfig $ alias armmake='make CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm' <--I put this into .profile $ armmake -j4 uImage LOADADDR=0x8000 <-- this produced the expected uImage But then I run into problem trying to build root fs for SoCKit using Buildroot-2014.11: $ make menuconfig Within Buildroot menuconfig I set the Toolchain as follows: Toolchain type (External toolchain) ---> Toolchain (Custom toolchain) ---> Toolchain origin (Pre-installed toolchain) ---> (/usr/) Toolchain path (arm-linux-gnueabihf) Toolchain prefix External toolchain kernel headers series (3.1.x) ---> External toolchain C library (glibc/eglibc) ---> [*] Toolchain has RPC support? [*] Toolchain has C++ support? () Extra toolchain libraries to be copied to target [ ] Copy gdb server to the Target [ ] Build cross gdb for the host [ ] Purge unwanted locales () Generate locale data [ ] Copy gconv libraries [*] Enable MMU support (-pipe) Target Optimizations () Target linker options [ ] Register toolchain within Eclipse Buildroot plug-in Then run make and get the following error: $ make /usr/bin/make -j1 HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" silentoldconfig make[1]: Entering directory '/home/jeff/buildroot-2014.11' BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/jeff/buildroot-2014.11/output/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/jeff/buildroot-2014.11/output/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/jeff/buildroot-2014.11/output/build/buildroot-config/tristate.config BR2_CONFIG=/home/jeff/buildroot-2014.11/.config BR2_EXTERNAL=support/dummy-external /home/jeff/buildroot-2014.11/output/build/buildroot-config/conf --silentoldconfig Config.in make[1]: Leaving directory '/home/jeff/buildroot-2014.11' >>> toolchain-external undefined Configuring cc1: fatal error: /usr/arm-linux-gnueabihf//usr/include/linux/version.h: No such file or directory compilation terminated. support/scripts/check-kernel-headers.sh: 38: support/scripts/check-kernel-headers.sh: /tmp/check-headers.uAeguv: Permission denied package/pkg-generic.mk:172: recipe for target '/home/jeff/buildroot-2014.11/output/build/toolchain-external-undefined/.stamp_configured' failed make: *** [/home/jeff/buildroot-2014.11/output/build/toolchain-external-undefined/.stamp_configured] Error 1 I've used Buildroot in Arch Linux without encountering the above problem. I'm new to Ubuntu, and can't figure out what is going wrong. Can anyone help? Thanks!Link Copied
0 Replies

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page