Skip to contentSkip to conversation

fsload filename

PATCH New Robert Schwebel 2 participants 2 messages May 15, 2004 – Jun 9, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsload filename

ChangeLog:

* Patch by Robert Schwebel, 14 May 2004:
use "bootfile" env variable also for jffs2

Robert

Signature · 39 lines
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
     Hornemannstra?e 12,  31137 Hildesheim, Germany
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4
-------------- next part --------------
# 
# Author:       Robert Schwebel <[email protected]>
# 
# Description:  ChangeLog:
#		* Patch by Robert Schwebel, 14 May 2004:
#		  use "bootfile" env variable also for jffs2 
#
# State:        2004-05-15: submitted
#

#
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
#

--- u-boot-maintainance1/common/cmd_jffs2.c~fsloadfilename	2004-05-14 12:09:41.000000000 +0200
+++ u-boot-maintainance1/common/cmd_jffs2.c	2004-05-14 12:48:38.000000000 +0200
@@ -126,7 +126,13 @@
     int jffs2_1pass_load(char *, struct part_info *,const char *);
     char *fsname;
 
-	char *filename = "uImage";
+	char *filename;
+
+	/* pre-set Boot file name */
+	if ((filename = getenv("bootfile")) == NULL) {
+		filename = "uImage";
+	}
+
 	ulong offset = load_addr;
 	int size;
 	struct part_info *part;
--- u-boot-maintainance1/common/jffs2.c~fsloadfilename
+++ u-boot-maintainance1/common/jffs2.c
#1 lore raw

PATCH 1/1 fsload filename

Quoted 3 lines · In message <[email protected]> you wrote:

* Patch by Robert Schwebel, 14 May 2004:
use "bootfile" env variable also for jffs2

Added, thanks.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"I'm growing older, but not up."                      - Jimmy Buffett