您尚未登录。

#1 Re: 全志 SOC » 全志 T113 SDK V1.2 学习记录 » 2025-08-28 09:20:46

大佬你好 请教一下

5.10下,时钟这块在设备树里面是如何声明的?

我用5.4的设备树 sun8iw20p1.dtsi,其中时钟部分:

		rtc_ccu: rtc_ccu@7090000 {
			compatible = "allwinner,sun8iw20-rtc-ccu";
			device_type = "rtc-ccu";
			reg = <0x0 0x07090000 0x0 0x320>;  /* The same as rtc */
			#clock-cells = <1>;
		};

		ccu: ccu@2001000 {
			compatible = "allwinner,sun8iw20-ccu";
			reg = <0x0 0x02001000 0x0 0x1000>;
			clocks = <&dcxo24M>,<&rtc_ccu CLK_OSC32K>, <&rtc_ccu CLK_IOSC>;
			clock-names = "hosc", "losc", "iosc";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

		r_ccu: r_ccu@7010000 {
			compatible = "allwinner,sun8iw20-r-ccu";
			reg = <0x0 0x07010000 0x0 0x240>;
			clocks = <&dcxo24M>, <&rtc_ccu CLK_OSC32K>, <&rtc_ccu CLK_IOSC>,
				 <&ccu CLK_PLL_PERIPH0>;
			clock-names = "hosc", "losc", "iosc", "pll-periph0";
			#clock-cells = <1>;
			#reset-cells = <1>;
		};

		rtc: rtc@7090000 {
			compatible = "allwinner,sun8iw20-rtc";
			device_type = "rtc";
			wakeup-source;
			reg = <0x0 0x07090000 0x0 0x320>;
			interrupts = <GIC_SPI 144 IRQ_TYPE_LEVEL_HIGH>;
			clocks = <&r_ccu CLK_R_AHB_BUS_RTC>, <&rtc_ccu CLK_RTC_1K>, <&rtc_ccu CLK_RTC_SPI>;
			clock-names = "r-ahb-rtc", "rtc-1k", "rtc-spi";
			resets = <&r_ccu RST_R_AHB_BUS_RTC>;
			gpr_cur_pos = <6>;
		};

然后把 5.4 中 driver/clk/sunxi-ng 挪到5.10上。

目前编译都过了,但是启动后卡死。

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.0-gff14b83fc20d-dirty (zhangsong@zhangsong-Standard-PC-Q35-ICH9-2009) (arm-linux-gnueabi-gcc (Linaro GCC 5.3-2016.05) 5.3.1 20160412, GNU ld (Linaro_Binutils-2016.05) 2.25.0 Linaro 2016_02) #10 SMP Wed Aug 27 17:38:31 CST 2025
[    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: kylin - sun8iw20p1 - 0x01
[    0.000000] earlycon: uart8250 at MMIO32 0x02500000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] printk: debug: skip boot console de-registration.
[    0.000000] printk: debug: ignoring loglevel setting.
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x5f000000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x0000000041ffffff]
[    0.000000]   node   0: [mem 0x0000000042000000-0x00000000420fffff]
[    0.000000]   node   0: [mem 0x0000000042100000-0x000000005fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000005fffffff]
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.0 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 16 pages/cpu s33024 r8192 d24320 u65536
[    0.000000] pcpu-alloc: s33024 r8192 d24320 u65536 alloc=16*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: root=/dev/mmcblk0p5 rootwait rw init=/init console=ttyAS0,115200 earlycon=uart8250,mmio32,0x02500000 loglevel=8 keep_bootcon ignore_loglevel androidboot.hardware=sun8iw20p1 boot_type=2 androidboot.boot_type=2 gpt=1 uboot_message=2018.05-gfb9c8e4-dirty(08/26/2025-05:57:08) androidboot.dramsize=512
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 488224K/524288K available (7168K kernel code, 949K rwdata, 1996K rodata, 1024K init, 408K bss, 19680K reserved, 16384K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.
[    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=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008382] Switching to timer-based delay loop, resolution 41ns
[    0.014853] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.025131] Console: colour dummy device 80x30
[    0.029823] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.040685] pid_max: default: 32768 minimum: 301
[    0.045659] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.053326] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.062036] CPU: Testing write buffer coherency: ok
[    0.067501] /cpus/cpu@0 missing clock-frequency property
[    0.073068] /cpus/cpu@1 missing clock-frequency property
[    0.078643] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.085209] Setting up static identity map for 0x40100000 - 0x40100070
[    0.092220] rcu: Hierarchical SRCU implementation.
[    0.097815] smp: Bringing up secondary CPUs ...
[    0.103859] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.104000] smp: Brought up 1 node, 2 CPUs
[    0.114263] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.120746] CPU: All CPU(s) started in SVC mode.
[    0.126142] devtmpfs: initialized
[    0.136991] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.145258] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.155593] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.163356] pinctrl core: initialized pinctrl subsystem
[    0.170544] NET: Registered protocol family 16
[    0.176615] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.184876] thermal_sys: Registered thermal governor 'step_wise'
[    0.185467] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.200135] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.239441] SCSI subsystem initialized
[    0.243719] libata version 3.00 loaded.
[    0.247967] usbcore: registered new interface driver usbfs
[    0.253799] usbcore: registered new interface driver hub
[    0.259397] usbcore: registered new device driver usb
[    0.264963] mc: Linux media interface: v0.10
[    0.269490] videodev: Linux video capture interface: v2.00
[    0.275349] pps_core: LinuxPPS API ver. 1 registered
[    0.280552] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.290147] PTP clock support registered
[    0.294719] Advanced Linux Sound Architecture Driver Initialized.
[    0.302392] clocksource: Switched to clocksource arch_sys_counter
[    0.316530] NET: Registered protocol family 2
[    0.321353] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.329659] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.338474] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.346650] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.354169] TCP: Hash tables configured (established 4096 bind 4096)
[    0.360932] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.367816] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.375317] NET: Registered protocol family 1
[    0.380548] RPC: Registered named UNIX socket transport module.
[    0.386813] RPC: Registered udp transport module.
[    0.391746] RPC: Registered tcp transport module.
[    0.396681] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.404099] hw perfevents: no interrupt-affinity property for /pmu, guessing.
[    0.411789] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    0.421816] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.434830] NFS: Registering the id_resolver key type
[    0.440197] Key type id_resolver registered
[    0.444650] Key type id_legacy registered
[    0.448922] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    0.456664] io scheduler mq-deadline registered
[    0.461388] io scheduler kyber registered
[    0.518730] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.536329] CAN device driver interface
[    0.541397] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.548293] ehci-platform: EHCI generic platform driver
[    0.553946] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.560444] ohci-platform: OHCI generic platform driver
[    0.567536] i2c /dev entries driver
[    0.573711] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    0.582330] cpu cpu0: _of_add_opp_table_v2: no supported OPPs
[    0.588398] cpu cpu0: OPP table can't be empty
[    0.593148] cpu cpu0: _of_add_opp_table_v2: no supported OPPs
[    0.599168] cpu cpu0: OPP table can't be empty
[    0.605765] usbcore: registered new interface driver usbhid
[    0.611611] usbhid: USB HID core driver
[    0.618837] NET: Registered protocol family 17
[    0.623568] can: controller area network core
[    0.628183] NET: Registered protocol family 29
[    0.632836] can: raw protocol
[    0.635952] can: broadcast manager protocol
[    0.640327] can: netlink gateway - max_hops=1
[    0.645134] Key type dns_resolver registered
[    0.649901] Registering SWP/SWPB emulation handler

请指点一下,我这个路子是否对,拜谢~

#2 Re: 全志 SOC » 全志 T113 SDK V1.2 学习记录 » 2025-08-21 10:40:51

memory 说:
new_shangao 说:

大神,求一份 sdk 1.2 中 5.10内核使用的设备树 我的设备型号是 tlt113-minievm-emmc

拜谢 拜谢~

linux 5.10 显示屏驱动有问题

没关系没关系,我这个设备用不到显示;拜谢拜谢~

#3 Re: 全志 SOC » 全志 T113 SDK V1.2 学习记录 » 2025-08-21 09:23:21

大神,求一份 sdk 1.2 中 5.10内核使用的设备树 我的设备型号是 tlt113-minievm-emmc

拜谢 拜谢~

页脚

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

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