From: Tom Rini Date: Fri, 8 Nov 2019 10:33:19 -0500 Subject: [U-Boot] [PATCH 2/2] cmd: mtdparts: Fix build with option ..._SHOW_NET_SIZES In-Reply-To: <20191030155355.11274-3-ada@thorsis.com> References: <20191030155355.11274-1-ada@thorsis.com> <20191030155355.11274-3-ada@thorsis.com> Message-ID: <20191108153319.GK19317@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: u-boot@lists.denx.de On Wed, Oct 30, 2019 at 04:53:55PM +0100, Alexander Dahl wrote: > That option is currently not used by any defconfig and could not be set > anymore since it became mandatory to used Kconfig when introducing new > options with U-Boot v2016.11 or commit eed921d92348 ("Kconfig: Add a > whitelist of ad-hoc CONFIG options") and commit 371244cb19f9 ("Makefile: > Give a build error if ad-hoc CONFIG options are added"). >=20 > It was also not considered when fixing build warnings in > commit 39ac34473f3c ("cmd_mtdparts: use 64 bits for flash size, > partition size & offset") and could probably not be compiled anyway > after commit dfe64e2c8973 ("mtd: resync with Linux-3.7.1"), which > renamed some members of struct mtd_info =E2=80=A6 so it was probably brok= en > since then, which was U-Boot v2013.07-rc1. >=20 > However it still seems to work, see example output below: >=20 > U-Boot 2019.10-00035-g06a9b259ca-dirty (Oct 30 2019 - 14:03:44 +0100) >=20 > CPU: SAMA5D27 1G bits DDR2 SDRAM > Crystal frequency: 24 MHz > CPU clock : 492 MHz > Master clock : 164 MHz > Model: *** > DRAM: 128 MiB > NAND: 256 MiB > Loading Environment from NAND... OK > In: serial at f8020000 > Out: serial at f8020000 > Err: serial at f8020000 > Net: eth0: ethernet at f8008000 > Hit keys 'tt' to stop autoboot (3 seconds). > U-Boot> mtdparts >=20 > device nand0 , # parts =3D 8 > #: name size net size offset m= ask_flags > 0: bootstrap 0x00040000 0x00040000 0x00000000 1 > 1: uboot 0x000c0000 0x000c0000 0x00040000 1 > 2: env1 0x00040000 0x00040000 0x00100000 0 > 3: env2 0x00040000 0x00040000 0x00140000 0 > 4: fpga_led 0x00040000 0x00040000 0x00180000 1 > 5: reserved 0x00040000 0x00040000 0x001c0000 1 > 6: rootfs_rec 0x03200000 0x03200000 0x00200000 1 > 7: filesystem 0x0cc00000 0x0cb80000 (!) 0x03400000 0 >=20 > active partition: nand0,0 - (bootstrap) 0x00040000 @ 0x00000000 >=20 > defaults: > mtdids : nand0=3Datmel_nand > mtdparts: mtdparts=3Datmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env1= ),256k(env2),256k(fpga_led)ro,256k(reserved)ro,50M(rootfs_rec)ro,-(filesyst= em) >=20 > Signed-off-by: Alexander Dahl Applied to u-boot/master, thanks! --=20 Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: