[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to build GRUB for `arm_coreboot`?

From: Vladimir 'phcoder' Serbinenko
Subject: Re: How to build GRUB for `arm_coreboot`?
Date: Wed, 10 May 2017 09:02:15 +0000

On Tue, May 9, 2017, 09:29 Paul Menzel <address@hidden> wrote:
Dear GRUB folks,

After the GRUB 2.02 release, φ-coder’s work to get GRUB working on ARM
is now in the master branch.

I like to try GRUB with the coreboot “board” *emulation/qemu-armv7
(QEMU ARMv7)*, and did the following under Debian Sid/unstable

$ git log --oneline -1
d11ced1e1 arm_coreboot: Support EHCI.
$ ./
$ ./configure --target=arm --with-platform=coreboot TARGET_CC=arm-linux-gnueabi-gcc-6 TARGET_OBJCOPY="arm-linux-gnueabi-objcopy" TARGET_STRIP="arm-linux-gnueabi-strip" TARGET_NM="arm-linux-gnueabi-nm" TARGET_RANLIB="arm-linux-gnueabi-ranlib"
$ make -j
if /usr/bin/makeinfo   -I . \
 -o grub.texi; \
then \
  rc=0; \
  CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
  rc=$?; \
  CDPATH="${ZSH_VERSION+.}:" && cd . && \
  $restore $backupdir/* `echo "./" | sed 's|[^/]*$||'`; \
fi; \
rm -rf $backupdir; exit $rc
make[2]: Verzeichnis „/dev/shm/grub/docs“ wird verlassen
Making all in util/bash-completion.d
make[2]: Verzeichnis „/dev/shm/grub/util/bash-completion.d“ wird betreten
config.status: creating grub
make[2]: Verzeichnis „/dev/shm/grub/util/bash-completion.d“ wird verlassen
make[1]: Verzeichnis „/dev/shm/grub“ wird verlassen
$ LANG=C make default_payload.elf
make: *** No rule to make target 'default_payload.elf'.  Stop.

I failed to adapt the command in the Makefile for arm_coreboot.

default_payload.elf: grub-mkstandalone grub-mkimage FORCE
        test -f $@ && rm $@ || true
        pkgdatadir=. ./grub-mkstandalone --grub-mkimage=./grub-mkimage -O i386-coreboot -o $@ --modules='ahci pata ehci uhci ohci usb_keyboard usbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --install-modules='ls linux search configfile normal cbtime cbls memrw iorw minicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu all_video $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' --fonts= --themes= --locales= -d grub-core/ /boot/grub/grub.cfg=$(srcdir)/coreboot.cfg

Passing `arm-coreboot` and `arm_coreboot` to the switch `-O` gives back
an error, for example:

unknown target format arm_coreboot
You will also need to supply a dtb with --dtb=DTB

Could you please tell me how to create the payload file?


Grub-devel mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]