BusyBox

How to make a dhcp server listen for broadcast requests in a virtual box vm

a 夏天 提交于 2019-12-12 02:48:41
问题 I am working on udhcpd , a light weight dhcp server that comes with busy box . I have made some code changes and to test those i need to run udhcpd, send it request (to obtain ip) from a client and view its response. This requires multiple machines and the suitable option for me was to use multiple virtual box VMs. I used two linux VM's (Fedora for running udhcpd and a ubuntu for running udhcpc - a client that comes with busy box for generating dhcp requests). Now there are multiple modes of

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

How do I set new line with a sed using c\?

拟墨画扇 提交于 2019-12-11 16:37:54
问题 I am feeling stupid but have tried multiple ways of having new line in my script. I got help from Jonathan with a sed command. It worked great but the formatting is lost and now I can't find a way to make it work. The code looks like this: su -c "sed -i '/aStyle.Landscape {/,/}/c\ MImAbstractKeyAreaStyle.Landscape {\ /*** Label Setttings ***/\ label-margin-top: 10.6mm; /* 0.6 */\ label-margin-left-with-secondary: -1; /* not used, labels are centered horizontally */\ secondary-label-separation

Removing busybox completely from a Yocto generated image

扶醉桌前 提交于 2019-12-11 05:07:34
问题 I'm trying to build a yocto image without busybox and without any busybox applet deployed. I have tried that configuring my distro.conf file in this way: DISTRO_FEATURES_remove = " busybox" VIRTUAL-RUNTIME_base-utils = "" PREFERRED_PROVIDER_virtual/base-utils = "" Nonetheless, busybox binary and two related applets (syslog and udhcpc) are installed in the generated image: $ rpm -qa | grep busybox busybox-syslog-1.24.1-r0.corei7_64 busybox-1.24.1-r0.corei7_64 busybox-udhcpc-1.24.1-r0.corei7_64

vagrant ash: sudo: not found

烂漫一生 提交于 2019-12-11 04:01:14
问题 When starting my vagrant box with a small 15MB Busybox image, the first time I get an error during the phase Mounting shared folders... It seems vagrant is trying something with sudo, which isn't istalled. I get this error: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mkdir -p /vagrant Stdout from the command: Stderr from the command: ash: sudo: not found It works so far, I can login as root with the password vagrant, but

Replace busybox ntpd with ntp from meta-openembedded

ぃ、小莉子 提交于 2019-12-11 02:48:21
问题 I would like to replace the standard ntpd that comes with busybox with the full NTP server released in meta-openembedded. However, I can't find the configuration or Yocto variable that sets that this version of the busybox should not have ntpd . What is the efficient way to do this? Keep in mind that I can't edit the released Poky layer. 回答1: The way I solved is quite simple. There was a file in my layer called busybox/files/ntpd.cfg with a flag CONFIG_NTPD . I've just set it to n and busybox

What's the point of using Busybox in a low ram embedded system

≡放荡痞女 提交于 2019-12-11 00:47:10
问题 I'm working on bringing linux to a custom Cortex-M7 board with 16 Mb of SDRAM and 64 Mb of Flash. The platform has no-MMU, no shared libraries, FLAT executables. I'm having problems booting a Busybox system with very simple init.d shell scripts. The system is running out of memory by executing simple shell commands like "[" or "printf". It turns out that everytime one of these commands are executed the system needs to load the FULL, one and only busybox executable (650 Kb on my system). So

了解linux的进程:rootfs与linuxrc

╄→尐↘猪︶ㄣ 提交于 2019-12-10 03:20:55
内核启动的最后阶段启动了三个进程 进程0:进程0其实就是刚才讲过的idle进程,叫空闲进程,也就是死循环。 进程1:kernel_init函数就是进程1,这个进程被称为init进程。 进程2:kthreadd函数就是进程2,这个进程是 linux 内核的守护进程。这个进程是用来保证linux内核自己本身能正常工作的。 在嵌入式操作系统中一般会指定/linuxrc为init进程 1、/linuxrc是一个可执行的应用程序 (1)/linuxrc是应用层的,和内核源码一点关系都没有 (2)/linuxrc在开发板当前内核系统下是可执行的。因此在ARM SoC的 linux系统 下,这个应用程序就是用arm-linux-gcc编译链接的;如果是在PC机linux系统下,那么这个程序就是用gcc编译连接的。 (3)/linuxrc如果是静态编译连接的那么直接可以运行;如果是动态编译连接的那么我们还必须给他提供必要的库文件才能运行。但是因为我们/linuxrc这个程序是由内核直接调用执行的,因此用户没有机会去导出库文件的路径,因此实际上这个/linuxrc没法动态连接,一般都是静态连接的。 2、/linuxrc执行时引出用户界面 (1)操作系统启动后在一系列的自己运行配置之后,最终会给用户一个操作界面(也许是cmdline,也许是GUI),这个用户操作界面就是由/linuxrc带出来的。

docker基础使用与入门实践

a 夏天 提交于 2019-12-09 22:16:06
一、何为docker docker最早基于LXC实现(LinuX Container)从0.7版本以后开始去除LXC转而使用自行开发的libcontainer,从1.11开始,演进为runC和containerd;docker是go语言开发,基于Linux内核的cgroup,namespace以及AUFS类似的Union FS(联合文件系统)等技术,对进程进行封装隔离,属于操作系统层面的虚拟化技术,由于隔离的进程独立于宿主机和其他的隔离进程,因此也称其为容器。 docker在容器的基础上进行了进一步的封装从文件系统,网络互联到进程隔离等,极大简化了容器的创建和维护管理。使得docker技术比虚拟机技术更为轻便,快捷。 虚拟机与docker比较: 图片引用自网络 由上面的比较图可以看同样启动一个服务;虚拟机会多一层操作系统,而docker和宿主机共用内核系统;因此docker占用资源更少,资源利用率更高; 虚拟机与docker对比 docker优点总结: 高效的资源利用率 快速的启动 一致的运行环境 持续将会和部署 更轻松的迁移 便捷的维护和扩展 二、dcoker安装 系统要求:CentOS7.x_x64且安装Docker CE版本(社区版),不要使用epel仓库自带的docker docker从1.17后主要分docker-ce和docker-ee(企业版,你懂滴

Alternatives to xargs -l

心不动则不痛 提交于 2019-12-09 16:04:13
问题 I want to rename a bunch of dirs from DIR to DIR.OLD. Ideally I would use the following: find . -maxdepth 1 -type d -name \"*.y\" -mtime +`expr 2 \* 365` -print0 | xargs -0 -r -I file mv file file.old But the machine I want to execute this on has BusyBox installed and the BusyBox xargs doesn't support the "-I" option. What are some common alternative methods for collecting an array of files and then executing on them in a shell script? 回答1: You can use -exec and {} features of the find