From ce55e2d760c3877ca754e24dfe76c16eb09ada68 Mon Sep 17 00:00:00 2001 From: Duy Dang Date: Wed, 12 Jun 2024 14:01:22 +0700 Subject: s4sk: Add Linux CANFD driver Add a patch to support CANFD driver for S4SK. Since CANFD does not work without bus protection unlock program running on G4MH, this feature is disabled by default. To enable this patch, add to local.conf: MACHINE_FEATURES:append = " canfd" Unlock program on TrampolineOS: https://github.com/renesas-rcar/whitebox-sdk/tree/wip/v5.x_CAN_unlock_app Please clone this repo and follow the guideline to build: - Download CC-RH compiler: https://www.renesas.com/us/en/software-tool/c-compiler-package-rh850-family#downloads - Move it to tool directory: $ cp CC-RH_V20500_setup-doc.zip ./whitebox-sdk/tool - Install compiler and tools: $ cd ./whitebox-sdk/tool $ ./setup_wine.sh $ ./setup_csp.sh CC-RH_V20500_setup-doc.zip - Build unlock program: $ cd ./whitebox-sdk/mcu/ $ ./build_trampoline.sh s4sk The output file is: whitebox-sdk/mcu/deploy/g4mh_can_unlock.srec Follow flashing guideline in: https://elinux.org/R-Car/Boards/S4SK#How_to_flash.2Fupdate_the_loader and replace the file dummy_g4mh_case0.srec with the output file. Bug-AGL: SPEC-5175 Change-Id: If43d857e7dbd6abe0fa928894e036ffedba80234 Signed-off-by: Duy Dang Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/29988 Reviewed-by: Jan-Simon Moeller Tested-by: Jenkins Job builder account ci-image-build: Jenkins Job builder account ci-image-boot-test: Jenkins Job builder account --- meta-agl-bsp/conf/include/agl_s4sk.inc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta-agl-bsp/conf/include') diff --git a/meta-agl-bsp/conf/include/agl_s4sk.inc b/meta-agl-bsp/conf/include/agl_s4sk.inc index 8f4a91b44..91a65d8b8 100644 --- a/meta-agl-bsp/conf/include/agl_s4sk.inc +++ b/meta-agl-bsp/conf/include/agl_s4sk.inc @@ -7,3 +7,8 @@ WKS_FILE = "singlepart-noloader.wks" IMAGE_INSTALL:append = " \ kernel-devicetree \ " + +# For systemd CAN bus configuration +#MACHINE_FEATURES:append = " canfd" +CANBUS_NETWORK_CONFIG = "canbus-can-fd.network" + -- cgit 1.2.3-korg