From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1VtKg1-0000SV-OL for mharc-grub-devel@gnu.org; Wed, 18 Dec 2013 12:12:53 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59088) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtKfu-0000HN-Oj for grub-devel@gnu.org; Wed, 18 Dec 2013 12:12:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VtKfp-0004vj-DE for grub-devel@gnu.org; Wed, 18 Dec 2013 12:12:46 -0500 Received: from mail-lb0-x230.google.com ([2a00:1450:4010:c04::230]:40986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VtKfp-0004vL-4D for grub-devel@gnu.org; Wed, 18 Dec 2013 12:12:41 -0500 Received: by mail-lb0-f176.google.com with SMTP id l4so2144462lbv.7 for ; Wed, 18 Dec 2013 09:12:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding; bh=Q0wY0KctzFqqtdrzF1LYptYjpWwj8yWwWU8nN9uS8+Q=; b=q9XJ5NvNx1rhttGCDARSK+UsrI+baJgX7IL0RD558fHU+DU5TBA3gSb7MVNJE9DFzZ ECWXfAUayBxie+d//67bld8WxAuOfduzTxXJqXGYHe+bRDw2CNFMR3NnnY44KPk7rQw0 ZeCS91pvQd6iF+LCO2bRAUk0pznOByOrb41+LhB4AWnw6Up/suiSLGGoTjOGxwnAfrNp Vzt3nrxDPbGLKJqSRMx3BiDE3t9IPMRMnckDw3mAQ+J87NUFKJ2vj//5umebqiZAtu3w zFsC7vX8wsFAr4Q48hPNFluh1GjKzNmz3tIjcSuGwVssz5QuAOrt6uVdM1rEtYAUPFMk 3ggw== X-Received: by 10.152.21.3 with SMTP id r3mr11843262lae.15.1387386758731; Wed, 18 Dec 2013 09:12:38 -0800 (PST) Received: from opensuse.site (ppp91-76-134-134.pppoe.mtu-net.ru. [91.76.134.134]) by mx.google.com with ESMTPSA id e6sm423313lbs.3.2013.12.18.09.12.37 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 18 Dec 2013 09:12:38 -0800 (PST) Date: Wed, 18 Dec 2013 21:12:37 +0400 From: Andrey Borzenkov To: grub-devel@gnu.org Subject: Re: [PATCH] add arm64 UEFI Linux loader Message-ID: <20131218211237.1c6d8578@opensuse.site> In-Reply-To: <20131218165439.GD22356@rocoto.smurfnet.nu> References: <20131216135551.GV22356@rocoto.smurfnet.nu> <20131216201301.24356028@opensuse.site> <20131216162403.GW22356@rocoto.smurfnet.nu> <52AF71FB.1080700@gmail.com> <20131218165439.GD22356@rocoto.smurfnet.nu> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.22; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::230 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: Wed, 18 Dec 2013 17:12:52 -0000 В Wed, 18 Dec 2013 17:54:39 +0100 Leif Lindholm пишет: > > > > + if (!loaded) > > > + { > > > + grub_error (GRUB_ERR_BAD_ARGUMENT, > > > + N_("you need to load the kernel first")); > > > + goto fail; > > > + } > > > + > > > + files = grub_zalloc (argc * sizeof (files[0])); > > > + if (!files) > > > + goto fail; > > > + > > > + for (i = 0; i < argc; i++) > > > + { > > > + grub_file_filter_disable_compression (); > > > + files[i] = grub_file_open (argv[i]); > > > + if (!files[i]) > > > + goto fail; > > > + nfiles++; > > > + size += ALIGN_UP (grub_file_size (files[i]), 4); > > > + } > > > + > > Why don't you use methods from loader/linux.c ? > [...] > ARM* do not even support multiple initrds. > Is this arch dependant? I mean, kernel gets buffer that holds initramfs and just tries to cpio extract it; if there are multiple concatenated archives it will simply process them all. I thought this was pretty much arch-independent.