如题,还望各位大神指教一下。。。
u-boot-3s-current
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- LicheePi_Zero_800x480LCD_defconfig
gedit u-boot-3s-current/include/configs/sun8i.h
#define CONFIG_VIDEO_LOGO
#define CONFIG_VIDEO_BMP_LOGO
#define CONFIG_HIDE_LOGO_VERSION
#define CONFIG_BOOTCOMMAND "setenv bootm_boot_mode sec; " \
"load mmc 0:1 0x41000000 zImage; " \
"load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-with-800x480-lcd.dtb; " \
"bootz 0x41000000 - 0x41800000;"
#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 console=tty0 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0"
u-boot显示logo正常
linux-zero-5.2.y没有问题
linux-zero-4.13.y和linux-zero-4.14.y启动卡住
启动信息如下:
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.14-licheepi-zero (root@VM-V3S-64) (gcc version 4.9.4 (Linaro GCC 4.9-2017.01)) #2 SMP Sat Oct 29 21:18:59 CST 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] random: fast init done
[ 0.000000] percpu: Embedded 16 pages/cpu @c3d06000 s33792 r8192 d23552 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 15660
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw vt.global_cursor_default=0
[ 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: 51384K/63136K available (7168K kernel code, 440K rwdata, 1704K rodata, 1024K init, 305K bss, 11752K 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 - 0xc3da8000 ( 61 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB)
[ 0.000000] .data : 0xc0b00000 - 0xc0b6e0e0 ( 441 kB)
[ 0.000000] .bss : 0xc0b75850 - 0xc0bc1eb4 ( 306 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.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000199] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000445] Console: colour dummy device 80x30
[ 0.000487] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000503] pid_max: default: 32768 minimum: 301
[ 0.000644] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000658] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001333] CPU: Testing write buffer coherency: ok
[ 0.001736] /cpus/cpu@0 missing clock-frequency property
[ 0.001763] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002232] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.002409] Hierarchical SRCU implementation.
[ 0.002927] smp: Bringing up secondary CPUs ...
[ 0.002943] smp: Brought up 1 node, 1 CPU
[ 0.002952] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.002958] CPU: All CPU(s) started in SVC mode.
[ 0.003731] devtmpfs: initialized
[ 0.007453] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007760] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007791] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.007974] pinctrl core: initialized pinctrl subsystem
[ 0.008970] NET: Registered protocol family 16
[ 0.009515] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.010741] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.010762] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.039805] SCSI subsystem initialized
[ 0.040084] usbcore: registered new interface driver usbfs
[ 0.040291] usbcore: registered new interface driver hub
[ 0.040374] usbcore: registered new device driver usb
[ 0.040624] Linux video capture interface: v2.00
[ 0.040685] pps_core: LinuxPPS API ver. 1 registered
[ 0.040693] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.040714] PTP clock support registered
[ 0.040923] Advanced Linux Sound Architecture Driver Initialized.
[ 0.042684] clocksource: Switched to clocksource arch_sys_counter
[ 0.053059] NET: Registered protocol family 2
[ 0.053680] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.053714] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.053738] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.053881] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.053928] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.054180] NET: Registered protocol family 1
[ 0.054785] RPC: Registered named UNIX socket transport module.
[ 0.054807] RPC: Registered udp transport module.
[ 0.054812] RPC: Registered tcp transport module.
[ 0.054818] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.056766] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.062609] NFS: Registering the id_resolver key type
[ 0.062786] Key type id_resolver registered
[ 0.062800] Key type id_legacy registered
[ 0.066681] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 0.066707] io scheduler noop registered
[ 0.066714] io scheduler deadline registered
[ 0.066999] io scheduler cfq registered (default)
[ 0.067012] io scheduler mq-deadline registered
[ 0.067019] io scheduler kyber registered
[ 0.067630] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.071002] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.163597] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.166615] console [ttyS0] disabled
[ 0.186899] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 36, base_baud = 1500000) is a U6_16550A
[ 0.765020] console [ttyS0] enabled
[ 0.790002] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 37, base_baud = 1500000) is a U6_16550A
[ 0.820528] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 38, base_baud = 1500000) is a U6_16550A
[ 0.832840] panel-simple panel: panel supply power not found, using dummy regulator
[ 0.842122] libphy: Fixed MDIO Bus: probed
[ 0.846907] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.852797] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.858506] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[ 0.864715] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.870381] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.877633] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.883306] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.890521] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.895494] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.902450] libphy: stmmac: probed
[ 0.907903] usbcore: registered new interface driver rtl8723bu
[ 0.913884] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.920409] ehci-platform: EHCI generic platform driver
[ 0.925993] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.931608] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.939610] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.972701] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.979809] hub 1-0:1.0: USB hub found
[ 0.983761] hub 1-0:1.0: 1 port detected
[ 0.988331] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.994645] ohci-platform: OHCI generic platform driver
[ 1.000205] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.006932] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.014910] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 1.087718] hub 2-0:1.0: USB hub found
[ 1.091554] hub 2-0:1.0: 1 port detected
[ 1.098865] usbcore: registered new interface driver usb-storage
[ 1.105143] usbcore: registered new interface driver usbserial
[ 1.111009] usbcore: registered new interface driver cp210x
[ 1.116682] usbserial: USB Serial support registered for cp210x
[ 1.124376] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.133501] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[ 1.140301] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.144984] i2c /dev entries driver
[ 1.149976] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input1
[ 1.164630] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc1
[ 1.172494] IR NEC protocol handler initialized
[ 1.177105] IR RC5(x/sz) protocol handler initialized
[ 1.182151] IR RC6 protocol handler initialized
[ 1.186695] IR JVC protocol handler initialized
[ 1.191220] IR Sony protocol handler initialized
[ 1.195844] IR SANYO protocol handler initialized
[ 1.200540] IR Sharp protocol handler initialized
[ 1.205271] IR MCE Keyboard/mouse protocol handler initialized
[ 1.211095] IR XMP protocol handler initialized
[ 1.215793] usbcore: registered new interface driver uvcvideo
[ 1.221534] USB Video Class driver (1.1.1)
[ 1.225668] gspca_main: v2.14.0 registered
[ 1.230666] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.292736] sunxi-mmc 1c0f000.mmc: base:0xc42df000 irq:24
[ 1.299727] usbcore: registered new interface driver usbhid
[ 1.305404] usbhid: USB HID core driver
[ 1.310977] sun4i-codec 1c22c00.codec: ASoC: /soc/codec-analog@01c23000 not registered
[ 1.319032] sun4i-codec 1c22c00.codec: Failed to register our card
[ 1.326643] NET: Registered protocol family 17
[ 1.331213] Key type dns_resolver registered
[ 1.335785] Registering SWP/SWPB emulation handler
[ 1.348447] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0xc4480000
[ 1.359167] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[ 1.379052] Console: switching to colour frame buffer device 128x37
[ 1.394964] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[ 1.403870] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 1.410542] [drm] No driver support for vblank timestamp query.
[ 1.425982] sun4i-drm display-engine: bound 1100000.mixer (ops 0xc0843310)
[ 1.433380] sun4i-drm display-engine: bound 1c0c000.lcd-controller (ops 0xc08420f8)
[ 1.441048] fb: switching to sun4i-drm-fb from simple
[ 1.446289] Console: switching to colour dummy device 80x30
离线
bootargs设置串口属性没设置对吧,内核启动之后根据你设置的串口输出,结果你串口没设置对,所以看不到后续内容。
奇怪的是同样的参数和uboot,用5.2启动没问题,太折腾,这个问题只能暂时放弃了
离线
@akisasaki
console=ttyS0 是使能串口打印启动信息
console=tty0 是使能LCD显示启动信息
离线
没有使用过SPI屏哈,如果参数都正确,那就要检查看看驱动是否有问题了,另外就是是否修改过uboot代码,把logo居中显示
离线