您尚未登录。

楼主 # 2022-11-28 11:49:04

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

身在帝都,最近疫情高发,器件除了用顺丰其他快递都停了,邮费太贵了,先缓缓了。先多做些设计,画一块F1C200S的小板玩玩。
小板参考了论坛好几位前辈的板子,放置了R8025 做为RTC,背了一个C1220的小电池,其他基本没有啥变化 。准备白嫖JLC。
放上原理图:
F1C200S_DIY.pdf

f1c200s.png

离线

楼主 #2 2022-11-28 16:25:19

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

lanlanzhilian 说:

还有人用microUSB

嗯,谢谢提醒,我手里的MicroUSB口还有几十支存货,就用了。Type-C的放这个板子,空间也可以。

离线

楼主 #3 2022-12-20 00:32:40

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

板子做回来了,手焊了2片,现在板上还缺少几个器件,还没有寄到(北京的快递还是发不出来),初步测试,USB可以枚举到FEL,各部分的电压是对的。串口debug信息还没有显示,因为USB转ttl的芯片还没有寄到。f1c200s.jpg

离线

楼主 #7 2022-12-20 15:14:35

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

Gentlepig 说:

ch340换个ssop封装或换个8脚的会更好看点。

那个脚多的不是CH340,是RTC Rx8025,实际CH340我用的SSOP10的封装的。

离线

楼主 #11 2022-12-22 22:05:04

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

骑猪去看海 说:

想复刻白嫖JLC,不知道有没有链接~~~~

目前还没有测试,有设计上自我感觉不完美的地,暂时还没有放出文件。

离线

楼主 #13 2022-12-23 23:42:53

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

@Gentlepig
板子设计的是4层板,现在还缺少2个器件,我对Linux不是太熟,现在刚建起Uboot的编译环境,还在学习中。没有下载固件测试呢。

离线

楼主 #14 2023-01-18 16:22:11

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

1,个人资料里面没有自己的发贴列表,不知道在哪里可以看到。
2,好久没有实际的进展了,最近收到了一批快递,终于。。终于把这个板子焊齐了。
3,最近在学习编译uboot、内核、buildroot,现在都可以正确编译了,但是还没有烧录测试,不知道是不是能够运行在芯片里。
4,使用sunxi-fel工具把uboot烧进了SPIFlash里,串口工具里面看到了log信息。

  因为这是我刚开始学习Linux的开发,进展比较慢;
  这是CuteCom软件的uboot的输出信息,现在还不知道uboot是不是正确的,自己学着编译的版本,不是网上下载的。
 

  
U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Jan 13 2023 - 17:44:02)
DRAM: 64 MiB
Trying to boot from MMC1
Card did not respond to voltage select!
mmc_init: -95, time 22
spl: mmc init failed with error: -95
Trying to boot from sunxi SPI


U-Boot 2018.01-05679-g013ca457fd-dirty (Jan 13 2023 - 17:44:02 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Lichee Pi Nano
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@1c25000
Out:   serial@1c25000
Err:   serial@1c25000
Net:   No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot:  2  1  0 
SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x4000
SF: 16384 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
=> 
  

离线

楼主 #16 2023-02-03 12:54:37

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

自己编译了u-boot,linux,buildroot,打包烧到了SpiFlash里,只启动了uboot,没有引导系统,不知道是哪里的原因。.config文件是论坛下载的,uboot编译完了大小是182940字节。不知道是应该查uboot,还是查linux。
下面是uboot 的log,感觉像是没有引导。

[12:47:48:885] U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Feb 02 2023 - 09:36:48)␍␊
[12:47:48:891] DRAM: 64 MiB␍␊
[12:47:48:903] SPL: Unsupported Boot Device!␍␊
[12:47:48:906] Trying to boot from sunxi SPI␍␊
[12:47:49:161] ␍␊
[12:47:49:161] ␍␊
[12:47:49:161] U-Boot 2018.01-05679-g013ca457fd-dirty (Feb 02 2023 - 09:36:48 +0000) Allwinner Technology␍␊
[12:47:49:169] ␍␊
[12:47:49:169] CPU:   Allwinner F Series (SUNIV)␍␊
[12:47:49:172] Model: Lichee Pi Nano␍␊
[12:47:49:172] DRAM:  64 MiB␍␊
[12:47:49:690] Using default environment␍␊
[12:47:49:690] ␍␊
[12:47:49:690] In:    serial@1c25000␍␊
[12:47:49:693] Out:   serial@1c25000␍␊
[12:47:49:696] Err:   serial@1c25000␍␊
[12:47:49:700] => 

最近编辑记录 pldjn_V3S (2023-02-03 13:40:01)

离线

楼主 #17 2023-02-03 15:02:13

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

研究U-boot,看看是不是Linux引导的地址不对,下面这些参数我现在还看不懂。一个个的放狗找,找找系统的介绍。

[14:24:12:844] => bdinfo␍␊
[14:24:58:592] arch_number = 0x00000000␍␊
[14:24:58:594] boot_params = 0x80000100␍␊
[14:24:58:594] DRAM bank   = 0x00000000␍␊
[14:24:58:597] -> start    = 0x80000000␍␊
[14:24:58:600] -> size     = 0x04000000␍␊
[14:24:58:603] baudrate    = 115200 bps␍␊
[14:24:58:606] TLB addr    = 0x83FF0000␍␊
[14:24:58:606] relocaddr   = 0x83FC9000␍␊
[14:24:58:608] reloc off   = 0x028C9000␍␊
[14:24:58:611] irq_sp      = 0x83EA6DB0␍␊
[14:24:58:614] sp start    = 0x83EA6DA0␍␊
[14:24:58:617] Early malloc usage: 118 / 400␍␊
[14:24:58:619] fdt_blob = 83ea6dc8␍␊
[14:24:58:619] => ␍␊
[14:24:58:651] => printenv␍␊
[14:43:19:897] arch=arm␍␊
[14:43:19:897] baudrate=115200␍␊
[14:43:19:900] board=sunxi␍␊
[14:43:19:900] board_name=sunxi␍␊
[14:43:19:903] boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}␍␊
[14:43:19:911] boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf␍␊
[14:43:19:922] boot_prefixes=/ /boot/␍␊
[14:43:19:925] boot_script_dhcp=boot.scr.uimg␍␊
[14:43:19:928] boot_scripts=boot.scr.uimg boot.scr␍␊
[14:43:19:930] boot_targets=fel ␍␊
[14:43:19:930] bootargs=console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2␍␊
[14:43:19:939] bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi␍␊
[14:43:19:950] bootdelay=2␍␊
[14:43:19:950] bootm_size=0x1700000␍␊
[14:43:19:953] console=ttyS0,115200␍␊
[14:43:19:955] cpu=arm926ejs␍␊
[14:43:19:955] dfu_alt_info_ram=kernel ram 0x80500000 0x1000000;fdt ram 0x80C00000 0x100000;ramdisk ram 0x80D50000 0x4000000␍␊
[14:43:19:966] distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done␍␊
[14:43:19:972] fdt_addr_r=0x80C00000␍␊
[14:43:19:975] fdtcontroladdr=83ea6dc8␍␊
[14:43:19:975] fdtfile=suniv-f1c100s-licheepi-nano.dtb␍␊
[14:43:19:980] fel_booted=1␍␊
[14:43:19:980] kernel_addr_r=0x80500000␍␊
[14:43:19:983] partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};␍␊
[14:43:20:002] pxefile_addr_r=0x80D00000␍␊
[14:43:20:002] ramdisk_addr_r=0x80D50000␍␊
[14:43:20:005] scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;␍␊
[14:43:20:022] scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done␍␊
[14:43:20:044] scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi␍␊
[14:43:20:060] scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done␍␊
[14:43:20:083] scriptaddr=0x80C50000␍␊
[14:43:20:083] soc=sunxi␍␊
[14:43:20:085] stderr=serial@1c25000␍␊
[14:43:20:085] stdin=serial@1c25000␍␊
[14:43:20:088] stdout=serial@1c25000␍␊
[14:43:20:091] uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b␍␊
[14:43:20:094] uuid_gpt_system=69dad710-2ce4-4e3c-b16c-21a1d49abed3␍␊
[14:43:20:099] ␍␊
[14:43:20:099] Environment size: 2384/131068 bytes␍␊
[14:43:20:102] => ␍␊

离线

楼主 #18 2023-02-03 17:19:31

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

找到原因了,是u-boot 的suniv.h文件里修改过的内容,学习过程中给注掉了。
还原以后,就可以正常启动Linux了。
我是按照这个帖子一步步学习的https://whycan.com/viewtopic.php?id=3138 ,就是下面这段代码,我给注掉了。

#define CONFIG_BOOTCOMMAND   "sf probe 0 50000000; "                           \
                             "sf read 0x80C00000 0x100000 0x4000; "  \
                             "sf read 0x80008000 0x110000 0x400000; " \
                             "bootz 0x80008000 - 0x80C00000"

正常的启动了Linux。

 [17:10:57:965] U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Feb 03 2023 - 16:59:55)␍␊
[17:10:57:971] DRAM: 64 MiB␍␊
[17:10:57:982] SPL: Unsupported Boot Device!␍␊
[17:10:57:985] Trying to boot from sunxi SPI␍␊
[17:10:59:201] ␍␊
[17:10:59:201] U-Boot SPL 2018.01-05679-g013ca457fd-dirty (Feb 03 2023 - 16:59:55)␍␊
[17:10:59:206] DRAM: 64 MiB␍␊
[17:10:59:218] SPL: Unsupported Boot Device!␍␊
[17:10:59:221] Trying to boot from sunxi SPI␍␊
[17:10:59:477] ␍␊
[17:10:59:477] ␍␊
[17:10:59:477] U-Boot 2018.01-05679-g013ca457fd-dirty (Feb 03 2023 - 16:59:55 +0800) Allwinner Technology␍␊
[17:10:59:485] ␍␊
[17:10:59:485] CPU:   Allwinner F Series (SUNIV)␍␊
[17:10:59:488] Model: Lichee Pi Nano␍␊
[17:10:59:488] DRAM:  64 MiB␍␊
[17:11:00:007] Using default environment␍␊
[17:11:00:007] ␍␊
[17:11:00:007] In:    serial@1c25000␍␊
[17:11:00:010] Out:   serial@1c25000␍␊
[17:11:00:012] Err:   serial@1c25000␍␊
[17:11:00:017] Hit any key to stop autoboot:  2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08> 0 ␍␊
[17:11:02:022] SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB␍␊
[17:11:02:028] device 0 offset 0x100000, size 0x4000␍␊
[17:11:02:037] SF: 16384 bytes @ 0x100000 Read: OK␍␊
[17:11:02:040] device 0 offset 0x110000, size 0x400000␍␊
[17:11:03:130] SF: 4194304 bytes @ 0x110000 Read: OK␍␊
[17:11:03:133] ## Flattened Device Tree blob at 80c00000␍␊
[17:11:03:137]    Booting using the fdt blob at 0x80c00000␍␊
[17:11:03:140]    Loading Device Tree to 816fb000, end 816fff44 ... OK␍␊
[17:11:03:154] ␍␊
[17:11:03:154] Starting kernel ...␍␊
[17:11:03:154] ␍␊
[17:11:04:248] [    0.000000] Booting Linux on physical CPU 0x0␍␊
[17:11:04:251] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (zhaili@zhaili-f1c200s) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12)) #7 Thu Feb 2 16:26:09 UTC 2023␍␊
[17:11:04:265] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f␍␊
[17:11:04:270] [    0.000000] CPU: VIVT data cache, VIVT instruction cache␍␊
[17:11:04:276] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano␍␊
[17:11:04:281] [    0.000000] Memory policy: Data cache writeback␍␊
[17:11:04:287] [    0.000000] random: fast init done␍␊
[17:11:04:290] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256␍␊
[17:11:04:295] [    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2␍␊
[17:11:04:309] [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)␍␊
[17:11:04:313] [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)␍␊
[17:11:04:320] [    0.000000] Memory: 56208K/65536K available (5120K kernel code, 232K rwdata, 1312K rodata, 1024K init, 228K bss, 9328K reserved, 0K cma-reserved, 0K highmem)␍␊
[17:11:04:334] [    0.000000] Virtual kernel memory layout:␍␊
[17:11:04:338] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)␍␊
[17:11:04:343] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)␍␊
[17:11:04:348] [    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)␍␊
[17:11:04:354] [    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)␍␊
[17:11:04:360] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)␍␊
[17:11:04:367] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)␍␊
[17:11:04:373] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (6112 kB)␍␊
[17:11:04:379] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)␍␊
[17:11:04:384] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 233 kB)␍␊
[17:11:04:390] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 229 kB)␍␊
[17:11:04:395] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1␍␊
[17:11:04:402] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16␍␊
[17:11:04:406] [    0.000046] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns␍␊
[17:11:04:415] [    0.000108] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns␍␊
[17:11:04:423] [    0.000629] Console: colour dummy device 80x30␍␊
[17:11:04:428] [    0.000710] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)␍␊
[17:11:04:434] [    0.070221] pid_max: default: 32768 minimum: 301␍␊
[17:11:04:440] [    0.070514] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)␍␊
[17:11:04:445] [    0.070553] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)␍␊
[17:11:04:453] [    0.071948] CPU: Testing write buffer coherency: ok␍␊
[17:11:04:457] [    0.073538] Setting up static identity map for 0x80100000 - 0x80100058␍␊
[17:11:04:465] [    0.076018] devtmpfs: initialized␍␊
[17:11:04:469] [    0.082488] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns␍␊
[17:11:04:476] [    0.082548] futex hash table entries: 256 (order: -1, 3072 bytes)␍␊
[17:11:04:484] [    0.082796] pinctrl core: initialized pinctrl subsystem␍␊
[17:11:04:490] [    0.084732] NET: Registered protocol family 16␍␊
[17:11:04:494] [    0.086016] DMA: preallocated 256 KiB pool for atomic coherent allocations␍␊
[17:11:04:501] [    0.087726] cpuidle: using governor menu␍␊
[17:11:04:504] [    0.109358] SCSI subsystem initialized␍␊
[17:11:04:506] [    0.109701] usbcore: registered new interface driver usbfs␍␊
[17:11:04:512] [    0.109852] usbcore: registered new interface driver hub␍␊
[17:11:04:517] [    0.110038] usbcore: registered new device driver usb␍␊
[17:11:04:523] [    0.110559] pps_core: LinuxPPS API ver. 1 registered␍␊
[17:11:04:528] [    0.110586] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>␍␊
[17:11:04:537] [    0.110645] PTP clock support registered␍␊
[17:11:04:545] [    0.111128] Advanced Linux Sound Architecture Driver Initialized.␍␊
[17:11:04:548] [    0.112567] clocksource: Switched to clocksource timer␍␊
[17:11:04:554] [    0.137684] NET: Registered protocol family 2␍␊
[17:11:04:560] [    0.139060] TCP established hash table entries: 1024 (order: 0, 4096 bytes)␍␊
[17:11:04:566] [    0.139135] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)␍␊
[17:11:04:570] [    0.139184] TCP: Hash tables configured (established 1024 bind 1024)␍␊
[17:11:04:576] [    0.139436] UDP hash table entries: 256 (order: 0, 4096 bytes)␍␊
[17:11:04:581] [    0.139490] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)␍␊
[17:11:04:590] [    0.139943] NET: Registered protocol family 1␍␊
[17:11:04:592] [    0.142327] NetWinder Floating Point Emulator V0.97 (double precision)␍␊
[17:11:04:598] [    0.144206] Initialise system trusted keyrings␍␊
[17:11:04:604] [    0.144732] workingset: timestamp_bits=30 max_order=14 bucket_order=0␍␊
[17:11:04:609] [    0.156676] squashfs: version 4.0 (2009/01/31) Phillip Lougher␍␊
[17:11:04:615] [    0.157263] jffs2: version 2.2. (NAND) <0xc2><0xa9> 2001-2006 Red Hat, Inc.␍␊
[17:11:04:623] [    0.171391] Key type asymmetric registered␍␊
[17:11:04:626] [    0.171428] Asymmetric key parser 'x509' registered␍␊
[17:11:04:632] [    0.171620] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)␍␊
[17:11:04:637] [    0.171652] io scheduler noop registered␍␊
[17:11:04:642] [    0.171670] io scheduler deadline registered␍␊
[17:11:04:645] [    0.172407] io scheduler cfq registered (default)␍␊
[17:11:04:651] [    0.172437] io scheduler mq-deadline registered␍␊
[17:11:04:657] [    0.172455] io scheduler kyber registered␍␊
[17:11:04:662] [    0.173684] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO␍␊
[17:11:04:666] [    0.183361] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver␍␊
[17:11:04:673] [    0.345421] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled␍␊
[17:11:04:679] [    0.351800] console [ttyS0] disabled␍␊
[17:11:04:683] [    0.372045] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 23, base_baud = 6250000) is a 16550A␍␊
[17:11:04:690] [    0.816420] console [ttyS0] enabled␍␊
[17:11:04:702] [    0.826601] panel-simple panel: panel supply power not found, using dummy regulator␍␊
[17:11:04:739] [    0.863614] brd: module loaded␍␊
[17:11:04:760] [    0.884461] loop: module loaded␍␊
[17:11:04:797] [    0.921281] rbd: loaded (major 254)␍␊
[17:11:04:801] [    0.925612] SCSI Media Changer driver v0.25 ␍␊
[17:11:04:809] [    0.933402] m25p80 spi0.0: w25q128 (16384 Kbytes)␍␊
[17:11:04:813] [    0.939017] 4 ofpart partitions found on MTD device spi0.0␍␊
[17:11:04:819] [    0.944616] Creating 4 MTD partitions on "spi0.0":␍␊
[17:11:04:824] [    0.949423] 0x000000000000-0x000000100000 : "u-boot"␍␊
[17:11:04:833] [    0.956948] 0x000000100000-0x000000110000 : "dtb"␍␊
[17:11:04:843] [    0.964193] 0x000000110000-0x000000510000 : "partition"␍␊
[17:11:04:848] [    0.971823] 0x000000510000-0x000001000000 : "rootfs"␍␊
[17:11:04:856] [    0.979790] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver␍␊
[17:11:04:861] [    0.986436] ehci-platform: EHCI generic platform driver␍␊
[17:11:04:867] [    0.991939] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver␍␊
[17:11:04:873] [    0.998231] ohci-platform: OHCI generic platform driver␍␊
[17:11:04:879] [    1.003901] usbcore: registered new interface driver usb-storage␍␊
[17:11:04:886] [    1.011096] i2c /dev entries driver␍␊
[17:11:04:948] [    1.072692] sunxi-mmc 1c0f000.mmc: base:0x0f5caf00 irq:19␍␊
[17:11:04:956] [    1.080094] usbcore: registered new interface driver usbhid␍␊
[17:11:04:963] [    1.085782] usbhid: USB HID core driver␍␊
[17:11:04:983] [    1.107260] NET: Registered protocol family 17␍␊
[17:11:04:986] [    1.111831] Key type dns_resolver registered␍␊
[17:11:04:992] [    1.116269] Key type ceph registered␍␊
[17:11:04:995] [    1.120684] libceph: loaded (mon/osd proto 15/24)␍␊
[17:11:05:003] [    1.127561] Loading compiled-in X.509 certificates␍␊
[17:11:05:018] [    1.142130] sun4i-drm display-engine: bound 1e60000.display-backend (ops 0xc0632718)␍␊
[17:11:05:025] [    1.151041] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc06319fc)␍␊
[17:11:05:033] [    1.158824] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).␍␊
[17:11:05:039] [    1.165486] [drm] No driver support for vblank timestamp query.␍␊
[17:11:05:050] [    1.174402] sun4i-drm display-engine: fb0:  frame buffer device␍␊
[17:11:05:057] [    1.181583] [drm] Initialized sun4i-drm 1.0.0 20150629 for display-engine on minor 0␍␊
[17:11:05:064] [    1.190699] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator␍␊
[17:11:05:077] [    1.202477] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver␍␊
[17:11:05:082] [    1.208393] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1␍␊
[17:11:05:096] [    1.219621] hub 1-0:1.0: USB hub found␍␊
[17:11:05:098] [    1.223637] hub 1-0:1.0: 1 port detected␍␊
[17:11:05:105] [    1.229693] cfg80211: Loading compiled-in X.509 certificates for regulatory database␍␊
[17:11:05:122] [    1.246753] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'␍␊
[17:11:05:128] [    1.253559] vcc3v3: disabling␍␊
[17:11:05:134] [    1.256538] ALSA device list:␍␊
[17:11:05:134] [    1.259501]   #0: Loopback 1␍␊
[17:11:05:139] [    1.263298] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2␍␊
[17:11:05:146] [    1.271910] cfg80211: failed to load regulatory.db␍␊
[17:11:05:248] [    1.372028] random: crng init done␍␊
[17:11:06:913] [    3.037660] VFS: Mounted root (jffs2 filesystem) on device 31:3.␍␊
[17:11:06:922] [    3.046563] devtmpfs: mounted␍␊
[17:11:06:930] [    3.054220] Freeing unused kernel memory: 1024K␍␊
[17:11:15:457] Starting syslogd: OK␍␊
[17:11:15:553] Starting klogd: OK␍␊
[17:11:15:775] Running sysctl: OK␍␊
[17:11:16:395] Saving random seed: SKIP (read-only file system detected)␍␊
[17:11:16:456] Starting network: OK␍␊
[17:11:16:852] ␍␍␊
[17:11:16:859] Welcome to Buildroot␍␊
[17:11:16:859] ␍buildroot login: root␍␊
[17:14:20:130] # ls␍␊ 

离线

楼主 #19 2023-02-03 18:18:44

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

手焊的两片PCB,其中一片电流偏大了大概30mA,系统启动后PCB电流大概是90mA,F1C200S芯片微热;另一片正常的电流是60mA大概,看来主芯片手焊还是挺考验技术的。

离线

楼主 #20 2023-02-04 10:37:35

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

问一下,我的u-boot没有液晶显示,在哪里可以添加,我现在用的是nano-2018.01这个分支。没有找到关于480x272液晶的相关配置。

离线

楼主 #22 2023-02-04 12:48:38

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

@哇酷小二
感谢晕哥,我去学习一下这个

离线

楼主 #23 2023-02-07 14:35:38

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

29719316-D03F-425F-B891-07F91334E8AC.jpegbuildroot-tiny200 的SDK还没有搞定,编译完后烧写到Spiflash uboot没有串口输出。
回头又去重新git了nano-lcd800480分支,编译了一个1M大的u-boot,打包以后,明显还是不正常,Linux没有正常shell,但是由于换了uboot,现在LCD可以显示了,需要换一下颜色改成GBR。
对Linux不太懂,学起来也是散的,自己是搞到哪不会了,就搜一下。还没有找到好的学习方法。

 [14:04:50:530] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Feb 07 2023 - 01:23:22)␍␊
[14:04:50:535] DRAM:␍␊
[14:04:50:768] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Feb 07 2023 - 01:23:22)␍␊
[14:04:50:774] DRAM: 64 MiB␍␊
[14:04:50:786] Trying to boot from MMC1␍␊
[14:04:50:807] Card did not respond to voltage select!␍␊
[14:04:50:810] mmc_init: -95, time 22␍␊
[14:04:50:813] spl: mmc init failed with error: -95␍␊
[14:04:50:816] Trying to boot from sunxi SPI␍␊
[14:04:51:901] ␍␊
[14:04:51:901] ␍␊
[14:04:51:901] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Feb 07 2023 - 01:23:22 +0800) Allwinner Technology␍␊
[14:04:51:909] ␍␊
[14:04:51:909] CPU:   Allwinner F Series (SUNIV)␍␊
[14:04:51:912] Model: Lichee Pi Nano␍␊
[14:04:51:912] DRAM:  64 MiB␍␊
[14:04:52:456] MMC:   SUNXI SD/MMC: 0␍␊
[14:04:52:460] SF: Detected w25q128bv with page size 256 Bytes, erase size 4 KiB, total 16 MiB␍␊
[14:04:55:201] *** Warning - bad CRC, using default environment␍␊
[14:04:55:205] ␍␊
[14:04:55:210] Setting up a 800x480 lcd console (overscan 0x0)␍␊
[14:04:55:366] In:    serial@1c25000␍␊
[14:04:55:366] Out:   serial@1c25000␍␊
[14:04:55:369] Err:   serial@1c25000␍␊
[14:04:55:371] Net:   No ethernet found.␍␊
[14:04:55:375] starting USB...␍␊
[14:04:55:375] No controllers found␍␊
[14:04:55:380] Hit any key to stop autoboot:  2 <0x08><0x08><0x08> 1 <0x08><0x08><0x08> 0 ␍␊
[14:04:57:403] Card did not respond to voltage select!␍␊
[14:04:57:406] mmc_init: -95, time 22␍␊
[14:04:57:409] starting USB...␍␊
[14:04:57:409] No controllers found␍␊
[14:04:57:412] USB is stopped. Please issue 'usb start' first.␍␊
[14:04:57:414] starting USB...␍␊
[14:04:57:417] No controllers found␍␊
[14:04:57:420] No ethernet found.␍␊
[14:04:57:420] missing environment variable: pxeuuid␍␊
[14:04:57:423] missing environment variable: bootfile␍␊
[14:04:57:428] Retrieving file: pxelinux.cfg/00000000␍␊
[14:04:57:431] No ethernet found.␍␊
[14:04:57:431] missing environment variable: bootfile␍␊
[14:04:57:437] Retrieving file: pxelinux.cfg/0000000␍␊
[14:04:57:439] No ethernet found.␍␊
[14:04:57:442] missing environment variable: bootfile␍␊
[14:04:57:445] Retrieving file: pxelinux.cfg/000000␍␊
[14:04:57:448] No ethernet found.␍␊
[14:04:57:450] missing environment variable: bootfile␍␊
[14:04:57:454] Retrieving file: pxelinux.cfg/00000␍␊
[14:04:57:456] No ethernet found.␍␊
[14:04:57:459] missing environment variable: bootfile␍␊
[14:04:57:462] Retrieving file: pxelinux.cfg/0000␍␊
[14:04:57:464] No ethernet found.␍␊
[14:04:57:467] missing environment variable: bootfile␍␊
[14:04:57:470] Retrieving file: pxelinux.cfg/000␍␊
[14:04:57:473] No ethernet found.␍␊
[14:04:57:475] missing environment variable: bootfile␍␊
[14:04:57:478] Retrieving file: pxelinux.cfg/00␍␊
[14:04:57:481] No ethernet found.␍␊
[14:04:57:484] missing environment variable: bootfile␍␊
[14:04:57:486] Retrieving file: pxelinux.cfg/0␍␊
[14:04:57:489] No ethernet found.␍␊
[14:04:57:489] missing environment variable: bootfile␍␊
[14:04:57:495] Retrieving file: pxelinux.cfg/default-arm-sunxi␍␊
[14:04:57:497] No ethernet found.␍␊
[14:04:57:500] missing environment variable: bootfile␍␊
[14:04:57:503] Retrieving file: pxelinux.cfg/default-arm␍␊
[14:04:57:506] No ethernet found.␍␊
[14:04:57:508] missing environment variable: bootfile␍␊
[14:04:57:511] Retrieving file: pxelinux.cfg/default␍␊
[14:04:57:517] No ethernet found.␍␊
[14:04:57:517] Config file not found␍␊
[14:04:57:520] starting USB...␍␊
[14:04:57:520] No controllers found␍␊
[14:04:57:523] No ethernet found.␍␊
[14:04:57:528] No ethernet found.␍␊
[14:04:57:528] => 

最近编辑记录 pldjn_V3S (2023-02-07 14:58:28)

离线

楼主 #24 2023-02-08 12:37:18

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

今天遇到2个问题:
1 ,修改液晶RGB到BGR没有成功,按https://whycan.com/viewtopic.php?id=6781的方法添加下面的代码,修改linux的 linux/drivers/gpu/drm/sun4i/sun4i_tcon.c 文件,重新编译打包后,小企鹅的脚还是蓝的,没有变成黄色。

regmap_update_bits(tcon->regs, SUN4I_TCON0_CTL_REG,BIT(23),BIT(23));//SWAP R、B引脚

2,修改uboot的液晶分辨率,配置 LCD panel timing details为分辨率480x272,结果只有开始的小企鹅那块好像是对的,后面Linux的信息都不对。

x:480,y:272,depth:18,pclk_khz:10000,le:42,ri:8,up:11,lo:4,hs:1,vs:1,sync:3,vmode:0

查看env bootargs那段没有LCD的信息,也没有看到哪里把分辨率传给Linux

 printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=fel 
bootargs=console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2 
bootcmd=sf probe 0 50000000; sf read 0x80C00000 0x100000 0x4000; sf read 0x80008000 0x110000 0x400000; bootz 0x80008000 - 0x80C00000
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootdelay=2
bootm_size=0x1700000
console=ttyS0,115200
cpu=arm926ejs
dfu_alt_info_ram=kernel ram 0x80500000 0x1000000;fdt ram 0x80C00000 0x100000;ramdisk ram 0x80D50000 0x4000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
fdt_addr_r=0x80C00000
fdtcontroladdr=82ea2dc8
fdtfile=suniv-f1c100s-licheepi-nano.dtb
fel_booted=1
kernel_addr_r=0x80500000
partitions=name=loader1,start=8k,size=32k,uuid=${uuid_gpt_loader1};name=loader2,size=984k,uuid=${uuid_gpt_loader2};name=esp,size=128M,bootable,uuid=${uuid_gpt_esp};name=system,size=-,uuid=${uuid_gpt_system};
pxefile_addr_r=0x80D00000
ramdisk_addr_r=0x80D50000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x80C50000
soc=sunxi
stderr=serial@1c25000
stdin=serial@1c25000
stdout=serial@1c25000
uuid_gpt_esp=c12a7328-f81f-11d2-ba4b-00a0c93ec93b
uuid_gpt_system=69dad710-2ce4-4e3c-b16c-21a1d49abed3

Environment size: 2533/131068 bytes
=> 

进linux用命令行查看应该是没有传参数进来。

[12:13:25:748] # cat /proc/cmdline␍␊
[12:13:57:860] console=tty0 console=ttyS0,115200 panic=5 rootwait root=/dev/mtdblock3 rw rootfstype=jffs2 ␍␊

离线

楼主 #26 2023-02-08 16:07:05

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

@哇酷小二
@aodzip 的SDK我使用16M的W25Q128,一直不能正确的跑起Uboot,自己新手,这个问题解决不了,所以翻回头来搞这个能跑起来的代码,先把板子上能测的部分测试一下。后面再研究aodzip 的SDK。
现在是板上的LCD颜色没改对,分辨率发现搞对了。现在开机是这个状态。颜色先不管了,后面再弄,现在去找个TF试试。
f1c200s_no2.jpg

更正,分辨率好像还是不对,后面还有8行没有显示出来。

最近编辑记录 pldjn_V3S (2023-02-08 16:18:35)

离线

楼主 #28 2023-02-10 11:56:09

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

今天发现电流稍大一点的那块板子,原来是焊接问题,不是CPU短路,而是LCD的座子那块焊短路了。修复后焊接正常了。接下来还是要研究系统软件。

离线

楼主 #30 2023-02-14 21:56:40

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

插了一张TF卡,可以正常挂载了。现在板上的RTC的NS2009没有测试了,但是Linux还是不太正常。液晶还不会显示图片,Linux下的编程还没开始学。

overlayfs:/overlay/rom
                          3072       268      2804   9% /
devtmpfs                 19108         0     19108   0% /dev
/dev/mtdblock3            3072       268      2804   9% /overlay
/dev/root                 5888      5888         0 100% /overlay/rom/lower
devtmpfs                 19108         0     19108   0% /overlay/rom/lower/dev
/dev/mtdblock3            3072       268      2804   9% /overlay/rom/lower/overlay
tmpfs                    27812         0     27812   0% /dev/shm
tmpfs                    27812        20     27792   0% /tmp
tmpfs                    27812        44     27768   0% /run
/dev/mmcblk0p1         3870464       128   3870336   0% /mnt

上个当时加工的时候的gerber文件F1C200S_DIY.zip

最近编辑记录 pldjn_V3S (2023-02-14 22:04:59)

离线

楼主 #32 2023-02-15 09:29:08

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

哇酷小二 说:

@pldjn_V3S
buildroot 勾选fbv,就可以用这个命令显示图片了。

液晶还是不正常,没有显示输入的指令,只是显示调试信息这样。

离线

楼主 #33 2023-02-18 21:37:33

pldjn_V3S
会员
注册时间: 2021-04-09
已发帖子: 108
积分: 116

Re: 疫情之下器件无法邮寄到手了,就多画几块板了,画了一个F1C200S的小核心板。

终于把颜色搞正常了,编译了一个马里奥进去,InfoNES跑起来挺顺的感觉,手柄还没有搞好,继续。

放个视频https://www.bilibili.com/video/BV13b411d7th/?vd_source=daf962ad7fae05abe16a4810c5c0d692

最近编辑记录 pldjn_V3S (2023-02-18 21:49:44)

离线

页脚

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

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