您尚未登录。

#1 Re: ESP32/ESP8266 » ESP32S3,开发HMI真有意思,报告下功能,有图有真相: » 2022-12-30 12:04:58

@ailunwowo
rgb_panel这个例程你不改动任何东西的情况下能编译通过吗?如果不能,那就要检查安装环境配置的问题了,不要从demo方面入手

#2 Re: ESP32/ESP8266 » ESP32S3,开发HMI真有意思,报告下功能,有图有真相: » 2022-12-30 12:03:39

andid 说:

@zhang235hai
4.3寸板子都设计好了,你这个芯片没加上,得专门改版才行。

你用的电阻触摸还是电容触摸?用的什么芯片?

#3 Re: ESP32/ESP8266 » ESP32S3,开发HMI真有意思,报告下功能,有图有真相: » 2022-12-29 15:40:33


我的可以运行起来,但是不知道怎么添加电阻触摸的驱动,用的IDF5.0,直接用rgb_panel这个例程,把IO的定义改一下,分辨率改一下

#4 Re: ESP32/ESP8266 » ESP32S3,开发HMI真有意思,报告下功能,有图有真相: » 2022-12-28 08:50:25

ZX4D30NE01S-UR-4827.pdf
这是屏的资料,触摸的驱动芯片是NS2016,看看能不能适配起来,谢谢!

andid 说:
zhang235hai 说:
andid 说:

目前在弄ESP32S3的4.3寸的DEMO,等我弄好了开源个demo出来

能把触摸加上就更好了

手上暂时没有带CTP触摸的屏幕,那位有我可以适配一下

#5 Re: ESP32/ESP8266 » ESP32S3,开发HMI真有意思,报告下功能,有图有真相: » 2022-12-20 08:21:53

andid 说:

目前在弄ESP32S3的4.3寸的DEMO,等我弄好了开源个demo出来

能把触摸加上就更好了

#7 Re: 司徒开源 » 研究馬沙機的開源可行性 » 2022-10-25 15:00:32

最喜欢看这种硬核的帖子了,可惜停更了!!!

#10 全志 SOC » 一款用SSD212做的10寸触摸屏 » 2022-08-17 11:36:51

zhang235hai
回复: 3

一款用SSD212做的10寸触摸屏,厂家说支持Qt运行,没有尝试过,都是用组态软件

8031e5f176387568bbebdc570c636f4.jpg1ce465858ee9011813f5751582d75b6.jpgfb1885eb379ed0370ea56ad19302699.jpgd1578f6d0ae1cbf45290a52d0b68faf.jpg

#12 Re: 全志 SOC » V3X怎么实现在uboot驱动RGB显示屏和传入参数,就像V3s那样 » 2022-07-13 12:28:22

histimes 说:

要慢慢试,V3s上的rgb我弄了一个星期了

V3s的在论坛有很多可以参考的案例你可以仔细搜索一下
V3X的少一些

#13 全志 SOC » V3X怎么实现在uboot驱动RGB显示屏和传入参数,就像V3s那样 » 2022-07-13 08:16:47

zhang235hai
回复: 2

使用V3s时在Uboot做如下操作就能修改,在V3X如何实现呢?

Uboot屏幕参数
修改FB大小
FB大小为 分辨率x4:
800x480x4=1.5M 800x600x4=1.8M 1024x600x4=2.4M 1024x768x4=3M 1024x1024x4=4M
默认uboot里预留了2M的FB,对于1024x600以上的屏幕无法显示。
需要修改 u-boot/include/configs/sunxi-common.h 文件
296 #define CONFIG_SUNXI_MAX_FB_SIZE (2 << 20)
改为
296 #define CONFIG_SUNXI_MAX_FB_SIZE (3 << 20)
增加时序文件
默认配置文件在u-boot/configs/LicheePi_Zero_800x480LCD_defconfig等,可以根据自己的需要来新增文件,比如:
u-boot/configs/LicheePi_Zero_1024x768LCD_defconfig
7CONFIG_VIDEO_LCD_MODE=”x:800,y:480,depth:18,pclk_khz:33000,le:87,ri:40,up:31,lo:13,hs:1,vs:1,sync:3,vmode:0”
改为
CONFIG_VIDEO_LCD_MODE=”x:1024,y:768,depth:24,pclk_khz:32000,le:198,ri:120,up:21,lo:821,hs:2,vs:2,sync:3,vmode:0”

#14 全志 SOC » V3X运行Qt程序能识别鼠标,但是运行界面中不出现鼠标箭头 » 2022-06-30 14:25:17

zhang235hai
回复: 0

拔插USB鼠标的时候会出现如下提示:
[   62.821901] usb 2-1: USB disconnect, device number 3
[   64.476101] usb 2-1: new low-speed USB device number 4 using ohci-platform
但是在运行的界面看不到鼠标箭头
我的Qt配置/etc/profile如下:
export QT_ROOT=/usr/lib/qt
export TSLIB_ROOT=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QT_QPA_PLATFORM_PLUGIN_PATH=/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=/plugins
export LD_LIBRARY_PATH=/lib:/plugins/platforms
export QT_QPA_FB_TSLIB=1
是什么原因呢?

#15 Re: 全志 SOC » 自己弄的V3X板子液晶屏没有输出 » 2022-06-23 14:23:13

mysteryli 说:

板子画的不错 是用来做产品的嘛

是想做一个linux小主机,上面带了VGA接口,用来跑Qt,现在不知道怎么改分辨率,能提示一下吗?

#16 Re: 全志 SOC » 自己弄的V3X板子液晶屏没有输出 » 2022-06-22 15:33:28

哇酷小二 说:

示波器量一下 DE/HSYNC/VSYNC/PCLK 这些信号看看,如果没有信号,可能是那一组的IO电源没有接.

更换了一个50Pin的FPC座子,重新下载了一个800*480的固件,目前可以正常显示了
214deb7b53a02e392a14c4c1dc5c5cf.jpg

#17 全志 SOC » 自己弄的V3X板子液晶屏没有输出 » 2022-06-22 10:07:59

zhang235hai
回复: 4

使用的是https://whycan.com/t_7248.html 固件
没有如帖子中所说显示荷花
执行cat /dev/zero > /dev/fb0 和 cat /dev/urandom > /dev/fb0命令提示如下:
# cat /dev/zero > /dev/fb0
cat: write error: No space left on device
_20220622100721.jpg
启动信息如下:

U-Boot 2021.07 (Oct 24 2021 - 18:41:20 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Smallwit Pi Lite
DRAM:  128 MiB
MMC:   mmc@1c0f000: 0
Loading Environment from nowhere... OK
In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
MMC Device 1 not found
no mmc device at slot 1
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
Unknown command 'mtd' - try 'help'
=========================
Boot Device: mmc0
Boot Slot 0: mmc0
Boot Slot 1: empty
=========================
DFU waiting on MMC0...
switch to partitions #0, OK
mmc0 is current device
Unknown command 'dfu' - try 'help'
switch to partitions #0, OK
mmc0 is current device
Booting from MMC0...
4223184 bytes read in 234 ms (17.2 MiB/s)
13716 bytes read in 2 ms (6.5 MiB/s)
Kernel image @ 0x40000000 [ 0x000000 - 0x4070d0 ]
## Flattened Device Tree blob at 40700000
   Booting using the fdt blob at 0x40700000
   Loading Device Tree to 416f9000, end 416ff593 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.70-smallwitpi (whycan@ubuntu) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #2 SMP Sun Oct 24 19:40:26 CST 2021
[    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: SMALLWITPY
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x46c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30668 r8192 d22580 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mmcblk0p3
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 103488K/131072K available (6144K kernel code, 410K rwdata, 1804K rodata, 1024K init, 251K bss, 11200K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2b4/0x44c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000012] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000029] Switching to timer-based delay loop, resolution 41ns
[    0.000433] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000888] Console: colour dummy device 80x30
[    0.000991] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001014] pid_max: default: 32768 minimum: 301
[    0.001300] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001325] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001503] *** VALIDATE tmpfs ***
[    0.002553] *** VALIDATE proc ***
[    0.002851] *** VALIDATE cgroup1 ***
[    0.002875] *** VALIDATE cgroup2 ***
[    0.002904] CPU: Testing write buffer coherency: ok
[    0.003843] /cpus/cpu@0 missing clock-frequency property
[    0.003890] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005208] Setting up static identity map for 0x40100000 - 0x40100060
[    0.005598] rcu: Hierarchical SRCU implementation.
[    0.006532] smp: Bringing up secondary CPUs ...
[    0.006570] smp: Brought up 1 node, 1 CPU
[    0.006581] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.006591] CPU: All CPU(s) started in HYP mode.
[    0.006599] CPU: Virtualization extensions available.
[    0.007783] devtmpfs: initialized
[    0.013907] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.014481] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014531] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.015787] pinctrl core: initialized pinctrl subsystem
[    0.017880] NET: Registered protocol family 16
[    0.020583] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022737] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.022764] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.049860] SCSI subsystem initialized
[    0.050289] usbcore: registered new interface driver usbfs
[    0.050659] usbcore: registered new interface driver hub
[    0.050838] usbcore: registered new device driver usb
[    0.051243] mc: Linux media interface: v0.10
[    0.051304] videodev: Linux video capture interface: v2.00
[    0.051360] pps_core: LinuxPPS API ver. 1 registered
[    0.051370] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.051402] PTP clock support registered
[    0.054188] clocksource: Switched to clocksource arch_sys_counter
[    0.054708] *** VALIDATE ramfs ***
[    0.071991] thermal_sys: Registered thermal governor 'step_wise'
[    0.072677] NET: Registered protocol family 2
[    0.073995] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.074055] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.074278] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.074314] TCP: Hash tables configured (established 1024 bind 1024)
[    0.074627] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.074726] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.075185] NET: Registered protocol family 1
[    0.078493] Initialise system trusted keyrings
[    0.079156] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.089776] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.090343] utf8_selftest: All 154 tests passed
[    0.090360] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.091234] *** VALIDATE jffs2 ***
[    0.140308] Key type asymmetric registered
[    0.140341] Asymmetric key parser 'x509' registered
[    0.140509] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.140529] io scheduler mq-deadline registered
[    0.140540] io scheduler kyber registered
[    0.140547] test_strscpy: loaded.
[    0.140581] test_strscpy: all 32 tests passed
[    0.142295] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.149062] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.150067] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.151400] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.329728] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.337107] printk: console [ttyS0] disabled
[    0.357587] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.967993] printk: console [ttyS0] enabled
[    0.973520] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.005897] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 33, base_baud = 1500000) is a U6_16550A
[    1.038341] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 34, base_baud = 1500000) is a U6_16550A
[    1.083943] panel-simple panel: panel supply power not found, using dummy regulator
[    1.095121] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.107637] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    1.115978] libphy: Fixed MDIO Bus: probed
[    1.120726] dwmac-sun8i 1c30000.ethernet: IRQ eth_wake_irq not found
[    1.127298] dwmac-sun8i 1c30000.ethernet: IRQ eth_lpi not found
[    1.133505] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    1.139435] dwmac-sun8i 1c30000.ethernet: No regulator found
[    1.146373] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    1.153630] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    1.160979] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    1.165982] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    1.172767] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    1.178443] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    1.184145] dwmac-sun8i 1c30000.ethernet: device MAC address 06:91:ac:02:b2:94
[    1.191828] libphy: stmmac: probed
[    1.196508] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[    1.202952] libphy: mdio_mux: probed
[    1.206738] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[    1.213106] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[    1.221766] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.228530] ehci-platform: EHCI generic platform driver
[    1.234369] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.240031] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.248658] ehci-platform 1c1a000.usb: irq 24, io mem 0x01c1a000
[    1.284149] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.292155] hub 1-0:1.0: USB hub found
[    1.296300] hub 1-0:1.0: 1 port detected
[    1.301378] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.307830] ohci-platform: OHCI generic platform driver
[    1.313646] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.320464] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.329004] ohci-platform 1c1a400.usb: irq 25, io mem 0x01c1a400
[    1.412597] hub 2-0:1.0: USB hub found
[    1.416704] hub 2-0:1.0: 1 port detected
[    1.421947] usbcore: registered new interface driver usb-storage
[    1.429572] mousedev: PS/2 mouse device common for all mice
[    1.436233] i2c /dev entries driver
[    1.443551] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.452971] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.491174] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.499992] usbcore: registered new interface driver usbhid
[    1.505733] usbhid: USB HID core driver
[    1.511031] IPv4 over IPsec tunneling driver
[    1.516634] NET: Registered protocol family 17
[    1.521215] Key type dns_resolver registered
[    1.525852] Registering SWP/SWPB emulation handler
[    1.532363] Loading compiled-in X.509 certificates
[    1.548567] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.564642] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc075ffa0)
[    1.572728] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc075d100)
[    1.580565] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.587212] [drm] No driver support for vblank timestamp query.
[    1.595229] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    1.637283] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.640126] mmc0: new high speed SDHC card at address aaaa
[    1.643655] Console: switching to colour frame buffer device 60x34
[    1.645503] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    1.653527]  mmcblk0: p1 p2 p3
[    1.688411] sun4i-drm display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.697270] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.709637] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.715640] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.725757] hub 3-0:1.0: USB hub found
[    1.729809] hub 3-0:1.0: 1 port detected
[    1.735942] hctosys: unable to open rtc device (rtc0)
[    1.753445] EXT4-fs (mmcblk0p3): INFO: recovery required on readonly filesystem
[    1.761076] EXT4-fs (mmcblk0p3): write access will be enabled during recovery
[    1.787243] random: fast init done
[    1.813537] EXT4-fs (mmcblk0p3): recovery complete
[    1.824336] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.832749] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    1.842929] devtmpfs: mounted
[    1.849107] Freeing unused kernel memory: 1024K
[    1.853889] Run /sbin/init as init process
[    2.075765] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
Mounting OverlayFS: Skip
Populating /dev using udev: [    2.446301] udevd[79]: starting version 3.2.9
[    2.478957] random: udevd: uninitialized urandom read (16 bytes read)
[    2.500762] random: udevd: uninitialized urandom read (16 bytes read)
[    2.514915] random: udevd: uninitialized urandom read (16 bytes read)
fbv - The Framebuffer Viewer
/usr/img/hehua.jpg
1024 x 682
[    2.659254] udevd[80]: starting eudev-3.2.9
[    3.774803] rtc-hym8563 0-0051: could not init device, -6
[    3.797909] input: TSC2007 Touchscreen as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
done
Initializing random number generator: OK
Saving random seed: [    6.080484] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
# 

#18 Re: 全志 SOC » V3S SPINAND移植使用主线U-Boot和主线Linux » 2022-05-10 08:21:57

jack599766257 说:

@zhang235hai
看一下defconfig文件中是否有CONFIG_SPL=y


/configs/LicheePi_Zero_defconfig 文件中有CONFIG_SPL=y
文件内容如下
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_DEFAULT_DEVICE_TREE="sun8i-v3s-licheepi-zero"
CONFIG_SPL=y
CONFIG_MACH_SUN8I_V3S=y
CONFIG_DRAM_CLK=360
# CONFIG_NETDEVICES is not set

#19 Re: 全志 SOC » V3S SPINAND移植使用主线U-Boot和主线Linux » 2022-05-09 14:54:56

按照楼主的操作编译后报错如下
arch/arm/mach-sunxi/spl_spinand_sunxi.o: In function `spl_spi_load_image':
/home/zhang/u-boot-2202.04-rc5/arch/arm/mach-sunxi/spl_spinand_sunxi.c:624: undefined reference to `spl_parse_image_header'
Makefile:1801: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1

#21 Re: 全志 SOC » V3s SPI NAND u-boot @openwrt » 2022-05-06 08:45:20

jack599766257 说:
ultrawise 说:

有可能把spi-nand启动这部分,移植到主线uboot+主线linux上么?
平台:v3s
系统:主线uboot+主线linux

我已经搞定了 Uboot-2022.04+Linux5.2 但是根文件系统用的jffs2 重启两次就搞坏了 还在找原因。

可以分享一下你是怎么做的吗?

#22 Re: 全志 SOC » 发现一个有意思的东西,4.3寸触摸屏,用的F1C200S » 2022-04-28 12:27:49

echo 说:

@zhang235hai
我这里版本更新的3.3.3.5781不支持,奇怪得很。方便共享一下McgsPro 3.3.2.6187版本吗?

McgsPro 3.3.2.6187 组态软件安装包.rar
你试试

#23 Re: 全志 SOC » 发现一个有意思的东西,4.3寸触摸屏,用的F1C200S » 2022-04-28 09:41:31

Gentlepig 说:
echo 说:

昆仑通态以前用的WinCE,现在改Linux了。

那么现在7寸的,他们一般用什么芯片?V3S?

用过一段时间V3s,后来又没有用了,他们换CPU很频繁

#24 Re: 全志 SOC » 发现一个有意思的东西,4.3寸触摸屏,用的F1C200S » 2022-04-28 09:40:53

echo 说:

型号是TPC4013Ef,我这里两个版本的组态软件都还没看见这个型号。
他们以前的组态软件是MCGS,现在是McgsPro,不过我这里的3.3.2.5166版本还没有见过这个屏型号。
是否有支持这个屏的组态软件?

我有支持这个屏的软件,版本是McgsPro 3.3.2.6187

#25 Re: 全志 SOC » 发现一个有意思的东西,4.3寸触摸屏,用的F1C200S » 2022-04-27 11:42:19

Gentlepig 说:

我记得以前拆昆仑通态的7寸屏是个TI的AM335X。

这个连DB9头也没有?

4.3寸的只有一路485接口

#27 Re: 技术人生/软件使用技巧/破解经验/技术吐槽/灌水 » 一枚萌新瑟瑟发抖,发起求救! » 2022-04-08 11:14:33

搞单片机嵌入式沉淀的时间要比较长,搞it互联网来钱会比较快一点

#28 Re: 全志 SOC » Linux 下使用fb 移植lvgl详细教程 » 2022-03-18 10:12:08

用V3S加1024*768的15寸屏显示出来的效果如下图,不知道对不对d9495f2974d435ad24e37e043d2acbd.jpg

#29 Re: 全志 SOC » Linux 下使用fb 移植lvgl详细教程 » 2022-03-17 10:28:55

编译后出现报错
warning: implicit declaration of function ‘my_tick’ [-Wimplicit-function-declaration]
#define LV_TICK_CUSTOM_SYS_TIME_EXPR (my_tick())     /*Expression evaluating to current system time in ms*/
                                       ^
/home/zhang/my_lvgl/lvgl/src/lv_hal/lv_hal_tick.c:73:12: note: in expansion of macro ‘LV_TICK_CUSTOM_SYS_TIME_EXPR’
     return LV_TICK_CUSTOM_SYS_TIME_EXPR;
            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


../main.c:16:17: note: include ‘<stdio.h>’ or provide a declaration of ‘printf’
../main.c: In function ‘my_tick’:
../main.c:42:15: error: ‘tv_now’ undeclared (first use in this function); did you mean ‘_lv_pow’?
     now_ms = (tv_now.tv_sec * 1000000 + tv_now.tv_usec) / 1000;
               ^~~~~~

不知道啥原因啊

#35 Re: 全志 SOC » 开源MyV3XCore核心板 » 2022-01-20 16:38:38

关注LVDS转HDMI功能和SPI NAND的实现

#36 Re: 全志 SOC » 开源 V3x模块化开发板 » 2022-01-19 16:03:18

楼主下一步的底板准备加哪些功能接口呢?

#37 Re: 全志 SOC » [V3X][Mystery]项目开发进度汇报 » 2022-01-19 14:54:49

楼主,现在是2022年了,怎么还没有更新

#38 Re: 全志 SOC » 网站需要改革,放开文件下载权限(不需要与积分挂钩) » 2021-12-09 14:55:55

我支持论坛继续采用积分下载的方式,完全靠爱发电是行不通的,肯定要有一个良性的循环才行
楼上提到的______论坛自2020年5月11日零时起,阿莫电子论坛开始收取论坛管理费,分18元/年(VIP)、120元/年(VIP++)三种。

#40 Re: 全志 SOC » 【全开源/D1s】芒果派麻雀 MangoPi-MQ1 基于D1s 的 RISC-V Linux小板 【最新消息:淘宝开卖了,链接在一楼】 » 2021-10-27 10:29:18

楼主以前预告说会出一款 SigmaStar/SSD201/SSD202/SSD212 的开发板,结果没有下文了,这个不知道会不会出现同样的情况

#44 ESP32/ESP8266 » ESP32做的点整时钟,可以正确显示时间,怎么做出数字上下滚动的效果呢? » 2021-07-12 10:20:45

zhang235hai
回复: 2

我的代码参考了B站一位大佬,支持手机配网,修改后如下

//必须包头文件
#include "LedControl.h"
#include "word.h"

#include <WiFi.h>
#include <Arduino.h>
#include "NTPClient.h"

WiFiUDP ntpUDP; // 创建一个WIFI UDP连接
NTPClient timeClient(ntpUDP, "ntp1.aliyun.com", 60*60*8, 30*60*1000);

byte wei0[1][8] ={};
byte wei1[1][8] ={};
byte wei2[1][8] ={};
byte wei3[1][8] ={};
byte wei4[1][8] ={};
byte wei5[1][8] ={};
byte wei6[1][8] ={};
byte wei7[1][8] ={};
byte display0[1][8] ={};
byte display1[1][8] ={};
byte display2[1][8] ={};
byte display3[1][8] ={};

void SmartConfig()
{
  WiFi.mode(WIFI_STA);
  Serial.println("\r\nWait for Smartconfig...");
  WiFi.beginSmartConfig();
  while (1)
  {
    Serial.print(".");
    delay(500);                   // wait for a second
    if (WiFi.smartConfigDone())
    {
      Serial.println("SmartConfig Success");
      Serial.printf("SSID:%s\r\n", WiFi.SSID().c_str());
      Serial.printf("PSW:%s\r\n", WiFi.psk().c_str());
      break;
    }
  }
}

bool AutoConfig()
{
    WiFi.begin();
    //如果觉得时间太长可改
    for (int i = 0; i < 20; i++)
    {
        int wstatus = WiFi.status();
        if (wstatus == WL_CONNECTED)
        {
          Serial.println("WIFI SmartConfig Success");
          Serial.printf("SSID:%s", WiFi.SSID().c_str());
          Serial.printf(", PSW:%s\r\n", WiFi.psk().c_str());
          Serial.print("LocalIP:");
          Serial.print(WiFi.localIP());
          Serial.print(" ,GateIP:");
          Serial.println(WiFi.gatewayIP());
          return true;
        }
        else
        {
          Serial.print("WIFI AutoConfig Waiting......");
          Serial.println(wstatus);
          delay(1000);
        }
    }
    Serial.println("WIFI AutoConfig Faild!" );
    return false;
}

/*
********接线方式********
  uno/2560      7219点阵模块
  5V        >>    VCC
  GND       >>    GND
  pin 12   >>    DIN
  pin 11   >>    CLK
  pin 10   >>     CS
 *************************/
LedControl lc = LedControl(12, 14, 15, 4);
/*《初始化》>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
void setup() {

  Serial.begin(115200);

  if (!AutoConfig())
  {
    SmartConfig();
  }
  /*MAX72XX开机时处于省电模式,我们必须做一个唤醒呼叫*/
  lc.shutdown(0, false);
  lc.shutdown(1, false);
  lc.shutdown(2, false);
  lc.shutdown(3, false);
  /* 设置亮度为中等值 */
  char is = 7; /* 0~15 */
  lc.setIntensity(0, is);
  lc.setIntensity(1, is);
  lc.setIntensity(2, is);
  lc.setIntensity(3, is);
  /* 清除显示 */
  lc.clearDisplay(0);
  lc.clearDisplay(1);
  lc.clearDisplay(2);
  lc.clearDisplay(3);
}
/* 《主循环》>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/
void loop()
{
//  for(int i=0;i<4;i++){
//    lc.set_num(i,testnumber[i]);
//    delay(500);
//  }
//lc.set_num(2,testnumber[0]);
//lc.setLed(0,1,1,1);
//lc.setLed(0,6,6,1);

  timeClient.update();
//  Serial.println(timeClient.getFormattedTime());
  int shi_shiwei = timeClient.getFormattedTime().substring(0,1).toInt();
  int shi_gewei = timeClient.getFormattedTime().substring(1,2).toInt();
  int fen_shiwei = timeClient.getFormattedTime().substring(3,4).toInt();
  int fen_gewei = timeClient.getFormattedTime().substring(4,5).toInt();
  int miao_shiwei = timeClient.getFormattedTime().substring(6,7).toInt();
  int miao_gewei = timeClient.getFormattedTime().substring(7,-1).toInt();
  
  get_display0(miao_shiwei,miao_gewei);
  lc.set_num(0,display0[1]);
  
  get_display1(fen_shiwei,fen_gewei);
  lc.set_num(1,display1[1]);
  
  get_display2(shi_gewei,fen_shiwei);
  lc.set_num(2,display2[1]);

  get_display3(shi_shiwei,shi_gewei);
  lc.set_num(3,display3[1]);

  lc.setLed(1,2,7,1);
  lc.setLed(1,4,7,1);
  lc.setLed(2,2,3,1);
  lc.setLed(2,4,3,1);
}
//0号点阵的数据处理
void get_display0(int miao_1,int miao_0){
  for(int i=0;i<8;i++){
    wei0[1][i] = mininumber[miao_0][i] /2/2/2/2;//低位数据右移4位
    }
  for(int i=0;i<8;i++){
    wei1[1][i] = mininumber[miao_1][i];//高位数据不需要变动
    }
  for(int i=0;i<8;i++){
    display0[1][i] = wei0[1][i] | wei1[1][i];
    }
  }
//1号点阵的数据处理
void get_display1(int fen_1,int fen_0){
  for(int i=0;i<8;i++){
    wei2[1][i] = number[fen_0][i] /2;//地位数据右移1位
    }
  for(int i=0;i<8;i++){
    wei3[1][i] = number[fen_1][i] *2*2*2*2;//高位数据左移4位
    }
  for(int i=0;i<8;i++){
    display1[1][i] = wei2[1][i] | wei3[1][i];
    }
  }
//2号点阵的数据处理
void get_display2(int fen_1,int shi_0){
  for(int i=0;i<8;i++){
    wei4[1][i] = number[shi_0][i] /2/2/2/2;//地位数据右移4位
    }
  for(int i=0;i<8;i++){
    wei5[1][i] = number[fen_1][i] *2*2*2;//地位数据左移3位
    }
  for(int i=0;i<8;i++){
    display2[1][i] = wei4[1][i] | wei5[1][i];
    }
  }
//3号点阵的数据处理
void get_display3(int shi_1,int shi_0){
  for(int i=0;i<8;i++){
    wei6[1][i] = number[shi_0][i] /2/2/2/2/2;//地位数据右移5位
    }
  for(int i=0;i<8;i++){
    wei7[1][i] = number[shi_1][i] ;//高位数据不需要变动
    }
  for(int i=0;i<8;i++){
    display3[1][i] = wei6[1][i] | wei7[1][i];
    }
  }

/*《显示函数》>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/

#45 Re: ESP32/ESP8266 » 使用ESP32可以成功获取到网络时间,怎么才能得到整形数据呢?我想显示到数码管上 » 2021-07-07 16:53:32

cube 说:

漂亮啊,有没有小白入门教程?

可以到B站搜一下ESP32   有很多视频可以参考  我是自己搞着好玩的

#46 Re: ESP32/ESP8266 » 使用ESP32可以成功获取到网络时间,怎么才能得到整形数据呢?我想显示到数码管上 » 2021-07-07 16:37:44

已经顺利实现时间的显示
做的比较丑陋大家不要笑话
代码也分享出来
实现了自动配网
手机需要下载ESPTOUCH这个软件
_20210707163535.png

#include <WiFi.h>
#include <Arduino.h>
#include "NTPClient.h"



WiFiUDP ntpUDP; // 创建一个WIFI UDP连接
NTPClient timeClient(ntpUDP, "ntp1.aliyun.com", 60*60*8, 30*60*1000);

#define wei0 22 //左边的数码管
#define wei1 21  //右边的数码管
#define wei2 19 //左边的数码管
#define wei3 18  //右边的数码管
#define duan_a 26
#define duan_b 27
#define duan_c 13
#define duan_d 12
#define duan_e 14
#define duan_f 33
#define duan_g 32
#define duan_h 25

int duan[8] = {duan_a,duan_b,duan_c,duan_d,duan_e,duan_f,duan_g,duan_h};
int wei[4] = {wei0,wei1,wei2,wei3};
int displaywei[4] = {
    timeClient.getFormattedTime().substring(0,1).toInt(),
    timeClient.getFormattedTime().substring(1,2).toInt(),
    timeClient.getFormattedTime().substring(3,4).toInt(),
    timeClient.getFormattedTime().substring(4,5).toInt()};
int number[10][8] = {
  {0,0,0,0,0,0,1,1},
  {1,0,0,1,1,1,1,1},
  {0,0,1,0,0,1,0,1},
  {0,0,0,0,1,1,0,1},
  {1,0,0,1,1,0,0,1},
  {0,1,0,0,1,0,0,1},
  {0,1,0,0,0,0,0,1},
  {0,0,0,1,1,1,1,1},
  {0,0,0,0,0,0,0,1},
  {0,0,0,0,1,0,0,1}
};

void SmartConfig()
{
  WiFi.mode(WIFI_STA);
  Serial.println("\r\nWait for Smartconfig...");
  WiFi.beginSmartConfig();
  while (1)
  {
    Serial.print(".");
    delay(500);                   // wait for a second
    if (WiFi.smartConfigDone())
    {
      Serial.println("SmartConfig Success");
      Serial.printf("SSID:%s\r\n", WiFi.SSID().c_str());
      Serial.printf("PSW:%s\r\n", WiFi.psk().c_str());
      break;
    }
  }
}


bool AutoConfig()
{
    WiFi.begin();
    //如果觉得时间太长可改
    for (int i = 0; i < 20; i++)
    {
        int wstatus = WiFi.status();
        if (wstatus == WL_CONNECTED)
        {
          Serial.println("WIFI SmartConfig Success");
          Serial.printf("SSID:%s", WiFi.SSID().c_str());
          Serial.printf(", PSW:%s\r\n", WiFi.psk().c_str());
          Serial.print("LocalIP:");
          Serial.print(WiFi.localIP());
          Serial.print(" ,GateIP:");
          Serial.println(WiFi.gatewayIP());
          return true;
        }
        else
        {
          Serial.print("WIFI AutoConfig Waiting......");
          Serial.println(wstatus);
          delay(1000);
        }
    }
    Serial.println("WIFI AutoConfig Faild!" );
    return false;
}

void setup() {
  pinMode(wei0, OUTPUT);
  pinMode(wei1, OUTPUT);
  pinMode(wei2, OUTPUT);
  pinMode(wei3, OUTPUT);
  pinMode(duan_a, OUTPUT);
  pinMode(duan_b, OUTPUT);
  pinMode(duan_c, OUTPUT);
  pinMode(duan_d, OUTPUT);
  pinMode(duan_e, OUTPUT);
  pinMode(duan_f, OUTPUT);
  pinMode(duan_g, OUTPUT);
  pinMode(duan_h, OUTPUT);
  
  digitalWrite(wei0,LOW);
  digitalWrite(wei1,LOW);
  digitalWrite(wei2,LOW);
  digitalWrite(wei3,LOW);

  for (int i = 0; i < 8; i++)//以此显示数字0到9
    {
      digitalWrite(duan[i],HIGH);
      delay(50);
    }

  Serial.begin(115200);
  if (!AutoConfig())
  {
    SmartConfig();
  }
//  WiFi.begin(ssid, password);

  while ( WiFi.status() != WL_CONNECTED ) {
    delay ( 500 );
    Serial.print ( "." );
  }
  timeClient.begin();
}

void loop()
{
  timeClient.update();

//  Serial.println(timeClient.getFormattedTime());
  int shi_shiwei = timeClient.getFormattedTime().substring(0,1).toInt();
  int shi_gewei = timeClient.getFormattedTime().substring(1,2).toInt();
  int fen_shiwei = timeClient.getFormattedTime().substring(3,4).toInt();
  int fen_gewei = timeClient.getFormattedTime().substring(4,5).toInt();

        digitalWrite(wei[0],HIGH);
    for (int i = 0; i < 8; i++)//以此显示数字0到9
    {
      digitalWrite(duan[i],number[shi_shiwei][i]);
      }
    delay(2);
    digitalWrite(wei[0],LOW);

        digitalWrite(wei[1],HIGH);
    for (int i = 0; i < 8; i++)//以此显示数字0到9
    {
      digitalWrite(duan[i],number[shi_gewei][i]);
      }
    delay(2);
    digitalWrite(wei[1],LOW);

        digitalWrite(wei[2],HIGH);
    for (int i = 0; i < 8; i++)//以此显示数字0到9
    {
      digitalWrite(duan[i],number[fen_shiwei][i]);
      }
    delay(2);
    digitalWrite(wei[2],LOW);

        digitalWrite(wei[3],HIGH);
    for (int i = 0; i < 8; i++)//以此显示数字0到9
    {
      digitalWrite(duan[i],number[fen_gewei][i]);
      }
    delay(2);
    digitalWrite(wei[3],LOW);

}

#47 ESP32/ESP8266 » 使用ESP32可以成功获取到网络时间,怎么才能得到整形数据呢?我想显示到数码管上 » 2021-07-06 16:15:31

zhang235hai
回复: 5

使用ESP32可以成功获取到网络时间,怎么才能得到整形数据呢?我想显示到数码管上,谢谢大家!

#include <WiFi.h>
#include <time.h>

const char* ntpServer = "pool.ntp.org";
const long  gmtOffset_sec = 28800;
const int   daylightOffset_sec = 28800;

void smartConfig()
{
  WiFi.mode(WIFI_STA);
  Serial.println("\r\nWait for Smartconfig");
  delay(2000);// 等待配网
  WiFi.beginSmartConfig();

while (1)
  {
    Serial.print(".");
    delay(500);
    if (WiFi.smartConfigDone())
    {
      Serial.println("SmartConfig Success");
      Serial.printf("SSID:%s\r\n", WiFi.SSID().c_str());
      Serial.printf("PSW:%s\r\n", WiFi.psk().c_str());
      WiFi.setAutoConnect(true);  // 设置自动连接
      break;
    }
  }

  Serial.println("");
  Serial.println("WiFi connected");  
  Serial.println("IP address: ");
  Serial.println(WiFi.localIP());
}


void printLocalTime()
{
  struct tm timeinfo;
  if(!getLocalTime(&timeinfo))
  {
    Serial.println("Failed to obtain time");
    return;
  }
  Serial.println(&timeinfo, "%A, %B %d %Y %H:%M:%S");
}

void setup()
{
  {
    Serial.begin(115200);
    smartConfig();
  }

{
    while (WiFi.status() != WL_CONNECTED)
   {
      delay(500);
      Serial.print(".");
  }

  configTime(gmtOffset_sec, daylightOffset_sec, ntpServer);
  printLocalTime();
}
}
void loop()
{
  delay(1000);
  printLocalTime();
}

#48 Re: 全志 SOC » V3S运行Qt程序报错terminate called after throwing an instance of 'std::bad_al » 2021-06-28 11:07:48

哇酷小二 说:

代码呢?是不是申请太多内存了?


我跑了一个最简单的qt侧是程序,就只有两个按钮,没有做任何的功能

#50 全志 SOC » V3S运行Qt程序报错terminate called after throwing an instance of 'std::bad_al » 2021-06-25 17:33:48

zhang235hai
回复: 4

之前用buildroot-2017.08.1编译的根文件系统没有问题
用最新的buildroot-2021.05-rc1编译出来运行Qt程序之后报如下的错误
# ./aaa
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted
# ./aaa -platform linuxfb
terminate called after throwing an instance of 'std::bad_alloc'
  what(): 

Qt的配置如下

export QT_ROOT=/usr/lib/qt
export TSLIB_ROOT=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=$QT_ROOT/plugins
export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
export QT_QPA_FB_TSLIB=1

请问大家怎么解决呢?

#52 全志 SOC » 想测试A64的GPU,使用什么工具呢? » 2021-06-07 15:49:04

zhang235hai
回复: 2

执行如下命令后GPU是正常驱动了吗?
# insmod ./lib/modules/3.10.105/mali.ko
[   65.522569] Mali: Set gpu frequency to 408 MHz
[   65.527481] Mali: Init Mali gpu clocks successfully
[   65.533468] gpu cooling callback register Success

用干什么工具测试呢?
看到论坛上说的glmark之类的但是不知道怎么使用
好像要涉及到移植
有大神过来指导一下吗?

#53 Re: 全志 SOC » 全志 A10/A20/A33/H3/A64/H5 等的主线Linux也可以使用 OpenGL ES, 有没有哪位朋友测试过? » 2021-06-04 15:55:17

# insmod ./lib/modules/3.10.105/mali.ko
[   65.522569] Mali: Set gpu frequency to 408 MHz
[   65.527481] Mali: Init Mali gpu clocks successfully
[   65.533468] gpu cooling callback register Success

这样是说明GPU驱动成功了吗?

#54 Re: 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-20 15:33:22

哇酷小二 说:

不是这个流程呢,

是找到 Devices Drivers->Graphics support 这个目录下面的 Kconfig,

找到 LIMA (DRM support for ARM Mali 400/450 GPU)

看这个变量依赖其他哪些变量, 看在 .config 里面这些依赖的变量有没有启用。

我使用5.0的内核一直没有找到 LIMA (DRM support for ARM Mali 400/450 GPU)这个选项,更换成5.12内核之后就找到了
勾选编译之后报错如下图
02.png
然后我修改如下图后顺利编译得到sdcard.img
01.png
烧录进SD卡之后系统启动但是卡住了报错如下图
03.png
请问这个怎么解决呢?

#55 Re: 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-18 11:13:28

哇酷小二 说:

不是这个流程呢,

是找到 Devices Drivers->Graphics support 这个目录下面的 Kconfig,

找到 LIMA (DRM support for ARM Mali 400/450 GPU)

看这个变量依赖其他哪些变量, 看在 .config 里面这些依赖的变量有没有启用。

我找到这个了
_20210518111234.png

#56 Re: 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-18 08:53:05

哇酷小二 说:

打开Kconfig看下 LIMA (DRM support for ARM Mali 400/450 GPU) 这个还依赖啥,再把那个开关打开。


我执行 arch=arm make kconfig报错
make[1]: *** No rule to make target 'kconfig'.  Stop.
Makefile:602: recipe for target 'kconfig' failed
make: *** [kconfig] Error 2

怎么打开Kconfig呢?我只用过make menuconfig

#57 Re: 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-18 08:18:33

哇酷小二 说:

@达克罗德, 佩服大佬的记忆力

@zhang235hai 应该是这个,不确定可以选中按H, 会有提示的。

Devices Drivers->Graphics support->ARM devices->ARM Mali Display processor
Graphics support  --->
    Backlight & LCD device support  ---
       <*> Lowlevel Backlight controls
    Display Panels  --->
       <*> support for simple panels

上面三项都开启了
但是Devices Drivers->Graphics support->LIMA (DRM support for ARM Mali 400/450 GPU)死活找不到,不知道是不是还有其他的选项没有打开

#58 Re: 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-17 15:45:26

达克罗德 说:

我记得,要在kernel打开sunxi的DRM和panel驱动,没有DRM驱动,GPU是不会生成节点的


搞定了,非常感谢“达克罗德”的帮助!
犯了个低级错误。缺少了 CONFIG_DRM_PANEL_SIMPLE=y
要选上这个就必须先选上以下这两个才行:
Graphics support  --->
    Backlight & LCD device support  ---
       <*> Lowlevel Backlight controls
要选上才能选下面的
    Display Panels  --->
       <*> support for simple panels

是这个吗?

#60 全志 SOC » 全志A64,主线linux 添加GPU驱动失败,大家帮忙查找一下问题 » 2021-05-17 14:33:01

zhang235hai
回复: 15

硬件使用启划的开发板
_20210517141910.jpg

直接采用默认的香蕉派默认配置文件
执行make bananapi_m64_defconfig
得到可烧录文件/buildroot-2021.02.2/output/images/sdcard.img
使用Win32DiskImager烧录进SD卡后顺利启动
启动信息如下

U-Boot 2019.01 (May 13 2021 - 02:31:08 -0700) Allwinner Technology

CPU:   Allwinner A64 (SUN50I)
Model: BananaPi-M64
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT... MMC: block number 0x184a001 exceeds max(0xe90000)
Unable to use mmc 1:1... In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Net:   phy interface7
eth0: ethernet@1c30000
Warning: usb_ether using MAC address from ROM
, eth1: usb_ether
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 7 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) 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
276 bytes read in 0 ms
## Executing script at 4fc00000
19929600 bytes read in 955 ms (19.9 MiB/s)
23015 bytes read in 2 ms (11 MiB/s)
## Flattened Device Tree blob at 4fa00000
   Booting using the fdt blob at 0x4fa00000
EHCI failed to shut down host controller.
   Loading Device Tree to 0000000049ff7000, end 0000000049fff9e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.0.0 (zhang@ubuntu) (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16))) #2 SMP PREEMPT Thu May 13 18:31:42 PDT 2021
[    0.000000] Machine model: BananaPi-M64
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 32 MiB at 0x000000007e000000
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7ddde840-0x7dddffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv0.2 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: Trusted OS migration not required
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x3f8 with crng_init=0
[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s56024 r8192 d29992 u94208
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] CPU features: detected: ARM erratum 843419
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA32
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[    0.000000] Memory: 976836K/1048576K available (11132K kernel code, 1606K rwdata, 5300K rodata, 1344K init, 380K bss, 38972K reserved, 32768K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000582] Console: colour dummy device 80x25
[    0.000670] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000682] pid_max: default: 32768 minimum: 301
[    0.000777] LSM: Security Framework initializing
[    0.001468] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.001807] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.001848] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.001868] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.024032] ASID allocator initialised with 32768 entries
[    0.032023] rcu: Hierarchical SRCU implementation.
[    0.041782] EFI services will not be available.
[    0.048057] smp: Bringing up secondary CPUs ...
[    0.080832] Detected VIPT I-cache on CPU1
[    0.080891] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.112578] Detected VIPT I-cache on CPU2
[    0.112611] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.144594] Detected VIPT I-cache on CPU3
[    0.144624] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.144698] smp: Brought up 1 node, 4 CPUs
[    0.144718] SMP: Total of 4 processors activated.
[    0.144726] CPU features: detected: 32-bit EL0 Support
[    0.144734] CPU features: detected: CRC32 instructions
[    0.145129] CPU: All CPU(s) started at EL2
[    0.145153] alternatives: patching kernel code
[    0.146496] devtmpfs: initialized
[    0.151741] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.151780] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.153303] pinctrl core: initialized pinctrl subsystem
[    0.154936] DMI not present or invalid.
[    0.155452] NET: Registered protocol family 16
[    0.155814] audit: initializing netlink subsys (disabled)
[    0.155954] audit: type=2000 audit(0.152:1): state=initialized audit_enabled=0 res=1
[    0.157586] cpuidle: using governor menu
[    0.157898] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.157911] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.159344] DMA: preallocated 256 KiB pool for atomic allocations
[    0.160940] Serial: AMBA PL011 UART driver
[    0.187053] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.187066] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.187074] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.187081] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.187602] cryptd: max_cpu_qlen set to 1000
[    0.188486] ACPI: Interpreter disabled.
[    0.190134] vgaarb: loaded
[    0.190465] SCSI subsystem initialized
[    0.191013] usbcore: registered new interface driver usbfs
[    0.191070] usbcore: registered new interface driver hub
[    0.191154] usbcore: registered new device driver usb
[    0.192217] pps_core: LinuxPPS API ver. 1 registered
[    0.192226] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.192253] PTP clock support registered
[    0.192435] EDAC MC: Ver: 3.0.0
[    0.194130] Advanced Linux Sound Architecture Driver Initialized.
[    0.195021] clocksource: Switched to clocksource arch_sys_counter
[    0.195203] VFS: Disk quotas dquot_6.6.0
[    0.195268] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.195502] pnp: PnP ACPI: disabled
[    0.203799] NET: Registered protocol family 2
[    0.204374] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes)
[    0.204517] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.204624] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.204776] TCP: Hash tables configured (established 8192 bind 8192)
[    0.204920] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.204962] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.205116] NET: Registered protocol family 1
[    0.205541] RPC: Registered named UNIX socket transport module.
[    0.205548] RPC: Registered udp transport module.
[    0.205554] RPC: Registered tcp transport module.
[    0.205559] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.206343] kvm [1]: 8-bit VMID
[    0.206351] kvm [1]: IPA Size Limit: 40bits
[    0.207428] kvm [1]: vgic interrupt IRQ1
[    0.207544] kvm [1]: Hyp mode initialized successfully
[    0.214216] Initialise system trusted keyrings
[    0.214373] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    0.222787] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.223831] NFS: Registering the id_resolver key type
[    0.223864] Key type id_resolver registered
[    0.223870] Key type id_legacy registered
[    0.223884] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.224076] 9p: Installing v9fs 9p2000 file system support
[    0.229999] Key type asymmetric registered
[    0.230014] Asymmetric key parser 'x509' registered
[    0.230084] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.230096] io scheduler mq-deadline registered
[    0.230102] io scheduler kyber registered
[    0.231926] sun50i-de2-bus 1000000.de2: Error couldn't map SRAM to device
[    0.232641] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.239134] sun50i-a64-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.243556] EINJ: ACPI disabled.
[    0.257394] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.261031] SuperH (H)SCI(F) driver initialized
[    0.261522] msm_serial: driver initialized
[    0.271666] loop: module loaded
[    0.276759] libphy: Fixed MDIO Bus: probed
[    0.277345] tun: Universal TUN/TAP device driver, 1.6
[    0.278441] thunder_xcv, ver 1.0
[    0.278500] thunder_bgx, ver 1.0
[    0.278552] nicpf, ver 1.0
[    0.279654] hclge is initializing
[    0.279671] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[    0.279677] hns3: Copyright (c) 2017 Huawei Corporation.
[    0.279785] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    0.279791] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    0.279858] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.4.0-k
[    0.279865] igb: Copyright (c) 2007-2014 Intel Corporation.
[    0.279916] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.279923] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.280455] sky2: driver version 1.30
[    0.281321] VFIO - User Level meta-driver version: 0.3
[    0.282936] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.282948] ehci-pci: EHCI PCI platform driver
[    0.282998] ehci-platform: EHCI generic platform driver
[    0.283319] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.283348] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.284087] ehci-platform 1c1a000.usb: irq 15, io mem 0x01c1a000
[    0.299024] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.299738] hub 1-0:1.0: USB hub found
[    0.299777] hub 1-0:1.0: 1 port detected
[    0.300456] ehci-orion: EHCI orion driver
[    0.300696] ehci-exynos: EHCI EXYNOS driver
[    0.300833] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.300864] ohci-pci: OHCI PCI platform driver
[    0.300949] ohci-platform: OHCI generic platform driver
[    0.301140] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.301163] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.301532] ohci-platform 1c1a400.usb: irq 16, io mem 0x01c1a400
[    0.363708] hub 2-0:1.0: USB hub found
[    0.363741] hub 2-0:1.0: 1 port detected
[    0.364402] ohci-exynos: OHCI EXYNOS driver
[    0.365223] usbcore: registered new interface driver usb-storage
[    0.368890] sun6i-rtc 1f00000.rtc: registered as rtc0
[    0.368904] sun6i-rtc 1f00000.rtc: RTC enabled
[    0.369264] i2c /dev entries driver
[    0.374237] sun50i-a64-r-pinctrl 1f02c00.pinctrl: 1f02c00.pinctrl supply vcc-pl not found, using dummy regulator
[    0.374319] sun50i-a64-r-pinctrl 1f02c00.pinctrl: Linked as a consumer to regulator.0
[    0.374663] sdhci: Secure Digital Host Controller Interface driver
[    0.374670] sdhci: Copyright(c) Pierre Ossman
[    0.375211] Synopsys Designware Multimedia Card Interface Driver
[    0.376410] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.378043] ledtrig-cpu: registered to indicate activity on CPUs
[    0.379556] usbcore: registered new interface driver usbhid
[    0.379568] usbhid: USB HID core driver
[    0.383433] NET: Registered protocol family 17
[    0.383641] 9pnet: Installing 9P2000 support
[    0.383717] Key type dns_resolver registered
[    0.384370] registered taskstats version 1
[    0.384378] Loading compiled-in X.509 certificates
[    0.397106] sunxi-rsb 1f03400.rsb: RSB running at 3000000 Hz
[    0.397539] axp20x-rsb sunxi-rsb-3a3: AXP20x variant AXP803 found
[    0.405956] dcdc1: supplied by regulator-dummy
[    0.406320] dcdc2: supplied by regulator-dummy
[    0.406612] dcdc4: supplied by regulator-dummy
[    0.406856] dcdc5: supplied by regulator-dummy
[    0.406934] vcc-dram: Bringing 1360000uV into 1500000-1500000uV
[    0.407198] dcdc6: supplied by regulator-dummy
[    0.407472] dc1sw: supplied by regulator-dummy
[    0.407709] aldo1: supplied by regulator-dummy
[    0.407778] afvcc-csi: Bringing 3300000uV into 2800000-2800000uV
[    0.408054] aldo2: supplied by regulator-dummy
[    0.408148] vcc-pl: Bringing 1600000uV into 1800000-1800000uV
[    0.408341] aldo3: supplied by regulator-dummy
[    0.408597] dldo1: supplied by regulator-dummy
[    0.408847] dldo2: supplied by regulator-dummy
[    0.408942] vcc-wifi: Bringing 1800000uV into 3300000-3300000uV
[    0.409167] dldo3: supplied by regulator-dummy
[    0.409423] dldo4: supplied by regulator-dummy
[    0.409684] eldo1: supplied by regulator-dummy
[    0.409961] eldo2: supplied by regulator-dummy
[    0.410212] eldo3: supplied by regulator-dummy
[    0.410486] fldo1: supplied by regulator-dummy
[    0.410775] fldo2: supplied by regulator-dummy
[    0.411083] rtc-ldo: supplied by regulator-dummy
[    0.411302] ldo-io0: supplied by regulator-dummy
[    0.411578] ldo-io1: supplied by regulator-dummy
[    0.411869] drivevbus: supplied by regulator-dummy
[    0.412065] axp20x-rsb sunxi-rsb-3a3: AXP20X driver loaded
[    0.412655] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.417998] sun50i-a64-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.418976] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.419088] sun50i-a64-pinctrl 1c20800.pinctrl: Linked as a consumer to regulator.0
[    0.419504] printk: console [ttyS0] disabled
[    0.440113] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 24, base_baud = 1500000) is a U6_16550A
[    1.653207] printk: console [ttyS0] enabled
[    1.658780] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.691989] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 25, base_baud = 1500000) is a U6_16550A
[    1.701116] serial serial0: tty port ttyS1 registered
[    1.711390] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-ph not found, using dummy regulator
[    1.723575] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.733812] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.1
[    1.741176] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    1.770964] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.781675] sunxi-mmc 1c10000.mmc: Linked as a consumer to regulator.11
[    1.788351] sunxi-mmc 1c10000.mmc: Linked as a consumer to regulator.13
[    1.795908] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[    1.801337] vcc-wifi: voltage operation not allowed
[    1.830135] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    1.840804] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    1.851149] sunxi-mmc 1c11000.mmc: Linked as a consumer to regulator.1
[    1.863395] mmc0: new high speed SDHC card at address 5048
[    1.870451] mmcblk0: mmc0:5048 SD32G 28.9 GiB 
[    1.876965]  mmcblk0: p1 p2
[    1.887043] sunxi-mmc 1c11000.mmc: initialized, max. request size: 2048 KB, uses new timings mode
[    1.897462] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.907720] sun50i-a64-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.918712] sun4i-usb-phy 1c19400.phy: Linked as a consumer to regulator.22
[    1.927596] ehci-platform 1c1b000.usb: EHCI Host Controller
[    1.933198] ehci-platform 1c1b000.usb: new USB bus registered, assigned bus number 3
[    1.941748] ehci-platform 1c1b000.usb: irq 17, io mem 0x01c1b000
[    1.963028] ehci-platform 1c1b000.usb: USB 2.0 started, EHCI 1.00
[    1.969827] hub 3-0:1.0: USB hub found
[    1.973631] hub 3-0:1.0: 1 port detected
[    1.979238] ohci-platform 1c1b400.usb: Generic Platform OHCI controller
[    1.985877] ohci-platform 1c1b400.usb: new USB bus registered, assigned bus number 4
[    1.993981] ohci-platform 1c1b400.usb: irq 18, io mem 0x01c1b400
[    2.014004] mmc2: new DDR MMC card at address 0001
[    2.020423] mmcblk2: mmc2:0001 8GME4R 7.28 GiB 
[    2.026137] mmcblk2boot0: mmc2:0001 8GME4R partition 1 4.00 MiB
[    2.033235] mmcblk2boot1: mmc2:0001 8GME4R partition 2 4.00 MiB
[    2.040495]  mmcblk2: p1 p2 p3 < p5 p6 p7 >
[    2.044716] mmcblk2: p1 start 25468928 is beyond EOD, truncated
[    2.051075] mmcblk2: p7 size 25165824 extends beyond EOD, truncated
[    2.063689] hub 4-0:1.0: USB hub found
[    2.067486] hub 4-0:1.0: 1 port detected
[    2.074258] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    2.085079] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[    2.093770] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    2.099531] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 5
[    2.107966] hub 5-0:1.0: USB hub found
[    2.111759] hub 5-0:1.0: 1 port detected
[    2.116705] sun6i-rtc 1f00000.rtc: setting system clock to 1970-01-01T00:00:09 UTC (9)
[    2.125062] vcc-hdmi-dsi: disabling
[    2.128615] cpvdd: disabling
[    2.131582] ALSA device list:
[    2.134545]   No soundcards found.
[    2.140500] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    2.147821] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    2.158981] EXT4-fs (mmcblk0p2): recovery complete
[    2.164945] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.173103] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.180853] devtmpfs: mounted
[    2.184726] Freeing unused kernel memory: 1344K
[    2.199054] Run /sbin/init as init process
[    2.205678] random: fast init done
[    2.319044] usb 3-1: new high-speed USB device number 2 using ehci-platform
[    2.331220] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    2.434769] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
Initializing postgresql data base...
[    2.481612] hub 3-1:1.0: USB hub found
[    2.487982] hub 3-1:1.0: 4 ports detected
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories[    2.727670] random: postgres: uninitialized urandom read (4 bytes read)
 ... ok
selecting dynamic shared memory implementation ... posix
selecting default max_connections ... [    2.779057] usb 3-1.1: new high-speed USB device number 3 using ehci-platform
100
selecting default shared_buffers ... [    2.863390] random: postgres: uninitialized urandom read (4 bytes read)
[    2.892620] hub 3-1.1:1.0: USB hub found
[    2.896751] hub 3-1.1:1.0: 4 ports detected
128MB
selecting default time zone ... [    2.983067] usb 3-1.3: new high-speed USB device number 4 using ehci-platform
[    3.191051] usb 3-1.4: new high-speed USB device number 5 using ehci-platform
[    3.383053] usb 3-1.1.1: new low-speed USB device number 6 using ehci-platform
[    3.505471] input: USB Optical Mouse as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.1/3-1.1.1:1.0/0003:0461:4D80.0001/input/input0
[    3.518493] hid-generic 0003:0461:4D80.0001: input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-1c1b000.usb-1.1.1/input0
[    3.607056] usb 3-1.1.4: new low-speed USB device number 7 using ehci-platform
UTC
creating configuration files ... ok
running bootstrap script ... [    3.734637] input: RCMCU iPazzPort as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.0/0003:0C45:7000.0002/input/input1
[    3.766155] random: postgres: uninitialized urandom read (4 bytes read)
[    3.808264] hid-generic 0003:0C45:7000.0002: input: USB HID v1.11 Keyboard [RCMCU iPazzPort] on usb-1c1b000.usb-1.1.4/input0
[    3.826451] input: RCMCU iPazzPort Mouse as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input2
[    3.840003] input: RCMCU iPazzPort System Control as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input3
[    3.911627] input: RCMCU iPazzPort Consumer Control as /devices/platform/soc/1c1b000.usb/usb3/3-1/3-1.1/3-1.1.4/3-1.1.4:1.1/0003:0C45:7000.0003/input/input4
[    3.912819] random: postgres: uninitialized urandom read (32 bytes read)
[    3.925858] hid-generic 0003:0C45:7000.0003: input: USB HID v1.11 Mouse [RCMCU iPazzPort] on usb-1c1b000.usb-1.1.4/input1
ok
performing post-bootstrap initialization ... [    4.830710] random: postgres: uninitialized urandom read (4 bytes read)
sh: locale: not found
1970-01-01 00:00:13.539 UTC [1702] WARNING:  no usable system locales were found
[    6.357826] random: crng init done
1970-01-01 00:00:16.783 UTC [1702] FATAL:  could not write to file "base/12659/2608": No space left on device
1970-01-01 00:00:16.783 UTC [1702] STATEMENT:  CREATE DATABASE postgres;

child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK

Welcome to Bananapi M64
buildroot login: 

参考 https://whycan.com/t_3512.html 帖子添加设备树相关代码后打开linux内核配置
Devices Drivers->Graphics support->ARM devices->ARM Mali Display processor(此项已经打开)
Devices Drivers->Graphics support->LIMA (DRM support for ARM Mali 400/450 GPU)(此项找不到)

		mali: gpu@1c40000 {
			compatible = "allwinner,sun50i-a64-mali", "arm,mali-400";
			reg = <0x01c40000 0x10000>;
			interrupts = <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "gp",
					  "gpmmu",
					  "pp0",
					  "ppmmu0",
					  "pp1",
					  "ppmmu1",
					  "pmu";
			clocks = <&ccu CLK_BUS_GPU>, <&ccu CLK_GPU>;
			clock-names = "bus", "core";
			resets = <&ccu RST_BUS_GPU>;
		};
&mali {
	status = "okay";
};

重新编译得到烧录文件后在启动系统
在/dev/下找不到mali
有大神能指点一下吗?

#61 Re: 全志 SOC » 歪朵拉芒果派之前预告说要出一款SSD202的开发模组,怎么没消息了? » 2021-05-14 13:52:21

哇酷小二 说:

别急,我这就去打听打听。。。


有消息了吗?

#62 全志 SOC » 歪朵拉芒果派之前预告说要出一款SSD202的开发模组,怎么没消息了? » 2021-05-13 15:10:12

zhang235hai
回复: 4

等得好辛苦,歪朵拉芒果派之前预告说要出一款SSD202的开发模组,怎么没消息了?

#63 Re: SigmaStar/SSD201/SSD202/SSD212 » SSD202播放h264视频 » 2021-04-12 10:52:21

用的什么硬件呢?是买的开发板吗?

#64 全志 SOC » V3S添加以太网failed to get TX clock是什么原因呢? » 2021-02-03 13:59:23

zhang235hai
回复: 2

按照论坛的提示修改设备树添加以太网
uboot报错如下

U-Boot 2021.01-rc3 (Feb 03 2021 - 13:53:00 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select! : -110
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   eth_sun8i_emac ethernet@1c30000: failed to get TX clock
No ethernet found.

是什么原因呢?

#65 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-02-03 09:43:02

xfdr0805 说:
zhang235hai 说:

uboot已经能识别以太网

U-Boot SPL 2019.10 (Jan 30 2021 - 10:31:43 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.10 (Jan 30 2021 - 10:31:43 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   failed to get TX clock
eth-1: ethernet@1c30000
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 

需要将以下四个文件全部修改完成
执行打开Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
再次编译得到可用文件u-boot-sunxi-with-spl.rar

/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s-licheepi-zero.dts

/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s.dtsi
/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s.dtsi

能识别以太网,实际是不能用的,U-boot还不能驱动以太网

net:   failed to get TX clock  这里有错误,楼主解决了吗?


追踪到sun8i_emac.c文件中

	if (ret) {
		dev_err(dev, "failed to get TX clock\n");
		return ret;
	}

但是不知道怎么解决

#66 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 17:30:46

raspberryman 说:

可能在dtsi没有注册lradc, 所以不能在此引用。把他注释起来就能通过编译。

是的,你说的没错,注释掉了编译通过了,但是出现了新的问题,系统启动失败了,我把sdcard.img烧录进SD卡,启动信息如下

U-Boot SPL 2019.10 (Jan 30 2021 - 10:31:43 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2019.10 (Jan 30 2021 - 10:31:43 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   failed to get TX clock
eth-1: ethernet@1c30000
starting USB...
No working 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
292 bytes read in 2 ms (142.6 KiB/s)
## Executing script at 41900000
4174464 bytes read in 424 ms (9.4 MiB/s)
6882 bytes read in 5 ms (1.3 MiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfb000, end 42dffae1 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.3.5 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.8)) #1 SMP Sat Jan 30 09:51:07 CST 2021
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x41c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38524K/65536K available (6144K kernel code, 431K rwdata, 1648K rodata, 1024K init, 242K bss, 10628K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x48c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    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.000020] Switching to timer-based delay loop, resolution 41ns
[    0.000188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000403] Console: colour dummy device 80x30
[    0.000744] printk: console [tty0] enabled
[    0.000801] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000830] pid_max: default: 32768 minimum: 301
[    0.001018] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001051] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001922] CPU: Testing write buffer coherency: ok
[    0.002471] /cpus/cpu@0 missing clock-frequency property
[    0.002521] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003291] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003534] rcu: Hierarchical SRCU implementation.
[    0.004015] smp: Bringing up secondary CPUs ...
[    0.004053] smp: Brought up 1 node, 1 CPU
[    0.004070] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004085] CPU: All CPU(s) started in HYP mode.
[    0.004096] CPU: Virtualization extensions available.
[    0.004984] devtmpfs: initialized
[    0.007410] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007748] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007800] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008619] pinctrl core: initialized pinctrl subsystem
[    0.009846] NET: Registered protocol family 16
[    0.011153] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012436] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012481] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027542] SCSI subsystem initialized
[    0.028292] usbcore: registered new interface driver usbfs
[    0.028395] usbcore: registered new interface driver hub
[    0.028507] usbcore: registered new device driver usb
[    0.028756] pps_core: LinuxPPS API ver. 1 registered
[    0.028777] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.028813] PTP clock support registered
[    0.029100] Advanced Linux Sound Architecture Driver Initialized.
[    0.030485] clocksource: Switched to clocksource arch_sys_counter
[    0.041078] thermal_sys: Registered thermal governor 'step_wise'
[    0.041444] NET: Registered protocol family 2
[    0.042131] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.042191] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.042228] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.042260] TCP: Hash tables configured (established 1024 bind 1024)
[    0.042418] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.042483] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.042740] NET: Registered protocol family 1
[    0.043740] RPC: Registered named UNIX socket transport module.
[    0.043786] RPC: Registered udp transport module.
[    0.043800] RPC: Registered tcp transport module.
[    0.043813] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.045826] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.053784] NFS: Registering the id_resolver key type
[    0.053863] Key type id_resolver registered
[    0.053878] Key type id_legacy registered
[    0.054006] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.054034] io scheduler mq-deadline registered
[    0.054048] io scheduler kyber registered
[    0.054946] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.058745] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.121865] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.124242] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.125446] printk: console [ttyS0] disabled
[    0.145782] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.716411] printk: console [ttyS0] enabled
[    0.723379] libphy: Fixed MDIO Bus: probed
[    0.727513] CAN device driver interface
[    0.732041] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.737862] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.744134] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[    0.753546] 8<--- cut here ---
[    0.756611] Unable to handle kernel NULL pointer dereference at virtual address 00000008
[    0.764726] pgd = (ptrval)
[    0.767437] [00000008] *pgd=00000000
[    0.771038] Internal error: Oops: 5 [#1] SMP ARM
[    0.775656] Modules linked in:
[    0.778720] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.3.5 #1
[    0.784550] Hardware name: Allwinner sun8i Family
[    0.789272] PC is at sun8i_dwmac_setup+0x37c/0x3f8
[    0.794071] LR is at of_find_property+0x44/0x4c
[    0.798601] pc : [<c04cb258>]    lr : [<c056253c>]    psr: a0000053
[    0.804866] sp : c3839d10  ip : 00000000  fp : 00000000
[    0.810090] r10: 00000000  r9 : c3fef930  r8 : c3b15500
[    0.815314] r7 : c3b10440  r6 : c0a04c48  r5 : c3b14500  r4 : c39a5340
[    0.821839] r3 : 85672ee0  r2 : 85672ee0  r1 : a0000053  r0 : ffffffea
[    0.828368] Flags: NzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.835589] Control: 10c5387d  Table: 4000406a  DAC: 00000051
[    0.841335] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    0.847341] Stack: (0xc3839d10 to 0xc383a000)
[    0.851702] 9d00:                                     00000000 c013752c 00078000 c38a9210
[    0.859882] 9d20: c3b11064 00038000 c0844870 85672ee0 00000000 00000000 c3b15500 00000000
[    0.868062] 9d40: 00000000 c3b14500 00000000 00000000 c39ab840 c04c7634 c3b14000 c3b14000
[    0.876242] 9d60: c3811c8c c3b14000 c3b16000 c0a4ed7c c38a9210 c0aa2a7c c3b14500 c3b15000
[    0.884422] 9d80: c39ab840 c04bb5c4 00000000 a0000053 c3b0e1c0 c03b7a90 00000000 c0a04c48
[    0.892602] 9da0: 00000000 c38a9200 c39ab840 c38a9210 c3b10440 c3896e00 00000007 c04cb8c4
[    0.900781] 9dc0: 0000001f 00000000 00000000 00000000 00000000 c08158e8 00000001 c0285a44
[    0.908961] 9de0: c38aa000 c02856cc c4818000 c2dfc188 00000020 fffffffa 00000020 85672ee0
[    0.917141] 9e00: c08158e8 c38a9210 00000000 c0a4ee70 00000000 00000000 c0a4ee70 00000000
[    0.925321] 9e20: 00000007 c0453734 c0aa145c c38a9210 c0aa1460 00000000 00000000 c04519c4
[    0.933501] 9e40: c38a9210 c0a4ee70 c0a4ee70 c0451fd8 00000000 c09004a8 000000cb c0451d24
[    0.941681] 9e60: 000000cb c05633b0 c075cb3c c38a9210 00000000 c0a4ee70 c0451fd8 00000000
[    0.949861] 9e80: c09004a8 000000cb 00000007 c0451fd0 00000000 c0a4ee70 c38a9210 c0452030
[    0.958042] 9ea0: c389e9b4 c0a04c48 c0a4ee70 c044fe6c c09004a8 c3808f58 c389e9b4 85672ee0
[    0.966222] 9ec0: c0a4c670 c0a4ee70 c3b10080 c0a4c670 00000000 c0450ecc c082ea94 ffffe000
[    0.974402] 9ee0: c0a4ee70 c0a4ee70 c0a04c48 ffffe000 c091ea74 c0452860 c0a6c000 c0a04c48
[    0.982582] 9f00: ffffe000 c01026e8 c3fffed5 c013b1a4 c089a924 c0834c00 00000000 00000006
[    0.990762] 9f20: 00000006 c07f05e8 00000000 c0a04c48 c07fa880 c07f065c 00000000 c3fffed3
[    0.998942] 9f40: 00000000 85672ee0 00000000 00000006 c0a6c000 85672ee0 c094db34 c0a6c000
[    1.007122] 9f60: c0a6c000 c0939854 c0939834 c0900f04 00000006 00000006 00000000 c09004a8
[    1.015301] 9f80: 00000000 00000000 c06a89a0 00000000 00000000 00000000 00000000 00000000
[    1.023481] 9fa0: 00000000 c06a89a8 00000000 c01010e8 00000000 00000000 00000000 00000000
[    1.031660] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.039839] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    1.048039] [<c04cb258>] (sun8i_dwmac_setup) from [<c04c7634>] (stmmac_hwif_init+0x78/0x264)
[    1.056485] [<c04c7634>] (stmmac_hwif_init) from [<c04bb5c4>] (stmmac_dvr_probe+0x1e0/0xd74)
[    1.064929] [<c04bb5c4>] (stmmac_dvr_probe) from [<c04cb8c4>] (sun8i_dwmac_probe+0x1e0/0x48c)
[    1.073464] [<c04cb8c4>] (sun8i_dwmac_probe) from [<c0453734>] (platform_drv_probe+0x48/0x98)
[    1.081994] [<c0453734>] (platform_drv_probe) from [<c04519c4>] (really_probe+0xf0/0x2c8)
[    1.090175] [<c04519c4>] (really_probe) from [<c0451d24>] (driver_probe_device+0x60/0x16c)
[    1.098442] [<c0451d24>] (driver_probe_device) from [<c0451fd0>] (device_driver_attach+0x58/0x60)
[    1.107316] [<c0451fd0>] (device_driver_attach) from [<c0452030>] (__driver_attach+0x58/0xcc)
[    1.115845] [<c0452030>] (__driver_attach) from [<c044fe6c>] (bus_for_each_dev+0x74/0xb4)
[    1.124026] [<c044fe6c>] (bus_for_each_dev) from [<c0450ecc>] (bus_add_driver+0x1b4/0x1d4)
[    1.132293] [<c0450ecc>] (bus_add_driver) from [<c0452860>] (driver_register+0x74/0x108)
[    1.140390] [<c0452860>] (driver_register) from [<c01026e8>] (do_one_initcall+0x7c/0x1c8)
[    1.148580] [<c01026e8>] (do_one_initcall) from [<c0900f04>] (kernel_init_freeable+0x138/0x1d4)
[    1.157286] [<c0900f04>] (kernel_init_freeable) from [<c06a89a8>] (kernel_init+0x8/0x110)
[    1.165467] [<c06a89a8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.173035] Exception stack(0xc3839fb0 to 0xc3839ff8)
[    1.178087] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.186267] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.194444] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.201063] Code: e34c1082 e1a0400b ebfe11b4 eaffffb1 (e59a2008) 
[    1.207249] ---[ end trace 8aaa0ba895678c76 ]---
[    1.211935] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.219603] Rebooting in 5 seconds..
[    7.223275] Reboot failed -- System halted

U-Boot SPL 2019.10 (Jan 30 2021 - 10:31:43 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2019.10 (Jan 30 2021 - 10:31:43 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   failed to get TX clock
eth-1: ethernet@1c30000
starting USB...
No working 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
292 bytes read in 3 ms (94.7 KiB/s)
## Executing script at 41900000
4174464 bytes read in 424 ms (9.4 MiB/s)
6882 bytes read in 5 ms (1.3 MiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfb000, end 42dffae1 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.3.5 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.8)) #1 SMP Sat Jan 30 09:51:07 CST 2021
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x41c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38524K/65536K available (6144K kernel code, 431K rwdata, 1648K rodata, 1024K init, 242K bss, 10628K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x48c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    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.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000192] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000406] Console: colour dummy device 80x30
[    0.000757] printk: console [tty0] enabled
[    0.000815] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000845] pid_max: default: 32768 minimum: 301
[    0.001031] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001065] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001941] CPU: Testing write buffer coherency: ok
[    0.002496] /cpus/cpu@0 missing clock-frequency property
[    0.002542] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003320] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003556] rcu: Hierarchical SRCU implementation.
[    0.004038] smp: Bringing up secondary CPUs ...
[    0.004078] smp: Brought up 1 node, 1 CPU
[    0.004094] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004108] CPU: All CPU(s) started in HYP mode.
[    0.004120] CPU: Virtualization extensions available.
[    0.005009] devtmpfs: initialized
[    0.007431] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007774] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007826] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.008652] pinctrl core: initialized pinctrl subsystem
[    0.009864] NET: Registered protocol family 16
[    0.011175] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.012470] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.012516] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027603] SCSI subsystem initialized
[    0.028342] usbcore: registered new interface driver usbfs
[    0.028443] usbcore: registered new interface driver hub
[    0.028562] usbcore: registered new device driver usb
[    0.028806] pps_core: LinuxPPS API ver. 1 registered
[    0.028832] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.028871] PTP clock support registered
[    0.029156] Advanced Linux Sound Architecture Driver Initialized.
[    0.030540] clocksource: Switched to clocksource arch_sys_counter
[    0.041119] thermal_sys: Registered thermal governor 'step_wise'
[    0.041479] NET: Registered protocol family 2
[    0.042162] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.042225] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.042263] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.042294] TCP: Hash tables configured (established 1024 bind 1024)
[    0.042454] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.042518] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.042777] NET: Registered protocol family 1
[    0.043768] RPC: Registered named UNIX socket transport module.
[    0.043814] RPC: Registered udp transport module.
[    0.043829] RPC: Registered tcp transport module.
[    0.043842] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.045854] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.053812] NFS: Registering the id_resolver key type
[    0.053892] Key type id_resolver registered
[    0.053907] Key type id_legacy registered
[    0.054040] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.054069] io scheduler mq-deadline registered
[    0.054085] io scheduler kyber registered
[    0.054981] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.058778] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.121863] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.124218] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.125410] printk: console [ttyS0] disabled
[    0.145743] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 31, base_baud = 1500000) is a U6_16550A
[    0.716345] printk: console [ttyS0] enabled
[    0.723292] libphy: Fixed MDIO Bus: probed
[    0.727425] CAN device driver interface
[    0.731956] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.737777] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.744043] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[    0.753458] 8<--- cut here ---
[    0.756525] Unable to handle kernel NULL pointer dereference at virtual address 00000008
[    0.764637] pgd = (ptrval)
[    0.767348] [00000008] *pgd=00000000
[    0.770947] Internal error: Oops: 5 [#1] SMP ARM
[    0.775566] Modules linked in:
[    0.778630] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.3.5 #1
[    0.784460] Hardware name: Allwinner sun8i Family
[    0.789182] PC is at sun8i_dwmac_setup+0x37c/0x3f8
[    0.793981] LR is at of_find_property+0x44/0x4c
[    0.798511] pc : [<c04cb258>]    lr : [<c056253c>]    psr: a0000053
[    0.804775] sp : c3839d10  ip : 00000000  fp : 00000000
[    0.809999] r10: 00000000  r9 : c3fef930  r8 : c3b15500
[    0.815223] r7 : c3b10440  r6 : c0a04c48  r5 : c3b14500  r4 : c39a5340
[    0.821749] r3 : 85672ee0  r2 : 85672ee0  r1 : a0000053  r0 : ffffffea
[    0.828277] Flags: NzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.835499] Control: 10c5387d  Table: 4000406a  DAC: 00000051
[    0.841244] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    0.847250] Stack: (0xc3839d10 to 0xc383a000)
[    0.851611] 9d00:                                     00000000 c013752c 00078000 c38a9210
[    0.859791] 9d20: c3b11064 00038000 c0844870 85672ee0 00000000 00000000 c3b15500 00000000
[    0.867971] 9d40: 00000000 c3b14500 00000000 00000000 c39ab840 c04c7634 c3b14000 c3b14000
[    0.876151] 9d60: c3811c8c c3b14000 c3b16000 c0a4ed7c c38a9210 c0aa2a7c c3b14500 c3b15000
[    0.884331] 9d80: c39ab840 c04bb5c4 00000000 a0000053 c3b0e1c0 c03b7a90 00000000 c0a04c48
[    0.892511] 9da0: 00000000 c38a9200 c39ab840 c38a9210 c3b10440 c3896e00 00000007 c04cb8c4
[    0.900690] 9dc0: 0000001f 00000000 00000000 00000000 00000000 c08158e8 00000001 c0285a44
[    0.908870] 9de0: c38aa000 c02856cc c4818000 c2dfc188 00000020 fffffffa 00000020 85672ee0
[    0.917050] 9e00: c08158e8 c38a9210 00000000 c0a4ee70 00000000 00000000 c0a4ee70 00000000
[    0.925230] 9e20: 00000007 c0453734 c0aa145c c38a9210 c0aa1460 00000000 00000000 c04519c4
[    0.933410] 9e40: c38a9210 c0a4ee70 c0a4ee70 c0451fd8 00000000 c09004a8 000000cb c0451d24
[    0.941590] 9e60: 000000cb c05633b0 c075cb3c c38a9210 00000000 c0a4ee70 c0451fd8 00000000
[    0.949770] 9e80: c09004a8 000000cb 00000007 c0451fd0 00000000 c0a4ee70 c38a9210 c0452030
[    0.957950] 9ea0: c389e9b4 c0a04c48 c0a4ee70 c044fe6c c09004a8 c3808f58 c389e9b4 85672ee0
[    0.966130] 9ec0: c0a4c670 c0a4ee70 c3b10080 c0a4c670 00000000 c0450ecc c082ea94 ffffe000
[    0.974311] 9ee0: c0a4ee70 c0a4ee70 c0a04c48 ffffe000 c091ea74 c0452860 c0a6c000 c0a04c48
[    0.982491] 9f00: ffffe000 c01026e8 c3fffed5 c013b1a4 c089a924 c0834c00 00000000 00000006
[    0.990671] 9f20: 00000006 c07f05e8 00000000 c0a04c48 c07fa880 c07f065c 00000000 c3fffed3
[    0.998851] 9f40: 00000000 85672ee0 00000000 00000006 c0a6c000 85672ee0 c094db34 c0a6c000
[    1.007030] 9f60: c0a6c000 c0939854 c0939834 c0900f04 00000006 00000006 00000000 c09004a8
[    1.015210] 9f80: 00000000 00000000 c06a89a0 00000000 00000000 00000000 00000000 00000000
[    1.023389] 9fa0: 00000000 c06a89a8 00000000 c01010e8 00000000 00000000 00000000 00000000
[    1.031569] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.039748] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    1.047948] [<c04cb258>] (sun8i_dwmac_setup) from [<c04c7634>] (stmmac_hwif_init+0x78/0x264)
[    1.056395] [<c04c7634>] (stmmac_hwif_init) from [<c04bb5c4>] (stmmac_dvr_probe+0x1e0/0xd74)
[    1.064838] [<c04bb5c4>] (stmmac_dvr_probe) from [<c04cb8c4>] (sun8i_dwmac_probe+0x1e0/0x48c)
[    1.073371] [<c04cb8c4>] (sun8i_dwmac_probe) from [<c0453734>] (platform_drv_probe+0x48/0x98)
[    1.081902] [<c0453734>] (platform_drv_probe) from [<c04519c4>] (really_probe+0xf0/0x2c8)
[    1.090083] [<c04519c4>] (really_probe) from [<c0451d24>] (driver_probe_device+0x60/0x16c)
[    1.098349] [<c0451d24>] (driver_probe_device) from [<c0451fd0>] (device_driver_attach+0x58/0x60)
[    1.107223] [<c0451fd0>] (device_driver_attach) from [<c0452030>] (__driver_attach+0x58/0xcc)
[    1.115751] [<c0452030>] (__driver_attach) from [<c044fe6c>] (bus_for_each_dev+0x74/0xb4)
[    1.123931] [<c044fe6c>] (bus_for_each_dev) from [<c0450ecc>] (bus_add_driver+0x1b4/0x1d4)
[    1.132198] [<c0450ecc>] (bus_add_driver) from [<c0452860>] (driver_register+0x74/0x108)
[    1.140296] [<c0452860>] (driver_register) from [<c01026e8>] (do_one_initcall+0x7c/0x1c8)
[    1.148486] [<c01026e8>] (do_one_initcall) from [<c0900f04>] (kernel_init_freeable+0x138/0x1d4)
[    1.157191] [<c0900f04>] (kernel_init_freeable) from [<c06a89a8>] (kernel_init+0x8/0x110)
[    1.165374] [<c06a89a8>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.172942] Exception stack(0xc3839fb0 to 0xc3839ff8)
[    1.177995] 9fa0:                                     00000000 00000000 00000000 00000000
[    1.186174] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.194352] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.200971] Code: e34c1082 e1a0400b ebfe11b4 eaffffb1 (e59a2008) 
[    1.207161] ---[ end trace 62acf0dde808fb34 ]---
[    1.211842] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.219511] Rebooting in 5 seconds..
[    7.223183] Reboot failed -- System halted

#67 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 17:15:30

raspberryman 说:

sun8i-v3s-licheepi-zero-dock.dts:65.1-7 Label or path lradc not found

65行出错


65行到结尾如下,貌似是4个按键,音量加,音量减,选择键,开始键,但是这个和我要开启以太网好像没啥关系

&lradc {
	vref-supply = <&reg_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>;
	};
};

#68 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 11:33:21

继续参照https://www.kancloud.cn/lichee/lpi0/327886配置linux内核以太网

修改sun8i-v3s.dtsi,内容与uboot中的sun8i-v3s.dtsi一样
/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5/arch/arm/boot/dts/sun8i-v3s.dtsi
/home/zhang/buildroot-2020.02.8/output/build/linux-headers-5.3.5/arch/arm/boot/dts/sun8i-v3s.dtsi

修改sun8i-v3s-licheepi-zero.dts,内容如下
/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dts
/home/zhang/buildroot-2020.02.8/output/build/linux-headers-5.3.5/arch/arm/boot/dts/sun8i-v3s-licheepi-zero.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 <dt-bindings/clock/sun8i-v3s-ccu.h>
#include <dt-bindings/reset/sun8i-v3s-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	interrupt-parent = <&gic>;

	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu@0 {
			compatible = "arm,cortex-a7";
			device_type = "cpu";
			reg = <0>;
			clocks = <&ccu CLK_CPU>;
		};
	};

	timer {
		compatible = "arm,armv7-timer";
		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
	};

	clocks {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		osc24M: osc24M_clk {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <24000000>;
			clock-output-names = "osc24M";
		};

		osc32k: osc32k_clk {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32768>;
			clock-output-names = "osc32k";
		};
	};

	soc {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

               syscon: syscon@01c00000 {
                       compatible = "allwinner,sun8i-h3-syscon","syscon";
                       reg = <0x01c00000 0x34>;
               };

		mmc0: mmc@01c0f000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c0f000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC0>,
				 <&ccu CLK_MMC0>,
				 <&ccu CLK_MMC0_OUTPUT>,
				 <&ccu CLK_MMC0_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC0>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		mmc1: mmc@01c10000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c10000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC1>,
				 <&ccu CLK_MMC1>,
				 <&ccu CLK_MMC1_OUTPUT>,
				 <&ccu CLK_MMC1_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC1>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		mmc2: mmc@01c11000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c11000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC2>,
				 <&ccu CLK_MMC2>,
				 <&ccu CLK_MMC2_OUTPUT>,
				 <&ccu CLK_MMC2_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC2>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		usb_otg: usb@01c19000 {
			compatible = "allwinner,sun8i-h3-musb";
			reg = <0x01c19000 0x0400>;
			clocks = <&ccu CLK_BUS_OTG>;
			resets = <&ccu RST_BUS_OTG>;
			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "mc";
			phys = <&usbphy 0>;
			phy-names = "usb";
			extcon = <&usbphy 0>;
			status = "disabled";
		};

		usbphy: phy@01c19400 {
			compatible = "allwinner,sun8i-v3s-usb-phy";
			reg = <0x01c19400 0x2c>,
			      <0x01c1a800 0x4>;
			reg-names = "phy_ctrl",
				    "pmu0";
			clocks = <&ccu CLK_USB_PHY0>;
			clock-names = "usb0_phy";
			resets = <&ccu RST_USB_PHY0>;
			reset-names = "usb0_reset";
			status = "disabled";
			#phy-cells = <1>;
		};

		ccu: clock@01c20000 {
			compatible = "allwinner,sun8i-v3s-ccu";
			reg = <0x01c20000 0x400>;
			clocks = <&osc24M>, <&osc32k>;
			clock-names = "hosc", "losc";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

		rtc: rtc@01c20400 {
			compatible = "allwinner,sun6i-a31-rtc";
			reg = <0x01c20400 0x54>;
			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
		};

		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>;

                       emac_rgmii_pins: emac0@0 {
                               allwinner,pins = "PD0", "PD1", "PD2", "PD3",
                                               "PD4", "PD5", "PD7",
                                               "PD8", "PD9", "PD10",
                                               "PD12", "PD13", "PD15",
                                               "PD16", "PD17";
                               allwinner,function = "emac";
                               allwinner,drive = <SUN4I_PINCTRL_40_MA>;
                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
                       };

			uart0_pins_a: uart0@0 {
				pins = "PB8", "PB9";
				function = "uart0";
				bias-pull-up;
			};

			mmc0_pins_a: mmc0@0 {
				pins = "PF0", "PF1", "PF2", "PF3",
				       "PF4", "PF5";
				function = "mmc0";
				drive-strength = <30>;
				bias-pull-up;
			};
		};

		timer@01c20c00 {
			compatible = "allwinner,sun4i-a10-timer";
			reg = <0x01c20c00 0xa0>;
			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&osc24M>;
		};

		wdt0: watchdog@01c20ca0 {
			compatible = "allwinner,sun6i-a31-wdt";
			reg = <0x01c20ca0 0x20>;
			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
		};

		uart0: serial@01c28000 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28000 0x400>;
			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART0>;
			resets = <&ccu RST_BUS_UART0>;
			status = "disabled";
		};

		uart1: serial@01c28400 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28400 0x400>;
			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART1>;
			resets = <&ccu RST_BUS_UART1>;
			status = "disabled";
		};

		uart2: serial@01c28800 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28800 0x400>;
			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART2>;
			resets = <&ccu RST_BUS_UART2>;
			status = "disabled";
		};

               emac: ethernet@1c30000 {
                       compatible = "allwinner,sun8i-h3-emac";
                       syscon = <&syscon>;
                       reg = <0x01c30000 0x104>;
                       interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
                       interrupt-names = "macirq";
                       resets = <&ccu RST_BUS_EMAC>;
                       reset-names = "stmmaceth";
                       clocks = <&ccu CLK_BUS_EMAC>;
                       clock-names = "stmmaceth";
                       #address-cells = <1>;
                       #size-cells = <0>;
                       status = "disabled";

                       mdio: mdio {
                               #address-cells = <1>;
                               #size-cells = <0>;
                               int_mii_phy: ethernet-phy@0 {
                                       compatible = "ethernet-phy-ieee802.3-c22";
                                       reg = <1>;
                                       clocks = <&ccu CLK_BUS_EPHY>;
                                       resets = <&ccu RST_BUS_EPHY>;
                               };
                       };
               };

		gic: interrupt-controller@01c81000 {
			compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
			reg = <0x01c81000 0x1000>,
			      <0x01c82000 0x1000>,
			      <0x01c84000 0x2000>,
			      <0x01c86000 0x2000>;
			interrupt-controller;
			#interrupt-cells = <3>;
			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
		};
	};
};

执行make linux-menuconfig配置以太网相关选项
重新编译报错

zhang@ubuntu:~/buildroot-2020.02.8$ make
>>> linux 5.3.5 Configuring
>>> linux 5.3.5 Building
PATH="/home/zhang/buildroot-2020.02.8/output/host/bin:/home/zhang/buildroot-2020.02.8/output/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" PKG_CONFIG="/home/zhang/buildroot-2020.02.8/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/home/zhang/buildroot-2020.02.8/output/host/lib/pkgconfig:/home/zhang/buildroot-2020.02.8/output/host/share/pkgconfig" BR_BINARIES_DIR=/home/zhang/buildroot-2020.02.8/output/images KCFLAGS=-Wno-attribute-alias /usr/bin/make -j5 HOSTCC="/usr/bin/gcc -O2 -I/home/zhang/buildroot-2020.02.8/output/host/include -L/home/zhang/buildroot-2020.02.8/output/host/lib -Wl,-rpath,/home/zhang/buildroot-2020.02.8/output/host/lib" ARCH=arm INSTALL_MOD_PATH=/home/zhang/buildroot-2020.02.8/output/target CROSS_COMPILE="/home/zhang/buildroot-2020.02.8/output/host/bin/arm-buildroot-linux-uclibcgnueabihf-" DEPMOD=/home/zhang/buildroot-2020.02.8/output/host/sbin/depmod INSTALL_MOD_STRIP=1 -C /home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5 all
make[1]: Entering directory '/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/confdata.o
  HOSTCC  scripts/kconfig/expr.o
  HOSTCC  scripts/kconfig/lexer.lex.o
  HOSTCC  scripts/kconfig/parser.tab.o
  HOSTCC  scripts/kconfig/preprocess.o
  HOSTCC  scripts/kconfig/symbol.o
  HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf  --syncconfig Kconfig
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dtb
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb
Error: arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dts:65.1-7 Label or path lradc not found
FATAL ERROR: Syntax error parsing input tree
scripts/Makefile.lib:306: recipe for target 'arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb' failed
make[2]: *** [arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb] Error 1
make[2]: *** Waiting for unfinished jobs....
Makefile:1265: recipe for target 'dtbs' failed
make[1]: *** [dtbs] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5'
package/pkg-generic.mk:266: recipe for target '/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5/.stamp_built' failed
make: *** [/home/zhang/buildroot-2020.02.8/output/build/linux-5.3.5/.stamp_built] Error 2

希望大家指导一下

#69 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 11:02:37

uboot已经能识别以太网

U-Boot SPL 2019.10 (Jan 30 2021 - 10:31:43 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.10 (Jan 30 2021 - 10:31:43 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   failed to get TX clock
eth-1: ethernet@1c30000
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 

需要将以下四个文件全部修改完成
执行打开Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
再次编译得到可用文件u-boot-sunxi-with-spl.rar

/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s-licheepi-zero.dts

/home/zhang/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s.dtsi
/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s.dtsi

#70 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 10:26:25

raspberryman 说:

uboot驱动以太网是要烧录吗?

首页» 全志 V3S/F1C100s/X3» V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写
我把我编译得到的u-boot-sunxi-with-spl.bin替换晕哥的文件在线就能运行,但是还是不能识别以太网

#71 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-30 10:19:26

不知道为什么我不能继续编辑1楼的内容
接着添加以太网
执行make clean重新编译一遍
接着修改sun8i-v3s-licheepi-zero.dts和sun8i-v3s.dtsi
修改后的内容如下

/*
 * 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 <dt-bindings/clock/sun8i-v3s-ccu.h>
#include <dt-bindings/reset/sun8i-v3s-ccu.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/pinctrl/sun4i-a10.h>

/ {
	#address-cells = <1>;
	#size-cells = <1>;
	interrupt-parent = <&gic>;

	cpus {
		#address-cells = <1>;
		#size-cells = <0>;

		cpu@0 {
			compatible = "arm,cortex-a7";
			device_type = "cpu";
			reg = <0>;
			clocks = <&ccu CLK_CPU>;
		};
	};

	timer {
		compatible = "arm,armv7-timer";
		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>,
			     <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>;
	};

	clocks {
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

		osc24M: osc24M_clk {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <24000000>;
			clock-output-names = "osc24M";
		};

		osc32k: osc32k_clk {
			#clock-cells = <0>;
			compatible = "fixed-clock";
			clock-frequency = <32768>;
			clock-output-names = "osc32k";
		};
	};

	soc {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges;

               syscon: syscon@01c00000 {
                       compatible = "allwinner,sun8i-h3-syscon","syscon";
                       reg = <0x01c00000 0x34>;
               };

		mmc0: mmc@01c0f000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c0f000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC0>,
				 <&ccu CLK_MMC0>,
				 <&ccu CLK_MMC0_OUTPUT>,
				 <&ccu CLK_MMC0_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC0>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		mmc1: mmc@01c10000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c10000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC1>,
				 <&ccu CLK_MMC1>,
				 <&ccu CLK_MMC1_OUTPUT>,
				 <&ccu CLK_MMC1_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC1>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		mmc2: mmc@01c11000 {
			compatible = "allwinner,sun7i-a20-mmc";
			reg = <0x01c11000 0x1000>;
			clocks = <&ccu CLK_BUS_MMC2>,
				 <&ccu CLK_MMC2>,
				 <&ccu CLK_MMC2_OUTPUT>,
				 <&ccu CLK_MMC2_SAMPLE>;
			clock-names = "ahb",
				      "mmc",
				      "output",
				      "sample";
			resets = <&ccu RST_BUS_MMC2>;
			reset-names = "ahb";
			interrupts = <GIC_SPI 62 IRQ_TYPE_LEVEL_HIGH>;
			status = "disabled";
			#address-cells = <1>;
			#size-cells = <0>;
		};

		usb_otg: usb@01c19000 {
			compatible = "allwinner,sun8i-h3-musb";
			reg = <0x01c19000 0x0400>;
			clocks = <&ccu CLK_BUS_OTG>;
			resets = <&ccu RST_BUS_OTG>;
			interrupts = <GIC_SPI 71 IRQ_TYPE_LEVEL_HIGH>;
			interrupt-names = "mc";
			phys = <&usbphy 0>;
			phy-names = "usb";
			extcon = <&usbphy 0>;
			status = "disabled";
		};

		usbphy: phy@01c19400 {
			compatible = "allwinner,sun8i-v3s-usb-phy";
			reg = <0x01c19400 0x2c>,
			      <0x01c1a800 0x4>;
			reg-names = "phy_ctrl",
				    "pmu0";
			clocks = <&ccu CLK_USB_PHY0>;
			clock-names = "usb0_phy";
			resets = <&ccu RST_USB_PHY0>;
			reset-names = "usb0_reset";
			status = "disabled";
			#phy-cells = <1>;
		};

		ccu: clock@01c20000 {
			compatible = "allwinner,sun8i-v3s-ccu";
			reg = <0x01c20000 0x400>;
			clocks = <&osc24M>, <&osc32k>;
			clock-names = "hosc", "losc";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

		rtc: rtc@01c20400 {
			compatible = "allwinner,sun6i-a31-rtc";
			reg = <0x01c20400 0x54>;
			interrupts = <GIC_SPI 40 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;
		};

		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>;

                       emac_rgmii_pins: emac0@0 {
                               allwinner,pins = "PD0", "PD1", "PD2", "PD3",
                                               "PD4", "PD5", "PD7",
                                               "PD8", "PD9", "PD10",
                                               "PD12", "PD13", "PD15",
                                               "PD16", "PD17";
                               allwinner,function = "emac";
                               allwinner,drive = <SUN4I_PINCTRL_40_MA>;
                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
                       };

			uart0_pins_a: uart0@0 {
				pins = "PB8", "PB9";
				function = "uart0";
				bias-pull-up;
			};

			mmc0_pins_a: mmc0@0 {
				pins = "PF0", "PF1", "PF2", "PF3",
				       "PF4", "PF5";
				function = "mmc0";
				drive-strength = <30>;
				bias-pull-up;
			};
		};

		timer@01c20c00 {
			compatible = "allwinner,sun4i-a10-timer";
			reg = <0x01c20c00 0xa0>;
			interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>,
				     <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&osc24M>;
		};

		wdt0: watchdog@01c20ca0 {
			compatible = "allwinner,sun6i-a31-wdt";
			reg = <0x01c20ca0 0x20>;
			interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
		};

		uart0: serial@01c28000 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28000 0x400>;
			interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART0>;
			resets = <&ccu RST_BUS_UART0>;
			status = "disabled";
		};

		uart1: serial@01c28400 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28400 0x400>;
			interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART1>;
			resets = <&ccu RST_BUS_UART1>;
			status = "disabled";
		};

		uart2: serial@01c28800 {
			compatible = "snps,dw-apb-uart";
			reg = <0x01c28800 0x400>;
			interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
			reg-shift = <2>;
			reg-io-width = <4>;
			clocks = <&ccu CLK_BUS_UART2>;
			resets = <&ccu RST_BUS_UART2>;
			status = "disabled";
		};

               emac: ethernet@1c30000 {
                       compatible = "allwinner,sun8i-h3-emac";
                       reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
                       reg-names = "emac", "syscon";
                       interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
                       resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>;
                       reset-names = "ahb", "ephy";
                       clocks = <&ccu CLK_BUS_EMAC>, <&ccu CLK_BUS_EPHY>;
                       clock-names = "ahb", "ephy";
                       #address-cells = <1>;
                       #size-cells = <0>;
                       status = "disabled";
               };

		gic: interrupt-controller@01c81000 {
			compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
			reg = <0x01c81000 0x1000>,
			      <0x01c82000 0x1000>,
			      <0x01c84000 0x2000>,
			      <0x01c86000 0x2000>;
			interrupt-controller;
			#interrupt-cells = <3>;
			interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_HIGH)>;
		};
	};
};
/*
 * 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.
 */

/dts-v1/;
#include "sun8i-v3s.dtsi"
#include "sunxi-common-regulators.dtsi"

/ {
	model = "Lichee Pi Zero";
	compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";

	aliases {
		serial0 = &uart0;
               ethernet0 = &emac;
	};

	chosen {
		stdout-path = "serial0:115200n8";
	};
};

&mmc0 {
	pinctrl-0 = <&mmc0_pins_a>;
	pinctrl-names = "default";
	broken-cd;
	bus-width = <4>;
	vmmc-supply = <&reg_vcc3v3>;
	status = "okay";
};

&uart0 {
	pinctrl-0 = <&uart0_pins_a>;
	pinctrl-names = "default";
	status = "okay";
};

&usb_otg {
	dr_mode = "otg";
	status = "okay";
};

&usbphy {
	usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
	status = "okay";
};

&emac {
       phy = <&phy0>;
       phy-mode = "mii";
       allwinner,use-internal-phy;
       allwinner,leds-active-low;
       status = "okay";
       phy0: ethernet-phy@0 {
               reg = <1>;
       };
};

执行make uboot-menuconfig
打开打开Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
保存后make成功
得到烧录文件
识别以太网还是失败了
大家帮找找原因
输出如下

U-Boot SPL 2019.10 (Jan 30 2021 - 10:07:59 +0800)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.10 (Jan 30 2021 - 10:07:59 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0

为了调试方便,我用了晕哥的在线烧录进内存来运行的模式

#72 Re: 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-28 16:09:50

raspberryman 说:

我也看到有荔枝派zero的配置文件,但是从来都没用过,没想到真可以编译出能跑的固件,赞!

make menuconfig并不会出现如下的设备驱动选项
Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
想要使用以太网怎么配置呢?

#73 全志 SOC » 记录使用最新Buildroot一键编译V3s可用镜像 » 2021-01-28 15:07:33

zhang235hai
回复: 18

环境:WIN10 虚拟机Ubuntu 18.04
安装过程百度搜索即可

sudo apt-get update
sudo apt-get upgrade
经过漫长的等待之后更新完成

之后准备编译环境
sudo apt install gcc build-essential bison flex gettext tcl sharutils libncurses-dev zlib1g-dev exuberant-ctags g++ texinfo patch vim libtool bc git python3 unzip python3-distutils swig python-dev
sudo apt install gcc-arm-linux-gnueabihf

从官网下载Buildroot包
我使用的是
buildroot-2020.02.8.tar.gz
解压缩后开始编译

进入目录
cd buildroot-2020.02.8
生成配置文件
make licheepi_zero_defconfig
进行编译
make

编译完成后在/buildroot-2020.02.8/output/images/目录下顺利得到sdcard.img
使用Win32 Disk Imager将sdcard.img烧写进SD卡
启动后
串口0打印输出如下

U-Boot SPL 2019.10 (Jan 06 2021 - 12:31:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2019.10 (Jan 06 2021 - 12:31:54 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working 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
292 bytes read in 3 ms (94.7 KiB/s)
## Executing script at 41900000
4174456 bytes read in 424 ms (9.4 MiB/s)
9041 bytes read in 5 ms (1.7 MiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dff350 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.3.5 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.8)) #1 SMP Wed Jan 6 12:33:08 CST 2021
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x41c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38516K/65536K available (6144K kernel code, 431K rwdata, 1648K rodata, 1024K init, 242K bss, 10636K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] random: get_random_bytes called from start_kernel+0x2fc/0x48c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    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.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000211] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000443] Console: colour dummy device 80x30
[    0.000763] printk: console [tty0] enabled
[    0.000821] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000851] pid_max: default: 32768 minimum: 301
[    0.001022] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001054] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001927] CPU: Testing write buffer coherency: ok
[    0.002487] /cpus/cpu@0 missing clock-frequency property
[    0.002534] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003343] Setting up static identity map for 0x40100000 - 0x40100060
[    0.003589] rcu: Hierarchical SRCU implementation.
[    0.004093] smp: Bringing up secondary CPUs ...
[    0.004134] smp: Brought up 1 node, 1 CPU
[    0.004150] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.004165] CPU: All CPU(s) started in HYP mode.
[    0.004176] CPU: Virtualization extensions available.
[    0.005034] devtmpfs: initialized
[    0.007961] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.008309] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.008368] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.009194] pinctrl core: initialized pinctrl subsystem
[    0.010607] NET: Registered protocol family 16
[    0.011797] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.013068] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.013116] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.028422] SCSI subsystem initialized
[    0.029160] usbcore: registered new interface driver usbfs
[    0.029249] usbcore: registered new interface driver hub
[    0.029354] usbcore: registered new device driver usb
[    0.029605] pps_core: LinuxPPS API ver. 1 registered
[    0.029629] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.029669] PTP clock support registered
[    0.029955] Advanced Linux Sound Architecture Driver Initialized.
[    0.031417] clocksource: Switched to clocksource arch_sys_counter
[    0.042293] thermal_sys: Registered thermal governor 'step_wise'
[    0.042642] NET: Registered protocol family 2
[    0.043337] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.043399] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.043438] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.043468] TCP: Hash tables configured (established 1024 bind 1024)
[    0.043625] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.043692] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.043956] NET: Registered protocol family 1
[    0.044942] RPC: Registered named UNIX socket transport module.
[    0.044989] RPC: Registered udp transport module.
[    0.045002] RPC: Registered tcp transport module.
[    0.045015] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.047092] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.055069] NFS: Registering the id_resolver key type
[    0.055149] Key type id_resolver registered
[    0.055167] Key type id_legacy registered
[    0.055300] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.055328] io scheduler mq-deadline registered
[    0.055343] io scheduler kyber registered
[    0.056282] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.060064] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.123816] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.126205] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.127367] printk: console [ttyS0] disabled
[    0.147695] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 32, base_baud = 1500000) is a U6_16550A
[    0.718210] printk: console [ttyS0] enabled
[    0.747537] libphy: Fixed MDIO Bus: probed
[    0.751752] CAN device driver interface
[    0.756084] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.762687] ehci-platform: EHCI generic platform driver
[    0.768048] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.774300] ohci-platform: OHCI generic platform driver
[    0.780609] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    0.789805] sun6i-rtc 1c20400.rtc: registered as rtc0
[    0.794986] sun6i-rtc 1c20400.rtc: RTC enabled
[    0.799700] i2c /dev entries driver
[    0.804485] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.813226] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    0.849911] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    0.857242] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    0.892519] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    0.900562] usbcore: registered new interface driver usbhid
[    0.906248] usbhid: USB HID core driver
[    0.912262] NET: Registered protocol family 17
[    0.916767] can: controller area network core (rev 20170425 abi 9)
[    0.923142] NET: Registered protocol family 29
[    0.927600] can: raw protocol (rev 20170425)
[    0.931918] can: broadcast manager protocol (rev 20170425 t)
[    0.937590] can: netlink gateway (rev 20170425) max_hops=1
[    0.943417] Key type dns_resolver registered
[    0.947851] Registering SWP/SWPB emulation handler
[    0.961006] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.972597] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    0.978386] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    0.987991] hub 1-0:1.0: USB hub found
[    0.992140] hub 1-0:1.0: 1 port detected
[    0.997564] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:00:04 UTC (4)
[    1.005929] ALSA device list:
[    1.008926]   No soundcards found.
[    1.012878] Waiting for root device /dev/mmcblk0p2...
[    1.018049] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.028467] mmc0: new high speed SD card at address b368
[    1.035794] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.042780]  mmcblk0: p1 p2
[    1.268435] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.276787] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.283920] devtmpfs: mounted
[    1.288154] Freeing unused kernel memory: 1024K
[    1.292926] Run /sbin/init as init process
[    1.438344] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    1.742277] random: dd: uninitialized urandom read (512 bytes read)

Welcome to Buildroot for the LicheePi Zero
licheepi-zero login:

帐号直接输入root
无密码
顺利进入终端

make menuconfig并不会出现如下的设备驱动选项
Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
想要使用以太网怎么配置呢?

参考https://www.kancloud.cn/lichee/lpi0/327886
执行make uboot-menuconfig
打开
Device Drivers -> Network device support -> Allwinner Sun8i Ethernet MAC support
编辑
/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s-licheepi-zero.dts

diff --git a/arch/arm/dts/sun8i-v3s-licheepi-zero.dts b/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
index 3d9168c..b8b9fc3 100644
--- a/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
+++ b/arch/arm/dts/sun8i-v3s-licheepi-zero.dts
@@ -49,6 +49,7 @@
        compatible = "licheepi,licheepi-zero", "allwinner,sun8i-v3s";
 
        aliases {
+               ethernet0 = &emac;
                serial0 = &uart0;
        };
 
@@ -81,3 +82,14 @@
        usb0_id_det-gpio = <&pio 5 6 GPIO_ACTIVE_HIGH>;
        status = "okay";
 };
+
+&emac {
+       phy = <&phy0>;
+       phy-mode = "mii";
+       allwinner,use-internal-phy;
+       allwinner,leds-active-low;
+       status = "okay";
+       phy0: ethernet-phy@0 {
+               reg = <1>;
+       };
+};

编辑
/buildroot-2020.02.8/output/build/host-uboot-tools-2020.01/arch/arm/dts/sun8i-v3s.dtsi
/buildroot-2020.02.8/output/build/uboot-2019.10/arch/arm/dts/sun8i-v3s.dtsi

diff --git a/arch/arm/dts/sun8i-v3s.dtsi b/arch/arm/dts/sun8i-v3s.dtsi
index ebefc0f..cb81dd5 100644
--- a/arch/arm/dts/sun8i-v3s.dtsi
+++ b/arch/arm/dts/sun8i-v3s.dtsi
@@ -96,6 +96,11 @@
                #size-cells = <1>;
                ranges;
 
+               syscon: syscon@01c00000 {
+                       compatible = "allwinner,sun8i-h3-syscon","syscon";
+                       reg = <0x01c00000 0x34>;
+               };
+
                mmc0: mmc@01c0f000 {
                        compatible = "allwinner,sun7i-a20-mmc";
                        reg = <0x01c0f000 0x1000>;
@@ -208,6 +213,17 @@
                        interrupt-controller;
                        #interrupt-cells = <3>;
 
+                       emac_rgmii_pins: emac0@0 {
+                               allwinner,pins = "PD0", "PD1", "PD2", "PD3",
+                                               "PD4", "PD5", "PD7",
+                                               "PD8", "PD9", "PD10",
+                                               "PD12", "PD13", "PD15",
+                                               "PD16", "PD17";
+                               allwinner,function = "emac";
+                               allwinner,drive = <SUN4I_PINCTRL_40_MA>;
+                               allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
+                       };
+
                        uart0_pins_a: uart0@0 {
                                pins = "PB8", "PB9";
                                function = "uart0";
@@ -270,6 +286,20 @@
                        status = "disabled";
                };
 
+               emac: ethernet@1c30000 {
+                       compatible = "allwinner,sun8i-h3-emac";
+                       reg = <0x01c30000 0x104>, <0x01c00030 0x4>;
+                       reg-names = "emac", "syscon";
+                       interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
+                       resets = <&ccu RST_BUS_EMAC>, <&ccu RST_BUS_EPHY>;
+                       reset-names = "ahb", "ephy";
+                       clocks = <&ccu CLK_BUS_EMAC>, <&ccu CLK_BUS_EPHY>;
+                       clock-names = "ahb", "ephy";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       status = "disabled";
+               };
+
                gic: interrupt-controller@01c81000 {
                        compatible = "arm,cortex-a7-gic", "arm,cortex-a15-gic";
                        reg = <0x01c81000 0x1000>,

重新编译报错,明天继续

arch/arm/dts/sun8i-v3s-licheepi-zero.dtb: ERROR (phandle_references): /soc/spi@1c68000: Reference to non-existent node or label "spi0_pins"

ERROR: Input tree has errors, aborting (use -f to force output)
scripts/Makefile.lib:308: recipe for target 'arch/arm/dts/sun8i-v3s-licheepi-zero.dtb' failed
make[3]: *** [arch/arm/dts/sun8i-v3s-licheepi-zero.dtb] Error 2
dts/Makefile:38: recipe for target 'arch-dtbs' failed
make[2]: *** [arch-dtbs] Error 2
Makefile:1061: recipe for target 'dts/dt.dtb' failed
make[1]: *** [dts/dt.dtb] Error 2
make[1]: Leaving directory '/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10'
package/pkg-generic.mk:266: recipe for target '/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/.stamp_built' failed
make: *** [/home/zhang/buildroot-2020.02.8/output/build/uboot-2019.10/.stamp_built] Error 2

#74 Re: 全志 SOC » 怎么得到可以用与SPI NAND的img文件呢? » 2021-01-06 10:50:46

zhouyu2019 说:

系统想要在spi nand上运行,和镜像没关系吧,关键看你怎么把镜像写到spi nand里面,读取的时候又以什么方式去读取,以此来避开坏块。

我参考 https://whycan.com/t_2449.html
» V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写

我把在TF卡上烧写的sdcard.img文件烧录到SPI NAND上
但是没有任何输出

#76 全志 SOC » 怎么得到可以用与SPI NAND的img文件呢? » 2021-01-04 11:47:52

zhang235hai
回复: 4

参照 https://whycan.com/t_3123.html
我已经成功使用SD卡启动系统,并且能使用mtd工具识别SPI NAND
怎么得到能用于SPI NAND的烧写文件呢?
gzip -cd /root/spinand.img.gz | mtd write - /dev/mtd0
这条指令的spinand.img.gz文件可以直接用buildroot得到吗?

#77 Re: 全志 SOC » V3s SPI NAND u-boot @openwrt » 2021-01-04 11:44:41

我已经成功使用SD卡启动系统,并且能使用mtd工具识别SPI NAND
怎么得到能用于SPI NAND的烧写文件呢?
gzip -cd /root/spinand.img.gz | mtd write - /dev/mtd0
这条指令的spinand.img.gz文件可以直接用buildroot得到吗?

#78 Re: 全志 SOC » 抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家 » 2020-12-24 16:25:16

saub 说:
saub 说:
zhang235hai 说:

R4用的510欧姆
11脚上拉了3.3V
35脚电压是1.78V
36脚1.24V

你这个应该没有问题,只能更换显示器试试了
看来我是运气好,工作用的显示器就能跑起来

你发一个收货地址给我,我发一个模块给你

加我一下吧
QQ 1142726307

#79 Re: 全志 SOC » 抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家 » 2020-12-24 14:38:16

saub 说:
zhang235hai 说:
saub 说:

提示什么?要不换个显示器试试?


换了显示器也不行
你能寄一个你的给我试试吗?
你发顺丰到付给我
我用了之后再还给你
我的QQ 1142726307


可以,先确认两件事,你的芯片37脚对应的电阻R4用的是不是530欧母?然后芯片11脚下拉电阻不焊接,最好上拉3.3V,这些是不是对的?最后芯片35脚36脚对应的电压是多少?

R4用的510欧姆
11脚上拉了3.3V
35脚电压是1.78V
36脚1.24V

#80 Re: 全志 SOC » 抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家 » 2020-12-24 14:00:56

saub 说:
zhang235hai 说:
saub 说:

只需要修改HSYNC和VSYNC信号极性就可以了,其余的不需要改动

具体怎么修改可以说一下吗?
我参照你的板子自己弄了一个
但是没有成功

提示什么?要不换个显示器试试?


换了显示器也不行
你能寄一个你的给我试试吗?
你发顺丰到付给我
我用了之后再还给你
我的QQ 1142726307

#81 Re: 全志 SOC » 抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家 » 2020-12-24 09:01:44

saub 说:
smartcar 说:

不要改RGB的时钟相位等参数吗?

只需要修改HSYNC和VSYNC信号极性就可以了,其余的不需要改动

具体怎么修改可以说一下吗?
我参照你的板子自己弄了一个
但是没有成功

#82 Re: 全志 SOC » 抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家 » 2020-12-09 16:37:49

saub 说:

抽空画了一个RGB40PIN接口转VGA接口模块的板子,再也不用到处找40pin接口的液晶屏啦,直接拿电脑显示器调试,PCB工程分享给大家RGB666转VGA.rar

期待你的样品

#83 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-11-25 10:39:43

使用OTG线接入鼠标键盘没有任何反应
不会提示已经接入USB设备
在QT中也不能使用鼠标和键盘
是没有驱动吗?

#84 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-11-24 15:05:53

zhang235hai 说:

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,
然后自动执行了一些程序以后,
可以通过SPI NAND启动了
但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

U-Boot SPL 2020.07 (Oct 20 2020 - 08:39:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
SPI-NAND: GigaDevice GD5F1GQ4UAxxG
SPI-NAND: U-Boot address: 53248


U-Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

已经搞定了
需要修改设备树

&spi0 {
	status = "okay";

	spi-nor@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "winbond,w25q128", "jedec,spi-nor";
		reg = <0>;
		spi-max-frequency = <50000000>;
		status = "disabled";

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x70000>;
				read-only;
			};

			partition@1 {
				label = "dtb";
				reg = <0x70000 0x10000>;
				read-only;
			};

			partition@2 {
				label = "kernel";
				reg = <0x80000 0x580000>;
				read-only;
			};

			partition@3 {
				label = "rom";
				reg = <0x600000 0x700000>;
				read-only;
			};

			partition@4 {
				label = "overlay";
				reg = <0xd00000 0x300000>;
			};
		};
	};

	spi-nand@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		compatible = "spi-nand";
		reg = <0>;
		spi-max-frequency = <50000000>;
		//status = "disabled";

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				label = "u-boot";
				reg = <0x000000 0x80000>;
				read-only;
			};

			partition@1 {
				label = "dtb";
				reg = <0x80000 0x20000>;
				read-only;
			};

			partition@2 {
				label = "kernel";
				reg = <0x100000 0x700000>;
				read-only;
			};

			partition@3 {
				label = "rom";
				reg = <0x800000 0x4000000>;
				read-only;
			};

			partition@4 {
				label = "overlay";
				reg = <0x4800000 0x3000000>;
			};
		};
	};
};

#85 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-11-24 15:03:49

zhang235hai 说:

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,
然后自动执行了一些程序以后,
可以通过SPI NAND启动了
但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

U-Boot SPL 2020.07 (Oct 20 2020 - 08:39:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
SPI-NAND: GigaDevice GD5F1GQ4UAxxG
SPI-NAND: U-Boot address: 53248


已经搞定了
需要把设备树中的spi-nor注释掉
spi-nand注释掉status = "disabled"
重新编译就可以了

U-Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

#86 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-11-23 11:42:23

zhang235hai 说:

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,
然后自动执行了一些程序以后,
可以通过SPI NAND启动了
但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

U-Boot SPL 2020.07 (Oct 20 2020 - 08:39:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
SPI-NAND: GigaDevice GD5F1GQ4UAxxG
SPI-NAND: U-Boot address: 53248


U-Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

顶一下 希望有人回复

#87 Re: 全志 SOC » 使用[Aodzip]的buildroot资源为tiny-200s-r3构建linux运行环境 » 2020-11-23 11:41:35

zhang235hai 说:

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,然后自动执行了一些程序以后,可以通过SPI NAND启动了但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

顶一下

#88 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-11-20 13:39:35

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,
然后自动执行了一些程序以后,
可以通过SPI NAND启动了
但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

U-Boot SPL 2020.07 (Oct 20 2020 - 08:39:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from MMC2
Card did not respond to voltage select!
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI
SPI-NAND: GigaDevice GD5F1GQ4UAxxG
SPI-NAND: U-Boot address: 53248


U-Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

#89 Re: 全志 SOC » 使用[Aodzip]的buildroot资源为tiny-200s-r3构建linux运行环境 » 2020-11-20 13:37:22

把sysimage-flasher.img 通过Win32DiskImager烧录到SD卡,然后自动执行了一些程序以后,可以通过SPI NAND启动了但是卡启动内核之后卡住了
停留在 Waiting for root device /dev/mtdblock3...
我的启动信息如下

Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
Card did not respond to voltage select!
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nand
=========================
DFU waiting on SPI-NAND...
Booting from SPI-NAND...
Reading 16384 byte(s) (8 page(s)) at offset 0x00080000
Reading 7340032 byte(s) (3584 page(s)) at offset 0x00100000
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mtdblock3 overlayfsdev=/dev/mtdblock4
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000049] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000139] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000879] Console: colour dummy device 80x30
[    0.000979] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070258] pid_max: default: 32768 minimum: 301
[    0.070790] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070837] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072774] CPU: Testing write buffer coherency: ok
[    0.074762] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076007] devtmpfs: initialized
[    0.087969] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088031] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092229] pinctrl core: initialized pinctrl subsystem
[    0.094911] NET: Registered protocol family 16
[    0.098363] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100709] cpuidle: using governor menu
[    0.144803] SCSI subsystem initialized
[    0.145167] usbcore: registered new interface driver usbfs
[    0.145366] usbcore: registered new interface driver hub
[    0.145571] usbcore: registered new device driver usb
[    0.146069] mc: Linux media interface: v0.10
[    0.146219] videodev: Linux video capture interface: v2.00
[    0.146342] pps_core: LinuxPPS API ver. 1 registered
[    0.146363] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146437] PTP clock support registered
[    0.147510] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148518] Advanced Linux Sound Architecture Driver Initialized.
[    0.151077] clocksource: Switched to clocksource timer
[    0.182351] thermal_sys: Registered thermal governor 'step_wise'
[    0.183097] NET: Registered protocol family 2
[    0.184647] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184730] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184788] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184838] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185153] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185217] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185740] NET: Registered protocol family 1
[    0.188436] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190284] Initialise system trusted keyrings
[    0.190895] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212783] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.213401] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.325718] Key type asymmetric registered
[    0.325757] Asymmetric key parser 'x509' registered
[    0.325941] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.325970] io scheduler mq-deadline registered
[    0.325988] io scheduler kyber registered
[    0.341380] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.365582] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.371672] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.373002] printk: console [ttyS0] disabled
[    0.393315] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.824301] printk: console [ttyS0] enabled
[    0.834206] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.855552] panel-simple panel: panel supply power not found, using dummy regulator
[    0.865260] SCSI Media Changer driver v0.25
[    0.871003] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.883897] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.891512] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.898040] ehci-platform: EHCI generic platform driver
[    0.903768] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.909999] ohci-platform: OHCI generic platform driver
[    0.915866] usbcore: registered new interface driver usb-storage
[    0.922989] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.936634] i2c /dev entries driver
[    0.940758] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.954561] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.965571] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.973431] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.983508] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.021538] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.030929] usbcore: registered new interface driver usbhid
[    1.036630] usbhid: USB HID core driver
[    1.040803] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.048101] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.059867] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.073800] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.090108] NET: Registered protocol family 17
[    1.094787] Key type dns_resolver registered
[    1.100245] Loading compiled-in X.509 certificates
[    1.118879] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.127930] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.137556] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.146144] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.153926] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.160528] [drm] No driver support for vblank timestamp query.
[    1.168203] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.177235] [drm] kms: can't enable cloning when we probably wanted to.
[    1.249115] Console: switching to colour frame buffer device 100x30
[    1.287963] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.296580] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.314446] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.321311] ALSA device list:
[    1.324302]   #0: F1C100s Audio Codec
[    1.328567] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.337298] cfg80211: failed to load regulatory.db
[    1.342879] Waiting for root device /dev/mtdblock3...
[    2.218996] random: fast init done
[   31.841151] vcc3v0: disabling
[   31.844152] vcc3v3: disabling
[   31.847120] vcc5v0: disabling
[  182.481242] random: crng init done

#90 Re: 全志 SOC » 使用[Aodzip]的buildroot资源为tiny-200s-r3构建linux运行环境 » 2020-11-20 10:28:26

./fel-uboot.sh && ./dfu-nand-all.sh执行完之后
一直提示
Waiting for DFU Device................
我的显示屏如下
_20201120102718.jpg
这是怎么回事呢?

#91 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 16:49:47

明月照我沟渠 说:

ns2009指令与tsc2003/tsc2007兼容, 很可能就是逆(po)向(jie)设计的。

执行如下命令还是出现错误
# ts_test
ts_open: No such file or directory
# ts_calibrate
ts_setup: No such file or directory

#92 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 16:03:53

明月照我沟渠 说:
zhang235hai 说:
明月照我沟渠 说:

日志有没有出现 tsc2007 设备? 是不是 /dev/input/event1 ?

是的,启动日志没有tsc2007,在/dev/下也没有input

检查 "board/allwinner/suniv-f1c100s/linux.defconfig"

有没有勾选

CONFIG_TOUCHSCREEN_TSC2007

这个文件是否存在:
output/target/lib/modules/5.4.66/kernel/drivers/input/touchscreen/tsc2007.ko

再执行 ./rebuild-kernel.sh & make

检查board/allwinner/suniv-f1c100s/linux.defconfig
CONFIG_TOUCHSCREEN_TSC2007=m

存在output/target/lib/modules/5.4.66/kernel/drivers/input/touchscreen/tsc2007.ko

tiny200上的是NS2009触摸芯片,是不是应该检查ns2009驱动呢?

#93 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 14:50:31

明月照我沟渠 说:

日志有没有出现 tsc2007 设备? 是不是 /dev/input/event1 ?

是的,启动日志没有tsc2007,在/dev/下也没有input

#94 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 14:27:02

路人甲 说:

把这个文件 board/widora/mangopi/r3/devicetree/linux/devicetree.dts

        rtp@48 {
                compatible = "ti,tsc2007";
                reg = <0x48>;
                interrupt-parent = <&pio>;
                interrupts = <4 12 IRQ_TYPE_EDGE_FALLING>;
                gpios = <&pio 4 12 GPIO_ACTIVE_LOW>;
                pendown-gpio = <&pio 4 12 GPIO_ACTIVE_LOW>;
                ti,x-plate-ohms = <660>;
                wakeup-source;
                status = "disabled";
        };

改为

                status = "okay";

就可以了。

按照您的提示重新编译后
i2cdetect -l
i2c-0   i2c             mv64xxx_i2c adapter                     I2C adapter

export TSLIB_TSDEVICE=/dev/input/event1
# ts_test
ts_open: No such file or directory
# ts_calibrate
ts_setup: No such file or directory
还是同样的问题

#95 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 13:50:33

九重天 说:
zhang235hai 说:

勾选QT选项以及tslib
运行tx_test提示ts_open: No such file or directory
在/dev/文件下也找不到input文件夹
运行make menuconfig 找不到device driver这个选项

插了触摸屏没有?
log有没有啥i2c错误:

[    4.562931] Goodix-TS 0-005d: i2c test failed attempt 1: -6
[    4.602516] Goodix-TS 0-005d: i2c test failed attempt 2: -6


没有找到gt911就不能生成设备。

接了触摸屏,触摸芯片是NS2009
一下是启动信息

U-Boot SPL 2020.07 (Oct 20 2020 - 08:39:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2020.07 (Oct 20 2020 - 08:39:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
MMC:   mmc@1c0f000: 0, mmc@1c10000: 1
Setting up a 480x272 lcd console (overscan 0x0)
In:    serial
Out:   vga
Err:   vga
Allwinner mUSB OTG (Peripheral)
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
Card did not respond to voltage select!
unrecognized JEDEC id bytes: ff, c8, f1
Failed to initialize SPI flash at 0:0 (error -2)
List of MTD devices:
* spi-nand0
  - device: spi-nand@1
  - parent: spi@1c05000
  - driver: spi_nand
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 31 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=========================
Boot Device: mmc0
Boot Slot 0: mmc0
Boot Slot 1: spi-nand
=========================
switch to partitions #0, OK
mmc0 is current device
Booting from MMC0...
4317520 bytes read in 736 ms (5.6 MiB/s)
15533 bytes read in 6 ms (2.5 MiB/s)
## Flattened Device Tree blob at 80700000
   Booting using the fdt blob at 0x80700000
   Loading Device Tree to 816f9000, end 816ffcac ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.66 (zhang@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4)) #1 Tue Oct 20 08:41:05 CST 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x83000000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk rootwait consoleblank=0 net.ifnames=0 biosdevname=0 root=/dev/mmcblk0p3
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 38736K/65536K available (6144K kernel code, 248K rwdata, 1680K rodata, 1024K init, 225K bss, 10416K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x254/0x444 with crng_init=0
[    0.000045] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000130] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000882] Console: colour dummy device 80x30
[    0.000985] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070253] pid_max: default: 32768 minimum: 301
[    0.070774] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070826] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072770] CPU: Testing write buffer coherency: ok
[    0.074844] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076136] devtmpfs: initialized
[    0.087898] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.087960] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092239] pinctrl core: initialized pinctrl subsystem
[    0.094862] NET: Registered protocol family 16
[    0.098477] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100782] cpuidle: using governor menu
[    0.144671] SCSI subsystem initialized
[    0.145075] usbcore: registered new interface driver usbfs
[    0.145268] usbcore: registered new interface driver hub
[    0.145473] usbcore: registered new device driver usb
[    0.145971] mc: Linux media interface: v0.10
[    0.146124] videodev: Linux video capture interface: v2.00
[    0.146250] pps_core: LinuxPPS API ver. 1 registered
[    0.146272] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146344] PTP clock support registered
[    0.147343] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148320] Advanced Linux Sound Architecture Driver Initialized.
[    0.150820] clocksource: Switched to clocksource timer
[    0.181939] thermal_sys: Registered thermal governor 'step_wise'
[    0.182709] NET: Registered protocol family 2
[    0.184296] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.184383] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184441] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.184492] TCP: Hash tables configured (established 1024 bind 1024)
[    0.184816] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.184882] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185386] NET: Registered protocol family 1
[    0.187932] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.189769] Initialise system trusted keyrings
[    0.190402] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.212290] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.212912] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.322968] Key type asymmetric registered
[    0.323006] Asymmetric key parser 'x509' registered
[    0.323179] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.323208] io scheduler mq-deadline registered
[    0.323224] io scheduler kyber registered
[    0.338541] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.362827] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.368789] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.370109] printk: console [ttyS0] disabled
[    0.390438] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 28, base_baud = 6250000) is a 16550A
[    0.819022] printk: console [ttyS0] enabled
[    0.828800] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.850082] panel-simple panel: panel supply power not found, using dummy regulator
[    0.859804] SCSI Media Changer driver v0.25
[    0.865707] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.878583] spi-nor spi0.0: unrecognized JEDEC id bytes: 00 c8 f1 c8 f1 c8
[    0.886190] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.892825] ehci-platform: EHCI generic platform driver
[    0.898471] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.904786] ohci-platform: OHCI generic platform driver
[    0.910575] usbcore: registered new interface driver usb-storage
[    0.917712] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.931513] i2c /dev entries driver
[    0.935636] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.949401] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.960407] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    0.968277] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.978339] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.016476] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.025940] usbcore: registered new interface driver usbhid
[    1.031631] usbhid: USB HID core driver
[    1.035800] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.043104] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.054849] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.068721] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.085110] NET: Registered protocol family 17
[    1.089661] Key type dns_resolver registered
[    1.095183] Loading compiled-in X.509 certificates
[    1.113789] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc073b3b8)
[    1.122850] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc073abf8)
[    1.132481] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0739798)
[    1.141076] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc073a4b8)
[    1.148738] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.155422] [drm] No driver support for vblank timestamp query.
[    1.163097] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.172118] [drm] kms: can't enable cloning when we probably wanted to.
[    1.217394] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.220039] mmc0: new high speed SD card at address b368
[    1.222496] mmcblk0: mmc0:b368 NCard 961 MiB
[    1.245551] Console: switching to colour frame buffer device 100x30
[    1.248764]  mmcblk0: p1 p2 p3
[    1.303557] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.312038] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.329726] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.336606] ALSA device list:
[    1.339660]   #0: F1C100s Audio Codec
[    1.343954] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.352682] cfg80211: failed to load regulatory.db
[    1.368820] EXT4-fs (mmcblk0p3): INFO: recovery required on readonly filesystem
[    1.376308] EXT4-fs (mmcblk0p3): write access will be enabled during recovery
[    1.556059] random: fast init done
[    1.784153] EXT4-fs (mmcblk0p3): recovery complete
[    1.800963] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.809252] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    1.817651] devtmpfs: mounted
[    1.826541] Freeing unused kernel memory: 1024K
[    1.831286] Run /sbin/init as init process
[    2.101598] EXT4-fs (mmcblk0p3): re-mounted. Opts: (null)
Mounting OverlayFS: Skip
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [    2.727095] udevd[86]: starting version 3.2.9
[    2.762738] random: udevd: uninitialized urandom read (16 bytes read)
[    2.773663] random: udevd: uninitialized urandom read (16 bytes read)
[    2.780510] random: udevd: uninitialized urandom read (16 bytes read)
[    2.873732] udevd[87]: starting eudev-3.2.9
[    4.528736] Goodix-TS 0-005d: 0-005d supply AVDD28 not found, using dummy regulator
[    4.536843] Goodix-TS 0-005d: 0-005d supply VDDIO not found, using dummy regulator
[    4.552258] ov2640 0-0030: Product ID error fa:fa
[    4.761381] Goodix-TS 0-005d: i2c test failed attempt 1: -6
[    4.801397] Goodix-TS 0-005d: i2c test failed attempt 2: -6
[    4.841090] Goodix-TS 0-005d: I2C communication failure: -6
done
Initializing random number generator: OK
Saving random seed: [    5.470369] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
Starting uMTPrd: [    5.918448] file system registered
[    6.070514] read descriptors
[    6.073827] read strings
OK

Welcome to Widora MangoPi R3
mangopi-r3 login: [   31.840927] vcc3v0: disabling
[   31.843937] vcc5v0: disabling

#96 Re: 全志 SOC » buildroot-tiny200 (F1C100/200s) 开发包近期更新内容 * 已支持DVP摄像头 *,支持SPI NAND » 2020-10-21 11:11:14

勾选QT选项以及tslib
运行tx_test提示ts_open: No such file or directory
在/dev/文件下也找不到input文件夹
运行make menuconfig 找不到device driver这个选项

#98 Re: 全志 SOC » 怎么烧录Tiny200 r3的SPI NAND » 2020-10-19 11:31:49

vip888888 说:
zhang235hai 说:
openepo 说:

我在 tiny200 R3 上实验的结果如下:
1,编译 aodzip 大大 的 https://github.com/aodzip/buildroot-tiny200
2,同时按住 boot / rst, 然后先放开rst, 再放开 boot 键。 然后运行 fel-uboot.sh,注意sunxi-fel的路径和版本, 我是参照脚本手动输入命令的。 正常没有出错提示,tiny200 R3 会内存运行进入 u-boot 模式
3,进入 u-boot 之后, 在主机端运行 dfu-nand-all.sh, 此时会提示等待 dfu 设备
4,在 u-boot 运行 run dfu_boot,此时会开始 dfu 下载。速度还是挺慢的, 我还没刷完,不知道最终结果如何,看上去应该没问题。


在第2步运行fel-uboot.sh后出现ERROR: Allwinner USB FEL device not found!

我还尝试过用TF卡启动到U-BOOT,在主机执行dfu-nand-all.sh,再在让开发板执行run dfu_boot,但是没有任何反应

感觉你这提示是usb fel设备没有找到呀?是不是设备没有进入fel模式?正常情况下好像如果进入fel模式windows下的话会有一个设备出来,虚拟机下应该也会有个usb设备之类的吧。

我的虚拟机已经出现了如下的图标
none_20201019-1130.png
同时按住 boot / rst, 然后先放开rst, 再放开 boot 键。 然后运行 fel-uboot.sh还是出现ERROR: Allwinner USB FEL device not found!

#99 Re: 全志 SOC » 怎么烧录Tiny200 r3的SPI NAND » 2020-10-16 15:45:26

openepo 说:

我在 tiny200 R3 上实验的结果如下:
1,编译 aodzip 大大 的 https://github.com/aodzip/buildroot-tiny200
2,同时按住 boot / rst, 然后先放开rst, 再放开 boot 键。 然后运行 fel-uboot.sh,注意sunxi-fel的路径和版本, 我是参照脚本手动输入命令的。 正常没有出错提示,tiny200 R3 会内存运行进入 u-boot 模式
3,进入 u-boot 之后, 在主机端运行 dfu-nand-all.sh, 此时会提示等待 dfu 设备
4,在 u-boot 运行 run dfu_boot,此时会开始 dfu 下载。速度还是挺慢的, 我还没刷完,不知道最终结果如何,看上去应该没问题。


在第2步运行fel-uboot.sh后出现ERROR: Allwinner USB FEL device not found!

我还尝试过用TF卡启动到U-BOOT,在主机执行dfu-nand-all.sh,再在让开发板执行run dfu_boot,但是没有任何反应

#100 Re: 全志 SOC » 怎么烧录Tiny200 r3的SPI NAND » 2020-10-16 11:33:07

孤星泪 说:
zhang235hai 说:
拉轰的脚踏车 说:

启动uboot之后,电脑会出现一个dfu设备。

执行 buildroot目录下面的命令 : ./dfu-nand-all.sh  可以烧录

按住BOOT按键上电进入uboot吗?

要看boot键怎么接的,如果没有插了可引导的TF卡,那么按boot进入fel,可以usb下载程序

我有一个可以使用的TF卡,能顺利进入系统

#101 全志 SOC » 歪朵拉可以出一份Tiny200 R3的快速上手指南吗? » 2020-10-16 09:18:52

zhang235hai
回复: 4

歪朵拉可以出一份Tiny200 R3的快速上手指南吗?

#103 Re: 全志 SOC » 怎么烧录Tiny200 r3的SPI NAND » 2020-10-15 14:02:53

拉轰的脚踏车 说:

启动uboot之后,电脑会出现一个dfu设备。

执行 buildroot目录下面的命令 : ./dfu-nand-all.sh  可以烧录

按住BOOT按键上电进入uboot吗?

#104 全志 SOC » 怎么烧录Tiny200 r3的SPI NAND » 2020-10-15 13:40:23

zhang235hai
回复: 13

按照论坛的帖子我已经成功编译得到如下的文件
none_20201015-1336.png
使用TF卡我能成功启动系统
我买的是SPI NAND的版本
怎么使用板子上自带的nand芯片呢?

#105 Re: 全志 SOC » Widora TINY200 R2 体验版开源开发包,修复了大部分F1C100s/F1C200s的遗留问题 » 2020-08-21 08:42:20

mango 说:

可以买了。NOR版已上架: https://item.taobao.com/item.htm?id=587925184119

SPI NAND的版本什么时候有呢?是不是可以自己更换?

#106 Re: 全志 SOC » Widora TINY200 R2 体验版开源开发包,修复了大部分F1C100s/F1C200s的遗留问题 » 2020-08-20 16:49:20

aodzip 说:

是严格按照GitHub上的说明进行的么

已经搞定了
我解压的姿势不对
编译已经通过了
淘宝上还不能买TINY200 r3版本的
知道什么时候能买吗?

#107 Re: 全志 SOC » Widora TINY200 R2 体验版开源开发包,修复了大部分F1C100s/F1C200s的遗留问题 » 2020-08-20 14:46:36

aodzip 说:

https://github.com/aodzip/buildroot-tiny200
项目已经移动到这里继续开发,今天刚推送了128M全量镜像的烧录方法

执行make后报如下的错误
ERROR: No hash found for gcc-8.4.0.tar.xz
package/pkg-generic.mk:167: recipe for target '/home/zhang/buildroot-tiny200-master/output/build/host-gcc-initial-8.4.0/.stamp_downloaded' failed
make: *** [/home/zhang/buildroot-tiny200-master/output/build/host-gcc-initial-8.4.0/.stamp_downloaded] Error 1

#108 Re: 全志 SOC » V3S 从 spi Nand 启动,有没有讲的比较清楚的 » 2020-07-16 11:02:06

我思故我在 说:

嗯,这个不错,清晰明了.

能加我QQ 1142726307  有问题请教你 实在是想不到办法了

#109 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 11:28:11

哇酷小二 说:

对比一下晕哥那个固件的log,你可能有个 kernel 的 option没有勾选。

我使用自己的rootfs.cpio.gz.uImage和u-boot-sunxi-with-spl.bin
使用晕哥的zImage和sun8i-v3s-licheepi-zero-dock.dtb.PF6
结果还是同样的卡在
[    1.270106] Waiting for root device /dev/ram0...

#110 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 10:41:39

哇酷小二 说:

如果没记错,应该是bootargs root 改为 /dev/ram0

重新编译了uboot得到了新的u-boot-sunxi-with-spl.bin
设置了bootargs
最后还是卡在了
[    1.417961] Waiting for root device /dev/ram0..

#111 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 09:42:25

哇酷小二 说:

坑定超大了嘛,这个文件要全部下载到DRAM,还要解压缩到指定地址。用个最精简的rootfs试一试。

是编译了一个17.7M大小的rootfs.cpio.gz.uImage
然后用自己编译的zImage ,sun8i-v3s-licheepi-zero-dock.dtb, u-boot-sunxi-with-spl.bin ,rootfs.cpio.gz.uImage这四个文件下载到DRAM中
系统启动起来了但是最后停留在[    1.427995] Waiting for root device /dev/mmcblk0p2...
整个启动流程如下

U-Boot SPL 2017.01-rc2 (Apr 21 2020 - 14:29:13)
DRAM: 64 MiB
Trying to boot from FEL

U-Boot 2017.01-rc2 (Apr 21 2020 - 14:29:13 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
Card did not respond to voltage select!
*** Warning - MMC init 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 (Apr 21 2020 - 14:29:13 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
Card did not respond to voltage select!
*** Warning - MMC init 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
Card did not respond to voltage select!
Card did not respond to voltage select!
** Bad device mmc 0 **
Card did not respond to voltage select!
Card did not respond to voltage select!
** Bad device mmc 0 **
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #2 SMP Fri Apr 17 11:45:48 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10456K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000180] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000412] Console: colour dummy device 80x30
[    0.000451] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000468] pid_max: default: 32768 minimum: 301
[    0.000590] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000606] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001208] CPU: Testing write buffer coherency: ok
[    0.001594] /cpus/cpu@0 missing clock-frequency property
[    0.001618] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002061] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002240] Hierarchical SRCU implementation.
[    0.002728] smp: Bringing up secondary CPUs ...
[    0.002744] smp: Brought up 1 node, 1 CPU
[    0.002754] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002761] CPU: All CPU(s) started in SVC mode.
[    0.003526] devtmpfs: initialized
[    0.006685] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006988] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007017] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007180] pinctrl core: initialized pinctrl subsystem
[    0.008040] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008189] NET: Registered protocol family 16
[    0.008653] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009767] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009785] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023607] SCSI subsystem initialized
[    0.023891] usbcore: registered new interface driver usbfs
[    0.023979] usbcore: registered new interface driver hub
[    0.024104] usbcore: registered new device driver usb
[    0.024357] pps_core: LinuxPPS API ver. 1 registered
[    0.024368] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024392] PTP clock support registered
[    0.024608] Advanced Linux Sound Architecture Driver Initialized.
[    0.026447] clocksource: Switched to clocksource arch_sys_counter
[    0.037529] NET: Registered protocol family 2
[    0.038107] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038143] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038166] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038298] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038348] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038573] NET: Registered protocol family 1
[    0.039190] RPC: Registered named UNIX socket transport module.
[    0.039213] RPC: Registered udp transport module.
[    0.039220] RPC: Registered tcp transport module.
[    0.039226] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041285] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050357] NFS: Registering the id_resolver key type
[    0.050414] Key type id_resolver registered
[    0.050423] Key type id_legacy registered
[    0.051412] random: fast init done
[    0.054162] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054185] io scheduler noop registered
[    0.054193] io scheduler deadline registered
[    0.054431] io scheduler cfq registered (default)
[    0.054443] io scheduler mq-deadline registered
[    0.054450] io scheduler kyber registered
[    0.058893] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129846] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133203] console [ttyS0] disabled
[    0.153482] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.734249] console [ttyS0] enabled
[    0.759327] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.789876] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.802458] libphy: Fixed MDIO Bus: probed
[    0.807193] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.812987] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.818773] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.824767] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.834355] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.840070] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.847310] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.852965] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.860191] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.865151] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.872123] libphy: stmmac: probed
[    0.877500] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.884038] ehci-platform: EHCI generic platform driver
[    0.889663] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.895299] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.903287] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.936468] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.943671] hub 1-0:1.0: USB hub found
[    0.947620] hub 1-0:1.0: 1 port detected
[    0.952128] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.958435] ohci-platform: OHCI generic platform driver
[    0.963982] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.970716] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.978698] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.051561] hub 2-0:1.0: USB hub found
[    1.055410] hub 2-0:1.0: 1 port detected
[    1.061469] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.071053] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.080084] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.086989] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.091537] i2c /dev entries driver
[    1.096754] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.106192] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.166665] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.226480] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.232945] usbcore: registered new interface driver usbhid
[    1.238601] usbhid: USB HID core driver
[    1.244050] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.252097] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.259608] NET: Registered protocol family 17
[    1.264172] Key type dns_resolver registered
[    1.268688] Registering SWP/SWPB emulation handler
[    1.281143] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.291860] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.308147] Console: switching to colour frame buffer device 100x30
[    1.320551] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.329116] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.340502] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.346271] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.355448] hub 3-0:1.0: USB hub found
[    1.359434] hub 3-0:1.0: 1 port detected
[    1.364537] using random self ethernet address
[    1.369104] using random host ethernet address
[    1.374632] usb0: HOST MAC 9e:6a:64:4a:2a:0e
[    1.379061] usb0: MAC b2:17:25:e7:33:4e
[    1.382945] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.390462] g_cdc gadget: g_cdc ready
[    1.396894] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.406572] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:13:10 UTC (790)
[    1.414923] vcc3v3: disabling
[    1.417962] vcc5v0: disabling
[    1.420931] ALSA device list:
[    1.423895]   #0: V3s Audio Codec
[    1.427995] Waiting for root device /dev/mmcblk0p2...
[  222.947289] random: crng init done

#112 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 08:49:37

哇酷小二 说:

只替换这一个文件吗?这个文件有多大?

只替换这一个文件
这个文件有40.8M

#113 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 08:32:13

哇酷小二 说:

可能是这样的: mkimage -A arm -T ramdisk -C none -n uInitrd -d image.cpio.gz /var/www/html/uimage.cpio.gz.uImage

用你的方式可以生成一个uImage
但是下载到ram之后
系统还是起不来
一直停留在
U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL

#114 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-29 08:28:09

微凉VeiLiang 说:

晕哥的脚本,我有做一个软件,支持nand spl boot下载和BootLoader下载。下载好BootLoader了之后就可以用usb 下载了

你好
为已经实现了用USB下载
现在遇到的问题是把文件下载到SPI NAND之后启动没有任何反应
我的本意是想用SPI NAND替代TF卡

#115 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 17:22:08

我思故我在 说:

那个只是文件名而已, 估计你手动改就行了

我尝试了
能下载
下载完不能像正常晕哥给的那些文件能进去系统
界面停留在
U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL
然后就不动了

#116 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 17:09:55

哇酷小二 说:

可能是第三个,cpio那个。

选择了之后之生成了rootfs.cpio这个文件
还是没有uImage

#117 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 16:43:01

哇酷小二 说:

记得 buildroot 的 menuconfig 有选项生成, 你试一试.

_20200628164128.png
在这个里面没有看到能生成uImage结尾的根文件系统文件

#118 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 15:33:40

哇酷小二 说:

是怎么不能起作用的?没有进入USB FEL模式?还是运行失败?

我放弃用SPI NAND了
买了几片SD NAND回来当TF卡用

_20200628153135.png
我想知道rootfs.cpio.gz.uImage这个文件是从哪里来的
是buildroot编译生成的吗?
我之前用buildroot只生成了rootfs.tar

#119 Re: 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 14:04:11

哇酷小二 说:

是怎么不行的?串口没有输出?

是的   串口没有任何输出
再次执行Run_V3s_LicheePi0.bat也不起作用

#120 全志 SOC » 参照晕哥的贴子已经成功把SPI NAND识别为U盘,通过Win32DiskImager烧录后不能启动系统 » 2020-06-28 11:37:20

zhang235hai
回复: 25

我参照 https://whycan.cn/t_2461.html 这个帖子已经成功把SPI NAND识别为U盘
通过Win32DiskImager烧录后不能启动系统

烧录过 openwrt-snapshot-r11644-205ff32af0-sunxi-cortexa7v3sspinand-sun8i-v3s-dolphinpi-ubifs-ubispinand_img

按照TF卡的模式烧录过 uboot zImage dtb rootfs.tar都不行

我接下来怎么做呢?

#121 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2020-06-28 08:41:53

rootfs.cpio.gz.uImage 这个文件是从哪里来的呢?
是buildroot的时候要勾选什么选项吗?
我从buildroot只得到了rootfs.rar

#122 Re: 全志 SOC » V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写 » 2020-06-24 13:57:19

hzxczfw 说:

usb启动成功,焊在板上的SD芯片,始终无法挂载成为windows下的U盘。我的fel启动文件有问题?还是有哪个启动文件可以直接用的?
@晕哥 求助!

我也遇到你这个问题了 
请问你解决了吗?

#123 Re: 全志 SOC » 最新的 Linux 驱动已经支持市场上几乎所有的 spi nand 了, 有没有哪位试一试? » 2020-06-24 11:28:37

晕哥 说:

我没有烧录, 通过USB 启动的 Linux

我参照以上的教程
已经成功运行linux
但是nand并没有被电脑识别为U盘
是什么原因呢?
[    0.915792] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.921122] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
上面这两行代码应该是成功识别了nand了吧

U-Boot SPL 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400)
DRAM: 64 MiB
Trying to boot from FEL


U-Boot 2019.04-00743-g7d99406 (Apr 26 2019 - 02:24:09 -0400) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    2099576 Bytes = 2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Ramdisk to 42bff000, end 42dff978 ... OK
   Loading Device Tree to 42bf8000, end 42bfe16c ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.1.0-rc4-00035-g0b5cbfb-dirty (root@test4) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02)) #51 SMP Mon May 6 03:51:59 EDT 2019
[    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 with Dock
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 32 MiB
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] random: get_random_bytes called from start_kernel+0x9c/0x41c with crng_init=0
[    0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s34572 r8192 d22772 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc earlyprintk rw
[    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: 51776K/65536K available (7168K kernel code, 467K rwdata, 1832K rodata, 1024K init, 261K bss, 13760K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU event tracing is enabled.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    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] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008002] Switching to timer-based delay loop, resolution 41ns
[    0.014207] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023631] Console: colour dummy device 80x30
[    0.028116] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038481] pid_max: default: 32768 minimum: 301
[    0.043244] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049881] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057534] *** VALIDATE proc ***
[    0.061078] *** VALIDATE cgroup1 ***
[    0.064650] *** VALIDATE cgroup2 ***
[    0.068230] CPU: Testing write buffer coherency: ok
[    0.073617] /cpus/cpu@0 missing clock-frequency property
[    0.078940] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.085431] Setting up static identity map for 0x40100000 - 0x40100060
[    0.092164] rcu: Hierarchical SRCU implementation.
[    0.097794] smp: Bringing up secondary CPUs ...
[    0.102331] smp: Brought up 1 node, 1 CPU
[    0.106337] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.112566] CPU: All CPU(s) started in HYP mode.
[    0.117175] CPU: Virtualization extensions available.
[    0.123326] devtmpfs: initialized
[    0.130223] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.138256] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.148137] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.154460] pinctrl core: initialized pinctrl subsystem
[    0.160968] NET: Registered protocol family 16
[    0.165933] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.174077] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.182078] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.204304] SCSI subsystem initialized
[    0.208890] usbcore: registered new interface driver usbfs
[    0.214433] usbcore: registered new interface driver hub
[    0.219949] usbcore: registered new device driver usb
[    0.225241] media: Linux media interface: v0.10
[    0.229847] videodev: Linux video capture interface: v2.00
[    0.235422] pps_core: LinuxPPS API ver. 1 registered
[    0.240404] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.249540] PTP clock support registered
[    0.253753] Advanced Linux Sound Architecture Driver Initialized.
[    0.261251] clocksource: Switched to clocksource arch_sys_counter
[    0.278771] NET: Registered protocol family 2
[    0.283873] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.291622] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.298590] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.304979] TCP: Hash tables configured (established 1024 bind 1024)
[    0.311488] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.317356] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.323895] NET: Registered protocol family 1
[    0.329256] RPC: Registered named UNIX socket transport module.
[    0.335293] RPC: Registered udp transport module.
[    0.339991] RPC: Registered tcp transport module.
[    0.344715] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.351597] Unpacking initramfs...
[    0.531456] Freeing initrd memory: 2052K
[    0.537255] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.551795] NFS: Registering the id_resolver key type
[    0.556881] Key type id_resolver registered
[    0.561057] Key type id_legacy registered
[    0.565190] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.651078] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.658642] io scheduler mq-deadline registered
[    0.663199] io scheduler kyber registered
[    0.668346] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[    0.678631] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.756284] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.765186] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[    0.776260] printk: console [ttyS0] disabled
[    0.800784] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.809820] printk: console [ttyS0] enabled
[    0.809820] printk: console [ttyS0] enabled
[    0.818197] printk: bootconsole [earlycon0] disabled
[    0.818197] printk: bootconsole [earlycon0] disabled
[    0.828770] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    0.860100] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.890796] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.904264] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.915792] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.921122] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.932162] libphy: Fixed MDIO Bus: probed
[    0.936279] CAN device driver interface
[    0.940786] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.946684] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.952921] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.960149] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.967431] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.972414] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.979193] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.984857] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.997862] libphy: stmmac: probed
[    1.001969] dwmac-sun8i 1c30000.ethernet: Cannot get mdio-mux node
[    1.008556] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.015164] ehci-platform: EHCI generic platform driver
[    1.020683] ehci-platform 1c1a000.usb: EHCI Host Controller
[    1.026381] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    1.034334] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    1.061283] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    1.068515] hub 1-0:1.0: USB hub found
[    1.072467] hub 1-0:1.0: 1 port detected
[    1.077088] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.083421] ohci-platform: OHCI generic platform driver
[    1.088967] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    1.095715] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    1.103697] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.176301] hub 2-0:1.0: USB hub found
[    1.180130] hub 2-0:1.0: 1 port detected
[    1.187177] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.196463] sun6i-rtc 1c20400.rtc: registered as rtc0
[    1.201639] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.206391] i2c /dev entries driver
[    1.212148] usbcore: registered new interface driver em28xx
[    1.217729] em28xx: Registered (Em28xx v4l2 Extension) extension
[    1.223809] em28xx: Registered (Em28xx Input Extension) extension
[    1.230938] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.239642] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.276153] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.283456] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[    1.320246] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[    1.328372] usbcore: registered new interface driver usbhid
[    1.334045] usbhid: USB HID core driver
[    1.339849] sun4i-codec 1c22c00.codec: ASoC: codec-analog@01c23000 not registered
[    1.347478] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.355008] NET: Registered protocol family 17
[    1.359488] can: controller area network core (rev 20170425 abi 9)
[    1.365900] NET: Registered protocol family 29
[    1.370349] can: raw protocol (rev 20170425)
[    1.374682] can: broadcast manager protocol (rev 20170425 t)
[    1.380345] can: netlink gateway (rev 20170425) max_hops=1
[    1.386197] Key type dns_resolver registered
[    1.390651] Registering SWP/SWPB emulation handler
[    1.403300] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.414847] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.420612] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.429772] hub 3-0:1.0: USB hub found
[    1.433841] hub 3-0:1.0: 1 port detected
[    1.441987] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.450675] gtp: GTP module loaded (pdp ctx size 64 bytes)
[    1.456373] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:03:03 UTC (183)
[    1.464761] vcc5v0: disabling
[    1.467737] ALSA device list:
[    1.470701]   #0: V3s Audio Codec
[    1.476191] Freeing unused kernel memory: 1024K
[    1.501404] Run /linuxrc as init process
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Starting mdev...
Initializing random number generator... [    3.008037] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
[    3.097311] Mass Storage Function, version: 2009/09/11
[    3.102655] LUN: removable file: (no medium)
[    3.107149] LUN: removable file: /dev/mtdblock0
[    3.111757] Number of LUNs=1
[    3.153427] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[    3.160404] g_mass_storage gadget: userspace failed to provide iSerialNumber
[    3.167579] g_mass_storage gadget: g_mass_storage ready

Welcome to Buildroot
buildroot login: [    8.177093] random: fast init done

Welcome to Buildroot
buildroot login: 
Welcome to Buildroot
buildroot login: 

#124 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 13:41:41

哇酷小二 说:

看下是不是应用程序还要配置 ttyS2 才能使能RTS/CTS

应用程序具体是指哪个部分呢?能说得详细一点吗?

#125 Re: 全志 SOC » 请教大家一个问题,全志linux主线uart驱动里面控制一个io脚实现rs485功能,应该如何修改? » 2020-06-19 11:43:06

哇酷小二 说:

#include <linux/gpio.h>

可以编译通过了,但是所有串口貌似不能正常工作了,终端输入都不行了

#126 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 11:42:35

zhang235hai 说:

好的   我先试试

增加了之后PB2引脚在打开关闭串口2的时候会出现高低电平的变化,但是进行数据发送的时候始终是低电平,发送不成功

#127 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 11:19:15

哇酷小二 说:

pins = "PB0", "PB1", "PB2", "PB3";

好的   我先试试

#128 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 10:23:44

哦豁哦豁 说:

对啊, 在上面把 CTS/RTS加到 pin ctrls 里面去先。

uart2_pins_a: uart2@0 {
        pins = "PB0", "PB1";
        function = "uart2";
};

&uart2 {
    pinctrl-0 = <&uart2_pins_a>;
    pinctrl-names = "default";
    status = "okay";
};

是这两个地方吗,我是想用uart2的RTS PB2引脚,具体怎么加呢?

#129 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 10:18:27

mark 说:

如果单纯使用485功能,不需要单独io控制发送方向,使用硬件自动切换功能电路就可以了, 操作485同操作串口一样,

需要注意发送接收时序,使用485,就是相当于串口单双工模式

如果不单独用一个io控制发送方向实现不了高速通讯,只能在比较低的波特率下工作,我现在卡在不知道改怎么配置这个io

#130 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 10:17:23

哇酷小二 说:

先改 sun8i-v3s.dtsi

                        uart0_pins_a: uart0@0 {
                                pins = "PB8", "PB9";
                                function = "uart0";
                        };

                        uart1_pins_a: uart1@0 {
                                pins = "PE21", "PE22";
                                function = "uart1";
                        };

                        uart2_pins_a: uart2@0 {
                                pins = "PB0", "PB1";
                                function = "uart2";
                        };

先要改引脚配置, 看能否起作用.

如果不行, 还得改dts:

&uart2 {
    pinctrl-0 = <&uart2_pins_a>;
    pinctrl-names = "default";
    status = "okay";
};

再不行只能继续改应用程序。

目前我三个串口都可以正常工作,只是我需要用用其中的一个作为485通讯,波特率要比较高,所以必须配一个io控制发送方向才能实现高速,我目前不知道改怎么配置这个io

#131 Re: 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 09:57:15

有梦的地方 说:

dts

sun8i-v3s.dtsi:
sun8i-v3s-licheepi-zero.dts:
是这两个文件吗?
能说得具体一点吗?
谢谢

#132 全志 SOC » V3S怎么配置UART1/UART2的RTS引脚来实现485功能 » 2020-06-19 09:54:13

zhang235hai
回复: 14

为了在较高波特率的情况下使用485功能,所以需要配置串口的RTS,在哪里可以配置这个引脚呢?

#133 Re: 全志 SOC » 请教大家一个问题,全志linux主线uart驱动里面控制一个io脚实现rs485功能,应该如何修改? » 2020-06-19 09:51:10

路人甲 说:

根据楼上这篇文章彻底解决了驱动中gpio控制RS485方向控制问题:

serial8250_tx_chars() 函数中执行 __stop_tx(up) 之后:

                //等待发送完成
                while (port->ops->tx_empty(port) != TIOCSER_TEMT)
                {
                    ;
                }

                gpio_set_value(133, 0);//拉低PE5, 进入接收状态

按照这个方式进行编译,发现报一下的错误
drivers/tty/serial/8250/8250_port.c:1791:9: error: implicit declaration of function ‘gpio_set_value’; did you mean ‘sg_set_page’? [-Werror=implicit-function-declaration]
         gpio_set_value(34, 0);//拉低PE5, 进入接收状态
         ^~~~~~~~~~~~~~
         sg_set_page

#134 Re: 全志 SOC » 再来请教F1c200s的i2c总线驱动mv64xxx.c获取时钟失败问题 » 2020-06-16 21:08:02

MK-2020 说:

重新写回自己的固件:红色框内是模拟的一个i2c,mv64xxx.c驱动下的TWI0和TWI2没有:
https://whycan.cn/files/members/2850/14.png

问题解决了吗?
能分享一下吗?

#136 Re: 全志 SOC » 分享全志主线u-boot/linux 打包 TF/SD/SDNAND 镜像脚本 » 2020-05-28 17:33:00

我平时用的只有下面四个文件
u-boot-sunxi-with-spl.bin
sun8i-v3s-licheepi-zero-dock.dtb
zImage
rootfs.tar
也能打包成为TF卡的烧写程序吗?
怎么做呢?

#137 Re: 全志 SOC » 希望晕哥可以把{本站精华帖汇总, 持续更新 (******请大家继续补充********)}长期置顶 » 2020-05-27 17:05:30

哇酷小二 说:

因为长期置顶没人看了, 所以偶尔置顶惊喜一下 笑哭.gif

big_smile

#138 全志 SOC » 希望晕哥可以把{本站精华帖汇总, 持续更新 (******请大家继续补充********)}长期置顶 » 2020-05-27 16:42:02

zhang235hai
回复: 2

https://whycan.cn/t_3019.html

希望晕哥可以把{本站精华帖汇总, 持续更新 (******请大家继续补充********)}长期置顶
新手来到这个论坛可以先参考这个帖子的内容有针对的学习

#139 Re: 全志 SOC » 荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因 » 2020-05-27 15:37:45

有梦的地方 说:

感觉可能还是Qt相关环境变量问题

U-Boot 2017.01-rc2 (Apr 21 2020 - 14:29:13 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3929608 bytes read in 449 ms (8.3 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 30 ms (394.5 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #2 SMP Fri Apr 17 11:45:48 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10456K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000177] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000408] Console: colour dummy device 80x30
[    0.000445] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000462] pid_max: default: 32768 minimum: 301
[    0.000585] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000601] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001197] CPU: Testing write buffer coherency: ok
[    0.001577] /cpus/cpu@0 missing clock-frequency property
[    0.001601] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002054] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002234] Hierarchical SRCU implementation.
[    0.002727] smp: Bringing up secondary CPUs ...
[    0.002740] smp: Brought up 1 node, 1 CPU
[    0.002750] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002757] CPU: All CPU(s) started in SVC mode.
[    0.003519] devtmpfs: initialized
[    0.006682] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006973] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007001] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007169] pinctrl core: initialized pinctrl subsystem
[    0.008031] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008177] NET: Registered protocol family 16
[    0.008641] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009753] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009770] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023617] SCSI subsystem initialized
[    0.023901] usbcore: registered new interface driver usbfs
[    0.023997] usbcore: registered new interface driver hub
[    0.024119] usbcore: registered new device driver usb
[    0.024369] pps_core: LinuxPPS API ver. 1 registered
[    0.024379] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024402] PTP clock support registered
[    0.024617] Advanced Linux Sound Architecture Driver Initialized.
[    0.026483] clocksource: Switched to clocksource arch_sys_counter
[    0.037494] NET: Registered protocol family 2
[    0.038077] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038111] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038135] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038271] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038317] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038526] NET: Registered protocol family 1
[    0.039141] RPC: Registered named UNIX socket transport module.
[    0.039163] RPC: Registered udp transport module.
[    0.039169] RPC: Registered tcp transport module.
[    0.039175] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041255] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050335] NFS: Registering the id_resolver key type
[    0.050393] Key type id_resolver registered
[    0.050400] Key type id_legacy registered
[    0.051388] random: fast init done
[    0.054150] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054171] io scheduler noop registered
[    0.054179] io scheduler deadline registered
[    0.054415] io scheduler cfq registered (default)
[    0.054427] io scheduler mq-deadline registered
[    0.054434] io scheduler kyber registered
[    0.058867] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129957] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133308] console [ttyS0] disabled
[    0.153586] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.734360] console [ttyS0] enabled
[    0.759418] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.789953] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.802540] libphy: Fixed MDIO Bus: probed
[    0.807265] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.813061] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.818857] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.824852] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.834435] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.840153] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.847387] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.853041] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.860269] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.865229] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.872204] libphy: stmmac: probed
[    0.877589] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.884127] ehci-platform: EHCI generic platform driver
[    0.889751] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.895389] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.903385] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.936503] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.943672] hub 1-0:1.0: USB hub found
[    0.947625] hub 1-0:1.0: 1 port detected
[    0.952127] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.958431] ohci-platform: OHCI generic platform driver
[    0.963983] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.970712] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.978691] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.051596] hub 2-0:1.0: USB hub found
[    1.055439] hub 2-0:1.0: 1 port detected
[    1.063106] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.072682] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.081706] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.088610] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.093163] i2c /dev entries driver
[    1.098204] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.107758] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.176528] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.223400] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.233290] mmc0: new high speed SD card at address 215b
[    1.239148] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.245578] usbcore: registered new interface driver usbhid
[    1.251247] usbhid: USB HID core driver
[    1.255825] mmcblk0: mmc0:215b APPSD 242 MiB 
[    1.262431] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.270487] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.276999]  mmcblk0: p1 p2
[    1.285087] NET: Registered protocol family 17
[    1.289799] Key type dns_resolver registered
[    1.294207] Registering SWP/SWPB emulation handler
[    1.303459] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.314175] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.330473] Console: switching to colour frame buffer device 100x30
[    1.342875] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.351464] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.362854] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.368699] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.377821] hub 3-0:1.0: USB hub found
[    1.381700] hub 3-0:1.0: 1 port detected
[    1.387052] using random self ethernet address
[    1.391547] using random host ethernet address
[    1.398057] usb0: HOST MAC b2:c5:81:b5:4a:ea
[    1.402377] usb0: MAC 2e:20:08:08:d5:bc
[    1.406256] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.413843] g_cdc gadget: g_cdc ready
[    1.420173] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.428632] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.436878] vcc5v0: disabling
[    1.439854] ALSA device list:
[    1.442817]   #0: V3s Audio Codec
[    1.448031] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.457127] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.905855] EXT4-fs (mmcblk0p2): recovery complete
[    1.915578] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.923795] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.934327] devtmpfs: mounted
[    1.938645] Freeing unused kernel memory: 1024K
[    2.158115] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: OK
Starting network: OK
# 

以上是能正常启动QT的启动输出
一下是不能运行QT的启动输出

U-Boot 2017.01-rc2 (Apr 21 2020 - 14:29:13 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, 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:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3929608 bytes read in 204 ms (18.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 25 ms (472.7 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #2 SMP Fri Apr 17 11:45:48 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53580K/64036K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10456K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000419] Console: colour dummy device 80x30
[    0.000460] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000476] pid_max: default: 32768 minimum: 301
[    0.000599] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000617] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001224] CPU: Testing write buffer coherency: ok
[    0.001601] /cpus/cpu@0 missing clock-frequency property
[    0.001626] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002073] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002238] Hierarchical SRCU implementation.
[    0.002724] smp: Bringing up secondary CPUs ...
[    0.002739] smp: Brought up 1 node, 1 CPU
[    0.002748] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002756] CPU: All CPU(s) started in SVC mode.
[    0.003528] devtmpfs: initialized
[    0.006692] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006986] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007014] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007184] pinctrl core: initialized pinctrl subsystem
[    0.008058] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008203] NET: Registered protocol family 16
[    0.008669] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009795] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009813] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023701] SCSI subsystem initialized
[    0.023989] usbcore: registered new interface driver usbfs
[    0.024082] usbcore: registered new interface driver hub
[    0.024209] usbcore: registered new device driver usb
[    0.024459] pps_core: LinuxPPS API ver. 1 registered
[    0.024470] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024492] PTP clock support registered
[    0.024708] Advanced Linux Sound Architecture Driver Initialized.
[    0.026545] clocksource: Switched to clocksource arch_sys_counter
[    0.037624] NET: Registered protocol family 2
[    0.038212] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038248] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038272] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038410] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038459] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038677] NET: Registered protocol family 1
[    0.039287] RPC: Registered named UNIX socket transport module.
[    0.039307] RPC: Registered udp transport module.
[    0.039314] RPC: Registered tcp transport module.
[    0.039320] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041389] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050468] NFS: Registering the id_resolver key type
[    0.050521] Key type id_resolver registered
[    0.050528] Key type id_legacy registered
[    0.051506] random: fast init done
[    0.054287] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054308] io scheduler noop registered
[    0.054316] io scheduler deadline registered
[    0.054556] io scheduler cfq registered (default)
[    0.054568] io scheduler mq-deadline registered
[    0.054576] io scheduler kyber registered
[    0.059018] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.130164] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.133524] console [ttyS0] disabled
[    0.153802] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.734562] console [ttyS0] enabled
[    0.759640] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.790166] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.802769] libphy: Fixed MDIO Bus: probed
[    0.807501] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.813297] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.819087] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.825084] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.834669] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.840387] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.847623] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.853277] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.860506] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.865465] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.872436] libphy: stmmac: probed
[    0.877816] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.884353] ehci-platform: EHCI generic platform driver
[    0.890009] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.895645] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.903637] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.936563] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.943775] hub 1-0:1.0: USB hub found
[    0.947727] hub 1-0:1.0: 1 port detected
[    0.952236] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.958548] ohci-platform: OHCI generic platform driver
[    0.964100] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.970831] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.978807] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.051658] hub 2-0:1.0: USB hub found
[    1.055506] hub 2-0:1.0: 1 port detected
[    1.063158] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.072738] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.081770] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.088673] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.093219] i2c /dev entries driver
[    1.098252] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.107808] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.176591] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.223565] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.233736] mmc0: new high speed SDHC card at address 5048
[    1.239779] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.246199] usbcore: registered new interface driver usbhid
[    1.251867] usbhid: USB HID core driver
[    1.256449] mmcblk0: mmc0:5048 SD32G 28.9 GiB 
[    1.263114] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.271171] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.277677]  mmcblk0: p1 p2
[    1.285763] NET: Registered protocol family 17
[    1.290479] Key type dns_resolver registered
[    1.294884] Registering SWP/SWPB emulation handler
[    1.304153] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.314868] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.331153] Console: switching to colour frame buffer device 100x30
[    1.343566] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.352154] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.363564] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.369409] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.378545] hub 3-0:1.0: USB hub found
[    1.382420] hub 3-0:1.0: 1 port detected
[    1.387812] using random self ethernet address
[    1.392308] using random host ethernet address
[    1.398900] usb0: HOST MAC b2:4a:38:50:6a:9d
[    1.403216] usb0: MAC 6a:4c:df:38:1e:c1
[    1.407210] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.414691] g_cdc gadget: g_cdc ready
[    1.421015] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.429471] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.437723] vcc5v0: disabling
[    1.440697] ALSA device list:
[    1.443660]   #0: V3s Audio Codec
[    1.449262] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.458866] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.497527] EXT4-fs (mmcblk0p2): recovery complete
[    1.503485] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.511717] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.519902] devtmpfs: mounted
[    1.524174] Freeing unused kernel memory: 1024K
[    1.632130] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting network: OK
# ls

#140 Re: 全志 SOC » 荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因 » 2020-05-27 15:18:09

湘楚浪子 说:

当然是 printf 大法了,Qt自带的 qDebug()也行。

QT程序是没有问题的   都是我之前一直在用的测试程序
问题出在根文件系统上,我用和之前同样的.config文件编译,今天怎么都不能运行QT程序了

#141 Re: 全志 SOC » 荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因 » 2020-05-27 15:11:22

湘楚浪子 说:

那就加一些调试语句呗,可能你的程序提前退出了就酱紫了。

能具体一些吗,我是新手,不怎么会操作

#142 Re: 全志 SOC » 荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因 » 2020-05-27 15:08:09

湘楚浪子 说:

奇怪,前两天看到你的帖子,貌似搞定了吧: https://whycan.cn/t_4524.html#p45081

是的 之前搞定了  后面增加了一些功能之后就成这样了 
我重新编译 换不同的TF卡都是这样

#144 全志 SOC » 荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因 » 2020-05-27 14:24:24

zhang235hai
回复: 10

荔枝派ZERO执行QT程序无任何报错,屏幕无任何输出,运行情况如下图所示,请大家看看是什么原因

1.png

#145 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-26 08:52:44

问题已经解决
重新编译
加上一下的环境变量就没有问题了

export QT_ROOT=/usr/lib/qt
export TSLIB_ROOT=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QT_QPA_FONTDIR=/usr/share/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=$QT_ROOT/plugins
export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
export QT_QPA_FB_TSLIB=1

#146 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 17:13:22

哇酷小二 说:

你是不是后来才勾选 tslib 的?

我重新编译根文件系统
已经可以找到
none.png
运行QT程序还是同样的现象

#147 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 11:48:48

哇酷小二 说:

按理来说,勾选了这个就应该有,你查找一下 buildroot 的 output 目录

find output/ |grep libqtslibplugin.so



我的在目标文件系统的这个目录下: /usr/lib/qt/plugins/generic/libqtslibplugin.so

这个目录下也没发现这个文件
_20200525114725.png

#148 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 11:35:42

哇酷小二 说:

那检查一下文件系统里面 libqtslibplugin 这个文件是否存在。

从视频上看, 估计你的Qt程序直接读取的是/dev/input/event1 的原始数据,

而Qt需要tslib处理(滤波 & 转换)过的数据。

还真没有这个文件
我接下来怎么做呢?

#149 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 11:27:46

哇酷小二 说:

你的Qt没有编译 tslib 进去吧?



https://e2e.ti.com/support/processors/f/791/t/528010

No such plugin for spec  "tslib:/dev/input/event0"

And we have not  found libqtslibplugin.so in v2.00.00.00 filesystem.

我是通过buildroot选择QT5 并且勾选Enable Tslib support 直接构建的根文件系统

#150 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 11:02:56

哇酷小二 说:

上面那个还是不对, 试一试这个: https://whycan.cn/t_3521.html#p31654

指定 QT_QPA_GENERIC_PLUGINS 环境变量。

采用这个帖子的配置报错No such plugin for spec "tslib:/dev/input/event1"
通过QT监控触摸的位置会出现位置错误,如下图
_20200525110154.png

#151 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 11:00:33

哇酷小二 说:

首先执行校准:


测试:


运行Qt程序:


试一试上面有无问题。

用以上的配置和我原来的现象一样

#152 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-25 09:54:26

哇酷小二 说:

麻烦贴出Qt的运行命令行

export TSLIB_TSDEVICE=/dev/input/event1
export QT_QPA_EVDEV_MOUSE_PARAMETERS=/dev/input/event1
我配置过如上两条指令

./helloworldapp -platform linuxfb   这是我的QT运行指令

#154 Re: 全志 SOC » ns2009触摸芯片太**了,出来的原始数据偶尔经常出现大偏差,戳东出西,TI的I2C触摸芯片TSC2007价格吓人,只好用新唐单片机模拟 » 2020-05-21 18:17:36

john78 说:
static int ns2009_ts_report(struct ns2009_data *data)
{
	u16 x[10], y[10], z1;
	u16 agvx,agvy,maxx,minx,maxy,miny;	
	s32 sx,sy,stx,sty,stax,stay;	
	int i;
	int ret;

	/*
	 * NS2009 chip supports pressure measurement, but currently it needs
	 * more investigation, so we only use z1 axis to detect pen down
	 * here.
	 */
	
	ret = ns2009_ts_read_data(data, NS2009_READ_Z1_LOW_POWER_12BIT, &z1);
	if (ret) return ret;

	if (z1 >= NS2009_PEN_UP_Z1_ERR)
	{
		for(i=0;i<10;i++)
		{
			ret = ns2009_ts_read_data(data, NS2009_READ_X_LOW_POWER_12BIT,&x[i]);
			if (ret) return ret;

			ret = ns2009_ts_read_data(data, NS2009_READ_Y_LOW_POWER_12BIT,&y[i]);
			if (ret) return ret;
		}
		//计算平均值
		agvx=0;
		agvx=0;
		maxx=x[2];
		minx=maxx;
		maxy=y[2];
		miny=maxy;
		for(i=0;i<10;i++)
		{
			agvx += x[i];
			agvy += y[i];
			if(minx > x[i]) minx = x[i];
			if(maxx < x[i]) maxx = x[i];
			if(miny > y[i]) miny = y[i];
			if(maxy < y[i]) maxy = y[i];		
		}
		//agvx -= maxx;
		//agvx -= minx;
		///agvy -= maxy;
		//agvy -= miny;
		agvx /= 10;
		agvy /= 10;
		//计算方差
		stax = agvx;
		stay = agvy;
		sx = 0;
		sy = 0;		
		for(i=0;i<10;i++)
		{	
			stx = x[i];
			sx += (stx-stax)*(stx-stax);
			sty = y[i];
			sy += (sty-stay)*(sty-stay);
		}
		sx /= 10;
		sy /= 10;

		if(sx>50) return sx;
		if(sy>50) return sy;

		if (!data->pen_down)
		{
			input_report_key(data->input, BTN_TOUCH, 1);
			data->pen_down = true;
		}

		input_report_abs(data->input, ABS_X, agvx);
		input_report_abs(data->input, ABS_Y, agvy);
		input_sync(data->input);
	} else if (data->pen_down) {
		input_report_key(data->input, BTN_TOUCH, 0);
		input_sync(data->input);
		data->pen_down = false;
	}
	return 0;
}

我修改了驱动部分代码之后发现在执行ts_calibrate和ts_test效果还没有原来在好
运行QT程序也没有什么作用

#155 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-21 18:15:52

哇酷小二 说:

可以的,不过tsc2007要求接中断,你得飞线和配置dts


我按照这个https://whycan.cn/t_1259.html来操作了一遍
结果发现效果还不如系统自带在效果好

#156 Re: 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-21 16:46:29

有梦的地方 说:

荔枝派那个ns2009.c驱动有问题,写得不是很好,我改用tsc2007的驱动完全ok.

在编译内核在时候把NS2009去掉,把TSC2007勾选上就可以吗?

#157 全志 SOC » 荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test » 2020-05-21 15:28:47

zhang235hai
回复: 23

荔枝派zero 运行QT程序触摸不灵敏 但是可以单独运行ts_calibrate和ts_test

#158 Re: 全志 SOC » 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码 » 2020-05-15 15:45:27

有梦的地方 说:

这是什么原理?


推挽输出如果不上拉就没有电流
详细的情况可以百度一下上拉电阻电路的原理

#159 Re: 全志 SOC » 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码 » 2020-05-15 15:37:08

哇酷小二 说:

换一条 USB转TTL的线

解决了
串口线的T和R各上拉一个电阻就没有问题了

#160 Re: 全志 SOC » 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码 » 2020-05-15 14:51:27

哇酷小二 说:

上面看到这些都是 串口2 输出的吗?

是的  都是串口2输出的

#161 全志 SOC » 将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码 » 2020-05-15 14:47:20

zhang235hai
回复: 7

将荔枝派ZERO的终端输出改为串口2之后,能正常启动,但是终端输入全部都是乱码

# Dÿ@ÿ`ÿ@ÿ@ÿFÿ`ÿ@ÿ@ÿ`ÿ@ÿ@ÿ`ÿ`ÿbÿ
类似这样的


U-Boot SPL 2017.01-rc2 (May 15 2020 - 14:15:23)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

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


U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28800
Out:   serial@01c28800
Err:   serial@01c28800
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3952184 bytes read in 399 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 27 ms (438.5 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #13 SMP Thu May 14 19:18:14 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS2,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53576K/64036K available (6144K kernel code, 220K rwdata, 1444K rodata, 1024K init, 262K bss, 10460K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a370c0   ( 221 kB)
[    0.000000]        .bss : 0xc0a3e8bc - 0xc0a8023c   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000427] Console: colour dummy device 80x30
[    0.000467] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000484] pid_max: default: 32768 minimum: 301
[    0.000611] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000626] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001237] CPU: Testing write buffer coherency: ok
[    0.001618] /cpus/cpu@0 missing clock-frequency property
[    0.001638] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002073] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002249] Hierarchical SRCU implementation.
[    0.002735] smp: Bringing up secondary CPUs ...
[    0.002750] smp: Brought up 1 node, 1 CPU
[    0.002759] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002766] CPU: All CPU(s) started in SVC mode.
[    0.003530] devtmpfs: initialized
[    0.006754] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007035] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007064] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007233] pinctrl core: initialized pinctrl subsystem
[    0.008100] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008241] NET: Registered protocol family 16
[    0.008705] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009824] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009842] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023286] SCSI subsystem initialized
[    0.023596] usbcore: registered new interface driver usbfs
[    0.023666] usbcore: registered new interface driver hub
[    0.023769] usbcore: registered new device driver usb
[    0.024036] pps_core: LinuxPPS API ver. 1 registered
[    0.024045] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024068] PTP clock support registered
[    0.024288] Advanced Linux Sound Architecture Driver Initialized.
[    0.026139] clocksource: Switched to clocksource arch_sys_counter
[    0.037206] NET: Registered protocol family 2
[    0.037797] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037830] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037853] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037987] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038035] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038252] NET: Registered protocol family 1
[    0.038852] RPC: Registered named UNIX socket transport module.
[    0.038874] RPC: Registered udp transport module.
[    0.038880] RPC: Registered tcp transport module.
[    0.038886] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040952] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050054] NFS: Registering the id_resolver key type
[    0.050110] Key type id_resolver registered
[    0.050118] Key type id_legacy registered
[    0.051088] random: fast init done
[    0.053847] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053867] io scheduler noop registered
[    0.053875] io scheduler deadline registered
[    0.054111] io scheduler cfq registered (default)
[    0.054122] io scheduler mq-deadline registered
[    0.054128] io scheduler kyber registered
[    0.058593] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129914] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.153517] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.175159] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.196871] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.791914] console [ttyS2] enabled
[    0.799065] libphy: Fixed MDIO Bus: probed
[    0.803623] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.809519] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.815228] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.821421] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.827116] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.834332] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.840002] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.847228] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.852188] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.859154] libphy: stmmac: probed
[    0.864405] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.871065] ehci-platform: EHCI generic platform driver
[    0.876643] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.882262] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.890236] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.926158] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.933387] hub 1-0:1.0: USB hub found
[    0.937344] hub 1-0:1.0: 1 port detected
[    0.941836] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.948139] ohci-platform: OHCI generic platform driver
[    0.953683] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.960410] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.968381] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.041284] hub 2-0:1.0: USB hub found
[    1.045110] hub 2-0:1.0: 1 port detected
[    1.053487] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.062557] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.069467] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.074026] i2c /dev entries driver
[    1.079053] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.088585] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.156362] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.213735] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.221842] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.228360] usbcore: registered new interface driver usbhid
[    1.233937] usbhid: USB HID core driver
[    1.238581] mmc0: new high speed SD card at address b368
[    1.244558] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.251119] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.259161] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.265630]  mmcblk0: p1 p2
[    1.271712] NET: Registered protocol family 17
[    1.276427] Key type dns_resolver registered
[    1.280826] Registering SWP/SWPB emulation handler
[    1.292128] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.302837] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.319124] Console: switching to colour frame buffer device 100x30
[    1.331521] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.340100] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.351499] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.357342] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.366542] hub 3-0:1.0: USB hub found
[    1.370421] hub 3-0:1.0: 1 port detected
[    1.378092] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.387840] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.396017] vcc5v0: disabling
[    1.399073] ALSA device list:
[    1.402043]   #0: V3s Audio Codec
[    1.407418] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.416500] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.778316] EXT4-fs (mmcblk0p2): recovery complete
[    1.785737] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.793969] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.801165] devtmpfs: mounted
[    1.805375] Freeing unused kernel memory: 1024K
[    2.018532] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK
Initializing postgresql data base...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... FATAL:  could not create shared memory segment: Function not implemented
DETAIL:  Failed system call was shmget(key=1, size=40, 03600).
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK
[    5.306893] g_serial gadget: Gadget Serial v2.4
[    5.311440] g_serial gadget: g_serial ready
# HÄÿHÿ[  183.906970] random: crng init done
Fÿ@ÿ@ÿ@ÿ`ÿ@ÿ@ÿ`ÿ@ÿFÿ@ÿDÿFÿÿ
U-Boot SPL 2017.01-rc2 (May 15 2020 - 14:15:23)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

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


U-Boot 2017.01-rc2 (May 15 2020 - 14:15:23 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In:    serial@01c28800
Out:   serial@01c28800
Err:   serial@01c28800
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3952184 bytes read in 399 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 26 ms (455.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #13 SMP Thu May 14 19:18:14 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3de6000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS2,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 53576K/64036K available (6144K kernel code, 220K rwdata, 1444K rodata, 1024K init, 262K bss, 10460K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3e89000   (  62 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 - 0xc0a370c0   ( 221 kB)
[    0.000000]        .bss : 0xc0a3e8bc - 0xc0a8023c   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000017] Switching to timer-based delay loop, resolution 41ns
[    0.000183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000419] Console: colour dummy device 80x30
[    0.000458] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000473] pid_max: default: 32768 minimum: 301
[    0.000591] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000607] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001213] CPU: Testing write buffer coherency: ok
[    0.001597] /cpus/cpu@0 missing clock-frequency property
[    0.001619] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002058] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002227] Hierarchical SRCU implementation.
[    0.002727] smp: Bringing up secondary CPUs ...
[    0.002741] smp: Brought up 1 node, 1 CPU
[    0.002751] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002758] CPU: All CPU(s) started in SVC mode.
[    0.003534] devtmpfs: initialized
[    0.006748] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007032] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007062] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007229] pinctrl core: initialized pinctrl subsystem
[    0.008077] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008215] NET: Registered protocol family 16
[    0.008674] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009794] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009810] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023223] SCSI subsystem initialized
[    0.023525] usbcore: registered new interface driver usbfs
[    0.023593] usbcore: registered new interface driver hub
[    0.023697] usbcore: registered new device driver usb
[    0.023967] pps_core: LinuxPPS API ver. 1 registered
[    0.023976] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.023997] PTP clock support registered
[    0.024213] Advanced Linux Sound Architecture Driver Initialized.
[    0.026048] clocksource: Switched to clocksource arch_sys_counter
[    0.037121] NET: Registered protocol family 2
[    0.037717] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037751] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.037775] TCP: Hash tables configured (established 1024 bind 1024)
[    0.037907] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.037955] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038170] NET: Registered protocol family 1
[    0.038780] RPC: Registered named UNIX socket transport module.
[    0.038800] RPC: Registered udp transport module.
[    0.038807] RPC: Registered tcp transport module.
[    0.038812] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.040893] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.049999] NFS: Registering the id_resolver key type
[    0.050051] Key type id_resolver registered
[    0.050060] Key type id_legacy registered
[    0.051051] random: fast init done
[    0.053814] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053833] io scheduler noop registered
[    0.053840] io scheduler deadline registered
[    0.054074] io scheduler cfq registered (default)
[    0.054085] io scheduler mq-deadline registered
[    0.054092] io scheduler kyber registered
[    0.058551] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129607] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.153191] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.174830] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.196520] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.791541] console [ttyS2] enabled
[    0.798708] libphy: Fixed MDIO Bus: probed
[    0.803257] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.809153] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.814860] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.821047] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.826744] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.833960] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.839628] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.846856] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.851816] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.858783] libphy: stmmac: probed
[    0.864029] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.870692] ehci-platform: EHCI generic platform driver
[    0.876287] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.881908] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.889883] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.916069] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.923287] hub 1-0:1.0: USB hub found
[    0.927245] hub 1-0:1.0: 1 port detected
[    0.931745] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.938048] ohci-platform: OHCI generic platform driver
[    0.943598] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.950322] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.958294] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.031190] hub 2-0:1.0: USB hub found
[    1.035013] hub 2-0:1.0: 1 port detected
[    1.043410] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.052453] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.059353] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.063908] i2c /dev entries driver
[    1.068933] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.078473] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.146262] sunxi-mmc 1c0f000.mmc: base:0xc41fc000 irq:23
[    1.203638] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.211740] sunxi-mmc 1c10000.mmc: base:0xc4301000 irq:24
[    1.218252] usbcore: registered new interface driver usbhid
[    1.223826] usbhid: USB HID core driver
[    1.228464] mmc0: new high speed SD card at address b368
[    1.234439] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.240996] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.249046] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.255520]  mmcblk0: p1 p2
[    1.261559] NET: Registered protocol family 17
[    1.266264] Key type dns_resolver registered
[    1.270661] Registering SWP/SWPB emulation handler
[    1.281973] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0xc4380000
[    1.292682] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    1.308981] Console: switching to colour frame buffer device 100x30
[    1.321384] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[    1.329978] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.341366] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.347206] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.356431] hub 3-0:1.0: USB hub found
[    1.360302] hub 3-0:1.0: 1 port detected
[    1.368098] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.377830] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:00:04 UTC (4)
[    1.386007] vcc5v0: disabling
[    1.389054] ALSA device list:
[    1.392019]   #0: V3s Audio Codec
[    1.397427] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.406511] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    2.542687] EXT4-fs (mmcblk0p2): recovery complete
[    2.550198] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.558437] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.565619] devtmpfs: mounted
[    2.569952] Freeing unused kernel memory: 1024K
[    2.768971] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting logging: OK
Initializing random number generator... done.
Starting system message bus: done
Starting network: OK
Initializing postgresql data base...
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C".
The default database encoding has accordingly been set to "SQL_ASCII".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /var/lib/pgsql ... ok
creating subdirectories ... ok
selecting default max_connections ... 10
selecting default shared_buffers ... 400kB
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... FATAL:  could not create shared memory segment: Function not implemented
DETAIL:  Failed system call was shmget(key=1, size=40, 03600).
child process exited with exit code 1
initdb: removing contents of data directory "/var/lib/pgsql"
pg_ctl: database system initialization failed
done
Starting postgresql: pg_ctl: directory "/var/lib/pgsql" is not a database cluster directory
OK
[    6.059748] g_serial gadget: Gadget Serial v2.4
[    6.064295] g_serial gadget: g_serial ready

以上是我的启动信息

#162 Re: 全志 SOC » 测试测试 g_serial / g_ether USB Gadget (RNDIS) » 2020-05-15 09:06:30

开发板执行: cat /dev/ttyGS0, 电脑发送,开发板接收
我从串口助手发送任何东西,荔枝派接收不到任何东西

开发板执行: echo "xxxx" > /dev/ttyGS0, 电脑接收
这个可以实现,电脑串口助手可以正常接收

请大家指定一下

#163 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-14 15:59:19

哇酷小二 说:

这个看不出来是什么问题, 你前面的问题是怎么解决的?


需要安装一个打包工具
sudo apt-get install module-init-tools

#164 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-14 15:31:48

lanjackg2003 说:

我尝试加载g_multi.ko 但是报了如下无效参数的错误

#
# modprobe g_multi.ko
[  110.008847] using random self ethernet address
[  110.013464] using random host ethernet address
[  110.023788] Mass Storage Function, version: 2009/09/11
[  110.028952] LUN: removable file: (no medium)
[  110.033420] no file given for LUN0
[  110.045133] console [ttyGS-1] disabled
[  110.049026] g_multi musb-hdrc.1.auto: failed to start g_multi: -22
[  110.066121] using random self ethernet address
[  110.070736] using random host ethernet address
[  110.079196] Mass Storage Function, version: 2009/09/11
[  110.084502] LUN: removable file: (no medium)
[  110.088833] no file given for LUN0
[  110.100390] console [ttyGS-1] disabled
[  110.104295] g_multi musb-hdrc.1.auto: failed to start g_multi: -22
modprobe: can't load module g_multi.ko (kernel/drivers/usb/gadget/legacy/g_multi.ko): Invalid argument

请问 modprobe g_multi.ko 后面还要带什么参数吗

另外附上设备上的驱动内容

  INSTALL crypto/echainiv.ko
  INSTALL drivers/input/touchscreen/goodix.ko
  INSTALL drivers/net/mii.ko
  INSTALL drivers/net/usb/rtl8150.ko
  INSTALL drivers/staging/rtl8723bs/r8723bs.ko
  INSTALL drivers/usb/gadget/function/usb_f_mass_storage.ko
  INSTALL drivers/usb/gadget/legacy/g_cdc.ko
  INSTALL drivers/usb/gadget/legacy/g_ether.ko
  INSTALL drivers/usb/gadget/legacy/g_multi.ko
  INSTALL drivers/usb/gadget/legacy/g_ncm.ko
  INSTALL drivers/usb/gadget/legacy/g_serial.ko
  INSTALL drivers/usb/mon/usbmon.ko
  INSTALL drivers/video/backlight/lcd.ko
  DEPMOD  4.15.0-rc8-licheepi-nano+

我出现了和你同样的报错,不知道你是怎么解决的

#165 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-14 15:30:48

哇酷小二 说:

1. 你的g_multi.ko完整路径是什么

2. 你的zImage和ko是同一次编译的吗?


# modprobe g_multi stall=0 removable=1 iSerialNumber=20190920 iProduct=RNDIS iManufacturer=jack
modprobe g_multi stall=0 removable=1 iSerialNumber=20190920 iProduct=RNDIS iMa
nufacturer=jack
[ 1719.926244] using random self ethernet address
[ 1719.931228] using random host ethernet address
[ 1719.936717] Mass Storage Function, version: 2009/09/11
[ 1719.941868] LUN: removable file: (no medium)
[ 1719.946419] LUN: removable file: (no medium)
[ 1719.950690] Number of LUNs=1
[ 1719.954256] usb0: HOST MAC 62:dc:37:1b:8b:f4
[ 1719.958673] usb0: MAC 02:e9:93:d4:c4:57
[ 1719.963453] g_multi gadget: unable to autoconfigure all endpoints
[ 1719.970448] console [ttyGS-1] disabled
[ 1719.995283] g_multi musb-hdrc.1.auto: failed to start g_multi: -524
[ 1720.002967] using random self ethernet address
[ 1720.007581] using random host ethernet address
[ 1720.012889] Mass Storage Function, version: 2009/09/11
[ 1720.018146] LUN: removable file: (no medium)
[ 1720.022547] LUN: removable file: (no medium)
[ 1720.026870] Number of LUNs=1
[ 1720.030422] usb0: HOST MAC 42:28:7c:bd:41:15
[ 1720.034736] usb0: MAC d6:b9:7f:55:94:39
[ 1720.039441] g_multi gadget: unable to autoconfigure all endpoints
[ 1720.046441] console [ttyGS-1] disabled
[ 1720.075283] g_multi musb-hdrc.1.auto: failed to start g_multi: -524
modprobe: can't load module g_multi (kernel/drivers/usb/gadget/legacy/g_multi.ko): Unknown error 524

执行加载命令后出现如上的报错
单独执行modprobe g_ether没有问题,能ping通同一个网段的电脑ip地址

#166 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-14 08:14:34

zhang235hai 说:

好的   我先试试
非常感谢

# find -name g_*
./4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_multi.ko
./4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_cdc.ko
./4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_ncm.ko
./4.13.16-licheepi-zero+/kernel/drivers/usb/gadget/legacy/g_ether.ko

# find -name modules.*
./4.13.16-licheepi-zero+/modules.builtin.bin
./4.13.16-licheepi-zero+/modules.builtin
./4.13.16-licheepi-zero+/modules.softdep
./4.13.16-licheepi-zero+/modules.symbols
./4.13.16-licheepi-zero+/modules.symbols.bin
./4.13.16-licheepi-zero+/modules.dep
./4.13.16-licheepi-zero+/modules.order
./4.13.16-licheepi-zero+/modules.alias
./4.13.16-licheepi-zero+/modules.devname
./4.13.16-licheepi-zero+/modules.alias.bin# modprobe -r g_serial

执行# modprobe g_serial
[  852.512879] g_serial: version magic '4.13.16-licheepi-zero SMP mod_unload ARMv7 p2v8 ' should be '4.13.16-licheepi-zero+ SMP mod_unload ARMv7 p2v8 '
[  852.527178] g_serial: version magic '4.13.16-licheepi-zero SMP mod_unload ARMv7 p2v8 ' should be '4.13.16-licheepi-zero+ SMP mod_unload ARMv7 p2v8 '
modprobe: can't load module g_serial (kernel/drivers/usb/gadget/legacy/g_serial.ko): invalid module format

找不到原因了,麻烦再帮我看看

#167 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-12 19:53:10

哇酷小二 说:

本站搜索关键字: modules_installINSTALL_MOD_PATH:
https://whycan.cn/t_2996.html#p24793
https://whycan.cn/t_2701.html#p21651


好的   我先试试
非常感谢

#168 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-12 19:30:38


难题在于得到了驱动文件之后不知道该怎么加入到我的荔枝派当中来运行
是直接把那些文件拷贝到TF卡里面的特定位置在加载吗?

#169 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-12 19:28:36

lanjackg2003 说:

昨天将单独的USB转串口以及USB的RNDIS的开启方法,整理出来写成文章,放到我的CSDN博客,有需要的可以过去看看
https://blog.csdn.net/lan120576664/article/details/101037170
https://blog.csdn.net/lan120576664/article/details/101039293

下一步待Serial + RNDIS 研究成功后,也重新总结一下方法




我可以顺利得到g_serial.ko  g_ehter.ko  g_multi.ko 和 modules.dep  modeles.dep.bin 这几个文件
下一步不知道该怎么弄了


我现在用的荔枝派ZERO采用的是TF卡烧录boot,拷贝zImage  .dts 文件,解压roofts.tar的方式工作的

#170 Re: 全志 SOC » LicheePi Nano Usb复合设备RNDIS功能问题 » 2020-05-12 19:24:31

晕哥 说:

勾选 usb gadget 相关选项,确认生成了 g_serial.ko


我可以顺利得到g_serial.ko  g_ehter.ko  g_multi.ko 和 modules.dep  modeles.dep.bin 这几个文件
下一步不知道该怎么弄了


我现在用的荔枝派ZERO采用的是TF卡烧录boot,拷贝zImage  .dts 文件,解压roofts.tar的方式工作的

#172 Re: 全志 SOC » 荔枝派zero成功安装LXDE桌面环境,进入之后卡死,有人知道怎么增加内存分配吗? » 2020-05-01 10:14:49

mango 说:

这种低内存的芯片上跑lxde玩玩可以,但这种做法可能会让你的sd卡提前报废

我只是搞这好玩想尝试一下 瞎搞的 呵呵

#173 Re: 全志 SOC » 荔枝派zero成功安装LXDE桌面环境,进入之后卡死,有人知道怎么增加内存分配吗? » 2020-05-01 10:13:55

哇酷小二 说:

增加 swap文件或者swap分区: https://whycan.cn/t_4236.html#p41074

我分配了2G的内存空间之后
反而完全进入不了桌面了

#174 全志 SOC » 荔枝派zero成功安装LXDE桌面环境,进入之后卡死,有人知道怎么增加内存分配吗? » 2020-05-01 09:21:44

zhang235hai
回复: 6

97b6fc7a7da5943715b0e421d582022.jpg

荔枝派zero成功安装LXDE桌面环境,进入之后卡死,有人知道怎么增加内存分配吗?

#175 Re: 全志 SOC » 成功在f1c100s上运行debian系统 » 2020-04-30 14:37:46

kekemuyu 说:

网络确实比较困难,暂时用RNDIS吧

能不能介绍一下怎么用RNDIS是想网络的连接
我现在成功的在荔枝派zero是运行起来了debian系统

#176 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2020-04-30 14:36:27

哇酷小二 说:

先检查这几个文件是否存在, 不过看log已经提示存在了。

然后用 ls -l检查有没有执行属性

如果都有的话, 看这几个文件是不是不完整,是不是arm linux 的二进制可执行文件。

我重新按照流程走了一遍
现在可以成功进入debian系统了
谢谢

#177 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2020-04-30 09:33:15

拉轰的脚踏车 说:

你的 rootfs 有问题, 也就是TF卡第二个分区,里面没有一个文件可以作为首进程启动:

[    1.583545] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.592267] Starting init: /etc/init exists but couldn't execute it (error -13)
[    1.602589] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.609790] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.

这种情况一般是哪个环节出问题呢?

#178 Re: 全志 SOC » Debian 9.9 (stretch) 文件系统制作 » 2020-04-30 09:15:20

晕哥 说:

那奇怪了, 我可以改root的密码, 并且用root登录.

按照教程我顺利的得到了  debian9.9.rootfs.gz
解压到SD卡之后
不断的重启
以下是我的串口信息:

U-Boot SPL 2017.01-rc2 (Apr 17 2020 - 15:16:18)
DRAM: 64 MiB
Trying to boot from MMC1

U-Boot 2017.01-rc2 (Apr 17 2020 - 15:16:18 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000


U-Boot 2017.01-rc2 (Apr 17 2020 - 15:16:18 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0 
reading zImage
3929608 bytes read in 397 ms (9.4 MiB/s)
reading sun8i-v3s-licheepi-zero-dock.dtb
12124 bytes read in 26 ms (455.1 KiB/s)
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff5b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@iZwz91z0o8slonc8b7xpfiZ) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1)) #2 SMP Fri Apr 17 11:45:48 CST 2020
[    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 with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3edf000 s33920 r8192 d23424 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16129
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
[    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: 54564K/65024K available (6144K kernel code, 217K rwdata, 1436K rodata, 1024K init, 262K bss, 10460K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3f80000   (  63 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 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3d874 - 0xc0a7f1fc   ( 263 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000421] Console: colour dummy device 80x30
[    0.000459] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000475] pid_max: default: 32768 minimum: 301
[    0.000599] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000615] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001212] CPU: Testing write buffer coherency: ok
[    0.001584] /cpus/cpu@0 missing clock-frequency property
[    0.001609] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002049] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002222] Hierarchical SRCU implementation.
[    0.002706] smp: Bringing up secondary CPUs ...
[    0.002721] smp: Brought up 1 node, 1 CPU
[    0.002729] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002736] CPU: All CPU(s) started in SVC mode.
[    0.003506] devtmpfs: initialized
[    0.006643] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.006932] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.006960] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007123] pinctrl core: initialized pinctrl subsystem
[    0.007990] random: get_random_u32 called from bucket_table_alloc+0xf0/0x250 with crng_init=0
[    0.008132] NET: Registered protocol family 16
[    0.008586] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.009697] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.009714] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023540] SCSI subsystem initialized
[    0.023824] usbcore: registered new interface driver usbfs
[    0.023915] usbcore: registered new interface driver hub
[    0.024036] usbcore: registered new device driver usb
[    0.024290] pps_core: LinuxPPS API ver. 1 registered
[    0.024299] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024324] PTP clock support registered
[    0.024540] Advanced Linux Sound Architecture Driver Initialized.
[    0.026373] clocksource: Switched to clocksource arch_sys_counter
[    0.037356] NET: Registered protocol family 2
[    0.037946] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.037980] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038005] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038139] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038188] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038403] NET: Registered protocol family 1
[    0.039002] RPC: Registered named UNIX socket transport module.
[    0.039023] RPC: Registered udp transport module.
[    0.039030] RPC: Registered tcp transport module.
[    0.039037] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041086] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050135] NFS: Registering the id_resolver key type
[    0.050188] Key type id_resolver registered
[    0.050195] Key type id_legacy registered
[    0.051193] random: fast init done
[    0.053971] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.053993] io scheduler noop registered
[    0.054000] io scheduler deadline registered
[    0.054237] io scheduler cfq registered (default)
[    0.054247] io scheduler mq-deadline registered
[    0.054254] io scheduler kyber registered
[    0.058682] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.129355] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.132680] console [ttyS0] disabled
[    0.152951] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[    0.733724] console [ttyS0] enabled
[    0.758791] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.789306] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[    0.801927] libphy: Fixed MDIO Bus: probed
[    0.806630] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.812428] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.818194] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.824185] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.833759] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.839468] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.846703] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.852358] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.859584] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.864544] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.871513] libphy: stmmac: probed
[    0.876906] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.883444] ehci-platform: EHCI generic platform driver
[    0.889046] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.894675] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.902669] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[    0.936395] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.943579] hub 1-0:1.0: USB hub found
[    0.947526] hub 1-0:1.0: 1 port detected
[    0.952023] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.958326] ohci-platform: OHCI generic platform driver
[    0.963870] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.970602] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.978582] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[    1.051486] hub 2-0:1.0: USB hub found
[    1.055328] hub 2-0:1.0: 1 port detected
[    1.062974] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.072544] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.081561] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.088464] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.093007] i2c /dev entries driver
[    1.098034] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.107576] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.176422] sunxi-mmc 1c0f000.mmc: base:0xc4105000 irq:23
[    1.233973] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.242078] sunxi-mmc 1c10000.mmc: base:0xc4109000 irq:24
[    1.248566] usbcore: registered new interface driver usbhid
[    1.254142] usbhid: USB HID core driver
[    1.258764] mmc0: new high speed SD card at address b368
[    1.264739] mmcblk0: mmc0:b368 NCard 961 MiB 
[    1.271321] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.279371] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.285846]  mmcblk0: p1 p2
[    1.291918] NET: Registered protocol family 17
[    1.296633] Key type dns_resolver registered
[    1.301036] Registering SWP/SWPB emulation handler
[    1.312274] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0xc4300000
[    1.322894] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[    1.335121] Console: switching to colour frame buffer device 60x34
[    1.343602] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[    1.352188] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.363579] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    1.369425] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    1.378532] hub 3-0:1.0: USB hub found
[    1.382403] hub 3-0:1.0: 1 port detected
[    1.387690] using random self ethernet address
[    1.392182] using random host ethernet address
[    1.397858] usb0: HOST MAC de:3b:e4:4d:e7:20
[    1.402176] usb0: MAC 8e:59:5f:5d:d0:c1
[    1.406051] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    1.413634] g_cdc gadget: g_cdc ready
[    1.419885] sun4i-codec 1c22c00.codec: Codec <-> 1c22c00.codec mapping ok
[    1.429371] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 00:03:14 UTC (194)
[    1.437793] vcc5v0: disabling
[    1.440769] ALSA device list:
[    1.443733]   #0: V3s Audio Codec
[    1.449192] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    1.458670] EXT4-fs (mmcblk0p2): couldn't mount as ext2 due to feature incompatibilities
[    1.497971] EXT4-fs (mmcblk0p2): recovery complete
[    1.502793] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    1.511022] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    1.519103] devtmpfs: mounted
[    1.523301] Freeing unused kernel memory: 1024K
[    1.569822] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
[    1.583545] Starting init: /sbin/init exists but couldn't execute it (error -8)
[    1.592267] Starting init: /etc/init exists but couldn't execute it (error -13)
[    1.602589] Starting init: /bin/sh exists but couldn't execute it (error -5)
[    1.609790] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
[    1.623947] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #2
[    1.631244] Hardware name: Allwinner sun8i Family
[    1.635983] [<c010e1ec>] (unwind_backtrace) from [<c010af9c>] (show_stack+0x10/0x14)
[    1.643729] [<c010af9c>] (show_stack) from [<c0652e90>] (dump_stack+0x90/0xa4)
[    1.650952] [<c0652e90>] (dump_stack) from [<c011b0bc>] (panic+0xf0/0x268)
[    1.657827] [<c011b0bc>] (panic) from [<c0665104>] (kernel_init+0x100/0x110)
[    1.664873] [<c0665104>] (kernel_init) from [<c0107358>] (ret_from_fork+0x14/0x3c)
[    1.672444] Rebooting in 5 seconds..

#179 Re: 全志 SOC » Allwinner S3 u-boot 2020.04 (DisplayEngine2 + Fastboot线刷) » 2020-04-27 16:38:19

aodzip 说:

这个不是uboot该考虑的事哈哈。


要让控制台的信息输出到4.3寸液晶屏,需要做哪些设置呢?
也就是可以脱离台式机电脑操作荔枝派zero

#180 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-25 15:26:29

shaoxi2010 说:

u-boot 配置 bootargs 参数, console设置成 tty
内核打开这两个选项
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y

u-boot 和内核文件都改了  重新编译还是没有输出到液晶屏
太奇怪了

#181 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-25 10:30:38

shaoxi2010 说:

打开fbconsole,console=tty就行了,busybox应该不能切换界面,systemd启动是可以的

可以说得详细一些吗?
新手实在是搞不定
谢谢

#182 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-25 10:22:59

我思故我在 说:

有没有把 ,115200 去掉?

console=fb0 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0

去掉了115200,console=fb0 和console=/dev/fb0 我都尝试过都是卡在Starting kernel ...,就不动了
我的4.3寸屏出现了小企鹅和一行文字之后就没有任何显示了

#183 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-25 09:35:08

流氓兔 说:

u-boot 配置 bootargs 参数, console设置成 fb0


#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"
我把这一行的ttyS0改为fb0之后,一直卡在Starting kernel ...,就不动了

#184 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-25 09:34:36

风云剑 说:

实在不行,可以直接改代码

include\configs\sun8i.h 里面加一个

#define CONFIG_BOOTARGS     "console=ttyS0,115200 .....


#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"
我把这一行的ttyS0改为fb0之后,一直卡在Starting kernel ...,就不动了

#185 Re: 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-24 12:36:41

流氓兔 说:

u-boot 配置 bootargs 参数, console设置成 fb0

我没有找到哪里可以设置

make menuconfig 里面没有找到bootargs这个选项

#186 全志 SOC » 荔枝派控制台信息直接输出到液晶屏而不是电脑串口 » 2020-04-24 11:42:08

zhang235hai
回复: 11

我已经成功在荔枝派运行自己做的QT程序
想是想控制台信息直接输出到液晶屏而不是电脑串口
请教大家该怎么做
_20200424113951.jpg

#189 全志 SOC » 请大家帮我看看荔枝派zero驱动7村液晶屏的问题 » 2020-04-20 16:38:15

zhang235hai
回复: 3

驱动4.3寸的屏完全正常
色彩和触摸都能正常使用
换成7村的之后图案是对的,就是色彩不对
不知道是什么原因
我用的谷歌浏览器  图片上传不了

#190 Re: 全志 SOC » 使用qmake编译.pro文件一直报Unknown module(s) in QT: serialport错误 » 2020-04-16 09:06:33

晕哥 说:
$ find . |grep SerialPort  |grep \\.so
./output/build/qt5serialport-5.12.4/lib/libQt5SerialPort.so.5.12.4
./output/build/qt5serialport-5.12.4/lib/libQt5SerialPort.so.5.12
./output/build/qt5serialport-5.12.4/lib/libQt5SerialPort.so.5
./output/build/qt5serialport-5.12.4/lib/libQt5SerialPort.so
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libQt5SerialPort.so.5.12.4
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libQt5SerialPort.so.5.12
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libQt5SerialPort.so.5
./output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libQt5SerialPort.so
./output/target/usr/lib/libQt5SerialPort.so.5.12.4
./output/target/usr/lib/libQt5SerialPort.so.5.12
./output/target/usr/lib/libQt5SerialPort.so.5

用 find 命令搜索 SerialPort 相关文件是否存在。

我把之前的buildboot删除
重新新建一个buildboot 勾选上serial相关
再次编译居然解决了
谢谢你

#191 Re: 全志 SOC » 使用qmake编译.pro文件一直报Unknown module(s) in QT: serialport错误 » 2020-04-16 08:45:08

晕哥 说:

先检查自己操作的问题吧: https://whycan.cn/t_3426.html#p30402

qmake路径确定没有错
编译其他不涉及serial的.pro文件没有问题
可以正常在荔枝派执行
还有其他可能的原因吗?

#192 全志 SOC » 使用qmake编译.pro文件一直报Unknown module(s) in QT: serialport错误 » 2020-04-16 08:31:17

zhang235hai
回复: 4

zhang@ubuntu:~/myserial$ /home/zhang/buildroot-2017.08.1/output/build/qt5base-5.9.1/bin/qmake myserial.pro
Project ERROR: Unknown module(s) in QT: serialport
zhang@ubuntu:~/myserial$

在buildboot下已经勾选QT5的serialport和serialbus两个选项
请大家帮忙看看

#193 Re: 全志 SOC » V3S 如何 LCD 背光调整? » 2020-04-15 15:32:12

john78 说:

# echo 0 > /sys/class/backlight/pwm-backlight/brightness
-sh: can't create /sys/class/backlight/pwm-backlight/brightness: nonexistent directory
--------------------------------------------------------------------------------
dts:
backlight: backlight {
        compatible = "pwm-backlight";
        pwms = <&pwm 0 1000000 0>;
        brightness-levels = <0 30 40 50 60 70 100>;
        default-brightness-level = <6>;
    };


我用荔枝派zero驱动4.3寸屏背光没有问题
但是用7寸屏背光非常的暗,图像显示是正常的
我修改了linux源码中的sun8i-v3s-licheepi-zero-with-lcd.dtsi/ {
        backlight: backlight {
                compatible = "pwm-backlight";
                pwms = <&pwm 0 1000000 0>;
                brightness-levels = <0 30 40 50 60 70 100>;
                default-brightness-level = <70>;
        };

重新编译之后背光还是很暗
请问还有其他的办法吗?

#194 Re: 全志 SOC » 用licheepi zero打开串口1ttyS1失败 » 2020-04-15 08:54:31

有梦的地方 说:

可能你的 buildroot 没有勾选 qt serial


我在buildboot 里面勾选了 qt5serialbus 和 qt5serialprot 两个选项
保存
重新编译
用qmake编译后还是报Project ERROR: Unknown module(s) in QT: serialport错误

#195 Re: 全志 SOC » 用licheepi zero打开串口1ttyS1失败 » 2020-04-14 16:10:38

晕哥 说:

ttyS2 在 log 没有出现吧, 说明设备树配置有问题.

ttyS1 可以, 说明前面你的代码有问题.


zhang@ubuntu:~/myserial$ /home/zhang/buildroot-2017.08.1/output/build/qt5base-5.9.1/bin/qmake myserial.pro
Project ERROR: Unknown module(s) in QT: serialport

我用QT做了一个简单的串口界面,用qmake编译的时候出现上面这个错误,是什么原因呢?

#196 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2020-04-13 09:15:15

X3 说:

没有执行属性吧, 试一试 chmod +x analogclock


谢谢,按照你的方式已经可以了!

#197 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2020-04-13 08:38:19

Starting logging: OK
Initializing random number generator... done.
Starting network: OK
# ls
analogclock  lib          media        root         tmp
bin          lib32        mnt          run          usr
dev          linuxrc      opt          sbin         var
etc          lost+found   proc         sys
# ./analogclock -platform linuxfb
-/bin/sh: ./analogclock: Permission denied
# 

在运行QT文件的时候报错 Permission denied
请问是什么原因呢?

#198 Re: 全志 SOC » 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点 » 2020-04-08 15:28:58

晕哥 说:
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.bak

mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc.bak

cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++

cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc

我已经成功的编译出来可以执行程序analogclock,拷贝到TF卡之后顺利启动
# cat /dev/zero > /dev/fb0
# cat /dev/urandom > /dev/fb0
执行以上两条指令会黑屏和出现雪花点

但是执行
./analogclock -platform linuxfb
死活跑不起来,屏幕没有任何反应

麻烦再指导提示一下吧,谢谢

#199 Re: 全志 SOC » 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点 » 2020-04-07 15:49:35

有梦的地方 说:

你的电脑有毒,删掉目录重新编译走一个,或者换台电脑。


应该不会有毒吧

#200 Re: 全志 SOC » 荔枝派执行qmake后得到Makefile,接着执行make后报错,求老师们指点 » 2020-04-07 15:13:48

晕哥 说:
mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.bak

mv /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc.bak

cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-g++ /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++

cp /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gcc /home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-gcc

太奇怪了,还是报同样的错误
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++ -c -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os --sysroot=/home/zhang/buildroot-2018.08.2/output/host/arm-buildroot-linux-gnueabihf/sysroot -O2 -O3 -fno-exceptions -Wall -W -D_REENTRANT -fPIC -DQT_NO_EXCEPTIONS -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I. -I../../../../include -I../../../../include/QtWidgets -I../../../../include/QtGui -I../../../../include/QtCore -I.moc -I../../../../mkspecs/devices/linux-buildroot-g++ -o .obj/analogclock.o analogclock.cpp
/home/zhang/buildroot-2018.08.2/output/host/bin/arm-linux-gnueabihf-g++.br_real: No such file or directory
Makefile:1614: recipe for target '.obj/analogclock.o' failed
make: *** [.obj/analogclock.o] Error 2

页脚

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

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