!xmLtiCaAJxfhURjrXl:matrix.org

NixOS RISC-V

105 Members
NixOS on RISC-V https://wiki.nixos.org/wiki/RISC-V https://pad.lassul.us/NixOS-riscv64-linux 38 Servers

Load older messages


SenderMessageTime
29 Jun 2024
@atka:matrix.orgatka Nick Cao: thanks for the work on the Duo64 and Duo256! 21:30:26
@atka:matrix.orgatkais ION size supposed to be set to zero by default for these images?21:39:56
@atka:matrix.orgatka
[root@nixos-duo:~]# cat /sys/kernel/debug/ion/cvi_carveout_heap_dump/summary 
Summary:
[0] carveout heap size:28102656 bytes, used:0 bytes
usage rate:0%, memory usage peak 0 bytes

Details:
         heap_id   alloc_buf_size         phy_addr         kmap_cnt      buffer name


minimum ion allocate unit = 4096
free memory regions:
         heap_id            start              end           length
               0         8e333000         8fe00000         28102656
21:40:10
@atka:matrix.orgatkabuilt the duo256 image last night, only ~222MB free instead of ~247MB21:41:15
@atka:matrix.orgatka* built the duo256 image last night, only ~222MB free instead of ~250MB21:42:49
30 Jun 2024
@nickcao:nichi.coNick Cao
In reply to @atka:matrix.org
is ION size supposed to be set to zero by default for these images?
Yes, but requires a custom built fip.bin
01:41:50
@nickcao:nichi.coNick Cao
In reply to @nickcao:nichi.co
Yes, but requires a custom built fip.bin
It seems the one we are using already have ION size set to 0: https://github.com/mcdonc/duo-buildroot-sdk/tree/nixos-riscv
01:43:00
@nickcao:nichi.coNick Cao
In reply to @nickcao:nichi.co
Yes, but requires a custom built fip.bin
* It seems the one we are using can't have ION size set to 0: https://github.com/mcdonc/duo-buildroot-sdk/tree/nixos-riscv for some reason.
01:43:27
@atka:matrix.orgatka

perhaps this would work?

diff --git a/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py b/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
index fcc097d01..545af061c 100755
--- a/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
+++ b/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
@@ -40,10 +40,10 @@ class MemoryMap:
     # =================
     # Multimedia buffer. Used by u-boot/kernel/FreeRTOS
     # =================
-    ION_SIZE = 75 * SIZE_1M
-    H26X_BITSTREAM_SIZE = 2 * SIZE_1M
+    ION_SIZE = 0 * SIZE_1M
+    H26X_BITSTREAM_SIZE = 0 * SIZE_1M
     H26X_ENC_BUFF_SIZE = 0
-    ISP_MEM_BASE_SIZE = 20 * SIZE_1M
+    ISP_MEM_BASE_SIZE = 0 * SIZE_1M
     FREERTOS_RESERVED_ION_SIZE = H26X_BITSTREAM_SIZE + H26X_ENC_BUFF_SIZE + ISP_MEM_BASE_SIZE
 
     # ION after FreeRTOS
diff --git a/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh b/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
index b07a47db8..a539510d1 100644
--- a/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
+++ b/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
@@ -24,7 +24,7 @@ insmod /mnt/system/ko/cv181x_vcodec.ko
 insmod /mnt/system/ko/cv181x_jpeg.ko
 insmod /mnt/system/ko/cvi_vc_driver.ko MaxVencChnNum=9 MaxVdecChnNum=9
 #insmod /mnt/system/ko/cv181x_rtc.ko
-insmod /mnt/system/ko/cv181x_ive.ko
+#insmod /mnt/system/ko/cv181x_ive.ko
 
 echo 3 > /proc/sys/vm/drop_caches
 dmesg -n 4
01:48:15
@atka:matrix.orgatkahttps://github.com/milkv-duo/duo-buildroot-sdk/issues/7801:48:41
@nickcao:nichi.coNick Cao
In reply to @atka:matrix.org

perhaps this would work?

diff --git a/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py b/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
index fcc097d01..545af061c 100755
--- a/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
+++ b/build/boards/cv181x/cv1812cp_milkv_duo256m_sd/memmap.py
@@ -40,10 +40,10 @@ class MemoryMap:
     # =================
     # Multimedia buffer. Used by u-boot/kernel/FreeRTOS
     # =================
-    ION_SIZE = 75 * SIZE_1M
-    H26X_BITSTREAM_SIZE = 2 * SIZE_1M
+    ION_SIZE = 0 * SIZE_1M
+    H26X_BITSTREAM_SIZE = 0 * SIZE_1M
     H26X_ENC_BUFF_SIZE = 0
-    ISP_MEM_BASE_SIZE = 20 * SIZE_1M
+    ISP_MEM_BASE_SIZE = 0 * SIZE_1M
     FREERTOS_RESERVED_ION_SIZE = H26X_BITSTREAM_SIZE + H26X_ENC_BUFF_SIZE + ISP_MEM_BASE_SIZE
 
     # ION after FreeRTOS
diff --git a/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh b/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
index b07a47db8..a539510d1 100644
--- a/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
+++ b/ramdisk/rootfs/overlay/cv181x_musl_riscv64/system/ko/loadsystemko.sh
@@ -24,7 +24,7 @@ insmod /mnt/system/ko/cv181x_vcodec.ko
 insmod /mnt/system/ko/cv181x_jpeg.ko
 insmod /mnt/system/ko/cvi_vc_driver.ko MaxVencChnNum=9 MaxVdecChnNum=9
 #insmod /mnt/system/ko/cv181x_rtc.ko
-insmod /mnt/system/ko/cv181x_ive.ko
+#insmod /mnt/system/ko/cv181x_ive.ko
 
 echo 3 > /proc/sys/vm/drop_caches
 dmesg -n 4
Looks so. You can try this simply by rebuilding the fip (in a ubuntu container for simplicity) and replace prebuilt/fip-duo256.bin
01:52:56
@atka:matrix.orgatkaok, thanks! i'll try it out01:53:24
3 Jul 2024
@fgaz:matrix.orgfgaz Oasis LPCAMM2 poll https://community.milkv.io/t/your-vote-is-needed-should-milk-v-oasis-come-with-lpcamm2-or-lpddr5/2335 17:55:21
4 Jul 2024
@eyjhb:eyjhb.dk@eyjhb:eyjhb.dk left the room.11:00:44
5 Jul 2024
@sant0s:matrix.orgSantos joined the room.07:46:39
@lumikalt:the-apothecary.clublumi joined the room.11:09:13
7 Jul 2024
@balintmaci:matrix.org@balintmaci:matrix.org left the room.08:17:11
8 Jul 2024
@liamdiprose:mtrx.nzLiam joined the room.03:32:07
@burntk:matrix.orgSam O’nella changed their display name from BurntKrispe to Sam O’nella.04:55:33
@abbe:badti.me@abbe:badti.me left the room.11:30:17
@burntk:matrix.orgSam O’nella changed their profile picture.16:45:19
9 Jul 2024
@dramforever:matrix.orgdramforeverdoes anyone happen to be doing anything on banana pi bpi-f3 or spacemit k1? think i'll play around it in a few days but asking in case anyone has already done the hard work07:21:57
@ners:nixos.devners joined the room.08:10:23
@gamayagama:matrix.org@gamayagama:matrix.org joined the room.15:29:31
@gamayagama:matrix.org@gamayagama:matrix.org left the room.15:37:10
@sbc64:matrix.orgsbc64 joined the room.16:49:07
10 Jul 2024
@oak:universumi.fioak changed their profile picture.20:21:25
11 Jul 2024
@aleksana:mozilla.orgaleksana (force me to bed after 18:00 UTC) joined the room.13:02:26
@me:linj.techlinj joined the room.13:31:30
14 Jul 2024
@lantian:lantian.pubLan Tian joined the room.22:22:16

There are no newer messages yet.


Back to Room ListRoom Version: 10