您尚未登录。

#1 Re: GM8135s/GM8136s/GM8135/GM8136/GM8125/GM8126 » GM8135s入坑记录 » 2019-10-24 15:37:23

yuliang_8 说:

现在这时代,啥样的公司,都冒出来开发CPU,控制器,都他妈把以前高大上的处理器,CPU的逼格拉低了。
而且还各种隐藏bug,留后手,限制;
sdk, 开发手册,写的一坨屎一样。

尤其是全志,人家国外开源社区,软件代码风格是越来越开放化,自由化,大众化,标准化;
这些他妈的国产CPU,反过来,各种暗门,各种限制,还在内核源码各种傻逼式瞎改,
就全志那套sys_config.bin的config模式,

就他妈跟开源社区作对。



哈哈

#2 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-09-21 11:26:48

谢谢各位大佬,因为之前调不出来就换了mipi接口的摄像头,后来就没有再去弄v3s了,特别感谢版主大人,特意联系我,告诉我有人解决了

#3 Re: 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-08-01 16:48:28

太一酱鸭 说:

我也遇到相同的问题,请问您解决了吗

没有呀,教程里没有说怎么配FEX文件,我也是今天才调到这里的,然后就卡着了,所有才上论坛问的 0 0

#4 全志 SOC » 荔枝派zero开发板 使用的是BSP Linux 配置dvp的ov2640 » 2019-08-01 13:12:14

学习
回复: 47

系统已经按照教程 http://zero.lichee.pro/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/bsp_cam.html#bsp 配置了,但是上电没注册,
尝试修改了几次sys_config.fex 文件都不能注册到设备,恳求有相关经验的大佬指点一下!
下面是启动信息

[    6.097238] [VFE]cci probe start cci_sel = 0!
[    6.102251] [VFE]cci probe end cci_sel = 0!
[    6.107151] [VFE]cci_init end
[    6.110592] [VFE]Welcome to Video Front End driver
[    6.116272] [VFE]pdev->id = 0
[    6.119799] [VFE]dev->mipi_sel = 0
[    6.123716] [VFE]dev->vip_sel = 0
[    6.127511] [VFE]dev->isp_sel = 0
[    6.137532] [VFE_WARN]vfe vpu clock is null
[    6.148936] [VFE]vfe_init end
[    6.152417] [VFE]probe_work_handle start!
[    6.157100] [VFE]..........................vfe clk open!.......................
[    6.166271] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    6.175285] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    6.184440] [VFE]v4l2 subdev register input_num = 0
[    6.189975] [VFE_ERR]get regulator csi_avdd error!
[    6.195421] [VFE_ERR]vfe_device_regulator_get error at input_num = 0
[    6.202848] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    6.211612] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    6.220377] [VFE]V4L2 device registered as video0
[    6.225868] [VFE]..........................vfe clk close!.......................
[    6.234378] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    6.243053] [VFE]probe_work_handle end!

我尝试修改的fex文件的内容

[csi1]
vip_used                 = 1
vip_mode                 = 0
vip_dev_qty              = 1
vip_define_sensor_list   = 0
vip_csi_pck              = port:PE00<2><default><default><default>
vip_csi_mck              = port:PE01<2><default><default><default>
vip_csi_hsync            = port:PE02<2><default><default><default>
vip_csi_vsync            = port:PE03<2><default><default><default>
vip_csi_d0               = port:PE04<2><default><default><default>
vip_csi_d1               = port:PE05<2><default><default><default>
vip_csi_d2               = port:PE06<2><default><default><default>
vip_csi_d3               = port:PE07<2><default><default><default>
vip_csi_d4               = port:PE08<2><default><default><default>
vip_csi_d5               = port:PE09<2><default><default><default>
vip_csi_d6               = port:PE10<2><default><default><default>
vip_csi_d7               = port:PE11<2><default><default><default>
vip_csi_d8               = port:PE12<2><default><default><default>
;vip_csi_d9               = port:PE13<2><default><default><default>
vip_csi_d10               = port:PE14<2><default><default><default>
vip_csi_d11               = port:PE15<2><default><default><default>

vip_csi_sck               = port:PE21<2><default><default><default>
vip_csi_sda               = port:PE22<2><default><default><default>

vip_dev0_mname           = "ov2640"
vip_dev0_pos             = "front"
vip_dev0_twi_id          = 1
vip_dev0_twi_addr        = 0x60
vip_dev0_isp_used        = 0
vip_dev0_fmt             = 0
vip_dev0_stby_mode       = 0
vip_dev0_vflip           = 0
vip_dev0_hflip           = 0
vip_dev0_iovdd           = ""
vip_dev0_iovdd_vol       = 2800000
vip_dev0_avdd            = ""
vip_dev0_avdd_vol        = 2800000
vip_dev0_dvdd            = ""
vip_dev0_dvdd_vol        = 1500000
vip_dev0_afvdd           = ""
vip_dev0_afvdd_vol       = 2800000
vip_dev0_power_en        =
vip_dev0_reset           = 
vip_dev0_pwdn            = 
vip_dev0_flash_en        =
vip_dev0_flash_mode      =
vip_dev0_af_pwdn         =

vip_dev0_act_used        = 0
vip_dev0_act_name        = "ad5820_act"
vip_dev0_act_slave       = 0x18

vip_dev1_mname           = "gc2035"
vip_dev1_pos                 = "front"
vip_dev1_lane            = 1
vip_dev1_twi_id          = 4
vip_dev1_twi_addr        = 0x78
vip_dev1_isp_used        = 0
vip_dev1_fmt             = 1
vip_dev1_stby_mode       = 0
vip_dev1_vflip           = 0
vip_dev1_hflip           = 0
vip_dev1_iovdd           = ""
vip_dev1_iovdd_vol       = 2800000
vip_dev1_avdd            = ""
vip_dev1_avdd_vol        = 2800000
vip_dev1_dvdd            = ""
vip_dev1_dvdd_vol        = 1500000
vip_dev1_afvdd           = ""
vip_dev1_afvdd_vol       = 2800000
vip_dev1_power_en        =
vip_dev1_reset           =
vip_dev1_pwdn            =
vip_dev1_flash_en        =
vip_dev1_flash_mode      =
vip_dev1_af_pwdn         =

#5 Re: 全志 SOC » V3S BSP系统可以配置网络吗? » 2019-07-30 17:06:38

看了论坛,上电要用
ifconfig eth0 up
这个指令呀   = =!~

#6 全志 SOC » V3S BSP系统可以配置网络吗? » 2019-07-30 17:04:34

学习
回复: 3

看了论坛好像没有说BSP系统配网络的!

现在开发板进去好像没有网卡,有大佬知道的吗?


buildroot login: root
# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#

#7 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-26 15:03:53

使用TF卡终于可以进入系统了!!

直接使用论坛的《V3s主线u-boot引导官方linux,带Qt文件系统,网卡已测试.7z》
TF卡制作时按照晕哥的 https://whycan.cn/t_547.html
全部流程做完启动系统会出现 Rebooting in 5 seconds..
原来是问题是 EXT4-fs (mmcblk0p2): ouldn't mount RDWR because of unsupported optional features (400)

原因是因为我使用的系统是 Ubuntu18.04的,在使用gparted制作ext4文件分区的时候会加入旧的内核不支持的一些东西
解决办法就是制作好分区后使用 sudo tune2fs -O ^metadata_csum /dev/sdb2 去除

下面就是自己跟着教程编译一遍BSP系统了,希望不要出现问题!

感谢大家!

#8 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-25 23:45:22

awfans 说:

bsp linux 3.4 对吧, 那个 flash 分区和主线可能有点不同, 好像是改代码可以实现, 添加分区代码 结构体数组.

对呀,现在使用的是TF卡,可搜什么关键字呀? 我安装教程自己编译出来也不行,使用论坛里编译好的也不行!!

#9 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-25 23:35:03

awfans 说:

1. linux 开启 CONFIG_MTD_CMDLINE_PARTS
2. 或者 linux 开启 CONFIG_MTD_OF_PARTS, 设备树里面添加 parts,

您好,能麻烦你说下过程吗,谢谢啦!我才刚入门不好意思好多基础都不懂。
我使用的时zero的开发板,直接使用的 https://whycan.cn/t_682.html 里的这个《 V3s主线u-boot引导官方linux,带Qt文件系统,网卡已测试.7z》 固件都不行,下面时启动的日志!

U-Boot SPL 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2-00073-gdd6e874 (Jul 11 2018 - 16:05:42 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: unrecognized JEDEC id bytes: 00, 00, 00
*** Warning - spi_flash_probe() failed, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot.scr
reading /boot.scr
290 bytes read in 15 ms (18.6 KiB/s)
## Executing script at 41900000
reading uImage
2451080 bytes read in 133 ms (17.6 MiB/s)
reading script.bin
35240 bytes read in 26 ms (1.3 MiB/s)
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2451016 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Using machid 0x1029 from environment

Starting kernel ...

▒▒    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (qh@ubuntu) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #4 Thu Jan 11 13:00:40 CST 2018
[    0.000000] Initialized persistent memory from 41d20800-41d307ff
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 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: 64MB = 64MB total
[    0.000000] Memory: 30376k/30376k available, 35160k 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 - 0xc047e000   (4568 kB)
[    0.000000]       .init : 0xc047e000 - 0xc04a1000   ( 140 kB)
[    0.000000]       .data : 0xc04a2000 - 0xc04e5f80   ( 272 kB)
[    0.000000]        .bss : 0xc04e5fa4 - 0xc0580b8c   ( 619 kB)
[    0.000000] NR_IRQS:544
[    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.000159] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000181] pid_max: default: 32768 minimum: 301
[    0.000317] Mount-cache hash table entries: 512
[    0.000871] CPU: Testing write buffer coherency: ok
[    0.001138] Setting up static identity map for 0x40359b08 - 0x40359b60
[    0.001821] devtmpfs: initialized
[    0.003486] pinctrl core: initialized pinctrl subsystem
[    0.003979] NET: Registered protocol family 16
[    0.004296] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.004358] script_sysfs_init success
[    0.005130] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.006064] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.006448] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.007305] persistent_ram: uncorrectable error in header
[    0.007320] persistent_ram: no valid data in buffer (sig = 0x55175517)
[    0.011241] console [ram-1] enabled
[    0.012028] Not Found clk pll_isp in script
[    0.012227] Not Found clk pll_video in script
[    0.012332] Not Found clk pll_ve in script
[    0.012523] Not Found clk pll_periph0 in script
[    0.012626] Not Found clk pll_de in script
[    0.016583] bio: create slab <bio-0> at 0
[    0.017039] pwm module init!
[    0.019302] SCSI subsystem initialized
[    0.019649] usbcore: registered new interface driver usbfs
[    0.019904] usbcore: registered new interface driver hub
[    0.020173] usbcore: registered new device driver usb
[    0.020513] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.020625] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    5.020024] sunxi_i2c_do_xfer()978 - [i2c0] xfer timeout (dev addr:0x34)
[    5.020150] axp20_board 0-0034: failed reading at 0x03
[    5.020371] axp20_board: probe of 0-0034 failed with error -62
[    5.020526] Linux video capture interface: v2.00
[    5.020808] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    5.021263] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    5.022130] Switching to clocksource arch_sys_counter
[    5.029999] NET: Registered protocol family 2
[    5.029999] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    5.030352] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    5.030587] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    5.030711] TCP: Hash tables configured (established 2048 bind 2048)
[    5.030905] TCP: reno registered
[    5.031013] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.031215] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.031572] NET: Registered protocol family 1
[    5.032097] standby_mode = 1.
[    5.032205] wakeup src cnt is : 3.
[    5.032327] pmu1_enable = 0x1.
[    5.032518] pmux_id = 0x1.
[    5.032629] config_pmux_para: script_parser_fetch err.
[    5.032733] pmu2_enable = 0x0.
[    5.032926] add_sys_pwr_dm: get ldo name failed
[    5.033030] add_sys_pwr_dm: get ldo name failed
[    5.033135] add_sys_pwr_dm: get ldo name failed
[    5.033327] add_sys_pwr_dm: get ldo name failed
[    5.033431] add_sys_pwr_dm: get ldo name failed
[    5.033622] add_sys_pwr_dm: get ldo name failed
[    5.033726] add_sys_pwr_dm: get ldo name failed
[    5.033831] add_sys_pwr_dm: get ldo name failed
[    5.034022] add_sys_pwr_dm: get ldo name failed
[    5.034127] add_sys_pwr_dm: get ldo name failed
[    5.034315] after inited: sys_mask config = 0x0.
[    5.034420] dynamic_standby enalbe = 0x0.
[    5.034570] sunxi_reg_init enter
[    5.036719] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    5.036880] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    5.037262] msgmni has been set to 59
[    5.038322] io scheduler noop registered
[    5.038442] io scheduler deadline registered
[    5.038712] io scheduler cfq registered (default)
[    5.039212] [DISP]disp_module_init
[    5.039722] cmdline,disp=
[    5.040521] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    5.040733] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    5.043331] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    5.045986] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[    5.047008] [DISP]disp_module_init finish
[    5.047480] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    5.047957] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    5.048159] sw_uart_pm()890 - uart0 clk is already enable
[    5.048275] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    5.078257] sunxi_i2c_core_process()707 - [i2c0] i2c message is NULL, err_code = 0xfe
[    5.161959] console [ttyS0] enabled
[    5.695025] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    5.702989] spi spi0: master is unqueued, this is deprecated
[    5.709496] m25p_probe()982 - Use the Dual Mode Read.
[    5.715458] m25p80 spi0.0: found m25p05-nonjedec, expected w25q128
[    5.722440] m25p80 spi0.0: m25p05-nonjedec (64 Kbytes)
[    5.729812] partitions_register()865 - m25p80_read() ret 0, PartCnt: 0
[    5.737191] m25p80: probe of spi0.0 failed with error -22
[    5.745047] Failed to alloc md5
[    5.748682] eth0: Use random mac address
[    5.753242] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.780854] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.789974] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    5.798700] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    5.820030] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    5.827402] hub 1-0:1.0: USB hub found
[    5.831827] hub 1-0:1.0: 1 port detected
[    5.836708] sunxi-ehci sunxi-ehci.1: remove, state 1
[    5.842365] usb usb1: USB disconnect, device number 1
[    5.849547] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    5.865993] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.893165] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    5.901889] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    5.910435] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    5.974637] hub 1-0:1.0: USB hub found
[    5.978981] hub 1-0:1.0: 1 port detected
[    5.983930] sunxi-ohci sunxi-ohci.1: remove, state 1
[    5.989548] usb usb1: USB disconnect, device number 1
[    5.995921] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    6.012470] Initializing USB Mass Storage driver...
[    6.018062] usbcore: registered new interface driver usb-storage
[    6.024929] USB Mass Storage support registered.
[    6.030483] file system registered
[    6.035929] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    6.043729] android_usb gadget: Number of LUNs=1
[    6.049179]  lun0: LUN: removable file: (no medium)
[    6.055208] android_usb gadget: android_usb ready
[    6.060704] sunxikbd_script_init: key para not found, used default para.
[    6.069423] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    6.077940] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    6.086835] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    6.095746] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    6.104481] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    6.113190] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    6.121918] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    6.130682] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    6.139575] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    6.146990] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    6.158389] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    6.166062] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    6.172439] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    6.184389] no led_3, ignore it!
[    6.188092] no led_4, ignore it!
[    6.191804] no led_5, ignore it!
[    6.195477] no led_6, ignore it!
[    6.199257] no led_7, ignore it!
[    6.205014] usbcore: registered new interface driver usbhid
[    6.211431] usbhid: USB HID core driver
[    6.216436] ashmem: initialized
[    6.220453] logger: created 256K log 'log_main'
[    6.225768] logger: created 32K log 'log_events'
[    6.231238] logger: created 32K log 'log_radio'
[    6.236473] logger: created 32K log 'log_system'
[    6.243442] script_get_item return type err, consider it no ldo
[    6.254297] *******************Try sdio*******************
[    6.260949] asoc: sndcodec <-> sunxi-codec mapping ok
[    6.268817] TCP: cubic registered
[    6.272704] NET: Registered protocol family 17
[    6.277839] *******************Try sd *******************
[    6.284098] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    6.292912] ThumbEE CPU extension supported.
[    6.297834] Registering SWP/SWPB emulation handler
[    6.307947] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    6.317111] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    6.325697] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    6.334343] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    6.342986] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    6.351557] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    6.360394] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    6.369276] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 04:45:35 UTC (17135)
[    6.380208] ALSA device list:
[    6.383747]   #0: audiocodec
[    6.387445] Waiting for root device /dev/mmcblk0p2...
[    6.393630] mmc0: new high speed SDHC card at address 0001
[    6.400409] mmcblk0: mmc0:0001 SD16G 29.5 GiB
[    6.406877]  mmcblk0: p1 p2
[    6.410902] mmcblk mmc0:0001: Card claimed for testing.
[    6.416932] mmc0:0001: SD16G 29.5 GiB
[    6.421338] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    6.430165] *******************sd init ok*******************
[    6.436631] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    6.445463] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    6.454104] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    6.462643] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    6.471272] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    6.479882] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    6.500934] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    6.510891] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    6.520798] EXT4-fs (mmcblk0p2): couldn't mount RDWR because of unsupported optional features (400)
[    6.535236] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    6.544744] Backtrace:
[    6.547762] [<c0013410>] (dump_backtrace+0x0/0x110) from [<c0354534>] (dump_stack+0x18/0x1c)
[    6.557254]  r6:00008000 r5:c183d024 r4:c183d024 r3:00000001
[    6.564130] [<c035451c>] (dump_stack+0x0/0x1c) from [<c0354918>] (panic+0x78/0x1cc)
[    6.572834] [<c03548a0>] (panic+0x0/0x1cc) from [<c047ed20>] (mount_block_root+0x240/0x290)
[    6.582203]  r3:c1821f0c r2:00000020 r1:c1821f38 r0:c040406e
[    6.589066]  r7:c049c0b8
[    6.592081] [<c047eae0>] (mount_block_root+0x0/0x290) from [<c047edc8>] (mount_root+0x58/0x68)
[    6.601835] [<c047ed70>] (mount_root+0x0/0x68) from [<c047ef08>] (prepare_namespace+0x130/0x190)
[    6.611772]  r5:c049c0c9 r4:c04e6024
[    6.616037] [<c047edd8>] (prepare_namespace+0x0/0x190) from [<c047e94c>] (kernel_init+0x16c/0x1a8)
[    6.626170]  r5:c049c0b0 r4:00000007
[    6.630445] [<c047e7e0>] (kernel_init+0x0/0x1a8) from [<c0031df4>] (do_exit+0x0/0x66c)
[    6.639423] Rebooting in 5 seconds..

#10 Re: 全志 SOC » V3s rootfs挂载失败 » 2019-07-25 23:13:01

fan12398 说:
晕哥 说:

根据log你没有生成 /dev/mtd 分区, 导致没有 /dev/mtdblockX

所以根文件系统没有跑起来

晕哥,生成 /dev/mtd 分区是在 dts文件里加上partition吗?
我按照 lichee zero 教程里通过bootargs传递给内核就是上面的结果了

我也有这样的问题,请问你解决了吗?

#11 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2019-07-25 17:20:00

小猪佩奇 说:

找到问题了,是sys_config.fex没配置好

小猪佩奇 说:

你的问题解决了吗,我现在跟你的问题一样~改了misc.c.以后只是多了一句

Uncompressing Linux... done, booting the kernel.

停留在这里不往下进行

camelshoko 说:

使用BBCode重新发下启动信息

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Apr 13 2018 - 13:04:14 +0800) Allwinner Technology
CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK

=> bootm 0x41000000
## Booting kernel from Legacy Image at 41000000 ...
   Image Name:   Linux-3.4.39
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2434096 Bytes = 2.3 MiB
   Load Address: 40008000
   Entry Point:  40008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
Starting kernel ...

我跟着教程,也出现了这个问题,请问你是怎么解决的呀?

#12 Re: 全志 SOC » V3S,安装sunxi-fel烧录工具,提示找不到libusb.h,咋办? » 2019-07-25 14:35:40

沉鱼 说:

看起来缺pkg-config, 你再试一试这个:

sudo apt-get install build-essential pkg-config


谢谢,我也遇到了这个问题,安装了你说的这几个可以编译安装了!

#13 Re: 全志 SOC » V3S 使用的是BSP Linux 加载不了摄像头驱动 » 2019-07-24 21:48:31

晕哥 说:

modprobe: FATAL: Module ov5647_mipi.ko not found in directory /lib/modules/3.4.39

/lib/modules/3.4.39 没有 ov5647_mipi.ko 文件


编译后安装驱动的正确姿势:

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make modules_install INSTALL_MOD_PATH=/opt/buildroot-2018.08.2/output/target/

进入系统还要modprobe吗?

#14 全志 SOC » V3S 使用的是BSP Linux 加载不了摄像头驱动 » 2019-07-24 18:41:30

学习
回复: 2

按照
http://zero.lichee.pro/%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91/bsp_cam.html
这里的教程来做的,编译出来的ko文件在系统上不能正常加载,有人遇到过这样的问题吗,还是我的流程有问题?


# modinfo ov5647_mipi.ko
filename:       /root/ov5647_mipi.ko
license:        GPL
description:    A low-level driver for OV5647_mipi sensors
author:         raymonxiu
srcversion:     8BDE00E1D768767AD28E1F2
alias:          i2c:ov5647_mipi
depends:
intree:         Y
vermagic:       3.4.39 mod_unload modversions ARMv7 p2v8
# modprobe  ov5647_mipi.ko
modprobe: FATAL: Module ov5647_mipi.ko not found in directory /lib/modules/3.4.39
# depmod ov5647_mipi.ko
depmod: ERROR: Bad version passed ov5647_mipi.ko
#

#16 Re: 全志 SOC » 请教一下V3S怎么外接扬声器 » 2019-07-22 15:45:37

ippen 说:
学习 说:
ippen 说:

这个应该要先检查音频文件本身有没问题,如果音频文件正常,那么用耳机接v3s输出,看看音频输出有没问题
最后一个环节,就是检查电路,要注意的是,v3s耳机输出的公共端不是电源的地线,是一个中间端子,如果你的功放和v3s的地线是相同的,那么就有问题了

看了下手册,HPCOM是耳机的公共端,我就直接接的功放的地线了,两个音频文件用耳机听都没有问题!

要注意一个地方,HPCOM是耳机公共端,接功放地线OK,但要确保功放的地线和V3s板子的地线是隔离的。
如果功放地线和V3s的地线是互通的,那么意味着V3s的HPCOM和地线连通了,那就是问题了

谢谢您。

#17 Re: 全志 SOC » 请教一下V3S怎么外接扬声器 » 2019-07-22 10:34:21

ippen 说:

这个应该要先检查音频文件本身有没问题,如果音频文件正常,那么用耳机接v3s输出,看看音频输出有没问题
最后一个环节,就是检查电路,要注意的是,v3s耳机输出的公共端不是电源的地线,是一个中间端子,如果你的功放和v3s的地线是相同的,那么就有问题了

看了下手册,HPCOM是耳机的公共端,我就直接接的功放的地线了,两个音频文件用耳机听都没有问题!

#18 Re: 全志 SOC » 请教一下V3S怎么外接扬声器 » 2019-07-21 01:07:50

smartcar 说:

是看起来没有问题,我们公司的机器也是这么接

谢谢您,是LPCOM接放大器的GND,放大器的音频输入接HPL这吗?

#19 全志 SOC » 请教一下V3S怎么外接扬声器 » 2019-07-20 23:44:44

学习
回复: 7

使用的放大器是LPA4871
FluxBB bbcode 测试

开发板的线怎么与放大器的输入端连接。

FluxBB bbcode 测试

我现在放大器那端的GND与LPCOM连接,放大器那端的输入连接的是HPL,使用aplay播放,有些音频大声,有些好小声(MP3格式转换位wav的音频文件),和音频文件有关系吗?

#20 Re: 全志 SOC » V3S 使用的是BSP Linux 写的应用程序怎么解决动态编译在板子上跑不起来的问题 » 2019-07-17 22:17:30

晕哥 说:

应该是 asound 没有提供静态库,看能否把这一个文件动态链接,其他的镜头链接。

或者自己编译 libasound.a

谢谢啦,按你说的编译了一个,可以编译运行了,

编译alsalib要在root下编译,
CC=arm-linux-gnueabi-gcc    ./configure --host=arm-linux-gnueabi --prefix=/usr/local/arm_alsa --enable-shared=no --enable-static=yes

make

make install

然后把编译出来的include文件和lib文件放在交叉编译器的对应路径
然后编译程序

arm-linux-gnueabi-gcc -o test alsa_test.c  -static -lasound -lm -lrt -ldl -lpthread

#21 Re: 全志 SOC » V3S 使用的是BSP Linux 写的应用程序怎么解决动态编译在板子上跑不起来的问题 » 2019-07-17 20:40:07

晕哥 说:

gcc -o hello hello.c -static

谢谢,这个程序静态编译时可以跑,有些静态编译不行呀比如我想测试一下音频的程序 使用

arm-linux-gnueabi-gcc /home/kerson/Desktop/alsa_test.c  -o test22  -static  -lasound

就提示
/home/kerson/Desktop/new/mango-pi-sdk/tools/external-toolchain/bin/../lib/gcc/arm-linux-gnueabi/4.6.3/../../../../arm-linux-gnueabi/bin/ld: cannot find -lasound
collect2: ld returned 1 exit status


动态编译是可以编译的!

#22 全志 SOC » V3S 使用的是BSP Linux 写的应用程序怎么解决动态编译在板子上跑不起来的问题 » 2019-07-17 20:34:49

学习
回复: 5

#include <stdio.h>
    int main()
    {
    printf("Hello World!\n");
       return 0;
    }


就这样的程序都要静态编译! 怎么办呀

#23 Re: 全志 SOC » V3S 使用的是Linux 怎么编译APP到板子上跑呢? » 2019-07-09 22:41:44

https://whycan.cn/t_682.html

在晕哥这里找到了,也可以运行了。静态编译就可以!

#24 全志 SOC » V3S 使用的是Linux 怎么编译APP到板子上跑呢? » 2019-07-09 22:22:18

学习
回复: 1

买的开发板一点入门资料都没有,对菜鸟太不友好了,哎,只能在坛子里求助了!



系统
# uname -a
Linux Mango-Pi 3.4.39 #16 Mon Jan 21 23:24:19 CST 2019 armv7l GNU/Linux

测试程序
kerson@ubuntu:~$ file test
test: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-, for GNU/Linux 2.6.16, BuildID[sha1]=d6d96bef401f3eb62d95abf98eba84262f87de40, not stripped



文件系统是通过NFS挂载的,程序拖进去开发板,但是运行出现

# ./test
-sh: ./test: not found

#25 Re: 全志 SOC » 芒果派全志V3s开发板完整入坑记录. » 2019-07-09 12:04:45

晕哥 说:
学习 说:

已经买了这款板子,但是资料好少,以前学习过一下嵌入式,以前的开发板SDK都带交叉编译环境的,这款板子的应用程序怎么编译和添加到板子上运行呀!

那个 camdroid 的 sdk 改起来确实很麻烦, 不按套路出牌。


不过还好, @qianhao 大神有一个比较好的解决方案,按通用Linux的开发方式:
https://whycan.cn/t_682.html

谢谢晕哥,我去学习一下!

#26 Re: 全志 SOC » 芒果派全志V3s开发板完整入坑记录. » 2019-07-08 21:51:27

已经买了这款板子,但是资料好少,以前学习过一下嵌入式,以前的开发板SDK都带交叉编译环境的,这款板子的应用程序怎么编译和添加到板子上运行呀!

页脚

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

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