From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UPBOC-0005lP-TQ for mharc-grub-devel@gnu.org; Mon, 08 Apr 2013 08:41:36 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPBO5-0005lG-FG for grub-devel@gnu.org; Mon, 08 Apr 2013 08:41:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPBO2-00089c-P4 for grub-devel@gnu.org; Mon, 08 Apr 2013 08:41:29 -0400 Received: from mail-ee0-f50.google.com ([74.125.83.50]:53411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPBO2-00089V-Il for grub-devel@gnu.org; Mon, 08 Apr 2013 08:41:26 -0400 Received: by mail-ee0-f50.google.com with SMTP id e53so2361567eek.23 for ; Mon, 08 Apr 2013 05:41:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type; bh=EXL0BFnimZeCmK5NI0PGKCaQWNqwC541Zb5OkaSrEac=; b=f/F4jBY8NqMWBTITitkatbzsjwkP3OQA5d36ma3mHGkr/+xtzMfvICxQofNgLfB8JJ M78n+SUrZg9/Ga9jU7iBqHzptiO0feo/clFJxfVwzk0CLiYXINZpVZkJGzg3rX//zTTF zDMLjFCpQKfSGqNpEJw2MO0zOV/srjfnSvzH/GBv5VzVKItb7nV+vXs+qs9FM/UKp+Rw HIiz1vvWPrhRDUIgX+EVizFqFL0utxseF++KEnPw0I6l5odGDzQedRqQZQat2/QS+dWH FbZhWJzMIONnNM7zAmJwYJHFac2TWzCMieW/5Pb5X+EnvxSD1d7oBpsr2c3VGt+9Ry3W bLKg== X-Received: by 10.15.48.4 with SMTP id g4mr18716142eew.28.1365424885892; Mon, 08 Apr 2013 05:41:25 -0700 (PDT) Received: from debian.x201.phnet (13-234.197-178.cust.bluewin.ch. [178.197.234.13]) by mx.google.com with ESMTPS id bc1sm31821692eeb.11.2013.04.08.05.41.24 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 05:41:25 -0700 (PDT) Message-ID: <5162A0AE.5040909@gmail.com> Date: Mon, 08 Apr 2013 12:49:18 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Leif Lindholm Subject: Re: [PATCH 3/7] Initial support for U-Boot platforms References: <5158EC3B.8050504@gmail.com> <20130403161722.GJ23069@rocoto.smurfnet.nu> In-Reply-To: <20130403161722.GJ23069@rocoto.smurfnet.nu> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigBEB8574AC6B3B6862C6EF7A3" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.83.50 Cc: The development of GNU GRUB X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Apr 2013 12:41:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBEB8574AC6B3B6862C6EF7A3 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 03.04.2013 18:17, Leif Lindholm wrote: >>> + disk->total_sectors =3D GRUB_DISK_SIZE_UNKNOWN; >> >=20 >> > Is there any way to get size from uboot? > Not that I've found. As in, not that can be relied on. > =20 di_stor.block_count works perfectly on my raspberry pi. Any reason not to use it? =3D=3D=3D modified file 'grub-core/disk/uboot/ubootdisk.c' --- grub-core/disk/uboot/ubootdisk.c 2013-04-07 00:41:07 +0000 +++ grub-core/disk/uboot/ubootdisk.c 2013-04-08 08:34:08 +0000 @@ -246,7 +246,7 @@ grub_dprintf ("ubootdisk", "(%s) blocksize=3D%d, log_sector_size=3D%d\= n", disk->name, d->block_size, disk->log_sector_size); =20 - disk->total_sectors =3D GRUB_DISK_SIZE_UNKNOWN; + disk->total_sectors =3D devinfo->di_stor.block_count; disk->data =3D d; =20 return GRUB_ERR_NONE; --------------enigBEB8574AC6B3B6862C6EF7A3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAlFioK4ACgkQNak7dOguQglIDgD/RYV5AXQfuFKvYc8bgAhSkfMC pwWi/qga6x17qv+AiwwA/0pinX+3hAxblw4uAK8ESIy8belM9M8sy7wep0Om7CoA =YQ7V -----END PGP SIGNATURE----- --------------enigBEB8574AC6B3B6862C6EF7A3--