1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-30 19:27:09 +01:00
Files
u-boot-megous/cmd
Alexander Dahl 672c57057f cmd: mtdparts: Fix build with option ..._SHOW_NET_SIZES
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 eed921d923 ("Kconfig: Add a
whitelist of ad-hoc CONFIG options") and commit 371244cb19 ("Makefile:
Give a build error if ad-hoc CONFIG options are added").

It was also not considered when fixing build warnings in
commit 39ac34473f ("cmd_mtdparts: use 64 bits for flash size,
partition size & offset") and could probably not be compiled anyway
after commit dfe64e2c89 ("mtd: resync with Linux-3.7.1"), which
renamed some members of struct mtd_info … so it was probably broken
since then, which was U-Boot v2013.07-rc1.

However it still seems to work, see example output below:

U-Boot 2019.10-00035-g06a9b259ca-dirty (Oct 30 2019 - 14:03:44 +0100)

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@f8020000
Out:   serial@f8020000
Err:   serial@f8020000
Net:   eth0: ethernet@f8008000
Hit keys 'tt' to stop autoboot (3 seconds).
U-Boot> mtdparts

device nand0 <atmel_nand>, # parts = 8
 #: name                size            net size        offset          mask_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

active partition: nand0,0 - (bootstrap) 0x00040000 @ 0x00000000

defaults:
mtdids  : nand0=atmel_nand
mtdparts: mtdparts=atmel_nand:256k(bootstrap)ro,768k(uboot)ro,256k(env1),256k(env2),256k(fpga_led)ro,256k(reserved)ro,50M(rootfs_rec)ro,-(filesystem)

Signed-off-by: Alexander Dahl <ada@thorsis.com>
2019-11-07 18:01:13 -05:00
..
2019-04-22 12:06:39 -04:00
2019-08-11 16:43:41 -04:00
2019-04-22 12:06:39 -04:00
2017-02-08 15:56:28 -05:00
2019-07-24 13:16:29 -04:00
2019-10-31 07:22:53 -04:00
2018-08-11 09:16:08 +02:00
2019-08-11 16:43:41 -04:00
2017-07-03 17:35:28 -04:00
2019-08-11 16:43:41 -04:00
2018-05-23 17:30:05 -04:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-22 00:10:09 +02:00
2018-12-04 19:44:57 +01:00
2018-09-25 21:49:18 -04:00
2019-08-11 16:43:41 -04:00
2019-02-19 08:55:43 -05:00
2019-08-11 16:43:41 -04:00
2018-09-23 21:55:30 +02:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-26 11:46:27 -04:00
2019-08-11 16:43:41 -04:00
2019-10-06 15:20:53 -04:00
2019-08-11 19:27:41 -04:00
2019-08-11 16:43:41 -04:00
2019-06-21 10:07:11 -04:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-10-23 20:47:12 -04:00
2019-08-11 16:43:41 -04:00
2019-05-04 19:26:49 +02:00
2019-11-07 18:01:13 -05:00
2019-08-11 16:43:41 -04:00
2016-10-06 20:57:42 -04:00
2018-09-28 18:27:33 +02:00
2019-09-04 11:37:19 -05:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2018-05-08 09:07:35 -04:00
2019-08-11 16:43:41 -04:00
2019-03-25 17:36:53 -04:00
2019-08-11 16:43:41 -04:00
2019-10-11 15:33:27 -04:00
2019-08-11 16:43:41 -04:00
2019-01-15 15:28:44 -05:00
2019-08-11 16:43:41 -04:00
2019-10-23 20:47:12 -04:00
2019-08-11 16:43:41 -04:00
2018-09-28 20:22:36 -04:00
2019-04-12 07:04:18 +02:00
2018-07-02 14:14:20 -05:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00
2019-08-11 16:43:41 -04:00