您尚未登录。

楼主 # 2023-09-03 16:35:24

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

全志F1c200s开机时间问题

 
[2023-09-03 16:27:01.088] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 14:43:12)
[2023-09-03 16:27:01.090] DRAM: 32 MiB
[2023-09-03 16:27:01.099] Trying to boot from MMC1
[2023-09-03 16:27:01.099] MMC Device 0 not found
[2023-09-03 16:27:01.099] spl: could not find mmc device. error: -19
[2023-09-03 16:27:01.100] Trying to boot from sunxi SPI
[2023-09-03 16:27:01.399] 
[2023-09-03 16:27:01.399] 
[2023-09-03 16:27:01.399] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 14:43:12 +0800) Allwinner Technology
[2023-09-03 16:27:01.400] 
[2023-09-03 16:27:01.400] CPU:   Allwinner F Series (SUNIV)
[2023-09-03 16:27:01.400] Model: Lichee Pi Nano
[2023-09-03 16:27:01.400] DRAM:  32 MiB
[2023-09-03 16:27:01.922] MMC:   
[2023-09-03 16:27:01.922] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 16:27:04.656] *** Warning - bad CRC, using default environment
[2023-09-03 16:27:04.658] 
[2023-09-03 16:27:04.658] In:    serial@1c25000
[2023-09-03 16:27:04.658] Out:   serial@1c25000
[2023-09-03 16:27:04.658] Err:   serial@1c25000
[2023-09-03 16:27:04.658] starting USB...
[2023-09-03 16:27:04.659] No controllers found
[2023-09-03 16:27:04.660] Hit any key to stop autoboot:  0 
[2023-09-03 16:27:04.662] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 16:27:04.662] device 0 offset 0x100000, size 0x4000
[2023-09-03 16:27:04.667] SF: 16384 bytes @ 0x100000 Read: OK
[2023-09-03 16:27:04.667] device 0 offset 0x110000, size 0x400000
[2023-09-03 16:27:05.698] SF: 4194304 bytes @ 0x110000 Read: OK
[2023-09-03 16:27:05.698] ## Flattened Device Tree blob at 80c00000
[2023-09-03 16:27:05.699]    Booting using the fdt blob at 0x80c00000
[2023-09-03 16:27:05.699]    Loading Device Tree to 816fa000, end 816ff03d ... OK
[2023-09-03 16:27:05.706] 
[2023-09-03 16:27:05.706] Starting kernel ...
[2023-09-03 16:27:05.706] 
[2023-09-03 16:27:07.259] [    0.000000] Booting Linux on physical CPU 0x0
[2023-09-03 16:27:07.259] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lv129@Lv-Ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #36 Sat Sep 2 23:56:49 CST 2023                   
[2023-09-03 16:27:07.261] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[2023-09-03 16:27:07.262] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[2023-09-03 16:27:07.262] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[2023-09-03 16:27:07.263] [    0.000000] Memory policy: Data cache writeback
[2023-09-03 16:27:07.264] [    0.000000] random: fast init done
[2023-09-03 16:27:07.264] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[2023-09-03 16:27:07.265] [    0.000000] Kernel command line: console=ttyS0,921600 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:220k(uboot)ro,64k(dtb)ro,2M(kernel)ro,-(rootfs) root=/dev/mtdblock3 r2
[2023-09-03 16:27:07.267] [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[2023-09-03 16:27:07.268] [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[2023-09-03 16:27:07.269] [    0.000000] Memory: 27676K/32768K available (3157K kernel code, 191K rwdata, 856K rodata, 184K init, 202K bss, 5092K reserved, 0K cma-reserved, 0K highmem)
[2023-09-03 16:27:07.271] [    0.000000] Virtual kernel memory layout:
[2023-09-03 16:27:07.271] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[2023-09-03 16:27:07.272] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[2023-09-03 16:27:07.273] [    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[2023-09-03 16:27:07.273] [    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[2023-09-03 16:27:07.274] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[2023-09-03 16:27:07.275] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[2023-09-03 16:27:07.276] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3159 kB)
[2023-09-03 16:27:07.276] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 184 kB)
[2023-09-03 16:27:07.277] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 192 kB)
[2023-09-03 16:27:07.278] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 203 kB)
[2023-09-03 16:27:07.278] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2023-09-03 16:27:07.280] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[2023-09-03 16:27:07.280] [    0.000060] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[2023-09-03 16:27:07.281] [    0.000131] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[2023-09-03 16:27:07.283] [    0.000704] Console: colour dummy device 80x30
[2023-09-03 16:27:07.283] [    0.000808] Calibrating delay loop... 395.67 BogoMIPS (lpj=1978368)
[2023-09-03 16:27:07.284] [    0.120299] pid_max: default: 32768 minimum: 301
[2023-09-03 16:27:07.284] [    0.120582] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 16:27:07.285] [    0.120626] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 16:27:07.286] [    0.122154] CPU: Testing write buffer coherency: ok
[2023-09-03 16:27:07.287] [    0.124381] Setting up static identity map for 0x80008400 - 0x80008458
[2023-09-03 16:27:07.288] [    0.126796] devtmpfs: initialized
[2023-09-03 16:27:07.288] [    0.131861] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[2023-09-03 16:27:07.289] [    0.131933] futex hash table entries: 256 (order: -1, 3072 bytes)
[2023-09-03 16:27:07.290] [    0.132258] pinctrl core: initialized pinctrl subsystem
[2023-09-03 16:27:07.291] [    0.134986] DMA: preallocated 256 KiB pool for atomic coherent allocations
[2023-09-03 16:27:07.292] [    0.136765] cpuidle: using governor menu
[2023-09-03 16:27:07.292] [    0.156412] SCSI subsystem initialized
[2023-09-03 16:27:07.293] [    0.156785] usbcore: registered new interface driver usbfs
[2023-09-03 16:27:07.293] [    0.156980] usbcore: registered new interface driver hub
[2023-09-03 16:27:07.294] [    0.157200] usbcore: registered new device driver usb
[2023-09-03 16:27:07.295] [    0.157671] pps_core: LinuxPPS API ver. 1 registered
[2023-09-03 16:27:07.296] [    0.157700] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[2023-09-03 16:27:07.297] [    0.158327] clocksource: Switched to clocksource timer
[2023-09-03 16:27:07.297] [    0.167295] NetWinder Floating Point Emulator V0.97 (double precision)
[2023-09-03 16:27:07.298] [    0.169524] Initialise system trusted keyrings
[2023-09-03 16:27:07.299] [    0.170249] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[2023-09-03 16:27:07.300] [    0.178859] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[2023-09-03 16:27:07.300] [    0.193685] Key type asymmetric registered
[2023-09-03 16:27:07.301] [    0.193736] Asymmetric key parser 'x509' registered
[2023-09-03 16:27:07.302] [    0.193995] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[2023-09-03 16:27:07.302] [    0.194034] io scheduler noop registered
[2023-09-03 16:27:07.303] [    0.194049] io scheduler deadline registered
[2023-09-03 16:27:07.304] [    0.194748] io scheduler cfq registered (default)
[2023-09-03 16:27:07.304] [    0.194790] io scheduler mq-deadline registered
[2023-09-03 16:27:07.305] [    0.194802] io scheduler kyber registered
[2023-09-03 16:27:07.305] [    0.205862] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[2023-09-03 16:27:07.306] [    0.211773] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[2023-09-03 16:27:07.307] [    0.215212] console [ttyS0] disabled
[2023-09-03 16:27:07.308] [    0.235604] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[2023-09-03 16:27:07.309] [    0.286873] console [ttyS0] enabled
[2023-09-03 16:27:07.312] [    0.289729] SCSI Media Changer driver v0.25 
[2023-09-03 16:27:07.317] [    0.294387] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[2023-09-03 16:27:07.317] [    0.295211] 4 ofpart partitions found on MTD device spi0.0
[2023-09-03 16:27:07.318] [    0.295952] Creating 4 MTD partitions on "spi0.0":
[2023-09-03 16:27:07.318] [    0.296620] 0x000000000000-0x000000037000 : "u-boot"
[2023-09-03 16:27:07.322] [    0.300369] 0x000000100000-0x000000110000 : "dtb"
[2023-09-03 16:27:07.326] [    0.303803] 0x000000110000-0x000000310000 : "kernel"
[2023-09-03 16:27:07.329] [    0.307194] 0x000000510000-0x000000a60000 : "rootfs"
[2023-09-03 16:27:07.333] [    0.311234] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[2023-09-03 16:27:07.334] [    0.312134] ehci-platform: EHCI generic platform driver
[2023-09-03 16:27:07.335] [    0.313071] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[2023-09-03 16:27:07.336] [    0.313956] ohci-platform: OHCI generic platform driver
[2023-09-03 16:27:07.337] [    0.315046] usbcore: registered new interface driver usb-storage
[2023-09-03 16:27:07.339] [    0.316799] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[2023-09-03 16:27:07.344] [    0.321855] g_serial gadget: Gadget Serial v2.4
[2023-09-03 16:27:07.344] [    0.322502] g_serial gadget: g_serial ready
[2023-09-03 16:27:07.346] [    0.323494] i2c /dev entries driver
[2023-09-03 16:27:07.411] [    0.388495] sunxi-mmc 1c0f000.mmc: base:0x079d1269 irq:20
[2023-09-03 16:27:07.413] [    0.391014] usbcore: registered new interface driver usbhid
[2023-09-03 16:27:07.413] [    0.391780] usbhid: USB HID core driver
[2023-09-03 16:27:07.418] [    0.395115] Loading compiled-in X.509 certificates
[2023-09-03 16:27:07.473] [    0.450938] random: crng init done
[2023-09-03 16:27:07.829] [    0.806504] g_serial gadget: high-speed config #2: CDC ACM config
[2023-09-03 16:27:07.843] [    0.821018] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[2023-09-03 16:27:07.846] [    0.824061] devtmpfs: mounted
[2023-09-03 16:27:07.848] [    0.825690] Freeing unused kernel memory: 184K
[2023-09-03 16:27:07.848] [    0.826296] This architecture does not have kernel memory protection.
[2023-09-03 16:27:12.891] 1
[2023-09-03 16:27:13.215] Starting logging: OK
[2023-09-03 16:27:13.491] Initializing random number generator... done.
[2023-09-03 16:27:13.797] 
[2023-09-03 16:27:13.797] Welcome to Buildroot
(none) login: root13.797] 

主要是3个部分
1.uboot  --> 花费了2.7s

 
[2023-09-03 16:27:01.922] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 16:27:04.656] *** Warning - bad CRC, using default environment

2.kernel此处花费了1.55s

 
[2023-09-03 16:27:05.706] Starting kernel ...
[2023-09-03 16:27:05.706] 
[2023-09-03 16:27:07.259] [    0.000000] Booting Linux on physical CPU 0x0

3.kernel到inittab花费了5s之久

 
[2023-09-03 16:27:07.848] [    0.826296] This architecture does not have kernel memory protection.
[2023-09-03 16:27:12.891] 1
[2023-09-03 16:32:46.170] # /etc/inittab
[2023-09-03 16:32:46.170] ::sysinit:/bin/echo 1
[2023-09-03 16:32:46.170] # Startup the system
[2023-09-03 16:32:46.170] #::sysinit:/bin/mount -t proc proc /proc
[2023-09-03 16:32:46.171] #::sysinit:/bin/mount -o remount,rw /
[2023-09-03 16:32:46.171] #::sysinit:/bin/mkdir -p /dev/pts
[2023-09-03 16:32:46.172] #::sysinit:/bin/mkdir -p /dev/shm
[2023-09-03 16:32:46.172] #::sysinit:/bin/mount -a
[2023-09-03 16:32:46.172] #::sysinit:/bin/hostname -F /etc/hostname
[2023-09-03 16:32:46.173] # now run any rc scripts
[2023-09-03 16:32:46.173] ::sysinit:/etc/init.d/rcS

麻烦大佬们帮忙看看如何优化

最近编辑记录 资本家大善人 (2023-09-03 16:36:36)

离线

#1 2023-09-03 16:39:09

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 全志F1c200s开机时间问题

rootfs不建议用 jffs2,因为启动会扫描整个flash分区。


建议看下 @aodzip 的帖子,用 squashfs + overlayfs(jffs2) 这种方式,文件系统加载可以提升至2s内完成。





离线

楼主 #2 2023-09-03 16:45:27

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

https://whycan.com/t_3010.html
mark下


测试squashfs文件系统挂载速度很快,问题3解决了

[2023-09-03 18:18:06.336] [    0.326070] Loading compiled-in X.509 certificates
[2023-09-03 18:18:06.355] [    0.344888] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[2023-09-03 18:18:06.363] [    0.352311] devtmpfs: mounted
[2023-09-03 18:18:06.364] [    0.353985] Freeing unused kernel memory: 188K
[2023-09-03 18:18:06.364] [    0.354592] This architecture does not have kernel memory protection.
[2023-09-03 18:18:06.474] [    0.463208] random: crng init done
[2023-09-03 18:18:06.754] [    0.743375] g_serial gadget: high-speed config #2: CDC ACM config
[2023-09-03 18:18:06.966] Starting logging: OK
[2023-09-03 18:18:07.039] read-only file system detected...done
[2023-09-03 18:18:07.069] Starting network: ip: socket: Function not implemented
[2023-09-03 18:18:07.148] ip: socket: Function not implemented
[2023-09-03 18:18:07.154] FAIL
[2023-09-03 18:18:07.268] 
[2023-09-03 18:18:07.268] Welcome to Buildroot
buildroot login: :07.268] 

最近编辑记录 资本家大善人 (2023-09-03 18:19:56)

离线

#3 2023-09-03 19:44:38

willX
会员
注册时间: 2019-09-06
已发帖子: 45
积分: 29

Re: 全志F1c200s开机时间问题

uboot的log时间戳,是用了 grabserial 后打印出来的吗?

离线

楼主 #4 2023-09-03 20:51:47

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

willX 说:

uboot的log时间戳,是用了 grabserial 后打印出来的吗?

linux apt安装minicom

离线

楼主 #5 2023-09-03 21:02:33

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

问题2解决了
之前是kernel压缩方式是XZ(1.5s  zImge 1.7m)
改成GZIP (0.53s  zImge 2.2m)
改成LZO(0.45s  zImage 2.5m)

linux kernel
    General setup  ---> 
       Kernel compression mode (Gzip)  ---> 

GZIP 0.53s

[2023-09-03 20:50:37.548] Starting kernel ...                                   
[2023-09-03 20:50:37.548]                                                       
[2023-09-03 20:50:38.077] [    0.000000] Booting Linux on physical CPU 0x0 

LZO 0.45s

[2023-09-03 20:59:24.485] Starting kernel ...                                   
[2023-09-03 20:59:24.485]                                                       
[2023-09-03 20:59:24.936] [    0.000000] Booting Linux on physical CPU 0x0  

离线

楼主 #6 2023-09-03 21:14:31

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

最新log
uboot->kernel 4.5s
主要花费在
2023-09-03 21:07:59.239] CPU:   Allwinner F Series (SUNIV)
[2023-09-03 21:07:59.240] Model: Lichee Pi Nano
[2023-09-03 21:07:59.240] DRAM:  32 MiB
[2023-09-03 21:07:59.761] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 21:08:02.495] *** Warning - bad CRC, using default environment

kernel解压0.5s

kernel启动到登陆花费1s

[2023-09-03 21:07:58.948] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 19:52:25)
[2023-09-03 21:07:58.951] DRAM: 32 MiB
[2023-09-03 21:07:58.960] SPL: Unsupported Boot Device!
[2023-09-03 21:07:58.960] Trying to boot from sunxi SPI
[2023-09-03 21:07:59.239] 
[2023-09-03 21:07:59.239] 
[2023-09-03 21:07:59.239] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 19:52:25 +0800) Allwinner Technology
[2023-09-03 21:07:59.239] 
[2023-09-03 21:07:59.239] CPU:   Allwinner F Series (SUNIV)
[2023-09-03 21:07:59.240] Model: Lichee Pi Nano
[2023-09-03 21:07:59.240] DRAM:  32 MiB
[2023-09-03 21:07:59.761] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 21:08:02.495] *** Warning - bad CRC, using default environment
[2023-09-03 21:08:02.497] 
[2023-09-03 21:08:02.497] In:    serial@1c25000
[2023-09-03 21:08:02.497] Out:   serial@1c25000
[2023-09-03 21:08:02.497] Err:   serial@1c25000
[2023-09-03 21:08:02.497] starting USB...
[2023-09-03 21:08:02.498] No controllers found
[2023-09-03 21:08:02.500] Hit any key to stop autoboot:  0 
[2023-09-03 21:08:02.501] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 21:08:02.501] device 0 offset 0x100000, size 0x4000
[2023-09-03 21:08:02.506] SF: 16384 bytes @ 0x100000 Read: OK
[2023-09-03 21:08:02.506] device 0 offset 0x110000, size 0x400000
[2023-09-03 21:08:03.533] SF: 4194304 bytes @ 0x110000 Read: OK
[2023-09-03 21:08:03.534] ## Flattened Device Tree blob at 80c00000
[2023-09-03 21:08:03.534]    Booting using the fdt blob at 0x80c00000
[2023-09-03 21:08:03.534]    Loading Device Tree to 816fa000, end 816ff085 ... OK
[2023-09-03 21:08:03.541] 
[2023-09-03 21:08:03.541] Starting kernel ...
[2023-09-03 21:08:03.541] 
[2023-09-03 21:08:04.071] [    0.000000] Booting Linux on physical CPU 0x0
[2023-09-03 21:08:04.071] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lv129@Lv-Ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #37 Sun Sep 3 18:02:14 CST 2023
[2023-09-03 21:08:04.073] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[2023-09-03 21:08:04.074] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[2023-09-03 21:08:04.075] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[2023-09-03 21:08:04.076] [    0.000000] Memory policy: Data cache writeback
[2023-09-03 21:08:04.076] [    0.000000] random: fast init done
[2023-09-03 21:08:04.077] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[2023-09-03 21:08:04.077] [    0.000000] Kernel command line: console=ttyS0,921600 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:220k(uboot)ro,64k(dtb)ro,2M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rs
[2023-09-03 21:08:04.080] [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[2023-09-03 21:08:04.081] [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[2023-09-03 21:08:04.081] [    0.000000] Memory: 27652K/32768K available (3171K kernel code, 191K rwdata, 860K rodata, 188K init, 202K bss, 5116K reserved, 0K cma-reserved, 0K highmem)
[2023-09-03 21:08:04.083] [    0.000000] Virtual kernel memory layout:
[2023-09-03 21:08:04.084] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[2023-09-03 21:08:04.085] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[2023-09-03 21:08:04.085] [    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[2023-09-03 21:08:04.086] [    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[2023-09-03 21:08:04.087] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[2023-09-03 21:08:04.087] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[2023-09-03 21:08:04.088] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3173 kB)
[2023-09-03 21:08:04.089] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 188 kB)
[2023-09-03 21:08:04.090] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 192 kB)
[2023-09-03 21:08:04.090] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 203 kB)
[2023-09-03 21:08:04.091] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2023-09-03 21:08:04.092] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[2023-09-03 21:08:04.093] [    0.000060] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[2023-09-03 21:08:04.094] [    0.000129] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[2023-09-03 21:08:04.095] [    0.000701] Console: colour dummy device 80x30
[2023-09-03 21:08:04.096] [    0.000802] Calibrating delay loop... 393.21 BogoMIPS (lpj=1966080)
[2023-09-03 21:08:04.097] [    0.050249] pid_max: default: 32768 minimum: 301
[2023-09-03 21:08:04.097] [    0.050533] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 21:08:04.098] [    0.050576] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 21:08:04.099] [    0.052098] CPU: Testing write buffer coherency: ok
[2023-09-03 21:08:04.099] [    0.054361] Setting up static identity map for 0x80008400 - 0x80008458
[2023-09-03 21:08:04.100] [    0.056763] devtmpfs: initialized
[2023-09-03 21:08:04.101] [    0.061968] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[2023-09-03 21:08:04.102] [    0.062045] futex hash table entries: 256 (order: -1, 3072 bytes)
[2023-09-03 21:08:04.103] [    0.062351] pinctrl core: initialized pinctrl subsystem
[2023-09-03 21:08:04.103] [    0.065051] DMA: preallocated 256 KiB pool for atomic coherent allocations
[2023-09-03 21:08:04.105] [    0.066886] cpuidle: using governor menu
[2023-09-03 21:08:04.105] [    0.087228] SCSI subsystem initialized
[2023-09-03 21:08:04.105] [    0.087656] usbcore: registered new interface driver usbfs
[2023-09-03 21:08:04.106] [    0.087826] usbcore: registered new interface driver hub
[2023-09-03 21:08:04.107] [    0.088050] usbcore: registered new device driver usb
[2023-09-03 21:08:04.107] [    0.088526] pps_core: LinuxPPS API ver. 1 registered
[2023-09-03 21:08:04.108] [    0.088557] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[2023-09-03 21:08:04.109] [    0.089213] clocksource: Switched to clocksource timer
[2023-09-03 21:08:04.110] [    0.098054] NetWinder Floating Point Emulator V0.97 (double precision)
[2023-09-03 21:08:04.111] [    0.100305] Initialise system trusted keyrings
[2023-09-03 21:08:04.111] [    0.101031] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[2023-09-03 21:08:04.112] [    0.109525] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[2023-09-03 21:08:04.113] [    0.110105] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[2023-09-03 21:08:04.114] [    0.124928] Key type asymmetric registered
[2023-09-03 21:08:04.114] [    0.124981] Asymmetric key parser 'x509' registered
[2023-09-03 21:08:04.115] [    0.125240] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[2023-09-03 21:08:04.116] [    0.125279] io scheduler noop registered
[2023-09-03 21:08:04.117] [    0.125294] io scheduler deadline registered
[2023-09-03 21:08:04.117] [    0.126025] io scheduler cfq registered (default)
[2023-09-03 21:08:04.118] [    0.126075] io scheduler mq-deadline registered
[2023-09-03 21:08:04.118] [    0.126091] io scheduler kyber registered
[2023-09-03 21:08:04.119] [    0.137359] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[2023-09-03 21:08:04.120] [    0.143266] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[2023-09-03 21:08:04.121] [    0.146705] console [ttyS0] disabled
[2023-09-03 21:08:04.121] [    0.166980] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[2023-09-03 21:08:04.122] [    0.219039] console [ttyS0] enabled
[2023-09-03 21:08:04.125] [    0.221839] SCSI Media Changer driver v0.25 
[2023-09-03 21:08:04.130] [    0.226318] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[2023-09-03 21:08:04.130] [    0.227143] 5 ofpart partitions found on MTD device spi0.0
[2023-09-03 21:08:04.131] [    0.227876] Creating 5 MTD partitions on "spi0.0":
[2023-09-03 21:08:04.132] [    0.228539] 0x000000000000-0x000000037000 : "u-boot"
[2023-09-03 21:08:04.136] [    0.232451] 0x000000100000-0x000000110000 : "dtb"
[2023-09-03 21:08:04.140] [    0.235930] 0x000000110000-0x000000360000 : "kernel"
[2023-09-03 21:08:04.143] [    0.239619] 0x000000510000-0x000000760000 : "rootfs"
[2023-09-03 21:08:04.147] [    0.243120] 0x000000800000-0x000000d00000 : "overlayfs"
[2023-09-03 21:08:04.150] [    0.246902] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[2023-09-03 21:08:04.151] [    0.247800] ehci-platform: EHCI generic platform driver
[2023-09-03 21:08:04.152] [    0.248790] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[2023-09-03 21:08:04.153] [    0.249856] ohci-platform: OHCI generic platform driver
[2023-09-03 21:08:04.154] [    0.250986] usbcore: registered new interface driver usb-storage
[2023-09-03 21:08:04.156] [    0.252804] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[2023-09-03 21:08:04.161] [    0.257627] g_serial gadget: Gadget Serial v2.4
[2023-09-03 21:08:04.161] [    0.258276] g_serial gadget: g_serial ready
[2023-09-03 21:08:04.163] [    0.259469] i2c /dev entries driver
[2023-09-03 21:08:04.223] [    0.319388] sunxi-mmc 1c0f000.mmc: base:0xe3ef672b irq:20
[2023-09-03 21:08:04.225] [    0.322061] usbcore: registered new interface driver usbhid
[2023-09-03 21:08:04.226] [    0.322828] usbhid: USB HID core driver
[2023-09-03 21:08:04.229] [    0.326082] Loading compiled-in X.509 certificates
[2023-09-03 21:08:04.248] [    0.344877] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[2023-09-03 21:08:04.256] [    0.352320] devtmpfs: mounted
[2023-09-03 21:08:04.257] [    0.353997] Freeing unused kernel memory: 188K
[2023-09-03 21:08:04.258] [    0.354602] This architecture does not have kernel memory protection.
[2023-09-03 21:08:04.367] [    0.463255] random: crng init done
[2023-09-03 21:08:04.642] [    0.738377] g_serial gadget: high-speed config #2: CDC ACM config
[2023-09-03 21:08:04.873] Starting logging: OK
[2023-09-03 21:08:04.952] read-only file system detected...done
[2023-09-03 21:08:04.977] Starting network: ip: socket: Function not implemented
[2023-09-03 21:08:05.058] ip: socket: Function not implemented
[2023-09-03 21:08:05.065] FAIL
[2023-09-03 21:08:05.183] 
[2023-09-03 21:08:05.183] Welcome to Buildroot
buildroot login: :05.183] 
[2023-09-03 21:08:06.149] Welcome to Buildroot
buildroot login: root149] 
[2023-09-03 21:08:07.906] login[71]: root login on 'console'
# ls /dev/
[2023-09-03 21:08:09.896] console             mtd4ro              tty1
[2023-09-03 21:08:09.897] cpu_dma_latency     mtdblock0           tty2
[2023-09-03 21:08:09.897] full                mtdblock1           tty3
[2023-09-03 21:08:09.899] gpiochip0           mtdblock2           tty4
[2023-09-03 21:08:09.899] i2c-0               mtdblock3           ttyGS0
[2023-09-03 21:08:09.900] kmsg                mtdblock4           ttyS0
[2023-09-03 21:08:09.901] mem                 network_latency     ttyS1
[2023-09-03 21:08:09.902] memory_bandwidth    network_throughput  ttyp0
[2023-09-03 21:08:09.903] mtd0                null                ttyp1
[2023-09-03 21:08:09.904] mtd0ro              ptmx                urandom
[2023-09-03 21:08:09.905] mtd1                pts                 vcs
[2023-09-03 21:08:09.906] mtd1ro              ptyp0               vcs1
[2023-09-03 21:08:09.907] mtd2                ptyp1               vcsa
[2023-09-03 21:08:09.908] mtd2ro              random              vcsa1
[2023-09-03 21:08:09.908] mtd3                shm                 zero
[2023-09-03 21:08:09.909] mtd3ro              tty
[2023-09-03 21:08:09.910] mtd4                tty0
[2023-09-03 21:08:09.912] # 

离线

#7 2023-09-03 22:01:18

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,388
积分: 1902
个人网站

Re: 全志F1c200s开机时间问题

uboot可以把一切不需要的功能剪裁掉,但是可能会有编译错误,一个一个解决,再试图提高spi clk,应该可以优化到0.5s。





离线

楼主 #8 2023-09-03 22:02:07

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

问题1
uboot启动打log发现主要时间在D2--D3

static int env_sf_load(void)
{
	pr_err("<test>----D\n");
	int ret;
	char *buf = NULL;

	buf = (char *)memalign(ARCH_DMA_MINALIGN, CONFIG_ENV_SIZE);
	if (!buf) {
		set_default_env("!malloc() failed");
		return -EIO;
	}
	pr_err("<test>----D1\n");
	ret = setup_flash_device();
	if (ret)
		goto out;
	pr_err("<test>----D2\n");
	ret = spi_flash_read(env_flash,
		CONFIG_ENV_OFFSET, CONFIG_ENV_SIZE, buf);
	pr_err("<test>----D3\n");
	if (ret) {
		set_default_env("!spi_flash_read() failed");
		goto err_read;
	}
	pr_err("<test>----B\n");
	ret = env_import(buf, 1);
	if (ret)
		gd->env_valid = ENV_VALID;

err_read:
	spi_flash_free(env_flash);
	env_flash = NULL;
out:
	free(buf);

	return ret;
}

修改 Environment Size   即可

│  
  │ │                 Select the location of the environment (Environment is in SPI flash)  --->     │ │  
  │ │             (0x35000) Environment Offset                                                       │ │  
  │ │             (0x1000) Environment Size   

修改前D2->D3花费2.7s
修改后D2->D3花费0.3s

[2023-09-03 21:57:23.790] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 21:57:02 +0800) Allwinner Techy
[2023-09-03 21:57:23.791]                                                                                      
[2023-09-03 21:57:23.791] CPU:   Allwinner F Series (SUNIV)                                                    
[2023-09-03 21:57:23.791] Model: Lichee Pi Nano                                                                
[2023-09-03 21:57:23.791] DRAM:  32 MiB                                                                        
[2023-09-03 21:57:24.313] <test>----D                                                                          
[2023-09-03 21:57:24.313] <test>----D1                                                                         
[2023-09-03 21:57:24.313] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB      
[2023-09-03 21:57:24.315] <test>----D2                                                                         
[2023-09-03 21:57:24.656] <test>----D3                                                                         
[2023-09-03 21:57:24.656] <test>----B                                                                          
[2023-09-03 21:57:24.656] <test>----0                                                                          
[2023-09-03 21:57:24.656] *** Warning0 - bad CRC, using default environment   

离线

楼主 #9 2023-09-03 22:42:40

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

3.7s进终端
最新log
uboot->kernel 2.2s
kernel解压0.5s
kernel启动到登陆花费1s

[2023-09-03 23:00:32.628] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 22:35:29)
[2023-09-03 23:00:32.630] DRAM: 32 MiB
[2023-09-03 23:00:32.640] SPL: Unsupported Boot Device!
[2023-09-03 23:00:32.640] Trying to boot from sunxi SPI
[2023-09-03 23:00:32.918] 
[2023-09-03 23:00:32.918] 
[2023-09-03 23:00:32.918] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 03 2023 - 22:35:29 +0800) Allwinner Technology
[2023-09-03 23:00:32.921] 
[2023-09-03 23:00:32.921] DRAM:  32 MiB
[2023-09-03 23:00:33.440] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 23:00:33.440] spi_flash_read
[2023-09-03 23:00:33.783] --
[2023-09-03 23:00:33.783] <test>----0
[2023-09-03 23:00:33.783] *** Warning0 - bad CRC, using default environment
[2023-09-03 23:00:33.785] 
[2023-09-03 23:00:33.785] In:    serial@1c25000
[2023-09-03 23:00:33.785] Out:   serial@1c25000
[2023-09-03 23:00:33.785] Err:   serial@1c25000
[2023-09-03 23:00:33.786] starting USB...
[2023-09-03 23:00:33.786] No controllers found
[2023-09-03 23:00:33.787] Hit any key to stop autoboot:  0 
[2023-09-03 23:00:33.789] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-03 23:00:33.789] device 0 offset 0x100000, size 0x4000
[2023-09-03 23:00:33.794] SF: 16384 bytes @ 0x100000 Read: OK
[2023-09-03 23:00:33.794] device 0 offset 0x110000, size 0x400000
[2023-09-03 23:00:34.809] SF: 4194304 bytes @ 0x110000 Read: OK
[2023-09-03 23:00:34.809] ## Flattened Device Tree blob at 80c00000
[2023-09-03 23:00:34.809]    Booting using the fdt blob at 0x80c00000
[2023-09-03 23:00:34.810]    Loading Device Tree to 816fa000, end 816ff085 ... OK
[2023-09-03 23:00:34.817] 
[2023-09-03 23:00:34.817] Starting kernel ...
[2023-09-03 23:00:34.817] 
[2023-09-03 23:00:35.346] [    0.000000] Booting Linux on physical CPU 0x0
[2023-09-03 23:00:35.347] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lv129@Lv-Ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #37 Sun Sep 3 18:02:14 CST 2023
[2023-09-03 23:00:35.349] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[2023-09-03 23:00:35.350] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[2023-09-03 23:00:35.350] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[2023-09-03 23:00:35.351] [    0.000000] Memory policy: Data cache writeback
[2023-09-03 23:00:35.351] [    0.000000] random: fast init done
[2023-09-03 23:00:35.352] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[2023-09-03 23:00:35.353] [    0.000000] Kernel command line: console=ttyS0,921600 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:220k(uboot)ro,64k(dtb)ro,2.5M(kernel)ro,-(rootfs) root=/dev/mtdblock3s
[2023-09-03 23:00:35.355] [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[2023-09-03 23:00:35.356] [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[2023-09-03 23:00:35.356] [    0.000000] Memory: 27652K/32768K available (3171K kernel code, 191K rwdata, 860K rodata, 188K init, 202K bss, 5116K reserved, 0K cma-reserved, 0K highmem)
[2023-09-03 23:00:35.358] [    0.000000] Virtual kernel memory layout:
[2023-09-03 23:00:35.359] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[2023-09-03 23:00:35.360] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[2023-09-03 23:00:35.361] [    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[2023-09-03 23:00:35.361] [    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[2023-09-03 23:00:35.362] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[2023-09-03 23:00:35.363] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[2023-09-03 23:00:35.363] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3173 kB)
[2023-09-03 23:00:35.364] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 188 kB)
[2023-09-03 23:00:35.365] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 192 kB)
[2023-09-03 23:00:35.366] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 203 kB)
[2023-09-03 23:00:35.367] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2023-09-03 23:00:35.367] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[2023-09-03 23:00:35.368] [    0.000060] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[2023-09-03 23:00:35.369] [    0.000129] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[2023-09-03 23:00:35.370] [    0.000700] Console: colour dummy device 80x30
[2023-09-03 23:00:35.371] [    0.000800] Calibrating delay loop... 393.21 BogoMIPS (lpj=1966080)
[2023-09-03 23:00:35.372] [    0.050249] pid_max: default: 32768 minimum: 301
[2023-09-03 23:00:35.372] [    0.050532] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 23:00:35.373] [    0.050575] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-03 23:00:35.374] [    0.052096] CPU: Testing write buffer coherency: ok
[2023-09-03 23:00:35.375] [    0.054362] Setting up static identity map for 0x80008400 - 0x80008458
[2023-09-03 23:00:35.375] [    0.056764] devtmpfs: initialized
[2023-09-03 23:00:35.376] [    0.061981] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[2023-09-03 23:00:35.377] [    0.062057] futex hash table entries: 256 (order: -1, 3072 bytes)
[2023-09-03 23:00:35.378] [    0.062367] pinctrl core: initialized pinctrl subsystem
[2023-09-03 23:00:35.379] [    0.065067] DMA: preallocated 256 KiB pool for atomic coherent allocations
[2023-09-03 23:00:35.380] [    0.066893] cpuidle: using governor menu
[2023-09-03 23:00:35.380] [    0.087277] SCSI subsystem initialized
[2023-09-03 23:00:35.380] [    0.087696] usbcore: registered new interface driver usbfs
[2023-09-03 23:00:35.381] [    0.087880] usbcore: registered new interface driver hub
[2023-09-03 23:00:35.382] [    0.088105] usbcore: registered new device driver usb
[2023-09-03 23:00:35.383] [    0.088574] pps_core: LinuxPPS API ver. 1 registered
[2023-09-03 23:00:35.383] [    0.088604] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[2023-09-03 23:00:35.384] [    0.089271] clocksource: Switched to clocksource timer
[2023-09-03 23:00:35.385] [    0.098105] NetWinder Floating Point Emulator V0.97 (double precision)
[2023-09-03 23:00:35.386] [    0.100351] Initialise system trusted keyrings
[2023-09-03 23:00:35.387] [    0.101075] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[2023-09-03 23:00:35.387] [    0.109434] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[2023-09-03 23:00:35.388] [    0.110034] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[2023-09-03 23:00:35.389] [    0.124934] Key type asymmetric registered
[2023-09-03 23:00:35.390] [    0.124984] Asymmetric key parser 'x509' registered
[2023-09-03 23:00:35.390] [    0.125246] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[2023-09-03 23:00:35.391] [    0.125281] io scheduler noop registered
[2023-09-03 23:00:35.392] [    0.125295] io scheduler deadline registered
[2023-09-03 23:00:35.392] [    0.126028] io scheduler cfq registered (default)
[2023-09-03 23:00:35.393] [    0.126070] io scheduler mq-deadline registered
[2023-09-03 23:00:35.394] [    0.126082] io scheduler kyber registered
[2023-09-03 23:00:35.394] [    0.137382] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[2023-09-03 23:00:35.395] [    0.143280] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[2023-09-03 23:00:35.396] [    0.146684] console [ttyS0] disabled
[2023-09-03 23:00:35.396] [    0.166963] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[2023-09-03 23:00:35.397] [    0.219054] console [ttyS0] enabled
[2023-09-03 23:00:35.400] [    0.221870] SCSI Media Changer driver v0.25 
[2023-09-03 23:00:35.405] [    0.226325] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[2023-09-03 23:00:35.405] [    0.227084] mtd: bad character after partition (.)
[2023-09-03 23:00:35.406] [    0.227783] 5 ofpart partitions found on MTD device spi0.0
[2023-09-03 23:00:35.407] [    0.228510] Creating 5 MTD partitions on "spi0.0":
[2023-09-03 23:00:35.408] [    0.229172] 0x000000000000-0x000000037000 : "u-boot"
[2023-09-03 23:00:35.412] [    0.233057] 0x000000100000-0x000000110000 : "dtb"
[2023-09-03 23:00:35.415] [    0.236517] 0x000000110000-0x000000360000 : "kernel"
[2023-09-03 23:00:35.419] [    0.240179] 0x000000510000-0x000000760000 : "rootfs"
[2023-09-03 23:00:35.422] [    0.243656] 0x000000800000-0x000000d00000 : "overlayfs"
[2023-09-03 23:00:35.426] [    0.247442] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[2023-09-03 23:00:35.427] [    0.248343] ehci-platform: EHCI generic platform driver
[2023-09-03 23:00:35.428] [    0.249523] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[2023-09-03 23:00:35.429] [    0.250426] ohci-platform: OHCI generic platform driver
[2023-09-03 23:00:35.430] [    0.251521] usbcore: registered new interface driver usb-storage
[2023-09-03 23:00:35.432] [    0.253338] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[2023-09-03 23:00:35.437] [    0.258189] g_serial gadget: Gadget Serial v2.4
[2023-09-03 23:00:35.437] [    0.258837] g_serial gadget: g_serial ready
[2023-09-03 23:00:35.438] [    0.260024] i2c /dev entries driver
[2023-09-03 23:00:35.498] [    0.319448] sunxi-mmc 1c0f000.mmc: base:0xe3ef672b irq:20
[2023-09-03 23:00:35.501] [    0.322130] usbcore: registered new interface driver usbhid
[2023-09-03 23:00:35.501] [    0.322896] usbhid: USB HID core driver
[2023-09-03 23:00:35.505] [    0.326180] Loading compiled-in X.509 certificates
[2023-09-03 23:00:35.524] [    0.345893] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[2023-09-03 23:00:35.531] [    0.352389] devtmpfs: mounted
[2023-09-03 23:00:35.533] [    0.354059] Freeing unused kernel memory: 188K
[2023-09-03 23:00:35.533] [    0.354664] This architecture does not have kernel memory protection.
[2023-09-03 23:00:35.642] [    0.463421] random: crng init done
[2023-09-03 23:00:35.916] [    0.737182] g_serial gadget: high-speed config #2: CDC ACM config
[2023-09-03 23:00:36.148] Starting logging: OK
[2023-09-03 23:00:36.226] read-only file system detected...done
[2023-09-03 23:00:36.349] 
[2023-09-03 23:00:36.349] Welcome to Buildroot
buildroot login: login[62]: root login on 'ttyGS0'

最近编辑记录 资本家大善人 (2023-09-03 23:04:41)

离线

楼主 #10 2023-09-03 22:44:22

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

哇酷小二 说:

uboot可以把一切不需要的功能剪裁掉,但是可能会有编译错误,一个一个解决,再试图提高spi clk,应该可以优化到0.5s。

spi  108M
主频 816Mhz
ddr 480Mhz
uboot大小202kb

离线

#11 2023-09-04 09:23:06

shaoxi2010
会员
注册时间: 2019-06-13
已发帖子: 392
积分: 336

Re: 全志F1c200s开机时间问题

这个太慢了,你确认过uboot的频率是不是100M哦,我没记错的话它默认用的24M时钟
从日志上看,你这uboot内核装载才4M/s的速度,远低于裸机的12M/s

离线

楼主 #12 2023-09-04 23:55:41

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

uboot SPI默认1M速度设置100M 可加快0.3 0.4s
https://whycan.com/t_8172.html

#ifndef CONFIG_ENV_SPI_MAX_HZ

//# define CONFIG_ENV_SPI_MAX_HZ    CONFIG_SF_DEFAULT_SPEED
# define CONFIG_ENV_SPI_MAX_HZ    100000000

#endif
#ifndef CONFIG_ENV_SPI_MODE
# define CONFIG_ENV_SPI_MODE    CONFIG_SF_DEFAULT_MODE
#endif

#ifndef CONFIG_SPL_BUILD
#define CMD_SAVEENV
#endif

#ifdef CONFIG_ENV_OFFSET_REDUND
#ifdef CMD_SAVEENV
static ulong env_offset        = CONFIG_ENV_OFFSET;
static ulong env_new_offset    = CONFIG_ENV_OFFSET_REDUND;
#endif

#define ACTIVE_FLAG    1
#define OBSOLETE_FLAG    0
#endif /* CONFIG_ENV_OFFSET_REDUND */

DECLARE_GLOBAL_DATA_PTR;

static struct spi_flash *env_flash;

static int setup_flash_device(void)
{

#ifdef ONFIG_DM_SPI_FLASH_lzq

    struct udevice *new;
    int    ret;

    /* speed and mode will be read from DT */
    ret = spi_flash_probe_bus_cs(CONFIG_ENV_SPI_BUS, CONFIG_ENV_SPI_CS,
                     0, 0, &new);
    if (ret) {
        set_default_env("!spi_flash_probe_bus_cs() failed");
        return ret;
    }

    env_flash = dev_get_uclass_priv(new);
#else

    printf("CONFIG_ENV_SPI_MAX_HZ: %d\n", CONFIG_ENV_SPI_MAX_HZ);

    if (!env_flash) {
        env_flash = spi_flash_probe(CONFIG_ENV_SPI_BUS,
            CONFIG_ENV_SPI_CS,
            CONFIG_ENV_SPI_MAX_HZ, CONFIG_ENV_SPI_MODE);
        if (!env_flash) {
            set_default_env("!spi_flash_probe() failed");
            return -EIO;
        }
    }
#endif
    return 0;
}

[2023-09-04 23:45:57.021] U-Boot SPL 2018.01-05682-gd83b2fefcf-dirty (Sep 04 2023 - 23:44:43)
[2023-09-04 23:45:57.023] DRAM: 32 MiB
[2023-09-04 23:45:57.032] SPL: Unsupported Boot Device!
[2023-09-04 23:45:57.033] Trying to boot from sunxi SPI
[2023-09-04 23:45:57.312] 
[2023-09-04 23:45:57.312] 
[2023-09-04 23:45:57.312] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 04 2023 - 23:44:43 +0800) Allwinner Technology
[2023-09-04 23:45:57.315] 
[2023-09-04 23:45:57.315] DRAM:  32 MiB
[2023-09-04 23:45:57.832] CONFIG_ENV_SPI_MAX_HZ: 100000000
[2023-09-04 23:45:57.833] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-04 23:45:57.833] spi_flash_read
[2023-09-04 23:45:57.835] --
[2023-09-04 23:45:57.835] *** Warning0 - bad CRC, using default environment
[2023-09-04 23:45:57.837] 
[2023-09-04 23:45:57.837] In:    serial@1c25000
[2023-09-04 23:45:57.837] Out:   serial@1c25000
[2023-09-04 23:45:57.837] Err:   serial@1c25000
[2023-09-04 23:45:57.837] starting USB...
[2023-09-04 23:45:57.837] No controllers found
[2023-09-04 23:45:57.839] Hit any key to stop autoboot:  0 
[2023-09-04 23:45:57.839] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[2023-09-04 23:45:57.840] device 0 offset 0x100000, size 0x4000
[2023-09-04 23:45:57.845] SF: 16384 bytes @ 0x100000 Read: OK
[2023-09-04 23:45:57.845] device 0 offset 0x110000, size 0x400000
[2023-09-04 23:45:58.883] SF: 4194304 bytes @ 0x110000 Read: OK
[2023-09-04 23:45:58.884] ## Flattened Device Tree blob at 80c00000
[2023-09-04 23:45:58.884]    Booting using the fdt blob at 0x80c00000
[2023-09-04 23:45:58.884]    Loading Device Tree to 816fa000, end 816ff085 ... OK
[2023-09-04 23:45:58.892] 
[2023-09-04 23:45:58.892] Starting kernel ...
[2023-09-04 23:45:58.892] 
[2023-09-04 23:45:59.419] [    0.000000] Booting Linux on physical CPU 0x0
[2023-09-04 23:45:59.438] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lv129@Lv-Ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #37 Sun Sep 3 18:02:14 CST 2023
[2023-09-04 23:45:59.440] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[2023-09-04 23:45:59.441] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[2023-09-04 23:45:59.442] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[2023-09-04 23:45:59.442] [    0.000000] Memory policy: Data cache writeback
[2023-09-04 23:45:59.443] [    0.000000] random: fast init done
[2023-09-04 23:45:59.443] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[2023-09-04 23:45:59.444] [    0.000000] Kernel command line: console=ttyS0,921600 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:220k(uboot)ro,64k(dtb)ro,2.5M(kernel)ro,-(rootfs) root=/dev/mtdblock3s
[2023-09-04 23:45:59.447] [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[2023-09-04 23:45:59.447] [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[2023-09-04 23:45:59.448] [    0.000000] Memory: 27652K/32768K available (3171K kernel code, 191K rwdata, 860K rodata, 188K init, 202K bss, 5116K reserved, 0K cma-reserved, 0K highmem)
[2023-09-04 23:45:59.450] [    0.000000] Virtual kernel memory layout:
[2023-09-04 23:45:59.451] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[2023-09-04 23:45:59.452] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[2023-09-04 23:45:59.452] [    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[2023-09-04 23:45:59.453] [    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[2023-09-04 23:45:59.454] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[2023-09-04 23:45:59.454] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[2023-09-04 23:45:59.455] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3173 kB)
[2023-09-04 23:45:59.456] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 188 kB)
[2023-09-04 23:45:59.456] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 192 kB)
[2023-09-04 23:45:59.457] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 203 kB)
[2023-09-04 23:45:59.458] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2023-09-04 23:45:59.459] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[2023-09-04 23:45:59.460] [    0.000060] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[2023-09-04 23:45:59.461] [    0.000134] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[2023-09-04 23:45:59.462] [    0.000721] Console: colour dummy device 80x30
[2023-09-04 23:45:59.463] [    0.000824] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[2023-09-04 23:45:59.463] [    0.060173] pid_max: default: 32768 minimum: 301
[2023-09-04 23:45:59.464] [    0.060506] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-04 23:45:59.465] [    0.060556] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[2023-09-04 23:45:59.465] [    0.062106] CPU: Testing write buffer coherency: ok
[2023-09-04 23:45:59.466] [    0.064395] Setting up static identity map for 0x80008400 - 0x80008458
[2023-09-04 23:45:59.467] [    0.066845] devtmpfs: initialized
[2023-09-04 23:45:59.468] [    0.072161] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[2023-09-04 23:45:59.469] [    0.072243] futex hash table entries: 256 (order: -1, 3072 bytes)
[2023-09-04 23:45:59.470] [    0.072566] pinctrl core: initialized pinctrl subsystem
[2023-09-04 23:45:59.470] [    0.075325] DMA: preallocated 256 KiB pool for atomic coherent allocations
[2023-09-04 23:45:59.471] [    0.077163] cpuidle: using governor menu
[2023-09-04 23:45:59.472] [    0.097818] SCSI subsystem initialized
[2023-09-04 23:45:59.472] [    0.098241] usbcore: registered new interface driver usbfs
[2023-09-04 23:45:59.473] [    0.098409] usbcore: registered new interface driver hub
[2023-09-04 23:45:59.474] [    0.098632] usbcore: registered new device driver usb
[2023-09-04 23:45:59.474] [    0.099114] pps_core: LinuxPPS API ver. 1 registered
[2023-09-04 23:45:59.475] [    0.099146] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[2023-09-04 23:45:59.476] [    0.099814] clocksource: Switched to clocksource timer
[2023-09-04 23:45:59.477] [    0.108785] NetWinder Floating Point Emulator V0.97 (double precision)
[2023-09-04 23:45:59.477] [    0.111063] Initialise system trusted keyrings
[2023-09-04 23:45:59.478] [    0.111786] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[2023-09-04 23:45:59.479] [    0.120461] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[2023-09-04 23:45:59.480] [    0.121020] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[2023-09-04 23:45:59.481] [    0.136077] Key type asymmetric registered
[2023-09-04 23:45:59.481] [    0.136136] Asymmetric key parser 'x509' registered
[2023-09-04 23:45:59.482] [    0.136396] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[2023-09-04 23:45:59.483] [    0.136436] io scheduler noop registered
[2023-09-04 23:45:59.483] [    0.136449] io scheduler deadline registered
[2023-09-04 23:45:59.484] [    0.137193] io scheduler cfq registered (default)
[2023-09-04 23:45:59.484] [    0.137242] io scheduler mq-deadline registered
[2023-09-04 23:45:59.485] [    0.137259] io scheduler kyber registered
[2023-09-04 23:45:59.486] [    0.148785] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[2023-09-04 23:45:59.487] [    0.154811] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[2023-09-04 23:45:59.487] [    0.158256] console [ttyS0] disabled
[2023-09-04 23:45:59.488] [    0.178515] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[2023-09-04 23:45:59.489] [    0.230784] console [ttyS0] enabled
[2023-09-04 23:45:59.492] [    0.233506] SCSI Media Changer driver v0.25 
[2023-09-04 23:45:59.497] [    0.238030] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[2023-09-04 23:45:59.497] [    0.238788] mtd: bad character after partition (.)
[2023-09-04 23:45:59.498] [    0.239486] 5 ofpart partitions found on MTD device spi0.0
[2023-09-04 23:45:59.499] [    0.240383] Creating 5 MTD partitions on "spi0.0":
[2023-09-04 23:45:59.499] [    0.241061] 0x000000000000-0x000000037000 : "u-boot"
[2023-09-04 23:45:59.504] [    0.244885] 0x000000100000-0x000000110000 : "dtb"
[2023-09-04 23:45:59.507] [    0.248372] 0x000000110000-0x000000360000 : "kernel"
[2023-09-04 23:45:59.511] [    0.252105] 0x000000510000-0x000000760000 : "rootfs"
[2023-09-04 23:45:59.514] [    0.255589] 0x000000800000-0x000000d00000 : "overlayfs"
[2023-09-04 23:45:59.518] [    0.259421] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[2023-09-04 23:45:59.519] [    0.260503] ehci-platform: EHCI generic platform driver
[2023-09-04 23:45:59.520] [    0.261545] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[2023-09-04 23:45:59.521] [    0.262444] ohci-platform: OHCI generic platform driver
[2023-09-04 23:45:59.522] [    0.263513] usbcore: registered new interface driver usb-storage
[2023-09-04 23:45:59.524] [    0.265330] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[2023-09-04 23:45:59.529] [    0.270436] g_serial gadget: Gadget Serial v2.4
[2023-09-04 23:45:59.529] [    0.271084] g_serial gadget: g_serial ready
[2023-09-04 23:45:59.530] [    0.272102] i2c /dev entries driver
[2023-09-04 23:45:59.589] [    0.329997] sunxi-mmc 1c0f000.mmc: base:0x448d286f irq:20
[2023-09-04 23:45:59.591] [    0.332691] usbcore: registered new interface driver usbhid
[2023-09-04 23:45:59.592] [    0.333459] usbhid: USB HID core driver
[2023-09-04 23:45:59.596] [    0.336761] Loading compiled-in X.509 certificates
[2023-09-04 23:45:59.615] [    0.356606] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[2023-09-04 23:45:59.622] [    0.363135] devtmpfs: mounted
[2023-09-04 23:45:59.623] [    0.364813] Freeing unused kernel memory: 188K
[2023-09-04 23:45:59.624] [    0.365413] This architecture does not have kernel memory protection.
[2023-09-04 23:45:59.736] [    0.477057] random: crng init done
[2023-09-04 23:46:00.019] [    0.760662] g_serial gadget: high-speed config #2: CDC ACM config
[2023-09-04 23:46:00.243] Starting logging: OK
[2023-09-04 23:46:00.318] read-only file system detected...done
[2023-09-04 23:46:00.449] 
[2023-09-04 23:46:00.449] Welcome to Buildroot
buildroot login: :00.449] 

最近编辑记录 资本家大善人 (2023-09-05 00:05:18)

离线

楼主 #13 2023-09-05 00:29:08

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

shaoxi2010 说:

这个太慢了,你确认过uboot的频率是不是100M哦,我没记错的话它默认用的24M时钟
从日志上看,你这uboot内核装载才4M/s的速度,远低于裸机的12M/s

fake100M: clk-100M ?

离线

楼主 #14 2023-09-05 01:34:45

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

修改CONFIG_BOOTCOMMAND相关参数,修改uboot读取kernel的大小(2.2m)
开机优化到2.5s进终端

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

最新log
[消耗时间]  log

[0.002] DRAM: 32 MiB
[0.009] SPL: Unsupported Boot Device!
[0.000] Trying to boot from sunxi SPI
[0.279] 
[0.000] 
[0.000] U-Boot 2018.01-05682-gd83b2fefcf-dirty (Sep 05 2023 - 01:22:50 +0800) Allwinner Technology
[0.002] 
[0.000] DRAM:  32 MiB
[0.517] CONFIG_ENV_SPI_MAX_HZ: 100000000
[0.001] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[0.000] spi_flash_read
[0.001] --
[0.000] *** Warning0 - bad CRC, using default environment
[0.001] 
[0.000] In:    serial@1c25000
[0.000] Out:   serial@1c25000
[0.000] Err:   serial@1c25000
[0.000] starting USB...
[0.000] No controllers found
[0.001] Hit any key to stop autoboot:  0 
[0.000] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[0.000] device 0 offset 0x100000, size 0x4000
[0.003] SF: 16384 bytes @ 0x100000 Read: OK
[0.000] device 0 offset 0x110000, size 0x215000
[0.345] SF: 2183168 bytes @ 0x110000 Read: OK
[0.000] ## Flattened Device Tree blob at 80c00000
[0.000]    Booting using the fdt blob at 0x80c00000
[0.000]    Loading Device Tree to 816fa000, end 816ff085 ... OK
[0.007] 
[0.000] Starting kernel ...
[0.000] 
[0.479] [    0.000000] Booting Linux on physical CPU 0x0
[0.019] [    0.000000] Linux version 4.15.0-rc8-licheepi-nano+ (lv129@Lv-Ubuntu) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #41 Tue Sep 5 01:17:06 CST 2023
[0.001] [    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f                                                                                                                       
[0.001] [    0.000000] CPU: VIVT data cache, VIVT instruction cache
[0.000] [    0.000000] OF: fdt: Machine model: Lichee Pi Nano
[0.000] [    0.000000] Memory policy: Data cache writeback
[0.000] [    0.000000] random: fast init done
[0.000] [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 8128
[0.000] [    0.000000] Kernel command line: console=ttyS0,921600 earlyprintk panic=5 rootwait; mtdparts=spi32766.0:220k(uboot)ro,64k(dtb)ro,2.5M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=squs
[0.002] [    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[0.000] [    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.000] [    0.000000] Memory: 27928K/32768K available (3008K kernel code, 164K rwdata, 800K rodata, 176K init, 193K bss, 4840K reserved, 0K cma-reserved, 0K highmem)
[0.001] [    0.000000] Virtual kernel memory layout:
[0.000] [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[0.000] [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[0.000] [    0.000000]     vmalloc : 0xc2800000 - 0xff800000   ( 976 MB)
[0.000] [    0.000000]     lowmem  : 0xc0000000 - 0xc2000000   (  32 MB)
[0.000] [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[0.000] [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[0.000] [    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (3010 kB)
[0.000] [    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   ( 176 kB)
[0.000] [    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 165 kB)
[0.000] [    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 194 kB)
[0.001] [    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[0.000] [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[0.000] [    0.000061] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[0.001] [    0.000138] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[0.001] [    0.000715] Console: colour dummy device 80x30
[0.000] [    0.000821] Calibrating delay loop... 383.38 BogoMIPS (lpj=1916928)
[0.000] [    0.050301] pid_max: default: 32768 minimum: 301
[0.000] [    0.050581] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.001] [    0.050622] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.000] [    0.052119] CPU: Testing write buffer coherency: ok
[0.000] [    0.054359] Setting up static identity map for 0x80008400 - 0x80008458
[0.000] [    0.056763] devtmpfs: initialized
[0.000] [    0.061779] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[0.001] [    0.061860] futex hash table entries: 256 (order: -1, 3072 bytes)
[0.000] [    0.062186] pinctrl core: initialized pinctrl subsystem
[0.000] [    0.064912] DMA: preallocated 256 KiB pool for atomic coherent allocations
[0.001] [    0.066720] cpuidle: using governor menu
[0.000] [    0.086121] SCSI subsystem initialized
[0.000] [    0.086492] usbcore: registered new interface driver usbfs
[0.000] [    0.086644] usbcore: registered new interface driver hub
[0.000] [    0.086902] usbcore: registered new device driver usb
[0.000] [    0.087395] pps_core: LinuxPPS API ver. 1 registered
[0.000] [    0.087422] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[0.001] [    0.088044] clocksource: Switched to clocksource timer
[0.000] [    0.097043] NetWinder Floating Point Emulator V0.97 (double precision)
[0.000] [    0.099863] workingset: timestamp_bits=30 max_order=13 bucket_order=0
[0.001] [    0.108231] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[0.000] [    0.108837] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[0.000] [    0.110300] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[0.001] [    0.110356] io scheduler noop registered
[0.000] [    0.110372] io scheduler deadline registered
[0.000] [    0.111032] io scheduler cfq registered (default)
[0.000] [    0.111070] io scheduler mq-deadline registered
[0.000] [    0.111083] io scheduler kyber registered
[0.000] [    0.122354] suniv-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[0.001] [    0.127990] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[0.000] [    0.131749] console [ttyS0] disabled
[0.000] [    0.152137] 1c25000.serial: ttyS0 at MMIO 0x1c25000 (irq = 24, base_baud = 6250000) is a 16550A
[0.001] [    0.202468] console [ttyS0] enabled
[0.003] [    0.205117] SCSI Media Changer driver v0.25 
[0.004] [    0.209795] m25p80 spi0.0: xt25f128b (16384 Kbytes)
[0.000] [    0.210531] mtd: bad character after partition (.)
[0.000] [    0.211227] 5 ofpart partitions found on MTD device spi0.0
[0.001] [    0.211955] Creating 5 MTD partitions on "spi0.0":
[0.000] [    0.212615] 0x000000000000-0x000000032000 : "u-boot"
[0.004] [    0.216379] 0x000000100000-0x000000110000 : "dtb"
[0.003] [    0.220060] 0x000000110000-0x000000360000 : "kernel"
[0.003] [    0.223501] 0x000000510000-0x000000725000 : "rootfs"
[0.000] [    0.224196] mtd: partition "rootfs" doesn't end on an erase/write block -- force read-only
[0.004] [    0.228013] 0x000000800000-0x000000d00000 : "overlayfs"
[0.004] [    0.232104] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[0.000] [    0.233002] ehci-platform: EHCI generic platform driver
[0.001] [    0.233957] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[0.000] [    0.234851] ohci-platform: OHCI generic platform driver
[0.001] [    0.236764] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[0.005] [    0.241833] g_serial gadget: Gadget Serial v2.4
[0.000] [    0.242480] g_serial gadget: g_serial ready
[0.001] [    0.243514] i2c /dev entries driver
[0.064] [    0.308211] sunxi-mmc 1c0f000.mmc: base:0x21230d20 irq:20
[0.002] [    0.310634] usbcore: registered new interface driver usbhid
[0.000] [    0.311399] usbhid: USB HID core driver
[0.023] [    0.333849] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[0.006] [    0.340321] devtmpfs: mounted
[0.001] [    0.341928] Freeing unused kernel memory: 176K
[0.000] [    0.342532] This architecture does not have kernel memory protection.
[0.105] [    0.447269] random: crng init done
[0.273] [    0.721136] g_serial gadget: high-speed config #2: CDC ACM config
[0.226] Starting logging: OK
[0.079] read-only file system detected...done
[0.121] 
[0.000] Welcome to Buildroot
buildroot login:

最耗费时间的

[0.000] Trying to boot from sunxi SPI
[0.279]
[0.517] CONFIG_ENV_SPI_MAX_HZ: 100000000
[0.001] SF: Detected xt25f128b with page size 256 Bytes, erase size 4 KiB, total 16 MiB
[0.000] device 0 offset 0x110000, size 0x215000
[0.345] SF: 2183168 bytes @ 0x110000 Read: OK
[0.007]
[0.000] Starting kernel ...
[0.479] [    0.000000] Booting Linux on physical CPU 0x0
[0.105] [    0.447269] random: crng init done
[0.273] [    0.721136] g_serial gadget: high-speed config #2: CDC ACM config
[0.226] Starting logging: OK

[0.079] read-only file system detected...done
[0.121]
[0.000] Welcome to Buildroot
buildroot login:

最近编辑记录 资本家大善人 (2023-09-05 08:25:35)

离线

#16 2023-09-05 11:44:05

xfdr0805
会员
注册时间: 2020-07-23
已发帖子: 312
积分: 355

Re: 全志F1c200s开机时间问题

看了一下日志 audio lcd sdio这些都裁了  就剩i2c gpio usb gaget这些了  好奇 这是做的啥应用?

离线

楼主 #17 2023-09-05 14:05:30

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

xfdr0805 说:

看了一下日志 audio lcd sdio这些都裁了  就剩i2c gpio usb gaget这些了  好奇 这是做的啥应用?

留下的usb做虚拟串口终端
然后用Linux自带的iic-tools spi-tools 当debug工具

主要是好玩+练手
后面再加个屏幕玩玩

最近编辑记录 资本家大善人 (2023-09-05 15:23:16)

离线

#18 2023-09-05 22:16:02

xfdr0805
会员
注册时间: 2020-07-23
已发帖子: 312
积分: 355

Re: 全志F1c200s开机时间问题

资本家大善人 说:
xfdr0805 说:

看了一下日志 audio lcd sdio这些都裁了  就剩i2c gpio usb gaget这些了  好奇 这是做的啥应用?

留下的usb做虚拟串口终端
然后用Linux自带的iic-tools spi-tools 当debug工具

主要是好玩+练手
后面再加个屏幕玩玩

原来如此,优化的已经非常不错了,不过为啥不用RTT呢,这些工具也有,重点是秒启动  smile

离线

楼主 #19 2023-09-05 22:49:39

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

@xfdr0805
因为linux YYDS
之后可能会用f1c100玩点其他东西 smile

离线

#20 2023-09-07 18:59:38

imazy
会员
注册时间: 2020-06-23
已发帖子: 2
积分: 2

Re: 全志F1c200s开机时间问题

把中间的信息打印去掉,只记录时间留到最后再打印,会有多大变化?

离线

楼主 #21 2023-09-07 23:03:24

资本家大善人
会员
注册时间: 2021-03-26
已发帖子: 191
积分: 131.5

Re: 全志F1c200s开机时间问题

imazy 说:

把中间的信息打印去掉,只记录时间留到最后再打印,会有多大变化?

921600的波特率,就那些log,全部去掉省几十毫秒而已

离线

#22 2024-09-22 20:20:25

zhanglei
会员
注册时间: 2021-07-16
已发帖子: 2
积分: 2

Re: 全志F1c200s开机时间问题

您好楼主您的内核可以分享一下么?

离线

页脚

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

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