rootfs

How is the rootfs size of a docker container decided?

佐手、 提交于 2020-03-19 06:46:22
问题 On one system, the disk size of the Docker container is like this: root@b65c6518f583:/# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/docker-253:0-202764498-b65c6518f5837667e7021971a97aebd382dddca6b3ecf4167472ebe17f16aace 99G 268M 94G 1% / tmpfs 5.8G 0 5.8G 0% /dev shm 64M 0 64M 0% /dev/shm tmpfs 5.8G 0 5.8G 0% /sys/fs/cgroup tmpfs 5.8G 96K 5.8G 1% /run/secrets /dev/mapper/rhel-root 50G 20G 31G 40% /etc/hosts We can see the rootfs size is 99G. While in another system, the disk

Copy a shell script to android out folder and execute it during boot

痴心易碎 提交于 2020-01-07 05:08:27
问题 I have a shell script which I need to copy to anywhere in out folder during Android build process so that it appears somewhere in Android RootFS. Now, once it is copied after Android build process and becomes part of Android RootFS, I want to execute the shell script during boot time. How can I do it? 回答1: Well, I created a root folder in AOSP or anywhere, then created Android.mk and copied the script to be copied to out folder. Added below comments in Android.mk $(shell cp -rf $(LOCAL_PATH)

Some details on ARM Linux boot

十年热恋 提交于 2019-12-30 10:44:10
问题 I'm trying to understand the details of linux booting on arm architecture. I did lot of search on the internet and understood so far some details although I feel each time I read an article it brings lot of other new terms and this makes things more complex. I do have 2 boards running linux, an olimex 9261 and a beaglebone black. My expertise in embedded systems especially arm is pretty good, but didn't play too much with linux though (except some user space programs and char drivers in

Error while building rootfs for Linux kernel

给你一囗甜甜゛ 提交于 2019-12-25 02:34:21
问题 I am trying to build my root file system by referring to http://emreboy.wordpress.com/2012/12/20/building-a-root-file-system-using-busybox/comment-page-1/ The change I did was (arm-linux-gnueabi- in place of arm-linux-) $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- defconfig $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- install It fails on this step(partial error log). Please advise CC util-linux/volume_id/volume_id.o CC

How Do I run ulimit -c unlimited automatically

断了今生、忘了曾经 提交于 2019-12-11 03:53:01
问题 I am trying to provide support for coredump file generation from my rootfs ,I have modified /etc/limits file with "ulimit -c unlimited" command and "* hard core -1" ,Now when I give kill -6 $$ ,expecting core file generation but to get this core file have to run ulimit -c unlimited explicitly . But I want it to happen automatically , no need to run ulimit -c unlimited it again in shell. Can anybody tell me what changes I have to make for the same to happen 回答1: From a program you can use

Why is the root filesystem is loaded into a ramdisk?

筅森魡賤 提交于 2019-12-09 13:23:04
问题 I am studying the boot process in Linux. I came across this sentence "RAM is several orders of magnitude faster than a floppy disk, so system operation is fast from a ramdisk" The kernel will anyway load the root filesystem in RAM for executing it. So my question why do we need a ramdisk for loading the the root filesystem, if the kernel loads the root file system into RAM ? 回答1: The documentation for SUSE Linux provides a good explanation of why Linux is booted with a RAMDisk: As soon as the

嵌入式软件环境构建:uboot、kernel、rootfs、app布局

牧云@^-^@ 提交于 2019-12-06 06:25:52
嵌入式开发涉及硬件和软件两部分,个人目前主要是做嵌入式软件部分,使用uboot+linux的整体方案。这里所说的“嵌入式软件环境”,不是指宿主机上的嵌入式开发环境,而是指目标机中的运行软件环境,只是简要介绍一种布局及相应的实现步骤。 一、软件环境的布局 开发板的datasheet中都有详细的地址空间的划分,其中比较重要的两块是:DDR地址空间和Flash地址空间。DDR空间是系统和应用的运行空间,一般由linux系统自身进行使用和管理;Flash空间是系统和应用载体的存放空间,一般需要在使用前进行划分,由应用开发者进行管理。在这里以我现在正在做的项目进行简单的示例和说明。 其中,Flash的整体地址空间为:0x34000000~0x34FFFFFF,共16MB,使用的是Nor Flash芯片。布局需要做的工作是: 确定uboot二进制文件的大小,使用的地址范围 确定linux kernel镜像文件的大小,使用的地址范围 确定rootfs 根文件系统的镜像文件大小,使用的地址范围 估计整体应用方案所需的空间大小,选择可使用的地址范围 完成上述工作后,项目的布局如下: uboot:0x34000000~0x34080000, 512KB kernel : 0x34080000~0x34180000, 1MB, 文件大小为952.8KB rootfs : 0x34180000

Why is the root filesystem is loaded into a ramdisk?

爱⌒轻易说出口 提交于 2019-12-03 16:18:50
I am studying the boot process in Linux. I came across this sentence "RAM is several orders of magnitude faster than a floppy disk, so system operation is fast from a ramdisk" The kernel will anyway load the root filesystem in RAM for executing it. So my question why do we need a ramdisk for loading the the root filesystem, if the kernel loads the root file system into RAM ? The documentation for SUSE Linux provides a good explanation of why Linux is booted with a RAMDisk: As soon as the Linux kernel has been booted and the root file system (/) mounted, programs can be run and further kernel

Some details on ARM Linux boot

廉价感情. 提交于 2019-12-01 08:17:51
I'm trying to understand the details of linux booting on arm architecture. I did lot of search on the internet and understood so far some details although I feel each time I read an article it brings lot of other new terms and this makes things more complex. I do have 2 boards running linux, an olimex 9261 and a beaglebone black. My expertise in embedded systems especially arm is pretty good, but didn't play too much with linux though (except some user space programs and char drivers in kernel). Here are my questions: One one board I have the following uboot output (linux 2.6.30): bootargs=mem