您尚未登录。

楼主 # 2023-02-07 14:00:58

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

新手自制f1c200s开发板

pS2MzX4.png
原理图: SCH_Schematic1_2023-02-07_20230207-2257.pdf
第一次画f1c200s的原理图,不知道某些地方是否合适
供电使用AMS1117,WiFi用的ESP8266EX,SPI连接,MicroSD卡连接的PF处SDC0
不知道画的是否有问题,还没有进行PCB布局
望各位大佬帮忙看看

最近编辑记录 zhou2008 (2023-02-07 22:58:17)

离线

#1 2023-02-07 14:53:27

touchey
会员
注册时间: 2020-05-18
已发帖子: 143
积分: 16

Re: 新手自制f1c200s开发板

SPI的ESP8266EX天坑,一般人填补起来,需谨慎

离线

楼主 #3 2023-02-07 16:20:48

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

touchey 说:

SPI的ESP8266EX天坑,一般人填补起来,需谨慎

感谢提醒,但是我只知道这个芯片,能否推荐几个?

离线

楼主 #4 2023-02-07 21:59:51

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

pS2nTmR.png
开始PCB布局,采用四层板

离线

楼主 #5 2023-02-07 23:02:16

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

pS2QFtx.png
还没有布线
pS2QV1O.png
pS2QZcD.png
3D预览

不知道能不能布通

离线

楼主 #6 2023-02-07 23:23:58

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

最终打算把底下的电容电阻放到上面去,明天继续

最近编辑记录 zhou2008 (2023-02-07 23:39:15)

离线

楼主 #7 2023-02-08 10:49:04

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

pS2chdA.png
pS2c4II.png
开始布线

离线

#8 2023-02-08 11:04:43

sokou
会员
注册时间: 2022-12-04
已发帖子: 40
积分: 25

Re: 新手自制f1c200s开发板

元件不太多。可以考虑把背面的贴片元件都放在正面。

离线

楼主 #9 2023-02-08 16:29:27

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

pSRZmNT.png
pSRZKCF.png
画好了,有时间就去嘉立创白嫖打个板

最近编辑记录 zhou2008 (2023-02-08 16:51:31)

离线

楼主 #10 2023-02-08 16:32:43

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

不知道什么原因,编辑不了最上面的了,就在这里发吧
原理图: SCH_Schematic1_2023-02-08.pdf
pSREPIS.png

离线

#11 2023-02-09 08:35:09

mysteryli
会员
注册时间: 2020-03-05
已发帖子: 481
积分: 386
个人网站

Re: 新手自制f1c200s开发板

啊这
真的不接个屏幕的排线嘛

离线

楼主 #12 2023-02-09 14:40:57

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

没有这方面的需求,所以才没做

离线

#13 2023-02-09 15:02:45

wj8331585
会员
注册时间: 2023-02-07
已发帖子: 44
积分: 19

Re: 新手自制f1c200s开发板

还有空板吗?能否给我一块呢?

离线

楼主 #14 2023-02-09 15:50:13

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

wj8331585 说:

还有空板吗?能否给我一块呢?

四层板,能在嘉立创白嫖,我的板子还在生产
不过不推荐,还没验证
pSW1w1P.png

离线

#15 2023-02-13 20:56:57

李先生
会员
注册时间: 2023-02-13
已发帖子: 4
积分: 4

Re: 新手自制f1c200s开发板

两层板就搞定了,不简单

离线

楼主 #16 2023-02-17 17:14:23

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

板子到了,开始焊接
pSqnEMd.jpg
(嘉立创五张板给我发了六张)

离线

楼主 #17 2023-02-17 21:06:37

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

本该输出1.1v和2.8v的地方却输出4.18v,有人知道怎么解决吗,还是我板子画错了?

离线

楼主 #18 2023-02-17 21:20:01

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

pSqtdFH.png
这块部分的

离线

#19 2023-02-17 21:43:24

LinjieGuo
Moderator
注册时间: 2019-07-24
已发帖子: 565
积分: 570
个人网站

Re: 新手自制f1c200s开发板

不知道有没有兴趣上AP6212呢?
我看RTT是有这个驱动的,感觉可以参考RTT那个APT-Pi的SDK,来开发。

离线

楼主 #20 2023-02-17 21:52:47

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

我发现问题了,在重新打板中:(

离线

楼主 #21 2023-02-17 22:05:24

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

离线

楼主 #22 2023-02-17 22:19:14

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

LinjieGuo 说:

不知道有没有兴趣上AP6212呢?
我看RTT是有这个驱动的,感觉可以参考RTT那个APT-Pi的SDK,来开发。

有时间试试,不过现在我电源部分画错了

离线

楼主 #23 2023-02-24 21:47:23

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

AMS1117的ADJ版本居然不能输出1.1v,测量得到的输出1.6v........

离线

#24 2023-03-01 10:49:36

lztmfx
会员
注册时间: 2023-03-01
已发帖子: 4
积分: 4

Re: 新手自制f1c200s开发板

学习一波,最近也想自己画个F1C200S的板子

离线

楼主 #25 2023-03-04 11:34:15

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

现在焊接好了,就是TXRX指示灯画错了,不过不影响
ppA4XvR.jpg

离线

楼主 #26 2023-03-04 11:36:55

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

连串口后尝试使用荔枝派nano的镜像启动,卡在

U-Boot SPL 2018.01-05676-g00188782ee (Apr 08 2018 - 16:10:25)
DRAM: 64 MiB
Tryi

这里不动

离线

楼主 #27 2023-03-04 11:39:11

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

使用自编译uboot成功进入控制台

U-Boot SPL 2023.04-rc2-00061-g0024e7f72b (Feb 25 2023 - 21:23:54 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2023.04-rc2-00061-g0024e7f72b (Feb 25 2023 - 21:23:54 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner f1c
DRAM:  64 MiB
Core:  27 devices, 15 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
Unknown monitor
Unknown monitor
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
No ethernet found.
missing environment variable: pxeuuid
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
Retrieving file: pxelinux.cfg/000000
No ethernet found.
Retrieving file: pxelinux.cfg/00000
No ethernet found.
Retrieving file: pxelinux.cfg/0000
No ethernet found.
Retrieving file: pxelinux.cfg/000
No ethernet found.
Retrieving file: pxelinux.cfg/00
No ethernet found.
Retrieving file: pxelinux.cfg/0
No ethernet found.
Retrieving file: pxelinux.cfg/default-arm-sunxi-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
=> 

待我研究一下怎么让这玩意跑linux

离线

楼主 #28 2023-03-04 16:17:29

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

很奇怪,uboot能跑起来,却不能跑linux

U-Boot SPL 2023.04-rc3 (Mar 04 2023 - 14:07:34 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2023.04-rc3 (Mar 04 2023 - 14:07:34 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C
DRAM:  64 MiB
Core:  27 devices, 15 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
Unknown monitor
Unknown monitor
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
5194352 bytes read in 218 ms (22.7 MiB/s)
6000 bytes read in 2 ms (2.9 MiB/s)
Kernel image @ 0x80008000 [ 0x000000 - 0x4f4270 ]
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
Working FDT set to 80c08000
   Loading Device Tree to 816fb000, end 816ff76f ... OK
Working FDT set to 816fb000
DE is present but not probed

Starting kernel ...

uboot和linux都是用的主线源码
bootargs:

console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw

bootcmd:

load mmc 0:1 0x80008000 zImage;load mmc 0:1 0x80c08000 myf1c.dtb;bootz 0x80008000 - 0x80c08000;

甚至连报错都没有,直接就卡在这里,有大佬知道怎么解决吗

离线

楼主 #29 2023-03-12 10:42:16

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

我发现AMS1117发热严重,并且卡住时电流只有0.18A,是不是1117带不动f1c200s呢?
ppMCjuF.jpg

离线

#30 2023-03-12 11:22:04

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 新手自制f1c200s开发板

core核心那组电压不建议用LDO






全志taobao: V3s / F1C100s / F1C200s / D1-H / D1s / T113-S3 / XR32 / XR829 / A523 / A133 / H133 / V831 / V851s / V853
航芯taobao:ACM32烧录器 / ACM32开发板 / ACM32芯片

离线

楼主 #31 2023-03-12 13:18:32

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

使用外接DCDC 1.2v电源给CORE供电后,问题依旧
ppMmu5D.jpg

离线

#32 2023-03-12 13:47:28

哇酷小二
wechat微信:whycan_cn
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,378
积分: 1902
个人网站

Re: 新手自制f1c200s开发板

zhou2008 说:

使用外接DCDC 1.2v电源给CORE供电后,问题依旧
https://s1.ax1x.com/2023/03/12/ppMmu5D.jpg


换一个固件试一试


分享一个 5寸的 800x480 的 f1c100s 固件, 感谢 @xm1994,   调试串口UART0 (PB8/PB9)
https://whycan.com/t_2689.html






全志taobao: V3s / F1C100s / F1C200s / D1-H / D1s / T113-S3 / XR32 / XR829 / A523 / A133 / H133 / V831 / V851s / V853
航芯taobao:ACM32烧录器 / ACM32开发板 / ACM32芯片

离线

楼主 #33 2023-03-12 14:12:35

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

我的板子没有设计spi flash,只有microSD卡槽,所以我使用命令

dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1024 seek=8

写入到卡后,上电开机串口显示

U-Boot SPL 2018.01-05684-gb7dcb96-dirty (Jul 21 2019 - 21:23:17)
DRAM: 64 MiB
SPL: Unsupported Boot Device!
Trying to boot from sunxi SPI

并未成功启动

离线

楼主 #34 2023-03-12 16:00:43

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

U-Boot SPL 2018.01-05682-gd83b2fe-dirty (Aug 27 2019 - 15:04:43)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2018.01-05682-gd83b2fe-dirty (Aug 27 2019 - 15:04:43 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
Using default environment

Setting up a 800x480 lcd console (overscan 0x0)
In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Hit any key to stop autoboot:  0 
reading zImage
3891016 bytes read in 202 ms (18.4 MiB/s)
reading splash.bmp
385078 bytes read in 40 ms (9.2 MiB/s)
reading dtb.bin
10119 bytes read in 23 ms (428.7 KiB/s)
## Flattened Device Tree blob at 80c00000
   Booting using the fdt blob at 0x80c00000
   Loading Device Tree to 82e69000, end 82e6e786 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.15.0-licheepi-nano+ (root@ubuntu) (gcc version 7.4.0 (Buildroot 2019.02.2)) #29
[    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: Lichee Pi Nano
[    0.000000] Memory policy: Data cache writeback
[    0.000000] random: fast init done
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw vt.global_cu0
[    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: 55160K/65536K available (6144K kernel code, 236K rwdata, 1412K rodata, 1024K init, 245)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (7136 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 237 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 246 kB)
[    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.000052] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000121] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000749] Console: colour dummy device 80x30
[    0.000846] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070247] pid_max: default: 32768 minimum: 301
[    0.070581] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070628] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.072201] CPU: Testing write buffer coherency: ok
[    0.074061] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076759] devtmpfs: initialized
[    0.084562] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 s
[    0.084629] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.084912] pinctrl core: initialized pinctrl subsystem
[    0.087174] NET: Registered protocol family 16
[    0.089001] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.091122] cpuidle: using governor menu
[    0.119919] SCSI subsystem initialized
[    0.120450] usbcore: registered new interface driver usbfs
[    0.120618] usbcore: registered new interface driver hub
[    0.120840] usbcore: registered new device driver usb
[    0.121341] pps_core: LinuxPPS API ver. 1 registered
[    0.121366] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.121423] PTP clock support registered
[    0.121944] Advanced Linux Sound Architecture Driver Initialized.
[    0.124015] clocksource: Switched to clocksource timer
[    0.152791] NET: Registered protocol family 2
[    0.154482] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.154565] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.154623] TCP: Hash tables configured (established 1024 bind 1024)
[    0.154967] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.155028] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.155571] NET: Registered protocol family 1
[    0.156900] RPC: Registered named UNIX socket transport module.
[    0.156947] RPC: Registered udp transport module.
[    0.156963] RPC: Registered tcp transport module.
[    0.156979] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.159254] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.161274] Initialise system trusted keyrings
[    0.161856] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.180254] NFS: Registering the id_resolver key type
[    0.180332] Key type id_resolver registered
[    0.180350] Key type id_legacy registered
[    0.180461] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.195746] Key type asymmetric registered
[    0.195785] Asymmetric key parser 'x509' registered
[    0.195976] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.196007] io scheduler noop registered
[    0.196028] io scheduler deadline registered
[    0.196833] io scheduler cfq registered (default)
[    0.196870] io scheduler mq-deadline registered
[    0.196890] io scheduler kyber registered
[    0.198232] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
[    0.208682] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.396199] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.403202] console [ttyS0] disabled
[    0.423481] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 27, base_baud = 6250000) is a 16550A
[    0.896739] console [ttyS0] enabled
[    0.923088] 1c25800.serial: ttyS2 at MMIO 0x1c25800 (irq = 28, base_baud = 6250000) is a 16550A
[    0.940233] panel-simple panel: panel supply power not found, using dummy regulator
[    0.949578] SCSI Media Changer driver v0.25 
[    0.957934] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[    0.964921] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.971455] ehci-platform: EHCI generic platform driver
[    0.977127] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.983362] ohci-platform: OHCI generic platform driver
[    0.989141] usbcore: registered new interface driver usb-storage
[    0.997300] input: 1c23400.lradc as /devices/platform/soc/1c23400.lradc/input/input0
[    1.007762] input: 1c24800.rtp as /devices/platform/soc/1c24800.rtp/input/input1
[    1.016265] i2c /dev entries driver
[    3.124098] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[    3.130664] rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-110 addr=0e, data=03
[    3.138378] rtc-pcf8563 0-0051: pcf8563_probe: write error
[    3.143986] rtc-pcf8563: probe of 0-0051 failed with error -5
[    3.152320] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.214162] sunxi-mmc 1c0f000.mmc: base:0xabd39341 irq:20
[    3.221872] usbcore: registered new interface driver usbhid
[    3.227581] usbhid: USB HID core driver
[    3.250916] NET: Registered protocol family 17
[    3.255748] Key type dns_resolver registered
[    3.262501] Loading compiled-in X.509 certificates
[    3.282553] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0739c18)
[    3.291492] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc0738efc)
[    3.299273] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    3.305930] [drm] No driver support for vblank timestamp query.
[    3.351512] mmc0: host does not support reading read-only switch, assuming write-enable
[    3.353646] mmc0: new high speed SDXC card at address 59b4
[    3.354883] mmcblk0: mmc0:59b4 SD    57.8 GiB 
[    3.357538]  mmcblk0: p1 p2
[    3.505136] Console: switching to colour frame buffer device 100x30
[    3.564690] sun4i-drm display-engine: fb0:  frame buffer device
[    3.571989] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0
[    3.581253] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dumr
[    3.593285] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    3.599240] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[    3.609414] hub 1-0:1.0: USB hub found
[    3.613345] hub 1-0:1.0: 1 port detected
[    3.619344] hctosys: unable to open rtc device (rtc0)
[    3.625025] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.642489] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.649406] ALSA device list:
[    3.652399]   #0: Loopback 1
[    3.656268] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.665025] cfg80211: failed to load regulatory.db
[    3.672642] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
[    3.720313] EXT4-fs (mmcblk0p2): recovery complete
[    3.731937] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.740291] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.749606] devtmpfs: mounted
[    3.760121] Freeing unused kernel memory: 1024K
[    3.929073] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Starting syslogd: OK
uVideoSize = 0x177000
var.xres = 0x320
var.yres = 0x1e0
pVideoBuffer = 0xb6dd8000
Touch Task thread
Touch Task start
Main Task thread
Starting klogd: OK
Starting mdev...
[    6.475334] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fs.
Initializing random number generator... done.
Starting network: OK
[   10.901051] file system registered
install_listener('tcp:5037','*smartsocket*')
[   11.231481] read descriptors
[   11.241498] read strings
[   11.244475] g_ffs gadget: g_ffs ready
[   11.262886] uart closed, irq=27 ..................... 

Welcome to Buildroot
buildroot login: 
 

成功启动了,感谢提供固件,但是我想要自己编译linux和uboot,有无相关教程或参考配置?

离线

#35 2023-03-12 22:14:44

baidxi
会员
注册时间: 2018-10-27
已发帖子: 32
积分: 31.5

Re: 新手自制f1c200s开发板

@zhou2008
还好.这个我有经验.可以自己手搓WIFI驱动出来.

离线

#36 2023-03-16 21:06:41

iufly
会员
注册时间: 2023-02-19
已发帖子: 21
积分: 1

Re: 新手自制f1c200s开发板

楼主你的问题解决了吗,我也是自己做的板子,启动一直开在这里,用的也是荔枝派nano的固件
_20230312194137.png

离线

楼主 #37 2023-03-17 20:53:56

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

我回复的可能有点迟,因为我才初中,只有周末才有时间
启动时卡住的话换个固件试试?

离线

楼主 #38 2023-03-17 23:23:47

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

https://github.com/Lichee-Pi/linux/blob/nano-5.2-tf/arch/arm/configs/licheepi_nano_defconfig
主线kernel也可以用这个config编译,然后buildroot生成个rootfs就能跑了

离线

楼主 #39 2023-03-18 22:02:04

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

貌似esp8266ex跑不起来?

dts如下:

// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
 */

/dts-v1/;
#include "suniv-f1c100s.dtsi"

/ {
        model = "Allwinner F1C";
        compatible = "allwinner,suniv-f1c100s";

        aliases {
                serial0 = &uart0;
        };

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

        reg_vcc3v3: vcc3v3 {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };
};

&pio {
    spi0_pd_pins: spi0-pd-pins {
        pins = "PD18", "PD19", "PD20", "PD21";
        function = "spi0";
    };
};

&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_pd_pins>;
    status = "okay";

    esp8089@0 {
            status = "okay";
            compatible = "boss,esp8089";
            spi-cpol;
            spi-cpha;
            reg = <0>;
            spi-max-frequency = <30000000>;
            reset= <104>; // PD7
            interrupt= <105>; // PD8 
            debug= <0>;
    };
};

&mmc0 {
        broken-cd;
        bus-width = <4>;
        disable-wp;
        status = "okay";
        vmmc-supply = <&reg_vcc3v3>;
};

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

部分日志:

[    1.222348] ESP8089_init Enter
[    2.822052] esp8089_spi: No dev using spi! 
[    2.826884] esp8089_spi: esp_spi_dummy_probe enter
[    2.831909] esp8089_spi: register board OK
[    2.836018] esp8089_spi: sem_timeout = 0
[    2.840446] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    2.877963] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.923396] mmc0: new high speed SDXC card at address 59b4
[    2.930974] mmcblk0: mmc0:59b4 SD    57.8 GiB 
[    2.940052]  mmcblk0: p1 p2
[    3.050976] esp8089 spi0.0: succeed get all info from dt!
[    3.050976]  
[    3.057967] esp8089 spi0.0: succeed Cover esp_interrupt esp_reset_gpio !
[    3.057967]  
[    3.066322] esp8089 spi0.0: interrupt_gpio: 105, reset_gpio : 104!
[    3.066322]  
[    3.074110] esp8089 spi0.0: Finish got dt data
[    3.078555] esp8089_spi: esp_spi_probe ENTER
[    3.082860] esp8089_spi: esp_spi_probe Set CS LOW
[    3.087648] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    3.096912] esp8089_spi: esp_setup_spi
[    3.100798] esp8089_spi: sif_spi_protocol_init
[    3.105254] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.111642] esp8089_spi: fail_count = 0
[    3.217257] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.324874] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.331257] esp8089_spi: fail_count = 1
[    3.436838] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.544453] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.550840] esp8089_spi: fail_count = 2
[    3.656377] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.763982] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.770334] esp8089_spi: fail_count = 3
[    3.875898] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.983527] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.989879] esp8089_spi: fail_count = 4
[    4.095491] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.203166] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.209519] esp8089_spi: fail_count = 5
[    4.315092] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.422702] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.429056] esp8089_spi: fail_count = 6
[    4.534644] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.642252] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.648603] esp8089_spi: fail_count = 7
[    4.754152] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.861770] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.868122] esp8089_spi: fail_count = 8
[    4.973674] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.081322] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.087676] esp8089_spi: fail_count = 9
[    5.193300] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.300959] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.307311] esp8089_spi: fail_count = 10
[    5.412970] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.520583] esp8089_spi: first error exit
[    5.524608] esp8089_spi: esp_spi_probe EXIT
[    5.528848] esp8089: probe of spi0.0 failed with error -110
[    5.534590] esp8089_spi: sem_timeout = 0
[    5.538526] esp8089_spi: esp_spi_init err 0

参考了https://www.cnblogs.com/twzy/p/15160808.html但是还是不行

原理图:MHVrJ.png
RST接到PD7,INT接到PD8,SPI 4线接到PD18-21
M2sB3.png
我看了下数据手册这部分应该是可以被复用为SPI0的,但是却没有成功跑起来,是什么原因呢

最近编辑记录 zhou2008 (2023-03-18 22:03:44)

离线

楼主 #40 2023-03-18 22:02:23

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

完整日志:

U-Boot SPL 2023.04-rc4 (Mar 17 2023 - 21:26:23 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2023.04-rc4 (Mar 17 2023 - 21:26:23 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C
DRAM:  64 MiB
Core:  27 devices, 15 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
Unknown monitor
Unknown monitor
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet 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
256 bytes read in 2 ms (125 KiB/s)
## Executing script at 81d40000
4588720 bytes read in 194 ms (22.6 MiB/s)
5877 bytes read in 3 ms (1.9 MiB/s)
Kernel image @ 0x80008000 [ 0x000000 - 0x4604b0 ]
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
Working FDT set to 80c08000
   Loading Device Tree to 816fb000, end 816ff6f4 ... OK
Working FDT set to 816fb000
DE is present but not probed

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.175 (zhou2008@zhou2008-Arch) (arm-none-eabi-gcc (Arch Repository) 12.2.0, GNU ld (GNU Binutils) 2.39) #3 Sat Mar 18 17:07:31 CST 2023
[    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: Allwinner F1C
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 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: 53592K/65536K available (7168K kernel code, 804K rwdata, 1580K rodata, 1024K init, 236K bss, 11944K reserved, 0K cma-reserved, 0K highmem)
[    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.000053] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000150] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000815] Console: colour dummy device 80x30
[    0.000932] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070288] pid_max: default: 32768 minimum: 301
[    0.070846] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070903] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072741] CPU: Testing write buffer coherency: ok
[    0.075065] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076541] devtmpfs: initialized
[    0.081737] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.081822] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.082147] pinctrl core: initialized pinctrl subsystem
[    0.085554] NET: Registered protocol family 16
[    0.086911] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.089223] thermal_sys: Registered thermal governor 'step_wise'
[    0.089369] cpuidle: using governor menu
[    0.126540] usbcore: registered new interface driver usbfs
[    0.126729] usbcore: registered new interface driver hub
[    0.126892] usbcore: registered new device driver usb
[    0.127328] pps_core: LinuxPPS API ver. 1 registered
[    0.127364] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.128090] Advanced Linux Sound Architecture Driver Initialized.
[    0.130476] clocksource: Switched to clocksource timer
[    0.160584] NET: Registered protocol family 2
[    0.161193] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.162585] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.162720] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.162786] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.162840] TCP: Hash tables configured (established 1024 bind 1024)
[    0.163124] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.163195] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.163732] NET: Registered protocol family 1
[    0.167548] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.169249] Initialise system trusted keyrings
[    0.170009] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.494950] Key type asymmetric registered
[    0.495013] Asymmetric key parser 'x509' registered
[    0.495193] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.495236] io scheduler mq-deadline registered
[    0.495262] io scheduler kyber registered
[    0.506408] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.687103] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.693107] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.695046] printk: console [ttyS0] disabled
[    0.715442] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[    1.134812] printk: console [ttyS0] enabled
[    1.147412] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.160244] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.166910] ehci-platform: EHCI generic platform driver
[    1.172464] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.178713] ohci-platform: OHCI generic platform driver
[    1.184803] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    1.193763] i2c /dev entries driver
[    1.199061] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.210210] usbcore: registered new interface driver usbhid
[    1.215917] usbhid: USB HID core driver
[    1.219765] TESETS hava!
[    1.222348] ESP8089_init Enter
[    2.822052] esp8089_spi: No dev using spi! 
[    2.826884] esp8089_spi: esp_spi_dummy_probe enter
[    2.831909] esp8089_spi: register board OK
[    2.836018] esp8089_spi: sem_timeout = 0
[    2.840446] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    2.877963] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.923396] mmc0: new high speed SDXC card at address 59b4
[    2.930974] mmcblk0: mmc0:59b4 SD    57.8 GiB 
[    2.940052]  mmcblk0: p1 p2
[    3.050976] esp8089 spi0.0: succeed get all info from dt!
[    3.050976]  
[    3.057967] esp8089 spi0.0: succeed Cover esp_interrupt esp_reset_gpio !
[    3.057967]  
[    3.066322] esp8089 spi0.0: interrupt_gpio: 105, reset_gpio : 104!
[    3.066322]  
[    3.074110] esp8089 spi0.0: Finish got dt data
[    3.078555] esp8089_spi: esp_spi_probe ENTER
[    3.082860] esp8089_spi: esp_spi_probe Set CS LOW
[    3.087648] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    3.096912] esp8089_spi: esp_setup_spi
[    3.100798] esp8089_spi: sif_spi_protocol_init
[    3.105254] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.111642] esp8089_spi: fail_count = 0
[    3.217257] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.324874] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.331257] esp8089_spi: fail_count = 1
[    3.436838] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.544453] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.550840] esp8089_spi: fail_count = 2
[    3.656377] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.763982] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.770334] esp8089_spi: fail_count = 3
[    3.875898] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.983527] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.989879] esp8089_spi: fail_count = 4
[    4.095491] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.203166] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.209519] esp8089_spi: fail_count = 5
[    4.315092] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.422702] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.429056] esp8089_spi: fail_count = 6
[    4.534644] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.642252] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.648603] esp8089_spi: fail_count = 7
[    4.754152] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.861770] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.868122] esp8089_spi: fail_count = 8
[    4.973674] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.081322] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.087676] esp8089_spi: fail_count = 9
[    5.193300] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.300959] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.307311] esp8089_spi: fail_count = 10
[    5.412970] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.520583] esp8089_spi: first error exit
[    5.524608] esp8089_spi: esp_spi_probe EXIT
[    5.528848] esp8089: probe of spi0.0 failed with error -110
[    5.534590] esp8089_spi: sem_timeout = 0
[    5.538526] esp8089_spi: esp_spi_init err 0
[    5.559065] NET: Registered protocol family 10
[    5.566466] Segment Routing with IPv6
[    5.570563] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.579386] Loading compiled-in X.509 certificates
[    5.595994] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.614865] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.621764] ALSA device list:
[    5.624764]   #0: Loopback 1
[    5.628606] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.637344] cfg80211: failed to load regulatory.db
[    5.780589] EXT4-fs (mmcblk0p2): recovery complete
[    5.791572] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.799826] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.808920] devtmpfs: mounted
[    5.816558] Freeing unused kernel memory: 1024K
[    5.821322] Run /sbin/init as init process
[    5.943345] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    6.555855] random: dd: uninitialized urandom read (32 bytes read)
OK
Starting network: OK

Welcome to Buildroot
buildroot login: 

离线

楼主 #41 2023-03-19 13:55:46

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

貌似我知道问题所在了,ESP8266EX是主机,而ESP8089才是从机...
开始还以为这两都一样,丢脸了......

离线

#42 2023-03-21 09:53:11

Aryeduino
会员
注册时间: 2023-03-21
已发帖子: 12
积分: 7

Re: 新手自制f1c200s开发板

where can I get the board? thanks

离线

#43 2023-03-24 15:19:17

iufly
会员
注册时间: 2023-02-19
已发帖子: 21
积分: 1

Re: 新手自制f1c200s开发板

我找到问题所在了,是我在淘宝买的这个芯片本身有问题,我重新买了一个换上去就可以从TF卡启动了

离线

楼主 #44 2023-03-25 17:21:12

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

Aryeduino 说:

where can I get the board? thanks

Please wait,the board isn't ready.

离线

楼主 #45 2023-03-25 20:31:46

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

电源芯片换成了EA3059C和一个XC6202
目前换上了ESP8089,但还是不能驱动起来,日志:

U-Boot SPL 2023.04-rc4 (Mar 17 2023 - 21:26:23 +0800)
DRAM: 64 MiB
Trying to boot from MMC1


U-Boot 2023.04-rc4 (Mar 17 2023 - 21:26:23 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C
DRAM:  64 MiB
Core:  27 devices, 15 uclasses, devicetree: separate
WDT:   Not starting watchdog@1c20ca0
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
Unknown monitor
Unknown monitor
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet 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
256 bytes read in 2 ms (125 KiB/s)
## Executing script at 81d40000
4588720 bytes read in 194 ms (22.6 MiB/s)
5877 bytes read in 3 ms (1.9 MiB/s)
Kernel image @ 0x80008000 [ 0x000000 - 0x4604b0 ]
## Flattened Device Tree blob at 80c08000
   Booting using the fdt blob at 0x80c08000
Working FDT set to 80c08000
   Loading Device Tree to 816fb000, end 816ff6f4 ... OK
Working FDT set to 816fb000
DE is present but not probed

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.175 (zhou2008@zhou2008-Arch) (arm-none-eabi-gcc (Arch Repository) 12.2.0, GNU ld (GNU Binutils) 2.39) #3 Sat Mar 18 17:07:31 CST 2023
[    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: Allwinner F1C
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x0000000083ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 panic=5 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: 53592K/65536K available (7168K kernel code, 804K rwdata, 1580K rodata, 1024K init, 236K bss, 11944K reserved, 0K cma-reserved, 0K highmem)
[    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.000053] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000150] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000814] Console: colour dummy device 80x30
[    0.000933] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070289] pid_max: default: 32768 minimum: 301
[    0.070846] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070903] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072742] CPU: Testing write buffer coherency: ok
[    0.075067] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076542] devtmpfs: initialized
[    0.081736] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.081822] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.082145] pinctrl core: initialized pinctrl subsystem
[    0.085537] NET: Registered protocol family 16
[    0.086890] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.089202] thermal_sys: Registered thermal governor 'step_wise'
[    0.089348] cpuidle: using governor menu
[    0.126548] usbcore: registered new interface driver usbfs
[    0.126734] usbcore: registered new interface driver hub
[    0.126902] usbcore: registered new device driver usb
[    0.127337] pps_core: LinuxPPS API ver. 1 registered
[    0.127374] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.128098] Advanced Linux Sound Architecture Driver Initialized.
[    0.130474] clocksource: Switched to clocksource timer
[    0.160598] NET: Registered protocol family 2
[    0.161213] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.162608] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.162743] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.162810] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.162865] TCP: Hash tables configured (established 1024 bind 1024)
[    0.163146] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.163220] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.163755] NET: Registered protocol family 1
[    0.167563] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.169272] Initialise system trusted keyrings
[    0.170065] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.488064] Key type asymmetric registered
[    0.488129] Asymmetric key parser 'x509' registered
[    0.488310] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.488355] io scheduler mq-deadline registered
[    0.488382] io scheduler kyber registered
[    0.499492] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.679979] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.685989] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
[    0.687928] printk: console [ttyS0] disabled
[    0.708300] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 25, base_baud = 6250000) is a 16550A
[    1.127607] printk: console [ttyS0] enabled
[    1.140171] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pd not found, using dummy regulator
[    1.153100] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.159649] ehci-platform: EHCI generic platform driver
[    1.165283] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.171621] ohci-platform: OHCI generic platform driver
[    1.177611] udc-core: couldn't find an available UDC - added [zero] to list of pending drivers
[    1.186593] i2c /dev entries driver
[    1.192014] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.203215] usbcore: registered new interface driver usbhid
[    1.208806] usbhid: USB HID core driver
[    1.212752] TESETS hava!
[    1.215295] ESP8089_init Enter
[    2.814986] esp8089_spi: No dev using spi! 
[    2.819826] esp8089_spi: esp_spi_dummy_probe enter
[    2.824851] esp8089_spi: register board OK
[    2.828961] esp8089_spi: sem_timeout = 0
[    2.833458] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    2.870843] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    2.916241] mmc0: new high speed SDXC card at address 59b4
[    2.923763] mmcblk0: mmc0:59b4 SD    57.8 GiB 
[    2.932953]  mmcblk0: p1 p2
[    3.050976] esp8089 spi0.0: succeed get all info from dt!
[    3.050976]  
[    3.057967] esp8089 spi0.0: succeed Cover esp_interrupt esp_reset_gpio !
[    3.057967]  
[    3.066320] esp8089 spi0.0: interrupt_gpio: 105, reset_gpio : 104!
[    3.066320]  
[    3.074114] esp8089 spi0.0: Finish got dt data
[    3.078561] esp8089_spi: esp_spi_probe ENTER
[    3.082866] esp8089_spi: esp_spi_probe Set CS LOW
[    3.087653] suniv-f1c100s-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    3.096919] esp8089_spi: esp_setup_spi
[    3.100807] esp8089_spi: sif_spi_protocol_init
[    3.105263] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.111655] esp8089_spi: fail_count = 0
[    3.217261] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.324873] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.331258] esp8089_spi: fail_count = 1
[    3.436836] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.544455] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.550842] esp8089_spi: fail_count = 2
[    3.656378] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.763984] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.770333] esp8089_spi: fail_count = 3
[    3.875895] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    3.983527] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    3.989881] esp8089_spi: fail_count = 4
[    4.095495] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.203166] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.209519] esp8089_spi: fail_count = 5
[    4.315083] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.422702] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.429054] esp8089_spi: fail_count = 6
[    4.534646] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.642257] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.648611] esp8089_spi: fail_count = 7
[    4.754154] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    4.861760] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    4.868112] esp8089_spi: fail_count = 8
[    4.973663] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.081298] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.087651] esp8089_spi: fail_count = 9
[    5.193270] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.300932] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.307286] esp8089_spi: fail_count = 10
[    5.412953] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.520585] esp8089_spi: first error exit
[    5.524610] esp8089_spi: esp_spi_probe EXIT
[    5.528849] esp8089: probe of spi0.0 failed with error -110
[    5.534590] esp8089_spi: sem_timeout = 0
[    5.538525] esp8089_spi: esp_spi_init err 0
[    5.559049] NET: Registered protocol family 10
[    5.566462] Segment Routing with IPv6
[    5.570560] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.579382] Loading compiled-in X.509 certificates
[    5.596110] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.614978] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.621878] ALSA device list:
[    5.624877]   #0: Loopback 1
[    5.628714] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.637454] cfg80211: failed to load regulatory.db
[    5.686955] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.695323] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.704528] devtmpfs: mounted
[    5.712125] Freeing unused kernel memory: 1024K
[    5.716799] Run /sbin/init as init process
[    5.842587] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator: OK
Saving random seed: [    6.456182] random: dd: uninitialized urandom read (32 bytes read)
OK
Starting network: OK

Welcome to Buildroot
buildroot login: 

原理图:ppDozjA.png
dts同上

离线

楼主 #46 2023-03-25 20:32:11

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

有没有大佬能帮忙看看

离线

楼主 #47 2023-03-31 21:45:45

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

ESP WIFI仍未驱动起来
目前情况:
- 部分日志:

[    4.964579] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.072209] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.078563] esp8089_spi: fail_count = 9
[    5.184178] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.291839] esp8089_spi: drivers/staging/esp8089/spi_sif_esp.c, 1563
[    5.298193] esp8089_spi: fail_count = 10
[    5.403853] rx:[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff],[0xff]
[    5.511481] esp8089_spi: first error exit
[    5.515509] esp8089_spi: esp_spi_probe EXIT
[    5.519748] esp8089: probe of spi0.0 failed with error -110
[    5.525500] esp8089_spi: sem_timeout = 0
[    5.529435] esp8089_spi: esp_spi_init err 0

- /sys/class/spi_master中存在spi0
- 启动后无wlan0
已尝试以下方法:
- 更换ESP8089/ESP8266EX芯片
- 修改设备树中pins的顺序
- 添加spidev,启动报错,貌似spi0被spidev占用

离线

楼主 #48 2023-03-31 21:47:15

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

DTS:

// SPDX-License-Identifier: (GPL-2.0+ OR X11)
/*
 * Copyright 2018 Icenowy Zheng <icenowy@aosc.io>
 */

/dts-v1/;
#include "suniv-f1c100s.dtsi"

/ {
        model = "Allwinner F1C";
        compatible = "allwinner,suniv-f1c100s";

        aliases {
                serial0 = &uart0;
                mmc0 = &mmc0;
                spi0 = &spi0;
        };

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

        reg_vcc3v3: vcc3v3 {
                compatible = "regulator-fixed";
                regulator-name = "vcc3v3";
                regulator-min-microvolt = <3300000>;
                regulator-max-microvolt = <3300000>;
        };
};

&pio {
    spi0_pd_pins: spi0-pd-pins {
        pins = "PD20", "PD18", "PD21", "PD19";
        function = "spi0";
    };
};

&spi0 {
    pinctrl-names = "default";
    pinctrl-0 = <&spi0_pd_pins>;
    status = "okay";

    esp8089@0 {
            status = "okay";
            compatible = "boss,esp8089";
            spi-cpol;
            spi-cpha;
            reg = <0>;
            spi-max-frequency = <30000000>;
            reset= <104>; // PD7
            interrupt= <105>; // PD8 
            debug= <0>;
    };
};

&mmc0 {
        broken-cd;
        bus-width = <4>;
        disable-wp;
        status = "okay";
        vmmc-supply = <&reg_vcc3v3>;
};

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

&usb_otg {
    dr_mode = "host"; /* 三个可选项: otg / host / peripheral */
    status = "okay";
};

最近编辑记录 zhou2008 (2023-03-31 21:51:14)

离线

楼主 #49 2023-05-01 12:52:38

zhou2008
会员
注册时间: 2022-06-24
已发帖子: 50
积分: 76

Re: 新手自制f1c200s开发板

嗯...最后还是解决不了ESP8089,这个项目烂尾了
https://oshwhub.com/zhou2008/f1c200s

离线

#50 2023-05-01 16:22:21

sh200436
会员
注册时间: 2023-02-23
已发帖子: 33
积分: 8

Re: 新手自制f1c200s开发板

zhou2008 说:

嗯...最后还是解决不了ESP8089,这个项目烂尾了
https://oshwhub.com/zhou2008/f1c200s

楼主可以先做一块或买一块论坛里大佬们使用的各种开发板。
先把软件跑通,然后再根据他们的开发板,比着设计一款满足自己需求的板子。
如果一开始就自己设计,容易跳进各种软件、硬件的坑里。

离线

页脚

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

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