| 29 Jun 2024 |
| maka_77x joined the room. | 00:48:18 |
| @burntk:matrix.org changed their display name from burntkrispe to BurntKrispe. | 05:28:39 |
atka | Nick Cao: thanks for the work on the Duo64 and Duo256! | 21:30:26 |
atka | is ION size supposed to be set to zero by default for these images? | 21:39:56 |
atka | [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 | built the duo256 image last night, only ~222MB free instead of ~247MB | 21:41:15 |
atka | * built the duo256 image last night, only ~222MB free instead of ~250MB | 21:42:49 |
| 30 Jun 2024 |
Nick 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 |
Nick 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 |
Nick 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 | 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 | https://github.com/milkv-duo/duo-buildroot-sdk/issues/78 | 01:48:41 |
Nick 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 | ok, thanks! i'll try it out | 01:53:24 |
| 3 Jul 2024 |
fgaz | 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 left the room. | 11:00:44 |
| 5 Jul 2024 |
| Santos joined the room. | 07:46:39 |
| lumi joined the room. | 11:09:13 |
| 7 Jul 2024 |
| startswithbalint left the room. | 08:17:11 |
| 8 Jul 2024 |
| Liam joined the room. | 03:32:07 |
| @burntk:matrix.org changed their display name from BurntKrispe to Sam O’nella. | 04:55:33 |
| abbe left the room. | 11:30:17 |
| @burntk:matrix.org changed their profile picture. | 16:45:19 |
| 9 Jul 2024 |
dramforever | does 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 work | 07:21:57 |
| ners joined the room. | 08:10:23 |
| @gamayagama:matrix.org joined the room. | 15:29:31 |
| @gamayagama:matrix.org left the room. | 15:37:10 |
| @sbc64:matrix.org joined the room. | 16:49:07 |
| 10 Jul 2024 |
| oak changed their profile picture. | 20:21:25 |
| 11 Jul 2024 |
| Find me at aleksana:qaq.li joined the room. | 13:02:26 |