[PATCH 2.5] initramfs fix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux