您尚未登录。

楼主 # 2022-04-26 10:43:32

happy粥
会员
注册时间: 2022-04-12
已发帖子: 8
积分: 18

求助!求助!Linux内核启动显示屏不打印。

第一次发帖,可能有说不明白的,希望有大佬前辈能指点一下。
  • U-Boot能够启动,并且在显示屏上能够显示logo,显示屏选择的是480X272的,文件include/configs/sun8i.h也已经修改了。_20220426101841.jpg

  • U-Boot引导进入启动Linux内核后就出现了以下这种情况。设备树编译选择的是sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb(这个设备树是我下载荔枝派的Linux文件复制到自己下载的Linux-5.15版本内的)
    _20220426101849.jpg

  • 然后就会白屏或者黑屏。奇奇怪怪的。
    _20220426101855.jpg

  • 板子是自己画的一个测试板
    726b5c210177b4a43d8a7b4bc988a25.jpg4beafe8e40bcac4741a29d4e3ff2872.jpg

  • 这是启动代码。

    U-Boot SPL 2017.01-rc2-00057-g32ab1804cd-dirty (Apr 25 2022 - 19:08:31)
    DRAM: 64 MiB
    Trying to boot from MMC1
    
    U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Apr 25 2022 - 19:08:31 -0700) Allwinner Technology
    
    CPU:   Allwinner V3s (SUN8I 1681)
    Model: Lichee Pi Zero
    DRAM:  64 MiB
    MMC:   SUNXI SD/MMC: 0
    *** 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
    
    
    U-Boot 2017.01-rc2-00057-g32ab1804cd-dirty (Apr 25 2022 - 19:08:31 -0700) Allwinner Technology
    
    CPU:   Allwinner V3s (SUN8I 1681)
    Model: Lichee Pi Zero
    DRAM:  64 MiB
    MMC:   SUNXI SD/MMC: 0
    *** 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:   No ethernet found.
    starting USB...
    No controllers found
    Hit any key to stop autoboot:  2  1  0 
    reading zImage
    5004144 bytes read in 252 ms (18.9 MiB/s)
    reading sun8i-v3s-licheepi-zero-with-480x272-lcd.dtb
    11761 bytes read in 26 ms (441.4 KiB/s)
    ## Flattened Device Tree blob at 41800000
       Booting using the fdt blob at 0x41800000
       Loading Device Tree to 42dfa000, end 42dffdf0 ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.15.0-rc5-licheepi-zero (happy@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 6.3-2017.05) 6.3.1 20170404, GNU ld (GNU Binutils for Ubuntu) 2.30) #5 SMP Mon Apr 25 09:52:43 PDT 2022
    [    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
    [    0.000000] Memory policy: Data cache writealloc
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000040000000-0x0000000043f7ffff]
    [    0.000000]   HighMem  empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000040000000-0x0000000043f7ffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x0000000043f7ffff]
    [    0.000000] percpu: Embedded 11 pages/cpu s15244 r8192 d21620 u45056
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16129
    [    0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0
    [    0.000000] Unknown command line parameters: earlyprintk
    [    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    0.000000] mem auto-init: stack:__user(zero), heap alloc:off, heap free:off
    [    0.000000] Memory: 52140K/65024K available (8192K kernel code, 686K rwdata, 1848K rodata, 1024K init, 231K bss, 12884K reserved, 0K cma-reserved, 0K highmem)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
    [    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=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] random: get_random_bytes called from start_kernel+0x4b4/0x650 with crng_init=0
    [    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.000002] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
    [    0.000023] Switching to timer-based delay loop, resolution 41ns
    [    0.000243] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000553] Console: colour dummy device 80x30
    [    0.000644] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
    [    0.000670] pid_max: default: 32768 minimum: 301
    [    0.000802] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.000827] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.001710] CPU: Testing write buffer coherency: ok
    [    0.002172] /cpus/cpu@0 missing clock-frequency property
    [    0.002230] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.003135] Setting up static identity map for 0x40100000 - 0x40100060
    [    0.003411] rcu: Hierarchical SRCU implementation.
    [    0.004007] smp: Bringing up secondary CPUs ...
    [    0.004040] smp: Brought up 1 node, 1 CPU
    [    0.004054] SMP: Total of 1 processors activated (48.00 BogoMIPS).
    [    0.004067] CPU: All CPU(s) started in SVC mode.
    [    0.004787] devtmpfs: initialized
    [    0.008631] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
    [    0.008957] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.009006] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
    [    0.009266] pinctrl core: initialized pinctrl subsystem
    [    0.010714] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.011295] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.012496] thermal_sys: Registered thermal governor 'step_wise'
    [    0.012864] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
    [    0.012906] hw-breakpoint: maximum watchpoint size is 8 bytes.
    [    0.016026] platform 1c0c000.lcd-controller: Fixing up cyclic dependency with 1100000.mixer
    [    0.021332] platform panel: Fixing up cyclic dependency with 1c0c000.lcd-controller
    [    0.033461] SCSI subsystem initialized
    [    0.033743] usbcore: registered new interface driver usbfs
    [    0.033822] usbcore: registered new interface driver hub
    [    0.033916] usbcore: registered new device driver usb
    [    0.034162] pps_core: LinuxPPS API ver. 1 registered
    [    0.034179] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.034208] PTP clock support registered
    [    0.034426] Advanced Linux Sound Architecture Driver Initialized.
    [    0.035900] clocksource: Switched to clocksource arch_sys_counter
    [    0.047281] NET: Registered PF_INET protocol family
    [    0.047496] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [    0.048065] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
    [    0.048125] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.048156] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
    [    0.048187] TCP: Hash tables configured (established 1024 bind 1024)
    [    0.048353] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
    [    0.048421] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
    [    0.048679] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.049857] RPC: Registered named UNIX socket transport module.
    [    0.049909] RPC: Registered udp transport module.
    [    0.049919] RPC: Registered tcp transport module.
    [    0.049927] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.052385] Initialise system trusted keyrings
    [    0.052925] workingset: timestamp_bits=30 max_order=14 bucket_order=0
    [    0.060385] NFS: Registering the id_resolver key type
    [    0.060478] Key type id_resolver registered
    [    0.060494] Key type id_legacy registered
    [    0.060578] Key type asymmetric registered
    [    0.060595] Asymmetric key parser 'x509' registered
    [    0.060722] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
    [    0.060740] io scheduler mq-deadline registered
    [    0.060751] io scheduler kyber registered
    [    0.065074] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
    [    0.132111] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
    [    0.134670] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
    [    0.136094] printk: console [ttyS0] disabled
    [    0.156374] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 42, base_baud = 1500000) is a U6_16550A
    [    0.777452] printk: console [ttyS0] enabled
    [    0.783587] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
    [    0.816971] libphy: Fixed MDIO Bus: probed
    [    0.821584] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    0.828236] ehci-platform: EHCI generic platform driver
    [    0.833762] ehci-platform 1c1a000.usb: EHCI Host Controller
    [    0.839507] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
    [    0.847491] ehci-platform 1c1a000.usb: irq 34, io mem 0x01c1a000
    [    0.875897] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
    [    0.883210] hub 1-0:1.0: USB hub found
    [    0.887197] hub 1-0:1.0: 1 port detected
    [    0.891847] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    0.898191] ohci-platform: OHCI generic platform driver
    [    0.903764] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
    [    0.910513] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
    [    0.918550] ohci-platform 1c1a400.usb: irq 35, io mem 0x01c1a400
    [    0.991060] hub 2-0:1.0: USB hub found
    [    0.994927] hub 2-0:1.0: 1 port detected
    [    1.000167] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
    [    1.010561] sun6i-rtc 1c20400.rtc: registered as rtc0
    [    1.015685] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:29:50 UTC (1790)
    [    1.023990] sun6i-rtc 1c20400.rtc: RTC enabled
    [    1.028704] i2c_dev: i2c /dev entries driver
    [    1.035350] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
    [    1.044220] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pg not found, using dummy regulator
    [    1.054618] usbcore: registered new interface driver usbhid
    [    1.060315] usbhid: USB HID core driver
    [    1.064772] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
    [    1.077078] NET: Registered PF_PACKET protocol family
    [    1.082289] Key type dns_resolver registered
    [    1.086832] Registering SWP/SWPB emulation handler
    [    1.092076] Loading compiled-in X.509 certificates
    [    1.106112] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
    [    1.115175] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
    [    1.123574] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
    [    1.133789] musb-hdrc musb-hdrc.2.auto: MUSB HDRC host driver
    [    1.139691] musb-hdrc musb-hdrc.2.auto: new USB bus registered, assigned bus number 3
    [    1.149504] hub 3-0:1.0: USB hub found
    [    1.153435] hub 3-0:1.0: 1 port detected
    [    1.158727] using random self ethernet address
    [    1.163246] using random host ethernet address
    [    1.168870] usb0: HOST MAC 7a:cc:6f:0a:a1:27
    [    1.173293] usb0: MAC d2:70:06:f7:07:51
    [    1.177294] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
    [    1.184784] g_cdc gadget: g_cdc ready
    [    1.189309] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
    [    1.199972] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
    [    1.209647] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    1.221702] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    1.228551] ALSA device list:
    [    1.231533]   No soundcards found.
    [    1.235730] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
    [    1.244499] cfg80211: failed to load regulatory.db
    [    1.249937] Waiting for root device /dev/mmcblk0p2...
    [    1.293162] mmc0: host does not support reading read-only switch, assuming write-enable
    [    1.304937] mmc0: new high speed SDHC card at address aaaa
    [    1.311769] mmcblk0: mmc0:aaaa SS08G 7.40 GiB 
    [    1.319686]  mmcblk0: p1 p2
    [    1.324003] sun8i-v3s-pinctrl 1c20800.pinctrl: supply vcc-pe not found, using dummy regulator
    [    1.340960] musb-hdrc musb-hdrc.2.auto: VBUS_ERROR in b_idle (80, <SessEnd), retry #0, port1 00000100
    [    1.384481] EXT4-fs (mmcblk0p2): recovery complete
    [    1.391301] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled.
    [    1.401606] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    1.411627] devtmpfs: mounted
    [    1.415762] Freeing unused kernel image (initmem) memory: 1024K
    [    1.421978] Run /sbin/init as init process
    [    1.526567] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null). Quota mode: disabled.
    Starting logging: OK
    Initializing random number generator... [    1.654106] random: dd: uninitialized urandom read (512 bytes read)
    done.
    Starting network: OK
    
    
    wellcome happy
    
    happy login: 

最近编辑记录 happy粥 (2022-04-26 10:51:25)

离线

楼主 #2 2022-04-26 11:22:47

happy粥
会员
注册时间: 2022-04-12
已发帖子: 8
积分: 18

Re: 求助!求助!Linux内核启动显示屏不打印。

哇酷小二 说:

Linux里面的显示屏可能没有驱动

?不太懂,第一次玩,是要设备驱动么?

离线

页脚

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

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