From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YhyPt-0003RL-IY for mharc-grub-devel@gnu.org; Tue, 14 Apr 2015 06:50:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhyPO-0003ND-58 for grub-devel@gnu.org; Tue, 14 Apr 2015 06:50:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YhyP6-0001HJ-Rp for grub-devel@gnu.org; Tue, 14 Apr 2015 06:49:34 -0400 Received: from mail-lb0-x22d.google.com ([2a00:1450:4010:c04::22d]:33670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YhyP6-0001Gk-FV for grub-devel@gnu.org; Tue, 14 Apr 2015 06:49:16 -0400 Received: by lbbzk7 with SMTP id zk7so4825096lbb.0 for ; Tue, 14 Apr 2015 03:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=7DVnznFciAIRU5vqhcqk66DB50sPG+pDo+nybkDU1NY=; b=JFJPqakWRER+q9ePzWissvAGb4Ip9qbHiDGvxaN47yzFe4VmA93TFsVioZfQOIPs1i rkXmMnMAliSKIa06E3p7vr0z0htWt5xx/DIo2vk3bzd7vw6Iux+90G1hQBmrqF1OV02J 0LKJ5UbW99eL1e15aXSfIrZN3owGBJ3hNQID2ZBHN/p+LS1t6wRDAeQlLqQCDCCJ2SSM rLuWcZS3DuXTxFSNpTrRnf706Tcqfqw7ZPN+LLFTO1XwgFKlPPN0hB3T+Z5n89rDOKSI XuS/WoH8gterCWJchkVMpd6+uywJ+meFjeUB7rp3Y3wmnM/XzQ8QxJE0QegSemIFSfzk ZdOA== X-Received: by 10.152.5.170 with SMTP id t10mr17480080lat.43.1429008555663; Tue, 14 Apr 2015 03:49:15 -0700 (PDT) Received: from opensuse.site (ppp91-76-14-38.pppoe.mtu-net.ru. [91.76.14.38]) by mx.google.com with ESMTPSA id uj9sm143045lbb.38.2015.04.14.03.49.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Apr 2015 03:49:14 -0700 (PDT) Date: Tue, 14 Apr 2015 13:49:13 +0300 From: Andrei Borzenkov To: derek yuan Subject: Re: how to add a new platform support with GRUB2 Message-ID: <20150414134913.17a1e206@opensuse.site> In-Reply-To: <14cb730d712.f8ac2b86186308.8072696517472569126@zoho.com> References: <14cb730d712.f8ac2b86186308.8072696517472569126@zoho.com> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.27; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::22d Cc: grub-devel@gnu.org 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: Tue, 14 Apr 2015 10:50:04 -0000 =D0=92 Tue, 14 Apr 2015 17:25:15 +0800 derek yuan =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > Hi, all: > I want to add Loongson3A+RS780E platform to grub, what i have to do? = where to begin? > More information about this platform: > CPU: loongson3A (mips64el) > NorthBridge: RS780E > SourthBridge: SB710 >=20 > Right now, grub supported loongson2F+cs5536 platform, loongson2F also= the mips64el arch. >=20 > Thank you so much! > Best regards! >=20 > Derek >=20 >=20 There are some comments indicating at least partial Loongson 3A support. The main question is whether you can determine platform at run time or not. If yes, just extend existing platform files. If not, it probably can be implemented by building platform specific module and selecting it at grub-mkimage/grub-install time. Looks at loongson directories first bor@opensuse:~/src/grub> find grub-core include -name loongson=20 grub-core/boot/mips/loongson grub-core/kern/mips/loongson grub-core/commands/mips/loongson grub-core/lib/mips/loongson include/grub/mips/loongson as well as grub-core/Makefile.core.def (for definitions how they all are put together) as well as util/mkimage.c (that actually generates grub image).