现尝试自编译的tina,在boot0和uboot阶段都有输出,内核没有。
采用awboot的方式引导主线内核的方式,在boot阶段也有输出,内核没有。
尝试使用芒果派的mq-r-t113-rtl8189fs-5113-dns-uart0.img,在boot0和uboot阶段也都有输出。
所以我判断是因为硬件问题导致内核无法启动。
VCC-PLL=1.8v
RESET=3.3v
LDOA-OUT=1.8v
LDOB-OUT boot0未启动时1.35v,启动时1.5v
vcc-pe=1.8v
VDD_SYS0=0.9v
VCC-DRAM0=1.5v
VDD18-DRAM=1.8v
VDD-SYS1=0.9v
LVDS18=1.8v
VCC-PD=3.3v
VCC-TVOUT=3.3v
VDD-SYS2=0.9v
VCC-IO=3.3v
AVCC=1.8v
HPVCC=1.8v
VCC-TVIN=1.8v
VDD-CORE1=0.9v
VCC-PG=3.3v
望大佬解惑
C
cjia3254 发布的最佳帖子
-
t113-s3因为硬件原因导致内核无法启动
-
t113 i2s 引脚调试
正常设置的设备树,但是引脚没有复用成i2s,而是变成了io_disabled
设备树&daudio2 { mclk_div = <0x01>; frametype = <0x00>; tdm_config = <0x01>; sign_extend = <0x00>; msb_lsb_first = <0x00>; pcm_lrck_period = <0x80>; slot_width_select = <0x20>; pinctrl-0 = <&daudio2_pins_a &daudio2_pins_b &daudio2_pins_c>; pinctrl-1 = <&daudio2_pins_d>; pinctrl-names = "default", "sleep"; pinctrl_used = <0x1>; status = "okay"; }; daudio2_pins_a: adaudio2@0 { /* I2S_PIN: MCLK, BCLK, LRCK */ pins = "PB7", "PB5", "PB6"; function = "i2s2"; drive-strength = <100>; bias-disable; }; daudio2_pins_b: adaudio2@1 { /* I2S_PIN: DIN0 */ pins = "PB3"; function = "i2s2_din"; drive-strength = <100>; bias-disable; }; daudio2_pins_c: adaudio2@2 { /* I2S_PIN: DOUT0 */ pins = "PB4"; function = "i2s2_dout"; drive-strength = <100>; bias-disable; }; daudio2_pins_d: adaudio2_sleep@0 { pins = "PB7", "PB6", "PB5", "PB4", "PB3"; function = "io_disabled"; drive-strength = <100>; bias-disable; };
cat /sys/kernel/debug/pinctrl/2000000.pinctrl/pinmux-pins
pin 35 (PB3): device 2034000.daudio function io_disabled group PB3 pin 36 (PB4): device 2034000.daudio function io_disabled group PB4 pin 37 (PB5): device 2034000.daudio function io_disabled group PB5 pin 38 (PB6): device 2034000.daudio function io_disabled group PB6 pin 39 (PB7): device 2034000.daudio function io_disabled group PB7
cat /sys/kernel/debug/pinctrl/pinctrl-handles
从这里可以看出2034000.daudio current state: sleep,状态是sleep。device: 2034000.daudio current state: sleep state: default type: MUX_GROUP controller 2000000.pinctrl group: PB7 (7) function: i2s2 (22) type: CONFIGS_GROUP controller 2000000.pinctrl group PB7 (7)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB5 (5) function: i2s2 (22) type: CONFIGS_GROUP controller 2000000.pinctrl group PB5 (5)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB6 (6) function: i2s2 (22) type: CONFIGS_GROUP controller 2000000.pinctrl group PB6 (6)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB3 (3) function: i2s2_din (14) type: CONFIGS_GROUP controller 2000000.pinctrl group PB3 (3)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB4 (4) function: i2s2_dout (13) type: CONFIGS_GROUP controller 2000000.pinctrl group PB4 (4)config 00002809 config 00000001 state: sleep type: MUX_GROUP controller 2000000.pinctrl group: PB7 (7) function: io_disabled (11) type: CONFIGS_GROUP controller 2000000.pinctrl group PB7 (7)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB6 (6) function: io_disabled (11) type: CONFIGS_GROUP controller 2000000.pinctrl group PB6 (6)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB5 (5) function: io_disabled (11) type: CONFIGS_GROUP controller 2000000.pinctrl group PB5 (5)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB4 (4) function: io_disabled (11) type: CONFIGS_GROUP controller 2000000.pinctrl group PB4 (4)config 00002809 config 00000001 type: MUX_GROUP controller 2000000.pinctrl group: PB3 (3) function: io_disabled (11) type: CONFIGS_GROUP controller 2000000.pinctrl group PB3 (3)config 00002809 config 00000001
但是在日志中未见明显的引脚冲突错误
[ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.61 (cjia@0652cdfa7734) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #47 SMP PREEMPT Sun Apr 21 12:05:33 UTC 2024 [ 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: sun8iw20 [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 8 MiB at 0x47800000 [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 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 15 pages/cpu s30348 r8192 d22900 u61440 [ 0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500400 clk_ignore_unused initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:private@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-ge987def5-dirty(04/17/2024-10:02:06) androidboot.dramsize=128 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 108668K/131072K available (6144K kernel code, 245K rwdata, 1548K rodata, 1024K init, 1128K bss, 14212K reserved, 8192K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] random: get_random_bytes called from start_kernel+0x26c/0x3ec with crng_init=0 [ 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.008007] Switching to timer-based delay loop, resolution 41ns [ 0.014183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.023870] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.034235] pid_max: default: 32768 minimum: 301 [ 0.038977] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.046308] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.054621] CPU: Testing write buffer coherency: ok [ 0.059825] /cpus/cpu@0 missing clock-frequency property [ 0.065141] /cpus/cpu@1 missing clock-frequency property [ 0.070490] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.076649] Setting up static identity map for 0x40100000 - 0x40100060 [ 0.083317] rcu: Hierarchical SRCU implementation. [ 0.088521] smp: Bringing up secondary CPUs ... [ 0.094147] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.094264] smp: Brought up 1 node, 2 CPUs [ 0.104059] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.110228] CPU: All CPU(s) started in SVC mode. [ 0.115317] devtmpfs: initialized [ 0.129793] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.137896] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.147757] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.154992] pinctrl core: initialized pinctrl subsystem [ 0.161158] NET: Registered protocol family 16 [ 0.167020] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.200794] rtc_ccu: sunxi ccu init OK [ 0.206748] ccu: sunxi ccu init OK [ 0.210545] r_ccu: sunxi ccu init OK [ 0.231617] sun6i-dma 3002000.dma-controller: sunxi dma probed [ 0.239229] iommu: Default domain type: Translated [ 0.244264] sunxi iommu: irq = 24 [ 0.248461] SCSI subsystem initialized [ 0.252459] usbcore: registered new interface driver usbfs [ 0.258019] usbcore: registered new interface driver hub [ 0.263429] usbcore: registered new device driver usb [ 0.269267] Advanced Linux Sound Architecture Driver Initialized. [ 0.275906] Bluetooth: Core ver 2.22 [ 0.279549] NET: Registered protocol family 31 [ 0.283986] Bluetooth: HCI device and connection manager initialized [ 0.290392] Bluetooth: HCI socket layer initialized [ 0.295266] Bluetooth: L2CAP socket layer initialized [ 0.300341] Bluetooth: SCO socket layer initialized [ 0.305462] pwm module init! [ 0.309497] g2d 5410000.g2d: Adding to iommu group 0 [ 0.314775] G2D: rcq version initialized.major:252 [ 0.320333] clocksource: Switched to clocksource arch_sys_counter [ 0.334827] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver [ 0.344056] NET: Registered protocol family 2 [ 0.348962] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.357401] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.365099] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.372161] TCP: Hash tables configured (established 1024 bind 1024) [ 0.378601] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.385182] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.392369] NET: Registered protocol family 1 [ 0.397642] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator [ 0.408002] spi spi1: spi1 supply spi not found, using dummy regulator [ 0.414733] sunxi_spi_resource_get()2438 - [spi1] SPI MASTER MODE [ 0.420880] sunxi_spi_resource_get()2476 - Failed to get sample mode [ 0.427233] sunxi_spi_resource_get()2481 - Failed to get sample delay [ 0.433679] sunxi_spi_resource_get()2485 - sample_mode:-1431633921 sample_delay:-1431633921 [ 0.442091] sunxi_spi_clk_init()2527 - [spi1] mclk 100000000 [ 0.448444] sunxi_spi_probe()2978 - [spi1]: driver probe succeed, base c881f000, irq 39 [ 0.457969] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.469357] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.475398] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.508652] io scheduler mq-deadline registered [ 0.513224] io scheduler kyber registered [ 0.519065] sunxi_sid_init()783 - insmod ok [ 0.524484] uart uart1: uart1 supply uart not found, using dummy regulator [ 0.531682] uart1: ttyS1 at MMIO 0x2500400 (irq = 34, base_baud = 1500000) is a SUNXI [ 0.539531] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n [ 0.547520] printk: console [ttyS1] enabled [ 0.556466] printk: bootconsole [earlycon0] disabled [ 0.567753] misc dump reg init [ 0.572326] dma-buf: Running sanitycheck [ 0.576727] dma-buf: Running dma_fence [ 0.580949] sizeof(dma_fence)=48 [ 0.584663] dma-buf: Running dma_fence/sanitycheck [ 0.590050] dma-buf: Running dma_fence/test_signaling [ 0.595731] dma-buf: Running dma_fence/test_add_callback [ 0.601703] dma-buf: Running dma_fence/test_late_add_callback [ 0.608146] dma-buf: Running dma_fence/test_rm_callback [ 0.614014] dma-buf: Running dma_fence/test_late_rm_callback [ 0.620374] dma-buf: Running dma_fence/test_status [ 0.625746] dma-buf: Running dma_fence/test_error [ 0.631029] dma-buf: Running dma_fence/test_wait [ 0.636208] dma-buf: Running dma_fence/test_wait_timeout [ 0.680343] dma-buf: Running dma_fence/test_stub [ 0.685539] dma-buf: Running dma_fence/race_signal_callback [ 0.760351] thread_signal_callback[0] completed 36788 passes, 28 misses [ 0.767781] thread_signal_callback[1] completed 36797 passes, 37 misses [ 0.840369] thread_signal_callback[0] completed 41827 passes, 41825 misses [ 0.848090] thread_signal_callback[1] completed 41860 passes, 41860 misses [ 0.856578] libphy: Fixed MDIO Bus: probed [ 0.862342] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator [ 0.873810] gmac-power0: NULL [ 0.877139] gmac-power1: NULL [ 0.880513] gmac-power2: NULL [ 0.884824] Failed to alloc md5 [ 0.888357] eth0: Use random mac address [ 0.893026] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 0.900371] sunxi-ehci: EHCI SUNXI driver [ 0.905253] get ehci0-controller wakeup-source is fail. [ 0.911237] sunxi ehci0-controller don't init wakeup source [ 0.917493] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b4fe98, 0x:c8825000, irq_no:36 [ 0.929509] [sunxi-ehci0]: Not init ehci0 [ 0.934249] get ehci1-controller wakeup-source is fail. [ 0.940182] sunxi ehci1-controller don't init wakeup source [ 0.946461] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b503b8, 0x:c8829000, irq_no:38 [ 0.958689] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator [ 0.970960] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller [ 0.978214] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1 [ 0.988334] sunxi-ehci 4200000.ehci1-controller: irq 56, io mem 0x04200000 [ 1.020348] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00 [ 1.028166] sunxi-ehci 4200000.ehci1-controller: ehci_irq: highspeed device connect [ 1.037607] hub 1-0:1.0: USB hub found [ 1.041889] hub 1-0:1.0: 1 port detected [ 1.046855] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.053854] sunxi-ohci: OHCI SUNXI driver [ 1.058766] get ohci0-controller wakeup-source is fail. [ 1.064761] sunxi ohci0-controller don't init wakeup source [ 1.071036] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b50128 [ 1.080709] [sunxi-ohci0]: Not init ohci0 [ 1.085440] get ohci1-controller wakeup-source is fail. [ 1.091411] sunxi ohci1-controller don't init wakeup source [ 1.097665] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b50648 [ 1.107567] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator [ 1.119819] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller [ 1.127118] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2 [ 1.137019] sunxi-ohci 4200400.ohci1-controller: irq 57, io mem 0x04200400 [ 1.215168] hub 2-0:1.0: USB hub found [ 1.219412] hub 2-0:1.0: 1 port detected [ 1.224512] i2c /dev entries driver [ 1.228501] sunxi cedar version 1.1 [ 1.232615] sunxi-cedar 1c0e000.ve: Adding to iommu group 0 [ 1.238940] VE: sunxi_cedar_probe power-domain init!!! [ 1.244730] VE: install start!!! [ 1.244730] [ 1.250240] VE: cedar-ve the get irq is 40 [ 1.250240] [ 1.256690] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval) [ 1.256690] [ 1.265999] VE: install end!!! [ 1.265999] [ 1.271088] VE: sunxi_cedar_probe [ 1.275026] Bluetooth: HCI UART driver ver 2.3 [ 1.280009] Bluetooth: HCI UART protocol H4 registered [ 1.285789] Bluetooth: HCI UART protocol BCSP registered [ 1.292061] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10 [ 1.300801] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40) [ 1.310701] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8 [ 1.316897] sunxi-mmc 4020000.sdmmc: No vmmc regulator found [ 1.323268] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found [ 1.329712] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found [ 1.336183] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found [ 1.342739] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found [ 1.349280] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found [ 1.355832] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found [ 1.363125] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.374316] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 1.394477] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.410361] usb 1-1: new high-speed USB device number 2 using sunxi-ehci [ 1.418722] sunxi-mmc 4020000.sdmmc: detmode:manually by software [ 1.425596] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.438022] exFAT: Version 1.3.0 [ 1.442973] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.443952] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed [ 1.462740] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed [ 1.470065] sunxi-spdif: probe of 2036000.spdif failed with error -22 [ 1.477325] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.477816] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator [ 1.500239] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator [ 1.501278] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 1.512222] sunxi-daudio 2034000.daudio: regulator missing or invalid [ 1.530557] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1 [ 1.530557] [ 1.547758] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0 [ 1.559078] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished [ 1.568244] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present! [ 1.578076] [SNDCODEC][sunxi_card_init][583]:card init finished [ 1.585233] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok [ 1.596169] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0 [ 1.608114] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished [ 1.615676] mmc0: host does not support reading read-only switch, assuming write-enable [ 1.624723] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 1.624818] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 1.636264] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch [ 1.648974] NET: Registered protocol family 10 [ 1.660364] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 1.661445] Segment Routing with IPv6 [ 1.672251] mmc0: new high speed SDHC card at address 59b4 [ 1.676355] NET: Registered protocol family 17 [ 1.683345] mmcblk0: mmc0:59b4 NCard 14.9 GiB [ 1.687580] Bluetooth: RFCOMM TTY layer initialized [ 1.697918] Bluetooth: RFCOMM socket layer initialized [ 1.698117] hub 1-1:1.0: USB hub found [ 1.703744] Bluetooth: RFCOMM ver 1.11 [ 1.712368] hub 1-1:1.0: 4 ports detected [ 1.712824] Registering SWP/SWPB emulation handler [ 1.723151] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 [ 1.737265] sunxi-i2c sunxi-i2c2: sunxi-i2c2 supply twi not found, using dummy regulator [ 1.747599] pca953x 2-0039: 2-0039 supply vcc not found, using dummy regulator [ 1.755935] pca953x 2-0039: using no AI [ 1.763135] sunxi-i2c sunxi-i2c2: probe success [ 1.769164] sunxi-spdif 2036000.spdif: request pinctrl handle for audio failed [ 1.777322] sunxi-spdif 2036000.spdif: [sunxi_spdif_dev_probe] failed [ 1.784657] sunxi-spdif: probe of 2036000.spdif failed with error -22 [ 1.792820] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present! [ 1.801894] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok [ 1.812024] debugfs: Directory '2034000.daudio' with parent 'wlf,wm8960' already present! [ 1.821904] sunxi-audio-card 20340a0.sounddaudio2: wm8960-hifi <-> 2034000.daudio mapping ok [ 1.952737] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator [ 1.966586] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 1.976323] clk: Not disabling unused clocks [ 1.976334] ALSA device list: [ 1.981158] cfg80211: failed to load regulatory.db [ 1.984485] #0: audiocodec [ 1.993073] #1: snddmic [ 1.996019] #2: wlf,wm8960 [ 2.005941] VFS: Mounted root (squashfs filesystem) readonly on device 179:5. [ 2.017190] devtmpfs: mounted [ 2.022442] Freeing unused kernel memory: 1024K [ 2.050488] Run /pseudo_init as init process [ 2.060383] usb 1-1.2: new high-speed USB device number 3 using sunxi-ehci [ 2.337780] random: fast init done [ 2.427630] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support! [ 2.448452] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal [ 2.858833] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null) [ 2.945224] SQUASHFS error: zlib decompression failed, data probably corrupt [ 2.953249] SQUASHFS error: squashfs_read_data failed to read block 0x24104a7 [ 2.961277] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 2.968873] SQUASHFS error: Unable to read inode 0x89f117a [ 2.993472] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.007146] SQUASHFS error: Unable to read inode 0x89f13af [ 3.025426] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.042998] SQUASHFS error: Unable to read inode 0x89f13af [ 3.045080] file system registered [ 3.069565] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.074896] configfs-gadget 4100000.udc-controller: failed to start g1: -19 [ 3.077318] SQUASHFS error: Unable to read inode 0x89f17de [ 3.092658] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.093901] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.102445] SQUASHFS error: Unable to read inode 0x89f0b4c [ 3.109391] SQUASHFS error: Unable to read inode 0x89f1b71 [ 3.125091] SQUASHFS error: Unable to read metadata cache entry [24104a7] [ 3.132738] SQUASHFS error: Unable to read inode 0x89f1b71 [ 5.250616] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator [ 5.266593] read descriptors [ 5.269841] read strings [ 5.480640] android_work: sent uevent USB_STATE=CONNECTED [ 5.510482] configfs-gadget gadget: high-speed config #1: c [ 5.516812] android_work: sent uevent USB_STATE=CONFIGURED
-
t113-s tina如何使用uart1 PD21,PD22
自制的t113开发板,使用的是百问网的sdk,现在是boot0和uboot都有输出,但是在内核阶段没有输出,不知道是内核没有启动,还是使用的串口错误。
求大佬解惑,这个问题已经找了好几天了。sys_config.fex
;uart configuration ;uart_debug_port |Boot串口控制器编号 | ;uart_debug_tx |Boot串口发送的GPIO配置| ;uart_debug_rx |Boot串口接收的GPIO配置 | ;---------------------------------------------------------------------------------- [uart_para] uart_debug_port = 1 uart_debug_tx = port:PD21<4><1><default><default> uart_debug_rx = port:PD22<4><1><default><default>
board.dts
&uart0 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart0_pins_a>; pinctrl-1 = <&uart0_pins_b>; status = "disabled"; }; &uart1 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart1_pins_a>; pinctrl-1 = <&uart1_pins_b>; status = "okay"; }; &uart2 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart2_pins_a>; pinctrl-1 = <&uart2_pins_b>; status = "disabled"; }; &uart3 { pinctrl-names = "default", "sleep"; pinctrl-0 = <&uart3_pins_a>; pinctrl-1 = <&uart3_pins_b>; status = "disabled"; }; uart1_pins_a: uart1_pins@0 { /* For EVB1 board */ pins = "PD21", "PD22"; function = "uart1"; drive-strength = <10>; muxsel = <4>; bias-pull-up; }; uart1_pins_b: uart1_pins@1 { /* For EVB1 board */ pins = "PD21", "PD22"; function = "gpio_in"; };
env.cfg
earlyprintk=sunxi-uart,0x02500400 initcall_debug=1 console=ttyS1,115200
config-5.4
# CONFIG_DEBUG_USER is not set CONFIG_DEBUG_LL=y # CONFIG_DEBUG_SUNXI_UART0 is not set CONFIG_DEBUG_SUNXI_UART1=y # CONFIG_DEBUG_SUNXI_UART2 is not set # CONFIG_DEBUG_ICEDCC is not set # CONFIG_DEBUG_SEMIHOSTING is not set # CONFIG_DEBUG_LL_UART_8250 is not set # CONFIG_DEBUG_LL_UART_PL01X is not set CONFIG_DEBUG_LL_INCLUDE="debug/8250.S" CONFIG_DEBUG_UART_8250=y CONFIG_DEBUG_UART_PHYS=0x02500400 CONFIG_DEBUG_UART_VIRT=0xf2500400 CONFIG_DEBUG_UART_8250_SHIFT=2
日志输出
[20]HELLO! BOOT0 is starting! [22]BOOT0 commit : 88480af-dirty [25]set pll start [31]periph0 has been enabled [34]set pll end [36][pmu]: bus read error [38]board init ok [40]ZQ value = 0x30 [42]get_pmu_exist() = -1 [45]ddr_efuse_type: 0xa [47]trefi:7.8ms [49][AUTO DEBUG] single rank and full DQ! [53]ddr_efuse_type: 0xa [55]trefi:7.8ms [58][AUTO DEBUG] rank 0 row = 13 [61][AUTO DEBUG] rank 0 bank = 8 [64][AUTO DEBUG] rank 0 page size = 2 KB [68]DRAM BOOT DRIVE INFO: V0.33 [71]DRAM CLK = 936 MHz [73]DRAM Type = 3 (2:DDR2,3:DDR3) [76]DRAMC read ODT off. [79]DRAM ODT value: 0x42. [81]ddr_efuse_type: 0xa [84]DRAM SIZE =128 M [86]dram_tpr4:0x0 [88]PLL_DDR_CTRL_REG:0xf8004d00 [91]DRAM_CLK_REG:0xc0000000 [94][TIMING DEBUG] MR2= 0x20 [101]DRAM simple test OK. [104]rtc standby flag is 0x0, super standby flag is 0x0 [109]dram size =128 [111]card no is 0 [113]sdcard 0 line count 4 [116][mmc]: mmc driver ver 2021-05-21 14:47 [125][mmc]: Wrong media type 0x0 [128][mmc]: ***Try SD card 0*** [138][mmc]: HSSDR52/SDR25 4 bit [141][mmc]: 50000000 Hz [143][mmc]: 29664 MB [145][mmc]: ***SD/MMC 0 init OK!!!*** [217]Loading boot-pkg Succeed(index=0). [221]Entry_name = u-boot [227]Entry_name = optee [231]Entry_name = dtb [233]mmc not para [235]Jump to second Boot. M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm U-Boot 2018.05-g24521d6-dirty (Feb 28 2024 - 10:13:08 +0800) Allwinner Technology [00.288]CPU: Allwinner Family [00.291]Model: sun8iw20 I2C: FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH ready [00.313]DRAM: 128 MiB [00.316]Relocation Offset is: 04f01000 [00.335]secure enable bit: 0 [00.338]smc_tee_inform_fdt failed with: -65526[00.343]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.349]gic: sec monitor mode [00.352]flash init start [00.354]workmode = 0,storage type = 1 [00.357][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00 [00.363][mmc]: get sdc_type fail and use default host:tm1. [00.369][mmc]: can't find node "mmc0",will add new node [00.373][mmc]: fdt err returned <no error> [00.377][mmc]: Using default timing para [00.381][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.399][mmc]: card_caps:0x3000000a [00.402][mmc]: host_caps:0x3000003f [00.406]sunxi flash init ok [00.419]Loading Environment from SUNXI_FLASH... OK [00.450]Item0 (Map) magic is bad [00.453]the secure storage item0 copy0 magic is bad [00.469]Item0 (Map) magic is bad [00.472]the secure storage item0 copy1 magic is bad [00.476]Item0 (Map) magic is bad secure storage read widevine fail [00.482]secure storage read widevine fail with:-1 secure storage read ec_key fail [00.490]secure storage read ec_key fail with:-1 secure storage read ec_cert1 fail [00.497]secure storage read ec_cert1 fail with:-1 secure storage read ec_cert2 fail [00.504]secure storage read ec_cert2 fail with:-1 secure storage read ec_cert3 fail [00.512]secure storage read ec_cert3 fail with:-1 secure storage read rsa_key fail [00.519]secure storage read rsa_key fail with:-1 secure storage read rsa_cert1 fail [00.527]secure storage read rsa_cert1 fail with:-1 secure storage read rsa_cert2 fail [00.534]secure storage read rsa_cert2 fail with:-1 secure storage read rsa_cert3 fail [00.542]secure storage read rsa_cert3 fail with:-1 [00.546]usb burn from boot delay time 0 weak:otg_phy_config [00.558]usb prepare ok [00.727]usb sof ok [00.729]usb probe ok [00.731]usb setup ok set address 0xc set address 0xc ok [03.736]do_burn_from_boot usb : have no handshake root_partition is rootfs set root to /dev/mmcblk0p5 [03.746]update part info [03.749]update bootcmd [03.753]change working_fdt 0x43ec0e70 to 0x43ea0e70 disable nand error: FDT_ERR_BADPATH [03.774]update dts Hit any key to stop autoboot: 0 [06.946]no vendor_boot partition is found Android's image name: t113-100ask [06.956]Starting kernel ... [06.959][mmc]: MMC Device 2 not found [06.962][mmc]: mmc 2 not find, so not exit