| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
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>
|
| |
|
|
|
| |
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>
|
| |
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
|
| |
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
|
| | | |
|
| |/
|
|
| |
If you just call the ifcpu.32 it display the usage.
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The ifcpu.c32 and ifcpu64.c32 modules take arguments including
the form <true_label> -- <false_label>. It is convenient to
allow these labels to be not just a single word, but to include
parameters. This is useful for <TAB>-editing and modifying the
command-line to include parameters you'd like to pass.
Not-yet-tested: Shao Miller <shao.miller@yrdsb.edu.on.ca>
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds (basic) support for GRUB stage2 image files.
Loading a stage2 image will probably give you a GRUB prompt, with GRUB's
"root" set at "(hd0)" (ie, entire first disk). Maybe the "root" will
differ in less common setups. (One can of course select another disk
and/or partition with GRUB's "root" command.)
This has only been tested with version 3.2 stage2 images (as used by
GRUB 0.97). I'm not familiair with differences with other versions.
GRUB's loading mechanism allows to somehow provide stage2 with the
selected disk and partition, BSD slice, etc. (ie, to tell stage2 what
it's "root" is). I don't yet understand the notation used in that
mechanism. Besides, since stage2 images will not necessarily be loaded
from the disk (and partition, etc.) they were installed to, it seems
best to just use the first disk.
GRUB stage1_5 image files load quite similarly. However, for some
reason, a short test only got those images to print an error ("Error
17"). This could be related to the partition info these images are
provided with when they're loaded. I have never used stage1_5 images,
and do not know how to properly use and configure those, so my test
stopped there, and stage1_5 images are not supported.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |\ \
| |/
| |
| |
| |
| |
| | |
Resolved Conflicts:
com32/modules/cat.c
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| | |
| |
| |
| |
| |
| | |
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| | |
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| | |
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| | |
Part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| | |
| |
| |
| |
| |
| | |
Remove unused variable as part of -Werror cleanup.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
|
| |\ \
| |/ |
|
| | |
| |
| |
| | |
argv isn't a number ;)
|
| | | |
|
| | |
| |
| |
| | |
get_error prototype changed since this module was written
|
| |\ \
| |/
| |
| |
| |
| |
| | |
Resolved Conflicts:
com32/modules/Makefile
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| | |
| |
| |
| |
| |
| |
| | |
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>
|
| |\ \
| |/ |
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Make sure the CHS geometry is valid before displaying disk
information to avoid showing garbage.
Debugging-info-by: Gert Hulselmans <gerth@zytor.com>
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
Print unsigned values; formatting was wrong for unsigned values
anyway.
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
|
| |\ \ \
| |/ / |
|