Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F78AC05027 for ; Sun, 29 Jan 2023 11:20:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 332D085348; Sun, 29 Jan 2023 12:20:47 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="KtAyjJNY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E32B385348; Sun, 29 Jan 2023 12:20:44 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9132B85335 for ; Sun, 29 Jan 2023 12:20:41 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BC0CB60CBA; Sun, 29 Jan 2023 11:20:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0218CC433EF; Sun, 29 Jan 2023 11:20:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674991239; bh=jR4Zo+IK4PrPE3JtxkNkI0rWkWdxqXOKQ04SW3kc19E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KtAyjJNYJ889d2LNviOuGSepj4Dbi6foQ1XxrJtMN9TU8uAOKo5Ry4SDhH9PZGT3J R8llu0l4Z7ThfGsuDq2ZCBKOZ7AXxEKArus0cZojWqwXX7bPuRSk3J1/W7TH9kz8N5 K/68x6CFjea4Gn7eeEO2erwI5YlHPGGmmOpuXMAYojOq1XV3HkazbrSOukWq6PJfTZ TUOeuR2h7El9lYkaUVBaW1sxmu3mBeTXoDGqsTM0WNTCOISWzmK6GzHoFT/em7FEFK A5KGM/dJqRI+xFCtrXm7PzLJ8+uvQVjYDb5UoKjh0qWrP+YEjLTkW64RaQ9VkhGmpE OT6RGfnzzAcvw== Received: by pali.im (Postfix) id A48C1976; Sun, 29 Jan 2023 12:20:35 +0100 (CET) Date: Sun, 29 Jan 2023 12:20:35 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tony Dinh Cc: U-Boot Mailing List , Stefan Roese , Tom Rini , Marek =?utf-8?B?QmVo77+9bg==?= , Chris Packham , Fabio Estevam , Frieder Schrempf , Marcel Ziswiler , Michal Simek , Philippe Reynes , Samuel Holland , William Zhang , "Ying-Chun Liu (PaulLiu)" Subject: Re: [PATCH] arm: mvebu: Add support for Thecus N2350 (Armada 385) board Message-ID: <20230129112035.vn5nnc3wli3uzz72@pali> References: <20230128044711.31484-1-mibodhi@gmail.com> <20230128130006.lc6kmljtcuuwm6ka@pali> <20230129013636.vjpq3ilpa3cq5rn4@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean On Saturday 28 January 2023 18:07:29 Tony Dinh wrote: > > > > > +#define BOOT_TARGET_DEVICES(func) \ > > > > > + func(SCSI, scsi, 0) \ > > > > > + func(USB, usb, 0) \ > > > > > + func(PXE, pxe, na) \ > > > > > + func(DHCP, dhcp, na) > > > > > > > > I see that you have also NAND with UBIFS in DTS file. What is stored on > > > > NAND? Does not it have bootable system and should be in default boot > > > > target list? > > > > > > The UBIFS in stock FW was the rootfs. But it is not bootable any more > > > with the new u-boot. > > > > Hm... Why it is not bootable by new u-boot? Is there some unknown issue > > that it suddenly stopped working? Because u-boot as a bootloader is > > there for booting system and it is its primary functionality. And if new > > version cannot boot something which old version was able then it is a > > bug on which u-boot should focus. If you have more details about this > > issue, I can look at it. > > IMO, I don't think we need to waste time with stock FW on these NAS > boards. They are no longer supported by the manufacturers for a while, > and therefore have some inherent security problems (most if not all > Kirkwood boards suffer the same fate). Usually people just modernize > these boxes with a new u-boot and boot them with a modern Linux > distro. It's a great thing that modern boards like Turris Omnia are > supported by the manufacturer and other FOSS contributors. With > Thecus, Netgear, Seagate... even a lot of Synology boxes, people just > run really old kernel and rootfs and never see an update. Well, my point here is that this is ubifs stuff and I have one arm device on which u-boot ubifs code is unable to parse and read data from it. I thought that ubifs is completely broken in u-boot but then I enabled ubifs on another powerpc device and it worked perfectly. I tried to debug that issue on arm device without any success. Having broken code is u-boot is not something which should be present in project and I wanted to fix it...