您尚未登录。

#1 Re: 全志 SOC » 模仿stm32标准库风格写的库文件(f1c100s/f1c200s),且已移植了rt-thread、lvgl、fatfs、cherryusb » 2024-09-14 21:39:32

有点问题 ,驱动1024x600,时钟配置 50MHz 无法显示, 30Mhz  显示正常, 不知道什么原因,刚入门小白

#2 全志 SOC » 自制 F1C200S 启动卡死! » 2024-01-27 20:20:01

rean
回复: 0

TF卡镜像使用的是 http://wiki.lcmaker.com/index.php?title=LC-PI-200S

正常启动时 ,串口输出信息如下,此启动信息是板子放久了,突然上电突然启动成功得到的,复位则又会卡死在 [    1.237599] [drm] kms: can't enable cloning when we probably wanted to.  这一行

[    0.000000] Linux version 5.4.73 (mrcong@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4-gf2a581f)) #1 Sun Nov 1 23:13:35 PST 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: 38732K/65536K available (6144K kernel code, 254K rwdata, 1672K rodata, 1024K init, 223K bss, 10420K 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.000048] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000140] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000919] Console: colour dummy device 80x30
[    0.001023] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070266] pid_max: default: 32768 minimum: 301
[    0.070798] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070845] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072798] CPU: Testing write buffer coherency: ok
[    0.074966] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076293] devtmpfs: initialized
[    0.088090] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088158] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092522] pinctrl core: initialized pinctrl subsystem
[    0.095275] NET: Registered protocol family 16
[    0.098970] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101420] cpuidle: using governor menu
[    0.145097] SCSI subsystem initialized
[    0.145480] usbcore: registered new interface driver usbfs
[    0.145638] usbcore: registered new interface driver hub
[    0.145834] usbcore: registered new device driver usb
[    0.146352] mc: Linux media interface: v0.10
[    0.146483] videodev: Linux video capture interface: v2.00
[    0.146620] pps_core: LinuxPPS API ver. 1 registered
[    0.146641] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146706] PTP clock support registered
[    0.147794] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148825] Advanced Linux Sound Architecture Driver Initialized.
[    0.151351] clocksource: Switched to clocksource timer
[    0.182591] thermal_sys: Registered thermal governor 'step_wise'
[    0.183392] NET: Registered protocol family 2
[    0.184975] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.185062] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.185122] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.185171] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185506] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185573] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.186148] NET: Registered protocol family 1
[    0.188801] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190666] Initialise system trusted keyrings
[    0.191318] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.214696] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.215372] jffs2: version 2.2. (NAND) (SUMMARY)  漏 2001-2006 Red Hat, Inc.
[    0.327025] Key type asymmetric registered
[    0.327064] Asymmetric key parser 'x509' registered
[    0.327241] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.327269] io scheduler mq-deadline registered
[    0.327288] io scheduler kyber registered
[    0.343718] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.368684] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.375038] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.376392] printk: console [ttyS0] disabled
[    0.396719] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 27, base_baud = 6250000) is a 16550A
[    0.826248] printk: console [ttyS0] enabled
[    0.836190] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.857277] panel-simple panel: panel supply power not found, using dummy regulator
[    0.866940] SCSI Media Changer driver v0.25 
[    0.872868] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.885816] spi-nor spi0.0: found w25q256, expected w25q128
[    0.892243] spi-nor spi0.0: w25q256 (32768 Kbytes)
[    0.898053] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.904521] Creating 5 MTD partitions on "spi0.0":
[    0.909331] 0x000000000000-0x000000070000 : "u-boot"
[    0.917879] 0x000000070000-0x000000080000 : "dtb"
[    0.926134] 0x000000080000-0x000000600000 : "kernel"
[    0.934694] 0x000000600000-0x000000d00000 : "rom"
[    0.942976] 0x000000d00000-0x000001000000 : "overlay"
[    0.952162] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.958693] ehci-platform: EHCI generic platform driver
[    0.964435] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.970663] ohci-platform: OHCI generic platform driver
[    0.976477] usbcore: registered new interface driver usb-storage
[    0.983626] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.997317] i2c /dev entries driver
[    1.001602] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.015223] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.026250] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.034100] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.044170] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.082187] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.091737] usbcore: registered new interface driver usbhid
[    1.097310] usbhid: USB HID core driver
[    1.101564] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.108795] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.120590] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.134570] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.150430] NET: Registered protocol family 17
[    1.155107] Key type dns_resolver registered
[    1.160465] Loading compiled-in X.509 certificates
[    1.179203] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc0739c18)
[    1.188255] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc0739458)
[    1.197859] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0737ff8)
[    1.206423] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc0738d18)
[    1.214200] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.220803] [drm] No driver support for vblank timestamp query.
[    1.228571] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.237599] [drm] kms: can't enable cloning when we probably wanted to.
[    1.282239] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.284863] mmc0: new high speed SDHC card at address aaaa
[    1.287189] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
[    1.310553] Console: switching to colour frame buffer device 100x30
[    1.318923]  mmcblk0: p1 p2 p3
[    1.371145] sun4i-drm soc:display-engine: fb0: sun4i-drmdrmfb frame buffer device
[    1.379621] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    1.397636] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    1.404526] ALSA device list:
[    1.407516]   #0: F1C100s Audio Codec
[    1.411830] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.420512] cfg80211: failed to load regulatory.db
[    1.446990] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null)
[    1.455520] VFS: Mounted root (ext4 filesystem) readonly on device 179:3.
[    1.468263] devtmpfs: mounted
[    1.477848] Freeing unused kernel memory: 1024K
[    1.482624] Run /sbin/init as init process

卡死时, 串口输出信息如下:

U-Boot SPL 2020.07 (Nov 01 2020 - 23:12:46 -0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2020.07 (Nov 01 2020 - 23:12:46 -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 800x480 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!
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
=========================
Boot Device: mmc0
Boot Slot 0: mmc0
Boot Slot 1: spi-nor
=========================
switch to partitions #0, OK
mmc0 is current device
Booting from MMC0...
4318912 bytes read in 700 ms (5.9 MiB/s)
15518 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 816ffc9d ... OK
Cannot setup simplefb: node not found

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.73 (mrcong@ubuntu) (gcc version 8.4.0 (Buildroot 2020.02.4-gf2a581f)) #1 Sun Nov 1 23:13:35 PST 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: 38732K/65536K available (6144K kernel code, 254K rwdata, 1672K rodata, 1024K init, 223K bss, 10420K 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.000140] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000918] Console: colour dummy device 80x30
[    0.001023] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070268] pid_max: default: 32768 minimum: 301
[    0.070801] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070848] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072806] CPU: Testing write buffer coherency: ok
[    0.074949] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076266] devtmpfs: initialized
[    0.088157] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.088222] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.092552] pinctrl core: initialized pinctrl subsystem
[    0.095329] NET: Registered protocol family 16
[    0.099018] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101497] cpuidle: using governor menu
[    0.145199] SCSI subsystem initialized
[    0.145595] usbcore: registered new interface driver usbfs
[    0.145752] usbcore: registered new interface driver hub
[    0.145959] usbcore: registered new device driver usb
[    0.146485] mc: Linux media interface: v0.10
[    0.146624] videodev: Linux video capture interface: v2.00
[    0.146763] pps_core: LinuxPPS API ver. 1 registered
[    0.146784] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.146855] PTP clock support registered
[    0.147949] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000
[    0.148981] Advanced Linux Sound Architecture Driver Initialized.
[    0.151483] clocksource: Switched to clocksource timer
[    0.182697] thermal_sys: Registered thermal governor 'step_wise'
[    0.183488] NET: Registered protocol family 2
[    0.185057] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.185149] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.185208] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.185256] TCP: Hash tables configured (established 1024 bind 1024)
[    0.185577] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.185644] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.186209] NET: Registered protocol family 1
[    0.188852] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.190732] Initialise system trusted keyrings
[    0.191373] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.214706] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.215407] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.328434] Key type asymmetric registered
[    0.328473] Asymmetric key parser 'x509' registered
[    0.328653] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.328679] io scheduler mq-deadline registered
[    0.328696] io scheduler kyber registered
[    0.345091] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.370027] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.376412] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.377767] printk: console [ttyS0] disabled
[    0.398094] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 27, base_baud = 6250000) is a 16550A
[    0.827659] printk: console [ttyS0] enabled
[    0.837463] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    0.858558] panel-simple panel: panel supply power not found, using dummy regulator
[    0.868230] SCSI Media Changer driver v0.25
[    0.874141] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[    0.887104] spi-nor spi0.0: found w25q256, expected w25q128
[    0.893518] spi-nor spi0.0: w25q256 (32768 Kbytes)
[    0.899328] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.905795] Creating 5 MTD partitions on "spi0.0":
[    0.910606] 0x000000000000-0x000000070000 : "u-boot"
[    0.919146] 0x000000070000-0x000000080000 : "dtb"
[    0.927410] 0x000000080000-0x000000600000 : "kernel"
[    0.935962] 0x000000600000-0x000000d00000 : "rom"
[    0.944229] 0x000000d00000-0x000001000000 : "overlay"
[    0.953404] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.959936] ehci-platform: EHCI generic platform driver
[    0.965691] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.971998] ohci-platform: OHCI generic platform driver
[    0.977719] usbcore: registered new interface driver usb-storage
[    0.984864] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    0.998569] i2c /dev entries driver
[    1.002875] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.016524] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.027548] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.035393] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.045451] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.083457] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.092985] usbcore: registered new interface driver usbhid
[    1.098559] usbhid: USB HID core driver
[    1.102823] sunxi-cedar 1c0e000.video-codec: sunxi cedar version 0.01alpha
[    1.110052] sunxi-cedar 1c0e000.video-codec: cedar-ve the get irq is 20
[    1.121968] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.135814] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.151811] NET: Registered protocol family 17
[    1.156361] Key type dns_resolver registered
[    1.161828] Loading compiled-in X.509 certificates
[    1.180485] sun4i-drm soc:display-engine: bound 1e00000.display-frontend (ops 0xc0739c18)
[    1.189540] sun4i-drm soc:display-engine: bound 1e60000.display-backend (ops 0xc0739458)
[    1.199147] sun4i-drm soc:display-engine: bound 1c0c000.lcd-controller (ops 0xc0737ff8)
[    1.207712] sun4i-drm soc:display-engine: bound 1c0a000.tv-encoder (ops 0xc0738d18)
[    1.215492] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.222144] [drm] No driver support for vblank timestamp query.
[    1.229880] [drm] Initialized sun4i-drm 1.0.0 20150629 for soc:display-engine on minor 0
[    1.238915] [drm] kms: can't enable cloning when we probably wanted to.

页脚

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

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