From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1d7za5-0004GE-RO for mharc-grub-devel@gnu.org; Tue, 09 May 2017 03:29:13 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35592) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d7za3-0004Fy-MK for grub-devel@gnu.org; Tue, 09 May 2017 03:29:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d7za2-0000uC-Co for grub-devel@gnu.org; Tue, 09 May 2017 03:29:11 -0400 Received: from mail.gw90.de ([2a01:4f8:100:7463::3]:35120) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d7za2-0000sY-60 for grub-devel@gnu.org; Tue, 09 May 2017 03:29:10 -0400 Received: from [2a02:8109:8ac0:1c7f:5e33:e478:c88b:8ec4] (helo=mattotaupa) by mail.gw90.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1d7zZr-0004sj-F2 for grub-devel@gnu.org; Tue, 09 May 2017 07:28:59 +0000 Message-ID: <1494314932.2064.27.camel@users.sourceforge.net> Subject: How to build GRUB for `arm_coreboot`? From: Paul Menzel To: grub-devel@gnu.org Date: Tue, 09 May 2017 09:28:52 +0200 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-f+mgIQ0sN2YIzVNTbq94" X-Mailer: Evolution 3.22.6-1 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a01:4f8:100:7463::3 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 May 2017 07:29:12 -0000 --=-f+mgIQ0sN2YIzVNTbq94 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear GRUB folks, After the GRUB 2.02 release, =CF=86-coder=E2=80=99s work to get GRUB workin= g on ARM is now in the master branch. I like to try GRUB with the coreboot =E2=80=9Cboard=E2=80=9D *emulation/qem= u-armv7 (QEMU ARMv7)*, and did the following under Debian Sid/unstable ``` $ git log --oneline -1 d11ced1e1 arm_coreboot: Support EHCI. $ ./autogen.sh [=E2=80=A6] $ ./configure --target=3Darm --with-platform=3Dcoreboot TARGET_CC=3Darm-lin= ux-gnueabi-gcc-6 TARGET_OBJCOPY=3D"arm-linux-gnueabi-objcopy" TARGET_STRIP= =3D"arm-linux-gnueabi-strip" TARGET_NM=3D"arm-linux-gnueabi-nm" TARGET_RANL= IB=3D"arm-linux-gnueabi-ranlib" [=E2=80=A6] $ make -j [=E2=80=A6] if /usr/bin/makeinfo -I . \ -o grub.info grub.texi; \ then \ rc=3D0; \ CDPATH=3D"${ZSH_VERSION+.}:" && cd .; \ else \ rc=3D$?; \ CDPATH=3D"${ZSH_VERSION+.}:" && cd . && \ $restore $backupdir/* `echo "./grub.info" | sed 's|[^/]*$||'`; \ fi; \ rm -rf $backupdir; exit $rc make[2]: Verzeichnis =E2=80=9E/dev/shm/grub/docs=E2=80=9C wird verlassen Making all in util/bash-completion.d make[2]: Verzeichnis =E2=80=9E/dev/shm/grub/util/bash-completion.d=E2=80=9C= wird betreten ../../config.status --file=3Dgrub:grub-completion.bash.in config.status: creating grub make[2]: Verzeichnis =E2=80=9E/dev/shm/grub/util/bash-completion.d=E2=80=9C= wird verlassen make[1]: Verzeichnis =E2=80=9E/dev/shm/grub=E2=80=9C wird verlassen $ LANG=3DC 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=3D. ./grub-mkstandalone --grub-mkimage=3D./grub-mkimage = -O i386-coreboot -o $@ --modules=3D'ahci pata ehci uhci ohci usb_keyboard u= sbms part_msdos ext2 fat at_keyboard part_gpt usbserial_usbdebug cbfs' --in= stall-modules=3D'ls linux search configfile normal cbtime cbls memrw iorw m= inicmd lsmmap lspci halt reboot hexdump pcidump regexp setpci lsacpi chain = test serial multiboot cbmemc linux16 gzio echo help syslinuxcfg xnu all_vid= eo $(shell cat grub-core/fs.lst) password_pbkdf2 $(EXTRA_PAYLOAD_MODULES)' = --fonts=3D --themes=3D --locales=3D -d grub-core/ /boot/grub/grub.cfg=3D$(s= rcdir)/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 --=-f+mgIQ0sN2YIzVNTbq94 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQQ8+w9d414FAVARIpk9fVorbA4dWAUCWRFvtAAKCRA9fVorbA4d WH8QAJ0VFa2GDYSThO+saPLpSmhB0BfQLwCeI/apqMZ3ILjBjKZCc0FUlH29/i0= =A50P -----END PGP SIGNATURE----- --=-f+mgIQ0sN2YIzVNTbq94--