Forráskód Böngészése

Merge tag 'VF2_515_v2.8.0' into JH7110_VisionFive2_devel

VF2_515_v2.8.0 base on JH7110_515_SDK_v4.0.0-rc2
1. Linux base on JH7110_515_SDK_v4.0.0-rc2
2. Usdk and buildroot base on JH7110_MM_515_v4.0.0-rc2
3. #3121 Add hibernation support for VF2 linux defconfig
4. #3068 Extend CONFIG_SYS_MALLOC_F_LEN size fix spl issue
5. #2876 make gpio reset priority lower than pmic reset
Andy Hu 1 éve
szülő
commit
c184855630
9 módosított fájl, 50 hozzáadás és 10 törlés
  1. 13 4
      Makefile
  2. 28 1
      README.md
  3. 1 1
      buildroot
  4. 1 0
      conf/buildroot_initramfs_config
  5. 3 0
      conf/buildroot_rootfs_config
  6. 1 1
      linux
  7. 1 1
      opensbi
  8. 1 1
      soft_3rdpart
  9. 1 1
      u-boot

+ 13 - 4
Makefile

@@ -42,6 +42,7 @@ vmlinux := $(linux_wrkdir)/vmlinux
 vmlinux_stripped := $(linux_wrkdir)/vmlinux-stripped
 vmlinux_bin := $(wrkdir)/vmlinux.bin
 module_install_path:=$(wrkdir)/module_install_path
+perf_tool_path := $(linux_srcdir)/tools/perf
 
 its_file=$(confdir)/$(HWBOARD)-fit-image.its
 uboot_its_file=$(confdir)/$(HWBOARD)-uboot-fit-image.its
@@ -174,11 +175,11 @@ $(buildroot_rootfs_wrkdir)/.config: $(buildroot_srcdir) $(buildroot_initramfs_ta
 	$(MAKE) -C $< RISCV=$(RISCV) PATH=$(RVPATH) O=$(buildroot_rootfs_wrkdir) olddefconfig
 
 $(buildroot_rootfs_ext): $(buildroot_srcdir) $(buildroot_rootfs_wrkdir)/.config $(target_gcc) $(buildroot_rootfs_config) $(version)	
-	mkdir -p $(buildroot_rootfs_wrkdir)/target/lib/
+	mkdir -p $(buildroot_rootfs_wrkdir)/target/lib
 	cp -r $(module_install_path)/lib/modules $(buildroot_rootfs_wrkdir)/target/lib/
-	$(MAKE) -C $< RISCV=$(RISCV) PATH=$(RVPATH) O=$(buildroot_rootfs_wrkdir)
+	mkdir -p $(buildroot_rootfs_wrkdir)/target/usr/bin
+	cp $(perf_tool_path)/perf $(buildroot_rootfs_wrkdir)/target/usr/bin/
 	cp $(version) $(buildroot_rootfs_wrkdir)/target/usr/bin/version
-	rm -rf $(buildroot_rootfs_ext)
 	$(MAKE) -C $< RISCV=$(RISCV) PATH=$(RVPATH) O=$(buildroot_rootfs_wrkdir)
 
 .PHONY: buildroot_rootfs
@@ -238,14 +239,22 @@ vpudriver-build: $(vmlinux)
 	$(MAKE) -C $(buildroot_initramfs_wrkdir) O=$(buildroot_initramfs_wrkdir) \
 		INSTALL_MOD_PATH=$(module_install_path) codaj12driver
 
+linux-tools-build: $(vmlinux)
+	$(MAKE) -C $(perf_tool_path) \
+		ARCH=riscv \
+		CROSS_COMPILE=$(CROSS_COMPILE) \
+		WERROR=0 NO_GTK2=1 NO_LIBPERL=1 \
+		NO_LIBBIONIC=1
+
 .PHONY: initrd
 initrd: $(initramfs)
 
 $(initramfs).d: $(buildroot_initramfs_sysroot)
 	$(linux_srcdir)/usr/gen_initramfs_list.sh -l $(confdir)/initramfs.txt $(buildroot_initramfs_sysroot) > $@
 
-$(initramfs): $(buildroot_initramfs_sysroot) $(vmlinux) vpudriver-build $(version)
+$(initramfs): $(buildroot_initramfs_sysroot) $(vmlinux) vpudriver-build $(version) linux-tools-build
 	cp -r $(module_install_path)/lib/modules $(buildroot_initramfs_sysroot)/lib/
+	cp $(perf_tool_path)/perf $(buildroot_initramfs_sysroot)/usr/bin/
 	cp $(version) $(buildroot_initramfs_sysroot)/usr/bin/version && \
 	cd $(linux_wrkdir) && \
 		$(linux_srcdir)/usr/gen_initramfs_list.sh \

+ 28 - 1
README.md

@@ -323,8 +323,35 @@ old_desc_blocks = 2, new_desc_blocks = 118
 The filesystem on /dev/mmcblk1p4 is now 30859756 (1k) blocks long.
 ```
 
-## APPENDIX II: Using DTB Overlay Dynamically
+If you need to add a new partition, such as a swap partition (here we do set the rest of disk space to swap partition,
+but normally swap partition size should be the same as DDR size or double of DDR size),
+you can use the following shell script afer the image running on board:
+
+```bash
+#!bin/sh
+sgdisk -e /dev/mmcblk0
+disk=/dev/mmcblk0
+gdisk $disk << EOF
+p
+n
+5
+
+
+8200
+p
+c
+5
+hibernation
+w
+y
+EOF
+
+mkswap /dev/mmcblk0p5
+swapoff -a
+swapon /dev/mmcblk0p5
+```
 
+## APPENDIX II: Using DTB Overlay Dynamically
 The system support loading dtb overlay dynamically when the board is running. Run below on board:
 
 ```

+ 1 - 1
buildroot

@@ -1 +1 @@
-Subproject commit 34f6816fd8a8cb3d17a14edcba94330664139a52
+Subproject commit eac4dda9b6f532cd83a118c131b453ffa1a1922e

+ 1 - 0
conf/buildroot_initramfs_config

@@ -144,6 +144,7 @@ BR2_PACKAGE_GPTFDISK_SGDISK=y
 BR2_PACKAGE_I2C_TOOLS=y
 BR2_PACKAGE_MEMTESTER=y
 BR2_PACKAGE_PCIUTILS=y
+BR2_PACKAGE_RNG_TOOLS=y
 BR2_PACKAGE_SYSSTAT=y
 BR2_PACKAGE_PYTHON3=y
 BR2_PACKAGE_LIBKCAPI=y

+ 3 - 0
conf/buildroot_rootfs_config

@@ -129,6 +129,7 @@ BR2_PACKAGE_GPTFDISK_SGDISK=y
 BR2_PACKAGE_I2C_TOOLS=y
 BR2_PACKAGE_MEMTESTER=y
 BR2_PACKAGE_PCIUTILS=y
+BR2_PACKAGE_RNG_TOOLS=y
 BR2_PACKAGE_SYSSTAT=y
 BR2_PACKAGE_PYTHON3=y
 BR2_PACKAGE_LIBKCAPI=y
@@ -147,6 +148,8 @@ BR2_PACKAGE_LIBCAMERA=y
 BR2_PACKAGE_LIBCAMERA_V4L2=y
 BR2_PACKAGE_LIBCAMERA_PIPELINE_UVCVIDEO=y
 BR2_PACKAGE_LIBCAMERA_PIPELINE_STARFIVE=y
+BR2_PACKAGE_LIBCAP=y
+BR2_PACKAGE_LIBCAP_TOOLS=y
 BR2_PACKAGE_LIBEVENT=y
 BR2_PACKAGE_MSMTP=y
 BR2_PACKAGE_BLUEZ5_UTILS=y

+ 1 - 1
linux

@@ -1 +1 @@
-Subproject commit 162a9afb0b009393f4f21ee8c20d773131fd6b1e
+Subproject commit 59cf9af678dbfa3d73f6cb86ed1ae7219da9f5c9

+ 1 - 1
opensbi

@@ -1 +1 @@
-Subproject commit 6f1fe98c2f565a394f258178b0daa3843672395c
+Subproject commit 7700244f4d334d765ee5d994c3849ade09fb6844

+ 1 - 1
soft_3rdpart

@@ -1 +1 @@
-Subproject commit 13975a3826bb98bd9a201780131262b6dd373452
+Subproject commit b580826be8a00fb8143bc5ea3310ba12af612468

+ 1 - 1
u-boot

@@ -1 +1 @@
-Subproject commit 66a72185a813c36b8975fd7ded9d74d6a5525db7
+Subproject commit f1d959f0b02e16842181a4c1723ba3ea30d2e04a