From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.gmx.net ([212.227.15.15]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iwA31-0000d0-1y for barebox@lists.infradead.org; Mon, 27 Jan 2020 19:27:49 +0000 From: Christian Eggers Date: Mon, 27 Jan 2020 20:26:55 +0100 Message-ID: <5510527.4tIn2iqgWU@zbook-opensuse.wgnetz.xx> In-Reply-To: <20200127124938.ajhbdy2rev7ijz2c@pengutronix.de> References: <20200127100711.wo2fwdq4o3cax3jl@pengutronix.de> <20200127101831.27601-1-ceggers@arri.de> <20200127124938.ajhbdy2rev7ijz2c@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [RFC PATCH] bootm: Register as bootentry provider To: Sascha Hauer Cc: barebox@lists.infradead.org, Christian Eggers Hi Sascha, Am Montag, 27. Januar 2020, 13:49:38 CET schrieb Sascha Hauer: > On Mon, Jan 27, 2020 at 11:18:31AM +0100, Christian Eggers wrote: > > > Obviously anything involving shell scripts cannot work when no shell is > > > enabled. I suggest using bootloader spec (CONFIG_BLSPEC) to boot a > > > kernel. This works without shell support. > > > > I would like to avoid using bootloader spec. The patch below works fine > > for me. Do you think that this (or something similar) can be added to > > barebox? > > > > > you could leave bootchooser.system0.boot empty in which case bootchooser > tries to boot something called "system0". > > Like in your patch below call bootentry_register_provider() from your > boardcode and put behind "system0" whatever you want. works fine, thanks. > I don't like interpreting a device name as a kernel image very much, > given that there's no possibility to also specify the devicetree and > commandline. > > Another thing is that just enabling CONFIG_BLSPEC in a config shouldn't > prevent a board from booting. the "Only enabled if CONFIG_BLSPEC is > disabled" is not an option here. Agreed. > > Sascha regards Christian _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox