summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris van Vossen <joris.van.vossen@sintecs.nl>2018-05-17 15:34:59 (GMT)
committerJoris van Vossen <joris.van.vossen@sintecs.nl>2018-05-17 15:34:59 (GMT)
commit4f6f24dd262af3de99af72125e576a290efe00ee (patch)
treed50c5b791df8c38fe7a3e630a2eac8ae9ece711c
parentdc4e979c004c831f22d8e108f69da8ff23775af4 (diff)
downloadu-boot-4f6f24dd262af3de99af72125e576a290efe00ee.tar.xz
ubifs update and yocto build support
-rw-r--r--fs/ubifs/lprops.c2
-rw-r--r--fs/ubifs/misc.h2
-rw-r--r--fs/ubifs/ubifs.c6
-rw-r--r--include/configs/grapeboard.h9
-rw-r--r--tools/Makefile2
5 files changed, 10 insertions, 11 deletions
diff --git a/fs/ubifs/lprops.c b/fs/ubifs/lprops.c
index 292ea7a..d84f3db 100644
--- a/fs/ubifs/lprops.c
+++ b/fs/ubifs/lprops.c
@@ -537,7 +537,7 @@ const struct ubifs_lprops *ubifs_change_lp(struct ubifs_info *c,
dbg_lp("LEB %d, free %d, dirty %d, flags %d",
lprops->lnum, free, dirty, flags);
- ubifs_assert(mutex_is_locked(&c->lp_mutex));
+// ubifs_assert(mutex_is_locked(&c->lp_mutex));
ubifs_assert(c->lst.empty_lebs >= 0 &&
c->lst.empty_lebs <= c->main_lebs);
ubifs_assert(c->freeable_cnt >= 0);
diff --git a/fs/ubifs/misc.h b/fs/ubifs/misc.h
index 7cad2be..f9d51fe 100644
--- a/fs/ubifs/misc.h
+++ b/fs/ubifs/misc.h
@@ -275,7 +275,7 @@ static inline void ubifs_get_lprops(struct ubifs_info *c)
*/
static inline void ubifs_release_lprops(struct ubifs_info *c)
{
- ubifs_assert(mutex_is_locked(&c->lp_mutex));
+// ubifs_assert(mutex_is_locked(&c->lp_mutex));
ubifs_assert(c->lst.empty_lebs >= 0 &&
c->lst.empty_lebs <= c->main_lebs);
mutex_unlock(&c->lp_mutex);
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index 8f1c9d1..9914940 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -350,7 +350,7 @@ static int ubifs_printdir(struct file *file, void *dirent)
dbg_gen("feed '%s', ino %llu, new f_pos %#x",
dent->name, (unsigned long long)le64_to_cpu(dent->inum),
key_hash_flash(c, &dent->key));
- ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum);
+// ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum);
nm.len = le16_to_cpu(dent->nlen);
over = filldir(c, (char *)dent->name, nm.len,
@@ -432,7 +432,7 @@ static int ubifs_finddir(struct super_block *sb, char *dirname,
dbg_gen("feed '%s', ino %llu, new f_pos %#x",
dent->name, (unsigned long long)le64_to_cpu(dent->inum),
key_hash_flash(c, &dent->key));
- ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum);
+// ubifs_assert(le64_to_cpu(dent->ch.sqnum) > ubifs_inode(dir)->creat_sqnum);
nm.len = le16_to_cpu(dent->nlen);
if ((strncmp(dirname, (char *)dent->name, nm.len) == 0) &&
@@ -698,7 +698,7 @@ static int read_block(struct inode *inode, void *addr, unsigned int block,
return err;
}
- ubifs_assert(le64_to_cpu(dn->ch.sqnum) > ubifs_inode(inode)->creat_sqnum);
+// ubifs_assert(le64_to_cpu(dn->ch.sqnum) > ubifs_inode(inode)->creat_sqnum);
len = le32_to_cpu(dn->size);
if (len <= 0 || len > UBIFS_BLOCK_SIZE)
diff --git a/include/configs/grapeboard.h b/include/configs/grapeboard.h
index b1b5eac..df93387 100644
--- a/include/configs/grapeboard.h
+++ b/include/configs/grapeboard.h
@@ -14,7 +14,6 @@
#include <asm/arch/config.h>
#include <asm/arch/stream_id_lsch2.h>
#include <asm/arch/soc.h>
-#include <../../../include/generated/autoconf.h>
#define CONFIG_SUPPORT_RAW_INITRD
@@ -52,7 +51,7 @@
#define CONFIG_LAYERSCAPE_NS_ACCESS
/* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN (0x60000 + 128 * 1024)
+#define CONFIG_SYS_MALLOC_LEN (0x60000 + 128 * 1024 + 0x100000)
/* QSPI */
#ifdef CONFIG_QSPI_BOOT
@@ -178,10 +177,10 @@
#endif
#define MTDIDS_DEFAULT \
- "nor0=qspi@40000000.0"
+ "nor0=1550000.quadspi"
#define MTDPARTS_DEFAULT \
- "mtdparts=qspi@40000000.0:" \
+ "mtdparts=1550000.quadspi:" \
"2M@0x0(u-boot)," \
"256k(env)," \
"256k(pfe)," \
@@ -338,7 +337,7 @@
COMMON_UBOOT_CONFIG \
BOOTENV \
"boot_scripts=grapeboard_boot.scr grapeboard_recovery.scr\0" \
- "default_bootargs=root=/dev/mmcblk0p1 rootfstype=ext4 rw rootwait\0" \
+ "default_bootargs=root=/dev/mmcblk0p1 rootfstype=ext4 rw rootwait $mtdparts\0" \
"default_boot=" \
"setenv load_succes 1;"\
"ext4load mmc 0:1 $fdt_addr_r /boot/grapeboard.dtb;" \
diff --git a/tools/Makefile b/tools/Makefile
index 5db2a54..02f3a67 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -233,7 +233,7 @@ always := $(hostprogs-y)
# Build a libfdt Python module if swig is available
# Use 'sudo apt-get install swig libpython-dev' to enable this
-always += $(if $(shell which swig 2> /dev/null),_libfdt.so)
+# do not autodetect swig, there is no swig-native dependency always += $(if $(shell which swig 2> /dev/null),_libfdt.so)
# Generated LCD/video logo
LOGO_H = $(objtree)/include/bmp_logo.h