* [PATCH 2.5] initramfs fix
@ 2002-11-07 22:03 Brian Murphy
0 siblings, 0 replies; only message in thread
From: Brian Murphy @ 2002-11-07 22:03 UTC (permalink / raw)
To: linux-mips
Hi,
I have had a little problem with initramfs, Finally I have
found out that the problem is that when I make a flash image I do an
objcopy of the kernel image to get something which can be flashed.
Unfortunately objcopy thinks that the .init.initramfs is a useless section
and throws it away because it does not have the alloc flag set.
Here is a fix.
/Brian
Index: usr/Makefile
===================================================================
RCS file: /home/cvs/linux/usr/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- usr/Makefile 5 Nov 2002 15:18:25 -0000 1.1
+++ usr/Makefile 7 Nov 2002 21:59:31 -0000
@@ -17,6 +17,7 @@
$(OBJCOPY) $(ARCHBLOBLFLAGS) \
--only-section=.init.initramfs \
--add-section=.init.initramfs=$(obj)/initramfs_data.cpio.gz \
+ --set-section-flags .init.initramfs=alloc \
$(obj)/empty.o $(obj)/initramfs_data.o
$(STRIP) -s $(obj)/initramfs_data.o
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-11-07 22:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-07 22:03 [PATCH 2.5] initramfs fix Brian Murphy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox