Toybrick

系统启动在内核启动到sched_clock时候卡死

asswecan

新手上路

积分
7
楼主
发表于 2023-8-7 13:44:47    查看: 3242|回复: 0 | [复制链接]    打印 | 只看该作者
使用的是官方的SDK,请看日志:
Starting kernel ...


[11:31:00.970]收←◆[    0.000000] Booting Linux on physical CPU 0xf00
[    0.000000] Linux version 4.19.111 (ass@untu) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #10 SMP PREEMPT Wed Aug 2 23:35:52 PDT 2023
[    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: Rockchip RV1126 EVB DDR3 V13 Board
[    0.000000] earlycon: uart8250 at MMIO32 0xff570000 (options '')
[    0.000000] bootconsole [uart8250] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Ignoring RAM at 0x08600000-0x40000000
[    0.000000] Consider using a HIGHMEM enabled kernel.
[    0.000000] INITRD: 0x0a200000+0x01c3e000 is not a memory region - disabling initrd
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'drm-logo@00000000': base 0x00000000, size 0 MiB
[    0.000000] Reserved memory: created CMA memory pool at 0x07800000, size 8 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] OF: reserved mem: failed to allocate memory for node 'isp'
[    0.000000] percpu: Embedded 15 pages/cpu s32012 r8192 d21236 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 33528
[    0.000000] Kernel command line: storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal  rootwait earlycon=uart8250,mmio32,0xff570000 console=ttyFIQ0 root=PARTUUID=614e0000-0000 snd_aloop.index=7
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] mem auto-init: stackff, heap allocff, heap freeff
[    0.000000] Memory: 114408K/135168K available (6144K kernel code, 235K rwdata, 1528K rodata, 1024K init, 218K bss, 12568K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8400000   ( 132 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 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)   ( 236 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 219 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]         Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: random: get_random_bytes called from start_kernel+0x2e0/0x460 with crng_init=0
[    0.000000] timer_probe: no matching timers found
[    0.000000] sched_clock: 32 bits at 300 Hz, resolution 3333333ns, wraps every 7158278824300949ns

然后就卡在这里了,我看了之前成功的日志,sched_clock 被分配的是24MHZ时钟,我猜想是因为这个导致后面继续运行。我用的是官方SDK就自己在改UVC驱动,因为要搞USB摄像头,关闭了WIFI BT部分编译和内核驱动。我就突然发现编译的系统起不起来了?我不认为我改到了内核时钟这块儿东西,但是就是起不起来。难道是外面的24MHZ晶振坏了吗?

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表