您尚未登录。

#1 全志 SOC » 兄弟们!请教个全志A20问题:内核启动报错panic - not syncing怎么解决啊? » 2024-01-15 18:37:26

happy粥
回复: 2

始终报错 Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004。
打印信息在这

U-Boot 2021.04 (Jan 15 2024 - 11:33:30 +0800) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@1c0f000: 0
Loading Environment from FAT... *** Warning - bad CRC, using default environment

Loading Environment from MMC... *** Warning - bad CRC, using default environment

Setting up a 720x576i composite-pal console (overscan 32x20)
In:    serial@1c28000
Out:   serial@1c28000
Err:   serial@1c28000
Net:   No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
7534840 bytes read in 633 ms (11.4 MiB/s)
25751 bytes read in 5 ms (4.9 MiB/s)
## Flattened Device Tree blob at 48000000
   Booting using the fdt blob at 0x48000000
   Loading Device Tree to 49ff6000, end 49fff496 ... OK

Starting kernel happy ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.15.0-rc5-Allwinner-Happy (happy@ubuntu) (arm-linux-gnueabihf-gcc (Linaro GCC 6.3-2017.05) 6.3.1 20170404, GNU ld (Linaro_Binutils-2017.05) 2.27.0.20161019) #33 SMP PREEMPT Mon Jan 15 17:33:19 CST 2024
[    0.000000][    T0] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: div instructions available: patching division code
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Cubietech Cubieboard2
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Reserved memory: created CMA memory pool at 0x4a000000, size 96 MiB
[    0.000000][    T0] OF: reserved mem: initialized node default-pool, compatible id shared-dma-pool
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000040000000-0x000000006fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000070000000-0x000000007fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000][    T0] percpu: Embedded 12 pages/cpu s18124 r8192 d22836 u49152
[    0.000000][    T0] pcpu-alloc: s18124 r8192 d22836 u49152 alloc=12*4096
[    0.000000][    T0] pcpu-alloc: [0] 0 [0] 1
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p3 rootwait rw earlyprintk loglevel=8
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000][    T0] Memory: 918752K/1048576K available (9216K kernel code, 2299K rwdata, 5076K rodata, 1024K init, 3435K bss, 31520K reserved, 98304K cma-reserved, 262144K highmem)
[    0.000000][    T0] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 100 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x4a4/0x67c with crng_init=0
[    0.000000][    T0] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[    0.000000][    T0] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000002][    T0] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008697][    T0] Switching to timer-based delay loop, resolution 41ns
[    0.015885][    T0] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.026141][    T0] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[    0.036611][    T0] Console: colour dummy device 80x30
[    0.041912][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=24000)
[    0.052885][    T0] pid_max: default: 32768 minimum: 301
[    0.058881][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.066922][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.078791][    T0] CPU: Testing write buffer coherency: ok
[    0.085009][    T1] /cpus/cpu@0 missing clock-frequency property
[    0.091100][    T1] /cpus/cpu@1 missing clock-frequency property
[    0.097125][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.105057][    T1] Setting up static identity map for 0x40100000 - 0x40100060
[    0.112613][    T1] rcu: Hierarchical SRCU implementation.
[    0.121487][    T1] smp: Bringing up secondary CPUs ...
[    0.128186][    T1] smp: Brought up 1 node, 1 CPU
[    0.133013][    T1] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.139937][    T1] CPU: All CPU(s) started in SVC mode.
[    0.147079][    T1] devtmpfs: initialized
[    0.207943][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.218535][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.230303][    T1] pinctrl core: initialized pinctrl subsystem
[    0.241582][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.250412][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.263169][    T1] audit: initializing netlink subsys (disabled)
[    0.271934][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.271953][    T1] thermal_sys: Registered thermal governor 'user_space'
[    0.278752][   T23] audit: type=2000 audit(0.103:1): state=initialized audit_enabled=0 res=1
[    0.295127][    T1] cpuidle: using governor ladder
[    0.300004][    T1] cpuidle: using governor menu
[    0.304874][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.313623][    T1] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.362817][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1c0d000.lcd-controller
[    0.373238][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1c0c000.lcd-controller
[    0.383633][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1e20000.display-frontend
[    0.394175][    T1] platform 1e40000.display-backend: Fixing up cyclic dependency with 1e00000.display-frontend
[    0.407019][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1c0d000.lcd-controller
[    0.417425][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1c0c000.lcd-controller
[    0.427801][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1e20000.display-frontend
[    0.438358][    T1] platform 1e60000.display-backend: Fixing up cyclic dependency with 1e00000.display-frontend
[    0.573423][    T1] SCSI subsystem initialized
[    0.578227][    T1] libata version 3.00 loaded.
[    0.583986][    T1] usbcore: registered new interface driver usbfs
[    0.590501][    T1] usbcore: registered new interface driver hub
[    0.596791][    T1] usbcore: registered new device driver usb
[    0.603264][    T1] mc: Linux media interface: v0.10
[    0.608487][    T1] videodev: Linux video capture interface: v2.00
[    0.614959][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.620671][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.630612][    T1] PTP clock support registered
[    0.637076][    T1] Advanced Linux Sound Architecture Driver Initialized.
[    0.648874][    T1] clocksource: Switched to clocksource arch_sys_counter
[    0.657473][    T1] VFS: Disk quotas dquot_6.6.0
[    0.662476][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.670994][    T1] FS-Cache: Loaded
[    0.675259][    T1] CacheFiles: Loaded
[    0.716669][    T1] NET: Registered PF_INET protocol family
[    0.722756][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.733751][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.743101][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.751725][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.759744][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    0.767207][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.774666][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.783438][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.792077][    T1] RPC: Registered named UNIX socket transport module.
[    0.798839][    T1] RPC: Registered udp transport module.
[    0.804340][    T1] RPC: Registered tcp transport module.
[    0.809760][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.817729][    T1] armv7-pmu pmu: hw perfevents: no interrupt-affinity property, guessing.
[    0.827788][    T1] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.842069][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.897302][    T1] NFS: Registering the id_resolver key type
[    0.903245][    T1] Key type id_resolver registered
[    0.908180][    T1] Key type id_legacy registered
[    0.916995][    T1] Key type cifs.spnego registered
[    0.922052][    T1] Key type cifs.idmap registered
[    0.926902][    T1] ntfs: driver 2.1.32 [Flags: R/W].
[    0.933788][    T1] fuse: init (API version 7.34)
[    1.022593][    T1] bounce: pool size: 64 pages
[    1.027703][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    1.035909][    T1] io scheduler mq-deadline registered
[    1.041184][    T1] io scheduler kyber registered
[    1.064341][    T1] sun4i-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.340788][    T1] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.360131][    T1] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pb not found, using dummy regulator
[    1.371343][    T1] printk: console [ttyS0] disabled
[    1.397062][    T1] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 56, base_baud = 1500000) is a U6_16550A
[    1.406903][    T1] printk: console [ttyS0] enabled
[    1.406903][    T1] printk: console [ttyS0] enabled
[    1.416668][    T1] printk: bootconsole [earlycon0] disabled
[    1.416668][    T1] printk: bootconsole [earlycon0] disabled
[    1.443330][    T1] brd: module loaded
[    1.487644][    T1] loop: module loaded
[    1.491610][    T1] the cryptoloop driver has been deprecated and will be removed in in Linux 5.16
[    1.505763][    T1] libphy: Fixed MDIO Bus: probed
[    1.514682][    T1] CAN device driver interface
[    1.520509][    T1] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pa not found, using dummy regulator
[    1.530079][    T1] sun7i-dwmac 1c50000.ethernet: IRQ eth_wake_irq not found
[    1.537180][    T1] sun7i-dwmac 1c50000.ethernet: IRQ eth_lpi not found
[    1.544184][    T1] sun7i-dwmac 1c50000.ethernet: PTP uses main clock
[    1.550843][    T1] sun7i-dwmac 1c50000.ethernet: no regulator found
[    1.558025][    T1] sun7i-dwmac 1c50000.ethernet: Version ID not available
[    1.565043][    T1] sun7i-dwmac 1c50000.ethernet:    DWMAC1000
[    1.570756][    T1] sun7i-dwmac 1c50000.ethernet: DMA HW capability register supported
[    1.578690][    T1] sun7i-dwmac 1c50000.ethernet: Normal descriptors
[    1.585090][    T1] sun7i-dwmac 1c50000.ethernet: Ring mode enabled
[    1.594810][    T1] libphy: stmmac: probed
[    1.609371][    T1] PPP generic driver version 2.4.2
[    1.615224][    T1] PPP BSD Compression module registered
[    1.620735][    T1] PPP Deflate Compression module registered
[    1.626573][    T1] PPP MPPE Compression module registered
[    1.632083][    T1] NET: Registered PF_PPPOX protocol family
[    1.638670][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.646024][    T1] ehci-platform: EHCI generic platform driver
[    1.652402][    T1] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.659420][    T1] ohci-platform: OHCI generic platform driver
[    1.666546][    T1] mousedev: PS/2 mouse device common for all mice
[    1.673486][    T1] i2c_dev: i2c /dev entries driver
[    1.680296][    T1] device-mapper: uevent: version 1.0.3
[    1.687208][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    1.697525][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    1.704913][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    1.712280][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    1.721682][    T1] usbcore: registered new interface driver ushc
[    1.728782][   T75] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pf not found, using dummy regulator
[    1.738793][    T1] ledtrig-cpu: registered to indicate activity on CPUs
[    1.746474][    T7] sun4i-pinctrl 1c20800.pinctrl: supply vcc-pi not found, using dummy regulator
[    1.757255][    T1] hid: raw HID events driver (C) Jiri Kosina
[    1.774762][    T1] usbcore: registered new interface driver usbhid
[    1.781266][    T1] usbhid: USB HID core driver
[    1.787143][    T1] ashmem: initialized
[    1.792964][   T75] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.800773][    T7] sunxi-mmc 1c12000.mmc: initialized, max. request size: 16384 KB
[    1.812423][    T1] [HuXiLED]:/***************************/
[    1.818570][    T1] [HuXiLED]:----------MODULE------------
[    1.824269][    T1] [HuXiLED]:--NAME:My Huxi LED Driver---
[    1.829975][    T1] [HuXiLED]:/***************************/
[    1.836042][    T1] [HuXiLED]:Finding compatible gpio node! :gpio_huxi:0
[    1.843073][    T1] [HuXiLED]:Module HuXiLed Time_HuXiA = <300> !
[    1.843073][    T1]
[    1.843193][    T1] [HuXiLED]:Get gpio242:htled_gpio number from node!
[    1.858707][    T1] [HuXiLED]:Get gpio243:hxled_gpio number from node!
[    1.865765][    T1] Get gpio device major=241,minor=0
[    1.872701][    T1] ipip: IPv4 and MPLS over IPv4 tunneling driver
[    1.882353][    T1] Initializing XFRM netlink socket
[    1.887582][    T1] NET: Registered PF_PACKET protocol family
[    1.893554][    T1] NET: Registered PF_KEY protocol family
[    1.899068][    T1] can: controller area network core
[    1.904430][    T1] NET: Registered PF_CAN protocol family
[    1.909994][    T1] can: raw protocol
[    1.913702][    T1] can: broadcast manager protocol
[    1.918703][    T1] can: netlink gateway - max_hops=1
[    1.925107][    T1] Key type dns_resolver registered
[    1.930408][    T1] Registering SWP/SWPB emulation handler
[    1.937415][    T1] registered taskstats version 1
[    1.942333][   T22] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.951455][    T1] kmemleak: Kernel memory leak detector initialized (mem pool available: 15894)
[    1.960436][   T95] kmemleak: Automatic memory scanning thread started
[    1.967276][   T22] mmc0: new SDHC card at address 0001
[    1.979671][   T22] mmcblk0: mmc0:0001 SD16G 29.5 GiB
[    1.987461][    T1] Key type encrypted registered
[    2.013990][   T22]  mmcblk0: p1 p2 p3 p4
[    2.088045][   T75] sun4i-pinctrl 1c20800.pinctrl: supply vcc-ph not found, using dummy regulator
[    2.104385][    T1] printk: console [netcon0] enabled
[    2.109601][    T1] netconsole: network logging started
[    2.115448][    T1] ALSA device list:
[    2.119242][    T1]   No soundcards found.
[    2.400464][    C0] random: fast init done
[    6.301092][    T1] EXT4-fs (mmcblk0p3): recovery complete
[    6.310302][    T1] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[    6.321082][    T1] VFS: Mounted root (ext4 filesystem) on device 179:3.
[    6.328313][    T1] devtmpfs: mounted
[    6.333334][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    6.341158][    T1] Run /sbin/init as init process
[    6.346006][    T1]   with arguments:
[    6.349712][    T1]     /sbin/init
[    6.353137][    T1]   with environment:
[    6.356984][    T1]     HOME=/
[    6.360050][    T1]     TERM=linux
[    6.364090][    T1] Run /etc/init as init process
[    6.368991][    T1]   with arguments:
[    6.372784][    T1]     /etc/init
[    6.376161][    T1]   with environment:
[    6.380037][    T1]     HOME=/
[    6.383111][    T1]     TERM=linux
[    6.387042][    T1] Run /bin/init as init process
[    6.391880][    T1]   with arguments:
[    6.395593][    T1]     /bin/init
[    6.398969][    T1]   with environment:
[    6.402848][    T1]     HOME=/
[    6.405956][    T1]     TERM=linux
[    6.409808][    T1] Run /bin/sh as init process
[    6.414454][    T1]   with arguments:
[    6.418173][    T1]     /bin/sh
[    6.421366][    T1]   with environment:
[    6.425245][    T1]     HOME=/
[    6.428336][    T1]     TERM=linux
[    6.454707][    T1] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004
[    6.463086][    T1] CPU: 0 PID: 1 Comm: sh Not tainted 5.15.0-rc5-Allwinner-Happy #33 2cbe631b8feb782ec637f4454c93c0defca4b1ea
[    6.474472][    T1] Hardware name: Allwinner sun7i (A20) Family
[    6.480391][    T1] [<c010a714>] (unwind_backtrace) from [<c0105a80>] (show_stack+0x10/0x14)
[    6.488847][    T1] [<c0105a80>] (show_stack) from [<c09bfa58>] (dump_stack_lvl+0x40/0x4c)
[    6.497117][    T1] [<c09bfa58>] (dump_stack_lvl) from [<c09bd4a0>] (panic+0x100/0x2e4)
[    6.505122][    T1] [<c09bd4a0>] (panic) from [<c011eb5c>] (do_exit+0x9e4/0xb7c)
[    6.512521][    T1] [<c011eb5c>] (do_exit) from [<c011fdb0>] (do_group_exit+0x3c/0xb8)
[    6.520440][    T1] [<c011fdb0>] (do_group_exit) from [<c012b6f4>] (get_signal+0x1a0/0x854)
[    6.528794][    T1] [<c012b6f4>] (get_signal) from [<c0104ee4>] (do_work_pending+0x100/0x5cc)
[    6.537321][    T1] [<c0104ee4>] (do_work_pending) from [<c01000c0>] (slow_work_pending+0xc/0x20)
[    6.546194][    T1] Exception stack(0xc1871fb0 to 0xc1871ff8)
[    6.551939][    T1] 1fa0:                                     ???????? ???????? ???????? ????????
[    6.560800][    T1] 1fc0: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
[    6.569661][    T1] 1fe0: ???????? ???????? ???????? ???????? ???????? ????????
[    6.576970][    T1] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004 ]---

百度搜了一下说是什么EABI编译问题,更改之后还是不行,还有说根文件系统问题,换了之后也还是同样错误。芯片是全志A20。我实在黔驴技穷了,来个大神救救孩子吧。

#2 Re: 全志 SOC » v3s官方的linux5.2,安装内核头文件要下载哪个版本 » 2023-03-22 11:31:18

?不是下载最新内核源码就行了么,再改改设备树menuconfig一下,直接编译就行了。

#3 Re: 全志 SOC » 网站需要改革,放开文件下载权限(不需要与积分挂钩) » 2022-05-05 11:46:40

个人认为积分下载没什么毛病,不过注册新人可以给个5积分,让新用户尝试下载资料的作用。我刚注册急需资料可是不能下载尝试,当时确实很绝望,不过后来发现发帖就有积分,于是我发了一个求助帖,也有积分拿,所以我觉得积分下载并没有毛病,网站又不需要你发什么大佬级帖子,你要是真心想留在whycan你就发帖,多多留下有价值的评价,很容易获得积分,你要是只想着白嫖什么都不干连评论一下都不愿意还是别在whycan呆了,乖乖去买你的csdn会员吧。

#4 Re: 全志 SOC » 求助!求助!Linux内核启动显示屏不打印。 » 2022-04-26 11:22:47

哇酷小二 说:

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

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

#5 全志 SOC » 求助!求助!Linux内核启动显示屏不打印。 » 2022-04-26 10:43:32

happy粥
回复: 2
第一次发帖,可能有说不明白的,希望有大佬前辈能指点一下。
  • 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: 

#6 Re: 全志 SOC » 全志V3S[荔枝派zero](uboot+BSP内核+Buildroot)从0到1全套开发入门 » 2022-04-25 23:29:34

学习了,楼主有LCD_480x272的设备树文件么,能不能发一份。

#8 Re: 全志 SOC » 在哇酷那么久了,自己还是比较愚钝的,也做了一版V3S,这次把最终效果发出来,如果大家感觉有参考价值,我也可以开源。 » 2022-04-17 18:30:27

大佬,请问我画好了一个板子该如何做到像你一样呢?能不能出一期学习教程。我也是用v3s学着别人的图画了一个,但是还不知道怎么下载和使用。希望你能出一期你从编译适配到下载使用的教程。

页脚

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

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