2015-02-12 |
defaultenv-2: mtdparts-add: remove unused variable
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: fixup device tree partitions
...
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: Add a partitions parameter to mtd devices
...
The partitions parameter allows to partition a mtd device
using a standard cmdline partition description string. This
way the partitions of a mtd device can be changed at once.
The output of the string can be used to be passed to the kernel
as cmdline partition string. The partitions can also still be
changed with addpart/delpart, the partitions parameter will
be updated accordingly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: Use flags parameter in mtd_add_partition
...
mtd_add_partition is passed a flag parameter. This has been unused
so the DEVFS_PARTITION_FIXED and DEVFS_PARTITION_READONLY were ignored.
Fix this.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: forbid conflicting mtd partitions
...
mtd partitions should not conflict with each other, so forbid this.
Also add the partitions to the partitions list sorted, so that they
can be easier translated into a cmdline partition string.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
cmndlinepart: skip devname if partstr already contains it
...
When the partition name already starts with "devname." skip this
when adding the partition.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
cmdlinepart: add function to parse a cmdline partition string
...
This adds a function to parse a full cmdline partition string. The
addpart command is switched to use this function.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
cmdlinepart: make argument types safer
...
The return size should be loff_t to support partitions bigger
than 4G. Also use const for the devname and endp.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
cmdlinepart: Change SIZE_REMAINING to loff_t
...
For compatibility with devices > 4G.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
move cmdline partition parsing code to separate file
...
So it's no longer local to the addpart/delpart code and can be used
from other code.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: nand: remove automatically created bb devices
...
the bb devices which are created in add_mtd_device() must be removed
in del_mtd_device(). Also remove deletion of the bb devices in the
mtdparts-add environment file.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: Add partitions to list
...
So that we can iterate over the existing partitions from the master
mtd device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: partitions: Add error check
...
add_mtd_device can fail. Add an error check and bail out properly.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: partitions: Use xstrdup
...
The return value of strdup is not checked. Use xstrdup instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
mtd: core: add error checks
...
register_device and devfs_create can fail. Add error checks for these.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
of: Add for_each_child_of_node_safe
...
Needed for iterating over child nodes and deleting the children.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 12 Feb 2015
|
2015-02-11 |
defaultenv: ignore barebox_zero_env
...
Since commit c4c2317fe8a2 (defaultenv: generate force-built-in
(zero) environment file), we have this generated file.
Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Masahiro Yamada
authored
on 10 Feb 2015
Sascha Hauer
committed
on 11 Feb 2015
|
2015-02-10 |
ARM: atmel: sama5d4 xplained: correc env path
...
Correct the environment path for sama5d4 xplained board.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Bo Shen
authored
on 10 Feb 2015
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: nand-bb: Also print raw position in debug messages
...
When debugging the nand-bb devices also the raw position on the
device is interesting, print it.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: nand-bb: Fix test for bad block when reading
...
in nand_bb_read() 'offset' contains the virtual position on the device,
but we have to test for a bad block on the raw physical position, so
use bb->offset instead of offset
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: nand-bb: fix erasing bb devices with bad blocks
...
mtd_erase does not skip bad blocks, we must skip them in nand_bb_erase
instead.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: nand-bb: Fix accesses beyond device
...
When a block is marked bad after the bb device has been created
the real size of the bb device is smaller than the calculated size
on creation. In this case we can't rely on the upper layers anymore
that they won't pass read/write sizes in that fit into the device.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: Fix allowing to erase bad blocks on partitions
...
Partitions are mtd devices themselves, but the 'erasebad'
parameter is only set to the master mtd device. To allow to
erase bad blocks on partitions test the master device instead
of the partition devices.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
mtd: nand: omap: Fix OMAP_ECC_BCH8_CODE_HW ecc mode
...
This is broken since:
| commit 00f119a
| Author: Sascha Hauer <s.hauer@pengutronix.de>
| Date: Fri Aug 1 14:09:48 2014 +0200
|
| mtd: omap gpmc: fix ecc bytes/size
|
| The ecc bytes / size are per subpage, not per page.
|
| Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
The ecc code in omap_correct_data() expects to correct a whole page
at once, so we must tell the nand layer that we have 4 * 13 bytes of
ecc bytes and 4 * 512 bytes of ecc size. Otherwise the NAND layer will
iterate over 512 byte steps over a page and call the .correct callback
each time.
This only works for 2k pagesize and needs revisit once other page sizes
shall be supported. It would be better to tell the nand layer the real
ecc bytes (13) and ecc size (512) instead and drop the iteration in
omap_correct_bch(). However, this needs better testing so it isn't done
here now.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
ARM: Phytec phyCORE OMAP4460: Split xload defconfigs
...
The configs grew too big to support both NAND and MMC at the
same time, so split them.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
blspec: put blspec bootargs into a .dyn bootargs variable
...
So that they get deleted later when something else is booted.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Sascha Hauer
committed
on 10 Feb 2015
|
2015-02-04 |
Merge branch 'for-next/socfpga'
Sascha Hauer
committed
on 4 Feb 2015
|
Merge branch 'for-next/raspberry-pi'
Sascha Hauer
committed
on 4 Feb 2015
|
Merge branch 'for-next/pxa'
Sascha Hauer
committed
on 4 Feb 2015
|
Merge branch 'for-next/net'
Sascha Hauer
committed
on 4 Feb 2015
|