* [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs
@ 2015-05-27 12:19 Kevin Hao
2015-05-27 12:19 ` [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER Kevin Hao
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Kevin Hao @ 2015-05-27 12:19 UTC (permalink / raw)
To: poky, linux-yocto
Hi,
This patch series updates the kernel to 3.19 for the non-x86 BSPs. It includes
two kernel patches, one patch for meta and one patch for meta-yocto-bsp layer.
Boot test on beaglebone black, edgerouter and mpc8315 boards.
Thanks,
Kevin
--
2.1.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
@ 2015-05-27 12:19 ` Kevin Hao
2015-05-27 12:19 ` [PATCH] meta; edgerouter: fix kernel config check errors Kevin Hao
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Hao @ 2015-05-27 12:19 UTC (permalink / raw)
To: poky, linux-yocto
For struct mutex, the member "owner" only exist when either
DEBUG_MUTEXES or MUTEX_SPIN_ON_OWNER is enabled. The SMP is a necessary
condition, but not a sufficiency condition for MUTEX_SPIN_ON_OWNER.
So we would get build error on arch such as mpis due to SMP is
enabled and both DEBUG_MUTEXES and MUTEX_SPIN_ON_OWNER are disabled.
Replace the SMP with MUTEX_SPIN_ON_OWNER to fix it.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
fs/aufs/i_op.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/aufs/i_op.c b/fs/aufs/i_op.c
index f0edd021102b..268a8a54ebfc 100644
--- a/fs/aufs/i_op.c
+++ b/fs/aufs/i_op.c
@@ -441,7 +441,7 @@ out:
void au_pin_hdir_set_owner(struct au_pin *p, struct task_struct *task)
{
-#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_SMP)
+#if defined(CONFIG_DEBUG_MUTEXES) || defined(CONFIG_MUTEX_SPIN_ON_OWNER)
p->hdir->hi_inode->i_mutex.owner = task;
#endif
}
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] meta; edgerouter: fix kernel config check errors
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
2015-05-27 12:19 ` [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER Kevin Hao
@ 2015-05-27 12:19 ` Kevin Hao
2015-05-27 12:19 ` [PATCH 2/2] fs: yaffs2: kill f_dentry uses Kevin Hao
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Hao @ 2015-05-27 12:19 UTC (permalink / raw)
To: poky, linux-yocto
Fix the following kernel config check errors:
Value requested for CONFIG_HW_RANDOM_OCTEON not in final ".config"
Requested value: "CONFIG_HW_RANDOM_OCTEON=y"
Actual value set: "CONFIG_HW_RANDOM_OCTEON=m"
Value requested for CONFIG_USB_OCTEON_EHCI not in final ".config"
Requested value: "CONFIG_USB_OCTEON_EHCI=y"
Actual value set: ""
Value requested for CONFIG_USB_OCTEON_OHCI not in final ".config"
Requested value: "CONFIG_USB_OCTEON_OHCI=y"
Actual value set: ""
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
meta/cfg/kernel-cache/bsp/edgerouter/edgerouter.cfg | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/cfg/kernel-cache/bsp/edgerouter/edgerouter.cfg b/meta/cfg/kernel-cache/bsp/edgerouter/edgerouter.cfg
index 9e5a6b65faca..54597416dde8 100644
--- a/meta/cfg/kernel-cache/bsp/edgerouter/edgerouter.cfg
+++ b/meta/cfg/kernel-cache/bsp/edgerouter/edgerouter.cfg
@@ -20,6 +20,7 @@ CONFIG_PCI_MSI=y
CONFIG_I2C=y
CONFIG_I2C_OCTEON=y
+CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_OCTEON=y
#SPI
@@ -47,7 +48,9 @@ CONFIG_BCM87XX_PHY=y
#USB
CONFIG_USB=y
CONFIG_OCTEON_USB=y
+CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OCTEON_EHCI=y
+CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OCTEON_OHCI=y
CONFIG_USB_OCTEON2_COMMON=y
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] fs: yaffs2: kill f_dentry uses
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
2015-05-27 12:19 ` [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER Kevin Hao
2015-05-27 12:19 ` [PATCH] meta; edgerouter: fix kernel config check errors Kevin Hao
@ 2015-05-27 12:19 ` Kevin Hao
2015-05-27 12:19 ` [PATCH] meta-yocto-bsp: bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
2015-06-01 4:02 ` [PATCH 0] " Bruce Ashfield
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Hao @ 2015-05-27 12:19 UTC (permalink / raw)
To: poky, linux-yocto
The macro f_dentry was already killed by commit 78d28e651f97 ("kill
f_dentry macro"). So we should kill all the uses of this macro.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
fs/yaffs2/yaffs_vfs.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index 0038cc17fbff..5230496230cd 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -274,7 +274,7 @@ static int yaffs_readpage_nolock(struct file *f, struct page *pg)
(long long)pos,
(unsigned)PAGE_CACHE_SIZE);
- obj = yaffs_dentry_to_obj(f->f_dentry);
+ obj = yaffs_dentry_to_obj(f->f_path.dentry);
dev = obj->my_dev;
@@ -472,7 +472,7 @@ static ssize_t yaffs_hold_space(struct file *f)
int n_free_chunks;
- obj = yaffs_dentry_to_obj(f->f_dentry);
+ obj = yaffs_dentry_to_obj(f->f_path.dentry);
dev = obj->my_dev;
@@ -490,7 +490,7 @@ static void yaffs_release_space(struct file *f)
struct yaffs_obj *obj;
struct yaffs_dev *dev;
- obj = yaffs_dentry_to_obj(f->f_dentry);
+ obj = yaffs_dentry_to_obj(f->f_path.dentry);
dev = obj->my_dev;
@@ -582,7 +582,7 @@ static ssize_t yaffs_file_write(struct file *f, const char *buf, size_t n,
struct inode *inode;
struct yaffs_dev *dev;
- obj = yaffs_dentry_to_obj(f->f_dentry);
+ obj = yaffs_dentry_to_obj(f->f_path.dentry);
if (!obj) {
yaffs_trace(YAFFS_TRACE_OS,
@@ -594,7 +594,7 @@ static ssize_t yaffs_file_write(struct file *f, const char *buf, size_t n,
yaffs_gross_lock(dev);
- inode = f->f_dentry->d_inode;
+ inode = f->f_path.dentry->d_inode;
if (!S_ISBLK(inode->i_mode) && f->f_flags & O_APPEND)
ipos = inode->i_size;
@@ -745,7 +745,7 @@ static int yaffs_file_flush(struct file *file, fl_owner_t id)
static int yaffs_file_flush(struct file *file)
#endif
{
- struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_dentry);
+ struct yaffs_obj *obj = yaffs_dentry_to_obj(file->f_path.dentry);
struct yaffs_dev *dev = obj->my_dev;
@@ -1712,14 +1712,14 @@ static int yaffs_readdir(struct file *file, struct dir_context *ctx)
struct yaffs_obj *obj;
struct yaffs_dev *dev;
struct yaffs_search_context *sc;
- struct inode *inode = file->f_dentry->d_inode;
+ struct inode *inode = file->f_path.dentry->d_inode;
unsigned long offset, curoffs;
struct yaffs_obj *l;
int ret_val = 0;
char name[YAFFS_MAX_NAME_LENGTH + 1];
- obj = yaffs_dentry_to_obj(file->f_dentry);
+ obj = yaffs_dentry_to_obj(file->f_path.dentry);
dev = obj->my_dev;
yaffs_gross_lock(dev);
@@ -1753,7 +1753,7 @@ static int yaffs_readdir(struct file *file, struct dir_context *ctx)
if (offset == 1) {
yaffs_trace(YAFFS_TRACE_OS,
"yaffs_readdir: entry .. ino %d",
- (int)file->f_dentry->d_parent->d_inode->i_ino);
+ (int)file->f_path.dentry->d_parent->d_inode->i_ino);
yaffs_gross_unlock(dev);
if (!dir_emit_dotdot(file, ctx)) {
yaffs_gross_lock(dev);
@@ -1815,14 +1815,14 @@ static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir)
struct yaffs_obj *obj;
struct yaffs_dev *dev;
struct yaffs_search_context *sc;
- struct inode *inode = f->f_dentry->d_inode;
+ struct inode *inode = f->f_path.dentry->d_inode;
unsigned long offset, curoffs;
struct yaffs_obj *l;
int ret_val = 0;
char name[YAFFS_MAX_NAME_LENGTH + 1];
- obj = yaffs_dentry_to_obj(f->f_dentry);
+ obj = yaffs_dentry_to_obj(f->f_path.dentry);
dev = obj->my_dev;
yaffs_gross_lock(dev);
@@ -1856,10 +1856,10 @@ static int yaffs_readdir(struct file *f, void *dirent, filldir_t filldir)
if (offset == 1) {
yaffs_trace(YAFFS_TRACE_OS,
"yaffs_readdir: entry .. ino %d",
- (int)f->f_dentry->d_parent->d_inode->i_ino);
+ (int)f->f_path.dentry->d_parent->d_inode->i_ino);
yaffs_gross_unlock(dev);
if (filldir(dirent, "..", 2, offset,
- f->f_dentry->d_parent->d_inode->i_ino,
+ f->f_path.dentry->d_parent->d_inode->i_ino,
DT_DIR) < 0) {
yaffs_gross_lock(dev);
goto out;
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] meta-yocto-bsp: bump to linux-yocto 3.19 for the non-x86 BSPs
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
` (2 preceding siblings ...)
2015-05-27 12:19 ` [PATCH 2/2] fs: yaffs2: kill f_dentry uses Kevin Hao
@ 2015-05-27 12:19 ` Kevin Hao
2015-06-01 4:02 ` [PATCH 0] " Bruce Ashfield
4 siblings, 0 replies; 6+ messages in thread
From: Kevin Hao @ 2015-05-27 12:19 UTC (permalink / raw)
To: poky, linux-yocto
Boot test for all these boards.
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
---
meta-yocto-bsp/conf/machine/beaglebone.conf | 2 +-
meta-yocto-bsp/conf/machine/edgerouter.conf | 2 +-
meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf | 2 +-
meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.19.bbappend | 9 +++++++++
4 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/meta-yocto-bsp/conf/machine/beaglebone.conf b/meta-yocto-bsp/conf/machine/beaglebone.conf
index fb0189d5d70d..0daebf35ceb9 100644
--- a/meta-yocto-bsp/conf/machine/beaglebone.conf
+++ b/meta-yocto-bsp/conf/machine/beaglebone.conf
@@ -22,7 +22,7 @@ EXTRA_IMAGECMD_jffs2 = "-lnp "
SERIAL_CONSOLE = "115200 ttyO0"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
-PREFERRED_VERSION_linux-yocto ?= "3.14%"
+PREFERRED_VERSION_linux-yocto ?= "3.19%"
KERNEL_IMAGETYPE = "zImage"
KERNEL_DEVICETREE = "am335x-bone.dtb am335x-boneblack.dtb"
diff --git a/meta-yocto-bsp/conf/machine/edgerouter.conf b/meta-yocto-bsp/conf/machine/edgerouter.conf
index 9cb84bc03780..45ef23745ccb 100644
--- a/meta-yocto-bsp/conf/machine/edgerouter.conf
+++ b/meta-yocto-bsp/conf/machine/edgerouter.conf
@@ -11,7 +11,7 @@ KERNEL_ALT_IMAGETYPE = "vmlinux.bin"
KERNEL_IMAGE_STRIP_EXTRA_SECTIONS = ".comment"
PREFERRED_PROVIDER_virtual/kernel ?= "linux-yocto"
-PREFERRED_VERSION_linux-yocto ?= "3.14%"
+PREFERRED_VERSION_linux-yocto ?= "3.19%"
SERIAL_CONSOLE = "115200 ttyS0"
USE_VT ?= "0"
diff --git a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
index 43bdce4b1c5b..f372f32ba6ec 100644
--- a/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
+++ b/meta-yocto-bsp/conf/machine/mpc8315e-rdb.conf
@@ -14,7 +14,7 @@ SERIAL_CONSOLE = "115200 ttyS0"
MACHINE_FEATURES = "keyboard pci ext2 ext3 serial"
-PREFERRED_VERSION_linux-yocto ?= "3.14%"
+PREFERRED_VERSION_linux-yocto ?= "3.19%"
PREFERRED_PROVIDER_virtual/kernel = "linux-yocto"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
diff --git a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.19.bbappend b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.19.bbappend
index cd3e242e149b..e6aea1c4058b 100644
--- a/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.19.bbappend
+++ b/meta-yocto-bsp/recipes-kernel/linux/linux-yocto_3.19.bbappend
@@ -1,11 +1,20 @@
KBRANCH_genericx86 = "standard/common-pc"
KBRANCH_genericx86-64 = "standard/common-pc-64/base"
+KBRANCH_edgerouter = "standard/edgerouter"
+KBRANCH_beaglebone = "standard/beaglebone"
+KBRANCH_mpc8315e-rdb = "standard/fsl-mpc8315e-rdb"
KMACHINE_genericx86 ?= "common-pc"
KMACHINE_genericx86-64 ?= "common-pc-64"
SRCREV_machine_genericx86 ?= "0befa35f40997c90936047e57fbbdd7edbf7e525"
SRCREV_machine_genericx86-64 ?= "0befa35f40997c90936047e57fbbdd7edbf7e525"
+SRCREV_machine_edgerouter ?= "2a5e3b16afa1e599df55aa4c3341c66f317172c9"
+SRCREV_machine_beaglebone ?= "2a5e3b16afa1e599df55aa4c3341c66f317172c9"
+SRCREV_machine_mpc8315e-rdb ?= "2d5ac895707436a0d9afcbb96cd3b68a6e443771"
COMPATIBLE_MACHINE_genericx86 = "genericx86"
COMPATIBLE_MACHINE_genericx86-64 = "genericx86-64"
+COMPATIBLE_MACHINE_edgerouter = "edgerouter"
+COMPATIBLE_MACHINE_beaglebone = "beaglebone"
+COMPATIBLE_MACHINE_mpc8315e-rdb = "mpc8315e-rdb"
--
2.1.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
` (3 preceding siblings ...)
2015-05-27 12:19 ` [PATCH] meta-yocto-bsp: bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
@ 2015-06-01 4:02 ` Bruce Ashfield
4 siblings, 0 replies; 6+ messages in thread
From: Bruce Ashfield @ 2015-06-01 4:02 UTC (permalink / raw)
To: Kevin Hao, poky, linux-yocto
On 2015-05-27 8:19 AM, Kevin Hao wrote:
> Hi,
>
> This patch series updates the kernel to 3.19 for the non-x86 BSPs. It includes
> two kernel patches, one patch for meta and one patch for meta-yocto-bsp layer.
> Boot test on beaglebone black, edgerouter and mpc8315 boards.
>
Thanks Kevin.
I was on the road last week, but I've staged these changes and will send
them out Monday.
Bruce
> Thanks,
> Kevin
>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-06-01 4:02 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-27 12:19 [PATCH 0] bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
2015-05-27 12:19 ` [PATCH 1/2] fs: aufs: fix a build error for archs which doesn't support MUTEX_SPIN_ON_OWNER Kevin Hao
2015-05-27 12:19 ` [PATCH] meta; edgerouter: fix kernel config check errors Kevin Hao
2015-05-27 12:19 ` [PATCH 2/2] fs: yaffs2: kill f_dentry uses Kevin Hao
2015-05-27 12:19 ` [PATCH] meta-yocto-bsp: bump to linux-yocto 3.19 for the non-x86 BSPs Kevin Hao
2015-06-01 4:02 ` [PATCH 0] " Bruce Ashfield
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.