public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* klibc update
@ 2003-02-05  5:23 Greg KH
  2003-02-05 22:57 ` H. Peter Anvin
  0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2003-02-05  5:23 UTC (permalink / raw)
  To: Jeff Garzik, hpa, Russell King; +Cc: linux-kernel

For those wondering what's happening with klibc, here's an update...

I have it building relatively well within the kernel, and have modified
the usr/gen_init_cpio.c file to add files to the cpio "blob".  That all
seems to work, but I don't seem to be able to extract the files properly
(or at least that's what I'm guessing is happening).

If anyone wants to see the current progress, there's a big patch against
2.5.59 at:
	kernel.org/pub/linux/kernel/people/gregkh/klibc/klibc-2.5.59.patch.gz
and a bk tree with the different changes broken down into "logical"
chunks at:
	bk://kernel.bkbits.net/gregkh/linux/klibc-2.5

Any help with trying to debug init/initramfs.c to figure out what is
going wrong would be greatly appreciated.

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <20030205053013$7d61@gated-at.bofh.it>]
* Re: klibc update
@ 2003-02-06 12:07 Arnd Bergmann
  2003-02-07  5:00 ` Greg KH
  0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2003-02-06 12:07 UTC (permalink / raw)
  To: Greg KH, linux-kernel

I found what kept initramfs from working here: While creating
of initramfs_data.cpio.gz, the padding between a file header
and the file contents was wrong, which can be verified by
unpacking the archive by hand.

The trivial patch below fixed this for me.

	Arnd <><

===== usr/gen_init_cpio.c 1.3 vs edited =====
--- 1.3/usr/gen_init_cpio.c	Tue Feb  4 23:29:14 2003
+++ edited/usr/gen_init_cpio.c	Thu Feb  6 12:32:47 2003
@@ -192,6 +192,7 @@
 		0);			/* chksum */
 	push_hdr(s);
 	push_string(location);
+	push_pad();
 
 	for (i = 0; i < buf.st_size; ++i)
 		fputc(filebuf[i], stdout);

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-07  4:55 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-05  5:23 klibc update Greg KH
2003-02-05 22:57 ` H. Peter Anvin
     [not found] <20030205053013$7d61@gated-at.bofh.it>
2003-02-06  1:45 ` Arnd Bergmann
  -- strict thread matches above, loose matches on Subject: below --
2003-02-06 12:07 Arnd Bergmann
2003-02-07  5:00 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox