Commit Graph

163 Commits

Author SHA1 Message Date
andy.hu 76cf4d45f4 Merge branch 'CR_5613_update_img_ddk1.19_package_Andy.Hu2' into 'jh7110-devel-img1.19'
CR_5613: package/{mesa3d, mesa3d-headers}: bump version to 22.1.3

See merge request sdk/buildroot!106
2023-06-11 06:44:55 +00:00
Andy Hu 7796d5d83d package/img-gpu-powervr: update new bin package hash for turn off pvr assert
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-11 14:40:40 +08:00
Andy Hu ae604fb194 package/img-gpu-powervr: update for the new IMG DDK 1.19 package
Note that the new IMG DDK support gallium driver
and no longer support dri driver

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:52:06 +08:00
Andy Hu 5e4957e3ef package/weston: enable wl_shell interface in weston 10 for VK-GL-CTS
For weston 10, support for the deprecated wl_shell interface is now disabled by default
It will be removed in a future release, re-enable it with the Meson option
      -Ddeprecated-wl-shell=true
link: https://www.mail-archive.com/wayland-devel@lists.freedesktop.org/msg41415.html
Enable it for the VK-GL-CTS still use the wl_shell API

Signed-off-by: Tien Hock Loh <tienhock.loh@starfivetech.com>
2023-06-01 22:44:46 +08:00
Andy Hu e1839688b8 package/weston: bump to version 10.0.1
upgrade the weston to 10.0.1 for IMG DDK 1.19
and copy patches from IMG DDK 1.19

fix the patch and building issue

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:43:28 +08:00
Andy Hu eb6c3c5a84 package/wayland-utils: bump to version 1.1.0
keep version same with the offical buildroot tag 2022.08

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:17:39 +08:00
Andy Hu 93720a7770 package/wayland-protocols: bump to version 1.27
upgrade it for mesa3d v22.1.3 need version great than 1.23

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:15:34 +08:00
Andy Hu 917f3af2c6 package/wayland: bump to version 1.21.0
upgrade wayland to 1.21.0 for IMG DDK 1.19
and copy patches from IMG DDK 1.19

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:12:50 +08:00
Andy Hu 7eec1be1af package/libdrm: bump version to 2.4.110
upgrade the libdrm to 2.4.110 for IMG DDK 1.19
keep patches files

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-06-01 22:10:23 +08:00
Andy Hu 7566503cc1 package/{mesa3d, mesa3d-headers}: bump version to 22.1.3
upgrade the mesa3d and mesa3d-headers to v22.1.3
and copy patch from IMG DDK 1.19

keep the 0002-Force-Mesa-to-use-the-PVR-driver-for-platform-device.patch
to force the pvr driver

Note that the new version mesa3d support gallium driver
and no longer support dri driver

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
Signed-off-by: Windsome Zeng <Windsome.Zeng@starfivetech.com>
2023-06-01 22:08:04 +08:00
andy.hu 969f7d13f2 Merge branch 'CR_5501_GPU_upgrade_ddk1.19' into 'jh7110-devel'
CR_5501: package/starfive/img-gpu-powervr: upgrade IMG DDK library to 1.19

See merge request sdk/buildroot!103
2023-05-22 03:09:32 +00:00
Andy Hu 29ee3f6529 package/starfive/img-gpu-powervr: upgrade IMG DDK library to 1.19
Upgrade Imagination DDK source to 1.19

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-20 02:05:33 +08:00
andy.hu 5237540a8b Merge branch 'CR_3508_update_toolchain_2' into 'jh7110-devel'
CR_3508: update gcc toolchain to gcc 12

See merge request sdk/buildroot!102
2023-05-19 03:36:37 +00:00
Andy Hu ff068cb477 gdb: update gdb version to 12.1 from upstream tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 11:08:02 +08:00
Andy Hu 80ccfb9339 linux-header: support above linux 5.15 or 6.0 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 10:49:10 +08:00
Andy Hu 4412284d75 img-gpu-powervr: update the new binary library built with the gcc 12.2.0
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:05:13 +08:00
Andy Hu 3b6505746a package: glibc: Add optimization memory operations for RISCV
Port the memcpy & memset implementation from
Linux kerenl to glibc to improve performance of
memory operations in user space.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-05-19 00:03:37 +08:00
Andy Hu 953c6e2267 package/Makefile.in: use riscv new cppflags
building the whold sdk with:
TARGET_CPPFLAGS += -mabi=lp64d -march=rv64imafdc_zicsr_zifencei_zba_zbb \
  -mcpu=sifive-u74 -mtune=sifive-7-series -fomit-frame-pointer \
  --param l1-cache-size=32 --param l2-cache-size=2048

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:30 +08:00
Andy Hu bcce1c86ec glmark2: fix building issue for gcc 12.2.0
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:25 +08:00
Andy Hu d02c4a78f0 arch: add _zicsr_zifencei_zba_zbb as default march for gcc toolchain
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:18 +08:00
Andy Hu cce9841ee9 toolchain: update toolchain setting from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:14 +08:00
Andy Hu 389dc57182 gcc: update to support gcc 11.3.0 and 12.2.0 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:02:09 +08:00
Andy Hu 650e638627 glibc: update to support 2.36 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-19 00:01:41 +08:00
Andy Hu 687ac0c040 binutils: update to support 2.38 and 2.39 from offical tag 2022.11.3
Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-05-18 23:44:40 +08:00
Romain Naour 134149d57f arch/Config.in.riscv: enable Zicsr and Zifencei standalone extensions with gcc >= 12
Since gcc 12, the default RISC-V ISA spec version was bump to 20191213 [1].

This bump introduces a major compatibility issue: support for the csr read/write
(csrr*/csrw*) instructions and fence.i instruction has been separated
from the "I" extension, becoming two standalone extensions: Zicsr and
Zifencei. gcc now has specific -march suffixes to enable those
extensions (_zicsr and _zifencei). If they are not used and code that
uses these instructions is built, one would get errors such as
unrecognized opcode "csrr" (or "fence.i").

For example, without Zifencei we can't build the opensbi
bootloader[2]:

opensbi-1.0/lib/sbi/sbi_tlb.c: Assembler messages:
opensbi-1.0/lib/sbi/sbi_tlb.c:190: Error: unrecognized opcode `fence.i', extension `zifencei' required

As a workaround, the opensbi build system has been patched [3] to use
-march=rv64imafdc_zicsr_zifencei when needed.  This workaround doesn't
work in Buildroot due to the local patch
0001-Makefile-Don-t-specify-mabi-or-march.patch which removes -march
from CFLAGS.

In the context of Buildroot, we have decided for now to assume that
all RISC-V cores that are Linux capable will implement the Zicsr and
Zifencei extensions: it is in fact the case today ase these extensions
were part of the I extension, that all cores support. OpenSBI and
Linux are making the same assumption (see [5]).

Therefore, when gcc >= 12, the -march value gets appended with
_zicsr_zifencei.

[1] https://gcc.gnu.org/gcc-12/changes.html
[2] https://github.com/riscv-software-src/opensbi/blob/v0.9/lib/sbi/sbi_tlb.c#L173
[3] https://github.com/riscv-software-src/opensbi/commit/5d53b55aa77ffeefd4012445dfa6ad3535e1ff2c
[4] https://groups.google.com/a/groups.riscv.org/g/sw-dev/c/aE1ZeHHCYf4
[5] http://lists.busybox.net/pipermail/buildroot/2022-July/646698.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Cc: Mark Corbin <mark@dibsco.co.uk>
[Thomas: add comment in .mk file, rework commit log]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2023-05-18 23:24:35 +08:00
andy.hu c4695ba8d8 Merge branch 'CR_4951_memcpy_optimization_mason.huo' into 'jh7110-devel'
CR_4951 package: glibc: Add optimization memory copy with aligned version

See merge request sdk/buildroot!97
2023-04-26 09:52:46 +00:00
andy.hu 5ec8f6854a Merge branch 'CR_5160_Reduce_release_IP_time_samin.guo' into 'jh7110-devel'
CR_5160:ifplugd: Reduce the IP release time

See merge request sdk/buildroot!99
2023-04-26 09:52:06 +00:00
andy.hu ec3a6dc4dd Merge branch 'CR_5049_Optimize_swapoff_mason.huo' into 'jh7110-devel'
CR_5049 package: starfive: Optimize the swapoff partition

See merge request sdk/buildroot!98
2023-04-26 09:47:38 +00:00
Samin Guo 910ecaeb5e ifplugd: Reduce the IP release time
IP release time reduced from 10 seconds to 1 second

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-04-26 15:21:37 +08:00
Mason Huo 8b0d868279 package: starfive: Optimize the swapoff partition
Check if the swap partition ("hibernation") exist or not
before swapoff command.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-24 11:38:45 +08:00
andy.hu 6d540bf363 Merge branch 'CR_4754_swapon_optimize_mason.huo' into 'jh7110-devel'
CR_4754 package: starfive: Optimize the swapon partition

See merge request sdk/buildroot!96
2023-04-19 11:39:18 +00:00
Mason Huo 013b3a25e8 package: glibc: Add optimization memory copy with aligned version
Port the linux kernel memcpy function for optimizing
the 128 byte align case, this will improve the
performance of large block memcpy.

Here we combine the memcpy of glibc and kernel.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-17 14:55:09 +08:00
Mason Huo 8d66d14452 package: starfive: Optimize the swapon partition
Check if the swap partition ("hibernation") exist or not
before swapon command.
Since the partlabel appears late, change the script
excution sequence to 99.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-04-17 14:50:32 +08:00
andy.hu 868e6d3437 Merge branch 'CR_4174_glibc_optimize_mason.huo' into 'jh7110-devel'
CR_4174 package: glibc: Add optimization memory operations for RISCV

See merge request sdk/buildroot!95
2023-03-30 11:25:43 +00:00
Mason Huo 8ac10aeb41 package: glibc: Add optimization memory operations for RISCV
Port the memcpy & memset implementation from
Linux kerenl to glibc to improve performance of
memory operations in user space.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-03-21 16:49:35 +08:00
andy.hu 6e5ff2929a Merge branch 'CR_4142_IMG_GPU_Disable_pdump_Andy.hu' into 'jh7110-devel'
CR_4142: package/starfive/img-gpu-powervr: update sha256 value for new tar ball

See merge request sdk/buildroot!94
2023-03-20 16:47:18 +00:00
Andy Hu 42b8427cca package/starfive/img-gpu-powervr: update sha256 value for new tar ball
disable pdump for v1.17

PDUMP was enabled by default. This causes some performance
issues on GPU. Hence, we would need to disable PDUMP in
kernel space and userspace.

Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2023-03-21 00:41:35 +08:00
andy.hu 5b3d30734c Merge branch 'CR_3071_add_usb_device_ms_configs_minda' into 'jh7110-devel'
CR_3071 usb:add usb mass storage more config

See merge request sdk/buildroot!92
2023-01-17 11:09:25 +00:00
minda.chen 5e82470c44 usb:add usb mass storage more config
In emmc/sdcard boot case, add more usb device
mass storage configs.

Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-17 16:06:53 +08:00
andy.hu 0a417a545e Merge branch 'CR_3049_Hibernation_mason.huo' into 'jh7110-devel'
CR_3049 package: starfive: Add hibernation script to pm package

See merge request sdk/buildroot!91
2023-01-06 06:42:27 +00:00
mason.huo 62a97a3582 package: starfive: Add hibernation script to pm package
Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-05 13:14:34 +08:00
andy.hu 4a361eadcd Merge branch 'CR_2767_ISP_SDK_Kevin.xie' into 'jh7110-devel'
CR 2767 ispsdk: Fix error sc2335 sensor config command on isp daemon.

See merge request sdk/buildroot!90
2022-12-09 04:51:51 +00:00
andy.hu 232d757599 Merge branch 'CR_2809_Net_Status_detection_samin.guo' into 'jh7110-devel'
CR2809: Support IP automatic release

See merge request sdk/buildroot!89
2022-12-09 04:42:57 +00:00
Kevin.xie 540861f360 ispsdk: Fix error sc2335 sensor config command on isp daemon.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-12-07 15:48:43 +08:00
Samin Guo 9b17acc9aa package/ifplugd: add eth1 support.
Support the automatic IP acquisition/release of eth1.

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-12-06 17:29:56 +08:00
Samin Guo 4af5f4a913 package/ifupdown-scripts: add hotplug support
When you plug the network cable, you can call ifplugd to automatically
release and obtain the IP

Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-12-06 16:09:08 +08:00
Jianlong Huang c30b506664 ifupdown: Add dual network dhcp
For visionfive2, there are two network interface
Add dual network dhcp for the 2nd interface

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-12-06 15:46:34 +08:00
andy.hu d7540d4316 Merge branch 'CR_2727_ISP_SDK_Kevin.xie' into 'jh7110-devel'
CR 2727 ispsdk: Fix conflicting installation of ispsdk daemon script and output files.

See merge request sdk/buildroot!87
2022-11-25 10:49:05 +00:00
Kevin.xie 279154692a ispsdk: Fix conflicting installation of ispsdk daemon script and output files.
Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-22 16:23:05 +08:00
andy.hu f146fb9672 Merge branch 'CR_2530_ISP_SDK_Kevin.xie' into 'jh7110-devel'
CR_2530_ISP_SDK : Start a daemon for stf_isp_ctrl during bootup

See merge request sdk/buildroot!83
2022-11-17 13:33:36 +00:00