summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorYonghui Yu <yonghui.yu@amlogic.com>2017-03-21 22:27:44 +0800
committerXiaobo Gu <xiaobo.gu@amlogic.com>2017-03-23 19:38:41 +0800
commitd63d8f2660b0f8a5cd187a13ebec1fc6d56d44f0 (patch)
tree2c86f601d618429fac16dd1e7030ba98e9e6dce5 /fs
parent537dccab6ee7845c35622387489cc5c75fa915d5 (diff)
downloadu-boot-odroid-c1-d63d8f2660b0f8a5cd187a13ebec1fc6d56d44f0.tar.gz
PD#139454: nand: mtd&ubi support
1. enable mtd by default on p401. 2. store erase boot/data supported. 3. dtb is stored in reserved blk. 4. env is stored in reserved blk. 5. store init with erase support. 6. device_boot_flag set as MTD. 7. set mtdparts by default. 8. ubi part $partName. 9. protection on reserved blk area. 10. amlnf dtb&key erase support. 11. multi ubi device supported. 12. partition table in board config. 13. MX30LF4G18AC/MX30LF2G18AC support. 14. direct operation in amlnf cmd. Change-Id: I5c2528ffdd118f0c77b0bd596a2e167b95cda71c
Diffstat (limited to 'fs')
-rw-r--r--fs/ubifs/ubifs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 49e6f469ca..fd78498a5f 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -820,7 +820,7 @@ int ubifs_load(char *filename, u32 addr, u32 size)
printf("Loading file '%s' to addr 0x%08x with size %d (0x%08x)...\n",
filename, addr, size, size);
- page.addr = (void *)addr;
+ page.addr = (void *)(unsigned long)addr;
page.index = 0;
page.inode = inode;
for (i = 0; i < count; i++) {