buildroot

buildroot构建项目(一)---buildroot介绍

喜你入骨 提交于 2019-12-18 04:53:05
1.1 什么是buildroot   Buildroot是Linux平台上一个构建嵌入式Linux系统的框架。整个Buildroot是由Makefile脚本和Kconfig配置文件构成的。你可以和编译Linux内核一样,通过buildroot配置,menuconfig修改,编译出一个完整的可以直接烧写到机器上运行的Linux系统软件(包含boot、kernel、rootfs以及rootfs中的各种库和应用程序)。   下载:git clone git://git.buildroot.net/buildroot   解压:tar -xzvf buildroot-2017.02.9.tar.gz 1.2 buildroot 的目录结构 buildroot/package/:下面放着应用软件的配置文件,每个应用软件的配置文件有Config.in和soft_name.mk,其中soft_name.mk(这种其实就Makefile脚本的自动构建脚本)文件可以去下载应用软件的包。 buildroot/output/:是编译出来的输出文件夹,里面的build/目录存放着解压后的各种软件包编译完后的现场。 host:是由各类源码编译后在你主机上运行的工具(build for host)的安装目录,如arm-linux-gcc就是安装在这里. 编译出来的主机工具在host/usr下

Can't access Buildroot staging libraries via ./configure when cross compiling. It fails on test compile.

主宰稳场 提交于 2019-12-13 10:47:45
问题 CASE 1 arm-linux-gcc -v hello.c ==> WORKS CASE 2 arm-linux-gcc -v -L/home/peter/igep2015/09Buildroot/buildroot-2016.02-TRY5/output/staging/usr/lib hello.c ==> DOESN'T WORK ERROR:ld.bfd: cannot find /usr/lib/libc_nonshared.a ERROR:ld.bfd: cannot find /lib/ld-linux.so.3 CASE 3 arm-linux-gcc -v --sysroot=/home/peter/igep2015/09Buildroot/buildroot-2016.02-TRY5/output/host/usr/armeb-buildroot-linux-gnueabi/sysroot/ hello.c ==>WORKS but says it is ignoring sysroot because it cannot find /usr

What is the proper method to modify the autotools options of a Buildroot source package using BR2_EXTERNAL?

本秂侑毒 提交于 2019-12-13 00:30:06
问题 I want to change the <PKG>_CONF_OPTS config options for a package included in Buildroot without altering the baseline <pkg>.mk file. Based on what I'm reading, it shouldn't be necessary to completely override the package using the BR2_PACKAGE_OVERRIDE_FILE as I don't want to change the source or anything else significant. It has been suggested that this can be done using BR2_EXTERNAL and external.mk , but I cannot find any examples and my attempts have failed. The Buildroot documentation is

buildroot file system & cross compiling: dynamically linked application fails but static ok. How to link against uClibc

我是研究僧i 提交于 2019-12-12 22:02:04
问题 I have a buildroot created file system, and I am trying to execute some c-code on lighttpd server. I have created a simple C module that just prints out few lines of html. Code looks like this: #include "stdio.h" int main(void) { printf( "Content-Type: text/plain\n\n" ); printf("testing C code\n"); return 0; } I'm using compiler from Ubuntu repository, to compile it arm-linux-gnueabi-gcc -o test.cgi test.c . If I compile with -static flag, it will run just fine, and I can see the html

manuconfig错误 Unable to find the ncurses libraries or the  required header files

帅比萌擦擦* 提交于 2019-12-12 08:00:31
make menuconfig之后错误如下所示: taozhang@taozhang-virtual-machine:~/share/4412/buildroot/buildroot-2015.05$ make menuconfig mkdir -p /home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config/lxdialog PKG_CONFIG_PATH="" make CC="/usr/bin/gcc" HOSTCC="/usr/bin/gcc" \ obj=/home/taozhang/share/4412/buildroot/buildroot-2015.05/output/build/buildroot-config -C support/kconfig -f Makefile.br mconf make[1]: 正在进入目录 `/home/taozhang/share/4412/buildroot/buildroot-2015.05/support/kconfig' *** Unable to find the ncurses libraries or the *** required header files. *** 'make menuconfig'

TinyX shows display using builtin fbtft touchscreen driver but touch doesn't work

北战南征 提交于 2019-12-12 04:58:50
问题 I'm using an "adafruitts" touchscreen with a raspi to control a usb peripheral. The full raspbian kernel takes forever to boot (50 seconds), and part of that is due to the touchscreen driver loading (by modprobe/udev) and initializing. During the first 20-30 seconds of boot, the display is not loaded, so it is blank. I need this to be a user-friendly item that cannot be blank for 30 seconds each time it is turned on, so I've used buildroot to build a small kernel with the touchscreen driver

Buildroot - cubieboard 2 not booting

南楼画角 提交于 2019-12-12 01:36:49
问题 I just borrowed cubieboard2 from my friend and tried to boot it up. I connected power to 2A USB charger, hdmi to my display and keyboard to USB. Red (Power) light turned on. Whithout SD card system boots from NAND, kernel messages shows up, but hangs on [ 17.000000] Mali display drivers loaded (SOMETHING LIKE THAT) Nothing more is happening, but system is responding, because when I insert SD card it shows propper mesage: [ 800.000000] sd card info... The default system on NAND should be

Why when I change BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE and run make linux-reconfigure the kernel .config does not change?

对着背影说爱祢 提交于 2019-12-11 16:55:54
问题 Buildroot 7d43534625ac06ae01987113e912ffaf1aec2302 post 2018.02, Ubuntu 17.10 host. I run: make qemu_x86_64_defconfig printf 'BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=\"kdb\"\n' >>.config make olddefconfig time make BR2_JLEVEL="$(nproc)" where kdb is a Linux kernel configuration that has CONFIG_KGDB=y . Then as expected: grep '^CONFIG_KGDB=y' ./output/build/linux-4.15/.config has a match. But then I want to try out a new kernel config, so I try: sed -i 's/BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE=kdb

buildroot environment with host toolchain

旧街凉风 提交于 2019-12-11 11:41:23
问题 For running testcases etc. I would like to compile parts of our buildroot environment for the Host system (/usr/bin/gcc etc.). I tried specifying an external_toolchain in /usr but this fails. Has anyone managed to do something like this? The buildroot manual says this is unsupported because they can not import it into a rootfs. But for testcases a rootfs is not necessary. 回答1: Yeah, unfortunately, it is not possible to do this. To be useful for Buildroot, a toolchain has to be a "pure"

Setup buildroot for old kernels

跟風遠走 提交于 2019-12-11 03:34:30
问题 I'm trying to setup buildroot for cross-compiling a custom app. / # uname -a Linux Venus 2.6.12.6-VENUS #323634 Wed May 25 13:40:36 CST 2011 mips unknown So far I chose kernel version 2.6.12.6 in buildroot. Now I've got the problem that the make command fails yelling that the rule headers_install is unknown. Here is the compleat output: ~/buildroot-2011.11$ make (cd /root/buildroot-2011.11/output/toolchain/linux-2.6.12.6; \ /usr/bin/make -j2 ARCH=mips \ HOSTCC="/usr/bin/gcc" HOSTCFLAGS="" \