add(system): change filesystem with erofs.

This commit is contained in:
kangjun 2024-09-13 18:58:10 +08:00
parent 28f5653853
commit a96d42e82d
22 changed files with 43077 additions and 49 deletions

View File

@ -1366,7 +1366,7 @@
pinctrl-1 = <&spif_pins_c>;
pinctrl-names = "default", "sleep";
//prefetch_read_mode_enabled; /* choose prefect read mode */
//dtr_mode_enabled; /* choose double edge trigger mode */
dtr_mode_enabled; /* choose double edge trigger mode */
//dqs_mode_enabled; /* choose dqs mode(nand provide clk mode) */
status = "okay";

View File

@ -3143,7 +3143,11 @@ CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_DLM is not set
# CONFIG_EROFS_FS is not set
CONFIG_EROFS_FS=y
# CONFIG_EROFS_FS_DEBUG is not set
# CONFIG_EROFS_FS_XATTR is not set
CONFIG_EROFS_FS_ZIP=y
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=1
#
# Kernel hacking

View File

@ -2596,7 +2596,11 @@ CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_MAC_TURKISH is not set
# CONFIG_NLS_UTF8 is not set
# CONFIG_DLM is not set
# CONFIG_EROFS_FS is not set
CONFIG_EROFS_FS=y
# CONFIG_EROFS_FS_DEBUG is not set
# CONFIG_EROFS_FS_XATTR is not set
CONFIG_EROFS_FS_ZIP=y
CONFIG_EROFS_FS_CLUSTER_PAGE_LIMIT=1
#
# Kernel hacking

View File

@ -47,19 +47,19 @@ size = 16
[partition]
name = boot
size = 6016
size = 6144
downloadfile = "boot.fex"
user_type = 0x8000
[partition]
name = rootfs
size = 20480
size = 20992
downloadfile = "rootfs.fex"
user_type = 0x8000
[partition]
name = extend
size = 2048
size = 4352
downloadfile = "usr.fex"
user_type = 0x8000

View File

@ -56,8 +56,8 @@
#endif
#ifdef SENSOR_GC2083
#include "SENSOR_H/gc2083/gc2083_mipi_2_isp600_20231212_103735_gj_rgb.h"
#include "SENSOR_H/gc2083/gc2083_mipi_2_isp600_20230913_015805_gj_ir.h"
#include "SENSOR_H/gc2083/gc2083_mipi_isp600_20240911_color.h"
#include "SENSOR_H/gc2083/gc2083_mipi_isp600_20240911_ir.h"
#endif
#ifdef SENSOR_F37P
@ -1030,8 +1030,8 @@ struct isp_cfg_array cfg_arr[] = {
#endif
#ifdef SENSOR_GC2083
{"gc2083_mipi", "gc2083_mipi_2_isp600_20231212_103735_gj_rgb", 1920, 1088, 15, 0, 0, &gc2083_mipi_rgb_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_2_isp600_20230913_015805_gj_ir", 1920, 1088, 15, 0, 1, &gc2083_mipi_ir_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_isp600_20240911_color", 1920, 1088, 15, 0, 0, &gc2083_mipi_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_isp600_20240911_ir", 1920, 1088, 15, 0, 1, &gc2083_mipi_ir_isp_cfg},
#endif
#ifdef SENSOR_GC4663

View File

@ -1679,7 +1679,7 @@ u32 sunxi_gpadc_read_channel_data(u8 channel)
data = ((VOL_RANGE / 4096)*data); /* 12bits sample rate */
vol_data = data / 1000; //data to val_data
printk("vol_data: %d\n", vol_data);
// printk("vol_data: %d\n", vol_data);
return vol_data;
}

View File

@ -106,12 +106,12 @@
//#include "SENSOR_H/ov02b10_mipi_isp600_20240423_133842_ir.h"
#include "SENSOR_H/ov02b1b_mipi_isp600_20240613_color.h"
// #include "SENSOR_H/ov02b10_mipi_isp600_20240613_ir.h"
#include "SENSOR_H/ov02a10_mipi_isp600_20240619_ir.h"
#include "SENSOR_H/ov02b1b_mipi_isp600_20240911_ir.h"
#endif // CONFIG_SENSOR_OV02B10_MIPI
#ifdef CONFIG_SENSOR_GC2083_MIPI
#include "SENSOR_H/gc2083_mipi_2_isp600_20231212_103735_gj_rgb.h"
#include "SENSOR_H/gc2083_mipi_2_isp600_20230913_015805_gj_ir.h"
#include "SENSOR_H/gc2083_mipi_isp600_20240911_color.h"
#include "SENSOR_H/gc2083_mipi_isp600_20240911_ir.h"
#endif
#else
@ -186,13 +186,13 @@ struct isp_cfg_array cfg_arr[] = {
//{"ov02b10_mipi", "ov02b10_mipi_isp600_20240423_133842_ir", 1600, 1200, 30, 1, 0, &ov02b10_mipi_isp_ir_cfg},
{"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 0, 0, &ov02b1b_mipi_isp_cfg},
{"ov02b1b_mipi", "ov02b1b_mipi_isp600_20240613_color", 1600, 1200, 30, 1, 0, &ov02b1b_mipi_isp_cfg},
{"ov02b10_mipi", "ov02a10_mipi_isp600_20240619_ir", 1600, 1200, 30, 0, 0, &ov02a10_mipi_isp_cfg},
{"ov02b10_mipi", "ov02a10_mipi_isp600_20240619_ir", 1600, 1200, 30, 1, 0, &ov02a10_mipi_isp_cfg},
{"ov02b10_mipi", "ov02b1b_mipi_isp600_20240911_ir", 1600, 1200, 30, 0, 0, &os02b1b_mipi_ir_isp_cfg},
{"ov02b10_mipi", "ov02b1b_mipi_isp600_20240911_ir", 1600, 1200, 30, 1, 0, &os02b1b_mipi_ir_isp_cfg},
#endif // CONFIG_SENSOR_OV02B10_MIPI
#ifdef CONFIG_SENSOR_GC2083_MIPI
{"gc2083_mipi", "gc2083_mipi_2_isp600_20231212_103735_gj_rgb", 1920, 1088, 15, 0, 0, &gc2083_mipi_rgb_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_2_isp600_20230913_015805_gj_ir", 1920, 1088, 15, 0, 1, &gc2083_mipi_ir_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_isp600_20240911_color", 1920, 1088, 15, 0, 0, &gc2083_mipi_isp_cfg},
{"gc2083_mipi", "gc2083_mipi_isp600_20240911_ir", 1920, 1088, 15, 0, 1, &gc2083_mipi_ir_isp_cfg},
#endif
#ifdef CONFIG_SENSOR_GC1084_MIPI

View File

@ -139,4 +139,4 @@ if [ ! -f "/mnt/UDISK/pix_auth_key.bin" ]; then
cp /APP/res/pix_auth_key.bin /mnt/UDISK/pix_auth_key.bin
fi
/APP/SL100FRONTPANEL &
# /APP/SL100FRONTPANEL &

View File

@ -2,17 +2,17 @@
#audio
echo "------insmod audio modules start-----"
MODULES_DIR="/lib/modules/`uname -r`"
insmod $MODULES_DIR/soundcore.ko
insmod $MODULES_DIR/snd.ko
insmod $MODULES_DIR/snd-timer.ko
insmod $MODULES_DIR/snd-pcm.ko
insmod $MODULES_DIR/snd-pcm-dmaengine.ko
insmod $MODULES_DIR/snd-soc-core.ko
insmod $MODULES_DIR/snd_soc_sunxi_pcm.ko
insmod $MODULES_DIR/snd_soc_sunxi_component_rxsync.ko
insmod $MODULES_DIR/snd_soc_sunxi_aaudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_daudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
insmod $MODULES_DIR/snd_soc_sunxi_machine.ko
# MODULES_DIR="/lib/modules/`uname -r`"
# insmod $MODULES_DIR/soundcore.ko
# insmod $MODULES_DIR/snd.ko
# insmod $MODULES_DIR/snd-timer.ko
# insmod $MODULES_DIR/snd-pcm.ko
# insmod $MODULES_DIR/snd-pcm-dmaengine.ko
# insmod $MODULES_DIR/snd-soc-core.ko
# insmod $MODULES_DIR/snd_soc_sunxi_pcm.ko
# insmod $MODULES_DIR/snd_soc_sunxi_component_rxsync.ko
# insmod $MODULES_DIR/snd_soc_sunxi_aaudio.ko
# insmod $MODULES_DIR/snd_soc_sunxi_daudio.ko
# insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
# insmod $MODULES_DIR/snd_soc_sunxi_machine.ko
echo "------insmod audio modules end-----"

View File

@ -277,6 +277,8 @@ set_parts_by_name
mount_usr
[ x"$MOUNT_ETC" = x"1" ] && mount_etc
[ x"$MOUNT_OVERLAY" = x"1" ] && mount_overlay rootfs_data #choose rootfs_data or UDISK
# [ x"$MOUNT_OVERLAY" = x"1" ] && mount_overlay rootfs_data #choose rootfs_data or UDISK
/APP/SL100FRONTPANEL &
exec /sbin/init

View File

@ -0,0 +1,15 @@
#!/bin/sh
MODULES_DIR="/lib/modules/`uname -r`"
insmod $MODULES_DIR/soundcore.ko
insmod $MODULES_DIR/snd.ko
insmod $MODULES_DIR/snd-timer.ko
insmod $MODULES_DIR/snd-pcm.ko
insmod $MODULES_DIR/snd-pcm-dmaengine.ko
insmod $MODULES_DIR/snd-soc-core.ko
insmod $MODULES_DIR/snd_soc_sunxi_pcm.ko
insmod $MODULES_DIR/snd_soc_sunxi_component_rxsync.ko
insmod $MODULES_DIR/snd_soc_sunxi_aaudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_daudio.ko
insmod $MODULES_DIR/snd_soc_sunxi_internal_codec.ko
insmod $MODULES_DIR/snd_soc_sunxi_machine.ko

View File

@ -106,6 +106,6 @@ setusbconfig rndis
ifconfig usb0 up
ifconfig usb0 10.10.10.235
ifconfig usb0 10.10.10.253 netmask 255.255.255.0 broadcast 10.10.10.255
/etc/init.d/SL100FRONTPANEL &

View File

@ -52,18 +52,15 @@ CONFIG_EXTERNAL_CPIO=""
#
# CONFIG_TARGET_ROOTFS_EXT4FS is not set
# CONFIG_TARGET_ROOTFS_JFFS2 is not set
# CONFIG_TARGET_ROOTFS_EROFS is not set
CONFIG_TARGET_ROOTFS_SQUASHFS=y
CONFIG_TARGET_ROOTFS_EROFS=y
# CONFIG_TARGET_ROOTFS_SQUASHFS is not set
# CONFIG_ROOTFS_SQUASHFS_XZ is not set
CONFIG_ROOTFS_SQUASHFS_LZ4=y
# CONFIG_ROOTFS_SQUASHFS_LZ4 is not set
# CONFIG_ROOTFS_SQUASHFS_ZLIB is not set
# CONFIG_USR_SQUASHFS_FOLLOW_ROOTFS is not set
CONFIG_USR_SQUASHFS_XZ=y
# CONFIG_USR_SQUASHFS_XZ is not set
# CONFIG_USR_SQUASHFS_LZ4 is not set
# CONFIG_USR_SQUASHFS_ZLIB is not set
CONFIG_KERNEL_SQUASHFS_XZ=y
CONFIG_KERNEL_SQUASHFS_LZ4=y
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256
CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP=y
CONFIG_TARGET_UBIFS_JOURNAL_SIZE=""

View File

@ -59,17 +59,15 @@ CONFIG_EXTERNAL_CPIO=""
#
# CONFIG_TARGET_ROOTFS_EXT4FS is not set
# CONFIG_TARGET_ROOTFS_JFFS2 is not set
# CONFIG_TARGET_ROOTFS_EROFS is not set
CONFIG_TARGET_ROOTFS_SQUASHFS=y
CONFIG_ROOTFS_SQUASHFS_XZ=y
CONFIG_TARGET_ROOTFS_EROFS=y
# CONFIG_TARGET_ROOTFS_SQUASHFS is not set
# CONFIG_ROOTFS_SQUASHFS_XZ is not set
# CONFIG_ROOTFS_SQUASHFS_LZ4 is not set
# CONFIG_ROOTFS_SQUASHFS_ZLIB is not set
# CONFIG_USR_SQUASHFS_FOLLOW_ROOTFS is not set
CONFIG_USR_SQUASHFS_XZ=y
# CONFIG_USR_SQUASHFS_XZ is not set
# CONFIG_USR_SQUASHFS_LZ4 is not set
# CONFIG_USR_SQUASHFS_ZLIB is not set
CONFIG_KERNEL_SQUASHFS_XZ=y
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256
CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP=y
CONFIG_TARGET_UBIFS_JOURNAL_SIZE=""

View File

@ -13,10 +13,10 @@ define KernelPackage/vin-v4l2
FILES+=$(LINUX_DIR)/drivers/media/v4l2-core/videobuf2-memops.ko
FILES+=$(LINUX_DIR)/drivers/media/v4l2-core/videobuf2-v4l2.ko
FILES+=$(LINUX_DIR)/drivers/media/platform/sunxi-vin/vin_io.ko
FILES+=$(LINUX_DIR)/drivers/media/platform/sunxi-vin/modules/sensor/gc2083_mipi.ko
# FILES+=$(LINUX_DIR)/drivers/media/platform/sunxi-vin/modules/sensor/gc2083_mipi.ko
# FILES+=$(LINUX_DIR)/drivers/media/platform/sunxi-vin/modules/sensor_power/sensor_power.ko
FILES+=$(LINUX_DIR)/drivers/media/platform/sunxi-vin/vin_v4l2.ko
AUTOLOAD:=$(call AutoProbe,videobuf2-core videobuf2-dma-contig videobuf2-memops videobuf2-v4l2 vin_io gc2083_mipi vin_v4l2)
AUTOLOAD:=$(call AutoProbe,videobuf2-core videobuf2-dma-contig videobuf2-memops videobuf2-v4l2 vin_io vin_v4l2)
endef
define KernelPackage/vin-v4l2/description