[U-Boot-Users] [PATCH] fsload filename
Robert Schwebel
robert at schwebel.de
Sat May 15 17:11:00 CEST 2004
ChangeLog:
* Patch by Robert Schwebel, 14 May 2004:
use "bootfile" env variable also for jffs2
Robert
--
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 <r.schwebel at pengutronix.de>
#
# 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
More information about the U-Boot
mailing list