From: Paul Menzel <paulepanter@users.sourceforge.net>
To: grub-devel@gnu.org
Subject: How to build GRUB for `arm_coreboot`?
Date: Tue, 09 May 2017 09:28:52 +0200 [thread overview]
Message-ID: <1494314932.2064.27.camel@users.sourceforge.net> (raw)
[-- Attachment #1: Type: text/plain, Size: 2425 bytes --]
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.
$ ./autogen.sh
[…]
$ ./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.info grub.texi; \
then \
rc=0; \
CDPATH="${ZSH_VERSION+.}:" && cd .; \
else \
rc=$?; \
CDPATH="${ZSH_VERSION+.}:" && cd . && \
$restore $backupdir/* `echo "./grub.info" | 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 --file=grub:grub-completion.bash.in
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
```
Could you please tell me how to create the payload file?
Thanks,
Paul
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next reply other threads:[~2017-05-09 7:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-09 7:28 Paul Menzel [this message]
2017-05-10 9:02 ` How to build GRUB for `arm_coreboot`? Vladimir 'phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1494314932.2064.27.camel@users.sourceforge.net \
--to=paulepanter@users.sourceforge.net \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.