Feng Tang [Wed, 14 Jul 2010 02:44:30 +0000 (10:44 +0800)]
elflink: prepcore: comments off size check for temp
Feng Tang [Wed, 14 Jul 2010 02:41:24 +0000 (10:41 +0800)]
elflink: add zlib change
Feng Tang [Mon, 12 Jul 2010 07:45:05 +0000 (15:45 +0800)]
elflink: merge these files
com32/include/sys/times.h
com32/include/syslinux/config.h
com32/include/syslinux/pmapi.h
com32/include/unistd.h
com32/include/zconf.h
com32/include/zlib.h
dos/Makefile
dos/errno.h
dos/string.h
dos/syslinux.c
dosutil/eltorito.asm
dosutil/mdiskchk.c
dosutil/mdiskchk.com
extlinux/Makefile
extlinux/fat.h
extlinux/main.c
libfat/libfat.h
libfat/open.c
libinstaller/Makefile
libinstaller/setadv.c
libinstaller/syslinux.h
libinstaller/syslxcom.c
libinstaller/syslxcom.h
libinstaller/syslxint.h
libinstaller/syslxmod.c
libinstaller/syslxopt.c
libinstaller/syslxopt.h
linux/Makefile
linux/syslinux.c
Feng Tang [Mon, 12 Jul 2010 07:31:17 +0000 (15:31 +0800)]
elflink: merge libpng
Feng Tang [Mon, 12 Jul 2010 07:02:50 +0000 (15:02 +0800)]
elflink: add com32/lua dir
Feng Tang [Mon, 12 Jul 2010 06:56:43 +0000 (14:56 +0800)]
elflink: merged gfxboot/gpllib/hdt/cmenu/ part
Feng Tang [Mon, 12 Jul 2010 06:45:25 +0000 (14:45 +0800)]
elflink: small modification
Feng Tang [Thu, 1 Jul 2010 08:42:35 +0000 (16:42 +0800)]
elflink: some cleanup
Feng Tang [Wed, 30 Jun 2010 08:12:04 +0000 (16:12 +0800)]
elflink: will run default item in config file after starting ui
Feng Tang [Wed, 30 Jun 2010 08:02:49 +0000 (16:02 +0800)]
elflink: cleanup com32/elflink/modules/cpuid.c
Feng Tang [Wed, 30 Jun 2010 06:33:13 +0000 (14:33 +0800)]
elflink: meminfo.c: change cs_bounce buf to lmalloc
Feng Tang [Wed, 30 Jun 2010 06:11:21 +0000 (14:11 +0800)]
elflink: add several files to com32/elflink/modules
They are meminfo/pcitest/dir/vesainfo/cpuid/cpuidtest. But not
all of their .c32 works.
One note from vesainfo.c32 is, we need change all cs_bounce usage
to lmalloc/free
Feng Tang [Mon, 28 Jun 2010 07:14:37 +0000 (15:14 +0800)]
elflink: malloc cleanup
* remove com32/lib/malloc.h
* remove com32/elflink/test_memalign.c
Feng Tang [Mon, 28 Jun 2010 03:15:53 +0000 (11:15 +0800)]
elflink: add -s option for objcopy/ld to reduce extlinux.elf size
Feng Tang [Thu, 24 Jun 2010 08:28:39 +0000 (16:28 +0800)]
elflink: remove hmalloc which is not needed after core/com32 malloc merged
Feng Tang [Thu, 24 Jun 2010 08:03:34 +0000 (16:03 +0800)]
elflink: remove the malloc.c/free.c/realloc.c/zalloc.c from com32
Feng Tang [Thu, 24 Jun 2010 07:10:56 +0000 (15:10 +0800)]
elflink: move realloc() to core/mem/malloc.c
* remove most of the functinal codes from com32 malloc/realloc code
* next step will be remove those codes from com32
* one left item is posix memalign problem and memory tag problem
which is usded by elf module load code
Feng Tang [Tue, 22 Jun 2010 09:22:29 +0000 (17:22 +0800)]
elflink: remove highmem.inc
Feng Tang [Tue, 22 Jun 2010 09:19:45 +0000 (17:19 +0800)]
June 22: new mem_init works
Feng Tang [Tue, 22 Jun 2010 06:02:21 +0000 (14:02 +0800)]
elflink: modify build.sh
Feng Tang [Mon, 21 Jun 2010 09:21:12 +0000 (17:21 +0800)]
elflink: make linux kernel booting
* modify execute.c to not using __com32.cs_bounce but lmalloc/lfree
* give core/malloc 32M memory
Now the kernel is loading ok, but "memdisk initrd=doshd.img" is not
working, need ask hpa if he has a new doshd.img
Feng Tang [Fri, 18 Jun 2010 08:17:35 +0000 (16:17 +0800)]
elflink: We can see menu.c32 working!
Feng Tang [Fri, 18 Jun 2010 06:50:46 +0000 (14:50 +0800)]
elflink: add early debug hook in core/diskstart.inc
Feng Tang [Fri, 18 Jun 2010 05:27:31 +0000 (13:27 +0800)]
elflink: modify Makefile to solve the undefined symbol problem
* use --whole-archive to let extlinux.elf contain all the mini com32 lib
* remove several tool funcs from com32/lib/Makefile which is
now implemented in core
Feng Tang [Thu, 17 Jun 2010 09:09:30 +0000 (17:09 +0800)]
elflink: change the exit.c, remove the exit.S to make process exit working
following elflink branch
Feng Tang [Thu, 17 Jun 2010 03:57:39 +0000 (11:57 +0800)]
elflink: change the main func of hello.c to static
Otherwise it will be global and can't be searched, still don't know
the real reason
Feng Tang [Wed, 16 Jun 2010 14:40:01 +0000 (22:40 +0800)]
elflink: add elf module dump func
feng.tang@intel.com [Wed, 16 Jun 2010 13:39:52 +0000 (21:39 +0800)]
elflink: use core/malloc as the malloc system, enlarge buffer to 1MB
feng.tang@intel.com [Wed, 16 Jun 2010 13:36:53 +0000 (21:36 +0800)]
elflink: modify core/Makefile for dynamic linking
Feng Tang [Sun, 13 Jun 2010 09:10:09 +0000 (17:10 +0800)]
elflink: add modules.dep gen sh
Feng Tang [Sun, 13 Jun 2010 08:48:36 +0000 (16:48 +0800)]
elflink: make malloc works
mask the malloc of com32, will still need to change
its way of calling inject_free_block
Feng Tang [Sun, 13 Jun 2010 06:59:50 +0000 (14:59 +0800)]
0613 temp debug
Feng Tang [Sun, 13 Jun 2010 06:43:10 +0000 (14:43 +0800)]
elflink: call load_env32() in diskstart.inc
which will initialize the console system stdin/stdout/stderr,
otherwise there will be display problem
Feng Tang [Sat, 12 Jun 2010 09:04:41 +0000 (17:04 +0800)]
elflink: comment off the printf provided by core
Feng Tang [Tue, 8 Jun 2010 09:24:11 +0000 (17:24 +0800)]
elflink: modify com32/lib/Makefile to compile
Feng Tang [Tue, 8 Jun 2010 08:51:45 +0000 (16:51 +0800)]
elflink: fix the global naming for lmalloc
core and com32 both have their lmalloc definition, change com32's
from lmalloc to clmalloc
Feng Tang [Tue, 8 Jun 2010 08:51:29 +0000 (16:51 +0800)]
elflink: remove the unnecessary calling of times() in rawcon_read.c
Feng Tang [Tue, 8 Jun 2010 08:10:39 +0000 (16:10 +0800)]
elflink: change cli.c/get_key.c to use times() provided in core
Feng Tang [Tue, 8 Jun 2010 07:52:26 +0000 (15:52 +0800)]
modify core/syslinux.ld to make compile pass
Feng Tang [Tue, 8 Jun 2010 07:37:49 +0000 (15:37 +0800)]
elflink: differentiate the 2 malloc system
core and com32 both have their own malloc system, change the name
to make them co-exist
Feng Tang [Tue, 8 Jun 2010 07:12:32 +0000 (15:12 +0800)]
elflink: fix some compile error
Feng Tang [Mon, 7 Jun 2010 04:05:22 +0000 (12:05 +0800)]
elflink: add core/hello.c
Feng Tang [Fri, 4 Jun 2010 08:21:22 +0000 (16:21 +0800)]
core/Makefile: temp change
Feng Tang [Thu, 3 Jun 2010 05:22:51 +0000 (13:22 +0800)]
elflink: before chang core/Makefile back
Feng Tang [Thu, 3 Jun 2010 03:00:22 +0000 (11:00 +0800)]
elflink: copy some elflink related files over
also make sure the compiling passed
Feng Tang [Thu, 3 Jun 2010 02:48:22 +0000 (10:48 +0800)]
elflink: start merge with pathbased branch
modify these files to make compile pass
modified: com32/MCONFIG
modified: com32/Makefile
modified: com32/include/klibc/compiler.h
modified: com32/include/sys/elfcommon.h
modified: com32/lib/Makefile
modified: com32/lib/free.c
modified: com32/lib/malloc.c
Feng Tang [Tue, 1 Jun 2010 08:18:42 +0000 (16:18 +0800)]
move core/elflink over
H. Peter Anvin [Fri, 28 May 2010 01:22:21 +0000 (18:22 -0700)]
MENU IMMEDIATE: hotkeys which do not require Enter
The normal behavior for a hotkey is to jump to a specific menu entry.
With MENU IMMEDIATE, it activates the menu entry as well.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 21 May 2010 03:36:16 +0000 (20:36 -0700)]
Merge remote branch 'origin/master' into pathbased
H. Peter Anvin [Fri, 21 May 2010 03:35:24 +0000 (20:35 -0700)]
isohybrid: use getopt_long_only()
For compatibility with isohybrid.pl, use getopt_long_only() so long
options are accepted with a single dash.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Fri, 21 May 2010 03:32:21 +0000 (20:32 -0700)]
Merge remote branch 'origin/master' into pathbased
Resolved Conflicts:
com32/modules/cat.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
P. J. Pandit [Fri, 21 May 2010 03:29:52 +0000 (20:29 -0700)]
isohybrid: create a C version
Some Linux distributions have complained about Perl as a prerequisite
for isohybrid, so create a C version.
[ hpa: modified the array generator to put it all in one script ]
H. Peter Anvin [Fri, 21 May 2010 03:12:44 +0000 (20:12 -0700)]
cat.c32: handle multiple files, use argv[0], copy 4K at a time
Loop over multiple files, use argv[0] for the program name, and copy
4K at a time.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Alek Du [Wed, 19 May 2010 01:39:57 +0000 (09:39 +0800)]
unify common parts of extlinux and syslinux installer
Thus we can share same command line options and reduce a lot of dup
code...
Seems like a big patch, but the changes are quite safe, no much logical
change.
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Alek Du [Thu, 20 May 2010 10:24:35 +0000 (18:24 +0800)]
syslinux: fix sector arrays
The first sector ptr is in bs->NextSector not in the array in
the patch_area. And actually the ADV sectors counting is wrong for a
while ...
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Mon, 17 May 2010 21:14:21 +0000 (14:14 -0700)]
Restore skip CR and LF in the comboot API copies of the banner strings
The comboot API should not report leading CR and LF in the banner
strings. This was done in 3.86, but apparently was lost due to
mismerge (
52c9d5ba2af4e1f77aa2486a2af2bcab0b0af52c) in the 4.00 branch.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 14 May 2010 22:22:00 +0000 (15:22 -0700)]
core: fix "sector size" confusion
Fix the case where the "sector size" used by the pm filesystem driver
isn't the same thing as the SECTOR_SIZE/SECTOR_SHIFT macros used in
the assembly code. This is a per-device property, and in the
particular case of isolinux hybrid, they are not even currently the
same (for all others, they are the same for now, but not necessarily
in the future.)
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Fri, 14 May 2010 22:20:45 +0000 (15:20 -0700)]
diskstart: print CHS/EDD instead of CBIOS/EBIOS
The terms CHS or EDD are more well-known, so use them.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Sebastian Herbszt [Sat, 1 May 2010 13:28:49 +0000 (15:28 +0200)]
comboot: fix comapi_open
Fix breakage introduced by commit
e375515ddc712f1f69ee21337db2a3267caa5d49
(Add 32-bit versions of open file/close file).
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 13 May 2010 22:40:35 +0000 (15:40 -0700)]
FAT: need to track the current position past discontinuities
When we have a discontiguous file (broken extent), then we need to
keep track of where the next extent starts, not where the current
extent ends.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Thu, 13 May 2010 22:39:29 +0000 (15:39 -0700)]
diskio: compare to the proper pointer
We need to compare against the advanced pointer, not the original one.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Thu, 13 May 2010 21:38:04 +0000 (14:38 -0700)]
fat: fix confusion between byte and sector counts
clust_shift is in units of sectors, not in bytes; this was mixed up in
the extent finder.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Thu, 13 May 2010 04:23:13 +0000 (21:23 -0700)]
diskio: make maxtransfer per-device, cap to 127, imported from head
Make the maxtransfer per device, as it should be; properly imported
from the head loader (in case it is patched with -s). Also enforce
capping to 127 for EBIOS and 63 for CBIOS. This is structured so that
once EDD4 is approved we can remove the capping for that particular
subcase.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 13 May 2010 04:22:14 +0000 (21:22 -0700)]
syslinux.ld: don't pad between .got and .data
Adding padding between .got and .data is unnecessary, and can
cause spurious decompression failures when .data is empty (which it
almost is already...)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Thu, 13 May 2010 00:28:51 +0000 (17:28 -0700)]
diskio: sanitize the reduced transfer sizes
Simply shift the size left by 1 when computing the transfer sizes.
This will always end with the values ..., 1, 0 as it should.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 23:14:19 +0000 (16:14 -0700)]
cmenu: remove obsolete Makefile rules
Remove Makefile rules which were both redundant (../MCONFIG contains
the rules in a central manner) and just plain wrong.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 23:09:01 +0000 (16:09 -0700)]
MCONFIG: add MCONFIG.devel for use from git, removed in tarballs
Add an MCONFIG.devel file which is present in git, but removed in
tarballs. This lets us set -Werror there and still not break users
who are using a different compiler.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 23:06:10 +0000 (16:06 -0700)]
installers: fix warnings
CLean up warnings in the installers.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 23:01:54 +0000 (16:01 -0700)]
hdt-cli.c: clean up unused warnings
-Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:59:29 +0000 (15:59 -0700)]
adv_menu.tpl: fix type of login_handler()
Fix the type of the login_handler() function.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:53:35 +0000 (15:53 -0700)]
complex.c: fix warnings
Clean up warnings, even though this is sample code.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:52:00 +0000 (15:52 -0700)]
libmenu/des.c: fix signedness error
Fix a signedness error, which in turn was caused by needlessly
complicated code.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:49:30 +0000 (15:49 -0700)]
libmenu/passwords.h: function declaration isn't a prototype
Make it a prototype
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:48:43 +0000 (15:48 -0700)]
libmenu/syslnx.c: mark ipappend used
Is this really correct?!
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:47:06 +0000 (15:47 -0700)]
rosh.c: mark argument used
-Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:46:21 +0000 (15:46 -0700)]
readconfig.c: avoid uninitialized variable warnings
-Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:44:44 +0000 (15:44 -0700)]
cat.c32: remove unused variable
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:44:12 +0000 (15:44 -0700)]
vpdtest.c32: remove unused variable
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:43:30 +0000 (15:43 -0700)]
sdi.c32: remove unused variable
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:42:50 +0000 (15:42 -0700)]
pcitest.c32: mark argc/argv used
Part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:42:03 +0000 (15:42 -0700)]
disk.c32: remove unused variable
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:40:46 +0000 (15:40 -0700)]
sha256/512: fix signedness errors
Fix signedness errors as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:36:49 +0000 (15:36 -0700)]
get_key.c: fix signedness error
Fix signedness error, part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 22:35:19 +0000 (15:35 -0700)]
runimage.c: remove unused variable
-Werror cleanup: remove unused variable.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
H. Peter Anvin [Wed, 12 May 2010 21:57:39 +0000 (14:57 -0700)]
Merge branch 'master' into pathbased
Erwan Velu [Wed, 12 May 2010 21:21:25 +0000 (23:21 +0200)]
CMENU: Fixing login_handler prototype
login_handler have to follow the (t_menusystem * ms, t_menuitem * mi)
prototype defined by t_handler_return
Erwan Velu [Wed, 12 May 2010 20:54:03 +0000 (22:54 +0200)]
com32: Fixing cast in argv to avoid warning
const char * confuse the *argv++ assignation
Casting to char * removes this warning
Erwan Velu [Wed, 12 May 2010 19:49:10 +0000 (21:49 +0200)]
hdt: casting to avoid useless warning
Erwan Velu [Wed, 12 May 2010 19:46:59 +0000 (21:46 +0200)]
hdt: Fixing print_history() prototype
print_history have to follow the exec prototype
Erwan Velu [Wed, 12 May 2010 19:18:09 +0000 (21:18 +0200)]
cpuid: Typo between argv & argc
argv isn't a number ;)
Erwan Velu [Wed, 12 May 2010 19:12:34 +0000 (21:12 +0200)]
cmd: Adding proper include to syslinux_run_command
Erwan Velu [Wed, 12 May 2010 19:10:47 +0000 (21:10 +0200)]
disk: Fixing get_error() call
get_error prototype changed since this module was written
H. Peter Anvin [Tue, 11 May 2010 23:10:06 +0000 (16:10 -0700)]
Merge branch 'master' into pathbased
Resolved Conflicts:
com32/modules/Makefile
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 11 May 2010 23:08:20 +0000 (16:08 -0700)]
cat.c32: move from samples to modules; remove debug code
Move cat.c32 from samples to modules, and remove debugging messages.
Real users may want to use this.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 11 May 2010 23:07:07 +0000 (16:07 -0700)]
Merge branch 'master' into pathbased
Gert Hulselmans [Tue, 4 May 2010 00:07:43 +0000 (17:07 -0700)]
cat.c32: check if filename exists
Don't crash if the file doesn't exist.
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
H. Peter Anvin [Tue, 11 May 2010 21:39:07 +0000 (14:39 -0700)]
Merge branch 'master' into pathbased
H. Peter Anvin [Tue, 11 May 2010 21:38:57 +0000 (14:38 -0700)]
Merge remote branch 'hdt-pierre/fixes-for-3.86'
H. Peter Anvin [Tue, 11 May 2010 20:55:32 +0000 (13:55 -0700)]
Merge branch 'master' into pathbased
H. Peter Anvin [Tue, 11 May 2010 20:55:19 +0000 (13:55 -0700)]
Merge remote branch 'erwan/master'