search for: gen_init_cpio

Displaying 20 results from an estimated 23 matches for "gen_init_cpio".

2003 Mar 18
1
Reason for gen_init_cpio instead of just cpio?
I've googled to try and find discussion of this topic but didn't see any results particularly interesting... Is there any particular reason the kernel has gen_init_cpio instead of just using cpio itself? I'm working on some changes that would involve just cpio-ing the entire usr/root subtree as the initramfs image (instead of gen_init_cpio having to know ahead of time what files to include), and am wondering why it wouldn't be just easier to use cpio it...
2003 May 22
0
[PATCH 2.5.69 3/3] Bandaids for gen_init_cpio and initramfs
Last patch for now. This gets gen_init_cpio into a state where it can pick up a "kinit" binary from usr and stuff it into the cpio archive as /sbin/init. This is obviously a crock, but it suffices for testing until something sane is done about integrating klibc into the kernel tree. The patch also adds a bit of instrumentation to...
2004 Sep 16
3
[PATCH] gen_init_cpio uses external file list
(Apologies to klibc@zytor.com for the re-send) This patch makes gen_init_cpio generate the initramfs_data.cpio from a file which contains a list of entries: file, dir, nod. I swapped the order of filename/location for the file arguments so that it would be more uniform with the dir and nod tyes. [thayne@torch linux-2.6.8]$ usr/gen_init_cpio --help ERROR: unable to open ...
2004 Sep 16
3
[PATCH] gen_init_cpio processes file from a file list
The patch makes gen_init_cpio generate the initramfs_data.cpio from a file which contains a list of entries: file, dir, nod. I swapped the order of filename/location for the file arguments so that it would be more uniform with the dir and nod tyes. [thayne@torch linux-2.6.8]$ usr/gen_init_cpio --help ERROR: unable to open ...
2006 Apr 09
1
[PATCH] kbuild: rebuild initramfs if included files changes
...@ravnborg.org> diff --git a/usr/Makefile b/usr/Makefile index e2129cb..ed18668 100644 --- a/usr/Makefile +++ b/usr/Makefile @@ -1,65 +1,39 @@ +# +# kbuild file for usr/ - including initramfs image +# +# Generate builtin.o based on initramfs_data.o obj-y := initramfs_data.o -hostprogs-y := gen_init_cpio - -clean-files := initramfs_data.cpio.gz initramfs_list - # initramfs_data.o contains the initramfs_data.cpio.gz image. # The image is included using .incbin, a dependency which is not # tracked automatically. $(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE - -ifdef CONFIG_INITRAMF...
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
..._uid). In same process the usr/Kbuild file was cluttered with functionality that really belonged in a shell script. So in the end all functionality was moved to the shell script gen_initramfs_list.sh. The script got a new name and a new home during the process. It is now located in usr/ along with gen_init_cpio Outstanding issues: - needs to find a nice way to get rid of temp files - carefull review when I'm awake again Posting it here to get some inital comments on the approach and maybe some usefull comments on my less-skilled shell script programming. The files are just pasted in below for comme...
2006 Apr 17
0
[PATCH] klibc: rebuild cpio image when content changes
...t _usr_%,%,$(@)) + +$(klibc-subdir): + $(Q)$(MAKE) $(klibc)=$(src)/$(patsubst _usr_%,%,$(@)) endif -subdir- := klibc kinit utils dash gzip + # Generate builtin.o based on initramfs_data.o obj-y := initramfs_data.o @@ -36,7 +53,7 @@ ##### # Generate the initramfs cpio archive hostprogs-y := gen_init_cpio -initramfs := $(CONFIG_SHELL) $(srctree)/scripts/gen_initramfs_list.sh +ginitramfs := $(CONFIG_SHELL) $(srctree)/scripts/gen_initramfs_list.sh ramfs-input := $(shell echo $(CONFIG_INITRAMFS_SOURCE)) ramfs-input := $(if $(ramfs-input), $(ramfs-input), -d) @@ -44,26 +61,17 @@ ramfs-args := \...
2006 Apr 09
0
[PATCH] kbuild: fix usr/Kbuild to use new usr/gen_initramfs.sh
...a cpio archive is directly specified.) -endif -# Now use the cpio archive directly -initramfs_data_cpio = $(quotefixed_initramfs_source) -targets += $(quotefixed_initramfs_source) - -else - -# INITRAMFS_SOURCE is not a cpio archive - create one +# Create cpio archive from filelist hostprogs-y := gen_init_cpio -$(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio \ - $(obj)/initramfs_list FORCE - $(call if_changed,cpio) - -targets += initramfs_data.cpio -initramfs_data_cpio = $(obj)/initramfs_data.cpio - -endif +# Files included in cpio archive (cpio archive is updated if +# any...
2006 Apr 17
0
[PATCH] klibc: default initramfs content stored in usr/initramfs.default
...usage() { cat << EOF Usage: -$0 [-o <file>] [-u <uid>] [-g <gid>] {-d | <cpio_source>} ... +$0 [-o <file>] [-u <uid>] [-g <gid>] <cpio_source> ... -o <file> Create gzipped initramfs file named <file> using gen_init_cpio and gzip -u <uid> User ID to map to user ID 0 (root). @@ -27,7 +27,6 @@ Usage: <cpio_source> File list or directory for cpio archive. If <cpio_source> is a .cpio file it will be used as direct input to initramfs. - -d Output the de...
2005 Feb 02
2
Query on Using initramfs
Hi I am looking at inserting functions in the early user space and want to use initramfs for this. I understand this can be achieved using 'initrd' or by making changes in the 'usr/gen_init_cpio.c' file. Can someone kindly give me pointers as to how to go about this. I am looking at the 2.6.x kernel. Thanks Rachita.
2005 Aug 09
6
initramfs howto
...d point to either - a directory containing the files to be included in the archive There is a slight problem with this, as you will need device files which you can only create as root. - a file which should contain entries according to the format described by the "usr/gen_init_cpio" program in the kernel tree. This solves the above problem, as creating device nodes only involves adding a line to a text file. - a cpio archive with a .cpio suffix The archive created by setting INITRAMFS_SOURCE is saved as usr/initramfs_data.cpio.gz and built into the kernel...
2006 Apr 07
1
Rationale for hashed .so?
...e to know the reason for having a klibc-$HASH.so version which the shared apps are linked against. It makes it less simple to build a static initramfs file list to use. Currently, one has to read the libc.so.hash file to build the filename, something that can't be done in a file list passed to gen_init_cpio unless it's done in some sort of script. Could you explain the reason for this? Is it possible to get rid of this hash to make it easier to work with? Thanks in advance, Aaron
2003 Oct 04
0
klibc: kbuild improvements
...ngle) + +endif + # Compile programs on the host # =========================================================================== ===== usr/Makefile 1.11 vs edited ===== --- 1.11/usr/Makefile Thu Jul 31 22:19:05 2003 +++ edited/usr/Makefile Sat Oct 4 22:40:56 2003 @@ -2,8 +2,6 @@ host-progs := gen_init_cpio -HOSTCC += -I$(TOPDIR)/include - clean-files := initramfs_data.cpio.gz # initramfs_data.o contains the initramfs_data.cpio.gz image. @@ -16,9 +14,16 @@ # but we need the information for the build as well, so it's duplicated # here. -initramfs-$(CONFIG_USR_KINIT) := $(obj)/kinit/kinit...
2006 Jun 26
0
[klibc 08/43] klibc: default initramfs content stored in usr/initramfs.default
...usage() { cat << EOF Usage: -$0 [-o <file>] [-u <uid>] [-g <gid>] {-d | <cpio_source>} ... +$0 [-o <file>] [-u <uid>] [-g <gid>] <cpio_source> ... -o <file> Create gzipped initramfs file named <file> using gen_init_cpio and gzip -u <uid> User ID to map to user ID 0 (root). @@ -27,7 +27,6 @@ Usage: <cpio_source> File list or directory for cpio archive. If <cpio_source> is a .cpio file it will be used as direct input to initramfs. - -d Output the de...
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...itramfs_data.o + +# initramfs_data.o contains the initramfs_data.cpio.gz image. +# The image is included using .incbin, a dependency which is not +# tracked automatically. +$(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE + +##### +# Generate the initramfs cpio archive + +hostprogs-y := gen_init_cpio +ginitramfs := $(CONFIG_SHELL) $(srctree)/scripts/gen_initramfs_list.sh +ramfs-def := $(srctree)/$(src)/initramfs.default +ramfs-input := $(shell echo $(CONFIG_INITRAMFS_SOURCE)) +ramfs-input := $(if $(ramfs-input), $(ramfs-input), $(ramfs-def)) + +ramfs-args := \ + $(if $(CONFIG_INITRAM...
2005 Aug 08
5
[PATCH - RFC] Move initramfs configuration to "General setup"
...ding the - initramfs image. A cpio archive should contain a filesystem archive - to be used as an initramfs image. Directories should contain a - filesystem layout to be included in the initramfs image. Files - should contain entries according to the format described by the - "usr/gen_init_cpio" program in the kernel tree. - - When multiple directories and files are specified then the - initramfs image will be the aggregate of all of them. - - See <file:Documentation/early-userspace/README for more details. - - If you are not sure, leave it blank. - -config INITRAMFS_ROOT_...
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...-# kbuild file for usr/ - including initramfs image and klibc -# - -klibc definitions - to be moved to top-level Makefile later -export KLIBSRC := $(srctree)/$(src)/klibc -export KLIBINC := $(srctree)/$(src)/include - -obj-y := initramfs_data.o -always := klibc/libc.a -hostprogs-y := gen_init_cpio -clean-files := initramfs_data.cpio.gz initramfs_list - -# Descend down into klibc when cleaning -subdir- := klibc - -# Build klibc library -$(obj)/klibc/libc.a: FORCE - $(Q)$(MAKE) -rR -f $(srctree)/scripts/Kbuild.klibc obj=$(obj)/klibc - -initramfs-y += gzip - -initramfs-y := $(addprefix $(...
2005 Jul 30
3
kbuild updates to klibc
Hi Peter & others. Here are three patches that does the following: #1 - Update kbuild part of klibc so make clean works Adds gzip including a sample kbuild file #2 - Factor out definition of usr/ to two variables #3 - Move kbuild files to reflect location in the kernel As requested in earlier mail I need a bit of guidiance of what you expect from the kernel integrated parts of klibc.
2005 May 22
1
error starting asterisk: undefined symbol: __i686.get_pc_thunk.dx
...cripts/lxdialog/lxdialog matches Binary file scripts/kconfig/conf matches Binary file scripts/kconfig/mconf matches Binary file scripts/basic/docproc matches Binary file scripts/basic/fixdep matches Binary file scripts/basic/split-include matches Binary file scripts/kallsyms matches Binary file usr/gen_init_cpio matches On google, I found a reference to a possible gcc version incompatibility, and a couple of buzilla reports about linux-2.6.11. For now, I''ll be recompiling gcc and trying again. Any pointers appreciated. -- Andrew Thompson http://aktzero.com/ ________________________________...
2006 Apr 15
1
[PATCH] klibc: fix gen_initramfs_init.sh when using -d
...input_file "$arg" "$#" + *) process_file "$arg" "$#" ;; esac ;; diff --git a/usr/Kbuild b/usr/Kbuild index e243e11..c4f5be2 100644 --- a/usr/Kbuild +++ b/usr/Kbuild @@ -37,8 +37,9 @@ # Generate the initramfs cpio archive hostprogs-y := gen_init_cpio initramfs := $(CONFIG_SHELL) $(srctree)/scripts/gen_initramfs_list.sh -ramfs-input := $(if $(filter-out "",$(CONFIG_INITRAMFS_SOURCE)), \ - $(CONFIG_INITRAMFS_SOURCE),-d) +ramfs-input := $(shell echo $(CONFIG_INITRAMFS_SOURCE)) +ramfs-input := $(if $(ramfs-input), $(...