Add support for qemu emulation of malta board
PATCH 1/2 Add support for qemu emulation of malta board
Probably doesn't work on real malta board but is useful for tests to replace qemu_mips
--- configure.ac | 10 ++- gentpl.py | 10 +-- grub-core/Makefile.am | 11 +++ grub-core/Makefile.core.def | 12 ++++ grub-core/kern/mips/malta/init.c | 115 ++++++++++++++++++++++++++++++ grub-core/kern/mips/malta/pci.c | 69 ++++++++++++++++++ grub-core/lib/mips/malta/reboot.c | 36 ++++++++++ include/grub/kernel.h | 1 + include/grub/mips/malta/cmos.h | 30 ++++++++ include/grub/mips/malta/console.h | 22 ++++++ include/grub/mips/malta/kernel.h | 24 +++++++ include/grub/mips/malta/memory.h | 50 +++++++++++++ include/grub/mips/malta/pci.h | 61 ++++++++++++++++ include/grub/mips/malta/serial.h | 24 +++++++ include/grub/mips/malta/time.h | 25 +++++++ include/grub/offsets.h | 8 +++ include/grub/util/install.h | 2 + tests/ahci_test.in | 3 + tests/cdboot_test.in | 2 +- tests/ehci_test.in | 3 + tests/fddboot_test.in | 2 +- tests/file_filter_test.in | 2 +- tests/hddboot_test.in | 2 +- tests/netboot_test.in | 2 +- tests/ohci_test.in | 3 + tests/partmap_test.in | 2 +- tests/pata_test.in | 3 + tests/uhci_test.in | 3 + tests/util/grub-shell.in | 27 +++++++ util/grub-install-common.c | 2 + util/grub-install.c | 14 ++++ util/grub-mkrescue.c | 4 ++ util/grub-module-verifier.c | 2 + util/mkimage.c | 36 ++++++++++ 34 files changed, 608 insertions(+), 14 deletions(-) create mode 100644 grub-core/kern/mips/malta/init.c create mode 100644 grub-core/kern/mips/malta/pci.c create mode 100644 grub-core/lib/mips/malta/reboot.c create mode 100644 include/grub/mips/malta/cmos.h create mode 100644 include/grub/mips/malta/console.h create mode 100644 include/grub/mips/malta/kernel.h create mode 100644 include/grub/mips/malta/memory.h create mode 100644 include/grub/mips/malta/pci.h create mode 100644 include/grub/mips/malta/serial.h create mode 100644 include/grub/mips/malta/time.h
configure.ac +7 -3
@@ -187,7 +187,9 @@ case "$target_cpu"-"$platform" in mips-qemu_mips) ;; mips-qemu-mips) platform=qemu_mips;; mips-arc) ;; + mips-malta) ;; mipsel-arc) ;; + mipsel-malta) ;; mipsel-qemu_mips) ;; mipsel-qemu-mips) platform=qemu_mips;; mipsel-yeeloong) platform=loongson ;;
@@ -253,6 +255,7 @@ case "$platform" in emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;; loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;; qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;; + malta) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_MALTA=1" ;; arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;; esac if test x${target_cpu} = xmipsel ; then
@@ -270,7 +273,7 @@ case "${target_cpu}-$platform" in TARGET_LINK_ADDR=0x80700000 TARGET_DECOMPRESSOR_LINK_ADDR=0x80600000 ;; - mips*-qemu_mips | mips*-loongson) + mips*-qemu_mips | mips*-loongson | mips*-malta) TARGET_DECOMPRESSOR_LINK_ADDR=0x80100000 ;; esac
@@ -1823,7 +1826,7 @@ if test x"$grub_build_mkfont_excuse" = x ; then else enable_build_grub_mkfont=no fi -if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then +if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then if test x"$grub_build_mkfont_excuse" = x ; then AC_MSG_ERROR([qemu, coreboot and loongson ports need build-time grub-mkfont]) else
@@ -1908,7 +1911,7 @@ if test x"$enable_build_grub_mkfont" = xno ; then FONT_SOURCE= fi -if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then +if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then if test x"$grub_build_mkfont_excuse" = x ; then AC_MSG_ERROR([qemu, coreboot and loongson ports need unifont]) else
@@ -2182,6 +2185,7 @@ AM_CONDITIONAL([COND_mips], [test x$target_cpu = xmips -o x$target_cpu = xmipsel AM_CONDITIONAL([COND_mips_arc], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xarc]) AM_CONDITIONAL([COND_mips_loongson], [test x$target_cpu = xmipsel -a x$platform = xloongson]) AM_CONDITIONAL([COND_mips_qemu_mips], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips]) +AM_CONDITIONAL([COND_mips_malta], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xmalta]) AM_CONDITIONAL([COND_mipsel], [test x$target_cpu = xmipsel]) AM_CONDITIONAL([COND_mipseb], [test x$target_cpu = xmips]) AM_CONDITIONAL([COND_powerpc_ieee1275], [test x$target_cpu = xpowerpc -a x$platform = xieee1275])
gentpl.py +5 -5
@@ -29,7 +29,7 @@ import re GRUB_PLATFORMS = [ "emu", "i386_pc", "i386_efi", "i386_qemu", "i386_coreboot", "i386_multiboot", "i386_ieee1275", "x86_64_efi", "i386_xen", "x86_64_xen", "i386_xen_pvh", - "mips_loongson", "sparc64_ieee1275", + "mips_loongson", "mips_malta", "sparc64_ieee1275", "powerpc_ieee1275", "mips_arc", "ia64_efi", "mips_qemu_mips", "arm_uboot", "arm_efi", "arm64_efi", "arm_coreboot", "loongarch64_efi", "riscv32_efi", "riscv64_efi" ]
@@ -42,7 +42,7 @@ GROUPS["common"] = GRUB_PLATFORMS[:] GROUPS["i386"] = [ "i386_pc", "i386_efi", "i386_qemu", "i386_coreboot", "i386_multiboot", "i386_ieee1275" ] GROUPS["x86_64"] = [ "x86_64_efi" ] GROUPS["x86"] = GROUPS["i386"] + GROUPS["x86_64"] -GROUPS["mips"] = [ "mips_loongson", "mips_qemu_mips", "mips_arc" ] +GROUPS["mips"] = [ "mips_loongson", "mips_qemu_mips", "mips_arc", "mips_malta" ] GROUPS["sparc64"] = [ "sparc64_ieee1275" ] GROUPS["powerpc"] = [ "powerpc_ieee1275" ] GROUPS["arm"] = [ "arm_uboot", "arm_efi", "arm_coreboot" ]
@@ -63,10 +63,10 @@ GROUPS["coreboot"] = [ "i386_coreboot", "arm_coreboot" ] GROUPS["noemu"] = GRUB_PLATFORMS[:]; GROUPS["noemu"].remove("emu") # Groups based on hardware features -GROUPS["cmos"] = GROUPS["x86"][:] + ["mips_loongson", "mips_qemu_mips", +GROUPS["cmos"] = GROUPS["x86"][:] + ["mips_loongson", "mips_qemu_mips", "mips_malta", "sparc64_ieee1275", "powerpc_ieee1275"] GROUPS["cmos"].remove("i386_efi"); GROUPS["cmos"].remove("x86_64_efi"); -GROUPS["pci"] = GROUPS["x86"] + ["mips_loongson"] +GROUPS["pci"] = GROUPS["x86"] + ["mips_loongson", "mips_malta"] GROUPS["usb"] = GROUPS["pci"] + ["arm_coreboot"] # If gfxterm is main output console integrate it into kernel
@@ -75,7 +75,7 @@ GROUPS["videomodules"] = GRUB_PLATFORMS[:]; for i in GROUPS["videoinkernel"]: GROUPS["videomodules"].remove(i) # Similar for terminfo -GROUPS["terminfoinkernel"] = [ "emu", "mips_loongson", "mips_arc", "mips_qemu_mips", "i386_xen_pvh" ] + GROUPS["xen"] + GROUPS["ieee1275"] + GROUPS["uboot"]; +GROUPS["terminfoinkernel"] = [ "emu", "mips_loongson", "mips_arc", "mips_qemu_mips", "i386_xen_pvh", "mips_malta" ] + GROUPS["xen"] + GROUPS["ieee1275"] + GROUPS["uboot"]; GROUPS["terminfomodule"] = GRUB_PLATFORMS[:]; for i in GROUPS["terminfoinkernel"]: GROUPS["terminfomodule"].remove(i)
grub-core/Makefile.am +11 -0
@@ -216,6 +216,17 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h endif +if COND_mips_malta +#KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h +KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h +KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/pci.h +KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h +#KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h +KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h +KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h +KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h +endif + if COND_mips_loongson KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
grub-core/Makefile.core.def +12 -0
@@ -103,6 +103,7 @@ kernel = { sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400'; mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)'; mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000'; + mips_malta_ldflags = '-Wl,-Ttext,0x80200000'; mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)'; i386_qemu_cppflags = '-DGRUB_BOOT_MACHINE_LINK_ADDR=$(GRUB_BOOT_MACHINE_LINK_ADDR)';
@@ -297,6 +298,12 @@ kernel = { mips = kern/mips/dl.c; mips = kern/mips/init.c; + mips_malta = kern/mips/malta/init.c; + mips_malta = term/ns8250.c; + mips_malta = term/serial.c; + mips_malta = kern/mips/malta/pci.c; + mips_malta = bus/pci.c; + mips_qemu_mips = kern/mips/qemu_mips/init.c; mips_qemu_mips = term/ns8250.c; mips_qemu_mips = term/serial.c;
@@ -605,7 +612,9 @@ module = { module = { name = cs5536; x86 = bus/cs5536.c; + mips_malta = bus/cs5536.c; enable = x86; + enable = mips_malta; }; module = {
@@ -854,6 +863,7 @@ module = { enable = sparc64_ieee1275; enable = powerpc_ieee1275; enable = mips_arc; + enable = mips_malta; enable = ia64_efi; enable = arm_efi; enable = arm64_efi;
@@ -960,6 +970,7 @@ module = { mips_arc = lib/mips/arc/reboot.c; mips_loongson = lib/mips/loongson/reboot.c; mips_qemu_mips = lib/mips/qemu_mips/reboot.c; + mips_malta = lib/mips/malta/reboot.c; xen = lib/xen/reboot.c; i386_xen_pvh = lib/xen/reboot.c; uboot = lib/uboot/reboot.c;
@@ -2476,6 +2487,7 @@ module = { name = keylayouts; common = commands/keylayouts.c; enable = x86; + enable = mips_malta; }; module = {
grub-core/kern/mips/malta/init.c new file +115 -0
115 lines not on this page · raw message
grub-core/kern/mips/malta/pci.c new file +69 -0
69 lines not on this page · raw message
grub-core/lib/mips/malta/reboot.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2011 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#include <grub/machine/kernel.h> +#include <grub/machine/memory.h> +#include <grub/machine/pci.h> +#include <grub/misc.h> +#include <grub/time.h> +#include <grub/term.h> +#include <grub/i18n.h> + +void +grub_reboot (void ) +{ +grub_outl (0x42 ,0xbf000500 ); +grub_millisleep (1500 ); + +grub_puts_ (N_ ("Reboot failed" )); +grub_refresh (); +while (1 ); +}
include/grub/kernel.h +1 -0
@@ -80,6 +80,7 @@ struct grub_module_info64#if defined (GRUB_MACHINE_PCBIOS ) || defined (GRUB_MACHINE_COREBOOT ) \ || defined (GRUB_MACHINE_MULTIBOOT ) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) \ + || defined (GRUB_MACHINE_MIPS_MALTA ) \ || defined (GRUB_MACHINE_MIPS_LOONGSON ) || defined (GRUB_MACHINE_ARC ) \ || (defined (__sparc__) && defined (GRUB_MACHINE_IEEE1275 )) \ || defined (GRUB_MACHINE_UBOOT ) || defined (GRUB_MACHINE_XEN ) \
include/grub/mips/malta/cmos.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2008 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_CPU_CMOS_H +#define GRUB_CPU_CMOS_H 1 + +#include <grub/types.h> +#include <grub/cpu/io.h> + +#define GRUB_CMOS_ADDR_REG 0xb8000070 +#define GRUB_CMOS_DATA_REG 0xb8000071 +#define GRUB_CMOS_ADDR_REG_HI 0xb8000072 +#define GRUB_CMOS_DATA_REG_HI 0xb8000073 + +#endif /* GRUB_CPU_CMOS_H */
include/grub/mips/malta/console.h new file +22 -0
@@ -0,0 +1,22 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_MACHINE_CONSOLE_HEADER +#define GRUB_MACHINE_CONSOLE_HEADER 1 + +#endif /* ! GRUB_MACHINE_CONSOLE_HEADER */
include/grub/mips/malta/kernel.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2005,2006,2007,2008,2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_KERNEL_MACHINE_HEADER +#define GRUB_KERNEL_MACHINE_HEADER 1 + +#include <grub/symbol.h> + +#endif
include/grub/mips/malta/memory.h new file +50 -0
50 lines not on this page · raw message
include/grub/mips/malta/pci.h new file +61 -0
61 lines not on this page · raw message
include/grub/mips/malta/serial.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2009 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef GRUB_MACHINE_SERIAL_HEADER +#define GRUB_MACHINE_SERIAL_HEADER 1 + +#define GRUB_MACHINE_SERIAL_PORTS { 0xb80003f8 } + +#endif
include/grub/mips/malta/time.h new file +25 -0
@@ -0,0 +1,25 @@ +/* +* GRUB -- GRand Unified Bootloader +* Copyright (C) 2003,2004,2005,2007 Free Software Foundation, Inc. +* +* GRUB is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 3 of the License, or +* (at your option) any later version. +* +* GRUB is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with GRUB. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef KERNEL_MACHINE_TIME_HEADER +#define KERNEL_MACHINE_TIME_HEADER 1 + +#include <grub/symbol.h> +#include <grub/cpu/time.h> + +#endif /* ! KERNEL_MACHINE_TIME_HEADER */
include/grub/offsets.h +8 -0
@@ -82,6 +82,13 @@#define GRUB_DECOMPRESSOR_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR 0x10#define GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE 0x08 +#define GRUB_KERNEL_MIPS_MALTA_LINK_ADDR 0x80200000 +#define GRUB_KERNEL_MIPS_MALTA_LINK_ALIGN 32 +#define GRUB_DECOMPRESSOR_MIPS_MALTA_COMPRESSED_SIZE 0x8 +#define GRUB_DECOMPRESSOR_MIPS_MALTA_UNCOMPRESSED_SIZE 0xc +#define GRUB_DECOMPRESSOR_MIPS_MALTA_UNCOMPRESSED_ADDR 0x10 +#define GRUB_KERNEL_MIPS_MALTA_TOTAL_MODULE_SIZE 0x08 +#define GRUB_KERNEL_MIPS_ARC_LINK_ADDR 0x88200000#define GRUB_KERNEL_MIPSEL_ARC_LINK_ADDR 0x80700000#define GRUB_KERNEL_MIPS_ARC_LINK_ALIGN 32
@@ -121,6 +128,7 @@#define GRUB_KERNEL_MIPS_LOONGSON_MOD_ALIGN 0x4#define GRUB_KERNEL_MIPS_ARC_MOD_ALIGN 0x4#define GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN 0x4 +#define GRUB_KERNEL_MIPS_MALTA_MOD_ALIGN 0x4#define GRUB_KERNEL_ARM_UBOOT_MOD_ALIGN 0x8#define GRUB_KERNEL_ARM_UBOOT_TOTAL_MODULE_SIZE 0x4
include/grub/util/install.h +2 -0
@@ -112,6 +112,8 @@ enum grub_install_platGRUB_INSTALL_PLATFORM_LOONGARCH64_EFI ,GRUB_INSTALL_PLATFORM_RISCV32_EFI ,GRUB_INSTALL_PLATFORM_RISCV64_EFI , +GRUB_INSTALL_PLATFORM_MIPSEL_MALTA , +GRUB_INSTALL_PLATFORM_MIPS_MALTA , GRUB_INSTALL_PLATFORM_MAX };
tests/ahci_test.in +3 -0
@@ -29,6 +29,9 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: no AHCI on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) exit 77;; + # Not supported yet + mips*-malta) + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi | loongarch64-efi) exit 77;;
tests/cdboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/ehci_test.in +3 -0
@@ -29,6 +29,9 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: no USB on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) exit 77;; + # Not supported yet + mips*-malta) + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi | loongarch64-efi) exit 77;;
tests/fddboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/file_filter_test.in +1 -1
@@ -50,7 +50,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 0;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + i386-qemu | i386-coreboot | mips-malta | mipsel-malta | mips-qemu_mips | mipsel-qemu_mips) exit 0;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/hddboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/netboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/ohci_test.in +3 -0
@@ -29,6 +29,9 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: no USB on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) exit 77;; + # Not supported yet + mips*-malta) + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi | loongarch64-efi) exit 77;;
tests/partmap_test.in +1 -1
@@ -66,7 +66,7 @@ list_parts () { } case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in - mips-qemu_mips | mipsel-qemu_mips | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson) + mips-malta | mipsel-malta | mips-qemu_mips | mipsel-qemu_mips | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson) disk=ata0 ;; powerpc-ieee1275)
tests/pata_test.in +3 -0
@@ -39,6 +39,9 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in disk=hdb indisk=ata1 ;; + # Test fails even though ata works. Disable for now + mips*-malta) + exit 77;; esac imgfile="`mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"`" || exit 99
tests/uhci_test.in +3 -0
@@ -29,6 +29,9 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in # PLATFORM: no USB on ARC and qemu-mips platforms mips*-arc | mips*-qemu_mips) exit 77;; + # Not supported yet + mips*-malta) + exit 77;; # FIXME: No native drivers are available for those powerpc-ieee1275 | sparc64-ieee1275 | arm*-efi | loongarch64-efi) exit 77;;
tests/util/grub-shell.in +27 -0
@@ -118,6 +118,14 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in qemuopts="-M mips $qemuopts" console=vga_text ;; + + mips-malta) + boot=malta + qemu=qemu-system-mips + qemuopts="-M malta $qemuopts" + console= + trim=1 + ;; mips-arc) boot=cd qemu=qemu-system-mips64
@@ -141,6 +149,13 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in qemuopts="-M mips $qemuopts" console=vga_text ;; + mipsel-malta) + boot=mipsel_malta + qemu=qemu-system-mipsel + qemuopts="-M malta $qemuopts" + console= + trim=1 + ;; mipsel-loongson) boot=mipsel_fulong2e qemu=qemu-system-mips64el
@@ -421,7 +436,9 @@ for option in "$@"; do elif [ "$dev" = "qemu" ] ; then boot=qemu; elif [ "$dev" = "coreboot" ] ; then boot=coreboot; elif [ "$dev" = "mips_qemu" ] ; then boot=mips_qemu; + elif [ "$dev" = "mips_malta" ] ; then boot=mips_malta; elif [ "$dev" = "mipsel_qemu" ] ; then boot=mipsel_qemu; + elif [ "$dev" = "mipsel_malta" ] ; then boot=mipsel_malta; elif [ "$dev" = "mipsel_fulong2e" ] ; then boot=mipsel_fulong2e; else echo "Unrecognized boot method \`$dev'" 1>&2
@@ -585,6 +602,11 @@ if [ x$boot = xmipsel_qemu ]; then device="cdrom " fi +if [ x$boot = xmipsel_malta ]; then + bootdev="-kernel ${rom_directory}/mipsel-malta.elf" + device="cdrom " +fi + if [ x$boot = xmipsel_fulong2e ]; then bootdev="-kernel ${rom_directory}/mipsel-loongson.elf -append machtype=lemote-fuloong-2e" device="cdrom "
@@ -595,6 +617,11 @@ if [ x$boot = xmips_qemu ]; then device="cdrom " fi +if [ x$boot = xmips_malta ]; then + bootdev="-kernel ${rom_directory}/mips-malta.elf" + device="cdrom " +fi + if [ x$boot = xcoreboot ]; then imgfile="$work_directory/coreboot.img" cp "${GRUB_COREBOOT_ROM}" "${imgfile}"
util/grub-install-common.c +2 -0
@@ -916,6 +916,8 @@ static struct [GRUB_INSTALL_PLATFORM_I386_XEN_PVH] = { "i386", "xen_pvh" }, [GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON] = { "mipsel", "loongson" }, [GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS] = { "mipsel", "qemu_mips" }, + [GRUB_INSTALL_PLATFORM_MIPSEL_MALTA] = { "mipsel", "malta" }, + [GRUB_INSTALL_PLATFORM_MIPS_MALTA] = { "mips", "malta" }, [GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS] = { "mips", "qemu_mips" }, [GRUB_INSTALL_PLATFORM_MIPSEL_ARC] = { "mipsel", "arc" }, [GRUB_INSTALL_PLATFORM_MIPS_ARC] = { "mips", "arc" },
util/grub-install.c +14 -0
@@ -503,6 +503,8 @@ have_bootdev (enum grub_install_plat pl)case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA :case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON :case GRUB_INSTALL_PLATFORM_ARM_UBOOT :
@@ -948,6 +950,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON :case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA : disk_module =xstrdup ("native" );break ;
@@ -987,6 +991,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON :case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA :case GRUB_INSTALL_PLATFORM_I386_XEN :case GRUB_INSTALL_PLATFORM_X86_64_XEN :case GRUB_INSTALL_PLATFORM_I386_XEN_PVH :
@@ -1535,6 +1541,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA : g =grub_util_guess_baremetal_drive (*curdev);break ;case GRUB_INSTALL_PLATFORM_MIPS_ARC :
@@ -1623,6 +1631,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON :case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA : core_name ="core.elf" ; snprintf (mkimage_target, sizeof (mkimage_target), "%s-%s-elf",
@@ -1734,6 +1744,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_I386_XEN :case GRUB_INSTALL_PLATFORM_X86_64_XEN :case GRUB_INSTALL_PLATFORM_I386_XEN_PVH : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA :break ;/* pacify warning. */ case GRUB_INSTALL_PLATFORM_MAX :
@@ -2025,6 +2037,8 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_I386_XEN :case GRUB_INSTALL_PLATFORM_X86_64_XEN :case GRUB_INSTALL_PLATFORM_I386_XEN_PVH : +case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA : +case GRUB_INSTALL_PLATFORM_MIPS_MALTA :grub_util_warn ("%s" ,_ ("WARNING: no platform-specific install was performed" ));break ;
util/grub-mkrescue.c +4 -0
@@ -967,6 +967,7 @@ main (int argc, char *argv[])grub_install_push_module ("pata" );make_image (GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS ,"mipsel-qemu_mips-elf" ,"roms/mipsel-qemu_mips.elf" ); +make_image (GRUB_INSTALL_PLATFORM_MIPSEL_MALTA ,"mipsel-malta-elf" ,"roms/mipsel-malta.elf" );make_image (GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON ,"mipsel-loongson-elf" ,"loongson.elf" );
@@ -974,6 +975,7 @@ main (int argc, char *argv[])make_image (GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON ,"mipsel-fuloong2f-flash" ,"mipsel-fuloong2f.bin" );make_image (GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS ,"mips-qemu_mips-elf" ,"roms/mips-qemu_mips.elf" ); +make_image (GRUB_INSTALL_PLATFORM_MIPS_MALTA ,"mips-malta-elf" ,"roms/mips-malta.elf" );grub_install_push_module ("at_keyboard" );
@@ -1001,6 +1003,8 @@ main (int argc, char *argv[]) {GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS, "roms/mips-qemu_mips.elf", "mips-qemu_mips.elf"}, {GRUB_INSTALL_PLATFORM_I386_QEMU, "roms/qemu.img", "qemu.img"}, {GRUB_INSTALL_PLATFORM_I386_COREBOOT, "roms/coreboot.elf", "coreboot.elf"}, + {GRUB_INSTALL_PLATFORM_MIPS_MALTA, "roms/mips-malta.elf", "mips-malta.elf"}, + {GRUB_INSTALL_PLATFORM_MIPSEL_MALTA, "roms/mipsel-malta.elf", "mipsel-malta.elf"}, };grub_size_t i;for (i =0 ; i <ARRAY_SIZE (roms); i++)
util/grub-module-verifier.c +2 -0
@@ -226,8 +226,10 @@ static struct platform_whitelist whitelists[] = {/* video is compiled-in on MIPS. */ {"mipsel", "loongson", (const char *[]) {"all_video", 0}}, {"mipsel", "qemu_mips", (const char *[]) {"all_video", 0}}, + {"mipsel", "malta", (const char *[]) {"all_video", 0}}, {"mipsel", "arc", (const char *[]) {"all_video", 0}}, {"mips", "qemu_mips", (const char *[]) {"all_video", 0}}, + {"mips", "malta", (const char *[]) {"all_video", 0}}, {"mips", "arc", (const char *[]) {"all_video", 0}}, };
util/mkimage.c +36 -0
@@ -461,6 +461,24 @@ static const struct grub_install_image_target_desc image_targets[] = .link_align = GRUB_KERNEL_MIPS_ARC_LINK_ALIGN, .default_compression = GRUB_COMPRESSION_NONE }, + { + .dirname = "mipsel-malta", + .names = { "mipsel-malta-elf", NULL }, + .voidp_sizeof = 4, + .bigendian = 0, + .id = IMAGE_LOONGSON_ELF, + .flags = PLATFORM_FLAGS_DECOMPRESSORS, + .total_module_size = GRUB_KERNEL_MIPS_MALTA_TOTAL_MODULE_SIZE, + .decompressor_compressed_size = GRUB_DECOMPRESSOR_MIPS_LOONGSON_COMPRESSED_SIZE, + .decompressor_uncompressed_size = GRUB_DECOMPRESSOR_MIPS_LOONGSON_UNCOMPRESSED_SIZE, + .decompressor_uncompressed_addr = GRUB_DECOMPRESSOR_MIPS_LOONGSON_UNCOMPRESSED_ADDR, + .section_align = 1, + .vaddr_offset = 0, + .link_addr = GRUB_KERNEL_MIPS_MALTA_LINK_ADDR, + .elf_target = EM_MIPS, + .link_align = GRUB_KERNEL_MIPS_MALTA_LINK_ALIGN, + .default_compression = GRUB_COMPRESSION_NONE + }, { .dirname ="mipsel-qemu_mips" , .names = { "mipsel-qemu_mips-elf", NULL },
@@ -533,6 +551,24 @@ static const struct grub_install_image_target_desc image_targets[] = .link_align = GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN, .default_compression = GRUB_COMPRESSION_NONE }, + { + .dirname = "mips-malta", + .names = { "mips-malta-elf", NULL }, + .voidp_sizeof = 4, + .bigendian = 1, + .id = IMAGE_LOONGSON_ELF, + .flags = PLATFORM_FLAGS_DECOMPRESSORS, + .total_module_size = GRUB_KERNEL_MIPS_MALTA_TOTAL_MODULE_SIZE, + .decompressor_compressed_size = GRUB_DECOMPRESSOR_MIPS_LOONGSON_COMPRESSED_SIZE, + .decompressor_uncompressed_size = GRUB_DECOMPRESSOR_MIPS_LOONGSON_UNCOMPRESSED_SIZE, + .decompressor_uncompressed_addr = GRUB_DECOMPRESSOR_MIPS_LOONGSON_UNCOMPRESSED_ADDR, + .section_align = 1, + .vaddr_offset = 0, + .link_addr = GRUB_KERNEL_MIPS_MALTA_LINK_ADDR, + .elf_target = EM_MIPS, + .link_align = GRUB_KERNEL_MIPS_MALTA_LINK_ALIGN, + .default_compression = GRUB_COMPRESSION_NONE + }, { .dirname ="arm-uboot" , .names = { "arm-uboot", NULL },
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel
PATCH 2/2 Remove qemu_mips port
It was removed from qemu and so there is no current implmentation for it anymore. As for tests malta port can be used for them
Signed-off-by Vladimir Serbinenko <[email protected]>
--- .travis.yml | 2 +- Makefile.am | 11 ---- configure.ac | 12 +--- docs/grub.texi | 2 +- gentpl.py | 8 +-- grub-core/Makefile.am | 15 ----- grub-core/Makefile.core.def | 16 ----- grub-core/boot/mips/startup_raw.S | 19 ------ grub-core/commands/nativedisk.c | 2 - grub-core/disk/pata.c | 23 ------- grub-core/kern/mips/startup.S | 6 -- grub-core/loader/mips/linux.c | 67 ------------------- grub-core/term/at_keyboard.c | 4 +- grub-core/term/i386/pc/vga_text.c | 2 +- grub-core/tests/gfxterm_menu.c | 2 +- grub-core/tests/videotest_checksum.c | 2 +- include/grub/kernel.h | 3 +- include/grub/misc.h | 3 +- include/grub/offsets.h | 8 --- include/grub/util/install.h | 2 - include/grub/util/mkimage.h | 2 +- include/grub/vga.h | 5 -- po/exclude.pot | Bin 140931 -> 140490 bytes tests/cdboot_test.in | 2 +- tests/fddboot_test.in | 2 +- tests/file_filter_test.in | 2 +- tests/grub_func_test.in | 3 - tests/netboot_test.in | 2 +- tests/partmap_test.in | 2 +- tests/serial_test.in | 2 +- tests/util/grub-shell.in | 23 ------- util/grub-install-common.c | 2 - util/grub-install.c | 14 ---- util/grub-mkimagexx.c | 1 - util/grub-mkrescue.c | 4 -- util/grub-module-verifier.c | 2 - util/mkimage.c | 95 --------------------------- 37 files changed, 23 insertions(+), 349 deletions(-)
.travis.yml +1 -1
@@ -89,7 +89,7 @@ matrix: - CROSS_TARGETS="ia64-linux" - name: "mips" env: - - GRUB_TARGETS="mips-arc mipsel-arc mipsel-qemu_mips mips-qemu_mips" + - GRUB_TARGETS="mips-arc mipsel-arc" - CROSS_TARGETS="mips64-linux" - name: "arm" env:
Makefile.am +0 -11
@@ -403,17 +403,6 @@ if COND_mips_loongson BOOTCHECKS = bootcheck-linux-loongson endif -if COND_mipsel -if COND_mips_qemu_mips -BOOTCHECKS = bootcheck-linux-mipsel -endif -endif -if COND_mipseb -if COND_mips_qemu_mips -BOOTCHECKS = bootcheck-linux-mips -endif -endif - if COND_powerpc_ieee1275 BOOTCHECKS = bootcheck-linux-ppc endif
configure.ac +3 -9
@@ -184,14 +184,10 @@ case "$target_cpu"-"$platform" in powerpc-ieee1275) ;; sparc64-ieee1275) ;; ia64-efi) ;; - mips-qemu_mips) ;; - mips-qemu-mips) platform=qemu_mips;; mips-arc) ;; mips-malta) ;; mipsel-arc) ;; mipsel-malta) ;; - mipsel-qemu_mips) ;; - mipsel-qemu-mips) platform=qemu_mips;; mipsel-yeeloong) platform=loongson ;; mipsel-fuloong) platform=loongson ;; mipsel-loongson) ;;
@@ -254,7 +250,6 @@ case "$platform" in pc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_PCBIOS=1" ;; emu) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_EMU=1" ;; loongson) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_LOONGSON=1" ;; - qemu_mips) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_QEMU_MIPS=1" ;; malta) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_MIPS_MALTA=1" ;; arc) machine_CPPFLAGS="$machine_CPPFLAGS -DGRUB_MACHINE_ARC=1" ;; esac
@@ -273,7 +268,7 @@ case "${target_cpu}-$platform" in TARGET_LINK_ADDR=0x80700000 TARGET_DECOMPRESSOR_LINK_ADDR=0x80600000 ;; - mips*-qemu_mips | mips*-loongson | mips*-malta) + mips*-loongson | mips*-malta) TARGET_DECOMPRESSOR_LINK_ADDR=0x80100000 ;; esac
@@ -1826,7 +1821,7 @@ if test x"$grub_build_mkfont_excuse" = x ; then else enable_build_grub_mkfont=no fi -if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then +if test x"$enable_build_grub_mkfont" = xno && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xcoreboot ); then if test x"$grub_build_mkfont_excuse" = x ; then AC_MSG_ERROR([qemu, coreboot and loongson ports need build-time grub-mkfont]) else
@@ -1911,7 +1906,7 @@ if test x"$enable_build_grub_mkfont" = xno ; then FONT_SOURCE= fi -if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xqemu_mips || test "x$platform" = xcoreboot ); then +if test "x$FONT_SOURCE" = x && ( test "x$platform" = xqemu || test "x$platform" = xloongson || test "x$platform" = xmalta || test "x$platform" = xcoreboot ); then if test x"$grub_build_mkfont_excuse" = x ; then AC_MSG_ERROR([qemu, coreboot and loongson ports need unifont]) else
@@ -2184,7 +2179,6 @@ AM_CONDITIONAL([COND_loongarch64_efi], [test x$target_cpu = xloongarch64 -a x$pl AM_CONDITIONAL([COND_mips], [test x$target_cpu = xmips -o x$target_cpu = xmipsel]) AM_CONDITIONAL([COND_mips_arc], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xarc]) AM_CONDITIONAL([COND_mips_loongson], [test x$target_cpu = xmipsel -a x$platform = xloongson]) -AM_CONDITIONAL([COND_mips_qemu_mips], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xqemu_mips]) AM_CONDITIONAL([COND_mips_malta], [test "(" x$target_cpu = xmips -o x$target_cpu = xmipsel ")" -a x$platform = xmalta]) AM_CONDITIONAL([COND_mipsel], [test x$target_cpu = xmipsel]) AM_CONDITIONAL([COND_mipseb], [test x$target_cpu = xmips])
docs/grub.texi +1 -1
@@ -2549,7 +2549,7 @@ The following properties are supported by all components: @chapter Booting GRUB from the network The following instructions don't work for *-emu, i386-qemu, i386-coreboot, -i386-multiboot, mips_loongson, mips-arc and mips_qemu_mips +i386-multiboot, mips_loongson and mips-arc To generate a netbootable directory, run:
gentpl.py +4 -4
@@ -31,7 +31,7 @@ GRUB_PLATFORMS = [ "emu", "i386_pc", "i386_efi", "i386_qemu", "i386_coreboot", "i386_xen", "x86_64_xen", "i386_xen_pvh", "mips_loongson", "mips_malta", "sparc64_ieee1275", "powerpc_ieee1275", "mips_arc", "ia64_efi", - "mips_qemu_mips", "arm_uboot", "arm_efi", "arm64_efi", + "arm_uboot", "arm_efi", "arm64_efi", "arm_coreboot", "loongarch64_efi", "riscv32_efi", "riscv64_efi" ] GROUPS = {}
@@ -42,7 +42,7 @@ GROUPS["common"] = GRUB_PLATFORMS[:] GROUPS["i386"] = [ "i386_pc", "i386_efi", "i386_qemu", "i386_coreboot", "i386_multiboot", "i386_ieee1275" ] GROUPS["x86_64"] = [ "x86_64_efi" ] GROUPS["x86"] = GROUPS["i386"] + GROUPS["x86_64"] -GROUPS["mips"] = [ "mips_loongson", "mips_qemu_mips", "mips_arc", "mips_malta" ] +GROUPS["mips"] = [ "mips_loongson", "mips_arc", "mips_malta" ] GROUPS["sparc64"] = [ "sparc64_ieee1275" ] GROUPS["powerpc"] = [ "powerpc_ieee1275" ] GROUPS["arm"] = [ "arm_uboot", "arm_efi", "arm_coreboot" ]
@@ -63,7 +63,7 @@ GROUPS["coreboot"] = [ "i386_coreboot", "arm_coreboot" ] GROUPS["noemu"] = GRUB_PLATFORMS[:]; GROUPS["noemu"].remove("emu") # Groups based on hardware features -GROUPS["cmos"] = GROUPS["x86"][:] + ["mips_loongson", "mips_qemu_mips", "mips_malta", +GROUPS["cmos"] = GROUPS["x86"][:] + ["mips_loongson", "mips_malta", "sparc64_ieee1275", "powerpc_ieee1275"] GROUPS["cmos"].remove("i386_efi"); GROUPS["cmos"].remove("x86_64_efi"); GROUPS["pci"] = GROUPS["x86"] + ["mips_loongson", "mips_malta"]
@@ -75,7 +75,7 @@ GROUPS["videomodules"] = GRUB_PLATFORMS[:]; for i in GROUPS["videoinkernel"]: GROUPS["videomodules"].remove(i) # Similar for terminfo -GROUPS["terminfoinkernel"] = [ "emu", "mips_loongson", "mips_arc", "mips_qemu_mips", "i386_xen_pvh", "mips_malta" ] + GROUPS["xen"] + GROUPS["ieee1275"] + GROUPS["uboot"]; +GROUPS["terminfoinkernel"] = [ "emu", "mips_loongson", "mips_arc", "i386_xen_pvh", "mips_malta" ] + GROUPS["xen"] + GROUPS["ieee1275"] + GROUPS["uboot"]; GROUPS["terminfomodule"] = GRUB_PLATFORMS[:]; for i in GROUPS["terminfoinkernel"]: GROUPS["terminfomodule"].remove(i)
grub-core/Makefile.am +0 -15
@@ -206,16 +206,6 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/arc/arc.h KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h endif -if COND_mips_qemu_mips -KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h -KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h -KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/serial.h -KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/loader.h -KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/terminfo.h -KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h -KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h -endif - if COND_mips_malta #KERNEL_HEADER_FILES += $(top_builddir)/include/grub/keyboard_layouts.h KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h
@@ -246,11 +236,6 @@ KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/extcmd.h KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/lib/arg.h endif -if COND_mips_qemu_mips -KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/memory.h -KERNEL_HEADER_FILES += $(top_builddir)/include/grub/machine/kernel.h -endif - if COND_powerpc_ieee1275 KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/ieee1275.h KERNEL_HEADER_FILES += $(top_srcdir)/include/grub/ieee1275/alloc.h
grub-core/Makefile.core.def +0 -16
@@ -102,7 +102,6 @@ kernel = { powerpc_ieee1275_ldflags = '-Wl,-Ttext,0x200000'; sparc64_ieee1275_ldflags = '-Wl,-Ttext,0x4400'; mips_arc_ldflags = '-Wl,-Ttext,$(TARGET_LINK_ADDR)'; - mips_qemu_mips_ldflags = '-Wl,-Ttext,0x80200000'; mips_malta_ldflags = '-Wl,-Ttext,0x80200000'; mips_arc_cppflags = '-DGRUB_DECOMPRESSOR_LINK_ADDR=$(TARGET_DECOMPRESSOR_LINK_ADDR)';
@@ -304,16 +303,6 @@ kernel = { mips_malta = kern/mips/malta/pci.c; mips_malta = bus/pci.c; - mips_qemu_mips = kern/mips/qemu_mips/init.c; - mips_qemu_mips = term/ns8250.c; - mips_qemu_mips = term/serial.c; - mips_qemu_mips = term/at_keyboard.c; - mips_qemu_mips = term/ps2.c; - mips_qemu_mips = commands/boot.c; - mips_qemu_mips = commands/keylayouts.c; - mips_qemu_mips = term/i386/pc/vga_text.c; - mips_qemu_mips = kern/vga_init.c; - mips_arc = kern/mips/arc/init.c; mips_arc = term/arc/console.c; mips_arc = disk/arc/arcdisk.c;
@@ -693,7 +682,6 @@ module = { enable = x86; enable = mips_loongson; - enable = mips_qemu_mips; }; module = {
@@ -969,7 +957,6 @@ module = { sparc64_ieee1275 = lib/ieee1275/reboot.c; mips_arc = lib/mips/arc/reboot.c; mips_loongson = lib/mips/loongson/reboot.c; - mips_qemu_mips = lib/mips/qemu_mips/reboot.c; mips_malta = lib/mips/malta/reboot.c; xen = lib/xen/reboot.c; i386_xen_pvh = lib/xen/reboot.c;
@@ -994,7 +981,6 @@ module = { name = hdparm; common = commands/hdparm.c; enable = pci; - enable = mips_qemu_mips; }; module = {
@@ -1312,7 +1298,6 @@ module = { name = ata; common = disk/ata.c; enable = pci; - enable = mips_qemu_mips; }; module = {
@@ -1325,7 +1310,6 @@ module = { name = pata; common = disk/pata.c; enable = pci; - enable = mips_qemu_mips; }; module = {
grub-core/boot/mips/startup_raw.S +0 -19
@@ -55,25 +55,6 @@ codestart: /* Parse arguments. Has to be done before relocation. So need to do it in asm. */ -#ifdef GRUB_MACHINE_MIPS_QEMU_MIPS - lui $t0, %hi (((16 << 20) - 264 + 4) | 0x80000000) - lw $t1, %lo (((16 << 20) - 264 + 4) | 0x80000000) ($t0) - - lui $t2, 0x1234 - ori $t2, 0x5678 - - bne $t1, $t2, 1f - nop - - lui $t0, %hi (((16 << 20) - 264) | 0x80000000) - b 2f - lw $s4, %lo (((16 << 20) - 264) | 0x80000000) ($t0) - -1: - li $s4, 0 -2: -#endif - #ifdef GRUB_MACHINE_MIPS_LOONGSON move $s2, $zero move $s3, $zero
grub-core/commands/nativedisk.c +0 -2
@@ -35,8 +35,6 @@ static const char *modnames_def[] = {/* FIXME: autogenerate this. */ #if defined (__i386__) || defined (__x86_64__) || defined (GRUB_MACHINE_MIPS_LOONGSON ) "pata", "ahci", "usbms", "ohci", "uhci", "ehci" -#elif defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) - "pata"#else #error "Fill this"#endif
grub-core/disk/pata.c +0 -23
@@ -22,12 +22,8 @@#include <grub/disk.h> #include <grub/dl.h> #include <grub/mm.h> -#ifndef GRUB_MACHINE_MIPS_QEMU_MIPS #include <grub/pci.h> #include <grub/cs5536.h> -#else -#define GRUB_MACHINE_PCI_IO_BASE 0xb4000000 -#endif #include <grub/time.h> GRUB_MOD_LICENSE ("GPLv3+" );
@@ -113,13 +109,8 @@ grub_pata_wait (void)grub_millisleep (50 ); } -#ifdef GRUB_MACHINE_MIPS_QEMU_MIPS -#define grub_ata_to_cpu16 (x) ((grub_uint16_t) (x)) -#define grub_cpu_to_ata16 (x) ((grub_uint16_t) (x)) -#else #define grub_ata_to_cpu16 grub_le_to_cpu16#define grub_cpu_to_ata16 grub_cpu_to_le16 -#endif static void grub_pata_pio_read (struct grub_pata_device *dev,char *buf,grub_size_t size)
@@ -343,7 +334,6 @@ grub_pata_device_initialize (int port, int device, int addr)return 0 ; } -#ifndef GRUB_MACHINE_MIPS_QEMU_MIPS static int grub_pata_pciinit (grub_pci_device_t dev, grub_pci_id_t pciid,
@@ -462,19 +452,6 @@ grub_pata_initialize (void)grub_pci_iterate (grub_pata_pciinit,NULL );return 0 ; } -#else -static grub_err_t -grub_pata_initialize (void ) -{ -int i; -for (i =0 ; i <2 ; i++) - { -grub_pata_device_initialize (i,0 , grub_pata_ioaddress[i]); -grub_pata_device_initialize (i,1 , grub_pata_ioaddress[i]); - } -return 0 ; -} -#endif static grub_err_t grub_pata_open (int id,int devnum,struct grub_ata *ata)
grub-core/kern/mips/startup.S +0 -6
@@ -57,12 +57,6 @@ cont: /* Save our base. */ move $s0, $ra -#ifdef GRUB_MACHINE_MIPS_QEMU_MIPS - lui $t1, %hi(grub_arch_busclock) - addiu $t1, %lo(grub_arch_busclock) - sw $s4, 8($t1) -#endif - #ifdef GRUB_MACHINE_MIPS_LOONGSON lui $t1, %hi(grub_arch_busclock) addiu $t1, %lo(grub_arch_busclock)
grub-core/loader/mips/linux.c +0 -67
142 lines not on this page · raw message
grub-core/term/at_keyboard.c +2 -2
@@ -97,7 +97,7 @@ grub_keyboard_controller_write (grub_uint8_t c)grub_outb (c,KEYBOARD_REG_DATA ); } -#if defined (GRUB_MACHINE_MIPS_LOONGSON ) || defined (GRUB_MACHINE_QEMU ) || defined (GRUB_MACHINE_COREBOOT ) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) +#if defined (GRUB_MACHINE_MIPS_LOONGSON ) || defined (GRUB_MACHINE_QEMU ) || defined (GRUB_MACHINE_COREBOOT )#define USE_SCANCODE_SET 1#else #define USE_SCANCODE_SET 0
@@ -267,7 +267,7 @@ grub_keyboard_controller_init (void)keyboard_controller_wait_until_ready ();grub_inb (KEYBOARD_REG_DATA ); } -#if defined (GRUB_MACHINE_MIPS_LOONGSON ) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) +#if defined (GRUB_MACHINE_MIPS_LOONGSON ) grub_keyboard_controller_orig =0 ; grub_keyboard_orig_set =2 ;#elif defined (GRUB_MACHINE_QEMU ) || defined (GRUB_MACHINE_COREBOOT )
grub-core/term/i386/pc/vga_text.c +1 -1
@@ -33,7 +33,7 @@#include <grub/machine/int.h> #endif -#if defined (GRUB_MACHINE_COREBOOT ) || defined (GRUB_MACHINE_QEMU ) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) || defined (GRUB_MACHINE_MULTIBOOT ) +#if defined (GRUB_MACHINE_COREBOOT ) || defined (GRUB_MACHINE_QEMU ) || defined (GRUB_MACHINE_MULTIBOOT )#include <grub/machine/console.h> #endif
grub-core/tests/gfxterm_menu.c +1 -1
@@ -127,7 +127,7 @@ gfxterm_menu (void) {grub_uint64_t start; -#if defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) || defined (GRUB_MACHINE_IEEE1275 ) +#if defined (GRUB_MACHINE_IEEE1275 )if (grub_test_video_modes[i].width >1024 )continue ; if (grub_strcmp (tests[j].name, "gfxmenu") == 0
grub-core/tests/videotest_checksum.c +1 -1
@@ -50,7 +50,7 @@ videotest_checksum (void)for (i =0 ; i <ARRAY_SIZE (grub_test_video_modes); i++) {grub_err_t err; -#if defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) || defined (GRUB_MACHINE_IEEE1275 ) +#if defined (GRUB_MACHINE_IEEE1275 )if (grub_test_video_modes[i].width >1024 )continue ;#endif
include/grub/kernel.h +1 -2
@@ -79,8 +79,7 @@ struct grub_module_info64#endif #if defined (GRUB_MACHINE_PCBIOS ) || defined (GRUB_MACHINE_COREBOOT ) \ - || defined (GRUB_MACHINE_MULTIBOOT ) || defined (GRUB_MACHINE_MIPS_QEMU_MIPS ) \ - || defined (GRUB_MACHINE_MIPS_MALTA ) \ + || defined (GRUB_MACHINE_MULTIBOOT ) || defined (GRUB_MACHINE_MIPS_MALTA ) \ || defined (GRUB_MACHINE_MIPS_LOONGSON ) || defined (GRUB_MACHINE_ARC ) \ || (defined (__sparc__) && defined (GRUB_MACHINE_IEEE1275 )) \ || defined (GRUB_MACHINE_UBOOT ) || defined (GRUB_MACHINE_XEN ) \
include/grub/misc.h +1 -2
@@ -492,8 +492,7 @@ grub_abs (int x) }/* Reboot the machine. */ -#if defined (GRUB_MACHINE_EMU ) || defined (GRUB_MACHINE_QEMU_MIPS ) || \ - defined (GRUB_MACHINE_EFI ) +#if defined (GRUB_MACHINE_EMU ) || defined (GRUB_MACHINE_EFI )void EXPORT_FUNC (grub_reboot ) (void ) __attribute__ ((noreturn));#else void grub_reboot (void ) __attribute__ ((noreturn));
include/grub/offsets.h +0 -8
@@ -75,13 +75,6 @@#define GRUB_KERNEL_MIPS_LOONGSON_TOTAL_MODULE_SIZE 0x08 -#define GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR 0x80200000 -#define GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN 32 -#define GRUB_DECOMPRESSOR_MIPS_QEMU_MIPS_COMPRESSED_SIZE 0x8 -#define GRUB_DECOMPRESSOR_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE 0xc -#define GRUB_DECOMPRESSOR_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR 0x10 -#define GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE 0x08 -#define GRUB_KERNEL_MIPS_MALTA_LINK_ADDR 0x80200000#define GRUB_KERNEL_MIPS_MALTA_LINK_ALIGN 32#define GRUB_DECOMPRESSOR_MIPS_MALTA_COMPRESSED_SIZE 0x8
@@ -127,7 +120,6 @@#define GRUB_KERNEL_MIPS_LOONGSON_MOD_ALIGN 0x4#define GRUB_KERNEL_MIPS_ARC_MOD_ALIGN 0x4 -#define GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN 0x4#define GRUB_KERNEL_MIPS_MALTA_MOD_ALIGN 0x4#define GRUB_KERNEL_ARM_UBOOT_MOD_ALIGN 0x8
include/grub/util/install.h +0 -2
@@ -102,8 +102,6 @@ enum grub_install_platGRUB_INSTALL_PLATFORM_IA64_EFI ,GRUB_INSTALL_PLATFORM_ARM_UBOOT ,GRUB_INSTALL_PLATFORM_ARM_EFI , -GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS , -GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS ,GRUB_INSTALL_PLATFORM_I386_XEN ,GRUB_INSTALL_PLATFORM_X86_64_XEN , GRUB_INSTALL_PLATFORM_I386_XEN_PVH,
include/grub/util/mkimage.h +1 -1
@@ -72,7 +72,7 @@ struct grub_install_image_target_descIMAGE_I386_IEEE1275 ,IMAGE_LOONGSON_ELF ,IMAGE_QEMU ,IMAGE_PPC ,IMAGE_YEELOONG_FLASH ,IMAGE_FULOONG2F_FLASH ,IMAGE_I386_PC_PXE ,IMAGE_MIPS_ARC , -IMAGE_QEMU_MIPS_FLASH ,IMAGE_UBOOT ,IMAGE_XEN ,IMAGE_I386_PC_ELTORITO , +IMAGE_UBOOT ,IMAGE_XEN ,IMAGE_I386_PC_ELTORITO ,IMAGE_XEN_PVH } id; enum
include/grub/vga.h +0 -5
@@ -19,12 +19,7 @@#ifndef GRUB_VGA_HEADER #define GRUB_VGA_HEADER 1 -#ifndef GRUB_MACHINE_MIPS_QEMU_MIPS #include <grub/pci.h> -#else -#include <grub/cpu/io.h> -#define GRUB_MACHINE_PCI_IO_BASE 0xb4000000 -#endif #include <grub/vgaregs.h>
po/exclude.pot binary +0 -0
tests/cdboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/fddboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/file_filter_test.in +1 -1
@@ -50,7 +50,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 0;; # PLATFORM: Flash targets - i386-qemu | i386-coreboot | mips-malta | mipsel-malta | mips-qemu_mips | mipsel-qemu_mips) + i386-qemu | i386-coreboot | mips-malta | mipsel-malta) exit 0;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/grub_func_test.in +0 -3
@@ -9,9 +9,6 @@ if [ ! -e "@builddir@/"unicode.pf2 ]; then fi case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in - # PLATFORM: Max RAM is 256M - mips-qemu_mips | mipsel-qemu_mips) - mem=256M;; loongarch64-efi) mem=3G;; *)
tests/netboot_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets - mips-malta | mipsel-malta | i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + mips-malta | mipsel-malta | i386-qemu | i386-coreboot) exit 77;; # FIXME: currently grub-shell uses only -kernel for loongson mipsel-loongson)
tests/partmap_test.in +1 -1
@@ -66,7 +66,7 @@ list_parts () { } case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in - mips-malta | mipsel-malta | mips-qemu_mips | mipsel-qemu_mips | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson) + mips-malta | mipsel-malta | i386-qemu | i386-multiboot | i386-coreboot | mipsel-loongson) disk=ata0 ;; powerpc-ieee1275)
tests/serial_test.in +1 -1
@@ -24,7 +24,7 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in *-emu) exit 77;; # PLATFORM: Flash targets. - i386-qemu | i386-coreboot | mips-qemu_mips | mipsel-qemu_mips) + i386-qemu | i386-coreboot) exit 77;; # FIXME: Currently grub-shell uses only -kernel for loongson. mipsel-loongson)
tests/util/grub-shell.in +0 -23
@@ -112,13 +112,6 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in halt_cmd=reboot ;; - mips-qemu_mips) - boot=mips_qemu - qemu=qemu-system-mips - qemuopts="-M mips $qemuopts" - console=vga_text - ;; - mips-malta) boot=malta qemu=qemu-system-mips
@@ -143,12 +136,6 @@ case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in halt_cmd=reboot trim=1 ;; - mipsel-qemu_mips) - boot=mipsel_qemu - qemu=qemu-system-mipsel - qemuopts="-M mips $qemuopts" - console=vga_text - ;; mipsel-malta) boot=mipsel_malta qemu=qemu-system-mipsel
@@ -597,11 +584,6 @@ if [ x$boot = xqemu ]; then device="cdrom " fi -if [ x$boot = xmipsel_qemu ]; then - bootdev="-kernel ${rom_directory}/mipsel-qemu_mips.elf" - device="cdrom " -fi - if [ x$boot = xmipsel_malta ]; then bootdev="-kernel ${rom_directory}/mipsel-malta.elf" device="cdrom "
@@ -612,11 +594,6 @@ if [ x$boot = xmipsel_fulong2e ]; then device="cdrom " fi -if [ x$boot = xmips_qemu ]; then - bootdev="-kernel ${rom_directory}/mips-qemu_mips.elf" - device="cdrom " -fi - if [ x$boot = xmips_malta ]; then bootdev="-kernel ${rom_directory}/mips-malta.elf" device="cdrom "
util/grub-install-common.c +0 -2
@@ -915,10 +915,8 @@ static struct [GRUB_INSTALL_PLATFORM_X86_64_XEN] = { "x86_64", "xen" }, [GRUB_INSTALL_PLATFORM_I386_XEN_PVH] = { "i386", "xen_pvh" }, [GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON] = { "mipsel", "loongson" }, - [GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS] = { "mipsel", "qemu_mips" }, [GRUB_INSTALL_PLATFORM_MIPSEL_MALTA] = { "mipsel", "malta" }, [GRUB_INSTALL_PLATFORM_MIPS_MALTA] = { "mips", "malta" }, - [GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS] = { "mips", "qemu_mips" }, [GRUB_INSTALL_PLATFORM_MIPSEL_ARC] = { "mipsel", "arc" }, [GRUB_INSTALL_PLATFORM_MIPS_ARC] = { "mips", "arc" }, [GRUB_INSTALL_PLATFORM_SPARC64_IEEE1275] = { "sparc64", "ieee1275" },
util/grub-install.c +0 -14
@@ -501,8 +501,6 @@ have_bootdev (enum grub_install_plat pl)case GRUB_INSTALL_PLATFORM_I386_COREBOOT :case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA :case GRUB_INSTALL_PLATFORM_MIPS_MALTA :
@@ -948,8 +946,6 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA :case GRUB_INSTALL_PLATFORM_MIPS_MALTA : disk_module =xstrdup ("native" );
@@ -989,8 +985,6 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA :case GRUB_INSTALL_PLATFORM_MIPS_MALTA :case GRUB_INSTALL_PLATFORM_I386_XEN :
@@ -1539,8 +1533,6 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_I386_COREBOOT :case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA :case GRUB_INSTALL_PLATFORM_MIPS_MALTA : g =grub_util_guess_baremetal_drive (*curdev);
@@ -1629,8 +1621,6 @@ main (int argc, char *argv[]) grub_install_get_platform_platform (platform));break ;case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_MIPSEL_MALTA :case GRUB_INSTALL_PLATFORM_MIPS_MALTA : core_name ="core.elf" ;
@@ -1730,8 +1720,6 @@ main (int argc, char *argv[])case GRUB_INSTALL_PLATFORM_RISCV32_EFI :case GRUB_INSTALL_PLATFORM_RISCV64_EFI :case GRUB_INSTALL_PLATFORM_IA64_EFI : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_I386_COREBOOT :case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :
@@ -2026,8 +2014,6 @@ main (int argc, char *argv[])break ;case GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON : -case GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS : -case GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS :case GRUB_INSTALL_PLATFORM_I386_COREBOOT :case GRUB_INSTALL_PLATFORM_ARM_COREBOOT :case GRUB_INSTALL_PLATFORM_I386_MULTIBOOT :
util/grub-mkimagexx.c +0 -1
@@ -2516,7 +2516,6 @@ SUFFIX (grub_mkimage_load_image) (const char *kernel_path,if (image_target->id ==IMAGE_YEELOONG_FLASH || image_target->id ==IMAGE_FULOONG2F_FLASH || image_target->id ==IMAGE_LOONGSON_ELF - || image_target->id ==IMAGE_QEMU_MIPS_FLASH || image_target->id ==IMAGE_MIPS_ARC ) { layout->kernel_size = bss_start;
util/grub-mkrescue.c +0 -4
@@ -966,7 +966,6 @@ main (int argc, char *argv[])make_image_fwdisk (GRUB_INSTALL_PLATFORM_MIPSEL_ARC ,"mipsel-arc" ,"arc.exe" );grub_install_push_module ("pata" ); -make_image (GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS ,"mipsel-qemu_mips-elf" ,"roms/mipsel-qemu_mips.elf" );make_image (GRUB_INSTALL_PLATFORM_MIPSEL_MALTA ,"mipsel-malta-elf" ,"roms/mipsel-malta.elf" );make_image (GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON ,"mipsel-loongson-elf" ,"loongson.elf" );
@@ -974,7 +973,6 @@ main (int argc, char *argv[])make_image (GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON ,"mipsel-yeeloong-flash" ,"mipsel-yeeloong.bin" );make_image (GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON ,"mipsel-fuloong2f-flash" ,"mipsel-fuloong2f.bin" ); -make_image (GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS ,"mips-qemu_mips-elf" ,"roms/mips-qemu_mips.elf" );make_image (GRUB_INSTALL_PLATFORM_MIPS_MALTA ,"mips-malta-elf" ,"roms/mips-malta.elf" );grub_install_push_module ("at_keyboard" );
@@ -996,11 +994,9 @@ main (int argc, char *argv[])const char *from, *to; } roms[] = { - {GRUB_INSTALL_PLATFORM_MIPSEL_QEMU_MIPS, "roms/mipsel-qemu_mips.elf", "mipsel-qemu_mips.elf"}, {GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON, "loongson.elf", "mipsel-loongson.elf"}, {GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON, "roms/mipsel-yeeloong.bin", "mipsel-yeeloong.bin"}, {GRUB_INSTALL_PLATFORM_MIPSEL_LOONGSON, "roms/mipsel-fulong.bin", "mipsel-fulong.bin"}, - {GRUB_INSTALL_PLATFORM_MIPS_QEMU_MIPS, "roms/mips-qemu_mips.elf", "mips-qemu_mips.elf"}, {GRUB_INSTALL_PLATFORM_I386_QEMU, "roms/qemu.img", "qemu.img"}, {GRUB_INSTALL_PLATFORM_I386_COREBOOT, "roms/coreboot.elf", "coreboot.elf"}, {GRUB_INSTALL_PLATFORM_MIPS_MALTA, "roms/mips-malta.elf", "mips-malta.elf"},
util/grub-module-verifier.c +0 -2
@@ -225,10 +225,8 @@ static struct platform_whitelist whitelists[] = {/* video is compiled-in on MIPS. */ {"mipsel", "loongson", (const char *[]) {"all_video", 0}}, - {"mipsel", "qemu_mips", (const char *[]) {"all_video", 0}}, {"mipsel", "malta", (const char *[]) {"all_video", 0}}, {"mipsel", "arc", (const char *[]) {"all_video", 0}}, - {"mips", "qemu_mips", (const char *[]) {"all_video", 0}}, {"mips", "malta", (const char *[]) {"all_video", 0}}, {"mips", "arc", (const char *[]) {"all_video", 0}}, };
util/mkimage.c +0 -95
113 lines not on this page · raw message
Signature · 7 lines
2.49.0 _______________________________________________ Grub-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/grub-devel