您尚未登录。

#1 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-18 11:03:44

另外我想除了USB烧写方式以外可不可以TF卡烧写,
把生成的bin文件放到TF卡里面,然后用mtd_write,或者dd是否可行,我试了一下目前是没写进去

#2 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-18 09:48:44

把这两个参数去掉,并换成4.13y的内核
现在可以启动了,感谢晕哥~

晕哥 说:

把这两个参数先去掉:   -s 0x100 -e 0x10000

#3 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-17 10:30:03

那会不会是我镜像文件生成的有问题,我是这样操作的,(w25q256)
jffs2分区总空间是 32M-1M-64K-4M= 0x1AF0000

mkfs.jffs2 -s 0x100 -e 0x10000 -p 0x1AF0000 -d rootfs/ -o jffs2.img 
dd if=/dev/zero of=flashimg.bin bs=32M count=1
dd if=../ubootmainline/u-boot/u-boot-sunxi-with-spl.bin of=flashimg.bin bs=1K conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb of=flashimg.bin bs=1K seek=1024  conv=notrunc
dd if=../zero41y/linux-zero-4.10.y/arch/arm/boot/zImage of=flashimg.bin bs=1K seek=1088  conv=notrunc
dd if=../zero_imager/jffs2/jffs2.img of=flashimg.bin  bs=1K seek=5184  conv=notrunc

#4 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-16 15:24:08

感觉我的问题可能出在这
我uboot log,说

SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR

另外我的dts是

&spi0 {
	status = "okay";
	
	w25q128:w25q128@0 {
		compatible = "jedec,spi-nor";
		reg = <0x0>;
		spi-max-frequency = <16000000>;
		#address-cells = <1>;
		#size-cells = <1>;
	};
};
晕哥 说:
小猪佩奇 说:

我只替换了zImage,用的是您发的 V3s_W25Q256_MX25L256_Qt5.9.1.bin 里dd出来的kernel,

内核里这个也选中了<*>   Command line partition table parsing

看不出问题了,

有这个log

m25p80 spi0.0: w25q256 (32768 Kbytes)

而没有解析出分区,可能是设备树没有配 spi flash

你把你的 dts 贴出来看下


这是我前几天做的flash镜像,你试一试: v3s_32M_flash.tgz

#5 Re: 全志 SOC » V3S内置RTC掉电保存但是不计时 » 2018-12-16 14:35:27

是的,打错了

Morgan 说:
小猪佩奇 说:

原理图设计有36.768k无源晶振,有纽扣电池。
用BSP内核,时间可以保存但是掉电不计时。
求解答

menuconfig选择如下

Set system time from RTC on startup and resume                                                                                 
(rtc0)  RTC used to set the system time                                                                                             
                                                                                                       
*** RTC interfaces ***                                                                                                         
/sys/class/rtc/rtcN (sysfs)                                                                                       
  /dev/rtcN (character devices)   
<*>   sunxi rtc driver



看到开始的设计~~不应该是32.768Khz的晶振么~

#6 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-14 15:40:13

我只替换了zImage,用的是您发的 V3s_W25Q256_MX25L256_Qt5.9.1.bin 里dd出来的kernel,

内核里这个也选中了<*>   Command line partition table parsing

#7 Re: 全志 SOC » 请各位大神,帮我看看,为什么不能挂Jffs2文件系统? » 2018-12-14 15:15:28

我使用w25q256,
1. 添加 m25p80 驱动
已添加
2. 设备树添加 spi flash
已添加
3. 内核配置 config commandline parts (也可以配置设备树 dts parts)
已添加
4. bootargs 添加 mtdparts 命令行 (也可以在设备树配置mtdparts)
已添加
5. 用 mkfs.jffs2 制作根文件系统, 并且烧录到 前面mtdparts指定的位置.
完全参考看云上的方法做的,https://www.kancloud.cn/lichee/lpi0/331844。

我的log如下,

U-Boot 2017.01-rc2 (Dec 14 2018 - 11:34:03 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
I2C:   ready
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** 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 w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff2b2 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.0-licheepi-zero (wlyu@wlyu-virtual-machine) (gcc version 4.7.4 (Ubuntu/Linaro 4.7.4-3ubuntu12)) #19 SMP Fri Dec 14 14:02:26 CST 2018
[    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] random: fast init done
[    0.000000] percpu: Embedded 16 pages/cpu @c3f61000 s33740 r8192 d23604 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    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: 55028K/65536K available (6144K kernel code, 286K rwdata, 1504K rodata, 1024K init, 263K bss, 10508K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 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 - 0xc0a478a0   ( 287 kB)
[    0.000000]        .bss : 0xc0a4eaf0 - 0xc0a909f4   ( 264 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.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000166] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000399] Console: colour dummy device 80x30
[    0.000440] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000456] pid_max: default: 32768 minimum: 301
[    0.000581] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000597] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001264] CPU: Testing write buffer coherency: ok
[    0.001649] /cpus/cpu@0 missing clock-frequency property
[    0.001672] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002109] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002276] Hierarchical SRCU implementation.
[    0.002766] smp: Bringing up secondary CPUs ...
[    0.002782] smp: Brought up 1 node, 1 CPU
[    0.002790] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002796] CPU: All CPU(s) started in SVC mode.
[    0.003561] devtmpfs: initialized
[    0.006418] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006702] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006730] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006901] pinctrl core: initialized pinctrl subsystem
[    0.007887] NET: Registered protocol family 16
[    0.008386] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009502] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009519] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.020283] SCSI subsystem initialized
[    0.020536] usbcore: registered new interface driver usbfs
[    0.020588] usbcore: registered new interface driver hub
[    0.020670] usbcore: registered new device driver usb
[    0.020887] pps_core: LinuxPPS API ver. 1 registered
[    0.020896] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.020916] PTP clock support registered
[    0.021111] Advanced Linux Sound Architecture Driver Initialized.
[    0.022826] clocksource: Switched to clocksource arch_sys_counter
[    0.031888] NET: Registered protocol family 2
[    0.032528] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.032556] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.032579] TCP: Hash tables configured (established 1024 bind 1024)
[    0.032710] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.032758] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.033053] NET: Registered protocol family 1
[    0.033702] RPC: Registered named UNIX socket transport module.
[    0.033723] RPC: Registered udp transport module.
[    0.033728] RPC: Registered tcp transport module.
[    0.033734] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.035543] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.041299] NFS: Registering the id_resolver key type
[    0.041351] Key type id_resolver registered
[    0.041358] Key type id_legacy registered
[    0.041639] JFS: nTxBlock = 429, nTxLock = 3439
[    0.046646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.046668] io scheduler noop registered
[    0.046675] io scheduler deadline registered
[    0.046875] io scheduler cfq registered (default)
[    0.046886] io scheduler mq-deadline registered
[    0.046893] io scheduler kyber registered
[    0.047428] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.050515] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.109349] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.112245] console [ttyS0] disabled
[    0.132512] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[    0.716132] console [ttyS0] enabled
[    0.723702] m25p80 spi0.0: w25q256 (32768 Kbytes)
[    0.729405] libphy: Fixed MDIO Bus: probed
[    0.733907] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.740432] ehci-platform: EHCI generic platform driver
[    0.745782] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.752001] ohci-platform: OHCI generic platform driver
[    0.757760] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.767297] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.774168] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.778728] i2c /dev entries driver
[    0.782418] IR NEC protocol handler initialized
[    0.786995] IR RC5(x/sz) protocol handler initialized
[    0.792040] IR RC6 protocol handler initialized
[    0.796581] IR JVC protocol handler initialized
[    0.801104] IR Sony protocol handler initialized
[    0.805726] IR SANYO protocol handler initialized
[    0.810422] IR Sharp protocol handler initialized
[    0.815130] IR MCE Keyboard/mouse protocol handler initialized
[    0.820952] IR XMP protocol handler initialized
[    0.826110] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.892868] sunxi-mmc 1c0f000.mmc: base:0xc489d000 irq:22
[    0.899658] usbcore: registered new interface driver usbhid
[    0.905329] usbhid: USB HID core driver
[    0.910691] NET: Registered protocol family 17
[    0.915359] Key type dns_resolver registered
[    0.919810] Registering SWP/SWPB emulation handler
[    0.931436] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.942987] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    0.948756] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    0.959837] hub 1-0:1.0: USB hub found
[    0.963835] hub 1-0:1.0: 1 port detected
[    0.968867] using random self ethernet address
[    0.973435] using random host ethernet address
[    0.978748] usb0: HOST MAC f2:e1:be:48:4a:01
[    0.983217] usb0: MAC b6:4c:e4:72:da:1a
[    0.987114] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    0.994642] g_cdc gadget: g_cdc ready
[    0.998675] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:07 UTC (7)
[    1.006891] vcc3v0: disabling
[    1.009868] vcc5v0: disabling
[    1.012886] ALSA device list:
[    1.015852]   No soundcards found.
[    1.020642] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    1.028324] Please append a correct "root=" boot option; here are the available partitions:
[    1.036699] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    1.045044] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.0-licheepi-zero #19
[    1.052254] Hardware name: sun8i
[    1.055518] [<c010e794>] (unwind_backtrace) from [<c010b540>] (show_stack+0x10/0x14)
[    1.063260] [<c010b540>] (show_stack) from [<c0679630>] (dump_stack+0x80/0xa0)
[    1.070483] [<c0679630>] (dump_stack) from [<c011b39c>] (panic+0xd0/0x25c)
[    1.077358] [<c011b39c>] (panic) from [<c0901150>] (mount_block_root+0x174/0x260)
[    1.084835] [<c0901150>] (mount_block_root) from [<c0901344>] (mount_root+0x108/0x12c)
[    1.092744] [<c0901344>] (mount_root) from [<c0901494>] (prepare_namespace+0x12c/0x190)
[    1.100740] [<c0901494>] (prepare_namespace) from [<c0900e04>] (kernel_init_freeable+0x18c/0x1d0)
[    1.109606] [<c0900e04>] (kernel_init_freeable) from [<c068be54>] (kernel_init+0x8/0x114)
[    1.117777] [<c068be54>] (kernel_init) from [<c0107970>] (ret_from_fork+0x14/0x24)
[    1.125348] Rebooting in 5 seconds..

然后我替换了kernel以后出现如下log

U-Boot 2017.01-rc2 (Dec 14 2018 - 11:34:03 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
I2C:   ready
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** 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 w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff2b2 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.0-licheepi-zero+ (root@ubuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP Sun Jul 15 23:54:34 CST 2018
[    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 @c3f61000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    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: 55104K/65536K available (6144K kernel code, 224K rwdata, 1356K rodata, 1024K init, 251K bss, 10432K 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 : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 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 - 0xc0a383e0   ( 225 kB)
[    0.000000]        .bss : 0xc0a3f61c - 0xc0a7e48c   ( 252 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.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000167] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000380] Console: colour dummy device 80x30
[    0.000414] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000430] pid_max: default: 32768 minimum: 301
[    0.000551] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000568] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001150] CPU: Testing write buffer coherency: ok
[    0.001511] /cpus/cpu@0 missing clock-frequency property
[    0.001535] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001960] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002140] Hierarchical SRCU implementation.
[    0.002620] smp: Bringing up secondary CPUs ...
[    0.002637] smp: Brought up 1 node, 1 CPU
[    0.002646] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002653] CPU: All CPU(s) started in SVC mode.
[    0.003396] devtmpfs: initialized
[    0.005882] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006150] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006179] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.006345] pinctrl core: initialized pinctrl subsystem
[    0.007197] random: get_random_u32 called from bucket_table_alloc+0xf0/0x23c with crng_init=0
[    0.007334] NET: Registered protocol family 16
[    0.007772] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.008806] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.008825] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.018996] SCSI subsystem initialized
[    0.019290] usbcore: registered new interface driver usbfs
[    0.019356] usbcore: registered new interface driver hub
[    0.019446] usbcore: registered new device driver usb
[    0.019638] pps_core: LinuxPPS API ver. 1 registered
[    0.019648] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.019670] PTP clock support registered
[    0.019903] Advanced Linux Sound Architecture Driver Initialized.
[    0.021733] clocksource: Switched to clocksource arch_sys_counter
[    0.031789] NET: Registered protocol family 2
[    0.032377] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.032409] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.032432] TCP: Hash tables configured (established 1024 bind 1024)
[    0.032559] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.032606] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.032833] NET: Registered protocol family 1
[    0.034627] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.042654] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.044122] random: fast init done
[    0.046910] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.046934] io scheduler noop registered
[    0.046941] io scheduler deadline registered
[    0.047173] io scheduler cfq registered (default)
[    0.047184] io scheduler mq-deadline registered
[    0.047192] io scheduler kyber registered
[    0.051469] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.115187] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.118283] console [ttyS0] disabled
[    0.138549] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 30, base_baud = 1500000) is a U6_16550A
[    0.693714] console [ttyS0] enabled
[    0.700760] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.705928] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.712220] Creating 4 MTD partitions on "spi32766.0":
[    0.717363] 0x000000000000-0x000000100000 : "uboot"
[    0.723692] 0x000000100000-0x000000110000 : "dtb"
[    0.729597] 0x000000110000-0x000000510000 : "kernel"
[    0.735906] 0x000000510000-0x000002000000 : "rootfs"
[    0.742349] libphy: Fixed MDIO Bus: probed
[    0.746758] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.753361] ehci-platform: EHCI generic platform driver
[    0.758676] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.764902] ohci-platform: OHCI generic platform driver
[    0.770287] usbcore: registered new interface driver usb-storage
[    0.776756] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    0.786327] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    0.793196] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.797743] i2c /dev entries driver
[    0.802018] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.861785] sunxi-mmc 1c0f000.mmc: base:0xc48b2000 irq:22
[    0.868631] usbcore: registered new interface driver usbhid
[    0.874302] usbhid: USB HID core driver
[    0.879628] NET: Registered protocol family 17
[    0.884353] Registering SWP/SWPB emulation handler
[    0.895955] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.907406] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    0.913255] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    0.924437] hub 1-0:1.0: USB hub found
[    0.928295] hub 1-0:1.0: 1 port detected
[    0.933513] using random self ethernet address
[    0.938002] using random host ethernet address
[    0.943614] usb0: HOST MAC 42:5b:e6:44:64:90
[    0.947931] usb0: MAC d2:86:b5:e1:10:8f
[    0.951923] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    0.959401] g_cdc gadget: g_cdc ready
[    0.963432] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:06 UTC (6)
[    0.971600] vcc3v0: disabling
[    0.974646] vcc5v0: disabling
[    0.977615] ALSA device list:
[    0.980578]   No soundcards found.
[    0.990610] jffs2: Node at 0x00000fe0 with length 0x000000cd would run over the end of the erase block
[    1.000028] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.007571] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe4: 0x00cd instead
[    1.017087] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fe8: 0x02ac instead
[    1.026600] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000fec: 0x0014 instead
[    1.036085] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff0: 0x000b instead
[    1.045753] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000ff4: 0x81ed instead
[    1.055749] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001000: 0x22bf instead
[    1.065266] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001004: 0x22bf instead
[    1.074753] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001008: 0x22bf instead
[    1.084231] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000100c: 0x0a00 instead
[    1.093707] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001010: 0x0089 instead
[    1.103180] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001014: 0x0100 instead
[    1.112655] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001018: 0x0006 instead
[    1.122166] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000101c: 0xbef7 instead
[    1.131633] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001020: 0x8a40 instead
[    1.141114] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00001024: 0x5e78 instead
[    1.150588] jffs2: Further such events for this erase block will not be printed
[    1.160108] jffs2: Node at 0x00001f50 with length 0x000000f2 would run over the end of the erase block
[    1.169440] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.177338] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002000: 0x9f9c instead
[    1.186843] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002004: 0x4605 instead
[    1.196326] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002008: 0x2f92 instead
[    1.205804] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000200c: 0x5bc6 instead
[    1.215281] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002010: 0x5d23 instead
[    1.224755] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002014: 0x7945 instead
[    1.234230] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002018: 0x0d2f instead
[    1.243705] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000201c: 0xb254 instead
[    1.253178] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002020: 0xd5f7 instead
[    1.262653] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00002024: 0xc142 instead
[    1.272126] jffs2: Further such events for this erase block will not be printed
[    1.281615] jffs2: Node at 0x00002f88 with length 0x000000e0 would run over the end of the erase block
[    1.290939] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.298826] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003000: 0x208e instead
[    1.308329] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003004: 0xfa88 instead
[    1.317809] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003008: 0x853e instead
[    1.327285] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000300c: 0xe120 instead
[    1.336760] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003010: 0x02fa instead
[    1.346236] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003014: 0xb484 instead
[    1.355710] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003018: 0x6be3 instead
[    1.365185] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000301c: 0x7206 instead
[    1.374660] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003020: 0xefbc instead
[    1.384135] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00003024: 0x287b instead
[    1.393607] jffs2: Further such events for this erase block will not be printed
[    1.403098] jffs2: Node at 0x00003fd0 with length 0x0000013e would run over the end of the erase block
[    1.412418] jffs2: Perhaps the file system was created with the wrong erase size?
[    1.420288] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004000: 0x00fa instead
[    1.429788] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004004: 0x00ff instead
[    1.439268] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004008: 0x0006 instead
[    1.448745] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000400c: 0xdb4e instead
[    1.458221] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004010: 0xe2a3 instead
[    1.467700] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004014: 0x5e78 instead
[    1.477176] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004018: 0xd0c0 instead
[    1.486652] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000401c: 0xf110 instead
[    1.496126] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004020: 0x8181 instead
[    1.505602] jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00004024: 0xe181 instead
[    1.515074] jffs2: Further such events for this erase block will not be printed

晕哥帮忙看一下~

#9 Re: 全志 SOC » V3S内置RTC掉电保存但是不计时 » 2018-12-08 17:26:08

晕哥 说:

貌似主线也有这种问题, 而且时间还不准,差很远,后来干脆用PCF8563

确实差得远。。。十分钟内能差两分钟,我得看看晶振了。。

#10 Re: 全志 SOC » V3S内置RTC掉电保存但是不计时 » 2018-12-08 17:25:07

Morgan 说:

刚才想到,在V3S钟是有内部晶振,记得第一次都会先使用内部晶振去初始化RTC然后才切换到外部。可以尝试修改驱动直接使用外部晶振,我记得我就是这样解决的~~

感谢,问题已经解决,就是修改了,rtcsunxi.c直接使用外部晶振,掉电也计时了,就是太不准了,十分钟能差两分钟

#11 全志 SOC » V3S内置RTC掉电保存但是不计时 » 2018-12-08 11:34:16

小猪佩奇
回复: 24

原理图设计有36.768k无源晶振,有纽扣电池。
用BSP内核,时间可以保存但是掉电不计时。
求解答

menuconfig选择如下

Set system time from RTC on startup and resume                                                                                 
(rtc0)  RTC used to set the system time                                                                                             
                                                                                                       
*** RTC interfaces ***                                                                                                         
/sys/class/rtc/rtcN (sysfs)                                                                                       
  /dev/rtcN (character devices)   
<*>   sunxi rtc driver

#15 Re: 全志 SOC » 有没有在全志 V3s下用过Spi nand flash的朋友? » 2018-05-14 10:02:22

是不是要先在spi_flash_ids.c的const struct spi_flash_info spi_flash_ids[] =中添加w25n01g的相关信息

www220 说:

首先要搞定v3s内置的启动代码如何识别nand,如何读取数据和使用oob,能运行到spl阶段,一切都好办

#16 Re: 全志 SOC » 有没有在全志 V3s下用过Spi nand flash的朋友? » 2018-05-14 09:21:04

@emosquito 你好,我也用的W25N01GVZEIG,怎么调的,能否分享一下

emosquito 说:

我试过W25N01GVZEIG,linux下可以读写。把uboot的写到0x00000000开始的1MB,spl没有打印信息。

#17 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2018-05-11 17:54:07

@qianhao 请问楼主大神,不知道你有没有用BSP内核配置MIPI摄像头?是否成功?我配置完了之后 出现
Check open /system/etc/hawkview/ov5648/isp_test_param.ini failed!                                                                                                   

[    1.134553] [VFE]vfe_init end
[    1.139000] platform reg-15-cs-ldo0: Driver reg-15-cs-ldo0 requests probe def                                                                                                           erral
[    1.147745] [VFE]probe_work_handle start!
[    1.152339] [VFE]..........................vfe clk open!.....................                                                                                                           ..
[    1.160854] platform reg-15-cs-aldo1: Driver reg-15-cs-aldo1 requests probe d                                                                                                           eferral
[    1.169790] platform reg-15-cs-aldo2: Driver reg-15-cs-aldo2 requests probe d                                                                                                           eferral
[    1.178853] [VFE]v4l2 subdev register input_num = 0
[    1.184522] [VFE]vfe sensor detect start! input_num = 0
[    1.190457] [VFE]Find sensor name is "ov5648", i2c address is 6c, type is "RA                                                                                                           W" !
[    1.199006] [VFE]Sub device register "ov5648" i2c_addr = 0x6c start!
[    1.206192] [VFE]v4l2_device_register_subdev return 0
[    1.212044] [VFE]registered sensor subdev is OK!
[    1.217287] [VFE]Check sensor!
[    1.220800] [VFE]Sub device register "ov5648" is OK!
[    1.226701] platform reg-15-cs-dldo1: Driver reg-15-cs-dldo1 requests probe d                                                                                                           eferral
[    1.235708] platform reg-15-cs-dldo2: Driver reg-15-cs-dldo2 requests probe d                                                                                                           eferral
[    1.244626] platform reg-15-cs-buck1: Driver reg-15-cs-buck1 requests probe d                                                                                                           eferral
[    1.253605] platform reg-15-cs-buck2: Driver reg-15-cs-buck2 requests probe d                                                                                                           eferral
[    1.262584] platform reg-15-cs-buck3: Driver reg-15-cs-buck3 requests probe d                                                                                                           eferral
[    1.271360] [VFE]Check open /system/etc/hawkview/ov5648/isp_test_param.ini fa                                                                                                           iled!
[    1.271369] Match isp cfg  start!
[    1.283831] [VFE]read ini start
[    1.287641] [VFE]Fetch ini file form "/system/etc/hawkview/ov5648/isp_test_pa                                                                                                           ram.ini"
[    1.296718] platform reg-15-cs-buck4: Driver reg-15-cs-buck4 requests probe d                                                                                                           eferral
[    1.305736] platform reg-15-cs-ldoio0: Driver reg-15-cs-ldoio0 requests probe                                                                                                            deferral
[    1.314813] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.324709] [VFE_WARN]read ini info fail
[    1.329864] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->sta                                                                                                           rt 0x01c20ca0, res->end 0x01c20cbf
[    1.341192] [VFE]V4L2 device registered as video0
[    1.347048] [VFE]..........................vfe clk close!....................                                                                                                           ...
[    1.355709] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.363126] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.369547] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual ti                                                                                                           meout 16 sec
[    1.378808] [VFE]probe_work_handle end!

#18 Re: 全志 SOC » v3s BSP内核 dev里没有fb0 » 2018-05-02 18:24:06

按照这个一样的操作一样的源码:lichee派BSP内核编译教程
编译生成的uImage

晕哥 说:

你用的是哪里的源码?
如何编译的?
编译成什么文件了?

#19 Re: 全志 SOC » v3s BSP内核 dev里没有fb0 » 2018-05-02 18:02:23

晕哥,我用的BSP内核,dev下也没有 graphics

晕哥 说:

camdroid照搬了android的framework,
所以fb0也搬家到了 /dev/graphics/fb0

#20 全志 SOC » v3s BSP内核 dev里没有fb0 » 2018-05-02 17:58:38

小猪佩奇
回复: 8

我在编译内核打开了framebuffer驱动,使内核支持了framebuffer驱动,但是开发板启动后在/dev下找不与fb相关的东西,通过cat /proc/devices能够看到29 fb,在/proc下也能看到fb,但是/dev下就是没有fb0设备,用mknod /dev/fb0 c 29 0建立了fb0但是cat /dev/fb0却提示can't open /dev/fb0 no such device.
求大神路过~

#21 Re: 全志 SOC » v3s上测试MIPI接口摄像头用什么软件 » 2018-04-25 15:10:31

你用的是什么接口的摄像头?
我看v4L2是针对uvc免驱usb设备的编程框架 ,主要用于采集usb摄像头?MIPI的不知道可以吗

daydayup 说:

我试过camdroid,用v4l2标准接口获取数据即可。

#22 全志 SOC » v3s上测试MIPI接口摄像头用什么软件 » 2018-04-25 14:21:32

小猪佩奇
回复: 4

v3s上测试MIPI接口摄像头安装什么软件比较好~我看有fswebcam, 路过的大神有没有推荐和安装教程?

#23 Re: 全志 SOC » BSP内核启动问题 » 2018-04-20 17:40:34

会不会跟内核的配置有关,如果会,那么可能是内核哪里配置出问题

晕哥 说:

建议先用 ramdisk, 就是根文件系统与 kernel一起打包那种方式,
先把系统跑起来,
然后插卡,
看系统是否能挂载 mmcblk0p2  的文件系统。

#24 Re: 全志 SOC » BSP内核启动问题 » 2018-04-20 14:57:59

我只是把卡的第一分区 拷入配置好的script.bin ,uImage ,boot.scr

#25 Re: 全志 SOC » BSP内核启动问题 » 2018-04-20 14:56:23

晕哥,是这样的
同样的卡,同样的文件系统,主线linux正常启动

晕哥 说:

基于上面那些问题, 建议还是先烧一个能跑起来的系统吧,然后插卡,看卡是否正常。

#26 全志 SOC » BSP内核启动问题 » 2018-04-20 14:48:56

小猪佩奇
回复: 8

求大神路过
BSP启动内核卡在这里是什么问题
Waiting for root device /dev/mmcblk0p2...
我的根文件系统运行主线Linux没问题 hmm

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Linux version 3.4.39 (z@z) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #1 Fri Apr 20 11:18 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: 30344k/30344k available, 35192k 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 - 0xc04ee310   ( 305 kB)
[    0.000000]        .bss : 0xc04ee334 - 0xc05890cd   ( 620 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.000280] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000329] pid_max: default: 32768 minimum: 301
[    0.000595] Mount-cache hash table entries: 512
[    0.001543] CPU: Testing write buffer coherency: ok
[    0.001922] Setting up static identity map for 0x403565b8 - 0x40356610
[    0.003063] devtmpfs: initialized
[    0.006442] pinctrl core: initialized pinctrl subsystem
[    0.007253] NET: Registered protocol family 16
[    0.007754] DMA: preallocated 128 KiB pool for atomic coherent allocations
[    0.007851] script_sysfs_init success
[    0.009441] gpiochip_add: registered GPIOs 0 to 223 on device: sunxi-pinctrl
[    0.011424] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.012060] gpiochip_add: registered GPIOs 1024 to 1031 on device: axp-pinctrl
[    0.013681] persistent_ram: uncorrectable error in header
[    0.013714] persistent_ram: no valid data in buffer (sig = 0x55155517)
[    0.029218] console [ram-1] enabled
[    0.030779] Not Found clk pll_isp in script
[    0.031078] Not Found clk pll_video in script
[    0.031613] Not Found clk pll_ve in script
[    0.031903] Not Found clk pll_periph0 in script
[    0.032433] Not Found clk pll_de in script
[    0.040860] bio: create slab <bio-0> at 0
[    0.041572] pwm module init!
[    0.046058] SCSI subsystem initialized
[    0.046774] usbcore: registered new interface driver usbfs
[    0.047217] usbcore: registered new interface driver hub
[    0.047966] usbcore: registered new device driver usb
[    0.048488] twi_chan_cfg()340 - [twi0] has no twi_regulator.
[    0.049034] twi_chan_cfg()340 - [twi1] has no twi_regulator.
[    0.068323] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    0.087068] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    0.105804] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    0.106214] axp20_board 0-0034: failed reading at 0x03
[    0.106803] axp20_board: probe of 0-0034 failed with error -121
[    0.107169] Linux video capture interface: v2.00
[    0.107894] gpiochip_add: gpios 1024..1028 (axp_pin) failed to register
[    0.108812] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.110583] Switching to clocksource arch_sys_counter
[    0.129143] NET: Registered protocol family 2
[    0.130222] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.131244] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.131871] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.132214] TCP: Hash tables configured (established 2048 bind 2048)
[    0.132747] TCP: reno registered
[    0.133041] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.133598] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.134386] NET: Registered protocol family 1
[    0.135516] standby_mode = 1.
[    0.135810] wakeup src cnt is : 3.
[    0.136133] pmu1_enable = 0x1.
[    0.136665] pmux_id = 0x1.
[    0.136975] config_pmux_para: script_parser_fetch err.
[    0.137262] pmu2_enable = 0x0.
[    0.137796] add_sys_pwr_dm: get ldo name failed
[    0.138085] add_sys_pwr_dm: get ldo name failed
[    0.138375] add_sys_pwr_dm: get ldo name failed
[    0.138907] add_sys_pwr_dm: get ldo name failed
[    0.139195] add_sys_pwr_dm: get ldo name failed
[    0.139482] add_sys_pwr_dm: get ldo name failed
[    0.139770] add_sys_pwr_dm: get ldo name failed
[    0.140137] add_sys_pwr_dm: get ldo name failed
[    0.140670] add_sys_pwr_dm: get ldo name failed
[    0.140960] add_sys_pwr_dm: get ldo name failed
[    0.141245] after inited: sys_mask config = 0x0.
[    0.141777] dynamic_standby enalbe = 0x0.
[    0.142140] sunxi_reg_init enter
[    0.146077] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.146461] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.147390] msgmni has been set to 59
[    0.149241] io scheduler noop registered
[    0.149549] io scheduler deadline registered
[    0.150279] io scheduler cfq registered (default)
[    0.151323] [DISP]disp_module_init
[    0.152307] cmdline,disp=
[    0.153931] [DISP] disp_get_rotation_sw,line:68:disp 0 out of range? g_rot_sw=0
[    0.154508] [DISP] disp_init_connections,line:289:NULL pointer: 0, 0
[    0.159494] [DISP] Fb_map_kernel_logo,line:924:Fb_map_kernel_logo failed!
[    0.164370] [DISP] disp_sys_power_enable,line:387:some error happen, fail to get regulator
[    0.166792] [DISP]disp_module_init finish
[    0.167800] sw_uart_get_devinfo()1503 - uart0 has no uart_regulator.
[    0.168696] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.169248] sw_uart_pm()890 - uart0 clk is already enable
[    0.169559] sw_console_setup()1233 - console setup baud 115200 parity n bits 8, flow n
[    0.283863] console [ttyS0] enabled
[    0.847122] sunxi_spi_chan_cfg()1376 - [spi-0] has no spi_regulator.
[    0.855859] spi spi0: master is unqueued, this is deprecated
[    0.863058] m25p_probe()982 - Use the Dual Mode Read.
[    0.869143] m25p80 spi0.0: unrecognized JEDEC id 00efaa
[    0.877715] Failed to alloc md5
[    0.881914] eth0: Use random mac address
[    0.886661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.914779] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.924136] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    0.933313] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    0.960074] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    0.968245] hub 1-0:1.0: USB hub found
[    0.972824] hub 1-0:1.0: 1 port detected
[    0.978497] sunxi-ehci sunxi-ehci.1: remove, state 1
[    0.984413] usb usb1: USB disconnect, device number 1
[    0.992587] sunxi-ehci sunxi-ehci.1: USB bus 1 deregistered
[    1.009272] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.036863] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    1.045957] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 1
[    1.055027] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    1.125196] hub 1-0:1.0: USB hub found
[    1.129797] hub 1-0:1.0: 1 port detected
[    1.135231] sunxi-ohci sunxi-ohci.1: remove, state 1
[    1.141366] usb usb1: USB disconnect, device number 1
[    1.148421] sunxi-ohci sunxi-ohci.1: USB bus 1 deregistered
[    1.165440] Initializing USB Mass Storage driver...
[    1.171344] usbcore: registered new interface driver usb-storage
[    1.178558] USB Mass Storage support registered.
[    1.184613] file system registered
[    1.191683] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    1.199928] android_usb gadget: Number of LUNs=1
[    1.205412]  lun0: LUN: removable file: (no medium)
[    1.212294] android_usb gadget: android_usb ready
[    1.218054] sunxikbd_script_init: key para not found, used default para.
[    1.227810] [RTC] WARNING: Rtc time will be wrong!!
[    1.234201] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    1.243915] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.253213] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.262645] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.271884] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.280986] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.290255] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.299491] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.308644] sunxi_wdt_init_module: sunxi WatchDog Timer Driver v1.0
[    1.316564] sunxi_wdt_probe: devm_ioremap return wdt_reg 0xf1c20ca0, res->start 0x01c20ca0, res->end 0x01c20cbf
[    1.328504] sunxi_wdt_probe: initialized (g_timeout=16s, g_nowayout=0)
[    1.336591] wdt_enable, write reg 0xf1c20cb8 val 0x00000000
[    1.343107] wdt_set_tmout, write 0x000000b0 to mode reg 0xf1c20cb8, actual timeout 16 sec
[    1.358357] no led_3, ignore it!
[    1.362111] no led_4, ignore it!
[    1.365839] no led_5, ignore it!
[    1.369654] no led_6, ignore it!
[    1.373368] no led_7, ignore it!
[    1.377819] usbcore: registered new interface driver usbhid
[    1.384303] usbhid: USB HID core driver
[    1.389329] ashmem: initialized
[    1.393128] logger: created 256K log 'log_main'
[    1.398620] logger: created 32K log 'log_events'
[    1.404017] logger: created 32K log 'log_radio'
[    1.409278] logger: created 32K log 'log_system'
[    1.416131] script_get_item return type err, consider it no ldo
[    1.423685] asoc: sndcodec <-> sunxi-codec mapping ok
[    1.431537] TCP: cubic registered
[    1.435390] NET: Registered protocol family 17
[    1.440613] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    1.449498] ThumbEE CPU extension supported.
[    1.454506] Registering SWP/SWPB emulation handler
[    1.460901] platform reg-20-cs-ldoio0: Driver reg-20-cs-ldoio0 requests probe deferral
[    1.470087] platform reg-20-cs-ldo4: Driver reg-20-cs-ldo4 requests probe deferral
[    1.478658] platform reg-20-cs-ldo3: Driver reg-20-cs-ldo3 requests probe deferral
[    1.487359] platform reg-20-cs-ldo2: Driver reg-20-cs-ldo2 requests probe deferral
[    1.496041] platform reg-20-cs-ldo1: Driver reg-20-cs-ldo1 requests probe deferral
[    1.504618] platform reg-20-cs-dcdc3: Driver reg-20-cs-dcdc3 requests probe deferral
[    1.513488] platform reg-20-cs-dcdc2: Driver reg-20-cs-dcdc2 requests probe deferral
[    1.522399] =====ctp_fetch_sysconfig_para=====.
[    1.527654] ctp_fetch_sysconfig_para: ctp_power_ldo script_get_item err.
[    1.535442] ctp_fetch_sysconfig_para: ctp_power_ldo_vol script_get_item err.
[    1.543492] ctp_fetch_sysconfig_para: ctp_power_io script_get_item err.
[    1.551180] ctp_irq gpio number is 196
[    1.555462] wakeup gpio_request is failed
[    1.600132] i2c-core: driver [ft5x_ts] using legacy suspend method
[    1.607121] i2c-core: driver [ft5x_ts] using legacy resume method
[    1.632269] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    1.658632] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    1.685104] twi_send_clk_9pulse()563 - [i2c0] SDA is still Stuck Low, failed.
[    1.693527] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock
[    1.702728] ALSA device list:
[    1.706281]   #0: audiocodec
[    1.709944] Waiting for root device /dev/mmcblk0p2...

#27 Re: 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-20 14:45:15

好的,感谢大神

qianhao 说:

BSP 的修改屏幕参数即可  去pack文件夹里面的chip 里面修改你的 sysconfig.fex

#28 Re: 全志 SOC » 赶脚掉NS2009电阻触摸芯片的坑里面去了, 7寸触摸屏最底下10个像素高度触摸不到。 » 2018-04-19 16:11:48

问题解决了么?怎么回事?我的现在也是这个问题,也是v3s ns2009 用的主线linux-zero-4.13y

#29 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2018-04-18 12:38:25

@沉鱼 楼主,你编译好的linux&dtb,是直接下载下来的主线内核没有修改过的吗?

#30 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2018-04-17 10:25:45

找到问题了,是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 ...

#31 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2018-04-17 10:15:23

你的问题解决了吗,我现在跟你的问题一样~改了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 ...

#32 Re: 全志 SOC » licheepi zero BSP 内核(linux3.4) 编译教程 » 2018-04-16 18:22:12

跪求大神们帮忙看看, 我进不去内核是怎么回事

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 18 ms (15.6 KiB/s)
## Executing script at 41900000
reading uImage
Invalid FAT entry
262144 bytes read in 31 ms (8.1 MiB/s)
reading script.bin
Invalid FAT entry
2048 bytes read in 20 ms (99.6 KiB/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 ... Bad Data CRC
ERROR: can't get kernel image!
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.

#34 Re: 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-13 14:39:29

重新menuconfig了一下,能正常显示了~谢谢晕哥~

晕哥 说:

连接V3s的串口终端,看下输出什么

#35 Re: 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-13 14:17:33

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

#36 Re: 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-13 11:22:57

make LicheePi_Zero_800x480LCD_defconfig后编译烧写UBOOT 上电后 屏就闪一下就不亮了是怎么回事

晕哥 说:

#37 Re: 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-13 09:28:47

刚着手,我想着求助一下看有没有步骤流程,我自己研究研究吧,有什么具体问题再来问好了

晕哥 说:

荔枝派官方就是5寸的gps屏,可以直接驱动,和市场上7寸800*480没什么区别。
你现在的进展是到哪一步,哪里不明白?

#38 全志 SOC » 有哪位大神做过V3S内核做七寸RGB的,求分享 » 2018-04-13 08:56:39

小猪佩奇
回复: 11

有哪位大神做过V3S内核做七寸RGB的,求分享
无论是基于BSP内核或者是Linux-zero-4.13.y,都求分享具体做法~
谢啦谢啦~

#39 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 16:47:41

错误如下:
arch/arm/mach-sunxi/built-in.o: In function `pmic_bus_read':
/home/z/v3s/u-boot/arch/arm/mach-sunxi/pmic_bus.c:62: undefined reference to `i2c_read'
arch/arm/mach-sunxi/built-in.o: In function `pmic_bus_write':
/home/z/v3s/u-boot/arch/arm/mach-sunxi/pmic_bus.c:77: undefined reference to `i2c_write'
scripts/Makefile.spl:288: recipe for target 'spl/u-boot-spl' failed
make[1]: *** [spl/u-boot-spl] Error 1
Makefile:1319: recipe for target 'spl/u-boot-spl' failed
make: *** [spl/u-boot-spl] Error 2
感觉是我menuconfig配置问题

awfans 说:

可以把错误贴上来

#40 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 15:57:38

没有,menuconfig默认选的是board without a pmic。
obj-$ choice
    prompt "Select Sunxi PMIC Variant"
    depends on ARCH_SUNXI
    default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
    default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33
    default AXP818_POWER if MACH_SUN8I_A83T
    default SUNXI_NO_PMIC if MACH_SUN8I_H3 || MACH_SUN50I
没有匹配上AXP152,我加上的话 有AXP152生成 但是编译报错

awfans 说:

obj-$(CONFIG_AXP152_POWER)    += axp152.o

axp152有生成吗?

#41 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 15:42:46

上拉了。我看drivers/power/Kconfig 如下
choice
    prompt "Select Sunxi PMIC Variant"
    depends on ARCH_SUNXI
    default AXP209_POWER if MACH_SUN4I || MACH_SUN5I || MACH_SUN7I
    default AXP221_POWER if MACH_SUN6I || MACH_SUN8I_A23 || MACH_SUN8I_A33
    default AXP818_POWER if MACH_SUN8I_A83T
    default SUNXI_NO_PMIC if MACH_SUN8I_H3 || MACH_SUN50I

config SUNXI_NO_PMIC
    bool "board without a pmic"
    ---help---
    Select this for boards which do not use a PMIC.

config AXP152_POWER
    bool "axp152 pmic support"
    depends on MACH_SUN5I
    select CMD_POWEROFF
    ---help---
    Select this to enable support for the axp152 pmic found on most
    A10s boards.
问题是不是出在这?

晕哥 说:
小猪佩奇 说:

没有数据,是不是我i2c没配置好,应该怎么配置啊~求指点

awfans 说:

确定你在 u-boot的dts正确开启了i2c ?
如果开了, 你接逻辑分析仪, 看能不能抓到数据。

引脚上拉了吗?

#42 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 14:34:54

没有数据,是不是我i2c没配置好,应该怎么配置啊~求指点

awfans 说:

确定你在 u-boot的dts正确开启了i2c ?
如果开了, 你接逻辑分析仪, 看能不能抓到数据。

#43 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 11:28:21

有,我试试

awfans 说:

有没有逻辑分析仪?

#44 Re: 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 10:54:44

你好大神 u-boot的dts代码如下:
sun8i-v3s-licheepi-zero.dts:
&i2c0 {
    pinctrl-names = "default";
    pinctrl-0 = <&i2c0_pins_a>;
    status = "okay";
   
    axp152: axp152@30 {
        pinctrl-names = "default";
        compatible = "x-powers,axp152";
        reg = <0x30>;   
        interrupt-parent=<&pio>;
        interrupts=<1 2 IRQ_TYPE_EDGE_FALLING>;
        interrupt-controller;
        status = "okay";       
    };
};

sun8i-v3s.dtsi
        pio: pinctrl@01c20800 {
            compatible = "allwinner,sun8i-v3s-pinctrl";
            reg = <0x01c20800 0x400>;
            interrupts = <GIC_SPI 15 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_PIO>, <&osc24M>, <&osc32k>;
            clock-names = "apb", "hosc", "losc";
            gpio-controller;
            #gpio-cells = <3>;
            interrupt-controller;
            #interrupt-cells = <3>;

            i2c0_pins_a: i2c0@0 {
                pins = "PB6", "PB7";
                function = "i2c0";
                allwinner,drive = <SUN4I_PINCTRL_10_MA>;
                allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
            };

        i2c0: i2c@01c2ac00 {
            compatible = "allwinner,sun6i-a31-i2c";
            reg = <0x01c2ac00 0x400>;
            interrupts = <GIC_SPI 6 IRQ_TYPE_LEVEL_HIGH>;
            clocks = <&ccu CLK_BUS_I2C0>;
            resets = <&ccu RST_BUS_I2C0>;
            status = "disabled";
            #address-cells = <1>;
            #size-cells = <0>;
        };

awfans 说:

确定你在 u-boot的dts正确开启了i2c ?
如果开了, 你接逻辑分析仪, 看能不能抓到数据。

#45 全志 SOC » v3s在uboot中i2c上挂载AXP152 » 2018-04-03 10:43:02

小猪佩奇
回复: 15

如题 v3s在uboot中i2c上如何挂载AXP152?有搞过的大神么,求指点,i2c probe后从设备地址为空。

=> i2c probe
Valid chip addresses:

#46 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-29 17:59:59

晕哥赶快录入坑视频吧,我现在考虑出坑,追随海豚派了~捂脸

晕哥 说:

那你在 u-boot里面看下i2c有没有驱动, 如果驱动了直接调用接口读写 AXP152.

不过我还是强烈建议玩 海豚派 这种和官方SDK,
海豚派有完整的spi nand支持,AXP203 mpu, ESP8089 wifi等。
别玩主线了,早日出坑。
主线上面很多外设都不支持。

#47 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-29 17:41:33

v3s芯片  u-boot用的v3s-spi-experimental

晕哥 说:

你用什么soc ?
是全志还是别的?用主线还是全志bsp?

#48 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-29 17:32:33

我的板子是有三路电压默认值跟我所需要的电压值不对,用i2ctools可以读写,但是我应该在uboot里面直接把默认电压给改了才对吧,不知道晕哥有没有什么办法~

晕哥 说:

不用客气, 有不明白的,可以跟帖提出哦
我买的海豚派开发板自带 AXP203,
但是在驱动层驱动 这个PMU芯片的,
全志官方已经完全做好了的。

#49 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-27 14:02:24

感谢晕哥~

晕哥 说:
小猪佩奇 说:

你当时设置过电源芯片的某通道的电压么,我知道是写寄存器,但是不知道在哪写

应用层测试可以用i2c-tools工具写, 通过 /dev/i2c-0 这个接口与 i2c设备通讯.
照着axp152手册直接读写寄存器, 可以控制电压和axp152 的GPIO口。

#50 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-27 11:48:06

你当时设置过电源芯片的某通道的电压么,我知道是写寄存器,但是不知道在哪写

F1F2 说:
小猪佩奇 说:
晕哥 说:

到底只在u-boot还是linux里面操作 AXP152呢?

我搞不大清楚啊,我想操作AXP152的话应该怎么操作比较合适?改U-BOOT还是内核?自己都觉得自己的问题蠢。刚接触请见谅。

我们以前做HIFI播放器, 君正X1000E + AXP192 就是在Linux里面控制各组电源的, 比如I2S芯片电源, 功放芯片电源, 休眠的时候就在Linux关闭功放和I2S声卡芯片。

#51 Re: 全志 SOC » 各位大神,为什么在编译内核后没有“/sys/class/gpio”这个文件夹 » 2018-03-23 11:06:16

晕哥 说:

那就在文件系统先建立 /sys 目录, 然后那些初始化脚本才会 mount 成功,
如果你没有 /sys 目录,很明显这些脚本会失败:

mount -t proc proc /proc
mount -t sysfs sys /sys

好,感谢大神

#53 Re: 全志 SOC » 各位大神,为什么在编译内核后没有“/sys/class/gpio”这个文件夹 » 2018-03-22 18:24:44

晕哥 说:

busybox没有把 mdev编译进去.

那配置后不生成这个文件夹 /sys/class/gpio是怎么回事,那怎么去配置GPIO

#54 Re: 全志 SOC » 各位大神,为什么在编译内核后没有“/sys/class/gpio”这个文件夹 » 2018-03-22 17:06:27

晕哥 说:

执行 mdev -s 看看有没有效果?

呃   command not found

#55 全志 SOC » 各位大神,为什么在编译内核后没有“/sys/class/gpio”这个文件夹 » 2018-03-22 16:53:35

小猪佩奇
回复: 9

我想配置一个普通IO为输入模式,在编译内核的时候加入   Device Drivers-> GPIO Support ->/sys/class/gpio/… (sysfs interface)后 没有“/sys/class/gpio”这个文件夹

#56 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-19 15:20:57

晕哥 说:
小猪佩奇 说:
晕哥 说:

我记得官方的SDK是用 AXP203,
你是用官方的SDK吗?

海豚派原理图: Dolphin-Pi-III_V3S_SCH_V1.pdf

大神 我用的是AXP152 设置方法都一样吧
我在网盘上下的这个u-boot-3s-spi-experimental

到底只在u-boot还是linux里面操作 AXP152呢?

我搞不大清楚啊,我想操作AXP152的话应该怎么操作比较合适?改U-BOOT还是内核?自己都觉得自己的问题蠢。刚接触请见谅。

#57 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-19 15:18:27

小白菜 说:
小猪佩奇 说:

V3S+AXP152
LDO0 DLDO2 ALDO1 这三个通道电压有问题,有没有大神知道在Linux下怎么去改这三个通道的寄存器值。怎么去配置编译?
刚入坑,表示入门好难哦~
跪求大神指点  yikes

我记得在v3s上的4.13内核里有一个axp209.dtsi的文件,里面有一些启动电压的设置,我在上面看到过ldo1,ldo2。。。一些参数,设置启动电压的,这个你参考一下你自己的axp152手册看一看对应的设置值,我当时也没有深挖,剩下的坑就交个你填了

嗯嗯,感谢大神~
所以是改对应的.dtsi文件然后编译即可?

#58 Re: 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-19 15:07:11

晕哥 说:

我记得官方的SDK是用 AXP203,
你是用官方的SDK吗?

海豚派原理图: Dolphin-Pi-III_V3S_SCH_V1.pdf

大神 我用的是AXP152 设置方法都一样吧
我在网盘上下的这个u-boot-3s-spi-experimental

#59 全志 SOC » V3S+AXP152 PMU编译U-BOOT不生成.o文件 » 2018-03-19 14:33:32

小猪佩奇
回复: 19

V3S+AXP152
LDO0 DLDO2 ALDO1 这三个通道电压有问题,有没有大神知道在Linux下怎么去改这三个通道的寄存器值。怎么去配置编译?
刚入坑,表示入门好难哦~
跪求大神指点  yikes

页脚

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

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