Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    【萌新】求助t113_mq-r 下载spi nand固件 反复重启!

    D1系列-RISC-V
    1
    1
    102
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jr_online LV 7 last edited by

      1、SDK:https://github.com/mangopi-sbc/Tina-Linux

      2、source build/envsetup.sh、lunch,选择 t113_mq_r-tina方案

      e4c5e157-ebe4-401f-a224-1f5548753ec3-image.png

      3、dedug uart0修改为uart3,storage_type改为5,屏幕为st7701s。

      4、mboot、make -j1编译

      5、把编译好的固件下载到板子上启动反复重启,下图是控制台打印信息:

      [158]HELLO! BOOT0 is starting!
      [160]BOOT0 commit : adaf1174cc
      [163]set pll start
      [169]periph0 has been enabled
      [172]set pll end
      [174][pmu]: bus read error
      [176]board init ok
      [178]ZQ value = 0x30
      [180]get_pmu_exist() = -1
      [183]DRAM BOOT DRIVE INFO: V0.33
      [186]DRAM CLK = 936 MHz
      [188]DRAM Type = 3 (2:DDR2,3:DDR3)
      [192]DRAMC read ODT  off.
      [194]DRAM ODT value: 0x42.
      [197]ddr_efuse_type: 0xa
      [200]DRAM SIZE =128 M
      [202]dram_tpr4:0x0
      [204]PLL_DDR_CTRL_REG:0xf8004d00
      [207]DRAM_CLK_REG:0xc0000000
      [210][TIMING DEBUG] MR2= 0x20
      [217]DRAM simple test OK.
      [219]rtc standby flag is 0x0, super standby flag is 0x0
      [224]dram size =128
      [227]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
      [232]block from 8 to 32
      [365]Check is correct.
      [367]dma 0x29c9c int is not used yet
      [371]dma 0x29c9c int is free, you do not need to free it again
      [377]Entry_name        = u-boot
      [384]Entry_name        = optee
      [387]Entry_name        = dtb
      [390]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
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (jr@jr-virtual-machine) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #6 SMP PREEMPT Thu Dec 1 06:47:39 UTC 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: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 4 MiB at 0x47c00000
      [    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: ubi.mtd=sys ubi.block=0,rootfs earlyprintk=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/ubiblock0_5 rootfstype=squashfs init=/pseudo_init partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:boot@ubi0_4:rootfs@ubi0_5:private@ubi0_6:rootfs_data@ubi0_7:UDISK@ubi0_8: cma=4M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw20p1 boot_type=5 androidboot.boot_type=5 gpt=1 uboot_message=2018.05-g2a1965a-dirty(07/10/2022-02:50:57) mbr_offset=1032192 disp_reserve=1536000,0x43eff000 aw-ubi-spinand.ubootblks=24 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: 106052K/131072K available (6144K kernel code, 304K rwdata, 1584K rodata, 1024K init, 1173K bss, 20924K reserved, 4096K 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+0x264/0x3e8 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.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.008024] Switching to timer-based delay loop, resolution 41ns
      [    0.014194] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023879] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.034226] pid_max: default: 32768 minimum: 301
      [    0.038959] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.046283] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.054609] CPU: Testing write buffer coherency: ok
      [    0.059819] /cpus/cpu@0 missing clock-frequency property
      [    0.065144] /cpus/cpu@1 missing clock-frequency property
      [    0.070493] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.076666] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.083324] rcu: Hierarchical SRCU implementation.
      [    0.088536] smp: Bringing up secondary CPUs ...
      [    0.094154] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.094271] smp: Brought up 1 node, 2 CPUs
      [    0.104084] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.110279] CPU: All CPU(s) started in SVC mode.
      [    0.115338] devtmpfs: initialized
      [    0.129551] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.137696] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.147784] pinctrl core: initialized pinctrl subsystem
      [    0.153940] NET: Registered protocol family 16
      [    0.159922] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.195084] rtc_ccu: sunxi ccu init OK
      [    0.201168] ccu: sunxi ccu init OK
      [    0.204993] r_ccu: sunxi ccu init OK
      [    0.227817] iommu: Default domain type: Translated
      [    0.232857] sunxi iommu: irq = 24
      [    0.237048] SCSI subsystem initialized
      [    0.240939] usbcore: registered new interface driver usbfs
      [    0.246468] usbcore: registered new interface driver hub
      [    0.251869] usbcore: registered new device driver usb
      [    0.257614] Advanced Linux Sound Architecture Driver Initialized.
      [    0.264273] Bluetooth: Core ver 2.22
      [    0.267893] NET: Registered protocol family 31
      [    0.272338] Bluetooth: HCI device and connection manager initialized
      [    0.278724] Bluetooth: HCI socket layer initialized
      [    0.283624] Bluetooth: L2CAP socket layer initialized
      [    0.288701] Bluetooth: SCO socket layer initialized
      [    0.293802] pwm module init!
      [    0.297872] g2d 5410000.g2d: Adding to iommu group 0
      [    0.303156] G2D: rcq version initialized.major:252
      [    0.308818] clocksource: Switched to clocksource arch_sys_counter
      [    0.323374] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.332600] NET: Registered protocol family 2
      [    0.337518] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.345939] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.353665] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.360771] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.367220] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.373793] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.380979] NET: Registered protocol family 1
      [    0.386268] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    0.396576] spi spi0: spi0 supply spi not found, using dummy regulator
      [    0.403301] sunxi_spi_resource_get()2116 - [spi0] SPI MASTER MODE
      [    0.409475] sunxi_spi_resource_get()2154 - Failed to get sample mode
      [    0.415828] sunxi_spi_resource_get()2159 - Failed to get sample delay
      [    0.422282] sunxi_spi_resource_get()2163 - sample_mode:-1431633921 sample_delay:-1431633921
      [    0.430698] sunxi_spi_clk_init()2205 - [spi0] mclk 100000000
      [    0.436965] sunxi_spi_probe()2623 - [spi0]: driver probe succeed, base c881f000, irq 39
      [    0.446596] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.457969] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.463991] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.498351] io scheduler mq-deadline registered
      [    0.502914] io scheduler kyber registered
      [    0.507969] [DISP]disp_module_init
      [    0.511908] disp 5000000.disp: Adding to iommu group 0
      [    0.517557] [DISP] disp_init,line:2386:
      [    0.517562] smooth display screen:0 type:1 mode:4
      [    0.542373] display_fb_request,fb_id:0
      [    0.549638] Freeing logo buffer memory: 1500K
      [    0.554443] disp_al_manager_apply ouput_type:1
      [    0.559068] [DISP] lcd_clk_config,line:744:
      [    0.559079] disp 0, clk: pll(336000000),clk(336000000),dclk(28000000) dsi_rate(28000000)
      [    0.559079]      clk real:pll(336000000),clk(336000000),dclk(84000000) dsi_rate(150000000)
      [    0.559129] [DISP]disp_module_init finish
      [    0.563351] sunxi_pwm_enable_dual: can't parse pwm device
      [    0.580691] sunxi_sid_init()551 - insmod ok
      [    0.594068] sun8iw20-pinctrl 2000000.pinctrl: unsupported function uart0 on pin PB6
      [    0.601783] sun8iw20-pinctrl 2000000.pinctrl: unsupported function uart0 on pin PB7
      [    0.609721] uart uart3: uart3 supply uart not found, using dummy regulator
      [    0.616845] sun8iw20-pinctrl 2000000.pinctrl: unsupported function uart0 on pin PB6
      [    0.624543] sun8iw20-pinctrl 2000000.pinctrl: unsupported function uart0 on pin PB7
      [    0.632262] sw_uart_select_gpio_state()1255 - UART3 pinctrl_lookup_state(default) failed! return ffffffed
      [    0.641917] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.649769] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
      ▒[    0.657748] printk: console [ttyS3] enabled
      [    0.657748] printk: console [ttyS3] enabled
      [    0.666657] printk: bootconsole [earlycon0] disabled
      [    0.666657] printk: bootconsole [earlycon0] disabled
      [    0.677973] misc dump reg init
      [    0.682529] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.693683] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      [    0.700932] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      [    0.708247] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      [    0.715643] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      [    0.722162] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      [    0.729118] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
      [    0.736805] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
      [    0.744650] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      [    0.752734] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      [    0.760317] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      [    0.767052] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
      [    0.774568] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
      [29]HELLO! BOOT0 is starting!
      [32]BOOT0 commit : adaf1174cc
      [35]set pll start
      [40]periph0 has been enabled
      [43]set pll end
      [45][pmu]: bus read error
      [47]board init ok
      [49]ZQ value = 0x30
      [51]get_pmu_exist() = -1
      [54]DRAM BOOT DRIVE INFO: V0.33
      [57]DRAM CLK = 936 MHz
      [59]DRAM Type = 3 (2:DDR2,3:DDR3)
      [62]DRAMC read ODT  off.
      [64]DRAM ODT value: 0x42.
      [67]ddr_efuse_type: 0xa
      [70]DRAM SIZE =128 M
      [72]dram_tpr4:0x0
      [74]PLL_DDR_CTRL_REG:0xf8004d00
      [77]DRAM_CLK_REG:0xc0000000
      [79][TIMING DEBUG] MR2= 0x20
      [87]DRAM simple test OK.
      [89]rtc standby flag is 0x0, super standby flag is 0x0
      [94]dram size =128
      [97]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32
      [102]block from 8 to 32
      [235]Check is correct.
      [237]dma 0x29c9c int is not used yet
      [240]dma 0x29c9c int is free, you do not need to free it again
      [246]Entry_name        = u-boot
      [253]Entry_name        = optee
      [257]Entry_name        = dtb
      [260]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
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (jr@jr-virtual-machine) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #6 SMP PREEMPT Thu Dec 1 06:47:39 UTC 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: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 4 MiB at 0x47c00000
      [    0.000000] On node 0 totalpages: 32768
      [    0.000000]   Normal zone: 256 pages used for memmap
      

      有大佬指点一下吗?

      1 Reply Last reply Reply Quote Share 0
      • 1 / 1
      • First post
        Last post

      Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

      行为准则 | 用户协议 | 隐私权政策