Received: from list by lists.gnu.org with archive (Exim 4.71) id 1h8SLA-0008IR-KV for mharc-grub-devel@gnu.org; Mon, 25 Mar 2019 12:20:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8SL8-0008G2-Ac for grub-devel@gnu.org; Mon, 25 Mar 2019 12:20:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8SL7-0006bA-Bx for grub-devel@gnu.org; Mon, 25 Mar 2019 12:20:46 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:60042) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h8SL6-0006a8-Vu for grub-devel@gnu.org; Mon, 25 Mar 2019 12:20:45 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2PGJ2B7175886; Mon, 25 Mar 2019 16:20:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=content-type : mime-version : subject : from : in-reply-to : date : cc : content-transfer-encoding : message-id : references : to; s=corp-2018-07-02; bh=NuQPMK/jfG2oKsizx9Rz6GdNXyqI3EG7AWw1v4nfVkk=; b=kTN8x4k6aqa/GL8iiMFr/kFeW2nTaT5twCjhQCC611b/SVrlyf1KF/h94NhRPDcbkVPw h/zZTEbDW+iTP2XnhINmA4dhC8pCEzPQ2KcPtVN1pOEGsX11/E98m2mERxKhbkmqt6QW uHqO6PrENgyFSm6Qe0gLpwIeM+3qQUNJYtF1ub3AEBHzHjOUv0f+Ciw6s+7AWWsR8KfP 0Znl0QhVfT1guGxlVvSamiETm1PtaFyW9KzDBRtCYDNoN69Rxeyq4suWYrdILMiVLh/U 5Lhw7owguYtRF+p9VUmxlmmloq8rLdumDh/JbPLnheLX2mjLKgTPxVLlkooYiJ8CdyQZ Zg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2re6dj55qh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Mar 2019 16:20:41 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2PGKZl7013088 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Mar 2019 16:20:35 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x2PGKYoa002896; Mon, 25 Mar 2019 16:20:34 GMT Received: from dhcp-10-65-147-241.vpn.oracle.com (/10.65.147.241) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Mar 2019 09:20:34 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: [PATCH] ieee1275: Include a.out header in assembly of sparc64 boot loader From: Eric Snowberg In-Reply-To: <20190325114519.eh2rlizprw5hfbos@tomti.i.net-space.pl> Date: Mon, 25 Mar 2019 10:20:33 -0600 Cc: John Paul Adrian Glaubitz , Daniel Kiper Content-Transfer-Encoding: quoted-printable Message-Id: References: <20190322063553.10295-1-glaubitz@physik.fu-berlin.de> <20190325114519.eh2rlizprw5hfbos@tomti.i.net-space.pl> To: The development of GNU GRUB X-Mailer: Apple Mail (2.3273) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9206 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903250121 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.85 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: Mon, 25 Mar 2019 16:20:47 -0000 > On Mar 25, 2019, at 5:45 AM, Daniel Kiper wrote: >=20 > On Fri, Mar 22, 2019 at 07:35:55AM +0100, John Paul Adrian Glaubitz = wrote: >> Recent versions of binutils dropped support for the a.out and COFF >> formats on sparc64 targets. Since the boot loader on sparc64 is >> supposed to be an a.out binary and the a.out header entries are >> rather simple to calculate in our case, we just write the header >> ourselves instead of relying on external tools to do that. >>=20 >> Signed-off-by: John Paul Adrian Glaubitz = >=20 > LGTM, Reviewed-by: Daniel Kiper >=20 > Eric, are you OK with this patch? >=20 I tried it out, but on my system it doesn=E2=80=99t fit in the 512 byte = block? Am I missing something? Before the patch: $ grub-install --force --skip-fs-probe /dev/sdb1 Installing for sparc64-ieee1275 platform. grub-install: warning: Attempting to install GRUB to a partitionless = disk or to a partition. This is a BAD idea.. grub-install: warning: Embedding is not possible. GRUB can only be = installed in this setup by using blocklists. However, blocklists are = UNRELIABLE and their use is discouraged.. Installation finished. No error reported. $ ls -al /boot/grub/sparc64-ieee1275/boot.img -rw-r--r--. 1 root root 512 Mar 25 12:13 = /boot/grub/sparc64-ieee1275/boot.img After: $ grub-install --force --skip-fs-probe /dev/sdb1 Installing for sparc64-ieee1275 platform. grub-install: error: the size of `/boot/grub/sparc64-ieee1275/boot.img' = is not 512. $ ls -al /boot/grub/sparc64-ieee1275/boot.img -rw-r--r--. 1 root root 544 Mar 25 12:10 = /boot/grub/sparc64-ieee1275/boot.img