fzielcke
c6c5219fb6
2009-04-19 Felix Zielcke <fzielcke@z-51.de>
...
* INSTALL: Replace `autogen.sh' with `./autogen.sh'.
2009-04-19 14:49:43 +00:00
davem
0552ff9f81
* loader/sparc64/ieee1275/linux.c: Include grub/command.h
...
(grub_rescue_cmd_linux): Rename to...
(grub_cmd_linux): and fix prototype.
(grub_rescue_cmd_initrd): Rename to...
(grub_cmd_initrd): and fix prototype.
(cmd_linux, cmd_initrd): New.
(GRUB_MOD_INIT(linux)): Use grub_register_command().
(GRUB_MOD_FINI(linux): Use grub_unregister_command().
2009-04-19 08:51:04 +00:00
proski
07c5039fda
2009-04-17 Pavel Roskin <proski@gnu.org>
...
* bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
format.
(grub_ohci_transfer): Likewise.
2009-04-17 17:23:34 +00:00
proski
b012002d59
2009-04-17 Pavel Roskin <proski@gnu.org>
...
* bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
2009-04-17 17:09:36 +00:00
proski
1bc09c352c
2009-04-17 Pavel Roskin <proski@gnu.org>
...
* loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
return without a value. Fix inconsistent indentation.
2009-04-17 16:35:26 +00:00
proski
e0ff912638
2009-04-17 Pavel Roskin <proski@gnu.org>
...
* fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
match struct grub_fs.
2009-04-17 16:08:24 +00:00
proski
d1a282fc83
2009-04-17 Pavel Roskin <proski@gnu.org>
...
* disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
* bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
* bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
* commands/lspci.c (grub_lspci_iter): Likewise.
2009-04-17 15:36:41 +00:00
bean
a96df3f249
2009-04-16 Bean <bean123ch@gmail.com>
...
* commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
value.
2009-04-16 12:18:11 +00:00
proski
41bb0fe9a6
2009-04-15 Pavel Roskin <proski@gnu.org>
...
* include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
definitions.
2009-04-15 20:45:09 +00:00
fzielcke
596c6970b8
2009-04-15 Felix Zielcke <fzielcke@z-51.de>
...
* disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
that no multiple data or metadata areas are supported and `Unknown
metadata header'.
2009-04-15 13:29:24 +00:00
phcoder
0d5d565326
2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
...
Move loader out of the kernel
* kern/loader.c: moved to ...
* commands/boot.c: ... moved here
* commands/minicmd.c (grub_mini_cmd_boot): moved to ...
* commands/boot.c (grub_cmd_boot): moved here. All users updated
* include/grub/kernel.h (grub_machine_fini): export
* include/grub/loader.h (grub_loader_is_loaded): update declaration
(grub_loader_set): likewise
(grub_loader_unset): likewise
(grub_loader_boot): likewise
* conf/common.rmk: new module boot.mod
(pkglib_MODULES): add boot.mod
* conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
(grub_emu_SOURCES): likewise
* conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/sparcs64-ieee1275.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
* conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
(grub_emu_SOURCES): likewise
2009-04-15 12:45:50 +00:00
phcoder
5999d61917
2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
...
use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
* kern/misc.c (grub_itoa): Removed function
(grub_ltoa): likewise
(grub_vsprintf): use grub_lltoa
2009-04-15 12:33:46 +00:00
phcoder
13c007813a
2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
...
Restore grub-emu
* conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
* conf/i386-coreboot.rmk: likewise
* conf/i386-ieee1275.rmk: likewise
* conf/powerpc-ieee1275.rmk: likewise
2009-04-15 12:32:08 +00:00
fzielcke
2031822238
2009-04-15 Felix Zielcke <fzielcke@z-51.de>
...
* INSTALL: Add that `./autogen.sh' needs to be run before
`./configure.'.
2009-04-15 06:58:39 +00:00
bean
d05f0df3eb
2009-04-14 Bean <bean123ch@gmail.com>
...
* Makefile.in (pkglib_DATA): Add handler.lst.
(handler.lst): New rule.
* conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
* conf/i386-coreboot.rmk: Likewise.
* conf/i386-ieee1275.rmk: Likewise.
* conf/i386-efi.rmk: Likewise.
* conf/x86_64-efi.rmk: Likewise.
* conf/powerpc-ieee1275.rmk: Likewise.
* conf/sparc64-ieee1275.rmk: Likewise.
* genhandlerlist.sh: New file.
* genmk.rb: Add rules to generate handler.lst.
* include/grub/normal.h (grub_file_getline): New function definition.
(read_handler_list): Likewise.
(free_handler_list): Likewise.
* include/grub/term.h (grub_term_register_input): Add name parameter
for auto generation of handler.lst.
(grub_term_register_output): Likewise.
* normal/handler.c: New file.
* normal/main.c (get_line): Renamed to grub_file_getline.
(read_config_file): Use the newly renamed grub_file_getline.
(read_command_list): Likewise.
(read_fs_list): Likewise.
(grub_normal_execute): Call read_handler_list to parse handler.lst.
(GRUB_MOD_FINI): Call free_handler_list to free handler list.
* term/efi/console.c (grub_console_init): Add name parameter for auto
generation of handler.lst.
* term/gfxterm.c: Likewise.
* term/i386/pc/at_keyboard.c: Likewise.
* term/i386/pc/console.c: Likewise.
* term/i386/pc/serial.c: Likewise.
* term/i386/pc/vesafb.c: Likewise.
* term/i386/pc/vga.c: Likewise.
* term/i386/pc/vga_text.c: Likewise.
* term/ieee1275/ofconsole.c: Likewise.
* term/usb_keyboard.c: Likewise.
2009-04-14 18:12:14 +00:00
bean
33c846be29
2009-04-14 Bean <bean123ch@gmail.com>
...
* util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
properly with null character.
2009-04-14 16:56:35 +00:00
fzielcke
f93d668e0b
args changelog should mention this too
2009-04-14 16:15:42 +00:00
fzielcke
4484e01e46
2009-04-14 Felix Zielcke <fzielcke@z-51.de>
...
* configure: Remove.
* config.h.in: Likewise.
* DISTLIST: Likewise.
* conf/common.mk: Likewise.
* conf/i386-coreboot.mk: Likewise.
* conf/i386-efi.mk: Likewise.
* conf/i386-ieee1275.mk: Likewise.
* conf/i386.mk: Likewise.
* conf/i386-pc.mk: Likewise.
* conf/powerpc-ieee1275.mk: Likewise.
* conf/sparc64-ieee1275.mk: Likewise.
* conf/x86_64-efi.mk: Likewise.
* INSTALL: Remove the sentence that Ruby and autoconf are only required if you
develop on GRUB.
2009-04-14 16:11:26 +00:00
davem
5c5bf96ae6
* util/hostdisk.c (make_device_name): Fix buffer length
...
calculations.
2009-04-14 09:07:25 +00:00
fzielcke
e25b5a8c6c
2009-04-14 Felix Zielcke <fzielcke@z-51.de>
...
* util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
<sys/param.h> and <sys/sysctl.h>.
(open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
to add 0x10 to `kern.geom.debugflags' if it's not already set, before
opening the device and reset them afterwards.
2009-04-14 07:01:34 +00:00
proski
1f1f580c2f
2009-04-13 Pavel Roskin <proski@gnu.org>
...
* conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
Reported by John Stanley <jpsinthemix@verizon.net>
2009-04-14 01:54:06 +00:00
davem
1d7a72fd8c
* kern/dl.c (grub_dl_load_file): Close file immediately when
...
we are done using it.
2009-04-13 23:03:50 +00:00
davem
6a4737e5d8
* util/hostdisk.c (make_device_name): Do not make any assumptions
...
about the length of drive names.
2009-04-13 23:01:54 +00:00
davem
96bd81ecf9
* conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
...
(grub_fstest_SOURCES): Likewise.
2009-04-13 20:35:59 +00:00
robertmh
7ebc2d6ba6
2009-04-13 Robert Millan <rmh@aybabtu.com>
...
* util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
that name for menuentries when appropiate.
2009-04-13 19:48:44 +00:00
fzielcke
d8ba3667a2
2009-04-13 Felix Zielcke <fzielcke@z-51.de>
...
* util/grub.d/10_freebsd.in: Add a missing `fi'.
2009-04-13 15:07:16 +00:00
robertmh
cba416eb0d
2009-04-13 Robert Millan <rmh@aybabtu.com>
...
* loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
to Linux, simply abort telling the user it's no longer supported.
2009-04-13 14:38:10 +00:00
fzielcke
a547a745a6
2009-04-13 Felix Zielcke <fzielcke@z-51.de>
...
* util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
doestn't exist. Check also for /boot/kernel/kernel.gz. Print
`freebsd_loadenv' only when devices.hints exist.
2009-04-13 14:14:40 +00:00
proski
232a769cb2
2009-04-13 Pavel Roskin <proski@gnu.org>
...
* term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
2009-04-13 13:00:59 +00:00
fzielcke
c301203905
2009-04-13 Felix Zielcke <fzielcke@z-51.de>
...
* util/i386/pc/grub-install.in (install_drive): Remove the BSD
partition number.
(grub_drive): Likewise.
2009-04-13 11:45:20 +00:00
davem
d8e1836ca1
* include/grub/sparc64/ieee1275/loader.h: New file.
...
* include/grub/sparc64/ieee1275/memory.h: Likewise.
* include/grub/sparc64/kernel.h: Likewise.
* loader/sparc64/ieee1275/linux.c: Likewise.
2009-04-13 07:08:10 +00:00
davem
234022fe7b
* kern/sparc64/ieee1275/ieee1275.c: New file.
...
* include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
(grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
grub_ieee1275_alloc_physmem): Declare new exported functions.
2009-04-13 07:06:09 +00:00
davem
91c88b1219
* kern/sparc64/ieee1275/init.c: Delete, replace with...
...
* kern/sparc64/ieee1275/crt0.S: assembler implementation.
* include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
(GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
GRUB_KERNEL_MACHINE_DATA_END): Define.
(grub_kernel_image_size, grub_total_module_size): Declare.
2009-04-13 07:02:46 +00:00
davem
f5dbbca97f
* disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
...
(OFDISK_HASH_SZ): Define.
(ofdisk_hash): New hash table.
(ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
(grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
instead of device phandle which is not unique.
2009-04-13 06:40:34 +00:00
davem
e382e93a88
* genmk.rb: Add more flexible image type specification, also
...
pass --strip-unneeded to objcopy.
* conf/i386-pc.rmk: Use *_FORMAT.
* conf/i386-pc.mk: Rebuilt.
2009-04-13 06:37:50 +00:00
davem
df38d0bb75
* configure.ac: Check for __bswapsi2 and__bswapdi2 using
...
target compiler.
2009-04-13 06:31:05 +00:00
davem
56bc2471ad
* kern/misc.c (grub_ltoa): Fix cast when handling negative
...
values. Noticed by Pavel Roskin.
2009-04-12 08:06:26 +00:00
proski
5b5d4aa5f0
2009-04-12 Pavel Roskin <proski@gnu.org>
...
* configure.ac: Change the logic when we check for target tools.
Do it when the target is specified and it's different from the
specified value of the host.
2009-04-12 04:33:18 +00:00
fzielcke
c91e1793bf
2009-04-11 Felix Zielcke <fzielcke@z-51.de>
...
* util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
(grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
GNU/kFreeBSD. Check if a device is a character device. Use
DIOCGMEDIASIZE to get the size.
(convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
support for GNU/kFreeBSD.
(grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
is a character device instead of a block device. Add support for
FreeBSD device names.
* util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
is a character device instead of a block device.
* util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
is a character device instead of a block device.
2009-04-11 18:46:12 +00:00
davem
ed3d2bc23d
* kern/misc.c (grub_ltoa): New function.
...
(grub_vsprintf): Use it to format 'long' integers.
2009-04-11 11:48:34 +00:00
okuji
b1ac86445e
2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
...
* util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
(grub_util_biosdisk_open) [__FreeBSD__]: Add support for
FreeBSD. Check if a device is a character device. Use
DIOCGMEDIASIZE to get the size.
(convert_system_partition_to_system_disk) [__FreeBSD__]: Add
support for FreeBSD.
(grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
is a character device instead of a block device. Add support for
FreeBSD device names.
* util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
a character device instead of a block device.
(grub_util_check_char_device): New function.
* util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
a character device instead of a block device.
* include/grub/util/getroot.h (grub_util_check_char_device): New
prototype.
2009-04-11 09:40:39 +00:00
davem
0d44993d69
* include/grub/sparc64/ieee1275/boot.h: New file.
...
* boot/sparc64/ieee1275/boot.S: Likewise.
* boot/sparc64/ieee1275/diskboot.S: Likewise.
2009-04-11 08:31:10 +00:00
davem
a3f7515a6e
* conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
...
static libgcc.
* configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
* include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
function, if present.
(__bswapdi2): Likewise.
2009-04-11 08:24:49 +00:00
davem
450e22389f
* kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
...
* kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
(grub_devalias_iterate): Likewise.
2009-04-11 03:09:17 +00:00
davem
d3bfb59c51
* disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
...
slots are of type grub_ieee1275_cell_t.
(grub_nand_read): Likewise.
* kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
macros are used to compare values in arg/ret block of the call.
(grub_ieee1275_finddevice, grub_ieee1275_get_property,
grub_ieee1275_next_property, grub_ieee1275_get_property_length,
grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
grub_ieee1275_instance_to_path, grub_ieee1275_write,
grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
grub_ieee1275_close, grub_ieee1275_set_property,
grub_ieee1275_set_color): All ieee1275 call arg slots are of type
grub_ieee1275_cell_t.
* kern/ieee1275/openfw.c (grub_map): Likewise.
* include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
grub_ieee1275_phandle_t): Define as grub_unit32_t type.
2009-04-11 03:07:58 +00:00
phcoder
6df8cc7614
2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
...
UFS improvements
* fs/ufs.c (INODE_NBLOCKS): new definition
(struct grub_ufs_dirent): added fields for non-BSD dirents
(grub_ufs_get_file_block): fixed double indirect handling
(grub_ufs_lookup_symlink): use more robust way to determine whether
symlink is inline
(grub_ufs_find_file): support for non-BSD dirents
(grub_ufs_dir): support for non-BSD dirents
2009-04-10 21:47:08 +00:00
bean
e7e6862a4c
2009-04-10 Bean <bean123ch@gnail.com>
...
* include/grub/efi/api.h (grub_efi_configuration_table): Add packed
attribute, otherwise the size would be wrong for i386 platform.
* include/grub/pci.h (grub_pci_read_word): New inline function.
(grub_pci_read_byte): Likewise.
(grub_pci_write): Likewise.
(grub_pci_write_word): Likewise.
(grub_pci_write_byte): Likewise.
* include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
* loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
(find_framebuf): Scan pci to locate the frame buffer address.
* commands/efi/fixvideo.c: New file.
* commands/efi/loadbios.c: Likewise.
* commands/memrw.c: Likewise.
* util/grub-dumpbios.in: Likewise.
* conf/common.rmk (grub-dumpbios): New utility.
(pkglib_MODULES): New module memrw.mod.
(memrw_mod_SOURCE): New macro.
(memrw_mod_CFLAGS): Likewise.
(memrw_mod_LDFLAGS): Likewise.
* conf/i386-efi.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.
* conf/x86_64.rmk (pkglig_MODULES): New module loadbios.mod and
fixvideo.mod.
(loadbios_mod_SOURCE): New macro.
(loadbios_mod_CFLAGS): Likewise.
(loadbios_mod_LDFLAGS): Likewise.
(fixvideo_mod_SOURCE): Likewise.
(fixvideo_mod_CFLAGS): Likewise.
(fixvideo_mod_LDFLAGS): Likewise.
2009-04-10 15:33:34 +00:00
fzielcke
af63ada2bd
2009-04-08 Felix Zielcke <fzielcke@z-51.de>
...
* disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
2009-04-08 15:03:50 +00:00
davem
ea3f72cf0e
* kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
2009-04-07 23:49:27 +00:00
davem
c2cdde70b3
* kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
...
support for R_SPARC_OLO10 relocations. Fix compile warning for
R_SPARC_WDISP30 case.
2009-04-07 23:48:28 +00:00