summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-10-27 06:30:48 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-10-27 06:30:48 +0000
commita4175ba336756fe7c697d2cbe35fcca1d9daa5f2 (patch)
tree0ebf8fc33e2462fc4c93538abf8910f8a95b066b /sys-boot/arcboot/files
parent(no commit message) (diff)
downloadhistorical-a4175ba336756fe7c697d2cbe35fcca1d9daa5f2.tar.gz
historical-a4175ba336756fe7c697d2cbe35fcca1d9daa5f2.tar.bz2
historical-a4175ba336756fe7c697d2cbe35fcca1d9daa5f2.zip
Updated arcboot w/ a patch that shows current load progress of loading the kernel into memory, which is useful to inform users that the system has not stopped responding (arcboot is slow at loading kernels off disk). Patch credit: Kaj-Michael Lang - milang (at) tal dot org.
Diffstat (limited to 'sys-boot/arcboot/files')
-rw-r--r--sys-boot/arcboot/files/arcboot-0.3.8.4-gentoo.patch82
-rw-r--r--sys-boot/arcboot/files/digest-arcboot-0.3.8.4-r1 (renamed from sys-boot/arcboot/files/digest-arcboot-0.3.8.4)0
2 files changed, 82 insertions, 0 deletions
diff --git a/sys-boot/arcboot/files/arcboot-0.3.8.4-gentoo.patch b/sys-boot/arcboot/files/arcboot-0.3.8.4-gentoo.patch
index d29854977c6a..2131d7d71488 100644
--- a/sys-boot/arcboot/files/arcboot-0.3.8.4-gentoo.patch
+++ b/sys-boot/arcboot/files/arcboot-0.3.8.4-gentoo.patch
@@ -9,3 +9,85 @@
TARGETS = ext2load
+diff -u -r e2fslib/et/Makefile e2fslib/et/Makefile
+--- e2fslib/et/Makefile 2002-02-03 22:53:44.000000000 +0000
++++ e2fslib/et/Makefile 2004-08-14 06:24:59.000000000 +0000
+@@ -44,7 +44,7 @@
+ CC = cc
+ BUILD_CC = cc
+ DEFS = -DENABLE_SWAPFS=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"1.25\" -DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_AL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-DHAVE_STRCASECMP=1 -DHAVE_SRANDOM=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_EXT2_IOCTLS=1
+-CFLAGS = -g -O2
++CFLAGS = -O2
+ CPPFLAGS =
+ ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
+ -I$(top_builddir)/lib -I$(top_srcdir)/lib \
+diff -u -r e2fslib/fileio.c e2fslib/fileio.c
+--- e2fslib/fileio.c 2002-02-03 22:53:42.000000000 +0000
++++ e2fslib/fileio.c 2004-08-16 10:52:33.000000000 +0000
+@@ -226,7 +226,14 @@
+ ptr += c;
+ count += c;
+ wanted -= c;
++
++ /* Show only if we load more than a couple of blocks */
++ if (wanted>4*fs->blocksize) {
++ printf("0x%lx\r", count);
++ }
++
+ }
++ printf("\n\r");
+
+ fail:
+ if (got)
+diff -u -r e2fslib/Makefile e2fslib/Makefile
+--- e2fslib/Makefile 2002-02-03 22:53:42.000000000 +0000
++++ e2fslib/Makefile 2004-08-14 06:24:59.000000000 +0000
+@@ -38,7 +38,7 @@
+ CC = cc
+ BUILD_CC = cc
+ DEFS = -DENABLE_SWAPFS=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"1.25\" -DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHA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slib/MCONFIG e2fslib/MCONFIG
+--- e2fslib/MCONFIG 2002-02-03 22:53:42.000000000 +0000
++++ e2fslib/MCONFIG 2004-08-14 06:24:59.000000000 +0000
+@@ -30,7 +30,7 @@
+ CC = cc
+ BUILD_CC = cc
+ DEFS = -DENABLE_SWAPFS=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"1.25\" -DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE___ARGZ_COUNT=1 -DHAVE___ARGZ_STRINGIFY=1 -DHAVE___ARGZ_NEXT=1 -DHAVE_STPCPY=1 -DHAVE_STPCPY=1 -DHAVE_LC_MESSAGES=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MNTENT_H=1 -DHAVE_PATHS_H=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SETJMP_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LINUX_FD_H=1 -DHAVE_LINUX_MAJOR_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_NET_IF_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_VPRINTF=1 -DHAVE_LSEEK64_PROTOTYPE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DWORDS_BIGENDIAN=1 -DHAVE_GETRUSAGE=1 -DHAVE_LLSEEK=1 -DHAVE_LSEEK64=1 -DHAVE_OPEN64=1 -DHAVE_STRCASECMP=1 -DHAVE_SRANDOM=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_EXT2_IOCTLS=1
+-CFLAGS = -g -O2
++CFLAGS = -O2
+ CPPFLAGS =
+ ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
+ -I$(top_builddir)/lib -I$(top_srcdir)/lib \
+diff -u -r e2fslib/util/Makefile e2fslib/util/Makefile
+--- e2fslib/util/Makefile 2002-02-03 22:53:44.000000000 +0000
++++ e2fslib/util/Makefile 2004-08-14 06:24:59.000000000 +0000
+@@ -44,7 +44,7 @@
+ CC = cc
+ BUILD_CC = cc
+ DEFS = -DENABLE_SWAPFS=1 -DPACKAGE=\"e2fsprogs\" -DVERSION=\"1.25\" -DSTDC_HEADERS=1 -DHAVE_ALLOCA_H=1 -DHAVE_ALLOCA=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_ARGZ_H=1 -DHAVE_LIMITS_H=1 -DHAVE_LOCALE_H=1 -DHAVE_NL_TYPES_H=1 -DHAVE_MALLOC_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_GETCWD=1 -DHAVE_MUNMAP=1 -DHAVE_PUTENV=1 -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_STRCHR=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE___ARGZ_COUNT=1 -DHAVE___ARGZ_STRINGIFY=1 -DHAVE___ARGZ_NEXT=1 -DHAVE_STPCPY=1 -DHAVE_STPCPY=1 -DHAVE_LC_MESSAGES=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDARG_H=1 -DHAVE_ERRNO_H=1 -DHAVE_MALLOC_H=1 -DHAVE_MNTENT_H=1 -DHAVE_PATHS_H=1 -DHAVE_DIRENT_H=1 -DHAVE_GETOPT_H=1 -DHAVE_SETJMP_H=1 -DHAVE_SIGNAL_H=1 -DHAVE_TERMIOS_H=1 -DHAVE_LINUX_FD_H=1 -DHAVE_LINUX_MAJOR_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_SYS_SYSMACROS_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_NET_IF_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_VPRINTF=1 -DHAVE_LSEEK64_PROTOTYPE=1 -DSIZEOF_SHORT=2 -DSIZEOF_INT=4 -DSIZEOF_LONG=4 -DSIZEOF_LONG_LONG=8 -DWORDS_BIGENDIAN=1 -DHAVE_GETRUSAGE=1 -DHAVE_LLSEEK=1 -DHAVE_LSEEK64=1 -DHAVE_OPEN64=1 -DHAVE_STRCASECMP=1 -DHAVE_SRANDOM=1 -DHAVE_FCHOWN=1 -DHAVE_MALLINFO=1 -DHAVE_FDATASYNC=1 -DHAVE_STRNLEN=1 -DHAVE_EXT2_IOCTLS=1
+-CFLAGS = -g -O2
++CFLAGS = -O2
+ CPPFLAGS =
+ ALL_CFLAGS = $(CPPFLAGS) $(DEFS) $(USE_WFLAGS) $(CFLAGS) $(XTRA_CFLAGS) \
+ -I$(top_builddir)/lib -I$(top_srcdir)/lib \
+diff -u -r ext2load/loader.c ext2load/loader.c
+--- ext2load/loader.c 2004-03-01 11:31:15.000000000 +0000
++++ ext2load/loader.c 2004-08-16 09:14:40.000000000 +0000
+@@ -193,6 +193,11 @@
+ size = (size_t) (header->header64.e_phentsize *
+ header->header64.e_phnum);
+
++ if (header->e_ident[EI_CLASS] == ELFCLASS32)
++ printf("Header says 32-bit\n\r");
++ else
++ printf("Header says 64-bit\n\r");
++
+ if (size <= 0)
+ Fatal("No program segments\n\r");
+
+
diff --git a/sys-boot/arcboot/files/digest-arcboot-0.3.8.4 b/sys-boot/arcboot/files/digest-arcboot-0.3.8.4-r1
index 1ac02a74fb00..1ac02a74fb00 100644
--- a/sys-boot/arcboot/files/digest-arcboot-0.3.8.4
+++ b/sys-boot/arcboot/files/digest-arcboot-0.3.8.4-r1