Displaying 20 results from an estimated 22 matches for "initramfs_data".
2006 Apr 09
0
[PATCH] kbuild: fix usr/Kbuild to use new usr/gen_initramfs.sh
...applied until my kbuild.git tree is merged
upstream. Or it is merged into the klibc-kernel tree.
Sam
diff --git a/usr/Kbuild b/usr/Kbuild
index daf5e3f..55218ef 100644
--- a/usr/Kbuild
+++ b/usr/Kbuild
@@ -26,67 +26,37 @@ subdir- := klibc kinit utils dash gzip
# Generate builtin.o based on initramfs_data.o
-obj-y := initramfs_data.o
+obj-y := initramfs_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
-ifdef CONFIG_I...
2006 Apr 17
0
[PATCH] klibc: rebuild cpio image when content changes
...dir := klibc
+usr-subdirs := kinit utils dash gzip
+subdir- := $(klibc-subdir) $(usr-subdirs)
+
+usr-subdirs := $(addprefix _usr_,$(usr-subdirs))
+klibc-subdir := $(addprefix _usr_,$(klibc-subdir))
+
# Klibc binaries
ifdef CONFIG_KLIBC
klibc := -f $(srctree)/scripts/Kbuild.klibc obj
+
+# .initramfs_data.cpio.gz.d is used to identify all files included
+# in initramfs and to detect if any files are added/removed.
+# Removed files are identified by directory timestamp being updated
+# The dependency list is generated by gen_initramfs.sh -l
+ifneq ($(wildcard $(obj)/.initramfs_data.cpio.gz.d),)
+ inc...
2006 Jun 26
0
[klibc 19/43] klibc basic build infrastructure
...de-subdir := include
+klibc-subdir := klibc
+usr-subdirs := kinit utils dash gzip
+subdir- := $(include-subdir) $(klibc-subdir) $(usr-subdirs)
+
+usr-subdirs := $(addprefix _usr_,$(usr-subdirs))
+klibc-subdir := $(addprefix _usr_,$(klibc-subdir))
+
+# Klibc binaries
+ifdef CONFIG_KLIBC
+
+# .initramfs_data.cpio.gz.d is used to identify all files included
+# in initramfs and to detect if any files are added/removed.
+# Removed files are identified by directory timestamp being updated
+# The dependency list is generated by gen_initramfs.sh -l
+ifneq ($(wildcard $(obj)/.initramfs_data.cpio.gz.d),)
+ inc...
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...ode 100644
--- a/kernel/Kbuild
+++ /dev/null
@@ -1,87 +0,0 @@
-#
-# 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...
2006 Apr 09
1
[PATCH] kbuild: rebuild initramfs if included files changes
...initramfs generation.
Signed-off-by: Sam Ravnborg <sam@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...
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
...(obj)/initramfs_list: klibcdirs
klibcdirs: FORCE
$(Q)$(MAKE) $(klibc)=$(src)/klibc
$(Q)$(MAKE) $(klibc)=$(src)/kinit
$(Q)$(MAKE) $(klibc)=$(src)/utils
$(Q)$(MAKE) $(klibc)=$(src)/dash
$(Q)$(MAKE) $(klibc)=$(src)/gzip
endif
subdir- := klibc kinit utils dash gzip
# Generate builtin.o based on initramfs_data.o
obj-y := initramfs_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
# Fol...
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.
2003 Oct 04
0
klibc: kbuild improvements
...================================================================
===== 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
-initramfs-$(CONFIG_IP_PNP) += $(obj)/ipconfig/libipconfig.a
-ini...
2004 Jun 30
1
initramfs and kernel 2.6.7
Hi,
I 'am trying to launch linux kernel 2.6.7 with initramfs.
My pxelinux.cfg/default file looks as follows:
default a1
prompt 1
timeout 600
label a1
kernel vmlinuz-2.6.7-1
append initrd=initramfs_data.cpio.gz root=/dev/ram0 init=/linuxrc
Kernel image vmlinuz-2.6.7-1 and initramfs_data.cpio.gz was loaded
succesfully by pxelinux.
Kernel says:
checking if image is initramfs... it is
but later occurs an error:
Kernel panic: VFS: Unable to mount root fs on ram0
Full log: http://rescuecd.pld-li...
2005 Jul 26
2
[PATCH] better kbuild integration
...resumably be shared...
+install: all
+ $(INSTALL_EXEC) gzip gunzip zcat $(INSTALLROOT)$(INSTALLDIR)/$(CROSS)bin
+
+endif
diff --git a/kernel/Kbuild b/kernel/Kbuild
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -7,15 +7,26 @@ 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 $(obj)/,$(initramfs-y))
+.PHONY: $...
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 '--help': No such file...
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.
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 '--help': No such file...
2005 Jul 28
0
[PATCH] Use KLIBSRC + KLIBINC consistent in kbuild files
.../Kbuild
--- a/kernel/Kbuild
+++ b/kernel/Kbuild
@@ -2,6 +2,10 @@
# 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
diff --git a/klibc/socketcalls/Kbuild b/klibc/socketcalls/Kbuild
--- a/klibc/socketcalls/Kbuild
+++ b/klibc/socketcalls/Kbuild
@@ -11,8 +11,6 @@ endif
# Composite object containing all .o file
always := socketcalls.o
-klibc-dir := $...
2006 Apr 17
0
[PATCH] kbuild: support single targets for klibc and klibc programs
...(srctree)/$(src)/klibc
-export KLIBCINC := $(src)/include
-export KLIBCOBJ := $(objtree)/$(obj)/klibc
CONFIG_KLIBC := 1
klibc-subdir := klibc
@@ -17,7 +13,6 @@ klibc-subdir := $(addprefix _usr_,$(klib
# Klibc binaries
ifdef CONFIG_KLIBC
-klibc := -f $(srctree)/scripts/Kbuild.klibc obj
# .initramfs_data.cpio.gz.d is used to identify all files included
# in initramfs and to detect if any files are added/removed.
2003 May 22
0
[PATCH 2.5.69 3/3] Bandaids for gen_init_cpio and initramfs
...;
diff -Nru a/usr/Makefile b/usr/Makefile
--- a/usr/Makefile Thu May 22 15:40:19 2003
+++ b/usr/Makefile Thu May 22 15:40:19 2003
@@ -20,7 +20,7 @@
# initramfs-y := $(obj)/root/hello
quiet_cmd_cpio = CPIO $@
- cmd_cpio = ./$< > $@
+ cmd_cpio = ./$< $(obj) > $@
$(obj)/initramfs_data.cpio: $(obj)/gen_init_cpio $(initramfs-y) FORCE
$(call if_changed,cpio)
diff -Nru a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c
--- a/usr/gen_init_cpio.c Thu May 22 15:40:19 2003
+++ b/usr/gen_init_cpio.c Thu May 22 15:40:19 2003
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <stdio.h>
#incl...
2006 Jun 28
35
[klibc 00/31] klibc as a historyless patchset (updated and reorganized)
I have updated the klibc patchset based on feedback received. In
particular, the patchset has been reorganized so as not to break
git-bisect.
Additionally, this updates the patch base to 2.6.17-git12
(d38b69689c349f35502b92e20dafb30c62d49d63) and klibc 1.4.8; the main
difference on the klibc side is removal of obsolete code.
This is also available as a git tree at:
2005 Aug 09
6
initramfs howto
...t 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.
1.2) Calling "usr/gen_init_cpio" manually
You could also call "usr/gen_init_cpio" manually. This is the program used by
kbuild, so it takes the same list.
1.3) Using cpio
Running "find | cpio --format=newc -o | gzip > archive.cpio.gz&...
2003 Oct 13
5
initramfs as an initrd replacement
Hi ,
One of the things I am working on requires me to have a kernel and an
initrd (as root filesystem , based on busybox) in one single image. I am
trying to use initramfs for this, but there are a few things that I just
can't figure out.
As a test, I made a cpio archive of my own for the kernel source (plain
2.6.0-test5). Everything gets unpacked just fine during boot. Somehow I
was
2004 Jun 07
2
run-init warning
Please be aware that I HAVE NOT TESTED THIS PROGRAM... please try it in
a "safe" environment since for all I know it could nuke your "real root"
by mistake.
-hpa