From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC, PATCH v3 0/3] mtd, ubi, ubifs: resync with Linux-3.14
Date: Wed, 11 Jun 2014 09:20:10 +0200 [thread overview]
Message-ID: <1402471213-597-1-git-send-email-hs@denx.de> (raw)
resync mtd, ubi and ubifs subsystem with linux:
commit 455c6fdbd219161bd09b1165f11699d6d73de11c
Author: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun Mar 30 20:40:15 2014 -0700
Linux 3.14
Main reason for this sync is, we now have UBI fastmap support
in U-Boot.
Tested it on am33xx, imx6 and mpc83xx boards. MAKEALL for arm and powerpc
compiles clean.
Tested UBI fastmap on a board with 512 MiB nand flash. Attach time
from old U-Boot was 2 seconds, reduced with UBI fastmap to 0.2 seconds.
Please test this patchserie!
The patches
lib, rbtree: resync with Linux-3.14
lib, list_sort: add list_sort from linux 3.14
mtd, ubi, ubifs: resync with Linux-3.14
are not checkpatch clean, as they use code from Linux and
I do not want to change this.
Remarks:
- UBI Fastmap is now availiable in U-Boot
activate it with CONFIG_MTD_UBI_FASTMAP
- replace UBI_LINUX in current UBI code from U-Boot with
__UBOOT__ as this define is used in other places in U-Boot
where code from other projects is used.
- move a lot of defines from include/ubi_uboot.h to
include/linux/compat.h, as this is the correcter place for it.
- add usb device to linux device, so usb uses "struct device"
from "linux/compat.h"
- onenand changes only compile tested.
- Following Code in drivers/mtd/nand/nand_base.c nand_do_write_ops()
adapted for U-Boot:
+#ifndef __UBOOT__
/* Reject writes, which are not page aligned */
if (NOTALIGNED(to) || NOTALIGNED(ops->len)) {
+else
+ /* Reject writes, which are not page aligned */
+ if (NOTALIGNED(to)) {
+endif
as the original linux code leads in not working use of the env
var "filesize". For example a "nand write 80000000 80000 ${filesize}"
would not work with it ...
- add CONFIG_MTD_NAND_VERIFY_WRITE from U-Boot code
(only compile tested)
- Documented the config defines in README
- kmalloc now uses memalign for allocating memory. This prevented
crashes when tested ubi/ubifs on imx6 board.
- To produce this patch I did three steps:
- copied the linux source files to U-Boot tree -> commit this
- adapt license text in each file -> commit this
- make the code again compile clean and working -> commit this
Then squashed this three patches to this patch, to not break
bisectability. To make further sync with linux easier, the
above three patches can be found in:
http://git.denx.de/?p=u-boot/u-boot-testing.git;a=shortlog;h=refs/heads/update-mtd%2Bubi-linux-v3.14
This branch is only thought for further linux syncs! Please
do not use this branch for testing this patchseries!
- Hope I get all U-Boot specific changes ... so please, test,
test, test ...
- changes for v2:
- add lib/linux_compat.c as Joerg Krause detected
- changes for v3:
- patch:
Patchwork [U-Boot,RFC,v2,1/4] dm: rename device struct to udevice
http://patchwork.ozlabs.org/patch/351422/
not longer needed, as it found its way into mainline
- add in the commit message the description, how this sync patch
with linux was done, as Marek and Tom suggested.
- rebase with current U-Boot commit
61e76f53708cf082ef9061a140b57df3513b8ba1
Cc: Marek Vasut <marex@denx.de>
Cc: Sergey Lapin <slapin@ossfans.org>
Cc: Scott Wood <scottwood@freescale.com>
Cc: Wolfgang Denk <wd@denx.de>
Cc: Joerg Krause <jkrause@posteo.de>
Heiko Schocher (3):
lib, rbtree: resync with Linux-3.14
lib, list_sort: add list_sort from linux 3.14
mtd, ubi, ubifs: resync with Linux-3.14
README | 61 +
board/prodrive/alpr/nand.c | 4 +
board/socrates/nand.c | 6 +
board/tqc/tqm8272/nand.c | 4 +
common/cmd_ubi.c | 29 +-
common/cmd_ubifs.c | 2 +-
drivers/mtd/mtdconcat.c | 230 ++-
drivers/mtd/mtdcore.c | 1112 ++++++++++++-
drivers/mtd/mtdcore.h | 23 +
drivers/mtd/mtdpart.c | 521 +++++-
drivers/mtd/nand/fsl_elbc_nand.c | 4 +
drivers/mtd/nand/fsl_ifc_nand.c | 4 +
drivers/mtd/nand/fsl_upm.c | 4 +
drivers/mtd/nand/mpc5121_nfc.c | 4 +
drivers/mtd/nand/mxc_nand.c | 8 +
drivers/mtd/nand/nand_base.c | 1897 +++++++++++++++------
drivers/mtd/nand/nand_bbt.c | 296 ++--
drivers/mtd/nand/nand_ids.c | 256 +--
drivers/mtd/nand/nand_util.c | 3 +
drivers/mtd/nand/ndfc.c | 4 +
drivers/mtd/onenand/onenand_base.c | 1 +
drivers/mtd/onenand/onenand_bbt.c | 1 -
drivers/mtd/onenand/samsung.c | 10 +-
drivers/mtd/ubi/Makefile | 3 +-
drivers/mtd/ubi/attach.c | 1754 ++++++++++++++++++++
drivers/mtd/ubi/build.c | 812 ++++++---
drivers/mtd/ubi/crc32.c | 13 +-
drivers/mtd/ubi/crc32table.h | 2 +-
drivers/mtd/ubi/debug.c | 482 ++++--
drivers/mtd/ubi/debug.h | 178 +-
drivers/mtd/ubi/eba.c | 474 ++++--
drivers/mtd/ubi/fastmap.c | 1584 ++++++++++++++++++
drivers/mtd/ubi/io.c | 788 +++++----
drivers/mtd/ubi/kapi.c | 276 ++-
drivers/mtd/ubi/misc.c | 58 +-
drivers/mtd/ubi/scan.c | 1348 ---------------
drivers/mtd/ubi/scan.h | 153 --
drivers/mtd/ubi/ubi-media.h | 205 ++-
drivers/mtd/ubi/ubi.h | 626 +++++--
drivers/mtd/ubi/upd.c | 104 +-
drivers/mtd/ubi/vmt.c | 283 ++--
drivers/mtd/ubi/vtbl.c | 359 ++--
drivers/mtd/ubi/wl.c | 1590 +++++++++++-------
drivers/usb/gadget/ether.c | 5 -
drivers/usb/gadget/storage_common.c | 5 -
drivers/usb/musb-new/linux-compat.h | 58 -
drivers/video/exynos_dp.c | 1 +
drivers/video/exynos_mipi_dsi.c | 1 +
fs/ubifs/budget.c | 662 +++++++-
fs/ubifs/debug.c | 3132 ++++++++++++++++++++++++++++++++++-
fs/ubifs/debug.h | 578 ++++---
fs/ubifs/io.c | 897 +++++++++-
fs/ubifs/key.h | 68 +-
fs/ubifs/log.c | 663 +++++++-
fs/ubifs/lprops.c | 538 +++++-
fs/ubifs/lpt.c | 1242 +++++++++++++-
fs/ubifs/lpt_commit.c | 1903 ++++++++++++++++++++-
fs/ubifs/master.c | 102 +-
fs/ubifs/misc.h | 159 +-
fs/ubifs/orphan.c | 671 +++++++-
fs/ubifs/recovery.c | 738 ++++++---
fs/ubifs/replay.c | 573 ++++---
fs/ubifs/sb.c | 547 +++++-
fs/ubifs/scan.c | 102 +-
fs/ubifs/super.c | 2173 ++++++++++++++++++++----
fs/ubifs/tnc.c | 742 ++++++++-
fs/ubifs/tnc_misc.c | 124 +-
fs/ubifs/ubifs-media.h | 62 +-
fs/ubifs/ubifs.c | 115 +-
fs/ubifs/ubifs.h | 708 +++++---
fs/yaffs2/ydirectenv.h | 2 -
include/linux/compat.h | 327 +++-
include/linux/err.h | 15 +-
include/linux/list_sort.h | 11 +
include/linux/mtd/bbm.h | 73 +-
include/linux/mtd/concat.h | 4 +
include/linux/mtd/flashchip.h | 105 ++
include/linux/mtd/mtd.h | 272 ++-
include/linux/mtd/nand.h | 351 +++-
include/linux/mtd/partitions.h | 60 +-
include/linux/mtd/ubi.h | 120 +-
include/linux/rbtree.h | 147 +-
include/linux/rbtree_augmented.h | 220 +++
include/linux/usb/gadget.h | 6 +-
include/mtd/mtd-abi.h | 195 ++-
include/mtd/ubi-user.h | 305 +++-
include/ubi_uboot.h | 164 +-
include/usb/lin_gadget_compat.h | 16 -
lib/Makefile | 2 +
lib/linux_compat.c | 42 +
lib/list_sort.c | 298 ++++
lib/rbtree.c | 684 +++++---
92 files changed, 28068 insertions(+), 7496 deletions(-)
create mode 100644 drivers/mtd/mtdcore.h
create mode 100644 drivers/mtd/ubi/attach.c
create mode 100644 drivers/mtd/ubi/fastmap.c
delete mode 100644 drivers/mtd/ubi/scan.c
delete mode 100644 drivers/mtd/ubi/scan.h
create mode 100644 include/linux/list_sort.h
create mode 100644 include/linux/mtd/flashchip.h
create mode 100644 include/linux/rbtree_augmented.h
create mode 100644 lib/linux_compat.c
create mode 100644 lib/list_sort.c
--
1.8.3.1
next reply other threads:[~2014-06-11 7:20 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-11 7:20 Heiko Schocher [this message]
2014-06-11 7:20 ` [U-Boot] [PATCH v3 1/3] lib, rbtree: resync with Linux-3.14 Heiko Schocher
2014-06-11 7:20 ` [U-Boot] [PATCH v3 2/3] lib, list_sort: add list_sort from linux 3.14 Heiko Schocher
2014-06-11 7:20 ` [U-Boot] [PATCH v3 3/3] mtd, ubi, ubifs: resync with Linux-3.14 Heiko Schocher
2014-06-12 10:52 ` [U-Boot] [RFC, PATCH v3 0/3] " Heiko Schocher
2014-06-12 15:34 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1402471213-597-1-git-send-email-hs@denx.de \
--to=hs@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.