您尚未登录。

#1 全志 SOC » [V3S H.264编解码]Allwinner V3/V3s/S3 H.264 video encoder » 2024-02-29 11:24:30

ronz
回复: 0

Bootlin 很高兴地宣布在 Allwinner V3/V3s/S3 平台上发布了对 H.264 视频编码的 Linux 内核支持,以主线 Linux cedrus驱动程序(已支持解码)之上的一系列补丁的形式发布以及专用的用户空间测试工具。

https://bootlin.com/blog/open-source-linux-kernel-support-for-the-allwinner-v3-v3s-s3-h-264-video-encoder/

GIT:
https://github.com/bootlin/linux/tree/cedrus/h264-encoding
https://github.com/bootlin/v4l2-cedrus-enc-test

看之前帖子也有相关的,大神们有最新的进展吗?

#3 Re: 全志 SOC » 围观网友 @FMer 手焊 eMMC, 并成功启动 V3s Linux » 2023-05-09 10:42:34

ronz 说:

@晕哥 我也搞了个emmc转tf,是按照TF卡的步骤直接分区,烧录对吧?然后直接就能启动?不需要对uboot、kernel做改动?

搞定了,重新搞了个emmc就可以起来了

#4 Re: 全志 SOC » 围观网友 @FMer 手焊 eMMC, 并成功启动 V3s Linux » 2023-05-06 14:53:47

@晕哥 我也搞了个emmc转tf,是按照TF卡的步骤直接分区,烧录对吧?然后直接就能启动?不需要对uboot、kernel做改动?

#7 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl8.2 freetype 如何支持 » 2022-09-22 08:01:43

达子666 说:

@ronz
你用的是这里面的嘛,然后改一下makefile:

git clone https://github.com/lvgl/lv_port_linux_frame_buffer

/**
* @file lv_drv_conf.h
* Configuration file for v8.2.0
*/

/*
是的,8.2 我记错了

#8 Re: 计算机图形/GUI/RTOS/FileSystem/OpenGL/DirectX/SDL2 » lvgl8.2 freetype 如何支持 » 2022-09-21 15:52:19

我用的8.1
下载freetype-2.10.0
./configure CC=arm-linux-gnueabihf-gcc --host=arm-linux --prefix=$PWD/library --with-zlib=no --with-png=no
make
make install

lvgl makefile -- 参照

FREERTYPE_DIR ?= ../freetype-2.10.0
FREERTYPE_INCDIR ?= ../freetype-2.10.0/library/include/freetype2
FREERTYPE_LINK ?= ../freetype-2.10.0/library/lib

CFLAGS ?= -O3 -g0 -I$(LVGL_DIR)/ -I$(MIXML_DIR)/  \
        -I$(FREERTYPE_INCDIR)/ -I$(FREERTYPE_LINK)/ \
        -I$(FFMPEG_INDIR)/ -I$(FFMPEG_LINK)/ \
        -Wall -Wshadow -Wundef   \
        -Wno-unused-function \
        -fno-strict-aliasing -Wno-error=cpp \
        -Wno-error=pedantic \
        -Wno-error=missing-prototypes -Wdouble-promotion -Wclobbered -Wdeprecated \
        -Wempty-body -Wshift-negative-value -Wstack-usage=2048 -Wno-unused-value \
        -Wuninitialized -Wmaybe-uninitialized \
        -Wextra -Wno-unused-parameter -Wno-missing-field-initializers \
        -Wtype-limits -Wsizeof-pointer-memaccess -Wno-format-nonliteral \
        -Wpointer-arith -Wno-cast-qual -Wmissing-prototypes -Wunreachable-code \
        -Wno-switch-default -Wreturn-type -Wmultichar -Wno-discarded-qualifiers \
        -Wformat-security -Wno-ignored-qualifiers -Wno-sign-compare -O3
LDFLAGS ?= -lm   -L$(FREERTYPE_LINK)/ -lfreetype \
          -L$(FFMPEG_LINK)/ -lavformat -lavcodec -lavutil -lswscale -lm -lpthread

#9 Re: 全志 SOC » v3s U-boot启动界面分享 » 2022-08-26 13:31:13

期待2022 uboot - spi nand flash版本,折腾了半天没搞起来

#10 Re: 全志 SOC » 试一试 Ubuntu 18.04 编译f1c200s tina 3.x » 2022-07-29 12:55:45

X3 说:

make降到3.81版本,没什么卵用。

最终修改 lichee/linux-4.9/drivers/char/sunxi-di/Makefile 屏蔽 -include $(obj)/$(sub_dir)/Makefile

对的,感谢大佬!

#11 Re: 全志 SOC » Allwinner S3 u-boot 2020.04 (DisplayEngine2 + Fastboot线刷) » 2022-07-27 12:44:09

大佬,我好奇你的开机logo实现了吗?不知道能不能运行

#12 Re: 全志 SOC » V3S 主线linux5.2 SPI 增加CS遇到的问题 » 2022-07-16 20:11:40

搞定了 谢谢大佬

&pio {
	    spi0_cs_pins: spi0_cs_pins {
		pins = "PC2", "PB2";
		function = "gpio_out";
		};
};

&spi0 {
		/ needed to avoid dtc warning /
		#address-cells = <1>;
		#size-cells = <0>;
		
		status = "okay";
		pinctrl-names = "default";
		pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
		cs-gpios = <&pio 2 2 GPIO_ACTIVE_HIGH>, <&pio 1 2 GPIO_ACTIVE_HIGH>;
        
        spi_nand: spi_nand@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "spi-nand";
                reg = <0x0>;
                spi-max-frequency = <50000000>;

                partition@0 {
                    label = "uboot";
                    reg = <0x0 0x100000>;
                    read-only;
                };

                partition@100000 {
                    label = "dtb";
                    reg = <0x100000 0x20000>;
                    read-only;
                };

                partition@120000 {
                    label = "kernel";
                    reg = <0x120000 0x800000>;
                    read-only;
                };

                partition@920000 {
                    label = "rootfs";
                    reg = <0x920000 0x79E0000>;
                };
            };
        
                
        mb85rs256:mb85rs2mta@1 {
                compatible = "jedec,spi-nor";
                reg = <0x1>;
                spi-max-frequency = <45000000>;
                #address-cells = <1>;
                #size-cells = <1>;
        	};	
		
	};

LOG

[    0.853517] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.865110] spi-nand spi0.0: GigaDevice SPI NAND was found.
[    0.870780] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.879806] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.886165] Creating 4 MTD partitions on "spi0.0":
[    0.891040] 0x000000000000-0x000000100000 : "uboot"
[    0.898358] 0x000000100000-0x000000120000 : "dtb"
[    0.904275] 0x000000120000-0x000000920000 : "kernel"
[    0.910170] random: fast init done
[    0.929055] 0x000000920000-0x000008300000 : "rootfs"
[    0.934131] mtd: partition "rootfs" extends beyond the end of device "spi0.0" -- size truncated to 0x76e0000
[    1.081048] random: crng init done
[    1.177381] m25p80 spi0.1: mb85rs2mta (256 Kbytes)
[    1.183734] usbcore: registered new interface driver rndis_wlan
[    1.190289] usbcore: registered new interface driver cdc_ether
[    1.196164] usbcore: registered new interface driver rndis_host
[    1.202158] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.208680] ehci-platform: EHCI generic platform driver
[    1.214235] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.219914] ehci-platform 1c1a000.usb: new USB bus registered, assigne

#13 Re: 全志 SOC » V3S 主线linux5.2 SPI 增加CS遇到的问题 » 2022-07-15 22:46:46

image_2022_07_15T09_33_23_568Z.pngimage_2022_07_15T09_33_05_552Z.png

谢大佬指点,不在报cs占用了
m25p80 spi0.0: unrecognized JEDEC id bytes: 04 c8 51 c8 51 c8
这个 ID是 nand flash,不是FRAM的
难道FRAM的频率有点低?他datasheet最大是45
我设置的25.....

#14 全志 SOC » V3S 主线linux5.2 SPI 增加CS遇到的问题 » 2022-07-15 18:34:07

ronz
回复: 3

不废话
主线5.2.0 想挂个FRAM  CS选的PB2

单独的FRAM   或者 单独的SPI NAND都是可以的,但是同时就是不行

DTS

&pio {
	    spi0_cs_pins: spi0_cs_pins {
		pins = "PC2", "PB2";
		function = "gpio_out";
		};
};

&spi0 {
		/* needed to avoid dtc warning */
		#address-cells = <1>;
		#size-cells = <0>;
		
		status = "okay";
		pinctrl-names = "default";
		pinctrl-0 = <&spi0_pins &spi0_cs_pins>;
		cs-gpios = <&pio 2 2 GPIO_ACTIVE_HIGH>, <&pio 1 2 GPIO_ACTIVE_HIGH>;
        
        spi_nand: spi_nand@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "spi-nand";
                reg = <0>;
                spi-max-frequency = <50000000>;

                partition@0 {
                    label = "uboot";
                    reg = <0x0 0x100000>;
                    read-only;
                };

                partition@100000 {
                    label = "dtb";
                    reg = <0x100000 0x20000>;
                    read-only;
                };

                partition@120000 {
                    label = "kernel";
                    reg = <0x120000 0x800000>;
                    read-only;
                };

                partition@920000 {
                    label = "rootfs";
                    reg = <0x920000 0x79E0000>;
                };
            };
        
                
        mb85rs256:mb85rs2mta@0 {
                compatible = "jedec,spi-nor";
                reg = <0x0>;
                spi-max-frequency = <25000000>;
                #address-cells = <1>;
                #size-cells = <1>;
        	};	
		
	};

LOG:

   0.791005] printk: console [ttyS0] enabled
[    0.816903] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.852444] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.864037] spi-nand spi0.0: GigaDevice SPI NAND was found.
[    0.869702] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 128
[    0.878622] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.885073] Creating 4 MTD partitions on "spi0.0":
[    0.889908] 0x000000000000-0x000000100000 : "uboot"
[    0.897741] 0x000000100000-0x000000120000 : "dtb"
[    0.903663] 0x000000120000-0x000000920000 : "kernel"
[    0.909452] random: fast init done
[    0.928650] 0x000000920000-0x000008300000 : "rootfs"
[    0.933722] mtd: partition "rootfs" extends beyond the end of device "spi0.0" -- size truncated to 0x76e0000
[    1.081055] random: crng init done
[    1.177988] sun6i-spi 1c68000.spi: chipselect 0 already in use
[    1.183898] spi_master spi0: spi_device register error /soc/spi@1c68000/mb85rs2mta@0
[    1.191667] spi_master spi0: Failed to create SPI device for /soc/spi@1c68000/mb85rs2mta@0

我已经参考了
H5的spi控制器驱动, 可以通过 gpio 控制 spi 片选 (转载)

#15 Re: 全志 SOC » V3S SPINAND移植使用主线U-Boot和主线Linux » 2022-07-14 09:11:52

ronz 说:

@zhang235hai
我刚刚也试了试,确实一样的错

解决了

楼主这句话:
修改arch/arm/mach-sunxi/Makefile,添加obj-$(CONFIG_SPL_SPINAND_SUNXI)    += spl_spinand_sunxi.o

修改下
修改arch/arm/mach-sunxi/Makefile,

ifdef CONFIG_SPL_BUILD
里添加
obj-$(CONFIG_SPL_SPINAND_SUNXI)    += spl_spinand_sunxi.o

示例

# SPDX-License-Identifier: GPL-2.0+
#
# (C) Copyright 2012 Henrik Nordstrom <henrik@henriknordstrom.net>
#
# Based on some other Makefile
# (C) Copyright 2000-2003
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.

obj-y	+= board.o
obj-y	+= clock.o
obj-y	+= cpu_info.o
obj-y	+= dram_helpers.o
obj-y	+= pinmux.o
obj-$(CONFIG_SUN6I_PRCM)	+= prcm.o
obj-$(CONFIG_AXP_PMIC_BUS)	+= pmic_bus.o
obj-$(CONFIG_MACH_SUNIV)	+= clock_sun6i.o
obj-$(CONFIG_MACH_SUN4I)	+= clock_sun4i.o
obj-$(CONFIG_MACH_SUN5I)	+= clock_sun4i.o
obj-$(CONFIG_MACH_SUN6I)	+= clock_sun6i.o
obj-$(CONFIG_MACH_SUN7I)	+= clock_sun4i.o
obj-$(CONFIG_MACH_SUN50I)	+= clock_sun6i.o
ifdef CONFIG_MACH_SUN8I_A83T
obj-y				+= clock_sun8i_a83t.o
else
obj-$(CONFIG_MACH_SUN8I)	+= clock_sun6i.o
endif
obj-$(CONFIG_MACH_SUN9I)	+= clock_sun9i.o gtbus_sun9i.o
obj-$(CONFIG_SUN50I_GEN_H6)	+= clock_sun50i_h6.o
ifndef CONFIG_ARM64
obj-y	+= timer.o
endif

ifdef CONFIG_SPL_BUILD
obj-$(CONFIG_MACH_SUNIV)	+= dram_suniv.o
obj-$(CONFIG_DRAM_SUN4I)	+= dram_sun4i.o
obj-$(CONFIG_DRAM_SUN6I)	+= dram_sun6i.o
obj-$(CONFIG_DRAM_SUN8I_A23)	+= dram_sun8i_a23.o
obj-$(CONFIG_DRAM_SUN8I_A33)	+= dram_sun8i_a33.o
obj-$(CONFIG_DRAM_SUN8I_A83T)	+= dram_sun8i_a83t.o
obj-$(CONFIG_DRAM_SUN9I)	+= dram_sun9i.o
obj-$(CONFIG_SPL_SPI_SUNXI)	+= spl_spi_sunxi.o
obj-$(CONFIG_SUNXI_DRAM_DW)	+= dram_sunxi_dw.o
obj-$(CONFIG_SUNXI_DRAM_DW)	+= dram_timings/
obj-$(CONFIG_DRAM_SUN50I_H6)	+= dram_sun50i_h6.o
obj-$(CONFIG_DRAM_SUN50I_H6)	+= dram_timings/
obj-$(CONFIG_DRAM_SUN50I_H616)	+= dram_sun50i_h616.o
obj-$(CONFIG_DRAM_SUN50I_H616)	+= dram_timings/
obj-$(CONFIG_SPL_SPINAND_SUNXI)    += spl_spinand_sunxi.o
endif

#16 Re: 全志 SOC » V3S SPINAND移植使用主线U-Boot和主线Linux » 2022-07-13 13:53:01

@zhang235hai
我刚刚也试了试,确实一样的错

#18 Re: 全志 SOC » V3s使用gstreamer的插件openmax调用cedar硬解码,荔枝派zero测试通过 » 2022-04-28 14:02:45

我又换成了buildroot 2020.08.3 (还保留了bellagio),主线linux5.2,移植了libcedar
# ls /dev/
bus/                ptys7               tty36               ttyr8
cec0                ptys8               tty37               ttyr9
cec1                ptys9               tty38               ttyra
cedar_dev           ptysa               tty39               ttyrb
console             ptysb               tty4                ttyrc
cpu_dma_latency     ptysc               tty40               ttyrd
fb0                 ptysd               tty41               ttyre
fd/                 ptyse               tty42               ttyrf
full                ptysf               tty43               ttys0
gpiochip0           ptyt0               tty44               ttys1
i2c-0               ptyt1               tty45               ttys2
ion                 ptyt2               tty46               ttys3
kmsg                ptyt3               tty47               ttys4
log                 ptyt4               tty48               ttys5
media0              ptyt5               tty49               ttys6
media1              ptyt6               tty5                ttys7

# gst-launch-1.0 filesrc location=/root/h2demo.mp4 ! qtdemux ! h264parse ! omxh2
64dec ! autovideoconvert ! fbdevsink
WARNING: erroneous pipeline: no element "h264parse"

# gst-inspect-1.0 --gst-debug-level=4 h264parse
0:00:00.003252875   175    0x3ce80 INFO                GST_INIT gstmessage.c:128:_priv_gst_message_initialize: init messages
0:00:00.007057209   175    0x3ce80 INFO                GST_INIT gstcontext.c:84:_priv_gst_context_initialize: init contexts
0:00:00.008619625   175    0x3ce80 INFO      GST_PLUGIN_LOADING gstplugin.c:318:_priv_gst_plugin_initialize: registering 0 static plugins
0:00:00.009887167   175    0x3ce80 INFO      GST_PLUGIN_LOADING gstplugin.c:226:gst_plugin_register_static: registered static plugin "staticelements"
0:00:00.010048917   175    0x3ce80 INFO      GST_PLUGIN_LOADING gstplugin.c:228:gst_plugin_register_static: added static plugin "staticelements", result: 1
0:00:00.010163542   175    0x3ce80 INFO            GST_REGISTRY gstregistry.c:1720:ensure_current_registry: reading registry cache: /root/.cache/gstreamer-1.0/registry.cortex-a7.bin
0:00:00.027715000   175    0x3ce80 INFO            GST_REGISTRY gstregistrybinary.c:621:priv_gst_registry_binary_read_cache: loaded /root/.cache/gstreamer-1.0/registry.cortex-a7.bin in 0.017286 seconds
0:00:00.028062625   175    0x3ce80 INFO            GST_REGISTRY gstregistry.c:1579:scan_and_update_registry: Validating plugins from registry cache: /root/.cache/gstreamer-1.0/registry.cortex-a7.bin
0:00:00.029380834   175    0x3ce80 INFO            GST_REGISTRY gstregistry.c:1678:scan_and_update_registry: Registry cache has not changed
0:00:00.029535042   175    0x3ce80 INFO            GST_REGISTRY gstregistry.c:1755:ensure_current_registry: registry reading and updating done, result = 1
0:00:00.029615750   175    0x3ce80 INFO                GST_INIT gst.c:806:init_post: GLib runtime version: 2.64.4
0:00:00.029683709   175    0x3ce80 INFO                GST_INIT gst.c:808:init_post: GLib headers version: 2.64.4
0:00:00.029729792   175    0x3ce80 INFO                GST_INIT gst.c:810:init_post: initialized GStreamer successfully


请问大佬啥原因?

#19 Re: 全志 SOC » V3s使用gstreamer的插件openmax调用cedar硬解码,荔枝派zero测试通过 » 2022-04-27 01:03:19

我倒是可以編譯通過了,用的buildroot-2021.02.7, 沒有開啓 gst1-plugins-bayer2rgb-neon

v3s,主線linux5.2

# gst-launch-1.0 filesrc location=h2demo.mp4 ! h264parse ! omxh264dec ! autovideoconvert ! fbdevsink
Setting pipeline to PAUSED ...
* failed to open vchiq instance

#20 Re: SigmaStar/SSD201/SSD202/SSD212 » ssd201 lvgl ffmpeg » 2022-04-24 01:33:06

我目前用的v3s,可能沒有開啓硬解碼,lvgl8+ffmpeg
參數:
./configure --enable-cross-compile --cross-prefix=arm-linux-gnueabihf- --arch=arm --target-os=linux --prefix=$PWD/library --disable-all --disable-autodetect --disable-podpages --disable-asm --enable-shared --disable-static --disable-ffmpeg --disable-ffplay --disable-ffprobe  --disable-doc --enable-avcodec --enable-avformat --enable-decoders --enable-encoders --enable-demuxers --enable-parsers --enable-protocol='file' --enable-swscale --disable-zlib

lvgl
-lavformat -lavcodec -lavutil -lswscale -lm  -lpthread

void lv_example_ffmpeg(void)
{
    lv_obj_t * player = lv_ffmpeg_player_create(lv_scr_act());
    lv_ffmpeg_player_set_src(player, "/root/h2demo.mp4");
    lv_ffmpeg_player_set_auto_restart(player, true);
    lv_ffmpeg_player_set_cmd(player, LV_FFMPEG_PLAYER_CMD_START);
    lv_obj_center(player);
}

加載的240X400 mp4 h.264 30fps特別卡,cpu 95%

#23 Re: 全志 SOC » 新版本主线内核上的并行RGB LCD适配(解决启动过程中屏幕变白问题) » 2022-02-18 19:49:42

最近一直在研究这个,不过是spi+rgb的,学习了,谢谢大佬

#24 Re: 全志 SOC » 关于Zero v3s驱动ST7701S IPS 480*480屏 SPI+RGB,有大佬写个入门教程吗? » 2022-02-17 08:56:50

请问有详细教程吗?我这里也有个 spi+rgb的 ili的,一直驱动不起来,spi写不进去,我这是45pin的,需要额外接线。

#25 Re: 全志 SOC » 请教licheeppi-zero v5.2 内核后有/dev/dri/card0设备,modetest 貌似有问题。烦请大佬们围观指点,谢了 » 2022-01-21 11:53:59

chenzh 说:

亲测,licheepi-zero以下分支的drm是不对的:
zero-4.13.y
zero-4.13-exp.y
zero-4.14.y
zero-5.2.y

有哪些是对的?

#26 Re: 全志 SOC » 网站需要改革,放开文件下载权限(不需要与积分挂钩) » 2022-01-12 17:42:48

@illusion
说的很对,虽然我也花钱买过积分。
但是还是支持。

#27 Re: 全志 SOC » v3s 驱动ili9341屏幕问题, » 2022-01-10 15:29:58

大佬,能发个ili9341 对应能用的的40pin的屏幕淘宝链接?

#30 Re: 全志 SOC » 尝试使用Ubuntu20.04从零构建Licheepi V3s Zero的SPI Flash系统镜像(32M) » 2021-11-20 01:30:58

淡定 说:

github下载好慢,而且还会断。有没有从百度网盘下载的链接?

git clone https://github.com/xxx.git
改成:
git clone https://github.com.cnpmjs.org/xxx.git

试试这个。

#31 Re: 全志 SOC » 尝试使用Ubuntu20.04从零构建Licheepi V3s Zero的SPI Flash系统镜像(32M) » 2021-11-20 01:30:04

我们想拿v3s替换目前的st,找了个v3s开发板用的qt。。加上一堆不需要的东西,启动速度超慢,这个让我看到了希望。感激分享。

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn