buildroot

how to rebuild rootfs in buildroot

醉酒当歌 提交于 2019-11-30 20:01:18
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. I have turned on BR2_LINUX_KERNEL [=y] in buildroot.

Buildroot package management

佐手、 提交于 2019-11-30 13:55:29
I'm using buildroot to create a rootfs running on my ARM platform. I'd like to have a package manager on my platform to easily install packages, like apt-get in ubuntu. I found opkg, who can be simply added to the buildroot build, but I can't find any information about how to find a repository. Also, reading some stuff on the web about this, I also read that buildroot didn't include a package manager. Isn't opkg a package manager? Or just some kind of frontend to fetch packages? I don't really understand what a package manager consist of, and I don't find any information about this. Could

How do I configure the Linux kernel within Buildroot?

馋奶兔 提交于 2019-11-30 03:46:36
I'm trying to build a rootfs for an x86 target, which is all simple enough. However I can't figure out how I configure the kernel that buildroot produces. The first run through came up with menuconfig, but it's cached the .config since then and I can't see where to change it. ~650MB of kernel modules don't do good things to an embedded target :P Is there an easy way to configure the kernel within buildroot? Something like the uclibc-menuconfig target would be perfect. Aleksandar I always do the following: configure Linux kernel: make linux-menuconfig After leaving menuconfig your configuration

STM32F746-DISCO运行Linux4.19

拈花ヽ惹草 提交于 2019-11-29 07:07:13
STM32F746-DISCO运行Linux4.19 Linux Kernel 主线linux已经提供对无MMU的处理器的支持,configs中已经存在stm32_defconfig,DTS中包含:stm32f746-disco;因此只需要编译即可。 下载主线源码: http://cdn.kernel.org/pub/linux/kernel/v4.x 安装交叉编译链,可以使用之前编译uboot的arm-none-eabi-gcc,但是这个是编译链线程模式是single,而不是posix,也就是说虽然这个编译链可以编译内核和根文件系统,但是不能编译linux应用程序。如果需要支持编译linux应用程序(一般要支持,不然移植linux干嘛--!),则需要自己去构建交叉编译链,网上讲解的比较详细,不过我推荐使用Buildroot来构建支持stm32的交叉编译链,简单快捷,当然也可以用Buildroot来构建内核和根文件系统。 根文件系统 根文件系统可以使用busybox构建,也可以使用buildroot构建。 elinux.org提供了一个使用busybox编译好的Ramdisk最小系统, File:Stm32 mini rootfs.cpio.bz2 , 但需要做如下改动: 使用initramfs,将下载的Stm32_mini_rootfs.cpio.bz2解压,先解压成cpio文件

STM32F746-DISCO运行Linux4.19

偶尔善良 提交于 2019-11-29 07:06:18
STM32F746-DISCO运行Linux4.19 Linux Kernel 主线linux已经提供对无MMU的处理器的支持,configs中已经存在stm32_defconfig,DTS中包含:stm32f746-disco;因此只需要编译即可。 下载主线源码: http://cdn.kernel.org/pub/linux/kernel/v4.x 安装交叉编译链,可以使用之前编译uboot的arm-none-eabi-gcc,但是这个是编译链线程模式是single,而不是posix,也就是说虽然这个编译链可以编译内核和根文件系统,但是不能编译linux应用程序。如果需要支持编译linux应用程序(一般要支持,不然移植linux干嘛--!),则需要自己去构建交叉编译链,网上讲解的比较详细,不过我推荐使用Buildroot来构建支持stm32的交叉编译链,简单快捷,当然也可以用Buildroot来构建内核和根文件系统。 根文件系统 根文件系统可以使用busybox构建,也可以使用buildroot构建。 elinux.org提供了一个使用busybox编译好的Ramdisk最小系统, File:Stm32 mini rootfs.cpio.bz2 , 但需要做如下改动: 使用initramfs,将下载的Stm32_mini_rootfs.cpio.bz2解压,先解压成cpio文件

Linux-Based Firmware, how to implement a good way to update?

家住魔仙堡 提交于 2019-11-28 17:38:28
I'm developing a linux-based appliance using an alix 2d13. I've developed a script that takes care of creating an image file, creating the partitions, installing the boot loader (syslinux), the kernel and the initrd and, that takes care to put root filesystem files into the right partition. Configuration files are on tmpfs filesystem and gets created on system startup by a software that reads an XML file that resides on an own partition. I'm looking a way to update the filesystem and i've considered two solutions: the firmware update is a compressed file that could contain kernel, initrd and

How to add a Linux kernel driver module as a Buildroot package?

做~自己de王妃 提交于 2019-11-26 21:25:32
问题 I am currently building an Embedded Linux for my Zybo Board from Xilinx. For this I use Buildroot. Now I want to add a driver, written in C, which can be used by a user program to write to some specific registers, enabling it to control some LEDs. When I checked the manual, it basically says the first thing to do is create a Config.in in a new package folder, where you write some text explaining the driver. Okay, I did that. But now the makefile: I don't quite understand what needs to be in