Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Brian Murphy <brm@murphy.dk>
To: linux-mips@linux-mips.org
Subject: [PATCH 2.5] initramfs fix
Date: Thu, 07 Nov 2002 23:03:14 +0100	[thread overview]
Message-ID: <E189uk6-0001Rj-00@brian.localnet> (raw)

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
 

                 reply	other threads:[~2002-11-07 22:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E189uk6-0001Rj-00@brian.localnet \
    --to=brm@murphy.dk \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox