From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miquel Raynal Date: Wed, 3 Oct 2018 14:42:59 +0200 Subject: [U-Boot] [PATCH v13 5/7] cmd: mtd: add 'mtd' command In-Reply-To: References: <20181001134331.9756-1-miquel.raynal@bootlin.com> <20181001134331.9756-6-miquel.raynal@bootlin.com> Message-ID: <20181003144259.333c1b00@xps13> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de Hi Adam, Adam Ford wrote on Wed, 3 Oct 2018 07:35:15 -0500: > On Mon, Oct 1, 2018 at 8:48 AM Miquel Raynal = wrote: > > > > There should not be a 'nand' command, a 'sf' command and certainly not > > a new 'spi-nand' command. Write a 'mtd' command instead to manage all > > MTD devices/partitions at once. This should be the preferred way to > > access any MTD device. =20 >=20 > What is the expected behavior when I type 'mtd list' on my omap37 > board, it just hangs. What do you mean "hangs", does U-Boot crashes? Or is it really hanging with no more on the console? Can you Ctrl-C to cancel the command or is it really stuck? >=20 > I can use the nand read/write functions and mtdparts lists the > partitions, so I know nand works. My defconfig > lists the partitions, so if we're not supposed to use mtdparts, where > I do store the partition information? You are not supposed to use the mtdpart _command_, but the mtdparts _variable_ must be used in order to declare the partitions. >=20 > I intentionally removed it from the device tree a while ago, because > U-Boot was passing the partition info to Linux. Indeed, that's his primary role. Thanks, Miqu=C3=A8l