buildroot

buildroot for arm kernel defconfig

守給你的承諾、 提交于 2019-12-05 09:09:00
I am trying to build a buildroot with kernel image, and after doing make menuconfig and make , I am getting: No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting I can set a string to the defconfig , but I don't know what to put there. My target system is an AT91SAM9RL board. edit : I found out there are some pre-made config files to some devices, actually not exactly matching to my target. You can issue the default configuration process by running make xxx_defconfig and that make target is a file in the folder arch/arm/configs/ . These default configurations are

How to get a buildroot project under source control

隐身守侯 提交于 2019-12-04 19:06:08
问题 The company I work for develops a product that requires embedded Linux for which we use, as many other, Buildroot. In any case, I would like to get the project under source control using Git, as it is our tool for source control for all the other projects the company has. The problem is that I don't know which files should I keep in source control (as keeping the whole buildroot directory seems overkilling). 回答1: I've recently tackled the same problem in our organisation, and I find this an

(二)Buildroot介绍

南笙酒味 提交于 2019-12-04 18:54:15
详情请参考: http://www.buildroot.org/downloads/manual/manual.html 参考博客: https://www.cnblogs.com/arnoldlu/p/9553995.html Buildroot是一个为嵌入式平台构建一个完整Linux系统的工具,它可以生成交叉编译工具、文件系统、Linux内核和bootloader。 目录结构 ./buildroot$ tree -L 1 -d . ├── arch 目录存放CPU架构相关的配置脚本,如arm/mips/x86 ,这些CPU相关的配置,在制作工具链,编译boot和内核时很关键。 ├── board 存放了一些默认开发板的配置补丁之类的。 ├── boot ├── configs 放置支持的开发板的默认配置文件。 ├── dl 存放下载的源码包及应用软件的压缩包,第一次下载后,下次就不会再去从官网下载了,而是从dl/目录下拿开源包,以节约时间。本身下载通常都是很慢的,你可以手动找到相关包下载后放到这里就OK了,make时会自动检测这个目录。 ├── docs 存放相关的参考文档。 ├── fs 放各种文件系统的源代码;fs/skeleton:放生成文件系统镜像的地方,及板子里面的系统。 ├── linux 存放着Linux kernel的自动构建脚本。 ├── output

How to control the rpmbuild buildroot and install directory

六眼飞鱼酱① 提交于 2019-12-04 16:49:18
I am confused about some directories in rpmbuild. 1: buildroot: which should be used to store the files that are supposed to be installed when the binary package is installed by an end-user. Questions: how to control this directory? What does BuildRoot mean? $ cat 3.spec .. BuildRoot: /opt/abc .. %prep echo %{buildroot} echo $RPM_BUILD_ROOT whatever I set the BuildRoot to, I get the result which was defined in /usr/lib/rpm/macros . If I define %buildroot in ~/.rpmmacros , I will get the result from it. 2: How do I control the destination when we install the rpm package? For example: rpm -ivh

MIPS32 router: module_init not called for kernel module

喜欢而已 提交于 2019-12-04 04:17:01
问题 I'm developing a kernel module that I want to run on my router. The router model is DGN2200v2 by Netgear. It's running Linux 2.6.30 on MIPS. My problem is that when I load my module it seems that my module_init isn't getting called. I tried to narrow it down by modifying my module_init to return -3 (which indicates an error?) and insmod still reports success. I can see my module in the output of lsmod , but I don't see my printk output using dmesg . For starters, I wanted to create the

systemd/udev dependency failure when auto mounting separate partition during startup

早过忘川 提交于 2019-12-04 03:27:58
EDIT: This occurs when I am trying to use a separate partition with ANY mount point, not just /var . I am using Buildroot to build an embedded linux system. I am trying to use a separate partition for /var, but this occurs for ANY mount point. My init system is systemd, udev for device management. I've edited my fstab to: # <file system> <mount pt> <type> <options> <dump> <pass> /dev/root / ext2 rw,noauto 0 1 /dev/mmcblk0p4 /var ext2 defaults 0 2 proc /proc proc defaults 0 0 devpts /dev/pts devpts defaults,gid=5,mode=620 0 0 tmpfs /dev/shm tmpfs mode=0777 0 0 tmpfs /tmp tmpfs defaults 0 0

buildroot for arm kernel defconfig

匿名 (未验证) 提交于 2019-12-03 08:52:47
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to build a buildroot with kernel image, and after doing make menuconfig and make , I am getting: No kernel defconfig name specified, check your BR2_LINUX_KERNEL_DEFCONFIG setting I can set a string to the defconfig , but I don't know what to put there. My target system is an AT91SAM9RL board. edit : I found out there are some pre-made config files to some devices, actually not exactly matching to my target. 回答1: You can issue the default configuration process by running make xxx_defconfig and that make target is a file in the

How to add my own software to a Buildroot Linux package?

谁都会走 提交于 2019-12-03 05:13:46
问题 I am trying to add my own program to a small linux, created with Buildroot. What I've done so far: I've created a new directory inside my 'buildroot/package/' called 'HelloWorld'. Inside 'buildroot/package/HelloWorld' I have : a Config.in, HelloWorld.mk and HelloWorld directory. Config.in holds this: config BR2_PACKAGE_HELLOWORLD bool "helloworld" default y help Hello world component. HelloWorld.mk holds this: HELLOWORLD_VERSION:= 1.0.0 HELLOWORLD_SITE:= /home/userpc/Downloads/helloworld/

Buildroot - Applying A Patch Failed

匿名 (未验证) 提交于 2019-12-03 02:29:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm trying to build a custom kernel image for my PhidgetSBC but I'm getting a failure during the build: bluez 4.96 Extracting bluez 4.96 Patching package/bluez for file in config.guess config.sub; do for i in $(find /home/kerubu/buildroot_phidgetsbc/new/buildroot-phidgetsbc_1.0.4.20111028/output/build/bluez-4.96 -name $file); do cp package/gnuconfig/$file $i; done; done Patching libtool Applying buildroot-libtool.patch using plaintext: patching file ltmain.sh Hunk #1 FAILED at 273. Hunk #2 succeeded at 5412 (offset 3005 lines). Hunk #3

how to rebuild rootfs in buildroot

匿名 (未验证) 提交于 2019-12-03 02:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am going to setup build environment to make my own linux embedded system for AT91SAM9X25 Board. I am using buildroot to do this. The make command build all targets, the first it build toolchain then packages and then rootfs and images of rootfs (tar, cpio ...). To rebuild rootfs I usually use make clean and then make. The make clean command removes all and including toolchain. So the first my question is: Is there some way to remake rootfs without building toolchain? It takes a lot of time. Also I am building linux kernel within buildroot.