| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Update the lua code to work with Syslinux 4.
|
| |\
| |
| |
| |
| |
| |
| | |
Resolved Conflicts:
com32/Makefile
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Again, .lnx files are test vehicles... erroring out due to warnings
makes no sense.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
.lnx files are strictly a testing vehicle. It makes absolutely no
sense to enforce the often rather arbitrary rules of _FORTIFY_SOURCE
on those, so override the default _FORTIFY_SOURCE setting.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
New module which detects if the PLoP Boot Loader already has booted a
CDROM or USB drive by checking for the presence of the PLoP INT13h hook.
The following assembly code (NASM) can detect the PLoP INT13h hook:
mov eax,'PoLP' ; Reverse of 'PLoP'
mov ebp,'DKHC' ; Reverse of 'CHKD'
int 13h
cmp eax,' sey' ; Reverse of 'yes '
jz plop_INT13h_active
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| | |
Use <dprintf.h> like more and more of the system does...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Accept an optional new directory to config.c32, just as we permit for
the CONFIG statement.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Grub Legacy stage2 will read the install_partition variable from
memory address 0x8208.
We only need to change the value at 0x820a to the correct partition
number:
-1: whole drive (default)
0-3: primary partitions
4-*: logical partitions
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Add grldr= as boot parameter, so the partition number is only passed to
grub4dos grldr, when grldr= is used.
Currently the partition number is passed in DH unconditionally.
As consequence, grldr will set its root partition on which is searches its
menu.lst to (hd0), because -1 (whole drive) is passed in DH as root partition:
chain.c32 file=/grldr
When the conditional check, this problem is solved:
chain.c32 file=/grldr
Grub4dos will search all partitions for its menu.lst
When you want to set the root partition, use something like the following:
chain.c32 hd0,2 grldr=/grldr
chain.c32 fs grldr=/grldr
Signed-off-by: Gert Hulselmans <gerth@zytor.com>
|
| | |/
| |
| |
| |
| |
| |
| |
| |
| | |
Without further adieu, I would like to announce that I've finally
pushed ROSH, the Read-Only SHell, finally to the point of being
reasonably usable.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| | |
Add keeppxe to usage output.
Cleanup some comments.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
When used with the "fs" option to chain.c32, we need to know our own
filesystem offset. That means knowing if we used the MBR vs GPT
partition information, as well as if we ended up using the passed-in
information or not.
Resolve this by providing an explicit pointer to the current partition
offset. Eventually this should be replaced by some kind of statfs()
call.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| | |
Implement getcwd() in the core; Fix COM32 getcwd() to use the new function.
This resolves the previous comment about COM32 getcwd() not working by
not using INT 22h AX=001Fh.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Add a feature to display fullscreen help via menu selection entry
(inspired by the Debian install disc menus.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Make sure the handover information to a logical partition is adjusted
correctly -- we can't just hand over the partition entry, but we have
to adjust start_lba to match the real start LBA.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| | |
Actually *build* pwd.c32...
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
fs is a full token, not a prefix.
Reported-by: Gert Hulselmans <gerth@zytor.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
[MODULE] pwd to list present (current) working directory. If the
returned string is empty, display ".". If the return value is NULL,
display an error message.
Unfortunately, it appears that COM32 getcwd is not working properly at
this moment, it calling the COMBOOT call and getting an empty string.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| |
| | |
Fix COM32 chdir() since it's implemented in the core.
Forgot the core changes needed for this before.
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| | |
Future-proof the pmapi vector by making it include its own size.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
Use the "label:" specifier followed by the label for
one of a GPT disk's partitions.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | |
| |
| |
| |
| |
| |
| | |
Use the "guid:" specifier followed by the GUID for
a GPT disk or one of its partitions.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | |
| |
| |
| |
| |
| |
| | |
We need to make sure the entire GPT handover structure is mapped
correctly by the shuffler.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
When a partition was yielded by a GPT partition iterator,
we follow the protocol documented in syslinux/doc/gpt.txt.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
We will now accept an "fs" option which instructs us to
chain-load whatever partition we were booted from. Not
useful for PXELINUX, for obvious reasons. Can be used
in combination with a "file=" option, to boot something
other than Syslinux.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A coding pattern from WinVBlock leaked through whereby a
macro is used to declare functions having the same
prototype. This makes their declarations look a little less
like a traditional declarations however, so that pattern
has been removed.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A GPT disk partition iterator is introduced, so
we can chain-load partitions on such a disk.
Tested-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In order to support more than just MBR and EBR walking, we
introduce the abstraction of a partition iterator. Currently
there are just the two types: MBR partition iterator and
extended partition iterator.
Tested-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Oops. We might allocate more than just one sector.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Instead of magic offsets.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
A DOS partition table entry contains cylinder, head, sector
tuples which can be convenient to group together and extract
with convenience macros. Currently unused.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | | |
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Use the term "ls" for directory listing, like real operating systems
;)
-hpa
|
| | |\ \
| | |/
| |/| |
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
WEE, is a bootloader based on grub4dos. It fits in the first 63 sectors of
the drive.
The first 4 bytes are:
$ hexdump -n 4 /media/Data/ubcd-new/wee-2010-06-20/wee63.mbr
0000000 5eeb 0090
0000004
Or in the format get_mbr_string wants it:
$ hexdump -C -n 4 wee63.mbr
00000000 eb 5e 90 00
Patch tested in qemu:
qemu -boot d -cdrom hdt.iso -hda wee-2010-06-20/wee63.mbr
|
| | | |
| | |
| | |
| | | |
If you just call the ifcpu.32 it display the usage.
|
| | |\ \
| | |/ |
|
| | | |
| | |
| | |
| | |
| | | |
Increase subrelease for syslinux4.
hdt just only received code cleaning, no new feature.
|
| | | |
| | |
| | |
| | | |
Rebooting can be achieved via syslinux_reboot() instead of the useless reboot.c32 module.
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | | |
As reported by hpa, strlcpy is safer and could prevent some bugs.
So I replaced all strncpy by strlcpy calls.
|
| | | |\
| | | |
| | | |
| | | | |
into master_new
|
| | | | |
| | | |
| | | |
| | | | |
Reported by Genne Cumm, some more_printf calls generates gcc warning.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Need to increment the address for each srec...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|