U-Boot SPL 2017.11-dirty (Sep 14 2020 - 16:57:44)
DRAM: 128 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC2
U-Boot 2017.11-dirty (Sep 14 2020 - 16:57:44 +0800) Allwinner Technology
CPU: Allwinner A33 (SUN8I 1667)
Model: Sinlinx SinA33
DRAM: 128 MiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
*** Warning - bad CRC, using default environment
Setting up a 800x600 lcd console (overscan 0x0)
jkl!
18
8c100000
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB...
USB0: USB EHCI 1.00
USB1: USB OHCI 1.0
scanning bus 0 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
reading zImage
4278136 bytes read in 346 ms (11.8 MiB/s)
reading sun8i-x3-smallwit-demo.dtb
25534 bytes read in 27 ms (922.9 KiB/s)
## Flattened Device Tree blob at 49000000
Booting using the fdt blob at 0x49000000
Loading Device Tree to 46d33000, end 46d3c3bd ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.20.0-dirty (root@le-desktop) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #47 SMP Mon Sep 14 16:58:09 CST 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Sinlinx SinA33
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x45c00000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0xa0/0x3f4 with crng_init=0
[ 0.000000] percpu: Embedded 16 pages/cpu @(ptrval) s34444 r8192 d22900 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32046
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk2p2 rootwait panic=10
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 101336K/129196K available (6144K kernel code, 443K rwdata, 1652K rodata, 1024K init, 246K bss, 11476K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8000000 - 0xff800000 ( 888 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc7e2b000 ( 126 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7136 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 444 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 247 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000014] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000040] Switching to timer-based delay loop, resolution 41ns
[ 0.001084] Console: colour dummy device 80x30
[ 0.001180] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001211] pid_max: default: 32768 minimum: 301
[ 0.001554] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001584] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002884] CPU: Testing write buffer coherency: ok
[ 0.003654] /cpus/cpu@0 missing clock-frequency property
[ 0.003700] /cpus/cpu@1 missing clock-frequency property
[ 0.003736] /cpus/cpu@2 missing clock-frequency property
[ 0.003772] /cpus/cpu@3 missing clock-frequency property
[ 0.003800] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.004877] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.005172] rcu: Hierarchical SRCU implementation.
[ 0.006607] smp: Bringing up secondary CPUs ...
[ 0.008080] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.009771] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.011434] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.011623] smp: Brought up 1 node, 4 CPUs
[ 0.011672] SMP: Total of 4 processors activated (192.00 BogoMIPS).
[ 0.011688] CPU: All CPU(s) started in HYP mode.
[ 0.011701] CPU: Virtualization extensions available.
[ 0.013437] devtmpfs: initialized
[ 0.026265] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.026698] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.026747] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.028572] pinctrl core: initialized pinctrl subsystem
[ 0.030634] NET: Registered protocol family 16
[ 0.033527] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.035786] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.035810] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.067710] SCSI subsystem initialized
[ 0.068758] usbcore: registered new interface driver usbfs
[ 0.068865] usbcore: registered new interface driver hub
[ 0.068999] usbcore: registered new device driver usb
[ 0.069494] pps_core: LinuxPPS API ver. 1 registered
[ 0.069513] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.069558] PTP clock support registered
[ 0.070025] Advanced Linux Sound Architecture Driver Initialized.
[ 0.072262] clocksource: Switched to clocksource arch_sys_counter
[ 0.073567] simple-framebuffer 47e2b000.framebuffer: framebuffer at 0x47e2b000, 0x1d4c00 bytes, mapped to 0x(ptrval)
[ 0.073598] simple-framebuffer 47e2b000.framebuffer: format=x8r8g8b8, mode=800x600x32, linelength=3200
[ 0.093171] Console: switching to colour frame buffer device 100x37
[ 0.113748] simple-framebuffer 47e2b000.framebuffer: fb0: simplefb registered!
[ 0.129854] NET: Registered protocol family 2
[ 0.131015] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.131076] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.131127] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.131181] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.131394] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.131480] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.131884] NET: Registered protocol family 1
[ 0.133025] RPC: Registered named UNIX socket transport module.
[ 0.133049] RPC: Registered udp transport module.
[ 0.133062] RPC: Registered tcp transport module.
[ 0.133075] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.136550] Initialise system trusted keyrings
[ 0.136969] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.152565] NFS: Registering the id_resolver key type
[ 0.152650] Key type id_resolver registered
[ 0.152668] Key type id_legacy registered
[ 0.152747] jffs2: version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[ 0.159100] Key type asymmetric registered
[ 0.159131] Asymmetric key parser 'x509' registered
[ 0.159271] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.159295] io scheduler noop registered
[ 0.159314] io scheduler deadline registered
[ 0.159691] io scheduler cfq registered (default)
[ 0.159713] io scheduler mq-deadline registered
[ 0.159730] io scheduler kyber registered
[ 0.162033] sun4i-usb-phy 1c19400.phy: Linked as a consumer to regulator.3
[ 0.165012] sun8i-a23-r-pinctrl 1f02c00.pinctrl: Reset controller missing
[ 0.171159] sun8i-a33-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.174209] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[ 0.174384] pwm-backlight backlight: Linked as a consumer to regulator.0
[ 0.281334] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.286520] printk: console [ttyS0] disabled
[ 0.306869] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 1.016166] printk: console [ttyS0] enabled
[ 1.034982] m25p80 spi0.0: unrecognized JEDEC id bytes: 00, 00, 00
[ 1.041221] m25p80: probe of spi0.0 failed with error -2
[ 1.048007] libphy: Fixed MDIO Bus: probed
[ 1.052126] CAN device driver interface
[ 1.057883] usbcore: registered new interface driver r8152
[ 1.063505] usbcore: registered new interface driver ax88179_178a
[ 1.069663] usbcore: registered new interface driver cdc_ether
[ 1.075593] usbcore: registered new interface driver cdc_eem
[ 1.081332] usbcore: registered new interface driver dm9601
[ 1.087005] usbcore: registered new interface driver sr9700
[ 1.092689] usbcore: registered new interface driver CoreChips
[ 1.098587] usbcore: registered new interface driver rndis_host
[ 1.104641] usbcore: registered new interface driver cdc_ncm
[ 1.110365] usbcore: registered new interface driver huawei_cdc_ncm
[ 1.116661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.123252] ehci-platform: EHCI generic platform driver
[ 1.128910] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.134590] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.143277] ehci-platform 1c1a000.usb: irq 28, io mem 0x01c1a000
[ 1.172251] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.179974] hub 1-0:1.0: USB hub found
[ 1.183896] hub 1-0:1.0: 1 port detected
[ 1.188943] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.195217] ohci-platform: OHCI generic platform driver
[ 1.200859] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.207566] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.215769] ohci-platform 1c1a400.usb: irq 29, io mem 0x01c1a400
[ 1.287656] hub 2-0:1.0: USB hub found
[ 1.291493] hub 2-0:1.0: 1 port detected
[ 1.297402] usbcore: registered new interface driver cdc_wdm
[ 1.303292] usbcore: registered new interface driver usb-storage
[ 1.310013] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.320882] usb_phy_generic usb_phy_generic.0.auto: Linked as a consumer to regulator.0
[ 1.332140] i2c /dev entries driver
[ 1.339856] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.350239] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.392281] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.399889] sunxi-mmc 1c10000.mmc: Linked as a consumer to regulator.2
[ 1.407386] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.452292] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.459887] sunxi-mmc 1c11000.mmc: Linked as a consumer to regulator.2
[ 1.502268] sunxi-mmc 1c11000.mmc: initialized, max. request size: 16384 KB
[ 1.511501] usbcore: registered new interface driver usbhid
[ 1.517120] usbhid: USB HID core driver
[ 1.522445] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.534294] NET: Registered protocol family 17
[ 1.538797] can: controller area network core (rev 20170425 abi 9)
[ 1.545192] NET: Registered protocol family 29
[ 1.549648] can: raw protocol (rev 20170425)
[ 1.553958] can: broadcast manager protocol (rev 20170425 t)
[ 1.559632] can: netlink gateway (rev 20170425) max_hops=1
[ 1.565627] Key type dns_resolver registered
[ 1.570155] Registering SWP/SWPB emulation handler
[ 1.576568] Loading compiled-in X.509 certificates
[ 1.597850] sun8i-a23-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[ 1.608066] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.614798] input: TSC2007 Touchscreen as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 1.628310] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.634810] asoc-simple-card sound: sun8i <-> 1c22c00.dai mapping ok
[ 1.648170] hctosys: unable to open rtc device (rtc0)
[ 1.653951] vcc3v0: disabling
[ 1.656949] ALSA device list:
[ 1.659925] #0: sun8i-a33-audio
[ 1.664702] Waiting for root device /dev/mmcblk2p2...
[ 1.670343] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.679324] mmc1: queuing unknown CIS tuple 0x81 (9 bytes)
[ 1.722455] random: fast init done
[ 1.728400] mmc2: new DDR MMC card at address 0001
[ 1.735483] mmcblk2: mmc2:0001 8GTF4R 7.28 GiB
[ 1.741815] mmcblk2boot0: mmc2:0001 8GTF4R partition 1 4.00 MiB
[ 1.749647] mmcblk2boot1: mmc2:0001 8GTF4R partition 2 4.00 MiB
[ 1.758435] mmcblk2: p1 p2
[ 1.795740] EXT4-fs (mmcblk2p2): INFO: recovery required on readonly filesystem
[ 1.803127] EXT4-fs (mmcblk2p2): write access will be enabled during recovery
[ 1.814391] mmc1: new high speed SDIO card at address 0001
[ 1.826199] EXT4-fs (mmcblk2p2): recovery complete
[ 1.832035] EXT4-fs (mmcblk2p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.840282] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.847820] devtmpfs: mounted
[ 1.853605] Freeing unused kernel memory: 1024K
[ 1.862647] Run /sbin/init as init process
[ 1.910788] EXT4-fs (mmcblk2p2): re-mounted. Opts: (null)
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Initializing random number generator... [ 2.103037] random: dd: uninitialized urandom read (512 bytes read)
done.
Starting network: OK
Welcome to Buildroot
buildroot login:
离线
我也尝试改动DRAM、CPU时钟、以及将一些驱动都变成模块,减少镜像的大小,发现启动时间变化的不是很明显,还是要4S多,想要加快启动,不外乎这些方法,实在不知道怎样才能比较明显的缩短启动时间了
最近编辑记录 jkl (2020-09-14 17:11:44)
离线
离线
你的linux启动不到2秒,说明其他占了3秒。
1. 剪裁uboot,屏蔽不必要的驱动,比如spi/usb/net那些用不到的可以全部干掉
2. linux那些驱动可以编译成ko,一方面瘦身zImage,另一方面可以延迟加载驱动。
请问一下,有一些配置不能够取消,这种情况应该是前面有配置限定了,但是怎样知道是哪个配置限制了,百度不到,尴尬!
离线