add main line kernel support
cover add main line kernel support
This patch set add main line kernel support for meta-rockchip
Eddie Cai (3):
machine: Use cortexa17hf-neon-vfpv4 as default tune for rk3288.inc
machine: Use SOC specific assignements
recipes-kernel: linux: Add mainline kernel
conf/machine/include/rk3288.inc | 5 ++++- recipes-kernel/linux/linux_4.10.bb | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 recipes-kernel/linux/linux_4.10.bb
Signature · 1 line
2.7.4
PATCH 1/3 machine: Use cortexa17hf-neon-vfpv4 as default tune for rk3288.inc
RK3288 support hard float and vfpv4. So we should use cortexa17hf-neon-vfpv4 as default tune.
--- conf/machine/include/rk3288.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
conf/machine/include/rk3288.inc +1 -1
@@ -3,7 +3,7 @@ require conf/machine/include/tune-cortexa17.inc -DEFAULTTUNE="cortexa17-neon" +DEFAULTTUNE="cortexa17hf-neon-vfpv4" PREFERRED_PROVIDER_virtual/kernel = "linux" SERIAL_CONSOLES = "115200;ttyS2" KERNEL_IMAGETYPE = "zImage"
Signature · 1 line
2.7.4
Re: [meta-rockchip][morty][PATH 1/3] machine: Use cortexa17hf-neon-vfpv4 as default tune for rk3288.inc
Until we find a solution with Trevor about this,
2017-02-08 15:38 GMT+01:00 Eddie Cai <[email protected]>:
Quoted 27 lines
RK3288 support hard float and vfpv4. So we should use cortexa17hf-neon-vfpv4
as default tune.Signed-off-by Eddie Cai <[email protected]>--- conf/machine/include/rk3288.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)conf/machine/include/rk3288.inc +1
-2@@ -3,7 +3,7 @@ require conf/machine/include/tune-cortexa17.inc -DEFAULTTUNE="cortexa17-neon" +DEFAULTTUNE="cortexa17hf-neon-vfpv4" PREFERRED_PROVIDER_virtual/kernel = "linux" SERIAL_CONSOLES = "115200;ttyS2" KERNEL_IMAGETYPE = "zImage" --2.7.4
PATCH 2/3 machine: Use SOC specific assignements
In reply to Eddie CaiFrom: Eddie Cai <[email protected]>
In this way the modifications will be used on all RK3288 boards.
--- conf/machine/include/rk3288.inc | 3 +++ 1 file changed, 3 insertions(+)
conf/machine/include/rk3288.inc +3 -0
@@ -1,7 +1,10 @@ # Copyright (C) 2015 Romain Perier # Released under the MIT license (see COPYING.MIT for the terms) +SOC_FAMILY = "rk3288" + require conf/machine/include/tune-cortexa17.inc +require conf/machine/include/soc-family.inc DEFAULTTUNE="cortexa17hf-neon-vfpv4" PREFERRED_PROVIDER_virtual/kernel = "linux"
Signature · 1 line
2.7.4
Re: [meta-rockchip][morty][PATH 2/3] machine: Use SOC specific assignements
It would be nice to do the same thing for ther SoCs, what do you think ?
2017-02-08 15:38 GMT+01:00 Eddie Cai <[email protected]>:
Quoted 29 lines
From: Eddie Cai <[email protected]>
In this way the modifications will be used on all RK3288 boards.
Signed-off-by Eddie Cai <[email protected]>--- conf/machine/include/rk3288.inc | 3 +++ 1 file changed, 3 insertions(+)conf/machine/include/rk3288.inc +3
-1@@ -1,7 +1,10 @@ # Copyright (C) 2015 Romain Perier # Released under the MIT license (see COPYING.MIT for the terms) +SOC_FAMILY = "rk3288" + require conf/machine/include/tune-cortexa17.inc +require conf/machine/include/soc-family.inc DEFAULTTUNE="cortexa17hf-neon-vfpv4" PREFERRED_PROVIDER_virtual/kernel = "linux" --2.7.4
Re: [meta-rockchip][morty][PATH 2/3] machine: Use SOC specific assignements
Hi Romain
2017-02-14 1:02 GMT+08:00 Romain Perier <[email protected]>:
Quoted 1 line
It would be nice to do the same thing for ther SoCs, what do you think ?
Yes, But i found RK3066 and RK3188 is using the same file.
Quoted 34 lines
Reviewed-by Romain Perier <[email protected]>2017-02-08 15:38 GMT+01:00 Eddie Cai <[email protected]>:
Quoted 29 lines
From: Eddie Cai <[email protected]>
In this way the modifications will be used on all RK3288 boards.
Signed-off-by Eddie Cai <[email protected]>--- conf/machine/include/rk3288.inc | 3 +++ 1 file changed, 3 insertions(+)conf/machine/include/rk3288.inc +3
-1@@ -1,7 +1,10 @@ # Copyright (C) 2015 Romain Perier # Released under the MIT license (see COPYING.MIT for the terms) +SOC_FAMILY = "rk3288" + require conf/machine/include/tune-cortexa17.inc +require conf/machine/include/soc-family.inc DEFAULTTUNE="cortexa17hf-neon-vfpv4" PREFERRED_PROVIDER_virtual/kernel = "linux" --2.7.4
PATCH 3/3 recipes-kernel: linux: Add mainline kernel
In reply to Eddie CaiAdd mainline kervel support. Now the version is 4.10.-rc7.
--- recipes-kernel/linux/linux_4.10.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-kernel/linux/linux_4.10.bb
recipes-kernel/linux/linux_4.10.bb new file +18 -0
@@ -0,0 +1,18 @@ +# Copyright (C) 2017 Eddie Cai +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-yocto.inc + +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git" + +SRCREV = "${AUTOREV}" +LINUX_VERSION = "4.10" +# Override local version in order to use the one generated by linux build system +# And not "yocto-standard" +LINUX_VERSION_EXTENSION = "" +PR = "r1" +PV = "${LINUX_VERSION}-rc7" + +# Include only supported boards for now +COMPATIBLE_MACHINE = "(radxarock|marsboard-rk3066|rk3288)" +deltask kernel_configme
Signature · 1 line
2.7.4
Re: [meta-rockchip][morty][PATH 3/3] recipes-kernel: linux: Add mainline kernel
Hello,
1. Autorev is bad, when linus will merge patch for the next merge window, it will break things. Use a fix git revision instead (or a branch from the stable tree)
2. rc8 is out :)
rk3288 is not a machine for me , can you really ensure that it will board for all rk3288-based board ? suppose that there is no DT support on upstream... that's wrong :)
Thanks!
Romain
2017-02-08 15:38 GMT+01:00 Eddie Cai <[email protected]>:
Quoted 39 lines
Add mainline kervel support. Now the version is 4.10.-rc7.
Signed-off-by Eddie Cai <[email protected]>--- recipes-kernel/linux/linux_4.10.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-kernel/linux/linux_4.10.bbrecipes-kernel/linux/ renamed from recipes-kernel/linux/linux_4.10.bb +0
-0linux_4.10.bb
new file mode 100644
index 0000000..7abdc56recipes-kernel/linux/linux_4.10.bb new file +6
-0@@ -0,0 +1,18 @@ +# Copyright (C) 2017 Eddie Cai +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-yocto.inc + +SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
recipes-kernel/linux/linux_4.10.bb new file +4
-0+ +SRCREV = "${AUTOREV}" +LINUX_VERSION = "4.10" +# Override local version in order to use the one generated by linux buildsystem
recipes-kernel/linux/linux_4.10.bb new file +8
-1+# And not "yocto-standard" +LINUX_VERSION_EXTENSION = "" +PR = "r1" +PV = "${LINUX_VERSION}-rc7" + +# Include only supported boards for now +COMPATIBLE_MACHINE = "(radxarock|marsboard-rk3066|rk3288)" +deltask kernel_configme --2.7.4
Re: [meta-rockchip][morty][PATH 3/3] recipes-kernel: linux: Add mainline kernel
Hi Romain
2017-02-14 1:05 GMT+08:00 Romain Perier <[email protected]>:
Quoted 5 lines
Hello,
1. Autorev is bad, when linus will merge patch for the next merge window, it will break things. Use a fix git revision instead (or a branch from the stable tree)
I will use a fixed git revision in next version
Quoted 1 line
2. rc8 is out :)
I guess what you mean is rc7 is out. I will update to rc8 in next version.
Quoted 49 lines
rk3288 is not a machine for me , can you really ensure that it will board for all rk3288-based board ? suppose that there is no DT support on upstream... that's wrong :)
Thanks!
Romain2017-02-08 15:38 GMT+01:00 Eddie Cai <[email protected]>:
Quoted 39 lines
Add mainline kervel support. Now the version is 4.10.-rc7.
Signed-off-by Eddie Cai <[email protected]>--- recipes-kernel/linux/linux_4.10.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 recipes-kernel/linux/linux_4.10.bbrecipes-kernel/linux/linux_4.10.bb new file +6
-0@@ -0,0 +1,18 @@ +# Copyright (C) 2017 Eddie Cai +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-yocto.inc + +SRC_URI ="
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"recipes-kernel/linux/linux_4.10.bb new file +4
-0+ +SRCREV = "${AUTOREV}" +LINUX_VERSION = "4.10" +# Override local version in order to use the one generated by linux buildsystem
recipes-kernel/linux/linux_4.10.bb new file +8
-1+# And not "yocto-standard" +LINUX_VERSION_EXTENSION = "" +PR = "r1" +PV = "${LINUX_VERSION}-rc7" + +# Include only supported boards for now +COMPATIBLE_MACHINE = "(radxarock|marsboard-rk3066|rk3288)" +deltask kernel_configme --2.7.4