tigger 发布的最佳帖子
-
R818 tina Linux 运行 mjpg-streamer + usb camera
R818 tina sdk 勾选:
# CONFIG_PACKAGE_live is not set CONFIG_PACKAGE_mjpg-streamer=y # CONFIG_MJPG_STREAMER_V4L2 is not set CONFIG_MJPG_STREAMER_INPUT_FILE=y CONFIG_MJPG_STREAMER_INPUT_UVC=y CONFIG_MJPG_STREAMER_INPUT_TESTPICTURE=y CONFIG_MJPG_STREAMER_OUTPUT_FILE=y CONFIG_MJPG_STREAMER_OUTPUT_HTTP=y CONFIG_MJPG_STREAMER_WWW=y
linux kernel勾选:
CONFIG_MEDIA_USB_SUPPORT=y # # Webcam devices # CONFIG_USB_VIDEO_CLASS=y CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y # CONFIG_USB_GSPCA is not set
和:
CONFIG_MEDIA_SUPPORT=y # # Multimedia core support # CONFIG_MEDIA_CAMERA_SUPPORT=y # CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set # CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set # CONFIG_MEDIA_RADIO_SUPPORT is not set # CONFIG_MEDIA_SDR_SUPPORT is not set CONFIG_MEDIA_RC_SUPPORT=y CONFIG_MEDIA_CONTROLLER=y # CONFIG_MEDIA_CONTROLLER_DVB is not set CONFIG_VIDEO_DEV=y CONFIG_VIDEO_V4L2_SUBDEV_API=y CONFIG_VIDEO_V4L2=y # CONFIG_VIDEO_ADV_DEBUG is not set # CONFIG_VIDEO_FIXED_MINOR_RANGES is not set CONFIG_VIDEOBUF2_CORE=y CONFIG_VIDEOBUF2_MEMOPS=y CONFIG_VIDEOBUF2_DMA_CONTIG=m CONFIG_VIDEOBUF2_VMALLOC=y # CONFIG_TTPCI_EEPROM is not set
命令行运行:
mjpg_streamer -i "/usr/lib/input_uvc.so -r 1280x720 -d /dev/video4" -o "/usr/lib/output_http.so -w /www/webcam"
浏览器打开:
-
推荐一个好用开源的录屏软件 Captura
项目地址: https://github.com/MathewSachin/Captura
安装包下载: https://github.com/MathewSachin/Captura/releases
直接下载绿色版本可执行文件 Captura-Portable.zip
还需要下载 ffmpeg 包 ffmpeg-N-98443-gf719f86990-win64-shared.7z:
https://sourceforge.net/projects/ffmpeg-windows-builds/files/release/n4.3.2/解压 ffmpeg, 第一次使用Captura 录像的时候需要指定 ffmpeg 路径。
-
回复: 有没有哪位大神在D1S上跑过ov5640或者其他sensor的,走DVP-CSI
看了一下驱动是有了,能不能用不清楚
勾选 :
- CONFIG_SUNXI_PLATFORM_DRIVERS=y
- CONFIG_VIDEO_SUNXI_VIN=y
- CONFIG_CSI_VIN=m
这样驱动都编译好了:
make[4]: Entering directory '/opt/D1/tina_d1_open_v1.0_debug2/lichee/linux-5.4' scripts/Makefile.asm-generic:25: redundant generic-y found in arch/riscv/include/asm/Kbuild: device.h CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h CC [M] drivers/media/common/videobuf2/videobuf2-memops.o CC [M] drivers/media/common/videobuf2/videobuf2-dma-contig.o CC [M] drivers/media/platform/sunxi-vin/modules/actuator/actuator.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/nvp6158c.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/nvp6158_drv.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/video_auto_detect.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/video_eq.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/coax_protocol.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/video.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/motion.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/audio.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/nvp6158.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov5640.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc0310_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc030a_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc2385_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc5025_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/c2590_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/sp5409_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov8858_r2a_4lane.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov2680_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_2lane_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_2lane_mipi.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_mipi.o CC [M] drivers/media/platform/sunxi-vin/vin-cci/cci_helper.o CC [M] drivers/media/platform/sunxi-vin/vin-cci/sunxi_cci.o CC [M] drivers/media/platform/sunxi-vin/utility/vin_supply.o CC [M] drivers/media/platform/sunxi-vin/utility/vin_os.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/sensor-compat-ioctl32.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor/sensor_helper.o CC [M] drivers/media/platform/sunxi-vin/vin-cci/csi_cci_reg.o CC [M] drivers/media/platform/sunxi-vin/vin-cci/bsp_cci.o LD [M] drivers/media/platform/sunxi-vin/vin_io.o CC [M] drivers/media/platform/sunxi-vin/vin-csi/sunxi_csi.o CC [M] drivers/media/platform/sunxi-vin/vin-csi/parser_reg.o CC [M] drivers/media/platform/sunxi-vin/vin-mipi/sunxi_mipi.o CC [M] drivers/media/platform/sunxi-vin/vin-mipi/bsp_mipi_csi_null.o CC [M] drivers/media/platform/sunxi-vin/vin-mipi/combo_rx/combo_rx_reg_null.o CC [M] drivers/media/platform/sunxi-vin/vin-isp/sunxi_isp.o CC [M] drivers/media/platform/sunxi-vin/vin-isp/isp500/isp500_reg_cfg.o CC [M] drivers/media/platform/sunxi-vin/modules/sensor-list/sensor_list.o CC [M] drivers/media/platform/sunxi-vin/vin-vipp/sunxi_scaler.o CC [M] drivers/media/platform/sunxi-vin/vin-vipp/vipp_reg.o CC [M] drivers/media/platform/sunxi-vin/modules/flash/flash.o CC [M] drivers/media/platform/sunxi-vin/utility/bsp_common.o CC [M] drivers/media/platform/sunxi-vin/utility/config.o CC [M] drivers/media/platform/sunxi-vin/vin-stat/vin_h3a.o CC [M] drivers/media/platform/sunxi-vin/vin-video/vin_video.o CC [M] drivers/media/platform/sunxi-vin/vin-video/vin_core.o CC [M] drivers/media/platform/sunxi-vin/vin-video/dma_reg.o CC [M] drivers/media/platform/sunxi-vin/top_reg.o CC [M] drivers/media/platform/sunxi-vin/vin.o LD [M] drivers/media/platform/sunxi-vin/vin_v4l2.o OBJCOPY arch/riscv/boot/Image DTC arch/riscv/boot/dts/sunxi/board.dtb Building modules, stage 2. MODPOST 40 modules CC [M] drivers/media/common/videobuf2/videobuf2-dma-contig.mod.o LD [M] drivers/media/common/videobuf2/videobuf2-dma-contig.ko CC [M] drivers/media/common/videobuf2/videobuf2-memops.mod.o LD [M] drivers/media/common/videobuf2/videobuf2-memops.ko CC [M] drivers/media/platform/sunxi-vin/modules/actuator/actuator.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/actuator/actuator.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/c2590_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/c2590_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc030a_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/gc030a_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc0310_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/gc0310_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc2385_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/gc2385_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/gc5025_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/gc5025_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_2lane_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_2lane_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/imx278_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_2lane_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_2lane_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/imx386_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/nvp6158.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/nvp6158/nvp6158.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov2680_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/ov2680_mipi.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov5640.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/ov5640.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/ov8858_r2a_4lane.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/ov8858_r2a_4lane.ko CC [M] drivers/media/platform/sunxi-vin/modules/sensor/sp5409_mipi.mod.o LD [M] drivers/media/platform/sunxi-vin/modules/sensor/sp5409_mipi.ko CC [M] drivers/media/platform/sunxi-vin/vin_io.mod.o LD [M] drivers/media/platform/sunxi-vin/vin_io.ko CC [M] drivers/media/platform/sunxi-vin/vin_v4l2.mod.o LD [M] drivers/media/platform/sunxi-vin/vin_v4l2.ko make[4]: Leaving directory '/opt/D1/tina_d1_open_v1.0_debug2/lichee/linux-5.4'
dts得重新配置一下.
-
回复: 使用D1-H驱动树莓派DSI屏幕
device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x0fb00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.760]ubi0: attaching mtd4 [01.155]ubi0: scanning is finished [01.164]ubi0: attached mtd4 (name "sys", size 251 MiB) [01.169]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [01.175]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [01.182]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [01.188]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [01.193]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [01.200]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [01.208]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [01.216]sunxi flash init ok [01.219]line:714 init_clocks __clk_init: clk pll_periph0x2 already initialized register fix_factor clk error [01.229]drv_disp_init request pwm success, pwm2:pwm2:0x2000c00. [01.246]drv_disp_init finish [01.248]boot_gui_init:start [01.251]set disp.dev2_output_type fail. using defval=0 [01.443]boot_gui_init:finish
早上看看,uboot都没启动。
-
回复: 使用D1-H驱动树莓派DSI屏幕
device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x0fb00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.647]ubi0: attaching mtd4 [01.042]ubi0: scanning is finished [01.052]ubi0: attached mtd4 (name "sys", size 251 MiB) [01.057]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [01.063]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [01.069]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [01.076]ubi0: good PEBs: 1004, bad PEBs: 0, corrupted PEBs: 0 [01.081]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [01.088]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [01.095]ubi0: available PEBs: 0, total reserved PEBs: 1004, PEBs reserved for bad PEB handling: 40 [01.104]sunxi flash init ok [01.107]line:714 init_clocks __clk_init: clk pll_periph0x2 already initialized register fix_factor clk error [01.117]drv_disp_init request pwm success, pwm2:pwm2:0x2000c00. [01.134]drv_disp_init finish [01.136]boot_gui_init:start [01.139]set disp.dev2_output_type fail. using defval=0 [01.331]boot_gui_init:finish [01.743]LCD open finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [01.904]bmp_name=bootlogo.bmp size 307254 307254 bytes read in 30 ms (9.8 MiB/s) [02.148]Loading Environment from SUNXI_FLASH... OK [02.181]out of usb burn from boot: not need burn key [02.206]update bootcmd [02.228]change working_fdt 0x5eaafda8 to 0x5ea8fda8 [02.249]update dts Hit any key to stop autoboot: 0 Android's image name: d1-nezha No reserved memory region found in source FDT [03.178] Starting kernel ... [ 0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000 [ 0.000000] Linux version 5.4.61 (cube@ubuntu) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #37 PREEMPT Sat Aug 21 02:51:22 UTC 2021 [ 0.000000] cma: Reserved 8 MiB at 0x000000005f800000 [ 0.000000] Zone ranges:
刚刚恢复了一下,正常的启动日志是这样的。
tigger 发布的最新帖子
-
回复: D1s 接 MCP2515 CAN芯片本地收发测试
ip link set can0 down ip link set can0 type can loopback on ip link set can0 up type can bitrate 1000000 candump any,0:0,#FFFFFFFF > /tmp/a.txt & cansend can0 123#deadbeef cansend can0 123#AAAAAA cansend can0 123#CCCCCC
参考: https://wiki.rdu.im/_pages/Application-Notes/Software/can-bus-in-linux.html
-
回复: A133 提高一点温度应该没事吧?
@yuzukitsuru
现在的情况是,我的测试箱环境温度80度, CPU温度上升到110度左右的时候就挂了。今天试一试把这三组温度都加高20度。