disable 一些不需要的模块
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-32bit-buffer allow capturing of 2^32 frames
--disable-v4l1 disable V4L1 support
--disable-v4l2 disable V4L2 support
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
CPP C preprocessor
Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.
就3个选项啊
我在camdroid的SDK的buildroot中,都找不到这个fswebcam
渔头 说:晕哥 说:如果你仅仅用摄像头采集原始数据, 不用视频编解码, 可以试一试这个, 不用camdroid 那一套。
可以在 buildroot 勾选 fswebcam, 然后就会自动成目标文件系统, 替换 camdroid.
我正准备问这个问题了,我后期需要用视频编解码,
我用camdroid的工具链编译这个,然后放到开发板上运行,可以吧如果你用静态链接, 就不用管工具链, 只是可执行文件大一点而已。
编译时出现这个
configure: error: GD graphics library not found
如果你仅仅用摄像头采集原始数据, 不用视频编解码, 可以试一试这个, 不用camdroid 那一套。
可以在 buildroot 勾选 fswebcam, 然后就会自动成目标文件系统, 替换 camdroid.
我正准备问这个问题了,我后期需要用视频编解码,
我用camdroid的工具链编译这个,然后放到开发板上运行,可以吧
渔头 说:晕哥 说:可能起不来,
也可能只是 vfe 有问题, 而摄像头正常.看下有没有生成 video 设备, /dev/video0
然后编译 fswebcam 测试一下摄像头是否正常。
谢谢晕哥
有/dev/video0
fswebcam怎么编译?https://github.com/fsphil/fswebcam
克隆源码, 然后 configure, make
./configure --prefix=/usr --host=xxxxxxx --build=xxxxx
make
make install
谢谢晕哥
我去试试
这是我的启动log,不好意思,我不会发那个有滚动条的
HELLO! BOOT0 is starting!
get_ifm reg_val=7
setting pmu vol system core 1.1 v
===i2c gpio === 22777777
axp read fail, maybe no pmu
set pmu vol failed,maybe no pmu
DRAM DRIVE INFO: V0.7
DRAM Type = 2 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 360 MHz
DRAM zq value: 000039bb
DRAM size = 64 MB
Succeed in reading Boot1 file head.
Jump to secend Boot.
[ 0.093]
U-Boot 2011.09-rc1-dirty (Jun 16 2015 - 13:24:18) Allwinner Technology
[ 0.101]version: 1.1.0
[ 0.106]pmbus:
===i2c gpio === 22777777
ready
axp read error
probe axp20x failed
axp_probe fail,run clock=1008
set power on vol to default
axp_set_power_supply_output dcdc2_vol = 1200
axp set dcdc2_vol to 1200 failed
axp_set_power_supply_output dcdc3_vol = 3300
axp set dcdc3_vol to 3300 failed
axp_set_power_supply_output aldo2_vol = 2500
axp set aldo2_vol to 2500 failed
axp_set_power_supply_output aldo3_vol = 3000
axp set aldo3_vol to 3000 failed
axp_set_power_supply_output ldo1_vol = 3300
axp set ldo1_vol to 3300 failed
axp_set_power_supply_output ldo2_vol = 3000
axp set ldo2_vol to 3000 failed
[ 0.166]DRAM: 64 MiB
[debug_jaosn]:use the clock in sys_config
OK
[ 0.188]sunxi flash init ok
hello @flash_speed=1
env_relocate_spec storage_type = 3
In: serial
Out: serial
Err: serial
WORK_MODE_BOOT
read bootlogo partition successful,start_block=0x7920,rblock=0x100 ,ret=256
Use decode 1x1 sampling
sunxi_read_bootlogo: jpg convert argb
[ 0.373]Hit any key to stop autoboot: 0
read boot or recovery all
[ 0.554]sunxi flash read :offset 4000, 2621951 bytes OK
[ 0.560]ready to boot
[ 0.562]
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Linux version 3.4.39 (yzw@ubuntu64) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #6 Mon Apr 22 15:04:23 CST 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: sun8i
[ 0.000000] Initialized persistent memory from 41d20800-41d307ff
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat c049d14c, node_mem_map c0537000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] script_init enter!
[ 0.000000] script_init exit!
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/nor1 init=/init loglevel=8 partitions= mac_addr= uid=1234567890 kmemleak=on fb_base=0x41b00000 boot_type=3 config_size=32220
[ 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: 64MB = 64MB total
[ 0.000000] Memory: 30456k/30456k available, 35080k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc4800000 - 0xff000000 ( 936 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0437000 (4284 kB)
[ 0.000000] .init : 0xc0437000 - 0xc0459000 ( 136 kB)
[ 0.000000] .data : 0xc045a000 - 0xc049d880 ( 271 kB)
[ 0.000000] .bss : 0xc049d8a4 - 0xc0536c4c ( 613 kB)
[ 0.000000] NR_IRQS:544
[ 0.000000] 524 ahb1 set parent pll_periph0d2
[ 0.000000] Architected local timer running at 24.00MHz.
[ 0.000000] Switching to timer-based delay loop
[ 0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000156] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[ 0.000177] pid_max: default: 32768 minimum: 301
[ 0.000310] Mount-cache hash table entries: 512
[ 0.000828] CPU: Testing write buffer coherency: ok
[ 0.001091] Setting up static identity map for 0x4031f9f8 - 0x4031fa50
[ 0.001746] devtmpfs: initialized
[ 0.003607] pinctrl core: initialized pinctrl subsystem
[ 0.004098] NET: Registered protocol family 16
[ 0.004487] DMA: preallocated 128 KiB pool for atomic coherent allocations
[ 0.004540] script_sysfs_init success
[ 0.004573] sunxi_dump_init success
[ 0.005288] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[ 0.006182] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[ 0.006545] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[ 0.007478] persistent_ram: uncorrectable error in header
[ 0.007494] persistent_ram: no valid data in buffer (sig = 0x55175717)
[ 0.013743] console [ram-1] enabled
[ 0.014140] [sunxi-module]: [sunxi-module.0] probe success
[ 0.014372] Not Found clk pll_isp in script
[ 0.014479] Not Found clk pll_video in script
[ 0.014582] Not Found clk pll_ve in script
[ 0.014771] Not Found clk pll_periph0 in script
<5>[ 0.014875] Not Found clk pll_de in script
[ 0.014977] sunxi_default_clk_init
[ 0.015165] try to set pll6ahb1 to 200000000
[ 0.015275] Error not get clk pll6ahb1
[ 0.015382] Error not get clk pll6ahb1try to set ahb1 to 200000000
[ 0.015686] try to set apb1 to 100000000
[ 0.016064] ===fe3o4==== sunxi_root_procfs_attach ret:0
[ 0.019525] bio: create slab <bio-0> at 0
[ 0.019889] pwm module init!
[ 0.022109] SCSI subsystem initialized
[ 0.022530] usbcore: registered new interface driver usbfs
[ 0.022699] usbcore: registered new interface driver hub
[ 0.023018] usbcore: registered new device driver usb
[ 0.023254] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[ 0.023451] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[ 0.023556] Linux video capture interface: v2.00
[ 0.023827] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[ 0.023935] axp pinctrl used,skip
[ 0.024362] Advanced Linux Sound Architecture Driver Version 1.0.25.
[ 0.025273] Switching to clocksource arch_sys_counter
[ 0.030000] NET: Registered protocol family 2
[ 0.030000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.030000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.030172] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.030385] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.030491] TCP: reno registered
[ 0.030601] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.030802] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.031157] NET: Registered protocol family 1
[ 0.031555] Unpacking initramfs...
[ 0.046342] Freeing initrd memory: 220K
[ 0.046753] [pm]aw_pm_init!
[ 0.046862] standby_mode = 1.
[ 0.046965] wakeup src cnt is : 3.
[ 0.047074] pmu name: pmu1_para .
[ 0.047270] pmu1_enable = 0x0.
[ 0.047373] pmu name: pmu2_para .
[ 0.047476] config_pmux_para: script_parser_fetch err.
[ 0.047667] pmu2_enable = 0x0.
[ 0.047774] add_sys_pwr_dm: get ldo name failed
[ 0.047877] add_sys_pwr_dm: get ldo name failed
[ 0.048068] add_sys_pwr_dm: get ldo name failed
[ 0.048173] add_sys_pwr_dm: get ldo name failed
[ 0.048277] add_sys_pwr_dm: get ldo name failed
[ 0.048380] add_sys_pwr_dm: get ldo name failed
[ 0.048484] add_sys_pwr_dm: get ldo name failed
[ 0.048674] add_sys_pwr_dm: get ldo name failed
[ 0.048777] add_sys_pwr_dm: get ldo name failed
[ 0.048880] add_sys_pwr_dm: get ldo name failed
[ 0.049069] after inited: sys_mask config = 0x0.
[ 0.049174] dynamic_standby enalbe = 0x0.
[ 0.049417] sunxi_reg_init enter
[ 0.051382] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.051543] jffs2: version 2.2. (NAND) (SUMMARY) 漏 2001-2006 Red Hat, Inc.
[ 0.051916] msgmni has been set to 59
[ 0.052949] io scheduler noop registered
<6>[ 0.053152] io scheduler deadline registered
[ 0.053331] io scheduler cfq registered (default)
[ 0.053914] [DISP]disp_module_init
[ 0.054422] cmdline,disp=
[ 0.055033] rotation_sw module is config as no used
[ 0.055161] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[ 0.055449] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[ 0.073439] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[ 0.073669] [DISP] disp_sys_gpio_set_value,line:374:OSAL_GPIO_DevWRITE_ONEPIN_DATA, hdl is NULL
[ 0.074678] [DISP]disp_module_init finish
[ 0.075155] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[ 0.075609] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[ 0.075814] sw_uart_pm()890 - uart0 clk is already enable
[ 0.075932] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[ 0.172001] console [ttyS0] enabled
[ 0.855666] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[ 0.863546] spi spi0: master is unqueued, this is deprecated
[ 0.870242] m25p_probe()966 - Use the Dual Mode Read.
[ 0.876027] NorFlash ID: 0xc22018 - 0xc220
[ 0.880789] m25p80 spi0.0: found mx25l12805d, expected at25df641
[ 0.887569] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[ 0.894867] @@@[debug_jaosn]: Invalid partitions count: 4 9
[ 0.901649] Creating 8 MTD partitions on "spi0.0":
[ 0.907170] 0x000000000000-0x000000040000 : "uboot"
[ 0.913877] 0x000000040000-0x0000002c0000 : "boot"
[ 0.920168] 0x0000002c0000-0x000000ee0000 : "system"
[ 0.926615] 0x000000ee0000-0x000000f60000 : "cfg"
[ 0.932887] 0x000000f60000-0x000000f80000 : "boot_logo"
[ 0.939754] 0x000000f80000-0x000000fa0000 : "shutdown_logo"
[ 0.947030] 0x000000fa0000-0x000000fb0000 : "env"
[ 0.953518] 0x000000fb0000-0x000000fc0000 : "private"
[ 0.961736] Failed to alloc md5
[ 0.965376] eth0: Use random mac address
[ 0.969968] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.997507] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.006636] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[ 1.015356] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[ 1.040129] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[ 1.047618] hub 1-0:1.0: USB hub found
[ 1.051952] hub 1-0:1.0: 1 port detected
[ 1.056822] sunxi-ehci sunxi-ehci.1: remove, state 1
[ 1.062589] usb usb1: USB disconnect, device number 1
[ 1.360358] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[ 1.376849] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.403938] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[ 1.412666] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[ 1.421314] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[ 1.484637] hub 1-0:1.0: USB hub found
[ 1.489032] hub 1-0:1.0: 1 port detected
[ 1.493884] sunxi-ohci sunxi-ohci.1: remove, state 1
[ 1.499505] usb usb1: USB disconnect, device number 1
[ 1.505918] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[ 1.522354] Initializing USB Mass Storage driver...
[ 1.528029] usbcore: registered new interface driver usb-storage
[ 1.534824] USB Mass Storage support registered.
[ 1.540471] file system registered
[ 1.545825] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 1.553730] android_usb gadget: Number of LUNs=1
[ 1.558953] lun0: LUN: removable file: (no medium)
[ 1.564943] android_usb gadget: android_usb ready
[ 1.570516] sunxikbd_script_init: key para not found, used default para.
[ 1.579153] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[ 1.586906] sunxi cedar version 0.1
[ 1.591071] [cedar]: install start!!!
[ 1.595588] [cedar]: install end!!!
[ 1.600143] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.609077] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.617918] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.626641] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.635383] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.644010] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.652729] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.661726] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[ 1.668962] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[ 1.680392] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[ 1.688126] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[ 1.694446] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[ 1.704306] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.114 2015-6-2 10:21) Compiled in Apr 17 2019 at 16:16:20
[ 1.715861] [mmc]: MMC host used card: 0x0, boot card: 0x0, io_card 0
[ 1.723352] sunxi_leds_fetch_sysconfig_para leds is not used in config
[ 1.730823] =========script_get_err============
[ 1.736179] usbcore: registered new interface driver usbhid
[ 1.742597] usbhid: USB HID core driver
[ 1.747598] ashmem: initialized
[ 1.751478] logger: created 256K log 'log_main'
[ 1.756773] logger: created 32K log 'log_events'
[ 1.762147] logger: created 32K log 'log_radio'
[ 1.767576] logger: created 32K log 'log_system'
[ 1.774293] script_get_item return audio_pa_ctrl type err
[ 1.781331] asoc: sndcodec <-> sunxi-codec mapping ok
[ 1.789060] TCP: cubic registered
[ 1.792897] NET: Registered protocol family 17
[ 1.798267] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 1.807000] ThumbEE CPU extension supported.
[ 1.811953] Registering SWP/SWPB emulation handler
[ 1.818314] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 1.827468] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 1.836123] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 1.844686] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 1.853325] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 1.861966] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 1.870710] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 1.879578] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 00:00:02 UTC (2)
[ 1.889693] ALSA device list:
[ 1.893166] #0: audiocodec
[ 1.896962] Freeing init memory: 136K
[ 1.903193] init: skipping insecure file '/default.prop'
[ 1.909405] init: skipping insecure file '/init.rc'
[ 1.915366] init: /init.rc: 127: invalid option 'root'
[ 1.921367] init: skipping insecure file '/init.sun8i.rc'
[ 1.927618] init: /init.sun8i.rc: 53: invalid option 'root'
[ 1.934085] init: skipping insecure file 'init.sun8i.usb.rc'
[ 1.941117] init: command 'loglevel' r=0
[ 1.945745] init: command 'export' r=0
[ 1.951479] init: skipping insecure file '/ueventd.rc'
[ 1.957543] init: skipping insecure file '/ueventd.sun8i.rc'
[ 1.964181] init: command 'export' r=0
[ 1.968461] init: command 'export' r=0
[ 1.980291] init: command 'export' r=0
[ 1.984675] init: command 'symlink' r=0
[ 1.989097] init: command 'symlink' r=0
[ 2.002642] init: command 'symlink' r=0
[ 2.007123] init: command 'mkdir' r=0
[ 2.030413] init: command 'mkdir' r=0
[ 2.034794] init: command 'mkdir' r=0
[ 2.038991] init: command 'mkdir' r=-2
[ 2.046745] init: processing action 0x310c8 (init)
[ 2.060248] init: command 'export' r=0
[ 2.064588] init: command 'export' r=0
[ 2.068863] init: command 'export' r=0
[ 2.074005] init: command 'export' r=0
[ 2.078323] init: processing action 0x2fc28 (early-fs)
[ 2.084252] init: command 'mkdir' r=0
[ 2.088544] init: command 'mkdir' r=0
[ 2.092774] init: command 'mkdir' r=0
[ 2.096939] init: processing action 0x32368 (console_init)
[ 2.103564] init: command 'console_init' r=0
[ 2.108452] init: processing action 0x2ff30 (fs)
[ 2.113839] init: command 'wait' r=0
[ 2.118511] init: command 'setupfs' r=1
[ 2.123019] init: out of loopback devices source = /dev/block/mtdblock2
[ 2.130579] init: out of loopback devices target = /system
[ 2.136770] init: out of loopback devices system = squashfs
[ 2.143155] init: out of loopback devices options = (null)
[ 2.152657] init: command 'mount' r=0
[ 2.157013] init: command 'wait' r=0
[ 2.161140] init: out of loopback devices source = /dev/block/mtdblock3
[ 2.168694] init: out of loopback devices target = /data
[ 2.174706] init: out of loopback devices system = jffs2
[ 2.180714] init: out of loopback devices options = (null)
[ 2.196194] init: command 'mount' r=0
[ 2.200489] init: processing action 0x30010 (post-fs)
[ 2.206295] init: out of loopback devices source = rootfs
[ 2.212426] init: out of loopback devices target = /
[ 2.218124] init: out of loopback devices system = rootfs
[ 2.224230] init: out of loopback devices options = (null)
[ 2.230561] init: command 'mount' r=0
[ 2.234741] init: processing action 0x30070 (post-fs-data)
[ 2.242052] init: command 'chown' r=0
[ 2.246596] init: command 'chmod' r=0
[ 2.251220] init: command 'chmod' r=-2
[ 2.256354] init: command 'mkdir' r=0
[ 2.261005] init: command 'restorecon' r=0
[ 2.266342] init: command 'mkdir' r=0
[ 2.271624] init: command 'mkdir' r=0
[ 2.275947] init: processing action 0x30df0 (post-fs-data)
[ 2.286343] init: skipping insecure file '/system/vendor/modules/videobuf-core.ko'
[ 2.308517] init: command 'insmod' r=0
[ 2.313051] init: skipping insecure file '/system/vendor/modules/videobuf-dma-contig.ko'
[ 2.323114] init: command 'insmod' r=0
[ 2.327558] init: skipping insecure file '/system/vendor/modules/cci.ko'
[ 2.363482] [VFE]cci probe start cci_sel = 0!
[ 2.368475] [VFE]cci probe end cci_sel = 0!
[ 2.373472] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 2.382294] [VFE]cci_init end
[ 2.385978] init: command 'insmod' r=0
[ 2.390436] init: skipping insecure file '/system/vendor/modules/vfe_os.ko'
[ 2.399238] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 2.409794] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 2.419281] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 2.428754] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 2.438097] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 2.447509] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 2.481437] init: command 'insmod' r=0
[ 2.485872] init: skipping insecure file '/system/vendor/modules/vfe_subdev.ko'
[ 2.495177] init: command 'insmod' r=0
[ 2.499607] init: skipping insecure file '/system/vendor/modules/ar0330_mipi.ko'
[ 2.509235] init: command 'insmod' r=0
[ 2.513730] init: skipping insecure file '/system/vendor/modules/vfe_v4l2.ko'
[ 2.653323] [VFE]Welcome to Video Front End driver
[ 2.659407] [VFE]pdev->id = 0
[ 2.662921] [VFE]dev->mipi_sel = 0
[ 2.666815] [VFE]dev->vip_sel = 0
[ 2.670688] [VFE]dev->isp_sel = 0
[ 2.680704] [VFE_WARN]vfe vpu clock is null
[ 2.691960] [ISP] isp platform_id = 6!
[ 2.696498] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[ 2.705444] [VFE]probe_work_handle start!
[ 2.710100] [VFE]..........................vfe clk open!.......................
[ 2.718413] [VFE]vfe_init end
[ 2.722348] init: command 'insmod' r=0
[ 2.726817] init: skipping insecure file '/system/vendor/modules/uvcvideo.ko'
[ 2.735105] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[ 2.744002] [VFE]v4l2 subdev register input_num = 0
[ 2.749609] [VFE]vfe sensor detect start! input_num = 0
[ 2.755534] [VFE]Find sensor name is "ov5647_mipi", i2c address is 6c, type is "RAW" !
[ 2.764520] [VFE]Sub device register "ov5647_mipi" i2c_addr = 0x6c start!
[ 2.772255] [VFE_ERR]Error registering v4l2 subdevice No such device!
[ 2.779498] [VFE_ERR]vfe sensor register check error at input_num = 0
[ 2.789526] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[ 2.798256] uvcvideo: Adding mapping Brightness to control 00000000-0000-0000-0000-000000000101/2.
[ 2.808478] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[ 2.817108] uvcvideo: Adding mapping Contrast to control 00000000-0000-0000-0000-000000000101/3.
[ 2.827146] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[ 2.835676] uvcvideo: Adding mapping Hue to control 00000000-0000-0000-0000-000000000101/6.
[ 2.845196] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[ 2.853999] uvcvideo: Adding mapping Saturation to control 00000000-0000-0000-0000-000000000101/7.
[ 2.864100] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[ 2.873771] uvcvideo: Adding mapping Sharpness to control 00000000-0000-0000-0000-000000000101/8.
[ 2.884758] [VFE]Check open /system/etc/hawkview/ov5647_mipi/isp_test_param.ini failed!
[ 2.884773] Match isp cfg start!
[ 2.897677] [VFE_WARN]NOT found this item: ov5647_mipi, you can add this ISP Config in the isp_cfg_array!
[ 2.908627] [VFE]read ini start
[ 2.912300] [VFE]Fetch ini file form "/system/etc/hawkview/ov5647_mipi/isp_test_param.ini"
[ 2.921810] uvcvideo: Adding mapping Gamma to control 00000000-0000-0000-0000-000000000101/9.
[ 2.931508] uvcvideo: Adding mapping Backlight Compensation to control 00000000-0000-0000-0000-000000000101/1.
[ 2.942730] uvcvideo: Adding mapping Gain to control 00000000-0000-0000-0000-000000000101/4.
[ 2.954752] [vfe_warn]open file failed!
[ 2.959657] [VFE_WARN]read ini info fail
[ 2.964223] uvcvideo: Adding mapping Power Line Frequency to control 00000000-0000-0000-0000-000000000101/5.
[ 2.975938] [VFE]V4L2 device registered as video0
[ 2.981351] uvcvideo: Adding mapping Hue, Auto to control 00000000-0000-0000-0000-000000000101/16.
[ 2.991560] [VFE]..........................vfe clk close!.......................
[ 2.999970] [VFE]probe_work_handle end!
[ 3.004366] uvcvideo: Adding mapping Exposure, Auto to control 00000000-0000-0000-0000-000000000001/2.
[ 3.004383] uvcvideo: Adding mapping Exposure, Auto Priority to control 00000000-0000-0000-0000-000000000001/3.
[ 3.004399] uvcvideo: Adding mapping Exposure (Absolute) to control 00000000-0000-0000-0000-000000000001/4.
[ 3.004413] uvcvideo: Adding mapping White Balance Temperature, Auto to control 00000000-0000-0000-0000-000000000101/11.
[ 3.004427] uvcvideo: Adding mapping White Balance Temperature to control 00000000-0000-0000-0000-000000000101/10.
[ 3.004442] uvcvideo: Adding mapping White Balance Component, Auto to control 00000000-0000-0000-0000-000000000101/13.
[ 3.004456] uvcvideo: Adding mapping White Balance Blue Component to control 00000000-0000-0000-0000-000000000101/12.
[ 3.004470] uvcvideo: Adding mapping White Balance Red Component to control 00000000-0000-0000-0000-000000000101/12.
[ 3.004486] uvcvideo: Adding mapping Focus (absolute) to control 00000000-0000-0000-0000-000000000001/6.
[ 3.004504] uvcvideo: Adding mapping Focus, Auto to control 00000000-0000-0000-0000-000000000001/8.
[ 3.004519] uvcvideo: Adding mapping Zoom, Absolute to control 00000000-0000-0000-0000-000000000001/11.
[ 3.004535] uvcvideo: Adding mapping Zoom, Continuous to control 00000000-0000-0000-0000-000000000001/12.
[ 3.004553] uvcvideo: Adding mapping Privacy to control 00000000-0000-0000-0000-000000000001/17.
[ 3.004744] usbcore: registered new interface driver uvcvideo
[ 3.004753] USB Video Class driver (v1.0.8_SONiX_v2.6.36.04)
[ 3.004834] init: command 'insmod' r=0
[ 3.004979] init: skipping insecure file '/system/vendor/modules/da380.ko'
[ 3.006171] step1 : gsensor_fetch_sysconfig_para
[ 3.006190] step2 : gsensor_fetch_sysconfig_para
[ 3.006198] [MIR3DA] fetch_sysconfig_para failed!
[ 3.006202]
[ 3.006533] init: command 'insmod' r=-1
[ 3.006699] init: skipping insecure file '/system/vendor/modules/sw-device.ko'
[ 3.007874] get sysconfig para erro!
[ 3.008056] init: command 'insmod' r=0
[ 3.008090] init: processing action 0x323b0 (property_service_init)
[ 3.008220] init: skipping insecure file '/system/build.prop'
[ 3.235701] init: Created socket '/dev/socket/property_service' with mode '666', user '0', group '0'
[ 3.271419] init: command 'property_service_init' r=0
[ 3.277241] init: processing action 0x323f8 (signal_init)
[ 3.283524] init: command 'signal_init' r=0
[ 3.288350] init: processing action 0x32440 (check_startup)
[ 3.294818] init: command 'check_startup' r=0
[ 3.299777] init: processing action 0x301c8 (boot)
[ 3.305734] init: command 'ifup' r=0
[ 3.309978] init: command 'hostname' r=0
[ 3.314562] init: command 'domainname' r=0
[ 3.319319] init: command 'setrlimit' r=0
[ 3.323971] init: command 'chown' r=0
[ 3.328270] init: starting 'servicemanager'
[ 3.333622] init: starting 'vold'
[ 3.337834] init: starting 'media'
[ 3.348678] init: Created socket '/dev/socket/vold' with mode '660', user '0', group '1009'
[ 3.366662] init: starting 'startupSound'
[ 3.381919] init: command 'class_start' r=0
[ 3.397884] init: starting 'ccdr'
[ 3.406857] init: command 'class_start' r=0
[ 3.424668] init: processing action 0x30f60 (boot)
[ 3.431142] init: starting 'adbd'
[ 3.440993] init: command 'start' r=0
[ 3.457532] init: Created socket '/dev/socket/adbd' with mode '660', user '1000', group '1000'
[ 3.472098] init: starting 'debuggerd'
[ 3.476899] init: command 'start' r=0
[ 3.500166] init: starting 'standby'
[ 3.505445] adb_open
[ 3.510202] init: command 'start' r=0
[ 3.517248] init: processing action 0x32488 (queue_property_triggers)
[ 3.524991] init: command 'queue_property_triggers' r=0
[ 3.531179] init: processing action 0x304a8 (property:ro.debuggable=1)
[ 3.539187] init: starting 'console'
[ 3.544828] init: command 'start' r=0
[ 3.551457] init: processing action 0x31da0 (property:sys.usb.config=mass_storage,adb)
[ 3.561159] android_usb: already disabled
[ 3.565873] init: command 'write' r=0
[ 3.570270] init: command 'write' r=0
[ 3.574604] init: command 'write' r=0
[ 3.578878] init: command 'write' r=0
[ 3.583496] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 3.593289] adb_bind_config
[ 3.596500] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 3.606168] ep_matches, wrn: endpoint already claimed, ep(0xc048cd60, 0xc1a6dcc0, ep1out-bulk)
[ 3.615964] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 3.625631] ep_matches, wrn: endpoint already claimed, ep(0xc048cd60, 0xc1a6dcc0, ep1out-bulk)
[ 3.635297] ep_matches, wrn: endpoint already claimed, ep(0xc048cdac, 0xc1a7ae00, ep2in-bulk)
[ 3.645089] init: command 'write' r=0
[ 3.649427] init: command 'setprop' r=0
root@camdroid:/ # [ 5.564198] ★·newcdr·★: main entry
[ 5.568544] ★·newcdr·★: [Firmware Version: yzw@tiger_cdr 2019-04-17 15:40:34]
[ 5.585980] ★·newcdr·★: ===no need to check battery capacity ===
[ 5.608496] [VFE]vfe_open
[ 5.614643] [VFE]..........................vfe clk open!.......................
[ 5.624710] [VFE]vfe_open ok
[ 5.628888] [VFE]vfe_close
[ 5.632056] [VFE]vfe select input flag = 0, s_input have not be used .
[ 5.639428] [VFE]..........................vfe clk close!.......................
[ 5.648525] [VFE]vfe_close end
[ 5.652165] [VFE]vfe_open
[ 5.655197] [VFE]..........................vfe clk open!.......................
[ 5.665517] [VFE]vfe_open ok
[ 5.669007] [VFE]vfe_close
[ 5.672239] [VFE]vfe select input flag = 0, s_input have not be used .
[ 5.679589] [VFE]..........................vfe clk close!.......................
[ 5.688645] [VFE]vfe_close end
[ 6.563549] [DISP] ready enter pm_runtime_get_sync, device0
[ 6.822010] [VFE]vfe_open
[ 6.825057] [VFE]..........................vfe clk open!.......................
[ 6.840460] [VFE]vfe_open ok
[ 6.850172] [VFE]Set vfe core clk = 216000000, after Set vfe core clk = 297000000
[ 6.870035] [VFE_ERR]sensor standby off error when selecting target device!
[ 6.878005] [VFE]vfe_close
[ 6.891241] [VFE_ERR]sensor power off error at device number when csi close!
[ 6.899266] [VFE]..........................vfe clk close!.......................
[ 6.927955] [VFE]vfe_close end
[ 6.933635] ★·newcdr·★: startPreview finished
[ 7.523448] init: waitpid returned pid 66, status = 00000000
[ 7.537037] init: process 'startupSound', pid 66 exited
[ 8.005839] init: processing action 0x31da0 (property:sys.usb.config=mass_storage,adb)
[ 8.020915] adb_release
[ 8.024188] init: command 'write' r=0
[ 8.028536] init: command 'write' r=0
[ 8.033001] adb_open
[ 8.047162] init: command 'write' r=0
[ 8.051567] init: command 'write' r=0
[ 8.055942] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 8.070276] adb_bind_config
[ 8.073597] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 8.083239] ep_matches, wrn: endpoint already claimed, ep(0xc048cd60, 0xc1a6dcc0, ep1out-bulk)
[ 8.093006] ep_matches, wrn: endpoint already claimed, ep(0xc048cd14, 0xc1a6dcc0, ep1in-bulk)
[ 8.102666] ep_matches, wrn: endpoint already claimed, ep(0xc048cd60, 0xc1a6dcc0, ep1out-bulk)
[ 8.112421] ep_matches, wrn: endpoint already claimed, ep(0xc048cdac, 0xc1a7ae00, ep2in-bulk)
[ 8.122198] init: command 'write' r=0
[ 8.127266] [VFE]vfe_open
[ 8.130489] init: command 'setprop' r=0
[ 8.134898] [VFE]..........................vfe clk open!.......................
[ 8.143729] [VFE]vfe_open ok
[ 8.147080] [VFE]vfe_close
[ 8.150211] [VFE]vfe select input flag = 0, s_input have not be used .
[ 8.157666] [VFE]..........................vfe clk close!.......................
[ 8.166188] [VFE]vfe_close end
root@camdroid:/ #
这是我的启动LOG,我看到有这两行错误,有影响吗?
00000
[ 6.870035] [VFE_ERR]sensor standby off error when selecting target device!
[ 6.878005] [VFE]vfe_close
[ 6.891241] [VFE_ERR]sensor power off error at device number when csi close!
[ 6.899266] [VFE]..........................vfe clk close!.......................
https://whycan.cn/files/members/3/QQ20181027140908.png
struct isp_cfg_item isp_cfg_array[] =
{
{ "ov2710_mipi", &ov2710_mipi_isp_cfg, },
{ "ar0330_mipi", &ar0330_mipi_isp_cfg, },
{ "h22_mipi", &h22_mipi_isp_cfg, },
{ "gc1004_mipi", &gc1004_mipi_isp_cfg, },
{ "ov4689", &ov4689_isp_cfg, },
};经过 @Morgan 看了一下ISP代码,果然没有包含 ov5647 部分, 赶紧加上去试一试。
晕哥
ar0330_mipi_default_a83.h gc5004_default_a83.h ov2710_mipi_isp_cfg_ST6123.h
ar0330_mipi_hk8211_v3.h h22_mipi_default_a83.h ov4689_60fps_default_a83.h
ar0330_mipi_hk9072_v3.h h22_mipi_isp_cfg.h ov4689_isp_cfg.h
ar0330_mipi_isp_cfg.h h22_mipi_isp_cfg_HK8214C.h ov4689_sdv_default_a83.h
ar0330_mipi_isp_cfg_ST6123.h h42_mipi_default_v3.h ov4689_sdv_isp_cfg_HK8189.h
ar0330_mipi_isp_cfg_V3S_JV372T.h hm5040_default_a83.h ov5647_default_a83.h
gc1004_mipi_default_a83.h nt99231_mipi_hk8189_v3.h ov5648_default_a83.h
gc1004_mipi_isp_cfg.h nt99231_mipi_isp_cfg.h s5k3h7_default_a83.h
gc1004_mipi_isp_cfg_HK8214C.h ov2710_mipi_default_a83.h s5k5e2ya_default_a83.h
gc2355_default_a83.h ov2710_mipi_isp_cfg.h
OV5647的ISP加哪个, ov5647_default_a83.h?
晕哥 说:一楼,最后一行
或者用整合的命令行:
#tinymix 1 24;tinymix 16 1;tinyplay /system/res/others/startup.wav是说要用这个组合命令吗?
试过了,没用
我是在一个camdroid的sdk上自己编译的,不知道是不是官方的sdk,就改了一下sys_config.fex,
然后,lcd显示正常,但没有声音
总算有声音了,奶奶的
一楼,最后一行
或者用整合的命令行:
#tinymix 1 24;tinymix 16 1;tinyplay /system/res/others/startup.wav
是说要用这个组合命令吗?
试过了,没用
我是在一个camdroid的sdk上自己编译的,不知道是不是官方的sdk,就改了一下sys_config.fex,
然后,lcd显示正常,但没有声音
晕哥 说:不行,那要重做文件系统,用sunxi-fel烧录。
好的,谢谢晕哥,我明天试
晕哥
我用主线linux测试,声音,网络都OK,但用camdroid就怎么都没声音,会是哪里的问题啊
[audio0]
audio_used = 1
headphone_vol = 0x3b
cap_vol = 0x5
Differential_output = 1
pa_single_vol = 0x3d
---------------------------------------------------------------------
1|root@camdroid:/dev/snd # ls
controlC0
pcmC0D0c
pcmC0D0p
timer
--------------------------------------------------------------
|root@camdroid:/system/res/others # tinymix
Number of controls: 17
ctl type num name value
0 INT 1 Master Playback Volume 59
1 INT 1 Line Volume 24
2 INT 1 MIC1_G boost stage output mixer control 3
3 INT 1 MIC2_G boost stage output mixer control 3
4 INT 1 MIC1 boost AMP gain control 4
5 INT 1 MIC2 boost AMP gain control 4
6 INT 1 ADC input gain ctrl 3
7 BOOL 1 Audio headphone out On
8 BOOL 1 Audio speaker out On
9 BOOL 1 Audio main mic Off
10 BOOL 1 Audio sub mic Off
11 ENUM 1 Audio record source mic1
12 BOOL 1 Audio noise reduced Off
13 BOOL 1 Audio linein Off
14 BOOL 1 Audio capture route switch Off
15 BOOL 1 Audio clear path Off
16 ENUM 1 Speaker Function spk
root@camdroid:/system/res/others # tinyplay startup.wav
Playing sample: 1 ch, 11025 hz, 16 bit
root@camdroid:/system/res/others #
渔头 说:晕哥 说:核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts/* * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz> * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "sun8i-v3s-licheepi-zero.dts" #include <dt-bindings/input/input.h> / { model = "Lichee Pi Zero with Dock"; compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero", "allwinner,sun8i-v3s"; aliases { ethernet0 = &emac; }; leds { /* The LEDs use PG0~2 pins, which conflict with MMC1 */ status = "disbaled"; }; }; &codec { allwinner,audio-routing = "Headphone", "HP", "Headphone", "HPCOM", "MIC1", "Mic", "Mic", "HBIAS"; status = "okay"; }; &emac { status = "okay"; }; &mmc1 { broken-cd; bus-width = <4>; vmmc-supply = <®_vcc3v3>; status = "okay"; }; &lradc { vref-supply = <®_vcc3v0>; status = "okay"; button@200 { label = "Volume Up"; linux,code = <KEY_VOLUMEUP>; channel = <0>; voltage = <200000>; }; button@400 { label = "Volume Down"; linux,code = <KEY_VOLUMEDOWN>; channel = <0>; voltage = <400000>; }; button@600 { label = "Select"; linux,code = <KEY_SELECT>; channel = <0>; voltage = <600000>; }; button@800 { label = "Start"; linux,code = <KEY_OK>; channel = <0>; voltage = <800000>; }; };
谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了
下面这么多DTB,我就没试这个dock的,因为不知道啥意思
sun8i-v3s.dtsi sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb
sun8i-v3s-licheepi-zero-dock.dtb sun8i-v3s-licheepi-zero-with-480x272-lcd.dts
sun8i-v3s-licheepi-zero-dock.dts sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb
sun8i-v3s-licheepi-zero.dtb sun8i-v3s-licheepi-zero-with-800x480-lcd.dts
sun8i-v3s-licheepi-zero.dts sun8i-v3s-licheepi-zero-with-lcd.dtsi
晕哥 说:核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts/* * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz> * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "sun8i-v3s-licheepi-zero.dts" #include <dt-bindings/input/input.h> / { model = "Lichee Pi Zero with Dock"; compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero", "allwinner,sun8i-v3s"; aliases { ethernet0 = &emac; }; leds { /* The LEDs use PG0~2 pins, which conflict with MMC1 */ status = "disbaled"; }; }; &codec { allwinner,audio-routing = "Headphone", "HP", "Headphone", "HPCOM", "MIC1", "Mic", "Mic", "HBIAS"; status = "okay"; }; &emac { status = "okay"; }; &mmc1 { broken-cd; bus-width = <4>; vmmc-supply = <®_vcc3v3>; status = "okay"; }; &lradc { vref-supply = <®_vcc3v0>; status = "okay"; button@200 { label = "Volume Up"; linux,code = <KEY_VOLUMEUP>; channel = <0>; voltage = <200000>; }; button@400 { label = "Volume Down"; linux,code = <KEY_VOLUMEDOWN>; channel = <0>; voltage = <400000>; }; button@600 { label = "Select"; linux,code = <KEY_SELECT>; channel = <0>; voltage = <600000>; }; button@800 { label = "Start"; linux,code = <KEY_OK>; channel = <0>; voltage = <800000>; }; };
谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊
晕哥
哈哈,搞定了,网络和声音,太谢谢了,下一步搞摄像头了
核心板: sun8i-v3s-licheepi-zero.dts
核心板+底板: sun8i-v3s-licheepi-zero-dock.dts/* * Copyright (C) 2016 Icenowy Zheng <icenowy@aosc.xyz> * * This file is dual-licensed: you can use it either under the terms * of the GPL or the X11 license, at your option. Note that this dual * licensing only applies to this file, and not this project as a * whole. * * a) This file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * This file is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * Or, alternatively, * * b) Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following * conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ #include "sun8i-v3s-licheepi-zero.dts" #include <dt-bindings/input/input.h> / { model = "Lichee Pi Zero with Dock"; compatible = "licheepi,licheepi-zero-dock", "licheepi,licheepi-zero", "allwinner,sun8i-v3s"; aliases { ethernet0 = &emac; }; leds { /* The LEDs use PG0~2 pins, which conflict with MMC1 */ status = "disbaled"; }; }; &codec { allwinner,audio-routing = "Headphone", "HP", "Headphone", "HPCOM", "MIC1", "Mic", "Mic", "HBIAS"; status = "okay"; }; &emac { status = "okay"; }; &mmc1 { broken-cd; bus-width = <4>; vmmc-supply = <®_vcc3v3>; status = "okay"; }; &lradc { vref-supply = <®_vcc3v0>; status = "okay"; button@200 { label = "Volume Up"; linux,code = <KEY_VOLUMEUP>; channel = <0>; voltage = <200000>; }; button@400 { label = "Volume Down"; linux,code = <KEY_VOLUMEDOWN>; channel = <0>; voltage = <400000>; }; button@600 { label = "Select"; linux,code = <KEY_SELECT>; channel = <0>; voltage = <600000>; }; button@800 { label = "Start"; linux,code = <KEY_OK>; channel = <0>; voltage = <800000>; }; };
谢谢晕哥
我是一体板,意思是要用带dock的dtb,这个dock是个啥意思
一会编译camdroid,一会有搞这个主线linux,真的太复杂啊
荔枝派zero核心板pdf:
https://whycan.cn/files/20171005/11/lichee_zero(核心板).pdf荔枝派zero底板pdf:
https://whycan.cn/files/20171005/11/lichee_base(底板).pdf二代一体开发板: 荔枝派一体开发板原理图(核心板与底板整合到一块).pdf
全志V3s手册V1.0: Allwinner_V3s_Datasheet_V1.0.pdf
全志S3手册V0.2: Allwinner_S3_Datasheet_V0_2.pdf (索智S3手册)http://bbs.lichee.pro/d/127-lichee-sipeed
Lichee Zero:
链接: https://pan.baidu.com/s/1m7DHguNUOJr2QmNJepbQvw 37
提取码:66we
Lichee Zero Plus:
链接: https://pan.baidu.com/s/1DNx1UM7xzSOXFBMSEZv7nA 6
提取码:8umq
Lichee Two:
链接: https://pan.baidu.com/s/1xh74NrFtiGmQ9cdgCRBMBA 5
提取码:riw6
Lichee Nano:
链接: https://pan.baidu.com/s/1xfR7RCKHK033EXvAVQbMbQ 26
提取码:srv5
Lichee Tang:
链接: https://pan.baidu.com/s/1wiNE8Q4ddaF_c-vb40rfAA
提取码:zwfl
Lichee One:
链接: https://pan.baidu.com/s/12vld5q9yyokt2deF-CyX8A 2
提取码:sxq2
Lichee One Plus:
链接: https://pan.baidu.com/s/1PwepFH_TMQ5QJSOpXHZ4Xg 4
提取码:3rza
Lichee Dan/Sipeed M1
链接: https://pan.baidu.com/s/19lEeGs2j5sDK2Z9tgx6xxQ 33
提取码:bvl2-------------------------------------------------------------------------------------------
回顾: 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
1. 准备工作
1) 安装Ubuntu14.04LTS(长支持版本),如果用虚拟机请安装vmware14(别的虚拟机都不推荐,泪的教训), 然后安装 vmware tools(不是必须,但是方便文件共享)2) 安装arm linux 硬件浮点数工具链, 因为V3s支持VFPv4 浮点单元: sudo apt-get install gcc-arm-linux-gnueabihf
3) 安装git源码管理软件: sudo apt-get install git
4) 其他支撑软件
2. u-boot
首先获取u-boot源码: git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-current
如果你需要支持spi flash: git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental修改 include/configs/sun8i.h, 使u-boot可以直接从tf卡启动:
#define CONFIG_BOOTCOMMAND "setenv bootm_boot_mode sec; " \
"load mmc 0:1 0x41000000 zImage; " \
"load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
"bootz 0x41000000 - 0x41800000;"#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0"
cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)
ARCH=arm make menuconfig
执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j33. 设备树, Linux
获取Linux源码(zero-4.13.y分支对网卡支持比较好): git clone https://github.com/Lichee-Pi/linux.git -b zero-4.13.y
生成荔枝派Zero 默认配置文件: CROSS_COMPILE=arm-linux-gnueabihf- ARCH=arm make licheepi_zero_defconfig
设备树文件(默认不需要修改): arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
编译内核: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4
编译设备树: make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- dtbs4. 根文件系统
1). 下载最新的buildroot稳定版本
官方网站: https://buildroot.org/download.html
长支持版本:buildroot-2017.02.7.tar.gz
最新稳定版:buildroot-2017.08.1.tar.gz2). 配置buildroot 参数, make menuconfig; make
https://whycan.cn/files/members/4/QQ20171122094600.png
https://whycan.cn/files/members/4/QQ20171122094653.png
如果不会配置, 就下载下面这个文件,然后把 buildroot-v3s-20171122.zip解压后 拷贝到 buidroot目录成 .config 文件。
3). 执行编译, 生成文件跟文件系统。
4). 如需构建Qt应用程序, 视频地址: buildroot成功后如何编译Qt应用程序
5. 烧录TF卡启动盘: 【视频分享】制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘
1) 删除TF卡所有分区
2) 将uboot写入到sd卡8k偏移处(必须8K偏移, brom龟腚的)。
sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdX bs=1024 seek=8
3) 建立第一个分区,大小32M(可以随意填写), 格式FAT16, 把zImage, sun8i-v3s-licheepi-zero-dock.dtb拷贝到 这个分区
4) 建立第二个分区,用尽剩余空间,格式ext4, 把buildroot产生的rootfs.tar解压到该分区根目录
tar xvf output/images/rootfs.tar -C /挂载的tf卡第二个分区目录这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd
晕哥
我按这个步骤,编译出来的固件,内核提示找不到声卡设备哦,
我看sun8i-v3s-licheepi-zero.dts里面,没有声卡和网络的配置啊,
我要被这个芯片搞晕头了
试一试我的主线固件:
分立烧录文件下载: files_20190221.tgz (已带tinyalsa)
打包烧录文件下载: flash_20190221.tgz (已带tinyalsa)然后 tinymix + tinyplay:
https://whycan.cn/t_489.html#p1284
下载下来了,我的nor是16M的,可以烧录吗?
晕哥:
root@camdroid:/system/res/others # tinymix
Number of controls: 17
ctl type num name value
0 INT 1 Master Playback Volume 58
1 INT 1 Line Volume 24
2 INT 1 MIC1_G boost stage output mixer control 3
3 INT 1 MIC2_G boost stage output mixer control 3
4 INT 1 MIC1 boost AMP gain control 4
5 INT 1 MIC2 boost AMP gain control 4
6 INT 1 ADC input gain ctrl 3
7 BOOL 1 Audio headphone out On
8 BOOL 1 Audio speaker out Off
9 BOOL 1 Audio main mic Off
10 BOOL 1 Audio sub mic Off
11 ENUM 1 Audio record source mic1
12 BOOL 1 Audio noise reduced Off
13 BOOL 1 Audio linein Off
14 BOOL 1 Audio capture route switch Off
15 BOOL 1 Audio clear path Off
16 ENUM 1 Speaker Function headset
root@camdroid:/system/res/others # tinyplay startup.wav
Playing sample: 1 ch, 11025 hz, 16 bit
root@camdroid:/system/res/others #
我编译了一个camdroid的固件,能显示,tinyplay也能播放,但没有声音,可能会是什么问题呢?
https://whycan.cn/files/members/3/QQ20181027135452.jpg
新固件下载: sun8iw8p1_camdroid_tiger-cdr_uart0_licheepi_zero_ov5647_20181027.7z
果然图像亮很多了, 感谢 @Morgan 大神!
调试串口是 UART0(PB8, PB9)
晕哥,这个固件有对应的源码吗?
买了个zero的开发板,烧这个固件进去,屏幕上终于有显示了