Skip to content

Commit

Permalink
20240226
Browse files Browse the repository at this point in the history
  • Loading branch information
0x754C committed Feb 26, 2024
1 parent 2043c22 commit e76b67d
Show file tree
Hide file tree
Showing 78 changed files with 1,203,552 additions and 312,744 deletions.
146 changes: 53 additions & 93 deletions apply_patches.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,99 +29,6 @@ git am ../patches/osdrv/0005-extdrv-tp-ts_gt9xx-gt9xx.h-change-touch-size-for-zc

cd ..

cd ramdisk
# add aic8800 sdio wifi firmware
git am ../patches/ramdisk/0001-rootfs-public-wifi-musl_riscv64-add-aic8800-sdio-wif.patch

# add script for wifi module load on bootup
git am ../patches/ramdisk/0002-rootfs-public-wifi-musl_riscv64-etc-add-script-for-w.patch

# add S99skel and sensor_cfg.ini (default camera config file)
git am ../patches/ramdisk/0003-rootfs-overlay-sg2002_licheervnano_sd-add-S99skel-se.patch

# add jump script for alt rootfs
git am ../patches/ramdisk/0004-rootfs-overlay-sg2002_licheervnano_sd-add-jump-scrip.patch

# mount tmpfs when disk mount failed,
git am ../patches/ramdisk/0005-rootfs-overlay-sg2002_licheervnano_sd-jump-if-mount-.patch

# allow dropbear save host key into disk
git am ../patches/ramdisk/0006-public-dropbear-musl_riscv64-etc-dropbear-allow-drop.patch

# add custom config file for vendor custom, such as: user, hostname, skel
git am ../patches/ramdisk/0007-rootfs-overlay-sg2002_licheervnano_sd-etc-add-custom.patch

# add cdc acm script use for provide virtual com port on usb gadget
git am ../patches/ramdisk/0008-rootfs-public-add-cdc-acm-script.patch

# add getty listen on ttyGS0 (gadget cdc acm)
git am ../patches/ramdisk/0009-rootfs-overlay-sg2002_licheervnano_sd-etc-inittab-ad.patch

# add lcd startup script and test program (abgr1555)
git am ../patches/ramdisk/0010-rootfs-public-add-lcd-startup-script-test-program.patch

# mount /dev/mmcblk0p1 /boot on bootup
git am ../patches/ramdisk/0011-rootfs-overlay-sg2002_licheervnano_sd-etc-fstab-moun.patch

# start wpa_supplicant on bootup
# raspberrypi style wpa_supplicant initial setup:
# use wpa_supplicant.conf into /boot
git am ../patches/ramdisk/0012-rootfs-public-wifi-musl_riscv64-etc-init.d-S50wpa-st.patch

# add missing parted tool fro musl riscv64, use for partition expaned
git am ../patches/ramdisk/0013-parted-musl_riscv64-bin-parted-add-missing-parted-fo.patch

# add busybox full version, because we need udhcpd
git am ../patches/ramdisk/0014-common_musl_riscv64-bin-busybox-add-busybox-full-ver.patch

# move kernel module load into S00board, S99user is too late
git am ../patches/ramdisk/0015-overlay-musl_riscv64-etc-init.d-S00board-move-system.patch

# if `/etc/dropbear not found, create it
git am ../patches/ramdisk/0016-rootfs-public-dropbear-musl_riscv64-etc-init.d-S50dr.patch
git am ../patches/ramdisk/0019-rootfs-public-dropbear-musl_riscv64-etc-init.d-S50dr.patch

# re-enable serial port autologin
git am ../patches/ramdisk/0017-rootfs-overlay-sg2002_licheervnano_sd-etc-inittab-re.patch

# some busybox not support mkdir -v, so remove it
git am ../patches/ramdisk/0018-rootfs-overlay-sg2002_licheervnano_sd-busybox-mkdir-.patch

# add sftp-server, use for file trans
git am ../patches/ramdisk/0020-rootfs-public-sftp-server-add-sftp-server.patch

# add package alsa, use for audio record/play
git am ../patches/ramdisk/0021-rootfs-public-alsa-add-package-alsa.patch

# alsamixer need terminfo
git am ../patches/ramdisk/0022-rootfs-public-alsa-add-package-terminfo-some-package.patch

# add strace, use for debug
git am ../patches/ramdisk/0023-rootfs-public-strace-add-package-strace.patch

# add ekermit, use for file trans
git am ../patches/ramdisk/0024-rootfs-public-ek-add-package-ek-ekermit.patch

# add evtest, use for touchscreen debug
git am ../patches/ramdisk/0025-rootfs-public-evtest-add-package-evtest.patch

# add empty, use for automate input, like (tcl expect)
git am ../patches/ramdisk/0026-rootfs-public-empty-add-package-empty.patch

# add LD_LIBRARY_PATH, fix sample_audio symbol missing
git am ../patches/ramdisk/0027-rootfs-common_musl_riscv64-etc-profile-set-default-l.patch

# save /var/log into disk
git am ../patches/ramdisk/0028-rootfs-common_musl_riscv64-var-save-log-in-disk.patch

# add package tpuddemo for tpu test
git am ../patches/ramdisk/0029-rootfs-public-tpudemo-add-tpudemo-for-test.patch

# add /etc/securtty fix root password login on serial port
git am ../patches/ramdisk/0030-rootfs-overlay-sg2002_licheervnano_sd-fix-root-passw.patch

cd ..

cd middleware
# install sample_vio sensor_test sample_audio into rootfs
git am ../patches/middleware/0001-v2-Makefile-install-vio-sensor_test-audio-demo-into-.patch
Expand All @@ -148,6 +55,18 @@ git am ../patches/middleware/0008-v2-sample-common-sample_common_sensor.c-fix-se
# fix sample_vio crash, thank lxowalle
git am ../patches/middleware/0009-v2-sample-vio-sample_vio.c-fix-crash-thank-lxowalle.patch

# fix mipi screen hd22801c31 initial
git am ../patches/middleware/0010-v2-component-panel-sg200x-dsi_st7701_hd228001c31.h-r.patch

# add alt hd22801c31 timing(not working)
git am ../patches/middleware/0011-v2-component-panel-sg200x-dsi_st7701_hd228001c31_alt.patch

# add mipi panel st7701_d300fpc9307a support
git am ../patches/middleware/0012-v2-sample-mipi_tx-sample_dsi-add-st7701_d300fpc9307a.patch

# fix CVI_U8 redefine
git am ../patches/middleware/0013-v2-component-panel-sg200x-fix-CVI_U8-redefine.patch

cd ..


Expand Down Expand Up @@ -221,6 +140,27 @@ git am ../patches/build/0022-boards-sg200x-sg2002_licheervnano_sd-sg2002_licheer
# licheervnano linux kernel enable some feature for systemd based distro
git am ../patches/build/0023-boards-sg200x-sg2002_licheervnano_sd-linux-sg2002_li.patch

# add panel hd22801c31_alt0 into panel list
git am ../patches/build/0024-panels-panel_list.json-add-st7701_hd228001c31_alt0.patch

# change rootfs partition max size, 32MiB is too small, change to 40MiB
git am ../patches/build/0025-tools-common-sd_tools-genimage_rootless.cfg-resize-r.patch

# enable haveged unifont qt5 qt5demo
git am ../patches/build/0026-sg2002_licheervnano_sd_defconfig-enable-haveged-unif.patch

# add st7701_d300fpc9307a into panel list
git am ../patches/build/0027-panels-panel_list.json-add-st7701_d300fpc9307a.patch

# licheervnano: enable libdaemon expat dbus avahi
git am ../patches/build/0028-sg2002_licheervnano_defconfig-enable-libdaemon-expat.patch

git am ../patches/build/0029-genimage_rootless.cfg-fix-resize2fs-too-slow.patch
git am ../patches/build/0030-licheervnano_sd-clean_rootfs.sh-not-used.patch
git am ../patches/build/0031-sg2002_licheervnano_sd_defconfig-clean-buggy-package.patch
git am ../patches/build/0032-linux-sg2002_licheervnano_sd_defconfig-add-gpio-key.patch
git am ../patches/build/0033-sg2002_licheervnano_sd_defconfig-add-input-event-dae.patch

cd ..


Expand All @@ -241,4 +181,24 @@ git am ../patches/u-boot-2021.10/0004-include-cvitek-cvi_panels-dsi_zct2133v1.h-
# disable startvl on bootup, because it cause lcd show green background on blank
git am ../patches/u-boot-2021.10/0005-include-cvitek-cvi_panels-cvi_panel_diffs.h-disable-.patch

# add mipi panel st7701_hd228001c31_alt0
git am ../patches/u-boot-2021.10/0006-include-cvitek-cvi_panels-add-dsi_st7701_hd228001c31.patch

# add mipi panel st7701_d300fpc9307a
git am ../patches/u-boot-2021.10/0007-include-cvitek-cvi_panels-add-dsi_st7701_d300fpc9307.patch

cd ..


exit 0
cd ramdisk
git am ../patches/ramdisk/0001-rootfs-public-add-a-lot-of-package-for-licheervnano.patch
git am ../patches/ramdisk/0002-src-add-qt5.patch
git am ../patches/ramdisk/0003-src-add-avahi-dbus-expat-libdaemon-doc.patch
git am ../patches/ramdisk/0004-overlay-add-sg2002_licheervnano_sd.patch
git am ../patches/ramdisk/0005-src-add-openssh-openssl.patch
git am ../patches/ramdisk/0006-common_musl_riscv64-busybox-upgrade.patch
git am ../patches/ramdisk/0007-common_musl_riscv64-S40network-allow-load-config-fro.patch
cd ..


3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ RUN ldconfig && apt update -y && \
python3-pip python3-pexpect xz-utils debianutils\
iputils-ping python3-git python3-jinja2 python3-subunit\
zstd liblz4-tool libacl1 parted erofs-utils genext2fs mtools\
fatcat ckermit neovim cscope asciinema libconfuse-dev dosfstools
fatcat ckermit neovim cscope asciinema libconfuse-dev dosfstools\
gettext autoconf-archive

RUN echo en_US.UTF-8 UTF-8 >> /etc/locale.gen
RUN locale-gen
1 change: 1 addition & 0 deletions host-tools
Submodule host-tools added at b8b708
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From ce3c8ad822b88cac3f9a58b1253b6d69a929c9c5 Mon Sep 17 00:00:00 2001
From 7e2ac8696eb505f092a130c894c29c7b003895ee Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 14:17:19 +0800
Subject: [PATCH 01/13] boards: default: dts: sg200x: soph_base.dtsi: allow vo
Subject: [PATCH 01/33] boards: default: dts: sg200x: soph_base.dtsi: allow vo
and cvifb modify by other dts

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From d4b27497375018d8182330d71d67051ba65f1a2e Mon Sep 17 00:00:00 2001
From 1cca0a40539396f4ea0da82c03b3d5f32dd61141 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 14:52:49 +0800
Subject: [PATCH 02/13] tools: common: sd_tools: add
Subject: [PATCH 02/33] tools: common: sd_tools: add
sd_gen_burn_image_rootless.sh

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From eb734cc949588ac78c1635f671ea7aa6bf1aac61 Mon Sep 17 00:00:00 2001
From ca7d171912b8180a1ca5ce939ed561a7be58c4af Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 14:56:24 +0800
Subject: [PATCH 03/13] boards: sg200x: add sg2002_licheervnano_sd
Subject: [PATCH 03/33] boards: sg200x: add sg2002_licheervnano_sd

---
.../sg200x/sg2002_licheervnano_sd/config.json | 9 +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 3c5aa0b9ca9aeefb71a779225b20d5e24c3fab16 Mon Sep 17 00:00:00 2001
From 09bec129903565900d645e2f23e059a2c31f02e3 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 15:49:29 +0800
Subject: [PATCH 04/13] boards: sg200: sg2002_licheervnano_sd: enable aic8800
Subject: [PATCH 04/33] boards: sg200: sg2002_licheervnano_sd: enable aic8800
sdio wifi support

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 57da5bf843f6fe6034ea910fc5164fb1e0ca99fb Mon Sep 17 00:00:00 2001
From e7e09d3920ec4145f0a7275002e621aedb696c75 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 16:14:47 +0800
Subject: [PATCH 05/13] tools/common/sd_tools/genimage_rootless.cfg: add user
Subject: [PATCH 05/33] tools/common/sd_tools/genimage_rootless.cfg: add user
partition

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From e54886add6cea85bd2a839f7c4b9cce92a881a57 Mon Sep 17 00:00:00 2001
From 92cde7b1ea2f68d25b98b58424b8bd6f6faaf9da Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 16:15:17 +0800
Subject: [PATCH 06/13] boards: sg200x: sg2002_licheervnano_sd: enable rndis
Subject: [PATCH 06/33] boards: sg200x: sg2002_licheervnano_sd: enable rndis
script

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 7d718f9aa2a8778bcc1f6959903e54d6f48c2363 Mon Sep 17 00:00:00 2001
From 6f472de0e6dcbcd1a89ff45852574f67405a0053 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 17:03:06 +0800
Subject: [PATCH 07/13] boards: sg200x: sg2002_licheervnano_sd: dont clean
Subject: [PATCH 07/33] boards: sg200x: sg2002_licheervnano_sd: dont clean
middleware demo

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From f0fb61231b89d9c60d6f270a2cc5a445eac2ca1b Mon Sep 17 00:00:00 2001
From 6a617165cffc9f94930661b99c09e8e81056f1cf Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 17:14:31 +0800
Subject: [PATCH 08/13] Kconfig: why wireless driver install depend
Subject: [PATCH 08/33] Kconfig: why wireless driver install depend
FLASH_SIZE_SHRINK?

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 064d6ecc82ee3bc5e2e47bb190d4a3fad23dd9be Mon Sep 17 00:00:00 2001
From 4605b299c5b863f1c144acce6d12ac8fdfa3eae5 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 17:15:18 +0800
Subject: [PATCH 09/13] boards: sg200x: sg2002_licheervnano_sd: fix missing
Subject: [PATCH 09/33] boards: sg200x: sg2002_licheervnano_sd: fix missing
wifi kernel module install

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 036e62c7cb9868f3de65b19e06aa51d45be1ae0e Mon Sep 17 00:00:00 2001
From 1b3880fd97d611b709eda20c33b4f7ff5be8ad6e Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 18:57:01 +0800
Subject: [PATCH 10/13] boards: sg200x: sg2002_licheervnano_sd: fix lcd reset
Subject: [PATCH 10/33] boards: sg200x: sg2002_licheervnano_sd: fix lcd reset
in devicetree

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 2d7d1c118b412150fe5091ba807bb0a046bd166b Mon Sep 17 00:00:00 2001
From 3f07199ccc2f180e301d022c2e5c0deae4688181 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 18:57:27 +0800
Subject: [PATCH 11/13] boards: sg200x: sg2002_licheervnano_sd: enable lcd
Subject: [PATCH 11/33] boards: sg200x: sg2002_licheervnano_sd: enable lcd
support in uboot

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 9b41cf6ff52ea8bd108834c93c13629a50775ccd Mon Sep 17 00:00:00 2001
From eb40c1832322abd588141fc8de43a6c43ffb48b1 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 19:03:07 +0800
Subject: [PATCH 12/13] panels/panel_list.json: add dsi_st7701_hd228001c31
Subject: [PATCH 12/33] panels/panel_list.json: add dsi_st7701_hd228001c31

---
panels/panel_list.json | 1 +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From fdc23fc14a4d888f8a1432242a4eed83c1b86a32 Mon Sep 17 00:00:00 2001
From d3895ed5cbaad2e582b50514039fe7ae22b16f60 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Mon, 19 Feb 2024 19:03:50 +0800
Subject: [PATCH 13/13] boards: sg200x: sg2002_licheervnano_sd: select
Subject: [PATCH 13/33] boards: sg200x: sg2002_licheervnano_sd: select
MIPI_PANEL_ST7701_HD228001C31 for default mipi panel(uboot)

---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 359d24b156e308af2322fd8d4fa8a60151a2953e Mon Sep 17 00:00:00 2001
From 9238b6504280dedf992fa12b9f9cee3142b2dc1c Mon Sep 17 00:00:00 2001
From: Lu <[email protected]>
Date: Mon, 19 Feb 2024 21:46:10 +0800
Subject: [PATCH 14/14] cvisetup.sh: enable uboot lcd init by default
Subject: [PATCH 14/33] cvisetup.sh: enable uboot lcd init by default

---
envsetup_soc.sh | 7 ++++++-
Expand Down Expand Up @@ -31,5 +31,5 @@ index bbee779..0ff5987 100644
SENSOR=${SENSOR:-sony_imx327}
}
--
2.35.8
2.40.1

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 5d822ddeb04a43af6de3af19d52cd00888c7f905 Mon Sep 17 00:00:00 2001
From 459ad12d9d29530396d739597a1ab7c4b2c48662 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 10:41:53 +0800
Subject: [PATCH 15/17]
Subject: [PATCH 15/33]
boards/sg200x/sg2002_licheervnano_sd/sg2002_licheervnano_sd_defconfig:
disable rndis script, enable acm script

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 8f9c4918f57865812708e2fe8b959fa5e906d854 Mon Sep 17 00:00:00 2001
From 735a4101fb948b8f3739b99d8c75940a0ad1f458 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 10:42:24 +0800
Subject: [PATCH 16/17] boards/sg200x/sg2002_licheervnano_sd/memmap.py: change
Subject: [PATCH 16/33] boards/sg200x/sg2002_licheervnano_sd/memmap.py: change
framebuffer memory region size to 8000K

---
Expand Down
4 changes: 2 additions & 2 deletions patches/build/0017-panels-panel_list.json-add-zct2133v1.patch
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 909f1df2d358b6c9b6c6903691b1fdbcc2bc080a Mon Sep 17 00:00:00 2001
From eca18f7fe8485918151e8f54aac4dfb2fc682d8b Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 10:42:41 +0800
Subject: [PATCH 17/17] panels/panel_list.json: add zct2133v1
Subject: [PATCH 17/33] panels/panel_list.json: add zct2133v1

---
panels/panel_list.json | 1 +
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From de6a11cc3eeed3f59290351205c75123507d6fe7 Mon Sep 17 00:00:00 2001
From 3f4d8c391a316950ee1cf254f8c56859b8c988e0 Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 11:18:29 +0800
Subject: [PATCH 18/18]
Subject: [PATCH 18/33]
boards/sg200x/sg2002_licheervnano_sd/sg2002_licheervnano_sd_defconfig:
default use 7inch zct2133v1 panel

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 5ddee25a970ed65f1afee8668134cf4f58d3882d Mon Sep 17 00:00:00 2001
From 3eab1406a54a3575c988f8d4dc5d2d5f9aa82bdf Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 11:28:59 +0800
Subject: [PATCH 19/19]
Subject: [PATCH 19/33]
boards/sg200x/sg2002_licheervnano_sd/sg2002_licheervnano_sd_defconfig: enable
package lcd

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
From 492e2e60b2b4bf08b89fe89f12daa44b1124491e Mon Sep 17 00:00:00 2001
From fcafc4a2e92da0218092d82b6ee34c1a749f821d Mon Sep 17 00:00:00 2001
From: Lu Hui <[email protected]>
Date: Tue, 20 Feb 2024 16:44:32 +0800
Subject: [PATCH 20/20]
Subject: [PATCH 20/33]
boards/sg200x/sg2002_licheervnano_sd/sg2002_licheervnano_sd_defconfig: enable
a lot of package, for debug usage

Expand Down
Loading

0 comments on commit e76b67d

Please sign in to comment.