summaryrefslogtreecommitdiffstats
path: root/fs
Commit message (Collapse)AuthorAgeFilesLines
* Create and mount /dev/shmMaxime Ripard2011-07-032-0/+2
| | | | | | | | | The /dev/shm directory is neither created nor mounted as tmpfs as boot time. This will cause troubles when using named semaphores on the system. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Move rootfs content options under system configurationPeter Korsgaard2011-05-121-76/+1
| | | | | | | | | Instead of the current mix between system config and filesystem menus. At the same time rename 'Target filesystem options' menu to 'Filesystem images' as it now only contains options about image formats. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target/generic: only show getty port option if default skeleton is usedPeter Korsgaard2011-05-121-4/+0
| | | | | | | | The special marker in etc/inittab might not be present with a custom skeleton. At the same time make the option always active, remove the hardcoded tty1/tty2 gettys and reword the option description slightly. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Allow several device tables and split in two parts our device tableThomas Petazzoni2011-05-092-10/+20
| | | | | | | | | | | | | | This allows to have a device table for all directories/files and another device table for the device files themselves. Both are needed for static /dev, but only the first one is needed when devtmpfs/mdev/udev are used. We take this opportunity to move the documentation of the device table format in a common location, package/makedevs/README. [Peter: simplify code slightly, fix indentation] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Create menu entry to select device creation methodYegor Yefremov2011-05-091-6/+27
| | | | | | | | | | | | | | | | | | Four methods for the creation of device files in /dev are now proposed: - static method uses device table as before - devtmpfs method enables this feature in kernel - mdev method adds mdev starting script to the file system and selects mdev itself for installation - udev method selects udev for installation All dynamic methods are based on devtmpfs, so one doesn't need to care about /dev folder. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: add ftp user/groupPeter Korsgaard2011-04-224-0/+3
| | | | | | Needed by E.G. proftpd for the default (anonymous ftp) config. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* squashfs: re-add legacy lzma supportGustavo Zacarias2011-03-052-0/+7
| | | | | | | | | Readd legacy LZMA support since older patched kernels might be using it. Introduce an XZ target filesystem option for the new format. [Peter: add a seperate xz target for squashfs-target as well] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* squashfs: bump versionPeter Korsgaard2011-03-031-1/+1
| | | | | | | The EXTRA_CFLAGS patch is now upstream, but we need a fix for !gzip builds instead. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/skeleton: mount /proc before remounting rwANDY KENNEDY2011-02-211-1/+1
| | | | | | | | inittab ordering causes mount to fail on remount,rw. inittab changed to mount /proc first. Signed-off-by: Andy Kennedy <Andy.Kennedy@AdTran.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/jffs2: remove BR2_JFFS2_TARGET_SREC optionPeter Korsgaard2011-01-142-14/+1
| | | | | | This kind of custom image conversion is better handled outside BR. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/ext2: remove redundant BR2_TARGET_ROOTFS_EXT2_SQUASH optionPeter Korsgaard2011-01-142-9/+0
| | | | | | | The generic fs handling does a chmod -R 0:0 $(TARGET_DIR), so there's no need for a specific option to enforce this when making an ext2fs image. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/tar: enable by defaultPeter Korsgaard2011-01-141-0/+1
| | | | | | | This way we'll get something in images/ by default, and hopefully people will be less likely to try to use target/ directly. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/ext2: don't enable by defaultPeter Korsgaard2011-01-141-1/+0
| | | | | | | | | It's pretty uncommon to use ext2fs on embedded systems, so don't enable it by default. Adjust defconfigs to match. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* ubifs: Add UBI image generation support.Julien Boibessot2011-01-113-0/+51
| | | | | | | | | | | | UBI images are generated from UBIFS one (with ubinize tool) and are used by bootloaders (eg U-Boot) to write UBIFS images directly on bare NAND FLASH (see http://www.linux-mtd.infradead.org/faq/ubi.html). [Peter: tweak help text] Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> Signed-off-by: Nicolas Colombain <nicolas.colombain@armadeus.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* target skeleton: add audio groupGustavo Zacarias2011-01-111-0/+1
| | | | | | | | Add audio group to the target skeleton. Some multimedia applications based on alsa-lib need it. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* etc/securetty: Add ttyAM for ep93xxH Hartley Sweeten2011-01-111-0/+3
| | | | | | | Allow root login on the Cirrus ep93xx ARM AMBA serial ports. Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* genext2fs.sh: improve number of blocks calculationPeter Korsgaard2010-12-301-14/+11
| | | | | | | | | | | | | Closes #2929 Instead of just adding a fixed amount to the blocks used, try to estimate the real space needed according to the filesystem structure (bitmaps, inodes, blocks). The side effect of this is that we no longer significantly overestimate the size needed for small file systems. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* etc/securetty: Add ttyO0 to ttyO3 for omapGuillaume Gardet2010-12-301-0/+4
| | | | | | | | Recent kernels (2.6.37*) use a different name for OMAP serial ports. They are no longer called ttySx but ttyOx. Signed-off-by: Guillaume GARDET <guillaume.gardet@free.fr> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Add network scripting folders to fs/skeletonYegor Yefremov2010-12-164-0/+0
| | | | | | | | | | | | Those folders are currently created using makedevs according to the specifications in device_table.txt. However, as makedevs is no longer executed when dynamic device creation methods are selected (devtmpfs, udev, mdev), those folders must be created differently. We choose to put them directly into the default filesystem skeleton. Signed-off-by: Yegor Yefremov <yegor_sub1@visionsystems.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* busybox: move udhcp script from skeleton to packageLionel Landwerlin2010-12-131-39/+0
| | | | | | | | | Since udhcpc is part of busybox, it seems logical to move the udhcpc script from skeleton to busybox. [Peter: only install if not available in skeleton] Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs: add extra deps to ROOTFS_*_DEPENDENCIES variablesPeter Korsgaard2010-11-191-2/+5
| | | | | | Instead of explicitly adding it both places it is used. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs: rename make targets to match package/ conventionPeter Korsgaard2010-11-192-6/+6
| | | | | | | | | Use rootfs-* rather than *-root, to match the convention used under package/ and which fits with the ROOTFS_*_ variables. This will also help with the host dependencies. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: fix init symlink creationMike Frysinger2010-11-171-2/+2
| | | | | | | | | | The -e test will dereference the symlink, so if there is no /bin/init, we will constantly try to create the symlink. So rather than error on subsequent runs when the link exists, use the force flag to ln. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Remove INITRAMFS_TARGET variableThomas Petazzoni2010-11-041-6/+0
| | | | | | | | | | | | | This used to be needed when the filesystem code was rewritten, but not the Linux compilation code. Now that the Linux compilation code has been rewritten, the mechanism to ensure that initramfs gets built *before* the kernel so that it can be integrated is different, and this INITRAMFS_TARGET variable is no longer used. See f507921d391bb2578261a9e45c003e72302dc67a for details. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Merge branch 'for-2010.11/remove-deprecated-arch' of ↵Peter Korsgaard2010-09-301-2/+2
|\ | | | | | | git://git.busybox.net/~tpetazzoni/git/buildroot
| * Remove code specific to removed architecturesThomas Petazzoni2010-08-311-2/+2
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | squashfs: add lzma supportPeter Korsgaard2010-09-202-0/+7
| | | | | | | | | | | | And try to select a sane default compression algorithm. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | squashfs: bump 4.x, add lzo supportPeter Korsgaard2010-09-202-1/+23
| | | | | | | | | | | | We'll need libattr/xz packages in BR to enable support for those. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | fs/skeleton: remove ancient .bashrcPeter Korsgaard2010-09-161-48/+0
| | | | | | | | | | | | | | | | It contains a bunch of semi-random aliases confusing users, and sets a bunch of environment variables which are already provided by bash by default. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | fs/squashfs: fix image file permissionsPeter Korsgaard2010-08-311-1/+2
| | | | | | | | | | | | | | Set image file permissions to 0644 like it was before the fs rework, instead of the rather unhelpful 0700 (E.G. when image is used for tftp). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* | Add JFFS2 SREC format descriptionYegor Yefremov2010-08-301-1/+3
|/ | | | | | | Add JFFS2 SREC format description Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: Don't overwrite $(TARGET_DIR)/init if it existsSimon Pasch2010-08-291-2/+3
| | | | | | | | | Closes #2443 Allow use of custom init scripts. Signed-off-by: Simon Pasch <fpasch@googlemail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/squashfs: fix endianness typo for squashfs3Stanislav Bogatyrev2010-08-271-1/+1
| | | | | Signed-off-by: Stanislav Bogatyrev <bogatyrev_stanislav@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs: add option to define path to custom rootfs skeletonDmytro Milinevskyy2010-07-181-0/+23
| | | | | | Signed-off-by: Dmytro Milinevskyy <milinevskyy@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* move default skeleton to fs/ and drop busybox skeletonDmytro Milinevskyy2010-07-1850-0/+794
| | | | | | | [Peter: fixup patch, adjust for busybox.mk changes] Signed-off-by: Dmytro Milinevskyy <milinevskyy@gmail.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* ubifs: fix lzo typoPeter Korsgaard2010-07-011-1/+1
| | | | | | Closes #2155 Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: update help textThomas Petazzoni2010-06-261-11/+13
| | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: only show the option when a Linux kernel is being builtThomas Petazzoni2010-06-261-0/+3
| | | | | | | Closes #2119 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* linux: add support for initramfsThomas Petazzoni2010-06-222-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Buildroot, the kernel is built and installed *before* the root filesystems are built. This allows the root filesystem to correctly contain the kernel modules that have been installed. However, in the initramfs case, the root filesystem is part of the kernel. Therefore, the kernel should be built *after* the root filesystem (which, in the initramfs case simply builds a text file listing all files/directories/devices/symlinks that should be part of the initramfs). However, this isn't possible as the initramfs text file would lack all kernel modules. So, the solution choosen here is to keep the normal order: kernel is built before the root filesystem is generated, and to add a little quirk to retrigger a kernel compilation after the root filesystem generation. To do so, we add a ROOTFS_$(FSTYPE)_POST_TARGETS variable to the fs/common.mk infrastructure. This allows individual filesystems to set a target name that we should depend on *after* generating the root filesystem itself (contrary to normal ROOTFS_$(FSTYPE)_DEPENDENCIES, on which we depend *before* generating the root filesystem). The initramfs code in fs/initramfs/initramfs.mk uses this to add a dependency on 'linux26-rebuild-with-initramfs'. In linux/linux.mk, we do various things : * If BR2_TARGET_ROOTFS_INITRAMFS is enabled (i.e if initramfs is enabled as a root filesystem type), then we create an empty rootfs.initramfs file (remember that at this point, the root filesystem hasn't been generated) and we adjust the kernel configuration to include an initramfs. Of course, in the initial kernel build, this initramfs will be empty. * In the linux26-rebuild-with-initramfs target, we retrigger a compilation of the kernel image, after removing the initramfs in the kernel sources to make sure it gets properly rebuilt (we've experienced cases were modifying the rootfs.initramfs file wouldn't retrigger the generation of the initramfs at the kernel level). This is fairly quirky, but initramfs really is a special case, so in one way or another, we need a little quirk to solve its specialness. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* iso9660: take into account the linux changesThomas Petazzoni2010-06-222-6/+6
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* jffs2: let makedevs create device filesThomas Petazzoni2010-06-051-4/+0
| | | | | | | | | | | | | | | | | | | | | | The common filesystem infrastructure in fs/common.mk uses a smart combination of makedevs and fakeroot to create the device files in the target filesystem images without being root. This technique is applied to all filesystem formats that rely on this common infrastructure, and JFFS2 is one of them. Therefore, using the -D option of mkfs.jffs2, which allows to specify a device table, is redundant with the usage of makedevs. And it is worst than redundant: for some reason, -D does not create all device files with the correct major and minor numbers, as reported in bug #1771. For coherence, we just remove the usage of mkfs.jffs2 -D option, and rely on makedevs/fakeroot to create the device files. This commit fixes bug #1771. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Merge branch 'graph-dependencies' of ↵Peter Korsgaard2010-05-271-0/+3
|\ | | | | | | git://git.busybox.net/~tpetazzoni/git/buildroot
| * Add a <fs>-root-show-depends targetThomas Petazzoni2010-05-211-0/+3
| | | | | | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* | fs/squashfs: squashfs3 needs to set big/little endianPeter Korsgaard2010-05-261-2/+10
|/ | | | Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* initramfs: fix init symlinkWill Wagner2010-04-201-0/+2
| | | | | | | | When initramfs was ported to the new fs structure the init symlink macro was defined, but forgot to add it to PRE_GEN_HOOKS Signed-off-by: Will Wagner <will_wagner@carallon.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* Repair initramfs dependancies after move to fsWill Wagner2010-04-201-0/+6
| | | | | | | | | | The restructure for building root filesystems changed the target name for the initramfs file, to build the file the trget is now initramfs-root but the generated file is rootfs.initramfs Signed-off-by: Will Wagner <will_wagner@carallon.com> Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* makedevs: convert to a more normal way of building packagesThomas Petazzoni2010-04-191-1/+1
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
* fs/ext2: fix blocks/inodes calculationPeter Korsgaard2010-04-192-11/+41
| | | | | | | | | | | With the ROOTFS_TARGET conversion, EXT2_OPTS gets evaluated very early (before TARGET_DIR is populated with files), so the calculated blocks/inodes numbers are wrong. Fix it by moving the calculation to a shell script wrapper around genext2fs, so it only gets executed just before genext2fs runs. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* fs/ext2: fix typoPeter Korsgaard2010-04-191-1/+1
| | | | | | | | | BR2_TARGET_ROOTFS_EXT2_RESBLKS is an int, so test against 0 rather than the empty string - Otherwise the test is always true and a -m option without arguments is added to the argument list, causing genext2fs to get confused. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
* cramfs/jffs2: use the new ROOTFS_DEVICE_TABLE variableThomas Petazzoni2010-04-172-4/+4
| | | | Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>