您尚未登录。

#1 Re: 全志 SOC » v3s如何用ffmpeg和fswebcam使得ov7740拍照? » 2024-01-17 02:19:31

zzy 说:

请问楼主有没有驱动ov系列摄像头的教程啊,f1c200s想驱动ov5640不知道咋下手,论坛有demo没得积分下不了😂😂

看看v3s的参考一下我成功自己点亮了ov2640

#2 Re: 全志 SOC » 使用docker环境arm交叉编译OpenCV出错 » 2023-09-10 00:11:18

lignin 说:

这是链接的库不对吧,交叉编译链接到了本机的opencv

我找到问题了。是我在编译open CV的时候没有选择交叉编译,而是直接编译了x86的。

#3 Re: 全志 SOC » v3s如何用ffmpeg和fswebcam使得ov7740拍照? » 2023-08-31 23:05:12

unturned3 说:

这两个指令的输出贴一下?

media-ctl --print-topology
dmesg | grep ov7740

怀疑 v4l2 subdev 没加载


我设备树用

clock-names = "xclk";

dmesg | grep ov7740 会提示

# dmesg | grep ov7740

[ 0.935117] ov7740 1-003c: OV7740: fail to get xvclk: -2

[ 0.940560] ov7740: probe of 1-003c failed with error -2

我把设备树改成

clock-names = "xvclk";

我在用dmesg | grep ov7740
它就什么都没提示

我设备树代码

&csi1 {
	status = "okay";
	pinctrl-names = "default";
	pinctrl-0 = <&csi1_clk &csi1_8bit>;

	port {
		csi1_ep: endpoint {
	
				remote-endpoint = <&ov7740_0>;
				hsync-active = <0>;
				vsync-active = <1>;
				bus-width = <8>;
			    pclk-sample = <1>;
				
				
		};
	};

 };
 
&i2c1 {
    	pinctrl-0 = <&i2c1_pins>;
		pinctrl-names = "default";
		clock-frequency = <400000>;
		status = "okay";


	ov7740: camera@3c {
		compatible = "ovti,ov7740";
		reg = <0x3c>;
		pinctrl-names = "default";
		pinctrl-0 = <&csi1_mclk_pin>;
		clocks = <&ccu CLK_CSI1_MCLK>;
		clock-names = "xvclk";
		port {
			ov7740_0: endpoint {
				remote-endpoint = <&csi1_ep>;
			};
		};
	};
};
&ohci0 {
	status = "okay";
};
&ehci0 {
	status = "okay";
};

#4 Re: 全志 SOC » v3s如何用ffmpeg和fswebcam使得ov7740拍照? » 2023-08-30 22:26:09

unturned3 说:

这两个指令的输出贴一下?

media-ctl --print-topology
dmesg | grep ov7740

怀疑 v4l2 subdev 没加载


我用dmesg看了一下好像ov7740没写到内核里面去我再去试试

#5 Re: 全志 SOC » v3s如何用ffmpeg和fswebcam使得ov7740拍照? » 2023-08-30 22:16:34

unturned3 说:

这两个指令的输出贴一下?

media-ctl --print-topology
dmesg | grep ov7740

怀疑 v4l2 subdev 没加载

# media-ctl --print-topology
Failed to enumerate /dev/media0 (-2)
# dmesg | grep ov7740
# media-ctl --print-topology
Failed to enumerate /dev/media0 (-2)
#

#6 全志 SOC » v3s如何用ffmpeg和fswebcam使得ov7740拍照? » 2023-08-29 20:49:10

Xiaoci
回复: 6

我用v3s驱动ov7740,它明明显示识别出来了。就是没法用ffmpeg和fswebcam 来拍照 报错都大同小异

`# ffmpeg -f v4l2 -input_format rawvideo -video_size 320x240 -i /dev/video0 -fram
es 1 image.jpg
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.4.0 (Buildroot 2018.02.1)
  configuration: --enable-cross-compile --cross-prefix=/opt/buildroot-2018.02.1/output/host/bin/arm-buildroot-linux-gnueabihf- --sysroot=/opt/buildroot-2018.02.1/output/host/arm-buildroot-linux-gnueabihf/sysroot --host-cc='/opt/buildroot-2018.02.1/output/host/bin/ccache /usr/bin/gcc' --arch=arm --target-os=linux --disable-stripping --pkg-config=/opt/buildroot-2018.02.1/output/host/bin/pkg-config --disable-static --enable-shared --prefix=/usr --enable-avfilter --disable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libcdio --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --disable-ffplay --disable-ffserver --disable-avresample --disable-ffprobe --disable-postproc --disable-swscale --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --disable-bzlib --disable-libfdk-aac --enable-gnutls --disable-openssl --disable-libopenh264 --disable-vaapi --disable-vdpau --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --disable-libopus --disable-libvpx --disable-libass --disable-libbluray --disable-librtmp --disable-libmp3lame --disable-libmodplug --disable-libspeex --disable-libtheora --disable-libwavpack --disable-iconv --enable-libfreetype --disable-fontconfig --disable-libopenjpeg --disable-libx264 --disable-libx265 --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --enable-armv6 --enable-vfp --enable-neon --disable-altivec --extra-libs=-latomic --enable-pic --cpu=cortex-a7
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libswresample   2.  9.100 /  2.  9.100
[video4linux2,v4l2 @ 0x64050] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x64050] Time per frame unknown
[video4linux2,v4l2 @ 0x64050] ioctl(VIDIOC_STREAMON): Invalid argument
/dev/video0: Invalid argument
# v4l2-ctl --list-devices
sun6i-csi (platform:csi):
        /dev/video0

# v4l2-ctl -d /dev/video0 --all
Driver Info (not using libv4l2):
        Driver name   : sun6i-video
        Card type     : sun6i-csi
        Bus info      : platform:csi
        Driver version: 5.2.0
        Capabilities  : 0x84200001
                Video Capture
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps   : 0x04200001
                Video Capture
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (camera: ok)
Format Video Capture:
        Width/Height      : 320/240
        Pixel Format      : 'YU12'
        Field             : None
        Bytes per Line    : 480
        Size Image        : 115200
        Colorspace        : Raw
        Transfer Function : Default (maps to None)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Limited Range)
        Flags             :
#

#7 全志 SOC » 使用docker环境arm交叉编译OpenCV出错 » 2023-08-15 04:18:41

Xiaoci
回复: 2

我用V3S的docker环境准备交叉编译一个OpenCV的程序去v3s
我编译成功helloworld后准备弄OpenCV
但是很奇怪的事情发生了

当我的cpp文件还是helloworld原来的样子
我单独编译arm程序可以编译
或者单独编译opencv程序也可以正常编译
当我在cmakelists.txt同时启用arm交叉编译和opencv时候就报错报错如下

/usr/local/lib/libopencv_highgui.so.4.8.0: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
CMakeFiles/Test2.dir/build.make:109: recipe for target 'Test2' failed
make[2]: *** [Test2] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/Test2.dir/all' failed
make[1]: *** [CMakeFiles/Test2.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

当我编译一个正常的opencv程序cmake启用opencv,不启用交叉编译时,他也能编译

#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/core/core.hpp>
#include<iostream>
#include <string>
#include <sstream>
using namespace cv;
using namespace std;
int main()
{
// Capture the Image from the webcam
VideoCapture cap(0);

// Get the frame
Mat save_img; cap >> save_img;

if(save_img.empty())
{
  std::cerr << "Something is wrong with the webcam, could not get frame." << std::endl;
}
// Save the frame into a file
imwrite("test.jpg", save_img); // A JPG FILE IS BEING SAVED
}

#8 Re: 全志 SOC » V3S ffmpeg拍照出错 内核 uboot没问题 » 2023-07-25 11:44:52

@ookk303
好的谢谢ChatGPT。爱来自openai。
(刚刚好准备起床去问ChatGPT,你就帮我问了)

#9 全志 SOC » V3S ffmpeg拍照出错 内核 uboot没问题 » 2023-07-25 00:27:08

Xiaoci
回复: 4

我刷了晕哥的OV2640固件,然后我自己弄了一个OV2640的内核。使用晕哥固件拍照没问题。
然后换上Debian9.9的系统,里面安装了ffmpeg。我使用指令
ffmpeg -f v4l2 -video_size 800x600 -i /dev/video0 -frames 1 out.jpg
然后报错如下。这玩意怎么解决???

[video4linux2,v4l2 @ 0x5231e0] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device
[video4linux2,v4l2 @ 0x5231e0] Time per frame unknown
[  655.763013] ffmpeg: page allocation failure: order:8, mode:0xcc0(GFP_KERNEL), nodemask=(null)
[  655.771678] CPU: 0 PID: 236 Comm: ffmpeg Not tainted 5.2.0-licheepi-zero #1
[  655.778630] Hardware name: Allwinner sun8i Family
[  655.783363] [<c010ed14>] (unwind_backtrace) from [<c010b72c>] (show_stack+0x10/0x14)
[  655.791107] [<c010b72c>] (show_stack) from [<c0699330>] (dump_stack+0x84/0x98)
[  655.798330] [<c0699330>] (dump_stack) from [<c01fbf30>] (warn_alloc+0xcc/0x170)
[  655.805638] [<c01fbf30>] (warn_alloc) from [<c01fcb40>] (__alloc_pages_nodemask+0xacc/0xcf4)
[  655.814070] [<c01fcb40>] (__alloc_pages_nodemask) from [<c0114350>] (__dma_alloc_buffer.constprop.4+0x34/0x17c)
[  655.824147] [<c0114350>] (__dma_alloc_buffer.constprop.4) from [<c01144bc>] (__alloc_remap_buffer+0x24/0x98)
[  655.833962] [<c01144bc>] (__alloc_remap_buffer) from [<c0114558>] (remap_allocator_alloc+0x28/0x30)
[  655.842996] [<c0114558>] (remap_allocator_alloc) from [<c01146fc>] (__dma_alloc+0x16c/0x2c8)
[  655.851424] [<c01146fc>] (__dma_alloc) from [<c01148d4>] (arm_dma_alloc+0x40/0x48)
[  655.858988] [<c01148d4>] (arm_dma_alloc) from [<c017c928>] (dma_alloc_attrs+0x100/0x110)
[  655.867080] [<c017c928>] (dma_alloc_attrs) from [<c0512da0>] (vb2_dc_alloc+0x60/0x104)
[  655.874994] [<c0512da0>] (vb2_dc_alloc) from [<c050ccac>] (__vb2_queue_alloc+0x184/0x444)
[  655.883165] [<c050ccac>] (__vb2_queue_alloc) from [<c050d4bc>] (vb2_core_reqbufs+0x2c4/0x440)
[  655.891681] [<c050d4bc>] (vb2_core_reqbufs) from [<c0510d34>] (vb2_ioctl_reqbufs+0xa0/0xc8)
[  655.900029] [<c0510d34>] (vb2_ioctl_reqbufs) from [<c04ecd20>] (__video_do_ioctl+0x288/0x454)
[  655.908549] [<c04ecd20>] (__video_do_ioctl) from [<c04ed280>] (video_usercopy+0x23c/0x504)
[  655.916808] [<c04ed280>] (video_usercopy) from [<c02287a8>] (do_vfs_ioctl+0xac/0x8cc)
[  655.924631] [<c02287a8>] (do_vfs_ioctl) from [<c0228ffc>] (ksys_ioctl+0x34/0x58)
[  655.932021] [<c0228ffc>] (ksys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[  655.939665] Exception stack(0xc3173fa8 to 0xc3173ff0)
[  655.944713] 3fa0:                   005231e0 00000000 00000003 c0145608 beab41f8 b5857af1
[  655.952882] 3fc0: 005231e0 00000000 beab4290 00000036 ffffffe7 00000000 005238c0 beab41f8
[  655.961047] 3fe0: 00000001 beab41b4 b6f167b7 b5857af8
[  655.966218] Mem-Info:
[  655.968511] active_anon:3427 inactive_anon:154 isolated_anon:1
[  655.968511]  active_file:3577 inactive_file:2858 isolated_file:1
[  655.968511]  unevictable:4 dirty:7 writeback:0 unstable:0
[  655.968511]  slab_reclaimable:630 slab_unreclaimable:1467
[  655.968511]  mapped:5008 shmem:429 pagetables:140 bounce:0
[  655.968511]  free:1421 free_pcp:17 free_cma:0
[  656.000905] Node 0 active_anon:13708kB inactive_anon:616kB active_file:14308kB inactive_file:11432kB unevictable:16kB isolated(anon):4kB isolated(file):4kB mapped:20032kB dirty:28kB writeback:0kB shmem:1716kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[  656.024016] Normal free:5684kB min:936kB low:1168kB high:1400kB active_anon:13708kB inactive_anon:616kB active_file:14308kB inactive_file:11432kB unevictable:16kB writepending:28kB present:65536kB managed:56092kB mlocked:16kB kernel_stack:392kB pagetables:560kB bounce:0kB free_pcp:68kB local_pcp:68kB free_cma:0kB
[  656.051697] lowmem_reserve[]: 0 0 0
[  656.055185] Normal: 173*4kB (ME) 87*8kB (UME) 51*16kB (ME) 25*32kB (ME) 12*64kB (ME) 7*128kB (M) 2*256kB (M) 1*512kB (M) 0*1024kB 0*2048kB 0*4096kB = 5692kB
[  656.069205] 6865 total pagecache pages
[  656.072949] 0 pages in swap cache
[  656.076271] Swap cache stats: add 0, delete 0, find 0/0
[  656.081486] Free swap  = 0kB
[  656.084360] Total swap = 0kB
[  656.087252] 16384 pages RAM
[  656.090040] 0 pages HighMem/MovableOnly
[  656.093868] 2361 pages reserved
[  656.097039] sun6i-csi 1cb4000.csi: dma_alloc_coherent of size 720896 failed
[video4linux2,v4l2 @ 0x5231e0] ioctl(VIDIOC_REQBUFS): Cannot allocate memory
/dev/video0: Cannot allocate memory

#10 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2023-07-23 03:24:57

@晕哥
我Ubuntu16.04显示这个怎么回事?
root@ubuntu:/home/xiaoci/rootfs# debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp.de.debian.org/debian
I: Retrieving InRelease
I: Retrieving Release
E: Failed getting release file http://ftp.de.debian.org/debian/dists/stretch/Release

#12 全志 SOC » 安装教程无改动编译zimage有问题 » 2023-07-18 03:45:39

Xiaoci
回复: 2

https://whycan.com/t_8270.html
https://wiki.sipeed.com/soft/Lichee/zh/Zero-Doc/System_Development/kernel_build.html

我按照上面两个教程来编译zimage,指令大同小异
我先在我的sd卡上刷上晕哥的ov2640的固件
我再编译主线内核改名字替换晕哥的固件,我换了dts后没有异常,但是在换zimage时候出现了下面的报错怎么回事?
我在编译时候没有进行更改直接编译.
我使用lichee 的docker环境进行编译所以环境应该是没问题的


  Loading Device Tree to 42dfa000, end 42dffa6f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (root@3a88685aeb4c) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05)) #2 SMP Mon Jul 17 19:26:51 UTC 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Lichee Pi Zero
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3c5f000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15494
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait panic=10 earlyprintk rw
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 52020K/62464K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10444K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3d00000   (  61 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a36680   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d868 - 0xc0a7f06c   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000176] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000396] Console: colour dummy device 80x30
[    0.000433] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000449] pid_max: default: 32768 minimum: 301
[    0.000578] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000597] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001192] CPU: Testing write buffer coherency: ok
[    0.001569] /cpus/cpu@0 missing clock-frequency property
[    0.001595] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002052] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002236] Hierarchical SRCU implementation.
[    0.002762] smp: Bringing up secondary CPUs ...
[    0.002778] smp: Brought up 1 node, 1 CPU
[    0.002789] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002796] CPU: All CPU(s) started in SVC mode.
[    0.003550] devtmpfs: initialized
[    0.006389] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006670] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006702] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006865] pinctrl core: initialized pinctrl subsystem
[    0.007731] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[    0.007868] NET: Registered protocol family 16
[    0.008285] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009374] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009391] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.021791] SCSI subsystem initialized
[    0.022079] usbcore: registered new interface driver usbfs
[    0.022148] usbcore: registered new interface driver hub
[    0.022237] usbcore: registered new device driver usb
[    0.022462] pps_core: LinuxPPS API ver. 1 registered
[    0.022473] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.022521] PTP clock support registered
[    0.022735] Advanced Linux Sound Architecture Driver Initialized.
[    0.024517] clocksource: Switched to clocksource arch_sys_counter
[    0.025282] simple-framebuffer: probe of 0.framebuffer failed with error -12
[    0.035441] NET: Registered protocol family 2
[    0.036026] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.036065] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.036088] TCP: Hash tables configured (established 1024 bind 1024)
[    0.036222] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.036272] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.036489] NET: Registered protocol family 1
[    0.037071] RPC: Registered named UNIX socket transport module.
[    0.037091] RPC: Registered udp transport module.
[    0.037098] RPC: Registered tcp transport module.
[    0.037104] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.039100] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.048031] NFS: Registering the id_resolver key type
[    0.048081] Key type id_resolver registered
[    0.048089] Key type id_legacy registered
[    0.049113] random: fast init done
[    0.052101] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.052125] io scheduler noop registered
[    0.052133] io scheduler deadline registered
[    0.052376] io scheduler cfq registered (default)
[    0.052388] io scheduler mq-deadline registered
[    0.052396] io scheduler kyber registered
[    0.056795] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.126253] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.129710] console [ttyS0] disabled
[    0.149982] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.733090] console [ttyS0] enabled
[    0.739768] libphy: Fixed MDIO Bus: probed
[    0.744193] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.750810] ehci-platform: EHCI generic platform driver
[    0.756312] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.761926] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.769875] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.804548] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.811673] hub 1-0:1.0: USB hub found
[    0.815601] hub 1-0:1.0: 1 port detected
[    0.820100] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.826391] ohci-platform: OHCI generic platform driver
[    0.831923] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.838640] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.846584] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    0.919545] hub 2-0:1.0: USB hub found
[    0.923369] hub 2-0:1.0: 1 port detected
[    0.930890] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.940586] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.947480] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.952016] i2c /dev entries driver
[    0.956902] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[    0.966378] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.034763] sunxi-mmc 1c0f000.mmc: base:0xc4069000 irq:23
[    1.041804] usbcore: registered new interface driver usbhid
[    1.047473] usbhid: USB HID core driver
[    1.053097] NET: Registered protocol family 17
[    1.057774] Key type dns_resolver registered
[    1.062170] Registering SWP/SWPB emulation handler
[    1.073851] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.085265] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.091033] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.102350] hub 3-0:1.0: USB hub found
[    1.106345] hub 3-0:1.0: 1 port detected
[    1.111409] using random self ethernet address
[    1.115962] using random host ethernet address
[    1.121350] usb0: HOST MAC c6:ed:0e:93:ba:40
[    1.125823] usb0: MAC 62:63:ff:04:f6:c6
[    1.129705] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.137216] g_cdc gadget: g_cdc ready
[    1.141208] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:01:22 UTC (82)
[    1.149493] vcc3v0: disabling
[    1.152469] vcc5v0: disabling
[    1.155489] ALSA device list:
[    1.158454]   No soundcards found.
[    1.163783] Waiting for root device /dev/mmcblk0p2...
[    1.201553] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.211358] mmc0: Problem switching card into high-speed mode!
[    1.217438] mmc0: new SDHC card at address 0001
[    1.222703] mmcblk0: mmc0:0001 SD16G 14.6 GiB
[    1.228784]  mmcblk0: p1 p2
[    1.255878] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.264869] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.282962] EXT4-fs (mmcblk0p2): recovery complete
[    1.287912] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.296094] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.303426] devtmpfs: mounted
[    1.307702] Freeing unused kernel memory: 1024K
FATAL: kernel too old
[    1.384701] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00
[    1.384701]
[    1.393844] CPU: 0 PID: 1 Comm: init Not tainted 4.13.0-licheepi-zero+ #2
[    1.400622] Hardware name: Allwinner sun8i Family
[    1.405360] [<c010e58c>] (unwind_backtrace) from [<c010b2b0>] (show_stack+0x10/0x14)
[    1.413108] [<c010b2b0>] (show_stack) from [<c06627bc>] (dump_stack+0x84/0x98)
[    1.420333] [<c06627bc>] (dump_stack) from [<c011b728>] (panic+0xdc/0x248)
[    1.427207] [<c011b728>] (panic) from [<c011e298>] (do_exit+0xa68/0xa98)
[    1.433903] [<c011e298>] (do_exit) from [<c011f114>] (do_group_exit+0x3c/0xd0)
[    1.441119] [<c011f114>] (do_group_exit) from [<c011f1b8>] (__wake_up_parent+0x0/0x18)
[    1.449037] Rebooting in 10 seconds..

#13 全志 SOC » 荔枝派V3S 怎么引导emdebian系统? » 2023-07-03 04:20:35

Xiaoci
回复: 0

我刷了晕个的buildroot固件,然后想用emdebian系统。我rm -r *根目录后,把emdebian 根文件 dd过去好像启动失败了。我要改哪些东西?

#14 Re: 全志 SOC » 荔枝派V3S uboot+bsp+buildroot 启动失败怎么回事? » 2023-07-02 03:22:47

根目录是没问题的我用主线linux测试过了,uboot 我重新编译了,boot.scr 我也改了怎么回事??

#15 全志 SOC » 荔枝派V3S uboot+bsp+buildroot 启动失败怎么回事? » 2023-06-29 04:10:07

Xiaoci
回复: 5

报错代码如下 我换其他根目录也不行


=> boot
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
349 bytes read in 15 ms (22.5 KiB/s)
## Executing script at 41900000
reading uImage
2467400 bytes read in 134 ms (17.6 MiB/s)
reading script.bin
32384 bytes read in 25 ms (1.2 MiB/s)
SCRIPT FAILED: continuing...
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.

#16 全志 SOC » V3S 编译好系统后不停重启 » 2023-06-24 20:48:41

Xiaoci
回复: 1

7ecd2a7992923f1dd41d518302bf127.png

有没有大佬帮我看看这报错怎么回事? 我用另一个根目录好像可以正常启动

#17 Re: 全志 SOC » 关于去哪购买RAM颗粒 » 2023-01-12 22:27:36

bigbigcong 说:

LPDDR?这不是手机上才舍得用的吗?这是要做什么产品~~

用在h616上啊

#18 全志 SOC » 关于去哪购买RAM颗粒 » 2023-01-11 18:29:45

Xiaoci
回复: 3

在弄开发板的时候要用到LPDDR4,但是不知道去哪买好一点。而且很多都是二手,一手死贵死贵,小批量感觉有点亏。各位有什么渠道推荐吗?

#20 Re: 全志 SOC » 按照荔枝派zero官方教程编译BSP出错 » 2023-01-11 18:22:07

Gentlepig 说:

vim /root/u-boot/boot.cmd

我觉得这里的/root/u-boot可能是教程作者的实际目录,而你应该找你u-boot的实际目录。

cd /root/u-boot/
mkimage -C none -A arm -T script -d boot.cmd boot.scr

这两个命令估计也应该根据实际目录做修改。

好的谢谢

#22 全志 SOC » 按照荔枝派zero官方教程编译BSP出错 » 2022-08-02 02:44:33

Xiaoci
回复: 2

我在用荔枝派官方docker环境构建BSP

//官方教程
使用主线uboot启动BSP内核,需要修改下启动脚本,放入BSP内核需要的 script.bin 配置文件(相当于主线linux的dtb)

修改boot.cmd:

vim /root/u-boot/boot.cmd
重新生成boot.scr:

cd /root/u-boot/
mkimage -C none -A arm -T script -d boot.cmd boot.scr
//官方教程


我使用  vim /root/u-boot/boot.cmd  它显示空文件然后新生成了一个boot.cmd
在我用  mkimage -C none -A arm -T script -d boot.cmd boot.scr  后他报错


mkimage: Can't read boot.cmd: Invalid argument

不知道那里出错了,我安装教程一步一步来

#23 全志 SOC » 荔枝派V3S uboot+bsp 摄像头帧率怎么设置? » 2022-08-02 01:36:01

Xiaoci
回复: 1

摄像头帧率是在驱动改寄存器还是进入Linux里设置的?

页脚

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

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