aboutsummaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3/recipes-core
AgeCommit message (Collapse)AuthorFilesLines
2019-12-24rcar-gen3: systemd: Add safe transition to non-owned itemDuy Dang3-1/+20
Since safe transition check feature breaks the rootfs created by different users, this allows /var/volatile to be mounted as a non-owned directory (uid=65534) and defines the transition from a normal file/directory to non-owned one as a safe transition. Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I5ed4bfb7e5bd7cc08fa45cde4b849184e3ecb335
2019-09-24rcar-gen3: images: Add condition to require directiveKhang Nguyen1-1/+1
This commit adds the condition to require directive to only modify the based image recipes when building for R-Car platform, it avoids breaking the build on another platform that refers to this layer. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: Icad09e223d5b8fc0358e59d1482d41f75d473822
2019-09-24rcar-gen3: Append _rcar-gen3 to variables and tasksKhang Nguyen2-3/+3
For bbappend files, it should be appended the _rcar-gen3 to variables and function to avoid changing sstate signature when build with non R-Car platforms but including meta-rcar-gen3 to BBLAYERS. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Duy Dang <duy.dang.yw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I179d8595422ea7eeb1568adc63d1e64e1fb057a6
2019-09-24Revert "rcar-gen3: systemd: Do not save file descriptors when restarting Weston"Thuy Tran1-10/+0
This issue have not occurred since systemd version 239. This reverts commit 8b9882947cf6e9508eacdf543bd88a07d88f6598. Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: If9d2cc31cf6dbdfd9a5837ab6017845cde73514d
2019-09-24rcar-gen3: nativesdk-packagegroup-sdk-host: Add perl modulesThuy Tran1-0/+1
This commit adds perl modules in navtive SDK sysroot. (cherry picked from commit 30adcb8f6826284554b2b3bfd2c9deb4f64fbbf1) Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: I3717bdc067df3ef3adc808e90031deedc0a34785
2019-09-23rcar-gen3: base-files: Fix missing log and tmp in /var/volatileKhang Nguyen2-0/+17
Since systemd v240, tmpfiles could not create the files/directories under a prefix that may be owned by an unprivileged user due to unsafe transition validation. In case of users set up a rootfs on NFS server or use PC to prepare one on a flash device, the ownership is inherited from host PC, but the /var/volatile is set the owner to root by default, it leads to an issue that the log and tmp directories under /var/volatile are not created. The processes use the tmp/log directories to store log and temporary files will fail. | [FAILED] Failed to start Login Service. | [FAILED] Failed to start Network Name Resolution. | authpriv.err login[3074]: pam_lastlog(login:session): unable to create /var/log/lastlog: No such file or directory This changes the owner of /var/volatile to uid=1000,gid=1000 as a workaround for the issue. Signed-off-by: Khang Nguyen <khang.nguyen.xw@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> Change-Id: Iae54eb2f47cca2d7f57c48d581d075b6c41401b7
2018-10-26rcar-gen3: base-files: Do not override LD_LIBRARY_PATH variableThuy Tran1-1/+1
This commit modifies recipe to avoid overriding LD_LIBRARY_PATH environment variable. Signed-off-by: Thuy Tran <thuy.tran.xh@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-10-26rcar-gen3: ncurses: Use % suffix instead of specific versionsDuy Dang1-0/+0
Keep naming consistency and ensure they are still applied when the upstream recipes are updated. Signed-off-by: Duy Dang <duy.dang.yw@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22Revert "rcar-gen3: dbus: WORKAROUND to fix memory leak issue"Khang Nguyen1-12/+0
We have a better solution for memory leak issue. This reverts commit 4f9d2b579a600b4fd32f2a92b83378d488a82bff. Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: nativesdk-ncurses: Install to libdir, not base_libdirTan Nguyen1-0/+2
In nativesdk-ncurses, they only add -L<sysroot>/${libdir}, not -L<sysroot>/${base_libdir}. So move base_libdir to libdir will help others find ncurses lib Signed-off-by: Tan Nguyen <tan.nguyen.wh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-03-22rcar-gen3: systemd: Do not save file descriptors when restarting WestonKhang Nguyen1-0/+10
In systemd v234, systemd-logind may now be restarted without losing state, it stores the file descriptors (fd) for devices it manages in the system manager. [1] In graphic and multimedia configuration, above feature causes memory leak with the use case of restarting Weston: | root@salvator-x:~# cat /proc/meminfo | grep Cma | CmaTotal: 671744 kB | CmaFree: 629788 kB | root@salvator-x:~# | root@salvator-x:~# systemctl restart weston | root@salvator-x:~# | root@salvator-x:~# cat /proc/meminfo | grep Cma | CmaTotal: 671744 kB | CmaFree: 599404 kB Because the system continues allocating memory for the new session during the previous device fds still open. This commit avoids saving device fds into the system manager by setting "FileDescriptorStoreMax=0" [2] in "systemd-logind.service". [1] https://lists.freedesktop.org/archives/systemd-devel/2017-July/039308.html [2] https://www.freedesktop.org/software/systemd/man/systemd.service.html#FileDescriptorStoreMax= Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30Revert "rcar-gen3: systemd: WORKAROUND to fix timeout dev-ttySN.device"Thuy Tran2-14/+0
This fix is not necessary for rocko branch. Hence, we can remove it. This reverts commit d6eff077c4a3afbe39f8ee1b2ad1a19a716ce31c. Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: dbus: WORKAROUND to fix memory leak issueKhang Nguyen1-0/+12
In Yocto v3.4.0, memory leak occurs when restarting Weston: | root@salvator-x:~# cat /proc/meminfo | grep Cma | CmaTotal: 671744 kB | CmaFree: 629788 kB | root@salvator-x:~# | root@salvator-x:~# systemctl restart weston | root@salvator-x:~# | root@salvator-x:~# cat /proc/meminfo | grep Cma | CmaTotal: 671744 kB | CmaFree: 599404 kB It will make Weston crash because out of memory if restarting many times. This patch is a WORKAROUND to avoid the issue, it restarts dbus depend on Weston and memory will be released properly. Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Khang Nguyen <khang.nguyen.xv@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2018-01-30rcar-gen3: nativesdk-packagegroup-sdk-host: Install perl to SDKThao Nguyen1-0/+1
In rocko, perl packages for host PC have been removed from default SDK, so this commit adds perl and perl-dev for host PC into Yocto SDK. Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-11-24rcar-gen3: systemd: WORKAROUND to fix timeout dev-ttySN.deviceThuy Tran2-0/+14
This commit makes backporting changes from upstream systemd to fix timeout dev-ttySN.device by following: [systemd] - Set journal RuntimeMaxSize to 64M as default [1] [systemd-serialgetty] - Use the default RestartSec [2] [1] From Poky rev: d41968d8a8bd572b2892762f7092868950465014 [2] From Systemd rev: 4bf04322b8b7ecca4f3d65cfc642d0ac16356129 Signed-off-by: Thuy Tran <thuy.tran.xh@rvc.renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>
2017-08-25rcar-gen3: Use flexible coding style for Renesas datadirRonan Le Martret1-0/+5
This commit modifies recipes to use RENESAS_DATADIR variable for /usr/local directory instead of hard coding. This commit comes from AGL patch. Bug-AGL: SPEC-533 Change-Id: I865ea809c3c59ba136027fc8b99628df20c16275 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Signed-off-by: Thao Nguyen <thao.nguyen.yb@renesas.com> Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com> (cherry picked from commit 9598336fa2b4a4237255cdd866350eb7c03fdd81)
2017-01-27First commit.Renesas-Yocto-v2.16.0Takamitsu Honda3-0/+6
Renesas BSP v3.5.1 (kernel v4.9 stable) [Environment] poky: yocto-2.1.2 (cca8dd15c8096626052f6d8d25ff1e9a606104a3) meta-openembedded: 55c8a76da5dc099a7bc3838495c672140cedb78e meta-linaro: 2f51d38048599d9878f149d6d15539fb97603f8f [Information] - U-boot: Changed load address from H'49000000 to H'50000000 - XDG_RUNTIME_DIR has been changed from "/run/user/root" to "/run/user/0" - Change location of include directory, which stores common user header files, to $(INCSHARED) - In BSP Only, core-image-weston is not supported even though local-wayland.conf is provided. - Please set Salvator-x SW7 Pin-1. In after Yocto BSP v2.12.0, it is  necessary to enable BKUP_TRG signal for Suspend to RAM. - The dtb filename was changed in R-Car H3. Only "Image-r8a7795-es1-salvator-x.dtb" is supported in this version. Please use "Image-r8a7795-es1-salvator-x.dtb" It supports R-Car H3 WS1.0 and WS1.1. - Please update your local.conf and bblayers.conf corresponding to Yocto v2.16.0 package. You can refer to meta-rcargen3/docs/sample/conf/ for updated contents. - You have to re-compile out-of-recipe software like user application by v2.16.0 SDK toolchains. - In some boards, the resuming from System Suspend to RAM may cause unstable operation or failed to resume. Signed-off-by: Takamitsu Honda <takamitsu.honda.pv@renesas.com>