WhyCan Forum(哇酷论坛)

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132, 微信: whycan_cn (哇酷网/挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2019-12-20 21:03:04

hnhkj
会员
注册时间: 2019-10-19
累计积分: 4

lichee zero 卡住了,哪里的问题?

系统启动卡住了,哪里的问题?无从下手,求助!


U-Boot 2017.01-rc2-00078-geb3d0a0b04 (Dec 20 2019 - 15:13:19 +0800) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
*** Warning - bad CRC, using default environment

Setting up a 480x272 lcd console (overscan 0x0)
dotclock: 10000kHz = 10000kHz: (1 * 3MHz * 20) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
SF: Warning - Only lower 16MiB accessible, Full access #define CONFIG_SPI_FLASH_BAR
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x500000
SF: 5242880 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42df9000, end 42dff15b ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (ubuntu@ubuntu-B150M-VP) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #26 SMP Thu Dec 19 17:28:45 CST 2019
[    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: Lichee Pi Zero with Dock
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 16 pages/cpu @c3ede000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16129
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,5M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 54568K/65024K available (6144K kernel code, 217K rwdata, 1456K rodata, 1024K init, 264K bss, 10456K reserved, 0K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3f80000   (  63 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a367c0   ( 218 kB)
[    0.000000]        .bss : 0xc0a3da78 - 0xc0a7fc2c   ( 265 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000019] Switching to timer-based delay loop, resolution 41ns
[    0.000187] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000427] Console: colour dummy device 80x30
[    0.000462] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000476] pid_max: default: 32768 minimum: 301
[    0.000603] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000617] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001214] CPU: Testing write buffer coherency: ok
[    0.001593] /cpus/cpu@0 missing clock-frequency property
[    0.001615] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002071] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002246] Hierarchical SRCU implementation.
[    0.002743] smp: Bringing up secondary CPUs ...
[    0.002755] smp: Brought up 1 node, 1 CPU
[    0.002764] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002771] CPU: All CPU(s) started in SVC mode.
[    0.003530] devtmpfs: initialized
[    0.006891] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007185] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007211] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007376] pinctrl core: initialized pinctrl subsystem
[    0.008226] random: get_random_u32 called from bucket_table_alloc+0x110/0x238 with crng_init=0
[    0.008360] NET: Registered protocol family 16
[    0.008821] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010030] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010048] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023998] SCSI subsystem initialized
[    0.024301] usbcore: registered new interface driver usbfs
[    0.024381] usbcore: registered new interface driver hub
[    0.024490] usbcore: registered new device driver usb
[    0.024751] pps_core: LinuxPPS API ver. 1 registered
[    0.024760] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024782] PTP clock support registered
[    0.025010] Advanced Linux Sound Architecture Driver Initialized.
[    0.026797] clocksource: Switched to clocksource arch_sys_counter
[    0.038099] NET: Registered protocol family 2
[    0.038679] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038712] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038735] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038861] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038906] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.039124] NET: Registered protocol family 1
[    0.039731] RPC: Registered named UNIX socket transport module.
[    0.039749] RPC: Registered udp transport module.
[    0.039754] RPC: Registered tcp transport module.
[    0.039761] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041751] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050805] NFS: Registering the id_resolver key type
[    0.050863] Key type id_resolver registered
[    0.050870] Key type id_legacy registered
[    0.050929] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    0.052338] random: fast init done
[    0.055222] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.055241] io scheduler noop registered
[    0.055248] io scheduler deadline registered
[    0.055466] io scheduler cfq registered (default)
[    0.055477] io scheduler mq-deadline registered
[    0.055484] io scheduler kyber registered
[    0.060067] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.060606] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    0.133189] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.136435] console [ttyS0] disabled
[    0.156710] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 37, base_baud = 1500000) is a U6_16550A
[    0.755626] console [ttyS0] enabled
[    0.762172] panel-simple panel: panel supply power not found, using dummy regulator
[    0.772472] m25p80 spi32766.0: w25q256 (32768 Kbytes)
[    0.777638] spi32766.0: parser cmdlinepart: 4
[    0.781993] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.788276] Creating 4 MTD partitions on "spi32766.0":
[    0.793418] 0x000000000000-0x000000100000 : "uboot"
[    0.798962] 0x000000100000-0x000000110000 : "dtb"
[    0.804085] 0x000000110000-0x000000610000 : "kernel"
[    0.809514] 0x000000610000-0x000002000000 : "rootfs"
[    0.815330] libphy: Fixed MDIO Bus: probed
[    0.820059] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.825852] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.831634] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.837660] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.847244] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.852904] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.860149] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.865802] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.873028] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.877999] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.884971] libphy: stmmac: probed
[    0.890341] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.896998] ehci-platform: EHCI generic platform driver
[    0.902521] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.908211] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.916144] ehci-platform 1c1a000.usb: irq 27, io mem 0x01c1a000
[    0.946812] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.954104] hub 1-0:1.0: USB hub found
[    0.958055] hub 1-0:1.0: 1 port detected
[    0.962614] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.968915] ohci-platform: OHCI generic platform driver
[    0.974467] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.981197] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.989139] ohci-platform 1c1a400.usb: irq 28, io mem 0x01c1a400
[    1.061923] hub 2-0:1.0: USB hub found
[    1.065760] hub 2-0:1.0: 1 port detected
[    1.073358] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.082936] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[    1.091884] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.098786] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.103331] i2c /dev entries driver
[    1.108247] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[    1.117772] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.186842] sunxi-mmc 1c0f000.mmc: base:0xc407b000 irq:24
[    1.246826] sunxi-mmc 1c10000.mmc: base:0xc4144000 irq:25
[    1.253282] usbcore: registered new interface driver usbhid
[    1.258937] usbhid: USB HID core driver
[    1.264424] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[    1.272467] sun4i-codec 1c22c00.codec: Failed to register our card
[    1.280033] NET: Registered protocol family 17
[    1.284598] Key type dns_resolver registered
[    1.289129] Registering SWP/SWPB emulation handler
[    1.301631] simple-framebuffer 43f80000.framebuffer: framebuffer at 0x43f80000, 0x7f800 bytes, mapped to 0xc4300000
[    1.312259] simple-framebuffer 43f80000.framebuffer: format=x8r8g8b8, mode=480x272x32, linelength=1920
[    1.324562] Console: switching to colour frame buffer device 60x34
[    1.333045] simple-framebuffer 43f80000.framebuffer: fb0: simplefb registered!
[    1.341191] pwm-backlight backlight: backlight supply power not found, using dummy regulator
[    1.351233] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    1.357978] [drm] No driver support for vblank timestamp query.
[    1.373376] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc073f638)
[    1.380769] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc073e4b8)
[    1.388508] fb: switching to sun4i-drm-fb from simple
[    1.393679] Console: switching to colour dummy device 80x30

离线

#2 2019-12-20 21:39:10

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 8,948

Re: lichee zero 卡住了,哪里的问题?

https://whycan.cn/t_2407.html#p18453

[    1.824424] Console: switching to colour dummy device 80x30

貌似控制台切换到了 framebuffer ?

离线

#3 2019-12-20 21:41:33

晕哥
Administrator
注册时间: 2017-09-06
累计积分: 8,948

Re: lichee zero 卡住了,哪里的问题?

但是看你的 log 里面的 bootargs console 又没有 fb0

console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,5M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2

离线

#4 2019-12-22 07:19:57

hnhkj
会员
注册时间: 2019-10-19
累计积分: 4

Re: lichee zero 卡住了,哪里的问题?

开来一个i2c的oled. 不能切换。禁止掉oled就ok了。

离线

页脚