grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* How to build GRUB for `arm_coreboot`?
@ 2017-05-09  7:28 Paul Menzel
  2017-05-10  9:02 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Menzel @ 2017-05-09  7:28 UTC (permalink / raw)
  To: grub-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to build GRUB for `arm_coreboot`?
  2017-05-09  7:28 How to build GRUB for `arm_coreboot`? Paul Menzel
@ 2017-05-10  9:02 ` Vladimir 'phcoder' Serbinenko
  0 siblings, 0 replies; 2+ messages in thread
From: Vladimir 'phcoder' Serbinenko @ 2017-05-10  9:02 UTC (permalink / raw)
  To: The development of GRUB 2

[-- Attachment #1: Type: text/plain, Size: 2890 bytes --]

On Tue, May 9, 2017, 09:29 Paul Menzel <paulepanter@users.sourceforge.net>
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.
> $ ./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
>
arm-coreboot-vexpress
You will also need to supply a dtb with --dtb=DTB

> ```
>
> Could you please tell me how to create the payload file?
>
>
> Thanks,
>
> Paul_______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>

[-- Attachment #2: Type: text/html, Size: 3897 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-10  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09  7:28 How to build GRUB for `arm_coreboot`? Paul Menzel
2017-05-10  9:02 ` Vladimir 'phcoder' Serbinenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).