Re: [yocto] [meta-rockchip] [PATCH] machines: correct rk3066/rk3188/rk3288 kernel devicetree path

2024-01-20 Thread Trevor Woerner
On Sat 2024-01-20 @ 11:46:20 PM, Trevor Woerner via lists.yoctoproject.org 
wrote:
> On Sat 2024-01-20 @ 06:25:20 PM, Stephen Chen wrote:
> > Since mainline linux v6.5-rc1, this commit 724ba6751532
> > ("ARM: dts: Move .dts files to vendor sub-directories")
> > was added.
> > 
> > Link: 
> > https://github.com/torvalds/linux/commit/724ba6751532055db75992fc6ae21c3e322e94a7
> > 
> > Signed-off-by: Stephen Chen 
> > ---
> >  conf/machine/firefly-rk3288.conf   | 2 +-
> >  conf/machine/marsboard-rk3066.conf | 2 +-
> >  conf/machine/radxarock.conf| 2 +-
> >  conf/machine/rock2-square.conf | 2 +-
> >  conf/machine/tinker-board-s.conf   | 2 +-
> >  conf/machine/tinker-board.conf | 2 +-
> >  conf/machine/vyasa-rk3288.conf | 2 +-
> >  7 files changed, 7 insertions(+), 7 deletions(-)
> 
> When I build I get:
> 
>   | 
> /opt/oe/configs/z/build-master/tinker-board/layers/openembedded-core/scripts/lib/wic/engine.py:362:
>  SyntaxWarning: invalid escape sequence '\/'
>   |   abs_path = re.sub('\/\/+', '/', path)
>   | INFO: Creating image(s)...
>   | 
>   | ERROR: _exec_cmd: install -m 0644 -D 
> /z/build-master/tinker-board/build/tmp-glibc/deploy/images/tinker-board/rockchip/rk3288-tinker.dtb
>  
> /z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/tmp-wic/boot.6/rockchip/rk3288-tinker.dtb
>  returned '1' instead of 0
>   | output: install: cannot stat 
> '/z/build-master/tinker-board/build/tmp-glibc/deploy/images/tinker-board/rockchip/rk3288-tinker.dtb':
>  No such file or directory
>   | 
>   | WARNING: 
> /z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449:160
>  exit 1 from 'BUILDDIR="/z/build-master/tinker-board/build" PSEUDO_UNLOAD=1 
> wic create "$wks" --vars 
> "/z/build-master/tinker-board/build/tmp-glibc/sysroots/tinker-board/imgdata/" 
> -e "core-image-base" -o "$build_wic/" -w "$tmp_wic"'
>   | WARNING: Backtrace (BB generated script):
>   |   #1: do_image_wic, 
> /z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449,
>  line 160
>   |   #2: main, 
> /z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449,
>  line 177
>   ERROR: Task 
> (/opt/oe/configs/z/build-master/tinker-board/layers/openembedded-core/meta/recipes-core/images/core-image-base.bb:do_image_wic)
>  failed with exit code '1'

Perhaps also take a look the email thread here:
https://lists.yoctoproject.org/g/yocto/topic/101728482#61210

> > diff --git a/conf/machine/firefly-rk3288.conf 
> > b/conf/machine/firefly-rk3288.conf
> > index 3270bb9..6ff1be8 100644
> > --- a/conf/machine/firefly-rk3288.conf
> > +++ b/conf/machine/firefly-rk3288.conf
> > @@ -9,5 +9,5 @@
> >  require conf/machine/include/rk3288.inc
> >  require conf/machine/include/rockchip-wic.inc
> >  
> > -KERNEL_DEVICETREE = "rk3288-firefly.dtb"
> > +KERNEL_DEVICETREE = "rockchip/rk3288-firefly.dtb"
> >  UBOOT_MACHINE = "firefly-rk3288_defconfig"
> > diff --git a/conf/machine/marsboard-rk3066.conf 
> > b/conf/machine/marsboard-rk3066.conf
> > index 52fd256..36945e8 100644
> > --- a/conf/machine/marsboard-rk3066.conf
> > +++ b/conf/machine/marsboard-rk3066.conf
> > @@ -8,4 +8,4 @@
> >  
> >  require conf/machine/include/rk3066.inc
> >  
> > -KERNEL_DEVICETREE = "rk3066a-marsboard.dtb"
> > +KERNEL_DEVICETREE = "rockchip/rk3066a-marsboard.dtb"
> > diff --git a/conf/machine/radxarock.conf b/conf/machine/radxarock.conf
> > index 42d8848..6ad8474 100644
> > --- a/conf/machine/radxarock.conf
> > +++ b/conf/machine/radxarock.conf
> > @@ -9,4 +9,4 @@
> >  
> >  require conf/machine/include/rk3188.inc
> >  
> > -KERNEL_DEVICETREE = "rk3188-radxarock.dtb"
> > +KERNEL_DEVICETREE = "rockchip/rk3188-radxarock.dtb"
> > diff --git a/conf/machine/rock2-square.conf b/conf/machine/rock2-square.conf
> > index 46064ee..9468b9a 100644
> > --- a/conf/machine/rock2-square.conf
> > +++ b/conf/machine/rock2-square.conf
> > @@ -9,7 +9,7 @@
> >  require conf/machine/include/rk3288.inc
> >  
> >  SPL_BINARY = "u-boot-spl-dtb.bin"
> > -KERNEL_DEVICETREE = "rk3288-rock2-square.dtb"
> > +KERNEL_DEVICETREE = "rockchip/rk3288-rock2-square.dtb"
> >  UBOOT_MACHINE = "rock2_defconfig"
> >  
> >  # This board doesn't support the combined idbloader, so resort to the older
> > diff --git a/conf/machine/tinker-board-s.conf 
> > b/conf/machine/tinker-board-s.conf
> > index 870b9bc..3a65613 100644
> > --- a/conf/machine/tinker-board-s.conf
> > +++ b/conf/machine/tinker-board-s.conf
> > @@ -7,5 +7,5 @@
> >  
> >  require conf/machine/include/tinker.inc
> >  
> > -KERNEL_DEVICETREE = "rk3288-tinker-s.dtb"
> > +KERNEL_DEVICETREE = "rockchip/rk3288-tinker-s.dtb"
> >  UBOOT_MACHINE = "tinker-s-rk3288_defconfig"
> > diff --git a/conf/machine/tinker-board.conf 

Re: [yocto] [meta-rockchip] [PATCH] machines: correct rk3066/rk3188/rk3288 kernel devicetree path

2024-01-20 Thread Trevor Woerner
On Sat 2024-01-20 @ 06:25:20 PM, Stephen Chen wrote:
> Since mainline linux v6.5-rc1, this commit 724ba6751532
> ("ARM: dts: Move .dts files to vendor sub-directories")
> was added.
> 
> Link: 
> https://github.com/torvalds/linux/commit/724ba6751532055db75992fc6ae21c3e322e94a7
> 
> Signed-off-by: Stephen Chen 
> ---
>  conf/machine/firefly-rk3288.conf   | 2 +-
>  conf/machine/marsboard-rk3066.conf | 2 +-
>  conf/machine/radxarock.conf| 2 +-
>  conf/machine/rock2-square.conf | 2 +-
>  conf/machine/tinker-board-s.conf   | 2 +-
>  conf/machine/tinker-board.conf | 2 +-
>  conf/machine/vyasa-rk3288.conf | 2 +-
>  7 files changed, 7 insertions(+), 7 deletions(-)

When I build I get:

| 
/opt/oe/configs/z/build-master/tinker-board/layers/openembedded-core/scripts/lib/wic/engine.py:362:
 SyntaxWarning: invalid escape sequence '\/'
|   abs_path = re.sub('\/\/+', '/', path)
| INFO: Creating image(s)...
| 
| ERROR: _exec_cmd: install -m 0644 -D 
/z/build-master/tinker-board/build/tmp-glibc/deploy/images/tinker-board/rockchip/rk3288-tinker.dtb
 
/z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/tmp-wic/boot.6/rockchip/rk3288-tinker.dtb
 returned '1' instead of 0
| output: install: cannot stat 
'/z/build-master/tinker-board/build/tmp-glibc/deploy/images/tinker-board/rockchip/rk3288-tinker.dtb':
 No such file or directory
| 
| WARNING: 
/z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449:160
 exit 1 from 'BUILDDIR="/z/build-master/tinker-board/build" PSEUDO_UNLOAD=1 wic 
create "$wks" --vars 
"/z/build-master/tinker-board/build/tmp-glibc/sysroots/tinker-board/imgdata/" 
-e "core-image-base" -o "$build_wic/" -w "$tmp_wic"'
| WARNING: Backtrace (BB generated script):
|   #1: do_image_wic, 
/z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449,
 line 160
|   #2: main, 
/z/build-master/tinker-board/build/tmp-glibc/work/tinker_board-oe-linux-gnueabi/core-image-base/1.0/temp/run.do_image_wic.449,
 line 177
ERROR: Task 
(/opt/oe/configs/z/build-master/tinker-board/layers/openembedded-core/meta/recipes-core/images/core-image-base.bb:do_image_wic)
 failed with exit code '1'

> diff --git a/conf/machine/firefly-rk3288.conf 
> b/conf/machine/firefly-rk3288.conf
> index 3270bb9..6ff1be8 100644
> --- a/conf/machine/firefly-rk3288.conf
> +++ b/conf/machine/firefly-rk3288.conf
> @@ -9,5 +9,5 @@
>  require conf/machine/include/rk3288.inc
>  require conf/machine/include/rockchip-wic.inc
>  
> -KERNEL_DEVICETREE = "rk3288-firefly.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3288-firefly.dtb"
>  UBOOT_MACHINE = "firefly-rk3288_defconfig"
> diff --git a/conf/machine/marsboard-rk3066.conf 
> b/conf/machine/marsboard-rk3066.conf
> index 52fd256..36945e8 100644
> --- a/conf/machine/marsboard-rk3066.conf
> +++ b/conf/machine/marsboard-rk3066.conf
> @@ -8,4 +8,4 @@
>  
>  require conf/machine/include/rk3066.inc
>  
> -KERNEL_DEVICETREE = "rk3066a-marsboard.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3066a-marsboard.dtb"
> diff --git a/conf/machine/radxarock.conf b/conf/machine/radxarock.conf
> index 42d8848..6ad8474 100644
> --- a/conf/machine/radxarock.conf
> +++ b/conf/machine/radxarock.conf
> @@ -9,4 +9,4 @@
>  
>  require conf/machine/include/rk3188.inc
>  
> -KERNEL_DEVICETREE = "rk3188-radxarock.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3188-radxarock.dtb"
> diff --git a/conf/machine/rock2-square.conf b/conf/machine/rock2-square.conf
> index 46064ee..9468b9a 100644
> --- a/conf/machine/rock2-square.conf
> +++ b/conf/machine/rock2-square.conf
> @@ -9,7 +9,7 @@
>  require conf/machine/include/rk3288.inc
>  
>  SPL_BINARY = "u-boot-spl-dtb.bin"
> -KERNEL_DEVICETREE = "rk3288-rock2-square.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3288-rock2-square.dtb"
>  UBOOT_MACHINE = "rock2_defconfig"
>  
>  # This board doesn't support the combined idbloader, so resort to the older
> diff --git a/conf/machine/tinker-board-s.conf 
> b/conf/machine/tinker-board-s.conf
> index 870b9bc..3a65613 100644
> --- a/conf/machine/tinker-board-s.conf
> +++ b/conf/machine/tinker-board-s.conf
> @@ -7,5 +7,5 @@
>  
>  require conf/machine/include/tinker.inc
>  
> -KERNEL_DEVICETREE = "rk3288-tinker-s.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3288-tinker-s.dtb"
>  UBOOT_MACHINE = "tinker-s-rk3288_defconfig"
> diff --git a/conf/machine/tinker-board.conf b/conf/machine/tinker-board.conf
> index 8fe5f63..ef1a1c1 100644
> --- a/conf/machine/tinker-board.conf
> +++ b/conf/machine/tinker-board.conf
> @@ -7,5 +7,5 @@
>  
>  require conf/machine/include/tinker.inc
>  
> -KERNEL_DEVICETREE = "rk3288-tinker.dtb"
> +KERNEL_DEVICETREE = "rockchip/rk3288-tinker.dtb"
>  UBOOT_MACHINE = "tinker-rk3288_defconfig"
> diff --git a/conf/machine/vyasa-rk3288.conf 

Re: [yocto] [meta-rockchip] [PATCH v3 1/1] orangepi-5-plus: Support Orange Pi 5 Plus single-board computer

2024-01-20 Thread Abhisit Sangjan
Thank you for your time to support me!
I will support you to contribute this kind of the single board computer.

Thanks!

On Sun, 21 Jan 2024 at 09:42, Trevor Woerner  wrote:

> On Thu 2023-12-21 @ 11:40:48 AM, Abhisit Sangjan wrote:
> > From: Abhisit Sangjan 
> >
> > Being merged when the u-boot version is 2024.01-rc5 or newer and the
> Linux Kernel version is 6.7 or newer
> >
> > Orange Pi 5 Plus is RK3588 based SBC featuring:
> > - 2x 2.5G ethernet ports – onboard NIC hooked to PCIe 2.0 interface
> > - 2x USB 2.0 host ports
> > - 2x USB 3.0 host ports (exposed over USB 3.0 hub)
> > - Type-C port featuring USB 2.0/3.0 and Alt-DP mode
> > - PCIe 2.0/USB 2.0/I2S/I2C/UART on E.KEY socket
> > - RTC
> > - ES8388 on-board sound codec – jack in/out, onboard mic, speaker
> amplifier
> > - SPI NOR flash
> > - RGB LED (R is always on)
> > - IR receiver
> > - PCIe 3.0 on the bottom for NVMe, etc.
> > - 40pin GPIO header (with gpio, I2C, SPI, PWM, UART)
> > - Power, recovery and Mask ROM buttons
> > - 2x HDMI out, 1x HDMI in
> > - Slots/connectors for eMMC, uSD card, fan, MIPI CSI/DSI
> > - 4 GB, 8 GB, 16 GB and 32 GB of RAM
> >
> > Signed-off-by: Abhisit Sangjan 
> > ---
> >  README|  1 +
> >  conf/machine/orangepi-5-plus.conf | 12 
> >  recipes-bsp/rkbin/rockchip-rkbin_git.bb   |  2 +-
> >  recipes-kernel/linux/linux-yocto-dev.bbappend |  3 +++
> >  4 files changed, 17 insertions(+), 1 deletion(-)
> >  create mode 100644 conf/machine/orangepi-5-plus.conf
>
> Tweaked and applied to meta-rockchip, master branch.
> Thanks!
>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62210): https://lists.yoctoproject.org/g/yocto/message/62210
Mute This Topic: https://lists.yoctoproject.org/mt/103295196/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-rockchip] [PATCH v2] rock-4c-plus: add

2024-01-20 Thread Trevor Woerner
On Sat 2024-01-20 @ 05:30:38 PM, Stephen Chen wrote:
> ROCK 4C Plus is a Rockchip RK3399-T based SBC from Radxa.
> 
> Specs:
> - RaspberryPi 4 form factor
> - 64bit LPDDR4
> - eMMC
> - Micro SD
> - SPI Nor Flash
> - Two Micro-HDMI (HDMI 4K and HDMI 2K)
> - 4-lane MIPI DSI
> - MIPI CSI
> - GbE LAN with Power over Ethernet (PoE) support
> - Wi-Fi 5 and BT5.0 wireless module
> - 3.5mm headphone jack
> - Four USB ports (two USB2.0 and two USB3.0)
> - RTC
> - LEDs
> - Power button
> - Pwm fan
> - 40-pin color expansion header
> 
> Signed-off-by: Stephen Chen 
> ---
>  README  |  1 +
>  conf/machine/rock-4c-plus.conf  | 10 ++
>  recipes-kernel/linux/linux-yocto_%.bbappend |  1 +
>  3 files changed, 12 insertions(+)
>  create mode 100644 conf/machine/rock-4c-plus.conf

Applied to meta-rockchip, master branch.
Thanks!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62209): https://lists.yoctoproject.org/g/yocto/message/62209
Mute This Topic: https://lists.yoctoproject.org/mt/103847071/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-rockchip] [PATCH v3 1/1] orangepi-5-plus: Support Orange Pi 5 Plus single-board computer

2024-01-20 Thread Trevor Woerner
On Thu 2023-12-21 @ 11:40:48 AM, Abhisit Sangjan wrote:
> From: Abhisit Sangjan 
> 
> Being merged when the u-boot version is 2024.01-rc5 or newer and the Linux 
> Kernel version is 6.7 or newer
> 
> Orange Pi 5 Plus is RK3588 based SBC featuring:
> - 2x 2.5G ethernet ports – onboard NIC hooked to PCIe 2.0 interface
> - 2x USB 2.0 host ports
> - 2x USB 3.0 host ports (exposed over USB 3.0 hub)
> - Type-C port featuring USB 2.0/3.0 and Alt-DP mode
> - PCIe 2.0/USB 2.0/I2S/I2C/UART on E.KEY socket
> - RTC
> - ES8388 on-board sound codec – jack in/out, onboard mic, speaker amplifier
> - SPI NOR flash
> - RGB LED (R is always on)
> - IR receiver
> - PCIe 3.0 on the bottom for NVMe, etc.
> - 40pin GPIO header (with gpio, I2C, SPI, PWM, UART)
> - Power, recovery and Mask ROM buttons
> - 2x HDMI out, 1x HDMI in
> - Slots/connectors for eMMC, uSD card, fan, MIPI CSI/DSI
> - 4 GB, 8 GB, 16 GB and 32 GB of RAM
> 
> Signed-off-by: Abhisit Sangjan 
> ---
>  README|  1 +
>  conf/machine/orangepi-5-plus.conf | 12 
>  recipes-bsp/rkbin/rockchip-rkbin_git.bb   |  2 +-
>  recipes-kernel/linux/linux-yocto-dev.bbappend |  3 +++
>  4 files changed, 17 insertions(+), 1 deletion(-)
>  create mode 100644 conf/machine/orangepi-5-plus.conf

Tweaked and applied to meta-rockchip, master branch.
Thanks!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62208): https://lists.yoctoproject.org/g/yocto/message/62208
Mute This Topic: https://lists.yoctoproject.org/mt/103295196/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-rockchip] [PATCH v3] rock-3a add

2024-01-20 Thread Trevor Woerner
On Mon 2023-10-16 @ 09:43:45 PM, anthony.t.dav...@gmail.com wrote:
> From: Anthony Davies 
> 
> Add support for the Radxa Rock 3A
> https://wiki.radxa.com/Rock3/3a
> 
> The TF-A project does not currently have support for
> the rk3568. Therefore, for the time-being, the only way to supply a
> TPL/DDR-init for the rk3568 is to use the closed-source rkbin binaries
> from Rockchip. If/when TF-A adds support for the rk3588 we can investigate
> switching.
> 
> recipes-bsp/rkbin/rockchip-rkbin_git.bb was modified to allow a machine
> override to allow both rk3568 and rk3588s to use differnet binary blobs
> 
> Signed-off-by: Anthony Davies 
> ---
>  README  |  1 +
>  conf/machine/include/rk3568.inc | 17 +
>  conf/machine/rock-3a.conf   | 12 
>  recipes-bsp/rkbin/rockchip-rkbin_git.bb | 16 +++-
>  recipes-bsp/u-boot/u-boot%.bbappend |  5 +
>  5 files changed, 50 insertions(+), 1 deletion(-)
>  create mode 100644 conf/machine/include/rk3568.inc
>  create mode 100644 conf/machine/rock-3a.conf

Applied some form of this patch to meta-rockchip, master branch.
Thanks!

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62207): https://lists.yoctoproject.org/g/yocto/message/62207
Mute This Topic: https://lists.yoctoproject.org/mt/101992957/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] Trial merge of v6.1.74 for linux-yocto

2024-01-20 Thread Kevin Hao
Hi Bruce,

This is a trial merge of the stable kernel v6.1.74 for the following branches 
in the linux-yocto.
  a2aca9977c0e  v6.1/standard/sdkv5.10/axxia
  5c2743e3ef42  v6.1/standard/preempt-rt/sdkv5.10/axxia
  f7868a17cc92  v6.1/standard/base
  850bc54a159f  v6.1/standard/preempt-rt/base
  f91463f93d4b  v6.1/standard/ti-sdk-6.1/ti-j7xxx
  14de8faf0164  v6.1/standard/preempt-rt/ti-sdk-6.1/ti-j7xxx
  26e2ec9bc89e  v6.1/standard/nxp-sdk-6.1/nxp-soc
  eeb0df64e0c0  v6.1/standard/preempt-rt/nxp-sdk-6.1/nxp-soc
  32e28f03a58c  v6.1/standard/cn-sdkv5.15/octeon
  a3b02364ceb3  v6.1/standard/preempt-rt/cn-sdkv5.15/octeon
  3aafee27c49a  v6.1/standard/microchip-polarfire-soc
  17d190779071  v6.1/standard/preempt-rt/microchip-polarfire-soc
  2db365f67504  v6.1/standard/bcm-2xxx-rpi
  c19536627fe1  v6.1/standard/preempt-rt/bcm-2xxx-rpi
  991f59354307  v6.1/standard/nxp-sdk-5.15/nxp-s32g
  db6232f348a2  v6.1/standard/preempt-rt/nxp-sdk-5.15/nxp-s32g
  1786c9234a69  v6.1/standard/intel-sdk-6.1/intel-socfpga
  33d7faf7d911  v6.1/standard/preempt-rt/intel-sdk-6.1/intel-socfpga
  6bb7d572a001  v6.1/standard/x86
  87525851158e  v6.1/standard/preempt-rt/x86
  f1fcf576ed1e  v6.1/standard/sdkv6.1/xlnx-soc
  44732b992297  v6.1/standard/preempt-rt/sdkv6.1/xlnx-soc

There is no any merge conflict in this stable kernel update. All the branches
have passed my build test. I have pushed all these branches to:
https://github.com/haokexin/linux

You can use this as a reference for the linux-yocto stable kernel bump.

Thanks,
Kevin

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13505): 
https://lists.yoctoproject.org/g/linux-yocto/message/13505
Mute This Topic: https://lists.yoctoproject.org/mt/103859414/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] etherlab

2024-01-20 Thread Daniele Lugli
Thank you Marek and Ross.

@Ross: I had a look into log.do_configure and found

checking for Linux kernel sources... /usr/src/linux-headers-6.5.0-14-generic 
(Kernel 6.5)

but these are from the host, my target kernel is a 6.1 with PREEMPT_RT !
Also it suggests to look into config.log, where I find

$ ../ethercat/configure --build=x86_64-linux --host=x86_64-poky-linux 
--target=x86_64-poky-linux --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin 
--sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share 
--sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib 
--includedir=/usr/include --oldincludedir=/usr/include 
--infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules 
--disable-dependency-tracking 
--with-libtool-sysroot=/home/vboxuser/yocto/poky/build/tmp/work/corei7-64-poky-linux/etherlab/0.1/recipe-sysroot
 --disable-static

so in fact my arguments aren't there.



I tried the recipe from Marek (leaving --enable-igb and removing --disable-igb 
as suggested by Ross) and I got

| checking for kernel for igb driver... configure: error: kernel 6.1 not 
available for igb driver!

An internet search shows that the intel igb driver failing to build with 
several recent kernels 6.x seems known, and not related to yocto. So I gave up 
igb and settled for the generic driver with the following modification:

EXTRA_OECONF = "--enable-generic --disable-igb --disable-8139too 
--with-linux-dir=${STAGING_KERNEL_BUILDDIR}"

This way, bitbake completes without errors and I am able to test my image.

When I try to start the ethercat master with

/etc/init.d/ethercat start

I get:

Start EtherCAT master 1.6.0-rc1 modprobe: FATAL: Module ec_master not found in 
directory /lib/modules/6.1.59-rt16-intel-pk-preempt-rt failed

and in fact there is no ec_master.ko in /lib/modules (nor anywhere else).

If I understand correctly 
https://docs.yoctoproject.org/ref-manual/classes.html#autotools, the inherited 
autotools run configure behind the scenes. But the Etherlab installation 
instructions are:

./bootstrap
./configure { with args as needed }
make all modules
make modules_install install
depmod

bootstrap just contains an "autoreconf -i" which, according to the doc, is also 
automatically run behind the scenes.
Arguments for configure are supplied through EXTRA_OECONF and are OK
make modules and make modules_install are probably not run.

I see from the doc that there is also an EXTRA_OEMAKE variable which should 
pass additional arguments to make. So I try:

EXTRA_OEMAKE = "all modules"

but so bitbake fails. I see in log.do_compile:

/home/vboxuser/yocto/poky/build/tmp/work-shared/intel-corei7-64/kernel-source/scripts/Makefile.build:44:
 
/home/vboxuser/yocto/poky/build/tmp/work/corei7-64-poky-linux/ethercat/1.6.0-rc1+git/build/../git/Makefile:
 No such file or directory

I also see a worrying warning:

warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-poky-linux-gcc (GCC) 13.2.0
You are using:           gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0

Why is it using the compiler from the host?
How can I add the custom make commands and depmod?

Thank you in advance for your replies.

--
Daniele Lugli
General Logic srl
Viale Curreno, 41
10133 Torino
Italy
tel +39 329 3933041
www.general-logic.com ( http://www.general-logic.com/ )
www.linkedin.com/in/daniele- lugli ( http://www.linkedin.com/in/daniele-lugli )

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62206): https://lists.yoctoproject.org/g/yocto/message/62206
Mute This Topic: https://lists.yoctoproject.org/mt/103796912/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [yocto-autobuilder2] [PATCH] schedulers: Drop mickledore for meta-oe/layer-checks

2024-01-20 Thread Yoann Congal
Hi,

Le lun. 8 janv. 2024 à 14:34, Richard Purdie <
richard.pur...@linuxfoundation.org> a écrit :

> Signed-off-by: Richard Purdie 
> ---
>  schedulers.py | 6 --
>  1 file changed, 6 deletions(-)
>

This patch has been merged but not applied to the scheduler config maybe ?
meta-oe-mirror still run on Mickledore 12 days after this patch :
https://autobuilder.yoctoproject.org/typhoon/#/builders/156/builds/215


> diff --git a/schedulers.py b/schedulers.py
> index 4d7522a9..b8ff44b5 100644
> --- a/schedulers.py
> +++ b/schedulers.py
> @@ -487,12 +487,6 @@
> schedulers.append(sched.Nightly(name='nightly-check-layer-nanbield',
> properties=
>  schedulers.append(sched.Nightly(name='nightly-meta-oe-mirror-nanbield',
> properties=parent_default_props('meta-oe-mirror', 'nanbield'),
>builderNames=['meta-oe-mirror'], dayOfWeek=[3, 7],
> hour=2, minute=0, codebases = {'' : {'branch' : 'nanbield'}}))
>
> -# Run check-layer-nightly amd meta-oe-mirror twice a week for mickledore
> -schedulers.append(sched.Nightly(name='nightly-check-layer-mickledore',
> properties=parent_default_props('check-layer-nightly', 'mickledore'),
> -  builderNames=['check-layer-nightly'], dayOfWeek=[2, 5],
> hour=2, minute=0, codebases = {'' : {'branch' : 'mickledore'}}))
> -schedulers.append(sched.Nightly(name='nightly-meta-oe-mirror-mickledore',
> properties=parent_default_props('meta-oe-mirror', 'mickledore'),
> -  builderNames=['meta-oe-mirror'], dayOfWeek=[2, 5],
> hour=2, minute=0, codebases = {'' : {'branch' : 'mickledore'}}))
> -
>  # Run check-layer-nightly and meta-oe-mirror twice a week for kirkstone
>  schedulers.append(sched.Nightly(name='nightly-check-layer-kirkstone',
> properties=parent_default_props('check-layer-nightly', 'kirkstone'),
>builderNames=['check-layer-nightly'], dayOfWeek=[0, 3],
> hour=2, minute=0, codebases = {'' : {'branch' : 'kirkstone'}}))
> --
> 2.39.2
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#62101):
> https://lists.yoctoproject.org/g/yocto/message/62101
> Mute This Topic: https://lists.yoctoproject.org/mt/103596671/4316185
> Group Owner: yocto+ow...@lists.yoctoproject.org
> Unsubscribe:
> https://lists.yoctoproject.org/g/yocto/leave/7785375/4316185/289819188/xyzzy
> [yoann.con...@smile.fr]
> -=-=-=-=-=-=-=-=-=-=-=

-- 
Yoann Congal
Smile ECS - Tech expert

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62205): https://lists.yoctoproject.org/g/yocto/message/62205
Mute This Topic: https://lists.yoctoproject.org/mt/103596671/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[linux-yocto] [kernel-cache yocto-6.6] beaglebone: Drop the nonassignable kernel options

2024-01-20 Thread Kevin Hao
From: Kevin Hao 

These kernel options aren't assignable. In the previous version of the
kernel, these options were selected by DRM_FBDEV_EMULATION. But due to
the commit 43049f17b526 ("drm/i915: Implement dedicated fbdev I/O
helpers") in the new version of kernel, they are no longer enabled
by DRM_FBDEV_EMULATION. Then the kernel config check emits unmatch
warning for them. Drop all of them to fix these warnings.

Signed-off-by: Kevin Hao 
---
 bsp/beaglebone/beaglebone.cfg | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/bsp/beaglebone/beaglebone.cfg b/bsp/beaglebone/beaglebone.cfg
index 0e818062b29b..6e29ca3ffdc1 100644
--- a/bsp/beaglebone/beaglebone.cfg
+++ b/bsp/beaglebone/beaglebone.cfg
@@ -193,9 +193,6 @@ CONFIG_DRM=y
 CONFIG_DRM_I2C_NXP_TDA998X=y
 CONFIG_DRM_TILCDC=y
 CONFIG_DRM_OMAP=y
-CONFIG_FB_CFB_FILLRECT=y
-CONFIG_FB_CFB_COPYAREA=y
-CONFIG_FB_CFB_IMAGEBLIT=y
 CONFIG_FB_MODE_HELPERS=y
 CONFIG_FB_TILEBLITTING=y
 
-- 
2.39.2


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#13504): 
https://lists.yoctoproject.org/g/linux-yocto/message/13504
Mute This Topic: https://lists.yoctoproject.org/mt/103848168/21656
Group Owner: linux-yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [PATCH yocto-autobuilder-helper] config.json: meta-agl now needs meta-oe

2024-01-20 Thread Richard Purdie
On Thu, 2024-01-18 at 13:32 +0100, Alexandre Belloni via
lists.yoctoproject.org wrote:
> From: Alexandre Belloni 
> 
> rng-tools has been moved to meta-oe and is a dependency of 
> packagegroup-agl-core-boot
> 
> Signed-off-by: Alexandre Belloni 
> ---
>  config.json | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/config.json b/config.json
> index 4686068dc5b6..b92a4f237c96 100644
> --- a/config.json
> +++ b/config.json
> @@ -646,9 +646,10 @@
>  }
>  },
>  "meta-agl-core" : {
> -"NEEDREPOS" : ["poky", "meta-agl"],
> +"NEEDREPOS" : ["poky", "meta-openembedded", "meta-agl"],
>  "ADDLAYER" : [
> -"${BUILDDIR}/../meta-agl/meta-agl-core"
> +"${BUILDDIR}/../meta-agl/meta-agl-core",
> +"${BUILDDIR}/../meta-openembedded/meta-oe"
>  ],
>  "DISTRO" : "poky-agl",
>  "BUILDINFO" : true,

We've decided not to do this for now so I'm not taking this.

Cheers,

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62204): https://lists.yoctoproject.org/g/yocto/message/62204
Mute This Topic: https://lists.yoctoproject.org/mt/103806903/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: 
https://lists.yoctoproject.org/g/yocto/leave/6691583/21656/737036229/xyzzy 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-rockchip] [PATCH] machines: correct rk3066/rk3188/rk3288 kernel devicetree path

2024-01-20 Thread Stephen Chen
Since mainline linux v6.5-rc1, this commit 724ba6751532
("ARM: dts: Move .dts files to vendor sub-directories")
was added.

Link: 
https://github.com/torvalds/linux/commit/724ba6751532055db75992fc6ae21c3e322e94a7

Signed-off-by: Stephen Chen 
---
 conf/machine/firefly-rk3288.conf   | 2 +-
 conf/machine/marsboard-rk3066.conf | 2 +-
 conf/machine/radxarock.conf| 2 +-
 conf/machine/rock2-square.conf | 2 +-
 conf/machine/tinker-board-s.conf   | 2 +-
 conf/machine/tinker-board.conf | 2 +-
 conf/machine/vyasa-rk3288.conf | 2 +-
 7 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/conf/machine/firefly-rk3288.conf b/conf/machine/firefly-rk3288.conf
index 3270bb9..6ff1be8 100644
--- a/conf/machine/firefly-rk3288.conf
+++ b/conf/machine/firefly-rk3288.conf
@@ -9,5 +9,5 @@
 require conf/machine/include/rk3288.inc
 require conf/machine/include/rockchip-wic.inc
 
-KERNEL_DEVICETREE = "rk3288-firefly.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3288-firefly.dtb"
 UBOOT_MACHINE = "firefly-rk3288_defconfig"
diff --git a/conf/machine/marsboard-rk3066.conf 
b/conf/machine/marsboard-rk3066.conf
index 52fd256..36945e8 100644
--- a/conf/machine/marsboard-rk3066.conf
+++ b/conf/machine/marsboard-rk3066.conf
@@ -8,4 +8,4 @@
 
 require conf/machine/include/rk3066.inc
 
-KERNEL_DEVICETREE = "rk3066a-marsboard.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3066a-marsboard.dtb"
diff --git a/conf/machine/radxarock.conf b/conf/machine/radxarock.conf
index 42d8848..6ad8474 100644
--- a/conf/machine/radxarock.conf
+++ b/conf/machine/radxarock.conf
@@ -9,4 +9,4 @@
 
 require conf/machine/include/rk3188.inc
 
-KERNEL_DEVICETREE = "rk3188-radxarock.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3188-radxarock.dtb"
diff --git a/conf/machine/rock2-square.conf b/conf/machine/rock2-square.conf
index 46064ee..9468b9a 100644
--- a/conf/machine/rock2-square.conf
+++ b/conf/machine/rock2-square.conf
@@ -9,7 +9,7 @@
 require conf/machine/include/rk3288.inc
 
 SPL_BINARY = "u-boot-spl-dtb.bin"
-KERNEL_DEVICETREE = "rk3288-rock2-square.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3288-rock2-square.dtb"
 UBOOT_MACHINE = "rock2_defconfig"
 
 # This board doesn't support the combined idbloader, so resort to the older
diff --git a/conf/machine/tinker-board-s.conf b/conf/machine/tinker-board-s.conf
index 870b9bc..3a65613 100644
--- a/conf/machine/tinker-board-s.conf
+++ b/conf/machine/tinker-board-s.conf
@@ -7,5 +7,5 @@
 
 require conf/machine/include/tinker.inc
 
-KERNEL_DEVICETREE = "rk3288-tinker-s.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3288-tinker-s.dtb"
 UBOOT_MACHINE = "tinker-s-rk3288_defconfig"
diff --git a/conf/machine/tinker-board.conf b/conf/machine/tinker-board.conf
index 8fe5f63..ef1a1c1 100644
--- a/conf/machine/tinker-board.conf
+++ b/conf/machine/tinker-board.conf
@@ -7,5 +7,5 @@
 
 require conf/machine/include/tinker.inc
 
-KERNEL_DEVICETREE = "rk3288-tinker.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3288-tinker.dtb"
 UBOOT_MACHINE = "tinker-rk3288_defconfig"
diff --git a/conf/machine/vyasa-rk3288.conf b/conf/machine/vyasa-rk3288.conf
index 5b44257..52b4401 100644
--- a/conf/machine/vyasa-rk3288.conf
+++ b/conf/machine/vyasa-rk3288.conf
@@ -9,7 +9,7 @@ require conf/machine/include/rk3288.inc
 require conf/machine/include/rockchip-wic.inc
 
 KERNEL_IMAGETYPE = "uImage"
-KERNEL_DEVICETREE = "rk3288-vyasa.dtb"
+KERNEL_DEVICETREE = "rockchip/rk3288-vyasa.dtb"
 KERNEL_EXTRA_ARGS += "LOADADDR=0x0200"
 
 UBOOT_MACHINE = "vyasa-rk3288_defconfig"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62203): https://lists.yoctoproject.org/g/yocto/message/62203
Mute This Topic: https://lists.yoctoproject.org/mt/103847371/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



[yocto] [meta-rockchip] [PATCH v2] rock-4c-plus: add

2024-01-20 Thread Stephen Chen
ROCK 4C Plus is a Rockchip RK3399-T based SBC from Radxa.

Specs:
- RaspberryPi 4 form factor
- 64bit LPDDR4
- eMMC
- Micro SD
- SPI Nor Flash
- Two Micro-HDMI (HDMI 4K and HDMI 2K)
- 4-lane MIPI DSI
- MIPI CSI
- GbE LAN with Power over Ethernet (PoE) support
- Wi-Fi 5 and BT5.0 wireless module
- 3.5mm headphone jack
- Four USB ports (two USB2.0 and two USB3.0)
- RTC
- LEDs
- Power button
- Pwm fan
- 40-pin color expansion header

Signed-off-by: Stephen Chen 
---
 README  |  1 +
 conf/machine/rock-4c-plus.conf  | 10 ++
 recipes-kernel/linux/linux-yocto_%.bbappend |  1 +
 3 files changed, 12 insertions(+)
 create mode 100644 conf/machine/rock-4c-plus.conf

diff --git a/README b/README
index 80ba592..c3b514f 100644
--- a/README
+++ b/README
@@ -37,6 +37,7 @@ Status of supported boards:
rock-5a
roc-rk3328-cc
roc-rk3308-cc
+   rock-4c-plus
builds:
marsboard-rk3066
radxarock
diff --git a/conf/machine/rock-4c-plus.conf b/conf/machine/rock-4c-plus.conf
new file mode 100644
index 000..fec4167
--- /dev/null
+++ b/conf/machine/rock-4c-plus.conf
@@ -0,0 +1,10 @@
+#@TYPE: Machine
+#@NAME: ROCK 4C Plus
+#@DESCRIPTION: ROCK 4C Plus based on Rockchip RK3399-T Processor is designed 
by Radxa.
+#https://wiki.radxa.com/Rock4/4cplus
+#https://docs.radxa.com/en/rock4/rock4c+
+
+require conf/machine/include/rock-pi-4.inc
+
+KERNEL_DEVICETREE = "rockchip/rk3399-rock-4c-plus.dtb"
+UBOOT_MACHINE = "rock-4c-plus-rk3399_defconfig"
diff --git a/recipes-kernel/linux/linux-yocto_%.bbappend 
b/recipes-kernel/linux/linux-yocto_%.bbappend
index a922330..f5e81f1 100644
--- a/recipes-kernel/linux/linux-yocto_%.bbappend
+++ b/recipes-kernel/linux/linux-yocto_%.bbappend
@@ -18,6 +18,7 @@ COMPATIBLE_MACHINE:nanopi-m4b = "nanopi-m4b"
 COMPATIBLE_MACHINE:rock-pi-s = "rock-pi-s"
 COMPATIBLE_MACHINE:roc-rk3328-cc = "roc-rk3328-cc"
 COMPATIBLE_MACHINE:roc-rk3308-cc = "roc-rk3308-cc"
+COMPATIBLE_MACHINE:rock-4c-plus = "rock-4c-plus"
 
 SRC_URI:append = " 
file://rockchip-kmeta;type=kmeta;name=rockchip-kmeta;destsuffix=rockchip-kmeta"
 SRC_URI:append:nanopi-r4s = " file://nanopi-r4s.scc"
-- 
2.34.1


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62202): https://lists.yoctoproject.org/g/yocto/message/62202
Mute This Topic: https://lists.yoctoproject.org/mt/103847071/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-



Re: [yocto] [meta-rockchip] [PATCH] rock 4c+: add

2024-01-20 Thread Stephen Chen
Hi Trevor

Thanks for your suggestion.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62201): https://lists.yoctoproject.org/g/yocto/message/62201
Mute This Topic: https://lists.yoctoproject.org/mt/103293271/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-