您尚未登录。

#1 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-09-13 07:34:32

@richard.zhou

static int sun8i_smp_boot_secondary(unsigned int cpu,
                    struct task_struct *idle)
{
    u32 reg;
    void __iomem *cpucfg_membase = ioremap(0x09010000, 0x10);
    void __iomem *cpuexec_membase[] = {ioremap(0x070005C4, 0x10),ioremap(0x070005C8, 0x10)};

    if(cpu != 1)return 0;

//    pr_info("%s %d cpu %x\n",__FILE__,__LINE__,(u32)idle);
    spin_lock(&cpu_lock);
    
    /* Set CPU boot address */
    writel(__pa_symbol(secondary_startup),  cpuexec_membase[cpu]);
//  writel((u32)idle,   cpuexec_membase[cpu]);  /* do not work */

    /* Deassert the CPU core reset */
    reg = readl(cpucfg_membase);
    pr_info("%s %d cpucfg_membase = %x cpu=%d(%d)\n",__FILE__,__LINE__,(u32)reg, cpu, BIT(cpu));
    writel(reg | BIT(cpu), cpucfg_membase);
    pr_info("%s %d cpucfg_membase = %x\n",__FILE__,__LINE__,(u32)readl(cpucfg_membase));

    spin_unlock(&cpu_lock);

    return 0;
}

启动log

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #160 SMP PREEMPT Tue Sep 13 07:28:42 CST 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] 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] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M root=/dev/ram0 rw
[    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: 107512K/131072K available (7168K kernel code, 395K rwdata, 2464K rodata, 3072K init, 157K bss, 15368K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x440 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.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000196] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000807] Console: colour dummy device 80x30
[    0.000847] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000862] pid_max: default: 32768 minimum: 301
[    0.000941] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000956] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001548] CPU: Testing write buffer coherency: ok
[    0.001873] /cpus/cpu@0 missing clock-frequency property
[    0.001895] /cpus/cpu@1 missing clock-frequency property
[    0.001907] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002600] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002754] rcu: Hierarchical SRCU implementation.
[    0.003120] BOOTEVENT:         3.111416: ON
[    0.003318] smp: Bringing up secondary CPUs ...
[    0.003902] arch/arm/mach-sunxi/plat_t113_smp.c 44 cpucfg_membase = 13ff0101 cpu=1(2)
[    0.003914] arch/arm/mach-sunxi/plat_t113_smp.c 46 cpucfg_membase = 13ff0103
[    0.004146] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004300] smp: Brought up 1 node, 2 CPUs
[    0.004313] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004320] CPU: All CPU(s) started in SVC mode.
[    0.004910] devtmpfs: initialized
[    0.113510] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.116486] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116517] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.116953] pinctrl core: initialized pinctrl subsystem
[    0.131158] NET: Registered protocol family 16
[    0.137153] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.153987] cpuidle: using governor ladder
[    0.154070] cpuidle: using governor menu
[    0.444548] rtc_ccu: sunxi ccu init OK
[    0.481460] ccu: sunxi ccu init OK
[    0.487744] r_ccu: sunxi ccu init OK
[    1.036313] iommu: Default domain type: Translated 
[    1.036526] sunxi iommu: irq = 24
[    1.068689] SCSI subsystem initialized
[    1.079281] usbcore: registered new interface driver usbfs
[    1.079657] usbcore: registered new interface driver hub
[    1.079849] usbcore: registered new device driver usb
[    1.087640] mc: Linux media interface: v0.10
[    1.090096] videodev: Linux video capture interface: v2.00
[    1.113880] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.124898] Advanced Linux Sound Architecture Driver Initialized.
[    1.140940] pwm module init!
[    1.151102] clocksource: Switched to clocksource arch_sys_counter
[    1.339475] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.477101] thermal_sys: Registered thermal governor 'step_wise'
[    1.477109] thermal_sys: Registered thermal governor 'user_space'
[    1.484802] NET: Registered protocol family 2
[    1.496563] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.496605] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.496631] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.496654] TCP: Hash tables configured (established 1024 bind 1024)
[    1.496785] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.496821] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.497007] NET: Registered protocol family 1
[    1.518882] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.523635] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.528778] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.531876] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.531892] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.531902] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.531983] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    1.544828] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8829000, irq 45
[    1.822203] Initialise system trusted keyrings
[    1.822377] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.825855] fuse: init (API version 7.31)
[    1.861419] NET: Registered protocol family 38
[    1.861448] Key type asymmetric registered
[    1.861457] Asymmetric key parser 'x509' registered
[    1.861666] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    1.861680] io scheduler mq-deadline registered
[    1.861688] io scheduler kyber registered
[    1.886747] sunxi_sid_init()551 - insmod ok
[    1.896758] pwm-regulator: supplied by regulator-dummy
[    1.929371] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.929766] uart uart0: get regulator failed
[    1.929789] uart uart0: uart0 supply uart not found, using dummy regulator
[    1.930411] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    1.930443] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.690102] printk: console [ttyS0] enabled
[    2.698830] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.713418] uart uart1: get regulator failed
[    2.718212] uart uart1: uart1 supply uart not found, using dummy regulator
[    2.735683] uart1: ttyS1 at MMIO 0x2500400 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.751777] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.763187] uart uart2: get regulator failed
[    2.767973] uart uart2: uart2 supply uart not found, using dummy regulator
[    2.785620] uart2: ttyS2 at MMIO 0x2500800 (irq = 36, base_baud = 1500000) is a SUNXI
[    2.814241] uart uart3: get regulator failed
[    2.819040] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.827142] uart3: ttyS3 at MMIO 0x2500c00 (irq = 37, base_baud = 1500000) is a SUNXI
[    2.849763] uart uart4: get regulator failed
[    2.854608] uart uart4: uart4 supply uart not found, using dummy regulator
[    2.865905] uart4: ttyS4 at MMIO 0x2501000 (irq = 38, base_baud = 1500000) is a SUNXI
[    2.891706] uart uart5: get regulator failed
[    2.896500] uart uart5: uart5 supply uart not found, using dummy regulator
[    2.910769] uart5: ttyS5 at MMIO 0x2501400 (irq = 39, base_baud = 1500000) is a SUNXI
[    2.947200] misc dump reg init
[    2.964631] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.971866] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.979470] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.986786] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.994195] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    3.000708] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    3.007651] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    3.015365] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    3.023220] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    3.031316] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    3.042473] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    3.049222] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    3.056779] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    3.111941] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.117882] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.137042] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.144202] Creating 6 MTD partitions on "spi0.0":
[    3.149556] 0x000000000000-0x000000100000 : "boot0"
[    3.198737] 0x000000100000-0x000000200000 : "u-boot"
[    3.252859] 0x000000200000-0x000000220000 : "dtb"
[    3.323022] 0x000000220000-0x000000a20000 : "kernel"
[    3.331474] random: fast init done
[    3.406722] 0x000000a20000-0x000004a20000 : "usr"
[    3.613556] 0x000004a20000-0x000008000000 : "app"
[    3.808754] libphy: Fixed MDIO Bus: probed
[    3.813499] CAN device driver interface
[    3.818046] ======== XRADIO WIFI OPEN ========
[    3.830622] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[    3.837435] [XRADIO] Allocated hw_priv @ (ptrval)
[    3.842717] [ADDR_MGT] get_addr_by_name: t->addr: 
[    3.859421] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[    3.875728] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[    4.082861] sunxi_hosts[1] should not be null
[    4.082866] [XRADIO] Detect SDIO card 1
[    6.161225] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[    6.268431] sunxi_hosts[1] should not be null
[    6.268437] [XRADIO] Remove SDIO card 1
[    6.287586] [SBUS_ERR] sdio probe timeout!
[    6.292170] [XRADIO_ERR] sbus_sdio_init failed
[    6.297507] xradio_core_init failed (-110)!
[    6.341195] RTL871X: module init start
[    6.345386] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    6.351357] RTL871X: module init ret=0
[    6.355547] hso: drivers/net/usb/hso.c: Option Wireless
[    6.361539] usbcore: registered new interface driver hso
[    6.367478] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.374781] sunxi-ehci: EHCI SUNXI driver
[    6.383142] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.390086] sunxi-ohci: OHCI SUNXI driver
[    6.395260] usbcore: registered new interface driver uas
[    6.401342] usbcore: registered new interface driver usb-storage
[    6.408122] usbcore: registered new interface driver ums-alauda
[    6.414821] usbcore: registered new interface driver ums-cypress
[    6.421630] usbcore: registered new interface driver ums-datafab
[    6.431930] usbcore: registered new interface driver ums_eneub6250
[    6.438916] usbcore: registered new interface driver ums-freecom
[    6.445733] usbcore: registered new interface driver ums-isd200
[    6.452470] usbcore: registered new interface driver ums-jumpshot
[    6.459345] usbcore: registered new interface driver ums-karma
[    6.469424] usbcore: registered new interface driver ums-onetouch
[    6.480120] usbcore: registered new interface driver ums-realtek
[    6.486969] usbcore: registered new interface driver ums-sddr09
[    6.493673] usbcore: registered new interface driver ums-sddr55
[    6.500346] usbcore: registered new interface driver ums-usbat
[    6.521893] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input0
[    6.549569] sunxi_gpadc_init,2137, success
[    6.554542] sunxi_key_init: get key count failed
[    6.554558] sunxi_gpadc_setup: get channel scan data failed
[    6.569772] input: sunxi-gpadc0 as /devices/virtual/input/input1
[    6.584129] input: sunxi-gpadc1 as /devices/virtual/input/input2
[    6.626613] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.632419] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-04T01:40:50 UTC (265250)
[    6.641811] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.647712] i2c /dev entries driver
[    6.651981] IR NEC protocol handler initialized
[    6.657033] IR RC5(x/sz) protocol handler initialized
[    6.663185] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    6.678269] sunxi_ir_startup: get ir protocol failed
[    6.678301] (NULL device *): deviceless supply  not found, using dummy regulator
[    6.695811] Registered IR keymap rc_map_sunxi
[    6.704479] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    6.720274] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    6.742208] sunxi cedar version 1.1
[    6.746412] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    6.752761] VE: sunxi_cedar_probe power-domain init!!!
[    6.758506] VE: install start!!!
[    6.758506] 
[    6.771460] VE: cedar-ve the get irq is 46
[    6.771460] 
[    6.777997] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    6.777997] 
[    6.787268] VE: install end!!!
[    6.787268] 
[    6.792374] VE: sunxi_cedar_probe
[    6.805036] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.827838] /cpus/cpu@0: unsupported enable-method property: psci
[    6.870205] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    6.880192] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.886397] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.892750] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.899161] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.905593] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.912113] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.918635] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.925155] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.939465] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.944993] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.955447] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.966598] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.986720] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.011307] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    7.016977] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    7.034351] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    7.044363] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    7.050547] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    7.056913] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    7.063356] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    7.069775] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    7.076302] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    7.082835] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    7.089346] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    7.095914] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    7.118832] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.129989] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    7.150126] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.174328] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    7.186505] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.209957] usbcore: registered new interface driver usbhid
[    7.212353] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    7.216227] usbhid: USB HID core driver
[    7.229452] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    7.284934] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    7.284934] 
[    7.288231] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.302191] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:0, dacdrc_cfg:2, dachpf:3
[    7.313684] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.324981] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished
[    7.336257] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    7.364305] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    7.365329] mmc1: new high speed SDIO card at address 0001
[    7.374171] [SNDCODEC][sunxi_card_init][583]:card init finished
[    7.400250] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    7.452708] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input4
[    7.460240] RTL871X: HW EFUSE
[    7.473906] RTL871X: hal_com_config_channel_plan chplan:0x20
[    7.474299] [SNDCODEC][sunxi_card_dev_probe][800]:jack_enable missing, use default enable jack
[    7.489991] [SNDCODEC][sunxi_card_dev_probe][810]:hp_detect_case missing, use default hp_detect_low
[    7.502473] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
[    7.503121] random: crng init done
[    7.517933] oprofile: hardware counters not available
[    7.523639] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
[    7.531022] oprofile: using timer interrupt.
[    7.536350] NET: Registered protocol family 10
[    7.560511] Segment Routing with IPv6
[    7.568630] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.607506] NET: Registered protocol family 17
[    7.612760] NET: Registered protocol family 15
[    7.617713] can: controller area network core (rev 20170425 abi 9)
[    7.624724] NET: Registered protocol family 29
[    7.629679] can: raw protocol (rev 20170425)
[    7.634460] can: broadcast manager protocol (rev 20170425 t)
[    7.640765] can: netlink gateway (rev 20190810) max_hops=1
[    7.649116] Registering SWP/SWPB emulation handler
[    7.662862] Loading compiled-in X.509 certificates
[    7.695297] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    7.733144] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    8.154121] i2c i2c0: i2c0 supply twi not found, using dummy regulator
[    8.174387] i2c i2c0: probe success
[    8.187044] i2c i2c1: i2c1 supply twi not found, using dummy regulator
[    8.215037] i2c i2c1: probe success
[    8.227442] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    8.251605] i2c i2c2: probe success
[    8.264212] i2c i2c3: i2c3 supply twi not found, using dummy regulator
[    8.288442] i2c i2c3: probe success
[    8.395978] get ehci0-controller wakeup-source is fail.
[    8.402110] sunxi ehci0-controller don't init wakeup source
[    8.408367] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0e80d28, 0x:c8a88000, irq_no:38
[    8.420382] [sunxi-ehci0]: Not init ehci0
[    8.429162] get ohci0-controller wakeup-source is fail.
[    8.438996] sunxi ohci0-controller don't init wakeup source
[    8.445289] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0e80fb8
[    8.454958] [sunxi-ohci0]: Not init ohci0
[    8.459950] get ehci1-controller wakeup-source is fail.
[    8.465953] sunxi ehci1-controller don't init wakeup source
[    8.472224] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0e81248, 0x:c8a91000, irq_no:3a
[    8.488570] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    8.504393] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    8.511723] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    8.521772] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    8.561114] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    8.585543] hub 1-0:1.0: USB hub found
[    8.595949] hub 1-0:1.0: 1 port detected
[    8.624778] get ohci1-controller wakeup-source is fail.
[    8.632365] sunxi ohci1-controller don't init wakeup source
[    8.638627] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0e814d8
[    8.655038] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    8.675240] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    8.682529] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    8.692477] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    8.782032] hub 2-0:1.0: USB hub found
[    8.786448] hub 2-0:1.0: 1 port detected
[    8.816664] get det_vbus is fail, -84
[    8.820776] get id is fail, -84
[    8.849953] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    8.897469] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    8.909063] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    8.911331] clk: Not disabling unused clocks
[    8.918769] cfg80211: failed to load regulatory.db
[    8.923571] ALSA device list:
[    8.932287]   #0: audiocodec
[    8.935568] Warning: unable to open an initial console.
[    8.946674] Freeing unused kernel memory: 3072K
[    9.001270] Kernel init done
[    9.004500] Run /init as init process
Jan  4 09:40:53 T113-s3 syslog.info syslogd started: BusyBox v1.35.0
[    9.608180] ubi0: default fastmap pool size: 25
[    9.613335] ubi0: default fastmap WL pool size: 12
[    9.618708] ubi0: attaching mtd4
[    9.841125] 
[    9.841125] insmod_device_driver
[    9.841125] 
[    9.848064] pdev is null
[    9.850900] device_chose finished 139!
[   10.053159] ubi0: scanning is finished
[   10.077671] ubi0: attached mtd4 (name "usr", size 64 MiB)
[   10.091169] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   10.098905] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   10.106592] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   10.114441] ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
[   10.121190] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   10.129290] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 246415116
[   10.139445] ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 20
[   10.149813] ubi0: background thread "ubi_bgt0d" started, PID 1065
[   10.192615] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   10.312614] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "usr", R/O mode
[   10.321656] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.332793] UBIFS (ubi0:0): FS size: 60440576 bytes (57 MiB, 476 LEBs), journal size 8126464 bytes (7 MiB, 64 LEBs)
[   10.344508] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[   10.351051] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 2B8EFCD5-6F03-4AA5-9676-9CB79708AA78, small LPT model
[   10.382624] ubi1: default fastmap pool size: 20
[   10.387712] ubi1: default fastmap WL pool size: 10
[   10.393140] ubi1: attaching mtd5
[   11.274481] ubi1: scanning is finished
[   11.311374] ubi1: attached mtd5 (name "app", size 53 MiB)
[   11.317444] ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   11.325285] ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   11.335621] ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
[   11.343552] ubi1: good PEBs: 431, bad PEBs: 0, corrupted PEBs: 0
[   11.350310] ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
[   11.358463] ubi1: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1565070343
[   11.368724] ubi1: available PEBs: 0, total reserved PEBs: 431, PEBs reserved for bad PEB handling: 20
[   11.379102] ubi1: background thread "ubi_bgt1d" started, PID 1071
[   11.402831] UBIFS (ubi1:0): Mounting in unauthenticated mode
[   11.412721] UBIFS (ubi1:0): background thread "ubifs_bgt1_0" started, PID 1074
[   11.478528] UBIFS (ubi1:0): recovery needed
[   11.592788] UBIFS (ubi1:0): recovery completed
[   11.598115] UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "root"
[   11.606273] UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   11.617411] UBIFS (ubi1:0): FS size: 50028544 bytes (47 MiB, 394 LEBs), journal size 6729728 bytes (6 MiB, 53 LEBs)
[   11.629128] UBIFS (ubi1:0): reserved for root: 0 bytes (0 KiB)
[   11.635685] UBIFS (ubi1:0): media format: w4/r0 (latest is w5/r0), UUID 84CF5461-96A1-4064-8B28-B70DF8ED672A, small LPT model
Jan  4 09:40:55 T113-s3 daemon.info nit: starting pid 1075, tty '/dev/ttyS0': '/bin/login -f root'
Jan  4 09:40:55 T113-s3 auth.info login[1075]: root login on 'ttyS0'

#2 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-09-08 21:00:07

richard.zhou 说:

你好,按照你的修改,但是第二个CPU核没有起来。
我想在这个CPU上移植OpenWRT,目前就差第二个核没启动了

请 贴一下 启动log

#3 Re: 全志 SOC » T113-S3使用主线为啥就这么难呢?SPL跑起来了死活进不去uboot » 2022-07-19 08:43:19

[103]spinand UBOOT_START_BLK_NUM 1 UBOOT_LAST_BLK_NUM 1
[108]block from 1 to 1
[111]oob_buf[0] = 0
[112]spi nand block 1 is bad
[115]Can't find a good Boot1 copy in spi nand.

你把 U-boot 写到哪儿了?
这可是从第一个block开始读的

#4 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-11 08:37:23

@liefyuan

liefyuan@ubuntu:~/samba-share$ xfel ddr t113-s3
Initial ddr controller succeeded
liefyuan@ubuntu:~/samba-share$ sleep 1
liefyuan@ubuntu:~/samba-share$ xfel write 0x43000000 u-boot.bin
usb bulk send error
liefyuan@ubuntu:~/samba-share$ xfel exec 0x43000000
usb bulk send error

xfel 看起来没有正常工作

#5 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-08 09:55:14

@liefyuan

xfel版本
xfel(v1.2.6)

像spi-nand没擦除干净

xfel spinand erase 0 0x1000000

擦除一下

执行以下代码

xfel ddr t113-s3
sleep 1
xfel write 0x43000000 u-boot.bin
xfel exec 0x43000000

看能运行吗?

#6 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-06 15:52:03

@liefyuan
我用的型号是W25N01GVZE
可能兆易与华邦的不兼容

#7 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-07-05 22:12:25

@liefyuan
spi nand 是什么型号?

是否是这样写入的?
xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin

#8 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-29 21:37:34

liefyuan 说:

大佬,你好,我在你的Gitee的仓库里面看到了:https://gitee.com/weiwei382-163-com/nand_spl,发现他只能编译nand版本的spl,编译mmc和spinor版本的spl就报错,所以就很好奇大佬您这份spl(boot0)的源码是基于哪一份源码的基础上面改的呢?

好像是这个
https://debugdump.com/topic/1247/t113-tina-sdk-longan-sdk-%E5%BC%80%E5%8F%91%E8%B5%84%E6%96%99%E4%B8%8B%E8%BD%BD/13?lang=zh-CN
时间一长忘了

#9 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-14 23:44:20

u-boot-t113,linux-t113-5.4 已放到gitee
https://gitee.com/weiwei382-163-com/t113-s3-u-boot.git
https://gitee.com/weiwei382-163-com/linux-t113-5.4.git
“仓库公开申请已提交审核中,我们将在 2 个工作日内为你处理。”

#10 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-08 15:24:57

@笃学
可以用如下脚本试一下

file_dir=../rootfs/
partation_size=119
PEB_size=131072
good_PEBs=$((partation_size*1024*1024/PEB_size))
reserved_for_bad_PEB=20
available_PEBs=$((good_PEBs-reserved_for_bad_PEB))
LEB_size=126976
Vol_used_size=16
FS_size=$(((available_PEBs-Vol_used_size)*LEB_size/1024/1024))
mkfs.ubifs -F -d $file_dir -o ./ubi_tmp.img -m 2048 -e $LEB_size -c $available_PEBs
vol_name=$(echo $file_dir | awk -F '/' '{print $2}')
sed -i "s/vol_size=.*MiB/vol_size=${FS_size}MiB/g" ubinize.cfg
sed -i "s/vol_name=.*/vol_name=${vol_name}/g" ubinize.cfg
file_name="${vol_name}_ubi.img"
ubinize -v -o $file_name -p $PEB_size -m 2048 -s 2048 -O 2048 ubinize.cfg
echo "vol_size=${FS_size}MiB"
rm ./ubi_tmp.img 

ubinize.cfg的内容

[ubifs]
mode=ubi
image=./ubi_tmp.img
vol_id=0
vol_size=110MiB
vol_type=dynamic
vol_name=rootfs
vol_flags=autoresize

然后用xfel下载到spi-nand分区

#11 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-07 19:55:41

@笃学
应该是 rootfs 系统错误,需要重新格式化 ubifs

重新写入 rootfs
用sd卡启动起来,然后

flash_erase /dev/mtd5 0 0
ubiformat -y /dev/mtd5
ubiattach /dev/ubi_ctrl -m5
ubimkvol /dev/ubi0 -N rootfs -m

#12 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-06-03 23:27:58

@笃学

看了一下应该是修改
mtd/awnand/spinand/physic/id.c
添加

struct aw_spinand_phy_info winbond[] = {
    {
        .Model      = "W25N01GVZEIG",
        .NandID     = {0xef, 0xaa, 0x21, 0xff, 0xff, 0xff, 0xff, 0xff},
        .DieCntPerChip  = 1,
        .SectCntPerPage = 4,
        .PageCntPerBlk  = 64,
        .BlkCntPerDie   = 1024,
        .OobSizePerPage = 64,
        .OperationOpt   = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM |
            SPINAND_DUAL_READ,
        .MaxEraseTimes  = 65000,
        .EccType    = BIT2_LIMIT1_ERR2,
        .EccProtectedType = SIZE16_OFF4_LEN4_OFF8,
        .BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE,
    },
    {
        .Model      = "W25N02KVZEIR",
        .NandID     = {0xef, 0xaa, 0x22, 0xff, 0xff, 0xff, 0xff, 0xff},
        .DieCntPerChip  = 1,
        .SectCntPerPage = 4,
        .PageCntPerBlk  = 64,
        .BlkCntPerDie   = 2048,
        .OobSizePerPage = 64,
        .OperationOpt   = SPINAND_QUAD_READ | SPINAND_QUAD_PROGRAM |
            SPINAND_DUAL_READ,
        .MaxEraseTimes  = 65000,
        .EccType    = BIT2_LIMIT1_ERR2,
        .EccProtectedType = SIZE16_OFF4_LEN4_OFF8,
        .BadBlockFlag = BAD_BLK_FLAG_FRIST_1_PAGE,
    },
};

应该就可以
不过我没有用全志的驱动

#13 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-31 10:16:19

sy373466062 说:

@Cadence
imx6ul的CoreMark大概多少分?

没有imx6ul的板子

#14 Re: 全志 SOC » 内核启动出错了??? » 2022-05-31 10:11:20

[root@Risc-v /root]# . /etc/wpa_action.sh 
[  390.701999] ieee80211_do_open: vif_type=2, p2p=0, ch=3, addr=38:4b:10:8c:93:be
[  390.711153] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0, addr=38:4b:10:8c:93:be
[  390.744836] [AP_WRN] BSS_CHANGED_ASSOC but driver is unjoined.
Successfully initialized wpa_supplicant
[  394.871175] ieee80211_do_open: vif_type=10, p2p=0, ch=3, addr=38:4b:10:8c:93:bf
[  394.880868] [STA] !!!xradio_vif_setup: id=2, type=10, p2p=0, addr=38:4b:10:8c:93:bf
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
[  397.362433] [STA_WRN] Freq 2437 (wsm ch: 6) prev: 3.
[  397.368286] wlan0: authenticate with 04:5f:a7:5d:59:7c (try 1)
[  397.385903] [STA_WRN] [HT40][xradio_join_work][bss_ht_info]:
[  397.385903] [primary_chan  :0x00000006]
[  397.385903] [ht_param      :0x00000000]
[  397.385903] [operation_mode:0x00000006]
[  397.385903] [stbc_param    :0x00000000]
[  397.385903] [basic_set[0]  :0x00000000]
[  397.415570] [STA_WRN] [HT40][xradio_join_work][PhyModeCfg:0x0007]
[  397.415570] [ModemFlags    :0x00000007]
[  397.415570] [ChWidthCfg    :0x00000000]
[  397.415570] [PriChCfg      :0x00000000]
[  397.415570] [BandCfg       :0x00000000]
[  397.415570] [STBC_Enable   :0x00000000]
[  397.415570] [PreambleCfg   :0x00000000]
[  397.415570] [SGI_Enable    :0x00000000]
[  397.415570] GF_Enable      :0x00000000]
[  397.495077] wlan0: authenticated
[  397.507169] [STA_WRN] Freq 2422 (wsm ch: 3) prev: 6.
[  397.539531] [STA_WRN] Freq 2437 (wsm ch: 6) prev: 3.
[  397.546557] wlan0: associate with 04:5f:a7:5d:59:7c (try 1)
[  397.564654] wlan0: RX AssocResp from 04:5f:a7:5d:59:7c (capab=0x411 status=0 aid=4)
[  397.573715] wlan0: associated
[  397.606013] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[  397.611341] [AP_WRN] [HT40][xradio_bss_info_changed][ht_prot:0x0000000a][HtProtMode:0x0002][Green:0x0004]
[  397.621492] [AP_WRN] [HT40][xradio_bss_info_changed][PhyModeCfg:0x4007]
[  397.621492] [ModemFlags    :0x00000007]
[  397.621492] [ChWidthCfg    :0x00000000]
[  397.621492] [PriChCfg      :0x00000000]
[  397.621492] [BandCfg       :0x00000000]
[  397.621492] [STBC_Enable   :0x00000000]
[  397.621492] [PreambleCfg   :0x00000000]
[  397.621492] [SGI_Enable    :0x00000001]
[  397.621492] [GF_Enable     :0x00000000]
[  397.773161] [TXRX_WRN] drop=1759, fctl=0x00d0.
[  397.821780] [TXRX_WRN] [RX] IF=0, No key found.
[  399.356718] [TXRX_WRN] [RX] IF=0, No key found.
[  400.818709] [WSM_WRN] Issue unjoin command (RX).
[  400.827568] wlan0: deauthenticated from 04:5f:a7:5d:59:7c (Reason: 15)
[  400.941369] [AP_WRN] BSS_CHANGED_ASSOC but driver is unjoined.
udhcpc: broadcasting discover
[  412.222435] wlan0: authenticate with 04:5f:a7:5d:59:7c (try 1)
[  412.229914] [STA_WRN] [HT40][xradio_join_work][bss_ht_info]:
[  412.229914] [primary_chan  :0x00000006]
[  412.229914] [ht_param      :0x00000000]
[  412.229914] [operation_mode:0x00000006]
[  412.229914] [stbc_param    :0x00000000]
[  412.229914] [basic_set[0]  :0x00000000]
[  412.259745] [STA_WRN] [HT40][xradio_join_work][PhyModeCfg:0x0007]
[  412.259745] [ModemFlags    :0x00000007]
[  412.259745] [ChWidthCfg    :0x00000000]
[  412.259745] [PriChCfg      :0x00000000]
[  412.259745] [BandCfg       :0x00000000]
[  412.259745] [STBC_Enable   :0x00000000]
[  412.259745] [PreambleCfg   :0x00000000]
[  412.259745] [SGI_Enable    :0x00000000]
[  412.259745] GF_Enable      :0x00000000]
[  412.361704] wlan0: authenticated
[  412.379520] wlan0: associate with 04:5f:a7:5d:59:7c (try 1)
[  412.394845] wlan0: RX AssocResp from 04:5f:a7:5d:59:7c (capab=0x411 status=0 aid=4)
[  412.404104] wlan0: associated
[  412.437419] [AP_WRN] [STA] ASSOC HTCAP 11N 58
[  412.442757] [AP_WRN] [HT40][xradio_bss_info_changed][ht_prot:0x0000000a][HtProtMode:0x0002][Green:0x0004]
[  412.444788] [AP_WRN] [HT40][xradio_bss_info_changed][PhyModeCfg:0x4007]
[  412.444788] [ModemFlags    :0x00000007]
[  412.444788] [ChWidthCfg    :0x00000000]
[  412.444788] [PriChCfg      :0x00000000]
[  412.444788] [BandCfg       :0x00000000]
[  412.444788] [STBC_Enable   :0x00000000]
[  412.444788] [PreambleCfg   :0x00000000]
[  412.444788] [SGI_Enable    :0x00000001]
[  412.444788] [GF_Enable     :0x00000000]
[  412.608400] [TXRX_WRN] drop=1759, fctl=0x00d0.
[  412.710015] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.10.14, server 192.168.10.1
udhcpc: lease of 192.168.10.14 obtained from 192.168.10.1, lease time 86400
/usr/share/udhcpc/default.script: Adding DNS 192.168.10.1
/usr/share/udhcpc/default.script: Adding DNS 192.168.1.1

[root@Risc-v /root]# ifconfig
wlan0     Link encap:Ethernet  HWaddr 38:4B:10:8C:93:BE  
          inet addr:192.168.10.14  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::3a4b:10ff:fe8c:93be/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31 errors:0 dropped:0 overruns:0 frame:0
          TX packets:15 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:11680 (11.4 KiB)  TX bytes:2206 (2.1 KiB)

[root@Risc-v /root]# ping www.baido.com
PING www.baido.com (35.214.154.215): 56 data bytes
64 bytes from 35.214.154.215: seq=0 ttl=109 time=407.417 ms
64 bytes from 35.214.154.215: seq=1 ttl=109 time=428.640 ms
64 bytes from 35.214.154.215: seq=2 ttl=109 time=346.609 ms
64 bytes from 35.214.154.215: seq=3 ttl=109 time=378.123 ms
64 bytes from 35.214.154.215: seq=4 ttl=109 time=390.404 ms
^C
--- www.baido.com ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 346.609/390.238/428.640 ms
[root@Risc-v /root]# 

#15 Re: 全志 SOC » 内核启动出错了??? » 2022-05-31 10:07:44

[root@Risc-v /root]# insmod xr829.ko 
[   83.964827] ======== XRADIO WIFI OPEN ========
[   83.975378] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[   83.982851] [XRADIO] Allocated hw_priv @ 00000000a8ad29d9
[   83.994821] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[   84.012084] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[   84.219910] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   84.231593] [XRADIO] Detect SDIO card 1
[   84.247562] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[   84.268621] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   84.295370] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   84.311814] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   84.343612] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   84.356232] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   84.369498] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[   84.387733] mmc1: new high speed SDIO card at address 0001
[   84.397876] [SBUS] XRadio Device:sdio clk=50000000
[   84.410794] [XRADIO] XRADIO_HW_REV 1.0 detected.
[   84.503338] [XRADIO] xradio_update_dpllctrl: DPLL_CTRL Sync=0x01400000.
[   84.715051] [XRADIO] Bootloader complete
[   85.644747] [XRADIO] Firmware completed.
[   85.655319] [WSM] Firmware Label:XR_C09.08.52.64_DBG_02.100 2GHZ HT40 Jan  3 2020 13:14:37
[   85.675064] [XRADIO] Firmware Startup Done.
[   85.682035] [XRADIO_WRN] enable Multi-Rx!
[   85.707503] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'

#16 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-22 20:43:52

v3s 的 coremark.exe

root:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 5 (v7l)
BogoMIPS        : 48.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x0
CPU part        : 0xc07
CPU revision    : 5

Hardware        : Allwinner sun8i Family
Revision        : 0000
Serial          : 0000000000000000

root:~# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 14050
Total time (secs): 14.050000
Iterations/Sec   : 2846.975089
Iterations       : 40000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2846.975089 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

#17 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-16 21:51:44

git clone https://hub.fastgit.xyz/wxWidgets/wxWidgets
cd wxWidgets/
apt-get install libgtk-3-dev build-essential checkinstall
mkdir gtk-build
cd gtk-build/
sed 's/github.com/hub.fastgit.xyz/g' .gitmodules -i
git submodule update --init
cd gtk-build/
../configure --disable-shared --enable-unicode
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for toolkit... gtk
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++ compiler... no
checking whether we are using the Sun C++ compiler... no
checking for ar... ar
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for langinfo.h... yes
checking for wchar.h... yes
checking for sys/select.h... yes
checking for cxxabi.h... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking size of short... 2
checking size of void *... 8
checking size of int... 4
checking size of long... 8
checking size of size_t... 8
checking size of long long... 8
checking size of wchar_t... 4
checking for va_copy... yes
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking if large file support is available... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether byte ordering is bigendian... no
checking for std::wstring in <string>... yes
checking for std::istream... yes
checking for std::ostream... yes
checking for type_traits... yes
checking for __sync_xxx_and_fetch builtins... yes
checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
checking for cos... no
checking for floor... no
checking if floating point functions link without -lm... no
checking for sin... yes
checking for ceil... yes
checking if floating point functions link with -lm... yes
checking for strtoull... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for LIBPCRE... checking whether pcre submodule exists... yes
checking for zlib.h >= 1.1.4... yes
checking for zlib.h... (cached) yes
checking for deflate in -lz... yes
checking for png.h > 0.90... yes
checking for png.h... (cached) yes
checking for png_sig_cmp in -lpng... yes
checking for jpeglib.h... no
configure: WARNING: system jpeg library not found, will use built-in instead
checking whether jpeglib.h file exists... yes
checking for jbg_dec_init in -ljbig... no
checking for LIBTIFF... not found via pkg-config
checking for tiffio.h... no
configure: WARNING: system tiff library not found, will use built-in instead
checking whether tiff.h file exists... yes
checking for expat.h... yes
checking if expat.h is valid C++ header... yes
checking for XML_ParserCreate in -lexpat... yes
checking for LIBCURL... yes
checking for GTK+ version...
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GTK+ - version >= 3.0.0... yes (version 3.24.5)
checking for GDK Wayland backend... yes
checking for X11/Xlib.h... yes
checking for X11/XKBlib.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for Xxf86vm... yes
checking for X11/extensions/xf86vmode.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for SM... yes
checking for OpenGL headers... found in /usr/include
checking for GL/gl.h... yes
checking for GL/glu.h... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GL... yes
checking for pkg-config... (cached) /usr/bin/pkg-config
checking for GLU... yes
checking for EGL... yes
checking for WAYLAND_EGL... yes
checking for ssize_t... yes
checking if size_t is unsigned int... no
checking if size_t is unsigned long... yes
checking if wchar_t is separate type... yes
checking for pw_gecos in struct passwd... yes
checking for wcslen... yes
checking for wcsftime... yes
checking for strnlen... yes
checking for wcsdup... yes
checking for wcsnlen... yes
checking for wcscasecmp... yes
checking for wcsncasecmp... yes
checking for mbstate_t... yes
checking for wcsrtombs... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for vsscanf... yes
checking if vsnprintf declaration is broken... no
checking if snprintf supports positional arguments... yes
checking if vsscanf() declaration is broken... no
checking for putws... no
checking for fputws... yes
checking for wprintf... yes
checking for vswprintf... yes
checking for vswscanf... yes
checking for _vsnwprintf... no
checking for fsync... yes
checking for round... yes
checking for iconv... yes
checking if iconv needs const... no
checking for sigaction... yes
checking for sa_handler type... int
checking for backtrace()... yes
checking for library containing backtrace... none required
checking for __cxa_demangle() in <cxxabi.h>... yes
checking for mkstemp... yes
checking for statfs... yes
checking for statfs declaration... yes
checking for fcntl... yes
checking for setenv... yes
checking for unsetenv... yes
checking for nanosleep... yes
checking for uname... yes
checking for strtok_r... yes
checking for inet_addr... yes
checking for inet_aton... yes
checking for fdopen... yes
checking for sysconf... yes
checking for getpwuid_r... yes
checking for getgrgid_r... yes
checking whether pthreads work with -pthread... yes
checking if more special flags are required for pthreads... no
checking for pthread_setconcurrency... yes
checking for pthread_cleanup_push/pop... yes
checking for sched.h... yes
checking for sched_yield... yes
checking for pthread_attr_getschedpolicy... yes
checking for pthread_attr_setschedparam... yes
checking for sched_get_priority_max... yes
checking for pthread_cancel... yes
checking for pthread_mutex_timedlock... yes
checking for pthread_attr_setstacksize... yes
checking for pthread_mutexattr_t... yes
checking for pthread_mutexattr_settype declaration... yes
checking for abi::__forced_unwind() in <cxxabi.h>... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking how many arguments gethostbyname_r() takes... six
checking how many arguments getservbyname_r() takes... six
checking for dlopen... no
checking for dlopen in -ldl... yes
checking for dladdr... no
checking for dladdr in -ldl... yes
checking whether inotify is usable... yes
checking for LIBSECRET... configure: WARNING: libsecret not found, wxSecretStore won't be available
checking for GSPELL... configure: WARNING: gspell-1 not found, spell checking in wxTextCtrl won't be available
checking for SNDCTL_DSP_SPEED in sys/soundcard.h... yes
checking for GTKPRINT... yes
checking for LIBNOTIFY... checking for LIBNOTIFY... configure: WARNING: libnotify not found, wxNotificationMessage will use generic implementation.
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking for locale_t... yes
checking for sys/epoll.h... yes
checking for gettimeofday... yes
checking whether gettimeofday takes two arguments... yes
checking for timezone variable in <time.h>... timezone
checking for localtime... yes
checking for tm_gmtoff in struct tm... yes
checking for _NL_TIME_FIRST_WEEKDAY in langinfo.h... yes
checking for setpriority... yes
checking for socket... yes
checking what is the type of the third argument of getsockname... socklen_t
checking what is the type of the fifth argument of getsockopt... socklen_t
checking whether we have sockaddr_in6... yes
checking for linux/joystick.h... yes
checking for XTST... yes
checking for PRIVATE_FONTS... yes
checking for python... /usr/bin/python
checking for WEBKIT... configure: WARNING: webkit2gtk not found, falling back to webkitgtk
checking for WEBKIT... configure: WARNING: webkitgtk not found.
configure: WARNING: WebKit not available, disabling wxWebView
checking for CAIRO... yes
checking for cairo_push_group... yes
checking for GST... configure: GStreamer 1.7.2+ not available. Not using GstPlayer and falling back to 1.0
checking for GST... configure: WARNING: GStreamer 1.0 not available, falling back to 0.10
checking for GST... configure: WARNING: GStreamer 0.10 not available
configure: WARNING: GStreamer not available... disabling wxMediaCtrl
checking CXXWARNINGS for gcc -Woverloaded-virtual... -Woverloaded-virtual
checking for a BSD-compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether ln -s works... yes
checking whether make sets $(MAKE)... yes
checking for ar... (cached) ar
checking for strip... strip
checking for nm... nm
checking if make is GNU make... yes
checking for dependency tracking method... gcc
checking whether make sets $(MAKE)... (cached) yes
checking whether catch.hpp file exists... yes
=== configuring in 3rdparty/pcre (/host/eMv/wxWidgets/gtk-build/3rdparty/pcre)
configure: running /bin/bash ../../../3rdparty/pcre/configure '--prefix=/usr/local' --disable-option-checking  '--disable-shared' '--enable-unicode' '--disable-pcre2-8' '--enable-pcre2-32' '--srcdir=../../../3rdparty/pcre' --cache-file=
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for ar... ar
checking the archiver (ar) interface... ar
checking for int64_t... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether ln -s works... yes
checking whether the -Werror option is usable... yes
checking for simple visibility declarations... yes
checking for __attribute__((uninitialized))... no
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking sys/wait.h usability... yes
checking sys/wait.h presence... yes
checking for sys/wait.h... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for bcopy... yes
checking for memfd_create... yes
checking for memmove... yes
checking for mkostemp... yes
checking for secure_getenv... yes
checking for strerror... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for gzopen in -lz... yes
checking bzlib.h usability... no
checking bzlib.h presence... no
checking for bzlib.h... no
checking for libbz2... no
checking whether Intel CET is enabled... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating libpcre2-8.pc
config.status: creating libpcre2-16.pc
config.status: creating libpcre2-32.pc
config.status: creating libpcre2-posix.pc
config.status: creating pcre2-config
config.status: creating src/pcre2.h
config.status: creating src/config.h
config.status: src/config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
config.status: executing script-chmod commands
config.status: executing delete-old-chartables commands

pcre2-10.37 configuration summary:

    Install prefix ..................... : /usr/local
    C preprocessor ..................... : gcc -E
    C compiler ......................... : gcc
    Linker ............................. : /usr/bin/ld -m elf_x86_64
    C preprocessor flags ............... :
    C compiler flags ................... : -O2 -fvisibility=hidden
    Linker flags ....................... :
    Extra libraries .................... :

    Build 8-bit pcre2 library .......... : no
    Build 16-bit pcre2 library ......... : no
    Build 32-bit pcre2 library ......... : yes
    Include debugging code ............. : no
    Enable JIT compiling support ....... : no
    Use SELinux allocator in JIT ....... : no
    Enable Unicode support ............. : yes
    Newline char/sequence .............. : lf
    \R matches only ANYCRLF ............ : no
    \C is disabled ..................... : no
    EBCDIC coding ...................... : no
    EBCDIC code for NL ................. : n/a
    Rebuild char tables ................ : no
    Internal link size ................. : 2
    Nested parentheses limit ........... : 250
    Heap limit ......................... : 20000000 kibibytes
    Match limit ........................ : 10000000
    Match depth limit .................. : MATCH_LIMIT
    Build shared libs .................. : no
    Build static libs .................. : yes
    Use JIT in pcre2grep ............... : no
    Enable callouts in pcre2grep ....... : yes
    Enable fork in pcre2grep callouts .. : yes
    Initial buffer size for pcre2grep .. : 20480
    Maximum buffer size for pcre2grep .. : 1048576
    Link pcre2grep with libz ........... : no
    Link pcre2grep with libbz2 ......... : no
    Link pcre2test with libedit ........ : no
    Link pcre2test with libreadline .... : no
    Valgrind support ................... : no
    Code coverage ...................... : no
    Fuzzer support ..................... : no
    Use %zu and %td .................... : auto

=== configuring in src/tiff (/host/eMv/wxWidgets/gtk-build/src/tiff)
configure: running /bin/bash ../../../src/tiff/configure '--prefix=/usr/local' --disable-option-checking  '--disable-shared' '--enable-unicode' '--disable-jbig' '--disable-libdeflate' '--disable-webp' '--disable-zstd' '--disable-lzma' '--enable-jpeg' '--srcdir=../../../src/tiff' --cache-file=
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether UID '0' is supported by ustar format... yes
checking whether GID '0' is supported by ustar format... yes
checking how to create a ustar tar archive... gnutar
checking whether to enable maintainer-specific portions of Makefiles... no
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking whether make supports the include directive... yes (GNU style)
checking dependency style of gcc... gcc3
checking for C compiler warning flags... -Wall -W
checking whether ln -s works... yes
checking for cmake... /usr/bin/cmake
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether make supports nested variables... (cached) yes
checking for sin in -lm... yes
checking assert.h usability... yes
checking assert.h presence... yes
checking for assert.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking io.h usability... no
checking io.h presence... no
checking for io.h... no
checking search.h usability... yes
checking search.h presence... yes
checking for search.h... yes
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether optarg is declared... yes
checking size of signed int... 4
checking size of unsigned int... 4
checking size of signed long... 8
checking size of unsigned long... 8
checking size of signed long long... 8
checking size of unsigned long long... 8
checking size of unsigned char *... 8
checking size of size_t... 8
checking for signed 8-bit type... signed char
checking for unsigned 8-bit type... unsigned char
checking for signed 16-bit type... signed short
checking for unsigned 16-bit type... unsigned short
checking for signed 32-bit type... signed int
checking for unsigned 32-bit type... unsigned int
checking for signed 64-bit type... signed long
checking for unsigned 64-bit type... unsigned long
checking for 'size_t' format specifier... "%lu"
checking for signed size type... signed long
checking for ptrdiff_t... yes
checking for pointer difference type... ptrdiff_t
checking for mmap... yes
checking for setmode... no
checking for getopt... yes
checking for strcasecmp... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoul... yes
checking for strtoull... yes
checking for lfind... yes
checking native cpu bit order... lsb2msb
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for inflateEnd in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for jpeg_read_scanlines in -ljpeg... no
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking whether we are using the Microsoft C compiler... no
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking OpenGL/gl.h usability... no
checking OpenGL/gl.h presence... no
checking for OpenGL/gl.h... no
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for OpenGL library... -lGL
checking GL/glu.h usability... yes
checking GL/glu.h presence... yes
checking for GL/glu.h... yes
checking OpenGL/glu.h usability... no
checking OpenGL/glu.h presence... no
checking for OpenGL/glu.h... no
checking for OpenGL Utility library... -lGLU
checking for varargs GLU tesselator callback function type... no
checking GL/glut.h usability... no
checking GL/glut.h presence... no
checking for GL/glut.h... no
checking GLUT/glut.h usability... no
checking GLUT/glut.h presence... no
checking for GLUT/glut.h... no
checking for GLUT library... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating build/Makefile
config.status: creating contrib/Makefile
config.status: creating contrib/addtiffo/Makefile
config.status: creating contrib/dbs/Makefile
config.status: creating contrib/dbs/xtiff/Makefile
config.status: creating contrib/iptcutil/Makefile
config.status: creating contrib/mfs/Makefile
config.status: creating contrib/pds/Makefile
config.status: creating contrib/ras/Makefile
config.status: creating contrib/stream/Makefile
config.status: creating contrib/tags/Makefile
config.status: creating contrib/win_dib/Makefile
config.status: creating html/Makefile
config.status: creating html/images/Makefile
config.status: creating html/man/Makefile
config.status: creating libtiff-4.pc
config.status: creating libtiff/Makefile
config.status: creating man/Makefile
config.status: creating port/Makefile
config.status: creating test/Makefile
config.status: creating tools/Makefile
config.status: creating libtiff/tif_config.h
config.status: libtiff/tif_config.h is unchanged
config.status: creating libtiff/tiffconf.h
config.status: libtiff/tiffconf.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Libtiff is now configured for x86_64-pc-linux-gnu

  Installation directory:             /usr/local
  Documentation directory:            ${prefix}/share/doc/tiff-4.2.0
  C compiler:                         gcc -g -O2 -Wall -W
  C++ compiler:                       g++ -g -O2
  Enable runtime linker paths:        no
  Enable linker symbol versioning:    no
  Support Microsoft Document Imaging: yes
  Use win32 IO:                       no

 Support for internal codecs:
  CCITT Group 3 & 4 algorithms:       yes
  Macintosh PackBits algorithm:       yes
  LZW algorithm:                      yes
  ThunderScan 4-bit RLE algorithm:    yes
  NeXT 2-bit RLE algorithm:           yes
  LogLuv high dynamic range encoding: yes

 Support for external codecs:
  ZLIB support:                       yes
  libdeflate support:                 no
  Pixar log-format algorithm:         yes
  JPEG support:                       no
  Old JPEG support:                   no
  JPEG 8/12 bit dual mode:            no
  ISO JBIG support:                   no
  LZMA2 support:                      no
  ZSTD support:                       no
  WEBP support:                       no

  C++ support:                        yes

  OpenGL support:                     no

configure: creating ./config.status
config.status: creating lib/wx/config/gtk3-unicode-static-3.1
config.status: creating lib/wx/config/inplace-gtk3-unicode-static-3.1
config.status: creating utils/ifacecheck/rungccxml.sh
config.status: creating Makefile
config.status: creating samples/html/Makefile
config.status: creating samples/opengl/Makefile
config.status: creating samples/xrc/Makefile
config.status: creating samples/wrapsizer/Makefile
config.status: creating samples/wizard/Makefile
config.status: creating samples/widgets/Makefile
config.status: creating samples/webrequest/Makefile
config.status: creating samples/vscroll/Makefile
config.status: creating samples/validate/Makefile
config.status: creating samples/uiaction/Makefile
config.status: creating samples/typetest/Makefile
config.status: creating samples/treelist/Makefile
config.status: creating samples/treectrl/Makefile
config.status: creating samples/toolbar/Makefile
config.status: creating samples/thread/Makefile
config.status: creating samples/text/Makefile
config.status: creating samples/taskbar/Makefile
config.status: creating samples/taborder/Makefile
config.status: creating samples/svg/Makefile
config.status: creating samples/stc/Makefile
config.status: creating samples/statbar/Makefile
config.status: creating samples/splitter/Makefile
config.status: creating samples/splash/Makefile
config.status: creating samples/sound/Makefile
config.status: creating samples/sockets/Makefile
config.status: creating samples/shaped/Makefile
config.status: creating samples/scroll/Makefile
config.status: creating samples/sashtest/Makefile
config.status: creating samples/richtext/Makefile
config.status: creating samples/ribbon/Makefile
config.status: creating samples/render/Makefile
config.status: creating samples/propgrid/Makefile
config.status: creating samples/printing/Makefile
config.status: creating samples/preferences/Makefile
config.status: creating samples/power/Makefile
config.status: creating samples/popup/Makefile
config.status: creating samples/opengl/pyramid/Makefile
config.status: creating samples/opengl/penguin/Makefile
config.status: creating samples/opengl/isosurf/Makefile
config.status: creating samples/opengl/cube/Makefile
config.status: creating samples/notebook/Makefile
config.status: creating samples/minimal/Makefile
config.status: creating samples/menu/Makefile
config.status: creating samples/mdi/Makefile
config.status: creating samples/listctrl/Makefile
config.status: creating samples/layout/Makefile
config.status: creating samples/keyboard/Makefile
config.status: creating samples/joytest/Makefile
config.status: creating samples/ipc/Makefile
config.status: creating samples/internat/Makefile
config.status: creating samples/image/Makefile
config.status: creating samples/html/zip/Makefile
config.status: creating samples/html/widget/Makefile
config.status: creating samples/html/virtual/Makefile
config.status: creating samples/html/test/Makefile
config.status: creating samples/html/printing/Makefile
config.status: creating samples/html/helpview/Makefile
config.status: creating samples/html/help/Makefile
config.status: creating samples/html/about/Makefile
config.status: creating samples/htlbox/Makefile
config.status: creating samples/help/Makefile
config.status: creating samples/grid/Makefile
config.status: creating samples/fswatcher/Makefile
config.status: creating samples/font/Makefile
config.status: creating samples/exec/Makefile
config.status: creating samples/except/Makefile
config.status: creating samples/event/Makefile
config.status: creating samples/erase/Makefile
config.status: creating samples/drawing/Makefile
config.status: creating samples/dragimag/Makefile
config.status: creating samples/docview/Makefile
config.status: creating samples/dnd/Makefile
config.status: creating samples/display/Makefile
config.status: creating samples/dialup/Makefile
config.status: creating samples/dialogs/Makefile
config.status: creating samples/debugrpt/Makefile
config.status: creating samples/dataview/Makefile
config.status: creating samples/console/Makefile
config.status: creating samples/config/Makefile
config.status: creating samples/combo/Makefile
config.status: creating samples/collpane/Makefile
config.status: creating samples/clipboard/Makefile
config.status: creating samples/caret/Makefile
config.status: creating samples/calendar/Makefile
config.status: creating samples/aui/Makefile
config.status: creating samples/artprov/Makefile
config.status: creating samples/archive/Makefile
config.status: creating samples/animate/Makefile
config.status: creating samples/Makefile
config.status: creating demos/bombs/Makefile
config.status: creating demos/forty/Makefile
config.status: creating demos/fractal/Makefile
config.status: creating demos/life/Makefile
config.status: creating demos/Makefile
config.status: creating demos/poem/Makefile
config.status: creating utils/emulator/Makefile
config.status: creating utils/emulator/src/Makefile
config.status: creating utils/execmon/Makefile
config.status: creating utils/helpview/Makefile
config.status: creating utils/helpview/src/Makefile
config.status: creating utils/hhp2cached/Makefile
config.status: creating utils/ifacecheck/src/Makefile
config.status: creating utils/Makefile
config.status: creating utils/screenshotgen/Makefile
config.status: creating utils/screenshotgen/src/Makefile
config.status: creating utils/wxrc/Makefile
config.status: creating tests/benchmarks/Makefile
config.status: creating tests/Makefile
config.status: creating lib/wx/include/gtk3-unicode-static-3.1/wx/setup.h
config.status: lib/wx/include/gtk3-unicode-static-3.1/wx/setup.h is unchanged
config.status: executing wx-config commands

Configured wxWidgets 3.1.7 for `x86_64-pc-linux-gnu'

  Which GUI toolkit should wxWidgets use?                 GTK+ 3 with support for GTK+ printing
  Should wxWidgets be compiled into single library?       no
  Should wxWidgets be linked as a shared library?         no
  Should wxWidgets support Unicode?                       yes (using wchar_t)
  What level of wxWidgets compatibility should be enabled?
                                       wxWidgets 2.8      no
                                       wxWidgets 3.0      yes
  Which libraries should wxWidgets use?
                                       STL                no
                                       jpeg               builtin
                                       png                sys
                                       regex              builtin
                                       tiff               builtin
                                       lzma               no
                                       zlib               sys
                                       expat              sys
                                       libmspack          no
                                       sdl                no

#18 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-16 20:26:02

-- KiCad install dir: </usr/local>
-- Enabling warning -Wsuggest-override
-- Enabling warning -Wduplicated-branches
-- Enabling warning -Wduplicated-cond
-- Enabling error for -Wvla
-- Enabling warning -Wimplicit-fallthrough
-- Enabling error for -Wreturn-type
-- Enabling warning -Wshadow
-- Enabling warning -Wsign-compare
-- Enabling warning -Wmissing-field-initializers
-- Enabling warning -Wempty-body
-- Enabling warning -Wreorder
-- Disabling warning -Wpsabi
-- Check for installed GLEW -- found
-- Check for installed ZLIB -- found
-- Boost version: 1.67.0
-- Found OpenCASCADE Standard Edition version: 7.7.0
--  ++ OpenCASCADE Standard Edition include directory: /usr/local/include/opencascade
--  ++ OpenCASCADE Standard Edition shared libraries directory: /usr/local/lib
-- pybind11 v2.7.1
-- Found PythonInterp: /usr/bin/python3 (found version "3.7.3")
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3.6")
-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python3/dist-packages
-- Found wxPython Phoenix 4.1.1/gtk3 (wxWidgets 3.1.5)
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find wxWidgets: Found unsuitable version "3.0.4", but required is
  at least "3.1.5" (found
  -L/usr/lib/x86_64-linux-gnu;-pthread;;;-lwx_gtk3u_gl-3.0;-lwx_gtk3u_aui-3.0;-lwx_gtk3u_adv-3.0;-lwx_gtk3u_html-3.0;-lwx_gtk3u_core-3.0;-lwx_baseu_net-3.0;-lwx_baseu-3.0;-lwx_gtk3u_propgrid-3.0;-lwx_baseu_xml-3.0;-lwx_gtk3u_stc-3.0;-lwx_gtk3u_richtext-3.0)
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:376 (_FPHSA_FAILURE_MESSAGE)
  CMakeModules/FindwxWidgets.cmake:947 (find_package_handle_standard_args)
  CMakeLists.txt:888 (find_package)

#19 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-16 20:11:50

Collecting wxPython
  Using cached https://files.pythonhosted.org/packages/b0/4d/80d65c37ee60a479d338d27a2895fb15bbba27a3e6bb5b6d72bb28246e99/wxPython-4.1.1.tar.gz
Requirement already satisfied, skipping upgrade: pillow in /usr/lib/python3/dist-packages (from wxPython) (5.4.1)
Requirement already satisfied, skipping upgrade: six in /usr/lib/python3/dist-packages (from wxPython) (1.12.0)
Requirement already satisfied, skipping upgrade: numpy in /usr/local/lib/python3.7/dist-packages (from wxPython) (1.21.6)
Building wheels for collected packages: wxPython
  Running setup.py bdist_wheel for wxPython ... done
  Stored in directory: /root/.cache/pip/wheels/54/32/da/dc5c828a12bc9a1ca58d5555f1076fd7d2984ae9c0e03eb510
Successfully built wxPython
Installing collected packages: wxPython
Successfully installed wxPython-4.1.1

#21 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-16 16:30:46

-- KiCad install dir: </usr/local>
-- Enabling warning -Wsuggest-override
-- Enabling warning -Wduplicated-branches
-- Enabling warning -Wduplicated-cond
-- Enabling error for -Wvla
-- Enabling warning -Wimplicit-fallthrough
-- Enabling error for -Wreturn-type
-- Enabling warning -Wshadow
-- Enabling warning -Wsign-compare
-- Enabling warning -Wmissing-field-initializers
-- Enabling warning -Wempty-body
-- Enabling warning -Wreorder
-- Disabling warning -Wpsabi
-- Check for installed GLEW -- found
-- Check for installed ZLIB -- found
-- Boost version: 1.67.0
-- Found OpenCASCADE Standard Edition version: 7.7.0
--  ++ OpenCASCADE Standard Edition include directory: /usr/local/include/opencascade
--  ++ OpenCASCADE Standard Edition shared libraries directory: /usr/local/lib
-- pybind11 v2.7.1 
-- Found PythonInterp: /usr/bin/python3 (found version "3.7.3") 
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.7.3", minimum required is "3.6") 
-- Check for installed Python Interpreter -- found
-- Python module install path: lib/python3/dist-packages
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'wx'
CMake Error at CMakeModules/FindwxPython.cmake:56 (message):
  wxPython/Phoenix does not appear to be installed on the system
Call Stack (most recent call first):
  CMakeLists.txt:837 (find_package)

好像是没有 wxPython/Phoenix

#22 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-16 16:10:11

想在UOS上编译安装kicad6.0.5
结果 跟目录 / 容量不够
扩容造成UOS启动进入busybox
做个备忘

cd /host/UOS/
cp root.disk root1.disk
dd if=/dev/zero of=root1.disk bs=1G conv=notrunc oflag=append count=30   扩容增加 30G
losetup -f ----> /dev/loop1
losetup /dev/loop1 root1.disk
losetup -c /dev/loop1
e2fsck -f /dev/loop1
resize2fs -p /dev/loop1
losetup -d /dev/loop1
mv root.disk root2.disk
mv root1.disk root.disk

reboot

#23 Re: 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-14 16:28:46

安装 lisp

apt install clisp -y

执行

root@i9-10920:/data# clisp kicad_sch
WARNING: DEFUN/DEFMACRO(NUMBER): #<PACKAGE COMMON-LISP> is locked
         Ignore the lock and proceed
WARNING: DEFUN/DEFMACRO(LENGTH): #<PACKAGE COMMON-LISP> is locked
         Ignore the lock and proceed
WARNING: DEFUN/DEFMACRO: redefining function LENGTH in /data/eMv/MQ/1.Hardware/kicad_sch, was defined in C
1       PG6          Passive    1       Line    " "        Left   1
10       PF3/CMD          Passive       1       Line    " "        Left   1
100       HPOUTFB          Passive      1       Line    " "        Top   1
101       GPADC0          Passive       1       Line    " "        Top   1
102       TP-X1          Passive        1       Line    " "        Top   1
103       TP-X2          Passive        1       Line    " "        Top   1
104       TP-Y1          Passive        1       Line    " "        Top   1
105       TP-Y2          Passive        1       Line    " "        Top   1
106       NC0          Passive  1       Line    " "        Top   1
107       VCC-TVIN          Passive     1       Line    " "        Top   1
108       TVIN0          Passive        1       Line    " "        Top   1
109       TVIN1          Passive        1       Line    " "        Top   1
11       PF4/D3          Passive        1       Line    " "        Left   1
110       TVIN-VRP          Passive     1       Line    " "        Top   1
111       TVIN-VRN          Passive     1       Line    " "        Top   1
112       USB1-DP          Passive      1       Line    " "        Top   1
113       USB1-DM          Passive      1       Line    " "        Top   1
114       USB0-DM          Passive      1       Line    " "        Top   1
115       USB0-DP          Passive      1       Line    " "        Top   1
116       VDD-CORE0          Passive    1       Line    " "        Top   1
117       VDD-CORE1          Passive    1       Line    " "        Top   1
118       PG1          Passive  1       Line    " "        Top   1
119       PG2          Passive  1       Line    " "        Top   1
12       PF5/D2          Passive        1       Line    " "        Left   1
120       PG0          Passive  1       Line    " "        Top   1
121       PG3          Passive  1       Line    " "        Top   1
122       PG5          Passive  1       Line    " "        Top   1
123       PG4          Passive  1       Line    " "        Top   1
124       PG12          Passive 1       Line    " "        Top   1
125       PG13          Passive 1       Line    " "        Top   1
126       PG14          Passive 1       Line    " "        Top   1
127       PG15          Passive 1       Line    " "        Top   1
128       VCC-PG          Passive       1       Line    " "        Top   1
129       EPAD          Passive 1       Line    " "        Top   1
13       PF6/OWA/IR-RX/PWM5          Passive    1       Line    " "        Left   1
14       PC7/HOLD/D3          Passive   1       Line    " "        Left   1
15       PC6/WP/D0          Passive     1       Line    " "        Left   1
16       PC5/MISO/D1/SEL1          Passive      1       Line    " "        Left   1
17       PC4/MOSI/D2/SEL0          Passive      1       Line    " "        Left   1
18       PC3/SPI0-CS0/SDC2-CMD          Passive 1       Line    " "        Left   1
19       PC2/SPI0-CLK/SDC2-CLK          Passive 1       Line    " "        Left   1
2       PG7          Passive    1       Line    " "        Left   1
20       VCC-PLL          Passive       1       Line    " "        Left   1
21       REFCLK-OUT          Passive    1       Line    " "        Left   1
22       DXOUT          Passive 1       Line    " "        Left   1
23       DXIN          Passive  1       Line    " "        Left   1
24       X32KOUT          Passive       1       Line    " "        Left   1
25       X32KIN          Passive        1       Line    " "        Left   1
26       VCC-RTC          Passive       1       Line    " "        Left   1
27       RESET          Passive 1       Line    " "        Left   1
28       LDOA-OUT          Passive      1       Line    " "        Left   1
29       LDO-IN          Passive        1       Line    " "        Left   1
3       PG8          Passive    1       Line    " "        Left   1
30       LDOB-OUT          Passive      1       Line    " "        Left   1
31       PE13          Passive  1       Line    " "        Left   1
32       PE12          Passive  1       Line    " "        Left   1
33       PE3          Passive   1       Line    " "        Bottom   1
34       VCC-PE          Passive        1       Line    " "        Bottom   1
35       PE2          Passive   1       Line    " "        Bottom   1
36       PE11          Passive  1       Line    " "        Bottom   1
37       PE10          Passive  1       Line    " "        Bottom   1
38       PE9          Passive   1       Line    " "        Bottom   1
39       PE8          Passive   1       Line    " "        Bottom   1
4       PG9          Passive    1       Line    " "        Left   1
40       PE7          Passive   1       Line    " "        Bottom   1
41       PE6          Passive   1       Line    " "        Bottom   1
42       PE5          Passive   1       Line    " "        Bottom   1
43       PE4          Passive   1       Line    " "        Bottom   1
44       PE0          Passive   1       Line    " "        Bottom   1
45       PE1          Passive   1       Line    " "        Bottom   1
46       VDD-SYS0          Passive      1       Line    " "        Bottom   1
47       DZQ          Passive   1       Line    " "        Bottom   1
48       VCC-DRAM0          Passive     1       Line    " "        Bottom   1
49       VCC-DRAM1          Passive     1       Line    " "        Bottom   1
5       PG10          Passive   1       Line    " "        Left   1
50       VDD18-DRAM          Passive    1       Line    " "        Bottom   1
51       VDD-SYS1          Passive      1       Line    " "        Bottom   1
52       PD22/OWA/PWM7          Passive 1       Line    " "        Bottom   1
53       PD21/VSYNC          Passive    1       Line    " "        Bottom   1
54       PD20/HSYNC          Passive    1       Line    " "        Bottom   1
55       PD0/D2/V0P/D0P          Passive        1       Line    " "        Bottom   1
56       PD1/D3/V0N/D0N          Passive        1       Line    " "        Bottom   1
57       PD2/D4/V1P/D1P          Passive        1       Line    " "        Bottom   1
58       PD3/D5/V1N/D1N          Passive        1       Line    " "        Bottom   1
59       PD4/D6/V2P/CKP          Passive        1       Line    " "        Bottom   1
6       PG11          Passive   1       Line    " "        Left   1
60       PD5/D7/V2N/CKN          Passive        1       Line    " "        Bottom   1
61       PD6/D10/CKP/D2P          Passive       1       Line    " "        Bottom   1
62       PD7/D11/CKN/D2N          Passive       1       Line    " "        Bottom   1
63       PD8/D12/V3P/D3P          Passive       1       Line    " "        Bottom   1
64       PD9/D13/V3N/D3N          Passive       1       Line    " "        Bottom   1
65       LVDS1.8          Passive       1       Line    " "        Right   1
66       VCC-PD          Passive        1       Line    " "        Right   1
67       D14/PD10          Passive      1       Line    " "        Right   1
68       D15/PD11          Passive      1       Line    " "        Right   1
69       D19/PD13          Passive      1       Line    " "        Right   1
7       PF0/D1          Passive 1       Line    " "        Left   1
70       D18/PD12          Passive      1       Line    " "        Right   1
71       D20/PD14          Passive      1       Line    " "        Right   1
72       D21/PD15          Passive      1       Line    " "        Right   1
73       D22/PD16          Passive      1       Line    " "        Right   1
74       D23/PD17          Passive      1       Line    " "        Right   1
75       CLK/PD18          Passive      1       Line    " "        Right   1
76       DE/PD19          Passive       1       Line    " "        Right   1
77       VCC-TVOUT          Passive     1       Line    " "        Right   1
78       TVOUT0          Passive        1       Line    " "        Right   1
79       PB7          Passive   1       Line    " "        Right   1
8       PF1/D0          Passive 1       Line    " "        Left   1
80       PB6          Passive   1       Line    " "        Right   1
81       VDD-SYS2          Passive      1       Line    " "        Right   1
82       PB5          Passive   1       Line    " "        Right   1
83       VCC-IO          Passive        1       Line    " "        Right   1
84       PB4          Passive   1       Line    " "        Right   1
85       PB3          Passive   1       Line    " "        Right   1
86       PB2          Passive   1       Line    " "        Right   1
87       MICIN3P          Passive       1       Line    " "        Right   1
88       MICIN3N          Passive       1       Line    " "        Right   1
89       AVCC          Passive  1       Line    " "        Right   1
9       PF2/CLK          Passive        1       Line    " "        Left   1
90       VRA2          Passive  1       Line    " "        Right   1
91       AGND          Passive  1       Line    " "        Right   1
92       VRA1          Passive  1       Line    " "        Right   1
93       FMINR          Passive 1       Line    " "        Right   1
94       FMINL          Passive 1       Line    " "        Right   1
95       LINEINR          Passive       1       Line    " "        Right   1
96       LINEINL          Passive       1       Line    " "        Right   1
97       HPVCC          Passive 1       Line    " "        Top   1
98       HPOUTR          Passive        1       Line    " "        Top   1
99       HPOUTL          Passive        1       Line    " "        Top   1

clisp ./kicad_sch > orcad

转换成 orcad 元件库

#24 全志 SOC » Kicad 的 sch 文件是 lisp吗? » 2022-05-14 16:27:28

Cadence
回复: 9
(defun size(s1 s2) 0)
(defun font(f) 0)
(defun effects(f) 0)
(defun number(a1 a2) a1)
(defun name(a1 a2) a1)
#| (defun at(a1 a2 a3) (princ (ceiling (/ a1 2.54))) (princ " ") (princ (ceiling (/ a2 2.54))) (princ " ") (princ a3) (princ " ")) |#
(defun at(a1 a2 a3) a3)
(defun length(f) 0)
(defun rotate(r)
    (if (= r 0) (setq ro "Left"))
    (if (= r 270) (setq ro "Top"))
    (if (= r 180) (setq ro "Right"))
    (if (= r 90) (setq ro "Bottom"))
    ro
)
;(defun pin(a1 a2 a3 a4 a5 a6) (princ a6) (princ " ") (write-line a5))
(defun pin(a1 a2 a3 a4 a5 a6) (format t "~A       ~A          Passive   1       Line    ~S         ~A   1~%" a6 a5 " " (rotate a3)))
(defvar passive 0)
(defvar line 0)

(pin passive line (at -7.62 -7.62 0) (length 7.62)
          (name "PG6" (effects (font (size 1.27 1.27))))
          (number "1" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -33.02 0) (length 7.62)
          (name "PF3/CMD" (effects (font (size 1.27 1.27))))
          (number "10" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 104.14 7.62 270) (length 7.62)
          (name "HPOUTFB" (effects (font (size 1.27 1.27))))
          (number "100" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 91.44 7.62 270) (length 7.62)
          (name "GPADC0" (effects (font (size 1.27 1.27))))
          (number "101" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 88.9 7.62 270) (length 7.62)
          (name "TP-X1" (effects (font (size 1.27 1.27))))
          (number "102" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 86.36 7.62 270) (length 7.62)
          (name "TP-X2" (effects (font (size 1.27 1.27))))
          (number "103" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 83.82 7.62 270) (length 7.62)
          (name "TP-Y1" (effects (font (size 1.27 1.27))))
          (number "104" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 81.28 7.62 270) (length 7.62)
          (name "TP-Y2" (effects (font (size 1.27 1.27))))
          (number "105" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 76.2 7.62 270) (length 7.62)
          (name "NC0" (effects (font (size 1.27 1.27))))
          (number "106" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 73.66 7.62 270) (length 7.62)
          (name "VCC-TVIN" (effects (font (size 1.27 1.27))))
          (number "107" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 71.12 7.62 270) (length 7.62)
          (name "TVIN0" (effects (font (size 1.27 1.27))))
          (number "108" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 68.58 7.62 270) (length 7.62)
          (name "TVIN1" (effects (font (size 1.27 1.27))))
          (number "109" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -35.56 0) (length 7.62)
          (name "PF4/D3" (effects (font (size 1.27 1.27))))
          (number "11" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 66.04 7.62 270) (length 7.62)
          (name "TVIN-VRP" (effects (font (size 1.27 1.27))))
          (number "110" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 63.5 7.62 270) (length 7.62)
          (name "TVIN-VRN" (effects (font (size 1.27 1.27))))
          (number "111" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 58.42 7.62 270) (length 7.62)
          (name "USB1-DP" (effects (font (size 1.27 1.27))))
          (number "112" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 55.88 7.62 270) (length 7.62)
          (name "USB1-DM" (effects (font (size 1.27 1.27))))
          (number "113" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 53.34 7.62 270) (length 7.62)
          (name "USB0-DM" (effects (font (size 1.27 1.27))))
          (number "114" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 50.8 7.62 270) (length 7.62)
          (name "USB0-DP" (effects (font (size 1.27 1.27))))
          (number "115" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 45.72 7.62 270) (length 7.62)
          (name "VDD-CORE0" (effects (font (size 1.27 1.27))))
          (number "116" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 43.18 7.62 270) (length 7.62)
          (name "VDD-CORE1" (effects (font (size 1.27 1.27))))
          (number "117" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 38.1 7.62 270) (length 7.62)
          (name "PG1" (effects (font (size 1.27 1.27))))
          (number "118" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 35.56 7.62 270) (length 7.62)
          (name "PG2" (effects (font (size 1.27 1.27))))
          (number "119" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -38.1 0) (length 7.62)
          (name "PF5/D2" (effects (font (size 1.27 1.27))))
          (number "12" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 33.02 7.62 270) (length 7.62)
          (name "PG0" (effects (font (size 1.27 1.27))))
          (number "120" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 30.48 7.62 270) (length 7.62)
          (name "PG3" (effects (font (size 1.27 1.27))))
          (number "121" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 27.94 7.62 270) (length 7.62)
          (name "PG5" (effects (font (size 1.27 1.27))))
          (number "122" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 25.4 7.62 270) (length 7.62)
          (name "PG4" (effects (font (size 1.27 1.27))))
          (number "123" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 22.86 7.62 270) (length 7.62)
          (name "PG12" (effects (font (size 1.27 1.27))))
          (number "124" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 20.32 7.62 270) (length 7.62)
          (name "PG13" (effects (font (size 1.27 1.27))))
          (number "125" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 17.78 7.62 270) (length 7.62)
          (name "PG14" (effects (font (size 1.27 1.27))))
          (number "126" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 15.24 7.62 270) (length 7.62)
          (name "PG15" (effects (font (size 1.27 1.27))))
          (number "127" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 12.7 7.62 270) (length 7.62)
          (name "VCC-PG" (effects (font (size 1.27 1.27))))
          (number "128" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 7.62 7.62 270) (length 7.62)
          (name "EPAD" (effects (font (size 1.27 1.27))))
          (number "129" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -40.64 0) (length 7.62)
          (name "PF6/OWA/IR-RX/PWM5" (effects (font (size 1.27 1.27))))
          (number "13" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -45.72 0) (length 7.62)
          (name "PC7/HOLD/D3" (effects (font (size 1.27 1.27))))
          (number "14" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -48.26 0) (length 7.62)
          (name "PC6/WP/D0" (effects (font (size 1.27 1.27))))
          (number "15" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -50.8 0) (length 7.62)
          (name "PC5/MISO/D1/SEL1" (effects (font (size 1.27 1.27))))
          (number "16" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -53.34 0) (length 7.62)
          (name "PC4/MOSI/D2/SEL0" (effects (font (size 1.27 1.27))))
          (number "17" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -55.88 0) (length 7.62)
          (name "PC3/SPI0-CS0/SDC2-CMD" (effects (font (size 1.27 1.27))))
          (number "18" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -58.42 0) (length 7.62)
          (name "PC2/SPI0-CLK/SDC2-CLK" (effects (font (size 1.27 1.27))))
          (number "19" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -10.16 0) (length 7.62)
          (name "PG7" (effects (font (size 1.27 1.27))))
          (number "2" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -66.04 0) (length 7.62)
          (name "VCC-PLL" (effects (font (size 1.27 1.27))))
          (number "20" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -68.58 0) (length 7.62)
          (name "REFCLK-OUT" (effects (font (size 1.27 1.27))))
          (number "21" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -71.12 0) (length 7.62)
          (name "DXOUT" (effects (font (size 1.27 1.27))))
          (number "22" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -73.66 0) (length 7.62)
          (name "DXIN" (effects (font (size 1.27 1.27))))
          (number "23" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -76.2 0) (length 7.62)
          (name "X32KOUT" (effects (font (size 1.27 1.27))))
          (number "24" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -78.74 0) (length 7.62)
          (name "X32KIN" (effects (font (size 1.27 1.27))))
          (number "25" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -81.28 0) (length 7.62)
          (name "VCC-RTC" (effects (font (size 1.27 1.27))))
          (number "26" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -83.82 0) (length 7.62)
          (name "RESET" (effects (font (size 1.27 1.27))))
          (number "27" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -91.44 0) (length 7.62)
          (name "LDOA-OUT" (effects (font (size 1.27 1.27))))
          (number "28" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -93.98 0) (length 7.62)
          (name "LDO-IN" (effects (font (size 1.27 1.27))))
          (number "29" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -12.7 0) (length 7.62)
          (name "PG8" (effects (font (size 1.27 1.27))))
          (number "3" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -96.52 0) (length 7.62)
          (name "LDOB-OUT" (effects (font (size 1.27 1.27))))
          (number "30" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -106.68 0) (length 7.62)
          (name "PE13" (effects (font (size 1.27 1.27))))
          (number "31" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -109.22 0) (length 7.62)
          (name "PE12" (effects (font (size 1.27 1.27))))
          (number "32" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 7.62 -127 90) (length 7.62)
          (name "PE3" (effects (font (size 1.27 1.27))))
          (number "33" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 10.16 -127 90) (length 7.62)
          (name "VCC-PE" (effects (font (size 1.27 1.27))))
          (number "34" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 12.7 -127 90) (length 7.62)
          (name "PE2" (effects (font (size 1.27 1.27))))
          (number "35" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 15.24 -127 90) (length 7.62)
          (name "PE11" (effects (font (size 1.27 1.27))))
          (number "36" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 17.78 -127 90) (length 7.62)
          (name "PE10" (effects (font (size 1.27 1.27))))
          (number "37" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 20.32 -127 90) (length 7.62)
          (name "PE9" (effects (font (size 1.27 1.27))))
          (number "38" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 22.86 -127 90) (length 7.62)
          (name "PE8" (effects (font (size 1.27 1.27))))
          (number "39" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -15.24 0) (length 7.62)
          (name "PG9" (effects (font (size 1.27 1.27))))
          (number "4" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 25.4 -127 90) (length 7.62)
          (name "PE7" (effects (font (size 1.27 1.27))))
          (number "40" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 27.94 -127 90) (length 7.62)
          (name "PE6" (effects (font (size 1.27 1.27))))
          (number "41" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 30.48 -127 90) (length 7.62)
          (name "PE5" (effects (font (size 1.27 1.27))))
          (number "42" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 33.02 -127 90) (length 7.62)
          (name "PE4" (effects (font (size 1.27 1.27))))
          (number "43" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 35.56 -127 90) (length 7.62)
          (name "PE0" (effects (font (size 1.27 1.27))))
          (number "44" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 38.1 -127 90) (length 7.62)
          (name "PE1" (effects (font (size 1.27 1.27))))
          (number "45" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 43.18 -127 90) (length 7.62)
          (name "VDD-SYS0" (effects (font (size 1.27 1.27))))
          (number "46" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 50.8 -127 90) (length 7.62)
          (name "DZQ" (effects (font (size 1.27 1.27))))
          (number "47" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 53.34 -127 90) (length 7.62)
          (name "VCC-DRAM0" (effects (font (size 1.27 1.27))))
          (number "48" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 55.88 -127 90) (length 7.62)
          (name "VCC-DRAM1" (effects (font (size 1.27 1.27))))
          (number "49" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -17.78 0) (length 7.62)
          (name "PG10" (effects (font (size 1.27 1.27))))
          (number "5" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 58.42 -127 90) (length 7.62)
          (name "VDD18-DRAM" (effects (font (size 1.27 1.27))))
          (number "50" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 68.58 -127 90) (length 7.62)
          (name "VDD-SYS1" (effects (font (size 1.27 1.27))))
          (number "51" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 73.66 -127 90) (length 7.62)
          (name "PD22/OWA/PWM7" (effects (font (size 1.27 1.27))))
          (number "52" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 76.2 -127 90) (length 7.62)
          (name "PD21/VSYNC" (effects (font (size 1.27 1.27))))
          (number "53" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 78.74 -127 90) (length 7.62)
          (name "PD20/HSYNC" (effects (font (size 1.27 1.27))))
          (number "54" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 81.28 -127 90) (length 7.62)
          (name "PD0/D2/V0P/D0P" (effects (font (size 1.27 1.27))))
          (number "55" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 83.82 -127 90) (length 7.62)
          (name "PD1/D3/V0N/D0N" (effects (font (size 1.27 1.27))))
          (number "56" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 86.36 -127 90) (length 7.62)
          (name "PD2/D4/V1P/D1P" (effects (font (size 1.27 1.27))))
          (number "57" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 88.9 -127 90) (length 7.62)
          (name "PD3/D5/V1N/D1N" (effects (font (size 1.27 1.27))))
          (number "58" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 91.44 -127 90) (length 7.62)
          (name "PD4/D6/V2P/CKP" (effects (font (size 1.27 1.27))))
          (number "59" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -20.32 0) (length 7.62)
          (name "PG11" (effects (font (size 1.27 1.27))))
          (number "6" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 93.98 -127 90) (length 7.62)
          (name "PD5/D7/V2N/CKN" (effects (font (size 1.27 1.27))))
          (number "60" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 96.52 -127 90) (length 7.62)
          (name "PD6/D10/CKP/D2P" (effects (font (size 1.27 1.27))))
          (number "61" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 99.06 -127 90) (length 7.62)
          (name "PD7/D11/CKN/D2N" (effects (font (size 1.27 1.27))))
          (number "62" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 101.6 -127 90) (length 7.62)
          (name "PD8/D12/V3P/D3P" (effects (font (size 1.27 1.27))))
          (number "63" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 104.14 -127 90) (length 7.62)
          (name "PD9/D13/V3N/D3N" (effects (font (size 1.27 1.27))))
          (number "64" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -109.22 180) (length 7.62)
          (name "LVDS1.8" (effects (font (size 1.27 1.27))))
          (number "65" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -106.68 180) (length 7.62)
          (name "VCC-PD" (effects (font (size 1.27 1.27))))
          (number "66" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -104.14 180) (length 7.62)
          (name "D14/PD10" (effects (font (size 1.27 1.27))))
          (number "67" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -101.6 180) (length 7.62)
          (name "D15/PD11" (effects (font (size 1.27 1.27))))
          (number "68" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -99.06 180) (length 7.62)
          (name "D19/PD13" (effects (font (size 1.27 1.27))))
          (number "69" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -25.4 0) (length 7.62)
          (name "PF0/D1" (effects (font (size 1.27 1.27))))
          (number "7" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -96.52 180) (length 7.62)
          (name "D18/PD12" (effects (font (size 1.27 1.27))))
          (number "70" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -93.98 180) (length 7.62)
          (name "D20/PD14" (effects (font (size 1.27 1.27))))
          (number "71" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -91.44 180) (length 7.62)
          (name "D21/PD15" (effects (font (size 1.27 1.27))))
          (number "72" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -88.9 180) (length 7.62)
          (name "D22/PD16" (effects (font (size 1.27 1.27))))
          (number "73" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -86.36 180) (length 7.62)
          (name "D23/PD17" (effects (font (size 1.27 1.27))))
          (number "74" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -83.82 180) (length 7.62)
          (name "CLK/PD18" (effects (font (size 1.27 1.27))))
          (number "75" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -81.28 180) (length 7.62)
          (name "DE/PD19" (effects (font (size 1.27 1.27))))
          (number "76" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -76.2 180) (length 7.62)
          (name "VCC-TVOUT" (effects (font (size 1.27 1.27))))
          (number "77" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -73.66 180) (length 7.62)
          (name "TVOUT0" (effects (font (size 1.27 1.27))))
          (number "78" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -68.58 180) (length 7.62)
          (name "PB7" (effects (font (size 1.27 1.27))))
          (number "79" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -27.94 0) (length 7.62)
          (name "PF1/D0" (effects (font (size 1.27 1.27))))
          (number "8" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -66.04 180) (length 7.62)
          (name "PB6" (effects (font (size 1.27 1.27))))
          (number "80" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -60.96 180) (length 7.62)
          (name "VDD-SYS2" (effects (font (size 1.27 1.27))))
          (number "81" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -55.88 180) (length 7.62)
          (name "PB5" (effects (font (size 1.27 1.27))))
          (number "82" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -53.34 180) (length 7.62)
          (name "VCC-IO" (effects (font (size 1.27 1.27))))
          (number "83" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -50.8 180) (length 7.62)
          (name "PB4" (effects (font (size 1.27 1.27))))
          (number "84" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -48.26 180) (length 7.62)
          (name "PB3" (effects (font (size 1.27 1.27))))
          (number "85" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -45.72 180) (length 7.62)
          (name "PB2" (effects (font (size 1.27 1.27))))
          (number "86" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -40.64 180) (length 7.62)
          (name "MICIN3P" (effects (font (size 1.27 1.27))))
          (number "87" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -38.1 180) (length 7.62)
          (name "MICIN3N" (effects (font (size 1.27 1.27))))
          (number "88" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -33.02 180) (length 7.62)
          (name "AVCC" (effects (font (size 1.27 1.27))))
          (number "89" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at -7.62 -30.48 0) (length 7.62)
          (name "PF2/CLK" (effects (font (size 1.27 1.27))))
          (number "9" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -30.48 180) (length 7.62)
          (name "VRA2" (effects (font (size 1.27 1.27))))
          (number "90" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -27.94 180) (length 7.62)
          (name "AGND" (effects (font (size 1.27 1.27))))
          (number "91" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -25.4 180) (length 7.62)
          (name "VRA1" (effects (font (size 1.27 1.27))))
          (number "92" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -22.86 180) (length 7.62)
          (name "FMINR" (effects (font (size 1.27 1.27))))
          (number "93" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -20.32 180) (length 7.62)
          (name "FMINL" (effects (font (size 1.27 1.27))))
          (number "94" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -17.78 180) (length 7.62)
          (name "LINEINR" (effects (font (size 1.27 1.27))))
          (number "95" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 124.46 -15.24 180) (length 7.62)
          (name "LINEINL" (effects (font (size 1.27 1.27))))
          (number "96" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 111.76 7.62 270) (length 7.62)
          (name "HPVCC" (effects (font (size 1.27 1.27))))
          (number "97" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 109.22 7.62 270) (length 7.62)
          (name "HPOUTR" (effects (font (size 1.27 1.27))))
          (number "98" (effects (font (size 1.27 1.27))))
        )
        (pin passive line (at 106.68 7.62 270) (length 7.62)
          (name "HPOUTL" (effects (font (size 1.27 1.27))))
          (number "99" (effects (font (size 1.27 1.27))))
        )

#25 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-10 16:20:02

修改 ./.ci/Jenkinsfile-compile

sed -i 's/"beaglebone_blue_default",/"t113_s3_default", "beaglebone_blue_default",/g' ./.ci/Jenkinsfile-compile

修改 Tools/docker_run.sh
第8行

elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*beaglebone.* ]] || [[ $@ =~ .*pilotpi.default ]]; then

改为

elif [[ $@ =~ .*navio2.* ]] || [[ $@ =~ .*raspberry.* ]] || [[ $@ =~ .*beaglebone.* ]] || [[ $@ =~ .*pilotpi.default ]] || [[ $@ =~ .*t113_s3.* ]]; then

建立px4_t113_s3_default

cd boards/px4
mkdir t113_s3
cd t113_s3/
cp -a ../raspberrypi/ ./
cd ../../../

root@i9-10920:/data/Pixhawk/PX4-Autopilot# make px4_t113_s3_default
-- PX4 version: v1.13.0-alpha1-4463-ge080fab8f6
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "3") 
-- PX4 config file: /data/Pixhawk/PX4-Autopilot/boards/px4/t113_s3/default.px4board
-- PLATFORM posix
-- LINUX y
-- TOOLCHAIN arm-linux-gnueabihf
-- ARCHITECTURE cortex-a7
-- ROMFSROOT px4fmu_common
-- TESTING y
-- PX4 config: px4_t113_s3_default
-- PX4 platform: posix
-- PX4 lockstep: disabled
-- cmake build type: RelWithDebInfo
-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
-- Check for working CXX compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++
-- Check for working CXX compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc
-- Check for working C compiler: /opt/tools/Xilinx/Vitis/2019.2/gnu/aarch32/lin/gcc-arm-linux-gnueabi/bin/arm-linux-gnueabihf-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Building for code coverage
-- ccache enabled (export CCACHE_DISABLE=1 to disable)
-- ROMFS: ROMFS/px4fmu_common
-- Configuring done
-- Generating done
-- Build files have been written to: /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default
[0/932] git submodule src/drivers/gps/devices
[9/932] git submodule src/modules/mavlink/mavlink
[10/932] Generating Mavlink development: src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/development.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/standard.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml
Validating /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Parsing /data/Pixhawk/PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/minimal.xml
Merged enum MAV_CMD
Merged enum MAV_CMD
Found 228 MAVLink message types in 4 XML files
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/development
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/standard
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/common
Generating C implementation in directory /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink/minimal
Copying fixed headers for protocol 2.0 to /data/Pixhawk/PX4-Autopilot/build/px4_t113_s3_default/mavlink
[932/932] Linking CXX shared library src/examples/dyn_hello/examples__dyn_hello.px4mod

#26 Re: Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » NUC980 coremark » 2022-05-10 09:11:28

NUC980 启动 log

[root@Nuv980 /root]# dmesg
Booting Linux on physical CPU 0x0
Linux version 4.4.289+ (root@i9-10920) (gcc version 7.5.0 (Linaro GCC 7.5-2019.12) ) #45 PREEMPT Sat May 7 14:37:13 CST 2022
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC980
Memory policy: Data cache writeback
On node 0 totalpages: 16384
free_area_init_node: node 0, pgdat c08aa1d0, node_mem_map c3f77000
  Normal zone: 128 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 16384 pages, LIFO batch:3
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: [0] 0 
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: console=ttyS0,115200n8 earlyprintk root=/dev/ram0 mtdparts=nand0:2M(u-boot),6M(kernel),64M(usr),48M(root),-(parameters) mem=64M rw
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 55800K/65536K available (4614K kernel code, 306K rwdata, 1408K rodata, 2512K init, 235K bss, 9736K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc05e9dc4   (6024 kB)
      .init : 0xc05ea000 - 0xc085e000   (2512 kB)
      .data : 0xc085e000 - 0xc08aaa40   ( 307 kB)
       .bss : 0xc08aaa40 - 0xc08e59b8   ( 236 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:545
clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns
sched_clock: 24 bits at 120kHz, resolution 8333ns, wraps every 69905062489ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x8400 - 0x8458
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource nuc980-timer5
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
fuse init (API version 7.23)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered (default)
nuc980_gpio_probe - pdev = nuc980-gpio
nuc980_dma_probe - pdev = nuc980-dma
nuc980-dma nuc980-dma: NUC980 DMA ready
nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980
nuc980-uart.1: ttyS1 at I/O 0x0 (irq = 37, base_baud = 9375000) is a NUC980
nuvoton-rng nuvoton-rng: nuvoton PRNG active
RX nuc980_qspi0_probe: dma0chan0 module removed
TX nuc980_qspi0_probe: dma0chan1 module removed
RX nuc980_spi0_probe: dma0chan2 module removed
TX nuc980_spi0_probe: dma0chan3 module removed
m25p80 spi1.1: unrecognized JEDEC id bytes: ff, ff, ff
m25p80: probe of spi1.1 failed with error -2
libphy: nuc980_rmii0: probed
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver rndis_host
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller
nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1
nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000
nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0, 0
nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller
nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2
nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1, 0
usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2, 0
usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3, 0
usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4, 0
usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5, 0
usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6, 0
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
usbcore: registered new interface driver cdc_wdm
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
nuc980-rtc nuc980-rtc: rtc core: registered nuc980-rtc as rtc0
i2c /dev entries driver
nuc980-i2c1 nuc980-i2c1: i2c-1: nuc980 I2C adapter
do_sha - sha last has no data!
alg: hash: Test 1 failed for nuc980-sha1
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00
do_sha - sha last has no data!
alg: hash: Test 1 failed for nuc980-sha224
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00
do_sha - sha last has no data!
alg: hash: Test 1 failed for nuc980-sha256
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
do_sha - sha last has no data!
alg: hash: Test 1 failed for nuc980-sha384
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
do_sha - sha last has no data!
alg: hash: Test 1 failed for nuc980-sha512
00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
alg: No test for hmac-sha1 (nuc980-hmac-sha1)
alg: No test for hmac-sha224 (nuc980-hmac-sha224)
alg: No test for hmac-sha256 (nuc980-hmac-sha256)
alg: No test for hmac-sha384 (nuc980-hmac-sha384)
alg: No test for hmac-sha512 (nuc980-hmac-sha512)
NUC980 Crypto engine enabled.
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
nand: Winbond W25N01GV 1G 3.3V
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip
Scanning device for bad blocks
5 cmdlinepart partitions found on MTD device nand0
Creating 5 MTD partitions on "nand0":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000000800000 : "kernel"
0x000000800000-0x000004800000 : "usr"
0x000004800000-0x000007800000 : "root"
0x000007800000-0x000008000000 : "parameters"
nuc980-nadc: nuc980 Normal ADC adapter
ipip: IPv4 over IPv4 tunneling driver
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
lib80211_crypt: registered algorithm 'WEP'
lib80211_crypt: registered algorithm 'CCMP'
lib80211_crypt: registered algorithm 'TKIP'
nuc980-rtc nuc980-rtc: hctosys: unable to read the hardware clock
Warning: unable to open an initial console.
Freeing unused kernel memory: 2512K
ubi0: default fastmap pool size: 25
ubi0: default fastmap WL pool size: 12
ubi0: attaching mtd2
ubi0: scanning is finished
ubi0: attached mtd2 (name "usr", size 64 MiB)
ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi0: good PEBs: 512, bad PEBs: 0, corrupted PEBs: 0
ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 987577307
ubi0: available PEBs: 0, total reserved PEBs: 512, PEBs reserved for bad PEB handling: 20
ubi0: background thread "ubi_bgt0d" started, PID 556
UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "root", R/O mode
UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi0:0): FS size: 60440576 bytes (57 MiB, 476 LEBs), journal size 8126464 bytes (7 MiB, 64 LEBs)
UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 5EF1D85C-5A22-45F7-802B-3C454729523D, small LPT model
ubi1: default fastmap pool size: 15
ubi1: default fastmap WL pool size: 7
ubi1: attaching mtd3
ubi1: scanning is finished
ubi1: attached mtd3 (name "root", size 48 MiB)
ubi1: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi1: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi1: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi1: good PEBs: 384, bad PEBs: 0, corrupted PEBs: 0
ubi1: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi1: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1832540485
ubi1: available PEBs: 0, total reserved PEBs: 384, PEBs reserved for bad PEB handling: 20
ubi1: background thread "ubi_bgt1d" started, PID 562
UBIFS (ubi1:0): UBIFS: mounted UBI device 1, volume 0, name "root", R/O mode
UBIFS (ubi1:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi1:0): FS size: 44187648 bytes (42 MiB, 348 LEBs), journal size 6094848 bytes (5 MiB, 48 LEBs)
UBIFS (ubi1:0): reserved for root: 0 bytes (0 KiB)
UBIFS (ubi1:0): media format: w4/r0 (latest is w4/r0), UUID BCD24640-58FF-4008-8C40-AE21A4E84265, small LPT model
ubi2: default fastmap pool size: 8
ubi2: default fastmap WL pool size: 4
ubi2: attaching mtd4
ubi2: scanning is finished
ubi2: attached mtd4 (name "parameters", size 8 MiB)
ubi2: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ubi2: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
ubi2: VID header offset: 2048 (aligned 2048), data offset: 4096
ubi2: good PEBs: 64, bad PEBs: 0, corrupted PEBs: 0
ubi2: user volume: 1, internal volumes: 1, max. volumes count: 128
ubi2: max/mean erase counter: 16/5, WL threshold: 4096, image sequence number: 1352394104
ubi2: available PEBs: 0, total reserved PEBs: 64, PEBs reserved for bad PEB handling: 20
ubi2: background thread "ubi_bgt2d" started, PID 568
UBIFS (ubi2:0): UBIFS: mounted UBI device 2, volume 0, name "parameters", R/O mode
UBIFS (ubi2:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
UBIFS (ubi2:0): FS size: 3555328 bytes (3 MiB, 28 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
UBIFS (ubi2:0): reserved for root: 167926 bytes (163 KiB)
UBIFS (ubi2:0): media format: w4/r0 (latest is w4/r0), UUID 785D503F-3E6A-49FF-966B-A65F4E7779B3, small LPT model
nuc980-emac0 nuc980-emac0: eth0 is OPENED
random: nonblocking pool is initialized
[root@Nuv980 /root]# 

#27 Nuvoton N32905/N32926/NUC972/N9H20/N9H26/N9H30 » NUC980 coremark » 2022-05-10 09:08:04

Cadence
回复: 1
[root@Nuv980 /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18194
Total time (secs): 18.194000
Iterations/Sec   : 604.594921
Iterations       : 11000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 604.594921 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

#28 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-10 09:01:11

在T113_s3上运行 PX4

INFO  [px4] mlockall() enabled. PX4's virtual address space is locked into RAM.
INFO  [px4] assuming working directory is rootfs, no symlinks needed.

______  __   __    ___ 
| ___ \ \ \ / /   /   |
| |_/ /  \ V /   / /| |
|  __/   /   \  / /_| |
| |     / /^\ \ \___  |
\_|     \/   \/     |_/

px4 starting.

INFO  [px4] Calling startup script: /bin/sh etc/init.d/rcS 0
etc/init.d/rcS: line 57: ver: command not found
etc/init.d/rcS: line 120: .: filename argument required
.: usage: . filename [arguments]
ERROR [px4] Startup script returned with return value: 512

#29 Re: 全志 SOC » xfel烧录到t113的0x20000sram失败是怎么回事 » 2022-05-10 08:33:05

先把 boot0 编译到0x30000开始执行
用 xfel 下载调试,完了以后再改回0x20000
编译完 写到 sd卡 或 spi-nand
对于T113_s3 0x30000开始的64K是可以用的

boot0不能在DDR运行
u-boot可以在DDR运行
memmap.jpg

#30 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-09 11:31:29

Xilinx 的ZYNQ coremark.exe

root@bohoon:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 0 (v7l)
BogoMIPS        : 675.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

processor       : 1
model name      : ARMv7 Processor rev 0 (v7l)
BogoMIPS        : 675.00
Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpd32
CPU implementer : 0x41
CPU architecture: 7
CPU variant     : 0x3
CPU part        : 0xc09
CPU revision    : 0

Hardware        : Xilinx Zynq Platform
Revision        : 0003
Serial          : 0000000000000000

root@bohoon:~# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12170
Total time (secs): 12.170000
Iterations/Sec   : 2465.078061
Iterations       : 30000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2465.078061 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

#31 Re: 全志 SOC » 内核启动出错了??? » 2022-05-08 18:14:45

这 coremark.exe ???

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13040
Total time (secs): 13.040000
Iterations/Sec   : 2300.613497
Iterations       : 30000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2300.613497 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

这是上电 spi-nand 启动的

#32 Re: 全志 SOC » 内核启动出错了??? » 2022-05-08 17:51:09

这 coremark.exe ???

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18926
Total time (secs): 18.926000
Iterations/Sec   : 105.674733
Iterations       : 2000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x4983
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 105.674733 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

这是通过xfel 在ddr2里启动的
可能是CPU速度没设对

#33 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-08 10:47:47

T113_s3 的 coremark.exe

[root@T113-s3 /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 12814
Total time (secs): 12.814000
Iterations/Sec   : 3121.585766
Iterations       : 40000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x25b5
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 3121.585766 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

Nuv980 的 coremark.exe

[root@Nuv980 /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 18194
Total time (secs): 18.194000
Iterations/Sec   : 604.594921
Iterations       : 11000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 604.594921 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

D1S 的 coremark.exe

[root@Risc-v /root]# ./coremark.exe 
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 13034
Total time (secs): 13.034000
Iterations/Sec   : 2301.672549
Iterations       : 30000
Compiler version : GCC10.3.0
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x5275
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 2301.672549 / GCC10.3.0 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap
[root@Risc-v /root]# 

Am3352 的 coremark.exe

[root@Am335x /root]# ./coremark.exe
2K performance run parameters for coremark.
CoreMark Size    : 666
Total ticks      : 11397
Total time (secs): 11.397000
Iterations/Sec   : 965.166272
Iterations       : 11000
Compiler version : GCC10.2.1 20210110
Compiler flags   : -O2 -DPERFORMANCE_RUN=1  -lrt
Memory location  : Please put data memory location here
                        (e.g. code in flash, data on heap etc)
seedcrc          : 0xe9f5
[0]crclist       : 0xe714
[0]crcmatrix     : 0x1fd7
[0]crcstate      : 0x8e3a
[0]crcfinal      : 0x33ff
Correct operation validated. See README.md for run and reporting rules.
CoreMark 1.0 : 965.166272 / GCC10.2.1 20210110 -O2 -DPERFORMANCE_RUN=1  -lrt / Heap

#34 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-08 09:53:22

@xboot
OK,thanks
谢谢你的开源 xfel和 xboot
他们给了我很大的帮助

#35 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-07 09:13:53

xfel spinand erase 0x00000000 0x20000 && xfel spinand write 0x00000000 boot0_nand_sun20iw1p1.bin
xfel spinand erase 0x100000 0xa0000 && xfel spinand write 0x100000 u-boot.bin
xfel spinand erase 0x00200000 0x20000 && xfel spinand write 0x00200000 board.dtb
xfel spinand erase 0x00220000 0x800000 && xfel spinand write 0x00220000 uImage
xfel spinand erase 0x00a20000 0x4000000 && xfel spinand write 0x00a20000 usr_ubi.img
xfel spinand erase 0x04a20000 0x35e0000 && xfel spinand write 0x04a20000 root_ubi.img

如何上传文件?
file_burn.tar.gz

#36 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-02 09:42:07

T113-s3 hostap 启动脚本

#!/bin/bash
/sbin/ifconfig wlan0 up
/usr/sbin/hostapd /usr/local/hostapd.conf -B
/sbin/ip addr add 192.168.2.1/24 dev wlan0
/sbin/udhcpd /usr/local/udhcpd.conf
[ -d /etc/dropbear/ ] || mkdir -p /etc/dropbear/
[ -d /var/log/ ] || mkdir -p /var/log/
/usr/sbin/dropbear -R -B -W 65536

hostapd.conf 内容

driver=nl80211
ssid=T113_s3
channel=10
interface=wlan0
wpa=2
wpa_passphrase='your_passwd'
wpa_key_mgmt=WPA-PSK
rsn_pairwise=CCMP

udhcpd.conf 内容

# The start and end of the IP lease block
start       192.168.2.100
end     192.168.2.200

# The interface that udhcpd will use
interface   wlan0

opt dns 192.168.2.1
option  subnet  255.255.255.0
opt router  192.168.2.1

#37 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-05-01 00:03:22

出现以下现象

[root@T113-s3 /]# passwd
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: warning: can't lock '/etc/shadow': Permission denied
Jan  1 10:59:01 T113-s3 auth.err passwd: warning: can't lock '/etc/shadow': Permission denied
passwd: warning: can't lock '/etc/passwd': Permission denied
Jan  1 10:59:01 T113-s3 auth.err passwd: warning: can't lock '/etc/passwd': Permission denied
passwd: password for root changed by root
Jan  1 10:59:01 T113-s3 auth.info passwd: password for root changed by root

解决办法
修改.config

CONFIG_FILE_LOCKING=y
CONFIG_MANDATORY_FILE_LOCKING=y

#38 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-30 16:25:46

@yang_AE86

待排除所有已知 bug和整理后,将会放到github

#39 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-30 16:04:38

重启出错?

Jan  1 08:30:51 T113-s3 daemon.info nit: starting pid 1099, tty '': '/bin/umount -a -r'
[root@T113-s3 /etc]# Jan  1 08:30:51 T113-s3 daemon.info nit: starting pid 1101, tty '': '/sbin/swapoff -a'
Jan  1 08:30:51 T113-s3 daemon.i[ 1846.835865] RTL871X: rtw_cmd_thread(wlan0) _rtw_down_sema(&pcmdpriv->cmd_queue_sema) return _FAIL, break
nfo nit: The system is going down NOW!
Jan  1 08:30:51 T113-s3 syslog.info syslogd exiting
[ 1848.836123] reboot_callback(): empty arg
[ 1848.840563] [ohci1-controller]: ohci shutdown start
[ 1848.846087] [ohci1-controller]: ohci shutdown end
[ 1848.851350] [ehci1-controller]: ehci shutdown start
[ 1848.856842] [ehci1-controller]: ehci shutdown end
[ 1848.862090] sunxi_ohci_hcd_shutdown, ohci0-controller is disable, need not shutdown
[ 1848.870643] sunxi_ehci_hcd_shutdown, ehci0-controller is disable, need not shutdown
[ 1849.634124] ------------[ cut here ]------------
[ 1849.639294] WARNING: CPU: 1 PID: 1102 at drivers/clk/clk.c:960 clk_core_disable+0x38/0xa8
[ 1849.648406] mipi-dsi already disabled
[ 1849.652482] Modules linked in:
[ 1849.655888] CPU: 1 PID: 1102 Comm: init Not tainted 5.4.61 #136
[ 1849.662483] Hardware name: Generic DT based system
[ 1849.667839] [<c010e390>] (unwind_backtrace) from [<c010a8f4>] (show_stack+0x10/0x14)
[ 1849.676479] [<c010a8f4>] (show_stack) from [<c0727e64>] (dump_stack+0x7c/0x98)
[ 1849.684538] [<c0727e64>] (dump_stack) from [<c0119150>] (__warn+0xb8/0xd0)
[ 1849.692205] [<c0119150>] (__warn) from [<c01191e0>] (warn_slowpath_fmt+0x78/0xa0)
[ 1849.700552] [<c01191e0>] (warn_slowpath_fmt) from [<c03bd8d4>] (clk_core_disable+0x38/0xa8)
[ 1849.709867] [<c03bd8d4>] (clk_core_disable) from [<c03bda18>] (clk_core_disable_lock+0x18/0x24)
[ 1849.719572] [<c03bda18>] (clk_core_disable_lock) from [<c0392970>] (clk_disable_unprepare+0xc/0x18)
[ 1849.729663] [<c0392970>] (clk_disable_unprepare) from [<c0396804>] (disp_lcd_disable+0x27c/0x2d4)
[ 1849.739560] [<c0396804>] (disp_lcd_disable) from [<c0386040>] (disp_shutdown+0x68/0x84)
[ 1849.748490] [<c0386040>] (disp_shutdown) from [<c040ff70>] (device_shutdown+0x138/0x1b8)
[ 1849.757518] [<c040ff70>] (device_shutdown) from [<c0136134>] (kernel_restart+0xc/0x50)
[ 1849.766349] [<c0136134>] (kernel_restart) from [<c01363bc>] (__do_sys_reboot+0x140/0x1cc)
[ 1849.775470] [<c01363bc>] (__do_sys_reboot) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 1849.784487] Exception stack(0xc5d53fa8 to 0xc5d53ff0)
[ 1849.790118] 3fa0:                   01234567 0053c798 fee1dead 28121969 01234567 00000000
[ 1849.799236] 3fc0: 01234567 0053c798 0053c81c 00000058 00000000 00000000 0053c000 00000000
[ 1849.808350] 3fe0: 00000058 bed09cb4 b6e60255 b6ddec66
[ 1849.813978] ---[ end trace 29d70b923e4002ee ]---
[ 1849.834375] reboot: Restarting system

解决
修改.config

CONFIG_DISP2_SUNXI=y

改为

# CONFIG_DISP2_SUNXI is not set

#40 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-28 14:02:53

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #123 SMP PREEMPT Thu Apr 28 10:38:55 CST 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 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] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M root=/dev/ram0 rw
[    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: 107416K/131072K available (7168K kernel code, 465K rwdata, 2164K rodata, 3072K init, 189K bss, 15464K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x440 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.007999] Switching to timer-based delay loop, resolution 41ns
[    0.014185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023962] Console: colour dummy device 80x30
[    0.028458] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038831] pid_max: default: 32768 minimum: 301
[    0.043526] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050870] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059190] CPU: Testing write buffer coherency: ok
[    0.064404] /cpus/cpu@0 missing clock-frequency property
[    0.069739] /cpus/cpu@1 missing clock-frequency property
[    0.075089] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081415] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088135] rcu: Hierarchical SRCU implementation.
[    0.093274] BOOTEVENT:        93.265415: ON
[    0.097678] smp: Bringing up secondary CPUs ...
[    0.103079] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.103231] smp: Brought up 1 node, 2 CPUs
[    0.113062] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.119242] CPU: All CPU(s) started in SVC mode.
[    0.124460] devtmpfs: initialized
[    0.224204] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.234501] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.244371] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.251559] pinctrl core: initialized pinctrl subsystem
[    0.270234] NET: Registered protocol family 16
[    0.278516] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.299778] cpuidle: using governor ladder
[    0.304013] cpuidle: using governor menu
[    0.580479] rtc_ccu: sunxi ccu init OK
[    0.614777] ccu: sunxi ccu init OK
[    0.624065] r_ccu: sunxi ccu init OK
[    1.117043] iommu: Default domain type: Translated 
[    1.124493] sunxi iommu: irq = 24
[    1.156430] SCSI subsystem initialized
[    1.165319] usbcore: registered new interface driver usbfs
[    1.173329] usbcore: registered new interface driver hub
[    1.178861] usbcore: registered new device driver usb
[    1.213605] pwm module init!
[    1.238392] input: sunxi-keyboard as /devices/virtual/input/input0
[    1.253331] clocksource: Switched to clocksource arch_sys_counter
[    1.455803] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.819419] thermal_sys: Registered thermal governor 'step_wise'
[    1.819425] thermal_sys: Registered thermal governor 'user_space'
[    1.838177] NET: Registered protocol family 2
[    1.858796] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.867233] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.874943] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.882013] TCP: Hash tables configured (established 1024 bind 1024)
[    1.888511] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.895112] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.902306] NET: Registered protocol family 1
[    1.920296] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.939923] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.946838] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.953045] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.959428] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.965900] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.974329] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    1.993241] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8827000, irq 41
[    2.286218] Initialise system trusted keyrings
[    2.290829] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.297797] fuse: init (API version 7.31)
[    2.337062] NET: Registered protocol family 38
[    2.341538] Key type asymmetric registered
[    2.345670] Asymmetric key parser 'x509' registered
[    2.350655] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.358091] io scheduler mq-deadline registered
[    2.362626] io scheduler kyber registered
[    2.380703] [DISP]disp_module_init
[    2.397326] disp 5000000.disp: Adding to iommu group 0
[    2.432653] display_fb_request,fb_id:0
[    2.440972] [DISP] Fb_copy_boot_fb,line:1443:
[    2.440976] no boot_fb0
[    2.451632] disp_al_manager_apply ouput_type:0
[    2.458975] [DISP]disp_module_init finish
[    2.476420] [DISP] lcd_clk_config,line:732:
[    2.476433] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    2.476433]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    2.487740] sunxi_sid_init()551 - insmod ok
[    2.507089] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.511938] pwm-regulator: supplied by regulator-dummy
[    2.555274] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.565525] uart uart0: get regulator failed
[    2.569832] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.577524] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    2.585418] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.593423] printk: console [ttyS0] enabled
[    2.593423] printk: console [ttyS0] enabled
[    2.602272] printk: bootconsole [earlycon0] disabled
[    2.602272] printk: bootconsole [earlycon0] disabled
[    2.626834] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.638261] uart uart3: get regulator failed
[    2.643036] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.660967] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.694917] misc dump reg init
[    2.713276] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.720555] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.728375] [DISP] disp_device_attached_and_enable,line:233:
[    2.728380] attached ok, mgr0<-->dev0
[    2.733455] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.734788] [DISP] disp_device_attached_and_enable,line:236:
[    2.734797] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    2.738797] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.769250] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.775768] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.782676] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.790387] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.798228] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.806359] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.814068] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.820789] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.828360] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.883593] spi-nand spi0.0: Winbond SPI NAND was found.
[    2.889528] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.917502] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.924633] Creating 5 MTD partitions on "spi0.0":
[    2.929981] 0x000000000000-0x000000100000 : "boot0"
[    2.955587] 0x000000100000-0x000000200000 : "u-boot"
[    2.971238] 0x000000200000-0x000000220000 : "dtb"
[    2.990246] 0x000000220000-0x000001220000 : "kernel"
[    2.996610] random: fast init done
[    3.052003] 0x000001220000-0x000008000000 : "rootfs"
[    3.339430] libphy: Fixed MDIO Bus: probed
[    3.344126] CAN device driver interface
[    3.348735] RTL871X: module init start
[    3.352917] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    3.364764] RTL871X: module init ret=0
[    3.368971] hso: drivers/net/usb/hso.c: Option Wireless
[    3.374972] usbcore: registered new interface driver hso
[    3.380901] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.388227] sunxi-ehci: EHCI SUNXI driver
[    3.393116] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.400077] sunxi-ohci: OHCI SUNXI driver
[    3.408629] usbcore: registered new interface driver uas
[    3.414762] usbcore: registered new interface driver usb-storage
[    3.421555] usbcore: registered new interface driver ums-alauda
[    3.428269] usbcore: registered new interface driver ums-cypress
[    3.435086] usbcore: registered new interface driver ums-datafab
[    3.441891] usbcore: registered new interface driver ums_eneub6250
[    3.448950] usbcore: registered new interface driver ums-freecom
[    3.455737] usbcore: registered new interface driver ums-isd200
[    3.462437] usbcore: registered new interface driver ums-jumpshot
[    3.469408] usbcore: registered new interface driver ums-karma
[    3.476019] usbcore: registered new interface driver ums-onetouch
[    3.489852] usbcore: registered new interface driver ums-realtek
[    3.496679] usbcore: registered new interface driver ums-sddr09
[    3.503422] usbcore: registered new interface driver ums-sddr55
[    3.513609] usbcore: registered new interface driver ums-usbat
[    3.535544] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    3.548805] sunxi_gpadc_init,2137, success
[    3.579905] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.585742] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T06:25:34 UTC (23134)
[    3.595022] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    3.603401] i2c /dev entries driver
[    3.607493] IR NEC protocol handler initialized
[    3.612545] IR RC5(x/sz) protocol handler initialized
[    3.618690] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.637144] sunxi_ir_startup: get ir protocol failed
[    3.637173] (NULL device *): deviceless supply  not found, using dummy regulator
[    3.651121] Registered IR keymap rc_map_sunxi
[    3.663235] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    3.679002] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    3.696374] sunxi cedar version 1.1
[    3.700545] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    3.709312] VE: sunxi_cedar_probe power-domain init!!!
[    3.715130] VE: install start!!!
[    3.715130] 
[    3.725534] VE: cedar-ve the get irq is 42
[    3.725534] 
[    3.734598] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    3.734598] 
[    3.743843] VE: install end!!!
[    3.743843] 
[    3.748918] VE: sunxi_cedar_probe
[    3.769349] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.789853] /cpus/cpu@0: unsupported enable-method property: psci
[    3.835153] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.852100] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    3.858313] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    3.864638] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    3.871070] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    3.877498] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    3.884022] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    3.890524] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    3.897037] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    3.911275] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    3.916901] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    3.923658] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.934798] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    3.954902] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.982953] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.000125] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    4.010131] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    4.016344] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    4.022680] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    4.029102] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    4.035529] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    4.042031] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    4.048573] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    4.055087] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    4.061619] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    4.078643] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.089811] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    4.109929] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.133367] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    4.159549] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.163530] usbcore: registered new interface driver usbhid
[    4.174420] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.177392] usbhid: USB HID core driver
[    4.190611] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    4.193176] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    4.203636] oprofile: hardware counters not available
[    4.218984] oprofile: using timer interrupt.
[    4.224305] NET: Registered protocol family 10
[    4.245412] Segment Routing with IPv6
[    4.253418] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.292021] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.297964] NET: Registered protocol family 17
[    4.303918] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.308543] NET: Registered protocol family 15
[    4.327695] can: controller area network core (rev 20170425 abi 9)
[    4.327771] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.341894] NET: Registered protocol family 29
[    4.347483] mmc1: new high speed SDIO card at address 0001
[    4.351342] can: raw protocol (rev 20170425)
[    4.362510] can: broadcast manager protocol (rev 20170425 t)
[    4.368951] can: netlink gateway (rev 20190810) max_hops=1
[    4.382828] Registering SWP/SWPB emulation handler
[    4.392386] Loading compiled-in X.509 certificates
[    4.403016] RTL871X: HW EFUSE
[    4.406458] RTL871X: hal_com_config_channel_plan chplan:0x20
[    4.423316] random: crng init done
[    4.615602] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    4.652647] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    4.845431] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    4.869306] i2c i2c2: probe success
[    4.975491] get ehci0-controller wakeup-source is fail.
[    4.981439] sunxi ehci0-controller don't init wakeup source
[    4.987694] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0e9b830, 0x:c932a000, irq_no:38
[    4.999634] [sunxi-ehci0]: Not init ehci0
[    5.004598] get ohci0-controller wakeup-source is fail.
[    5.014156] sunxi ohci0-controller don't init wakeup source
[    5.020382] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0e9bac0
[    5.030001] [sunxi-ohci0]: Not init ohci0
[    5.042315] get ehci1-controller wakeup-source is fail.
[    5.048301] sunxi ehci1-controller don't init wakeup source
[    5.054541] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0e9bd50, 0x:c9333000, irq_no:3a
[    5.077677] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    5.095065] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    5.102291] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    5.115954] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    5.153358] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    5.177093] hub 1-0:1.0: USB hub found
[    5.181346] hub 1-0:1.0: 1 port detected
[    5.200055] get ohci1-controller wakeup-source is fail.
[    5.206043] sunxi ohci1-controller don't init wakeup source
[    5.212259] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0e9bfe0
[    5.231430] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    5.247595] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    5.254867] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    5.274119] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    5.359661] hub 2-0:1.0: USB hub found
[    5.363948] hub 2-0:1.0: 1 port detected
[    5.417716] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.467316] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.474900] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.484584] clk: Not disabling unused clocks
[    5.489361] alloc_fd: slot 0 not NULL!
[    5.493577] cfg80211: failed to load regulatory.db
[    5.499087] Warning: unable to open an initial console.
[    5.510184] Freeing unused kernel memory: 3072K
[    5.543502] Kernel init done
[    5.546715] Run /init as init process
[    6.216801] ubi0: default fastmap pool size: 40
[    6.221877] ubi0: default fastmap WL pool size: 20
[    6.228217] ubi0: attaching mtd4
[I have no name!@T113-s3 /root]# [    7.029232] ubi0: scanning is finished
[    7.051601] ubi0: attached mtd4 (name "rootfs", size 109 MiB)
[    7.058122] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    7.065891] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    7.073488] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    7.081248] ubi0: good PEBs: 879, bad PEBs: 0, corrupted PEBs: 0
[    7.087960] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    7.096023] ubi0: max/mean erase counter: 4/2, WL threshold: 4096, image sequence number: 2083313605
[    7.106215] ubi0: available PEBs: 0, total reserved PEBs: 879, PEBs reserved for bad PEB handling: 20
[    7.116519] ubi0: background thread "ubi_bgt0d" started, PID 1003
[    7.133442] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    7.261294] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    7.270557] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.281631] UBIFS (ubi0:0): FS size: 106913792 bytes (101 MiB, 842 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    7.293486] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    7.299991] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID 6581B725-5C85-4A2F-8A81-815A46CDCD6C, small LPT model

[I have no name!@T113-s3 /root]# 

启动速度提高的 8秒以内

#41 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-26 08:57:05

完整的启动 log

HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 25 2022 - 21:53:16 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Reading 131072 byte(s) (64 page(s)) at offset 0x00200000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00220000
Kernel image @ 0x40080000 [ 0x000000 - 0x487ba8 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b4c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #76 SMP PREEMPT Tue Apr 26 06:56:22 CST 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 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] percpu: Embedded 15 pages/cpu s32076 r8192 d21172 u61440
[    0.000000] pcpu-alloc: s32076 r8192 d21172 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs ro rootwait
[    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: 109464K/131072K available (7168K kernel code, 465K rwdata, 2156K rodata, 1024K init, 189K bss, 13416K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x3e0 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.008009] Switching to timer-based delay loop, resolution 41ns
[    0.014176] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023945] Console: colour dummy device 80x30
[    0.028434] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038796] pid_max: default: 32768 minimum: 301
[    0.043483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050799] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059116] CPU: Testing write buffer coherency: ok
[    0.064334] /cpus/cpu@0 missing clock-frequency property
[    0.069661] /cpus/cpu@1 missing clock-frequency property
[    0.074996] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081334] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088057] rcu: Hierarchical SRCU implementation.
[    0.093205] BOOTEVENT:        93.195666: ON
[    0.097575] smp: Bringing up secondary CPUs ...
[    0.102957] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.103114] smp: Brought up 1 node, 2 CPUs
[    0.112955] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.119125] CPU: All CPU(s) started in SVC mode.
[    0.124349] devtmpfs: initialized
[    0.224824] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.235108] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.244982] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.252176] pinctrl core: initialized pinctrl subsystem
[    0.273190] NET: Registered protocol family 16
[    0.279276] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.301706] cpuidle: using governor ladder
[    0.305880] cpuidle: using governor menu
[    0.573870] rtc_ccu: sunxi ccu init OK
[    0.613198] ccu: sunxi ccu init OK
[    0.624037] r_ccu: sunxi ccu init OK
[    1.146594] iommu: Default domain type: Translated 
[    1.153867] sunxi iommu: irq = 24
[    1.179725] SCSI subsystem initialized
[    1.191373] usbcore: registered new interface driver usbfs
[    1.196977] usbcore: registered new interface driver hub
[    1.204835] usbcore: registered new device driver usb
[    1.243379] pwm module init!
[    1.262737] input: sunxi-keyboard as /devices/virtual/input/input0
[    1.271738] clocksource: Switched to clocksource arch_sys_counter
[    1.480368] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.837423] thermal_sys: Registered thermal governor 'step_wise'
[    1.837429] thermal_sys: Registered thermal governor 'user_space'
[    1.856304] NET: Registered protocol family 2
[    1.877012] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.885465] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.893157] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.900218] TCP: Hash tables configured (established 1024 bind 1024)
[    1.906710] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.913300] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.920469] NET: Registered protocol family 1
[    1.941263] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.961015] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.967875] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    1.974057] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    1.980406] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    1.986861] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.995270] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    2.014204] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8827000, irq 41
[    2.058198] Initialise system trusted keyrings
[    2.062915] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.076331] fuse: init (API version 7.31)
[    2.137737] NET: Registered protocol family 38
[    2.142243] Key type asymmetric registered
[    2.146352] Asymmetric key parser 'x509' registered
[    2.151319] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    2.158757] io scheduler mq-deadline registered
[    2.163297] io scheduler kyber registered
[    2.178373] [DISP]disp_module_init
[    2.192224] disp 5000000.disp: Adding to iommu group 0
[    2.236298] display_fb_request,fb_id:0
[    2.247840] [DISP] Fb_copy_boot_fb,line:1443:
[    2.247846] no boot_fb0
[    2.255656] disp_al_manager_apply ouput_type:0
[    2.288687] [DISP] lcd_clk_config,line:732:
[    2.288701] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    2.288701]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    2.288948] [DISP]disp_module_init finish
[    2.300074] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.327911] sunxi_sid_init()551 - insmod ok
[    2.352136] pwm-regulator: supplied by regulator-dummy
[    2.371961] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.382195] uart uart0: get regulator failed
[    2.386493] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.397104] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    2.404970] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    2.412935] printk: console [ttyS0] enabled
[    2.412935] printk: console [ttyS0] enabled
[    2.421810] printk: bootconsole [earlycon0] disabled
[    2.421810] printk: bootconsole [earlycon0] disabled
[    2.446287] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    2.457681] uart uart3: get regulator failed
[    2.462485] uart uart3: uart3 supply uart not found, using dummy regulator
[    2.473882] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    2.500594] misc dump reg init
[    2.528461] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    2.532067] [DISP] disp_device_attached_and_enable,line:233:
[    2.532073] attached ok, mgr0<-->dev0
[    2.536169] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    2.542139] [DISP] disp_device_attached_and_enable,line:236:
[    2.542148] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    2.546079] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    2.576549] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    2.583947] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    2.590451] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    2.597379] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    2.605082] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    2.612929] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    2.621000] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    2.635323] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    2.642115] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    2.649619] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=210 assert=0
[    2.702672] spi-nand spi0.0: Winbond SPI NAND was found.
[    2.708605] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    2.721422] 5 fixed-partitions partitions found on MTD device spi0.0
[    2.728561] Creating 5 MTD partitions on "spi0.0":
[    2.734047] 0x000000000000-0x000000100000 : "boot0"
[    2.743463] 0x000000100000-0x000000200000 : "u-boot"
[    2.765815] 0x000000200000-0x000000220000 : "dtb"
[    2.785647] 0x000000220000-0x000000820000 : "kernel"
[    2.793422] random: fast init done
[    2.822837] 0x000000820000-0x000008000000 : "rootfs"
[    3.175084] libphy: Fixed MDIO Bus: probed
[    3.185574] CAN device driver interface
[    3.190140] RTL871X: module init start
[    3.194355] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    3.200290] RTL871X: module init ret=0
[    3.204530] hso: drivers/net/usb/hso.c: Option Wireless
[    3.217384] usbcore: registered new interface driver hso
[    3.223421] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.230698] sunxi-ehci: EHCI SUNXI driver
[    3.235606] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.242555] sunxi-ohci: OHCI SUNXI driver
[    3.247672] usbcore: registered new interface driver uas
[    3.257157] usbcore: registered new interface driver usb-storage
[    3.264047] usbcore: registered new interface driver ums-alauda
[    3.270718] usbcore: registered new interface driver ums-cypress
[    3.280901] usbcore: registered new interface driver ums-datafab
[    3.287753] usbcore: registered new interface driver ums_eneub6250
[    3.298134] usbcore: registered new interface driver ums-freecom
[    3.304999] usbcore: registered new interface driver ums-isd200
[    3.311673] usbcore: registered new interface driver ums-jumpshot
[    3.321996] usbcore: registered new interface driver ums-karma
[    3.328620] usbcore: registered new interface driver ums-onetouch
[    3.335545] usbcore: registered new interface driver ums-realtek
[    3.342371] usbcore: registered new interface driver ums-sddr09
[    3.349039] usbcore: registered new interface driver ums-sddr55
[    3.359130] usbcore: registered new interface driver ums-usbat
[    3.391075] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    3.411117] sunxi_gpadc_init,2137, success
[    3.438762] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.444574] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:12:57 UTC (777)
[    3.453658] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    3.459570] i2c /dev entries driver
[    3.463656] IR NEC protocol handler initialized
[    3.468706] IR RC5(x/sz) protocol handler initialized
[    3.474797] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.493713] sunxi_ir_startup: get ir protocol failed
[    3.493744] (NULL device *): deviceless supply  not found, using dummy regulator
[    3.507684] Registered IR keymap rc_map_sunxi
[    3.519210] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    3.531943] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    3.549248] sunxi cedar version 1.1
[    3.553434] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    3.559678] VE: sunxi_cedar_probe power-domain init!!!
[    3.565452] VE: install start!!!
[    3.565452] 
[    3.574288] VE: cedar-ve the get irq is 42
[    3.574288] 
[    3.581375] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    3.581375] 
[    3.590655] VE: install end!!!
[    3.590655] 
[    3.595734] VE: sunxi_cedar_probe
[    3.625028] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.642654] /cpus/cpu@0: unsupported enable-method property: psci
[    3.686989] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.697007] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    3.703217] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    3.709526] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    3.715955] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    3.722374] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    3.728874] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    3.735389] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    3.741903] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    3.766646] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    3.772171] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    3.778954] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.790111] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    3.810238] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.837663] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    3.854610] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    3.864560] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    3.870733] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    3.877063] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    3.883480] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    3.889885] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    3.896396] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    3.902916] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    3.909417] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    3.915963] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    3.939850] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.950997] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    3.971115] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    3.995310] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    4.002862] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.026875] usbcore: registered new interface driver usbhid
[    4.027411] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.033159] usbhid: USB HID core driver
[    4.049079] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    4.049106] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    4.081145] oprofile: hardware counters not available
[    4.086846] oprofile: using timer interrupt.
[    4.092063] NET: Registered protocol family 10
[    4.109264] Segment Routing with IPv6
[    4.113555] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.166526] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.170229] NET: Registered protocol family 17
[    4.178285] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.183184] NET: Registered protocol family 15
[    4.199724] can: controller area network core (rev 20170425 abi 9)
[    4.199734] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.218485] NET: Registered protocol family 29
[    4.223529] can: raw protocol (rev 20170425)
[    4.228305] can: broadcast manager protocol (rev 20170425 t)
[    4.234665] can: netlink gateway (rev 20190810) max_hops=1
[    4.241205] mmc1: new high speed SDIO card at address 0001
[    4.245186] Registering SWP/SWPB emulation handler
[    4.263736] Loading compiled-in X.509 certificates
[    4.515197] RTL871X: HW EFUSE
[    4.518540] RTL871X: hal_com_config_channel_plan chplan:0x20
[    4.674655] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    4.698942] i2c i2c2: probe success
[    4.815217] random: crng init done
[    4.827230] get ehci0-controller wakeup-source is fail.
[    4.840440] sunxi ehci0-controller don't init wakeup source
[    4.846735] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0c9b7e8, 0x:c8878000, irq_no:38
[    4.858728] [sunxi-ehci0]: Not init ehci0
[    4.864148] get ohci0-controller wakeup-source is fail.
[    4.870239] sunxi ohci0-controller don't init wakeup source
[    4.876551] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0c9ba78
[    4.886185] [sunxi-ohci0]: Not init ohci0
[    4.891546] get ehci1-controller wakeup-source is fail.
[    4.897732] sunxi ehci1-controller don't init wakeup source
[    4.903990] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0c9bd08, 0x:c92dd000, irq_no:3a
[    4.923833] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    4.944744] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    4.952091] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    4.962224] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    4.991814] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    5.026754] hub 1-0:1.0: USB hub found
[    5.038106] hub 1-0:1.0: 1 port detected
[    5.055150] get ohci1-controller wakeup-source is fail.
[    5.071939] sunxi ohci1-controller don't init wakeup source
[    5.078221] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0c9bf98
[    5.088510] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    5.118871] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    5.126208] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    5.136270] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    5.211076] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    5.245113] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=94:a4:08:c4:c0:61
[    5.256440] hub 2-0:1.0: USB hub found
[    5.271265] hub 2-0:1.0: 1 port detected
[    5.333035] ubi0: attaching mtd4
[   20.192916] ubi0: scanning is finished
[   20.225392] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[   20.231830] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   20.239494] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   20.247072] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   20.254847] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[   20.261541] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   20.269603] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 267458052
[   20.279696] ubi0: available PEBs: 0, total reserved PEBs: 959, PEBs reserved for bad PEB handling: 40
[   20.290001] ubi0: background thread "ubi_bgt0d" started, PID 975
[   20.301375] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.317085] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   20.328325] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.331830] clk: Not disabling unused clocks
[   20.338007] cfg80211: failed to load regulatory.db
[   20.342850] alloc_fd: slot 0 not NULL!
[   20.372329] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   20.440057] UBIFS (ubi0:0): recovery needed
[   21.389379] UBIFS (ubi0:0): recovery deferred
[   21.394702] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[   21.403975] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   21.415045] UBIFS (ubi0:0): FS size: 114786304 bytes (109 MiB, 904 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[   21.426884] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[   21.434273] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 4A5D7D8F-3C66-4BB0-8C4C-E59EDCC1D11C, small LPT model
[   21.449612] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[   21.459073] Freeing unused kernel memory: 1024K
[   21.464303] Kernel init done
[   21.467512] Run /init as init process
haveged: command socket is listening at fd 3
haveged: haveged starting up
login[997]: root login on 'ttyS0'
[   23.901809] 
[   23.901809] insmod_device_driver
[   23.901809] 
[   23.909033] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
[root@T113-s3 /root]# ifconfig
[root@T113-s3 /root]# . /etc/wpa_action.sh 
Successfully initialized wpa_supplicant
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
[   47.455160] RTL871X: nolinked power save enter
[   48.156519] RTL871X: nolinked power save leave
[   48.161574] RTL871X: rtw_set_802_11_connect(wlan0)  fw_state=0x00000008
[   48.273633] RTL871X: start auth
[   48.279374] RTL871X: auth success, start assoc
[   48.288239] RTL871X: assoc success
[   48.530249] RTL871X: recv eapol packet
[   48.541610] RTL871X: send eapol packet
[   48.551079] RTL871X: recv eapol packet
[   48.558365] RTL871X: send eapol packet
[   48.562901] RTL871X: set pairwise key camid:4, addr:04:5f:a7:5d:59:7c, kid:0, type:AES
[   48.564444] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[   48.579502] RTL871X: set group key camid:5, addr:04:5f:a7:5d:59:7c, kid:2, type:TKIP
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.10.14, server 192.168.10.1
udhcpc: lease of 192.168.10.14 obtained from 192.168.10.1, lease time 86400
/usr/share/udhcpc/default.script: Adding DNS 192.168.10.1
/usr/share/udhcpc/default.script: Adding DNS 192.168.1.1
[root@T113-s3 /root]# ifconfig
wlan0     Link encap:Ethernet  HWaddr 94:A4:08:C4:C0:61  
          inet addr:192.168.10.14  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::96a4:8ff:fec4:c061/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1982 (1.9 KiB)  TX bytes:1834 (1.7 KiB)

[root@T113-s3 /root]# ping www.baidu.com
PING www.baidu.com (103.235.46.39): 56 data bytes
64 bytes from 103.235.46.39: seq=0 ttl=45 time=174.979 ms
64 bytes from 103.235.46.39: seq=1 ttl=45 time=176.345 ms
64 bytes from 103.235.46.39: seq=2 ttl=45 time=171.691 ms
64 bytes from 103.235.46.39: seq=3 ttl=45 time=375.649 ms
64 bytes from 103.235.46.39: seq=4 ttl=45 time=175.896 ms
64 bytes from 103.235.46.39: seq=5 ttl=45 time=320.066 ms
64 bytes from 103.235.46.39: seq=6 ttl=45 time=174.658 ms
^C
--- www.baidu.com ping statistics ---
7 packets transmitted, 7 packets received, 0% packet loss
round-trip min/avg/max = 171.691/224.183/375.649 ms
[root@T113-s3 /root]# 

#42 Re: 全志 SOC » 内核启动出错了??? » 2022-04-26 08:01:40

wpa_supplicant.conf配置

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
ap_scan=1
network={
    ssid="#####"
    scan_ssid=1
    proto=RSN
    key_mgmt=WPA-EAP WPA-PSK IEEE8021X NONE
    pairwise=TKIP CCMP
    group=CCMP TKIP WEP104 WEP40
    #psk="########"
    psk=4b5d43faf757b6ff8d02c1f2a051522c87c562c7c2349355bb342dc490bf563a
    priority=5
}

wifi启动脚本

#!/bin/sh
/sbin/ifconfig wlan0 up
/usr/sbin/wpa_supplicant -i "wlan0" -c "/etc/wpa_supplicant.conf" -B
/sbin/udhcpc -i wlan0 -T 10 -s /usr/share/udhcpc/default.script

cat /usr/share/udhcpc/default.script

#!/bin/sh

# udhcpc script edited by Tim Riker <Tim@Rikers.org>

[ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1

[ -n "$subnet" ] && NETMASK="netmask $subnet"

# return 0 if root is mounted on a network filesystem
root_is_nfs() {
        sed -n 's/^[^ ]* \([^ ]*\) \([^ ]*\) .*$/\1 \2/p' /proc/mounts |
        grep -q "^/ \(nfs\|smbfs\|ncp\|coda\)$"
}

BROADCAST="broadcast +"

[ -n "$broadcast" ] && BROADCAST="broadcast $broadcast"

case "$1" in
        deconfig)
                if ! root_is_nfs ; then
            /sbin/ip addr flush dev $interface
            /sbin/ip link set dev $interface up
                fi
                ;;

        renew|bound)
            /sbin/ip addr add dev $interface local $ip/$mask $BROADCAST

                if [ -n "$router" ] ; then
                        if ! root_is_nfs ; then
                while /sbin/ip route del default dev $interface 2>/dev/null ; do
                    :
                done
                        fi

                        metric=10
                        for i in $router ; do
                /sbin/ip route add default via $i metric $metric
                metric=$(($metric + 1))
                        done
                fi

                # Update resolver configuration file
                R=""
                [ -n "$domain" ] && R="domain $domain
"
                for i in $dns; do
                        echo "$0: Adding DNS $i"
                        R="${R}nameserver $i
"
                done

                ;;
esac

exit 0

放在这里备忘

#43 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-25 15:18:30

启动第二个CPU驱动 源码

static DEFINE_SPINLOCK(cpu_lock);

static int sun8i_smp_boot_secondary(unsigned int cpu,
                    struct task_struct *idle)
{
    u32 reg;
    void __iomem *cpucfg_membase = ioremap(0x09010000, 0x10);
    void __iomem *cpuexec_membase[] = {ioremap(0x070005C4, 0x10),ioremap(0x070005C8, 0x10)};

//    pr_info("%s %d cpu %x\n",__FILE__,__LINE__,(u32)idle);
    spin_lock(&cpu_lock);
        
    if(cpu != 1)return 0;

    /* Set CPU boot address */
    writel(__pa_symbol(secondary_startup),  cpuexec_membase[cpu]);
//  writel((u32)idle,   cpuexec_membase[cpu]);  /* do not work */

    /* Deassert the CPU core reset */
    reg = readl(cpucfg_membase);
    writel(reg | BIT(cpu), cpucfg_membase);

    spin_unlock(&cpu_lock);

    return 0;
}

static const struct smp_operations sun8i_smp_ops __initconst = { 
    .smp_boot_secondary = sun8i_smp_boot_secondary,
};
CPU_METHOD_OF_DECLARE(sun8i_t113_smp, "allwinner,sun8iw20p1", &sun8i_smp_ops);

#44 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-25 15:08:41

[    0.059113] CPU: Testing write buffer coherency: ok
[    0.064317] /cpus/cpu@0 missing clock-frequency property
[    0.069643] /cpus/cpu@1 missing clock-frequency property
[    0.074986] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.080656] arch/arm/mach-sunxi/plat_t113_smp.c 30 max_cpus 2
[    0.087073] Setting up static identity map for 0x40100000 - 0x40100060
[    0.093735] rcu: Hierarchical SRCU implementation.
[    0.098921] BOOTEVENT:        98.911790: ON
[    0.103309] smp: Bringing up secondary CPUs ...
[    0.107845] smp: kernel/smp.c 592 cpu 0 cpu_online 1
[    0.112850] smp: kernel/smp.c 592 cpu 1 cpu_online 0
[    0.118351] arch/arm/mach-sunxi/plat_t113_smp.c 40 cpu c7039000
[    0.124327] arch/arm/mach-sunxi/plat_t113_smp.c 48 cpu c7039000
[    0.130485] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130653] smp: Brought up 1 node, 2 CPUs
[    0.140478] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.146683] CPU: All CPU(s) started in SVC mode.

不用 PSCI 启动第二个CPU

#45 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-24 16:15:10

有了

struct __packed sunxi_cpucfg_cpu {
    u32 rst;        /* base + 0x0 */
    u32 ctrl;       /* base + 0x4 */
    u32 status;     /* base + 0x8 */
    u8 res[0x34];       /* base + 0xc */
};

struct __packed sunxi_cpucfg_reg {
    u8 res0[0x40];      /* 0x000 */
    struct sunxi_cpucfg_cpu cpu[4];     /* 0x040 */
    u8 res1[0x44];      /* 0x140 */
    u32 gen_ctrl;       /* 0x184 */
    u32 l2_status;      /* 0x188 */
    u8 res2[0x4];       /* 0x18c */
    u32 event_in;       /* 0x190 */
    u8 res3[0xc];       /* 0x194 */
    u32 super_standy_flag;  /* 0x1a0 */
    u32 priv0;      /* 0x1a4 */
    u32 priv1;      /* 0x1a8 */
    u8 res4[0x4];       /* 0x1ac */
    u32 cpu1_pwr_clamp; /* 0x1b0 sun7i only */
    u32 cpu1_pwroff;    /* 0x1b4 sun7i only */
    u8 res5[0x2c];      /* 0x1b8 */
    u32 dbg_ctrl1;      /* 0x1e4 */
    u8 res6[0x18];      /* 0x1e8 */
    u32 idle_cnt0_low;  /* 0x200 */
    u32 idle_cnt0_high; /* 0x204 */
    u32 idle_cnt0_ctrl; /* 0x208 */
    u8 res8[0x4];       /* 0x20c */
    u32 idle_cnt1_low;  /* 0x210 */
    u32 idle_cnt1_high; /* 0x214 */
    u32 idle_cnt1_ctrl; /* 0x218 */
    u8 res9[0x4];       /* 0x21c */
    u32 idle_cnt2_low;  /* 0x220 */
    u32 idle_cnt2_high; /* 0x224 */
    u32 idle_cnt2_ctrl; /* 0x228 */
    u8 res10[0x4];      /* 0x22c */
    u32 idle_cnt3_low;  /* 0x230 */
    u32 idle_cnt3_high; /* 0x234 */
    u32 idle_cnt3_ctrl; /* 0x238 */
    u8 res11[0x4];      /* 0x23c */
    u32 idle_cnt4_low;  /* 0x240 */
    u32 idle_cnt4_high; /* 0x244 */
    u32 idle_cnt4_ctrl; /* 0x248 */
    u8 res12[0x34];     /* 0x24c */
    u32 cnt64_ctrl;     /* 0x280 */
    u32 cnt64_low;      /* 0x284 */
    u32 cnt64_high;     /* 0x288 */
};

#46 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-24 15:43:29

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 24 2022 - 15:42:32 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.024]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x403568 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f58000, end 43f684c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #39 SMP PREEMPT Sun Apr 24 09:14:45 CST 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 8 MiB at 0x47400000
[    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: drivers/firmware/psci/psci.c psci_get_version 155________________84000000
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000000
[    0.000000] psci: PSCIv65535.65535 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000006
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________8400000a
[    0.000000] percpu: Embedded 15 pages/cpu s32140 r8192 d21108 u61440
[    0.000000] pcpu-alloc: s32140 r8192 d21108 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs rw rootwait
[    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: 110580K/131072K available (6144K kernel code, 387K rwdata, 1972K rodata, 1024K init, 163K bss, 12300K reserved, 8192K cma-reserved)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] GIC CPU mask not found - kernel will fail to boot.
[    0.000000] random: get_random_bytes called from start_kernel+0x250/0x3dc 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.008017] Switching to timer-based delay loop, resolution 41ns
[    0.014200] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023918] Console: colour dummy device 80x30
[    0.028405] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038749] pid_max: default: 32768 minimum: 301
[    0.043438] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050760] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059059] CPU: Testing write buffer coherency: ok
[    0.064253] /cpus/cpu@0 missing clock-frequency property
[    0.069570] /cpus/cpu@1 missing clock-frequency property
[    0.074877] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081206] Setting up static identity map for 0x40100000 - 0x40100060
[    0.087879] rcu: Hierarchical SRCU implementation.
[    0.093021] BOOTEVENT:        93.012957: ON
[    0.097413] smp: Bringing up secondary CPUs ...
[    0.102493] psci: drivers/firmware/psci/psci.c __invoke_psci_fn_smc 131________________84000003

#47 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-24 15:40:10

关于 u-boot 的 psci问题
首先 struct sunxi_cpucfg_reg

grep -nr 'struct sunxi_cpucfg_reg'
arch/arm/cpu/armv7/sunxi/psci.c:131:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:132:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:142:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:143:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:151:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:152:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:171:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:172:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;
arch/arm/cpu/armv7/sunxi/psci.c:249:    struct sunxi_cpucfg_reg *cpucfg =
arch/arm/cpu/armv7/sunxi/psci.c:250:            (struct sunxi_cpucfg_reg *)SUNXI_CPUCFG_BASE;

没有找到定义
SUNXI_CPUCFG_BASE
应该是?

arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:34:#define SUNXI_CPUCFG_BASE                0x01700000
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:129:#define SUNXI_CPUCFG_BASE               0x01c25c00
arch/arm/include/asm/arch-sunxi/cpu_sun4i.h:202:#define SUNXI_CPUCFG_BASE               0x01f01c00

#48 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-23 17:06:07

[root@T113-s3 /root]# busybox 
BusyBox v1.35.0 (2022-04-23 02:16:35 UTC) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

  BusyBox is a multi-call binary that combines many common Unix
  utilities into a single executable.  Most people will create a
  link to busybox for each function they wish to use and BusyBox
  will act like whatever it was invoked as.

Currently defined functions:
  [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp, arping, ascii, awk, base32, base64, basename, bc, beep, blkdiscard, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat,
  chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crc32, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup,
  deluser, depmod, devmem, df, dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand,
  expr, factor, fakeidentd, fallocate, false, fatattr, fbset, fbsplash, fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync,
  ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head, hexdump, hexedit, hostid, hostname, httpd, hwclock, i2cdetect, i2cdump, i2cget, i2cset, i2ctransfer, id,
  ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, ipneigh, iproute, iprule, iptunnel, kbd_mode, kill, killall,
  killall5, klogd, last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls, lsattr, lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma,
  lzop, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo, modprobe, more, mount, mountpoint,
  mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netstat, nice, nl, nmeter, nohup, nproc, nsenter, nslookup, ntpd, od, openvt, partprobe, passwd, paste, patch, pgrep, pidof, ping, ping6,
  pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev, readahead, readlink, readprofile, realpath, reboot,
  reformime, remove-shell, renice, reset, resize, resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-init, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq,
  setarch, setconsole, setfattr, setfont, setkeycodes, setlogcons, setpriv, setserial, setsid, setuidgid, sha1sum, sha256sum, sha3sum, sha512sum, showkey, shred, shuf, slattach, sleep, smemcap, softlimit,
  sort, split, ssl_client, start-stop-daemon, stat, strings, stty, su, sulogin, sum, sv, svc, svlogd, svok, swapoff, swapon, switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tc, tcpsvd, tee,
  telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true, truncate, ts, tty, ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol,
  ubiupdatevol, udhcpc, udhcpc6, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq, unix2dos, unlink, unlzma, unshare, unxz, unzip, uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock,
  volname, w, wall, watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd, xz, xzcat, yes, zcat, zcip
[root@T113-s3 /root]# 

#49 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-23 16:52:41

[root@T113-s3 /root]# du -hd1 /
1.5M    /bin
0 /dev
152.0K  /etc
9.7M    /lib
0 /mnt
0 /run
0 /sys
0 /var
29.9M   /usr
0 /proc
0 /sbin
2.6M    /root
4.0K    /parameters
43.8M   /
[root@T113-s3 /root]#

Mem: 29888K used, 89944K free, 0K shrd, 0K buff, 1740K cached
CPU:  0.0% usr  0.0% sys  0.0% nic  100% idle  0.0% io  0.0% irq  0.0% sirq
Load average: 1.00 0.83 0.44 1/40 926
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
  926   917 root     R     2672  2.2   0  0.0 top
  917     1 root     S     2764  2.3   0  0.0 -bash
    1     0 root     S     2672  2.2   0  0.0 init
  735     2 root     IW       0  0.0   0  0.0 [kworker/0:2-eve]
  614     2 root     SW       0  0.0   0  0.0 [spi0]
    9     2 root     SW       0  0.0   0  0.0 [ksoftirqd/0]
   19     2 root     IW       0  0.0   0  0.0 [kworker/u4:1-ev]
  905     2 root     DW       0  0.0   0  0.0 [usb-hardware-sc]
   10     2 root     IW       0  0.0   0  0.0 [rcu_preempt]
    2     0 root     SW       0  0.0   0  0.0 [kthreadd]
    3     2 root     IW<      0  0.0   0  0.0 [rcu_gp]
    4     2 root     IW<      0  0.0   0  0.0 [rcu_par_gp]
    6     2 root     IW<      0  0.0   0  0.0 [kworker/0:0H]
    7     2 root     IW       0  0.0   0  0.0 [kworker/u4:0-ev]
    8     2 root     IW<      0  0.0   0  0.0 [mm_percpu_wq]
   11     2 root     SW       0  0.0   0  0.0 [migration/0]
   12     2 root     SW       0  0.0   0  0.0 [cpuhp/0]
   13     2 root     PW       0  0.0   0  0.0 [cpuhp/1]
   14     2 root     PW       0  0.0   0  0.0 [migration/1]
   15     2 root     PW       0  0.0   0  0.0 [ksoftirqd/1]
   16     2 root     IW       0  0.0   0  0.0 [kworker/1:0]
   17     2 root     IW<      0  0.0   0  0.0 [kworker/1:0H]
   18     2 root     SW       0  0.0   0  0.0 [kdevtmpfs]
   20     2 root     SW       0  0.0   0  0.0 [rcu_tasks_kthre]
  351     2 root     SW       0  0.0   0  0.0 [oom_reaper]
  352     2 root     IW<      0  0.0   0  0.0 [writeback]
  369     2 root     IW<      0  0.0   0  0.0 [kblockd]
  504     2 root     SW       0  0.0   0  0.0 [ion_system_heap]
  518     2 root     SW       0  0.0   0  0.0 [watchdogd]
  625     2 root     SW       0  0.0   0  0.0 [kswapd0]
  718     2 root     SW       0  0.0   0  0.0 [vsync proc 0]
  719     2 root     SW       0  0.0   0  0.0 [vsync proc 1]
  778     2 root     IW<      0  0.0   0  0.0 [uas]
  814     2 root     SW       0  0.0   0  0.0 [rc0]
  835     2 root     SW       0  0.0   0  0.0 [irq/38-mmc0]
  837     2 root     SW       0  0.0   0  0.0 [irq/196-4020000]
  839     2 root     SW       0  0.0   0  0.0 [irq/39-mmc1]
  854     2 root     IW<      0  0.0   0  0.0 [ipv6_addrconf]
  879     2 root     IW       0  0.0   0  0.0 [kworker/0:3-pm]
  903     2 root     SW       0  0.0   0  0.0 [ubi_bgt0d]

[root@T113-s3 /root]# 

#50 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-23 16:49:15

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 23 2022 - 16:39:41 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3e6488 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b4c9 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #28 SMP PREEMPT Sat Apr 23 16:07:35 CST 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: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    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] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=rootfs@mmcblk0p5 cma=8M ubi.mtd=4 rootfstype=ubifs root=ubi0:rootfs ro rootwait
[    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: 110616K/131072K available (6144K kernel code, 378K rwdata, 1916K rodata, 1024K init, 148K bss, 12264K 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] rcu:   RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x3d8 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.008000] Switching to timer-based delay loop, resolution 41ns
[    0.014183] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023933] Console: colour dummy device 80x30
[    0.028415] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038777] pid_max: default: 32768 minimum: 301
[    0.043537] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050865] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059223] CPU: Testing write buffer coherency: ok
[    0.064479] /cpus/cpu@0 missing clock-frequency property
[    0.069815] /cpus/cpu@1 missing clock-frequency property
[    0.075168] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081424] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088119] rcu: Hierarchical SRCU implementation.
[    0.093388] smp: Bringing up secondary CPUs ...
[    0.098503] smp: Brought up 1 node, 1 CPU
[    0.102521] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108784] CPU: All CPU(s) started in SVC mode.
[    0.113817] devtmpfs: initialized
[    0.128766] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.137126] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147270] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154498] pinctrl core: initialized pinctrl subsystem
[    0.161804] NET: Registered protocol family 16
[    0.166521] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173994] cma: cma_alloc(): returned (ptrval)
[    0.178690] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.242627] rtc_ccu: sunxi ccu init OK
[    0.249844] ccu: sunxi ccu init OK
[    0.253935] r_ccu: sunxi ccu init OK
[    0.320698] iommu: Default domain type: Translated 
[    0.325785] sunxi iommu: irq = 24
[    0.332367] SCSI subsystem initialized
[    0.337300] usbcore: registered new interface driver usbfs
[    0.343576] usbcore: registered new interface driver hub
[    0.349163] usbcore: registered new device driver usb
[    0.357941] pwm module init!
[    0.362733] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.371253] clocksource: Switched to clocksource arch_sys_counter
[    0.387697] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.420092] thermal_sys: Registered thermal governor 'step_wise'
[    0.420098] thermal_sys: Registered thermal governor 'user_space'
[    0.427095] thermal_sys: Registered thermal governor 'power_allocator'
[    0.434368] NET: Registered protocol family 2
[    0.446465] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.454937] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.462667] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.469720] TCP: Hash tables configured (established 1024 bind 1024)
[    0.476281] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.482885] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.490042] NET: Registered protocol family 1
[    0.495323] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.505938] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.512947] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.519090] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.525625] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.532141] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.540564] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.547073] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 41
[    0.558009] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.582064] ntfs: driver 2.1.32 [Flags: R/W].
[    0.587639] NET: Registered protocol family 38
[    0.593022] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.600414] io scheduler mq-deadline registered
[    0.605332] io scheduler kyber registered
[    0.611637] [DISP]disp_module_init
[    0.616391] disp 5000000.disp: Adding to iommu group 0
[    0.638903] display_fb_request,fb_id:0
[    0.647335] [DISP] Fb_copy_boot_fb,line:1443:
[    0.647340] no boot_fb0
[    0.654787] disp_al_manager_apply ouput_type:0
[    0.660108] [DISP]disp_module_init finish
[    0.664441] [DISP] lcd_clk_config,line:732:
[    0.664452] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.664452]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.686571] sunxi_sid_init()551 - insmod ok
[    0.691831] pwm-regulator: supplied by regulator-dummy
[    0.698814] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.709783] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.720050] uart uart0: get regulator failed
[    0.724542] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.732190] uart0: ttyS0 at MMIO 0x2500000 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.740028] sw_console_setup()1784 - console setup baud 115200 parity n bits 8, flow n
[    0.748197] printk: console [ttyS0] enabled
[    0.748197] printk: console [ttyS0] enabled
[    0.757133] printk: bootconsole [earlycon0] disabled
[    0.757133] printk: bootconsole [earlycon0] disabled
[    0.768610] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.780307] uart uart3: get regulator failed
[    0.785198] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.793389] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI
[    0.803733] misc dump reg init
[    0.809823] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.816377] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.826029] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.833458] Creating 5 MTD partitions on "spi0.0":
[    0.838841] 0x000000000000-0x000000100000 : "boot0"
[    0.847555] 0x000000100000-0x000000200000 : "u-boot"
[    0.856622] 0x000000200000-0x000000220000 : "dtb"
[    0.863254] 0x000000220000-0x000000820000 : "kernel"
[    0.870445] random: fast init done
[    0.888314] 0x000000820000-0x000008000000 : "rootfs"
[    0.941466] [DISP] disp_device_attached_and_enable,line:233:
[    0.941473] attached ok, mgr0<-->dev0
[    0.960661] [DISP] disp_device_attached_and_enable,line:236:
[    0.960670] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    1.208132] libphy: Fixed MDIO Bus: probed
[    1.213343] CAN device driver interface
[    1.218049] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.225549] sunxi-ehci: EHCI SUNXI driver
[    1.230471] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.237653] sunxi-ohci: OHCI SUNXI driver
[    1.243051] usbcore: registered new interface driver uas
[    1.249382] usbcore: registered new interface driver usb-storage
[    1.256416] usbcore: registered new interface driver ums-alauda
[    1.263332] usbcore: registered new interface driver ums-cypress
[    1.270337] usbcore: registered new interface driver ums-datafab
[    1.277325] usbcore: registered new interface driver ums_eneub6250
[    1.284606] usbcore: registered new interface driver ums-freecom
[    1.291584] usbcore: registered new interface driver ums-isd200
[    1.298446] usbcore: registered new interface driver ums-jumpshot
[    1.305499] usbcore: registered new interface driver ums-karma
[    1.312300] usbcore: registered new interface driver ums-onetouch
[    1.319400] usbcore: registered new interface driver ums-realtek
[    1.326375] usbcore: registered new interface driver ums-sddr09
[    1.333321] usbcore: registered new interface driver ums-sddr55
[    1.340209] usbcore: registered new interface driver ums-usbat
[    1.348101] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    1.358216] sunxi_gpadc_init,2137, success
[    1.363998] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.376776] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.383066] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:13 UTC (13)
[    1.392206] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.398227] i2c /dev entries driver
[    1.402612] IR NEC protocol handler initialized
[    1.407696] IR RC5(x/sz) protocol handler initialized
[    1.414002] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    1.425517] sunxi_ir_startup: get ir protocol failed
[    1.425537] (NULL device *): deviceless supply  not found, using dummy regulator
[    1.439619] Registered IR keymap rc_map_sunxi
[    1.444852] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.453843] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.464159] sunxi cedar version 1.1
[    1.468315] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.474960] VE: sunxi_cedar_probe power-domain init!!!
[    1.480732] VE: install start!!!
[    1.480732] 
[    1.486556] VE: cedar-ve the get irq is 42
[    1.486556] 
[    1.493280] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.493280] 
[    1.502719] VE: install end!!!
[    1.502719] 
[    1.507802] VE: sunxi_cedar_probe
[    1.513138] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.526295] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.536904] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.543241] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.549591] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.556306] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.562799] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.569355] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.575957] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.582515] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.589576] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.594880] cma: cma_alloc(cma (ptrval), count 2, align 1)
[    1.601196] cma: cma_alloc(): returned (ptrval)
[    1.606326] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.613132] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.624481] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.644678] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.669209] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.669267] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.686769] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.696939] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.703335] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.709721] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.716233] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.722761] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.729308] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.735908] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.742488] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.749056] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.758256] cma: cma_alloc(cma (ptrval), count 4, align 2)
[    1.764526] cma: cma_alloc(): returned (ptrval)
[    1.769934] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.781295] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.801305] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.825580] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    1.833182] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.845473] usbcore: registered new interface driver usbhid
[    1.852146] usbhid: USB HID core driver
[    1.859412] NET: Registered protocol family 10
[    1.864490] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.877862] Segment Routing with IPv6
[    1.882448] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.889517] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    1.900602] NET: Registered protocol family 17
[    1.906222] NET: Registered protocol family 15
[    1.911320] can: controller area network core (rev 20170425 abi 9)
[    1.918391] NET: Registered protocol family 29
[    1.923497] can: raw protocol (rev 20170425)
[    1.928317] can: broadcast manager protocol (rev 20170425 t)
[    1.934835] can: netlink gateway (rev 20190810) max_hops=1
[    1.941584] Registering SWP/SWPB emulation handler
[    1.954348] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.978556] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.991405] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.999131] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.012086] i2c i2c2: probe success
[    2.021627] mmc1: new high speed SDIO card at address 0001
[    2.062378] get ehci0-controller wakeup-source is fail.
[    2.068385] sunxi ehci0-controller don't init wakeup source
[    2.075002] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b7bb18, 0x:c92b1000, irq_no:38
[    2.087096] [sunxi-ehci0]: Not init ehci0
[    2.092131] get ohci0-controller wakeup-source is fail.
[    2.098105] sunxi ohci0-controller don't init wakeup source
[    2.104632] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b7bda8
[    2.114343] [sunxi-ohci0]: Not init ohci0
[    2.119318] get ehci1-controller wakeup-source is fail.
[    2.125476] sunxi ehci1-controller don't init wakeup source
[    2.131807] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b7c038, 0x:c92bb000, irq_no:3a
[    2.144212] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    2.157912] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    2.165226] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    2.174987] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.181227] cma: cma_alloc(): returned (ptrval)
[    2.186437] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.192646] cma: cma_alloc(): returned (ptrval)
[    2.197738] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.203964] cma: cma_alloc(): returned (ptrval)
[    2.209125] sunxi-ehci 4200000.ehci1-controller: irq 58, io mem 0x04200000
[    2.241263] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    2.250145] hub 1-0:1.0: USB hub found
[    2.254653] hub 1-0:1.0: 1 port detected
[    2.260133] get ohci1-controller wakeup-source is fail.
[    2.266457] sunxi ohci1-controller don't init wakeup source
[    2.272816] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b7c2c8
[    2.282886] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    2.295522] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    2.302981] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    2.312721] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.318997] cma: cma_alloc(): returned (ptrval)
[    2.324286] sunxi-ohci 4200400.ohci1-controller: irq 59, io mem 0x04200400
[    2.406291] hub 2-0:1.0: USB hub found
[    2.410698] hub 2-0:1.0: 1 port detected
[    2.416373] ubi0: attaching mtd4
[    2.458590] random: crng init done
[    3.177011] ubi0: scanning is finished
[    3.192299] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[    3.198749] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.206725] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.214396] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.222287] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[    3.229023] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    3.237206] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 267458052
[    3.247394] ubi0: available PEBs: 0, total reserved PEBs: 959, PEBs reserved for bad PEB handling: 40
[    3.257791] ubi0: background thread "ubi_bgt0d" started, PID 903
[    3.266181] clk: Not disabling unused clocks
[    3.271024] alloc_fd: slot 0 not NULL!
[    3.277186] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.333369] UBIFS (ubi0:0): recovery needed
[    3.393952] UBIFS (ubi0:0): recovery deferred
[    3.398972] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    3.408282] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.419428] UBIFS (ubi0:0): FS size: 114786304 bytes (109 MiB, 904 LEBs), journal size 5713920 bytes (5 MiB, 45 LEBs)
[    3.431340] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    3.438768] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 4A5D7D8F-3C66-4BB0-8C4C-E59EDCC1D11C, small LPT model
[    3.454481] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    3.463945] Freeing unused kernel memory: 1024K
[    3.469184] Run /init as init process
login[917]: root login on 'ttyS0'
[root@T113-s3 /root]# 

启动成功 !...

#51 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-23 10:49:10

[    5.531496] clk: Not disabling unused clocks
[    5.539682] cfg80211: failed to load regulatory.db
[    5.544445] ALSA device list:
[    5.553120]   #0: audiocodec
[    5.556361] alloc_fd: slot 0 not NULL!
[    5.591259] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Opts: (null)
[    5.601546] VFS: Mounted root (ext4 filesystem) readonly on device 179:5.
[    5.611037] Freeing unused kernel memory: 1024K
[    5.621591] Kernel init done
[    5.624821] Run /init as init process
login[971]: root login on 'console'
-bash: cannot set terminal process group (-1): Inappropriate ioctl for device
-bash: no job control in this shell
[root@T113-s3 /root]# 

#52 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 23:26:24

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 22:42:46 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
Kernel image @ 0x40080000 [ 0x000000 - 0x3e64c8 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 43f5b000, end 43f6b51d ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #19 SMP PREEMPT Fri Apr 22 23:02:45 CST 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: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    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] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=4 root=/dev/mmcblk0p2
[    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: 110616K/131072K available (6144K kernel code, 378K rwdata, 1916K rodata, 1024K init, 148K bss, 12264K 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] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x3d8 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.008009] Switching to timer-based delay loop, resolution 41ns
[    0.014188] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023935] Console: colour dummy device 80x30
[    0.028425] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038780] pid_max: default: 32768 minimum: 301
[    0.043533] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050862] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059216] CPU: Testing write buffer coherency: ok
[    0.064450] /cpus/cpu@0 missing clock-frequency property
[    0.069778] /cpus/cpu@1 missing clock-frequency property
[    0.075124] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081384] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088067] rcu: Hierarchical SRCU implementation.
[    0.093348] smp: Bringing up secondary CPUs ...
[    0.098456] smp: Brought up 1 node, 1 CPU
[    0.102482] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108750] CPU: All CPU(s) started in SVC mode.
[    0.113786] devtmpfs: initialized
[    0.128674] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.137019] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147159] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154371] pinctrl core: initialized pinctrl subsystem
[    0.161704] NET: Registered protocol family 16
[    0.166382] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173840] cma: cma_alloc(): returned (ptrval)
[    0.178529] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.241603] rtc_ccu: sunxi ccu init OK
[    0.248623] ccu: sunxi ccu init OK
[    0.252571] r_ccu: sunxi ccu init OK
[    0.319382] iommu: Default domain type: Translated
[    0.324472] sunxi iommu: irq = 24
[    0.330970] SCSI subsystem initialized
[    0.335886] usbcore: registered new interface driver usbfs
[    0.342293] usbcore: registered new interface driver hub
[    0.347894] usbcore: registered new device driver usb
[    0.356669] pwm module init!
[    0.361452] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.369947] clocksource: Switched to clocksource arch_sys_counter
[    0.386410] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.418851] thermal_sys: Registered thermal governor 'step_wise'
[    0.418857] thermal_sys: Registered thermal governor 'user_space'
[    0.425844] thermal_sys: Registered thermal governor 'power_allocator'
[    0.433138] NET: Registered protocol family 2
[    0.445237] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.453704] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.461440] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.468494] TCP: Hash tables configured (established 1024 bind 1024)
[    0.475060] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.481666] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.488823] NET: Registered protocol family 1
[    0.494121] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.504720] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.511737] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.517882] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.524423] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.530930] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.539354] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.545860] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 40
[    0.556774] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.580537] ntfs: driver 2.1.32 [Flags: R/W].
[    0.586060] NET: Registered protocol family 38
[    0.591675] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.599075] io scheduler mq-deadline registered
[    0.604035] io scheduler kyber registered
[    0.610371] [DISP]disp_module_init
[    0.615108] disp 5000000.disp: Adding to iommu group 0
[    0.637628] display_fb_request,fb_id:0
[    0.646032] [DISP] Fb_copy_boot_fb,line:1443:
[    0.646037] no boot_fb0
[    0.653505] disp_al_manager_apply ouput_type:0
[    0.658876] [DISP]disp_module_init finish
[    0.663220] [DISP] lcd_clk_config,line:732:
[    0.663232] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.663232]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.685321] sunxi_sid_init()551 - insmod ok
[    0.690542] pwm-regulator: supplied by regulator-dummy
[    0.697585] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.708563] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.718843] uart uart3: get regulator failed
[    0.723340] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.730980] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.740395] misc dump reg init
[    0.746127] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.752038] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.760832] 5 fixed-partitions partitions found on MTD device spi0.0
[    0.767180] Creating 5 MTD partitions on "spi0.0":
[    0.772208] 0x000000000000-0x000000100000 : "boot0"
[    0.780451] 0x000000100000-0x000000200000 : "u-boot"
[    0.788783] 0x000000200000-0x000000220000 : "dtb"
[    0.794883] 0x000000220000-0x000000820000 : "kernel"
[    0.801634] random: fast init done
[    0.818649] 0x000000820000-0x000008000000 : "rootfs"
[    0.940142] [DISP] disp_device_attached_and_enable,line:233:
[    0.940148] attached ok, mgr0<-->dev0
[    0.949476] [DISP] disp_device_attached_and_enable,line:236:
[    0.949484] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    1.133692] libphy: Fixed MDIO Bus: probed
[    1.137799] CAN device driver interface
[    1.142628] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.149201] sunxi-ehci: EHCI SUNXI driver
[    1.153817] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.160197] sunxi-ohci: OHCI SUNXI driver
[    1.164944] usbcore: registered new interface driver uas
[    1.170833] usbcore: registered new interface driver usb-storage
[    1.177082] usbcore: registered new interface driver ums-alauda
[    1.183302] usbcore: registered new interface driver ums-cypress
[    1.189553] usbcore: registered new interface driver ums-datafab
[    1.195760] usbcore: registered new interface driver ums_eneub6250
[    1.202319] usbcore: registered new interface driver ums-freecom
[    1.208559] usbcore: registered new interface driver ums-isd200
[    1.214686] usbcore: registered new interface driver ums-jumpshot
[    1.221045] usbcore: registered new interface driver ums-karma
[    1.227107] usbcore: registered new interface driver ums-onetouch
[    1.233488] usbcore: registered new interface driver ums-realtek
[    1.239738] usbcore: registered new interface driver ums-sddr09
[    1.245916] usbcore: registered new interface driver ums-sddr55
[    1.252110] usbcore: registered new interface driver ums-usbat
[    1.259315] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    1.268386] sunxi_gpadc_init,2137, success
[    1.273615] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.285183] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.290884] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:23 UTC (23)
[    1.298946] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.304458] i2c /dev entries driver
[    1.308340] IR NEC protocol handler initialized
[    1.312969] IR RC5(x/sz) protocol handler initialized
[    1.318464] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    1.328766] sunxi_ir_startup: get ir protocol failed
[    1.328786] (NULL device *): deviceless supply  not found, using dummy regulator
[    1.341367] Registered IR keymap rc_map_sunxi
[    1.346003] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.354076] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.363363] sunxi cedar version 1.1
[    1.367105] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.373062] VE: sunxi_cedar_probe power-domain init!!!
[    1.378201] VE: install start!!!
[    1.378201]
[    1.383480] VE: cedar-ve the get irq is 41
[    1.383480]
[    1.389270] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.389270]
[    1.397873] VE: install end!!!
[    1.397873]
[    1.402525] VE: sunxi_cedar_probe
[    1.407378] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.419605] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.429096] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.434802] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.440713] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.446471] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.452294] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.458129] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.464053] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.469887] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.476271] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.481045] cma: cma_alloc(cma (ptrval), count 2, align 1)
[    1.486689] cma: cma_alloc(): returned (ptrval)
[    1.491259] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.497329] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.507422] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.526830] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.550132] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.555212] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.566222] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-05-24 16:10)
[    1.575296] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    1.581069] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    1.586771] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    1.592620] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    1.598395] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.608804] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    1.614700] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    1.620656] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    1.626517] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    1.632461] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    1.640561] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.651132] cma: cma_alloc(cma (ptrval), count 4, align 2)
[    1.656803] cma: cma_alloc(): returned (ptrval)
[    1.661715] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.671857] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    1.678667] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.699991] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.722986] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    1.729820] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.740968] usbcore: registered new interface driver usbhid
[    1.746554] usbhid: USB HID core driver
[    1.753711] NET: Registered protocol family 10
[    1.758197] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.770558] Segment Routing with IPv6
[    1.774320] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.782374] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    1.791407] NET: Registered protocol family 17
[    1.796393] NET: Registered protocol family 15
[    1.801049] can: controller area network core (rev 20170425 abi 9)
[    1.807369] NET: Registered protocol family 29
[    1.812029] can: raw protocol (rev 20170425)
[    1.816354] can: broadcast manager protocol (rev 20170425 t)
[    1.822120] can: netlink gateway (rev 20190810) max_hops=1
[    1.828144] Registering SWP/SWPB emulation handler
[    1.840747] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.858573] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.870124] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.883549] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.893509] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.903883] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.914460] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    1.925354] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.933419] i2c i2c2: probe success
[    1.938276] mmc1: new high speed SDIO card at address 0001
[    1.945732] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    1.990264] mmc0: new high speed SDHC card at address 59b4
[    1.997053] get ehci0-controller wakeup-source is fail.
[    2.003592] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    2.008234] sunxi ehci0-controller don't init wakeup source
[    2.014011] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b7bb18, 0x:c92b1000, irq_no:37
[    2.024806] [sunxi-ehci0]: Not init ehci0
[    2.029378] get ohci0-controller wakeup-source is fail.
[    2.034965] sunxi ohci0-controller don't init wakeup source
[    2.040620] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b7bda8
[    2.049250] [sunxi-ohci0]: Not init ohci0
[    2.053783] get ehci1-controller wakeup-source is fail.
[    2.059117] sunxi ehci1-controller don't init wakeup source
[    2.064957] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b7c038, 0x:c92bb000, irq_no:39
[    2.076061] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    2.089152] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    2.096042] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    2.105026] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.110720]  mmcblk0: p1 p2
[    2.115238] cma: cma_alloc(): returned (ptrval)
[    2.119806] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.125705] cma: cma_alloc(): returned (ptrval)
[    2.130333] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.135870] cma: cma_alloc(): returned (ptrval)
[    2.140549] sunxi-ehci 4200000.ehci1-controller: irq 57, io mem 0x04200000
[    2.169972] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    2.178007] hub 1-0:1.0: USB hub found
[    2.182068] hub 1-0:1.0: 1 port detected
[    2.187077] get ohci1-controller wakeup-source is fail.
[    2.192765] sunxi ohci1-controller don't init wakeup source
[    2.198372] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b7c2c8
[    2.207384] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    2.218714] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    2.225435] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    2.234168] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    2.239766] cma: cma_alloc(): returned (ptrval)
[    2.244465] sunxi-ohci 4200400.ohci1-controller: irq 58, io mem 0x04200400
[    2.325014] hub 2-0:1.0: USB hub found
[    2.329003] hub 2-0:1.0: 1 port detected
[    2.334271] ubi0: attaching mtd4
[    2.378101] random: crng init done
[    3.090204] ubi0: scanning is finished
[    3.104806] ubi0: attached mtd4 (name "rootfs", size 119 MiB)
[    3.110730] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.117620] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.124455] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.131519] ubi0: good PEBs: 959, bad PEBs: 0, corrupted PEBs: 0
[    3.137517] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
[    3.144807] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 1343052751
[    3.153997] ubi0: available PEBs: 915, total reserved PEBs: 44, PEBs reserved for bad PEB handling: 40
[    3.163349] ubi0: background thread "ubi_bgt0d" started, PID 905
[    3.171070] clk: Not disabling unused clocks
[    3.175366] alloc_fd: slot 0 not NULL!
[    3.179167] Warning: unable to open an initial console.
[    3.187028] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[    3.194448] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[    3.700451] EXT4-fs (mmcblk0p2): recovery complete
[    3.712192] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    3.720454] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    3.729045] Freeing unused kernel memory: 1024K
[    3.740110] Run /init as init process
[    4.833516] udevd[948]: starting version 3.2
[    4.874240] udevd[949]: starting eudev-3.2
[    5.002459] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

#53 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 21:10:30

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0
Kernel image @ 0x40080000 [ 0x000000 - 0x3a6ce0 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b363 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #15 SMP PREEMPT Fri Apr 22 21:08:34 CST 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: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    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] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    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: 112660K/131072K available (5120K kernel code, 385K rwdata, 1836K rodata, 1024K init, 148K bss, 10220K 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] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x3d8 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.008018] Switching to timer-based delay loop, resolution 41ns
[    0.014198] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023950] Console: colour dummy device 80x30
[    0.028422] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038792] pid_max: default: 32768 minimum: 301
[    0.043537] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050864] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059226] CPU: Testing write buffer coherency: ok
[    0.064485] /cpus/cpu@0 missing clock-frequency property
[    0.069822] /cpus/cpu@1 missing clock-frequency property
[    0.075159] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081401] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088093] rcu: Hierarchical SRCU implementation.
[    0.093369] smp: Bringing up secondary CPUs ...
[    0.098488] smp: Brought up 1 node, 1 CPU
[    0.102497] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108757] CPU: All CPU(s) started in SVC mode.
[    0.113802] devtmpfs: initialized
[    0.128441] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.136823] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146961] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154173] pinctrl core: initialized pinctrl subsystem
[    0.161521] NET: Registered protocol family 16
[    0.166193] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173644] cma: cma_alloc(): returned (ptrval)
[    0.178331] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.247195] rtc_ccu: sunxi ccu init OK
[    0.254130] ccu: sunxi ccu init OK
[    0.258684] r_ccu: sunxi ccu init OK
[    0.330401] iommu: Default domain type: Translated
[    0.335487] sunxi iommu: irq = 24
[    0.341900] SCSI subsystem initialized
[    0.346852] usbcore: registered new interface driver usbfs
[    0.353270] usbcore: registered new interface driver hub
[    0.358863] usbcore: registered new device driver usb
[    0.367122] pwm module init!
[    0.371957] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.380557] clocksource: Switched to clocksource arch_sys_counter
[    0.396902] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.429359] thermal_sys: Registered thermal governor 'step_wise'
[    0.429366] thermal_sys: Registered thermal governor 'user_space'
[    0.436662] thermal_sys: Registered thermal governor 'power_allocator'
[    0.443974] NET: Registered protocol family 2
[    0.456090] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.464571] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.472317] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.479370] TCP: Hash tables configured (established 1024 bind 1024)
[    0.485928] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.492548] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.499691] NET: Registered protocol family 1
[    0.505001] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.515626] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.522636] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.528777] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.535310] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.541826] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.550250] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.556774] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 40
[    0.567746] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.589606] ntfs: driver 2.1.32 [Flags: R/W].
[    0.594961] NET: Registered protocol family 38
[    0.599745] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.607837] io scheduler mq-deadline registered
[    0.612573] io scheduler kyber registered
[    0.618765] [DISP]disp_module_init
[    0.623577] disp 5000000.disp: Adding to iommu group 0
[    0.645852] display_fb_request,fb_id:0
[    0.654557] [DISP] Fb_copy_boot_fb,line:1443:
[    0.654562] no boot_fb0
[    0.662009] disp_al_manager_apply ouput_type:0
[    0.667397] [DISP]disp_module_init finish
[    0.671735] [DISP] lcd_clk_config,line:732:
[    0.671746] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.671746]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.693982] sunxi_sid_init()551 - insmod ok
[    0.699130] pwm-regulator: supplied by regulator-dummy
[    0.706320] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.717268] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.727641] uart uart3: get regulator failed
[    0.732050] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.739812] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.749141] misc dump reg init
[    0.755269] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.761107] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.771228] libphy: Fixed MDIO Bus: probed
[    0.775343] CAN device driver interface
[    0.779444] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.787087] sunxi-ehci: EHCI SUNXI driver
[    0.791839] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.798051] sunxi-ohci: OHCI SUNXI driver
[    0.803140] usbcore: registered new interface driver uas
[    0.808836] usbcore: registered new interface driver usb-storage
[    0.815108] usbcore: registered new interface driver ums-alauda
[    0.821390] usbcore: registered new interface driver ums-cypress
[    0.827620] usbcore: registered new interface driver ums-datafab
[    0.833806] usbcore: registered new interface driver ums_eneub6250
[    0.840230] usbcore: registered new interface driver ums-freecom
[    0.846479] usbcore: registered new interface driver ums-isd200
[    0.852739] usbcore: registered new interface driver ums-jumpshot
[    0.859052] usbcore: registered new interface driver ums-karma
[    0.865111] usbcore: registered new interface driver ums-onetouch
[    0.871508] usbcore: registered new interface driver ums-realtek
[    0.877746] usbcore: registered new interface driver ums-sddr09
[    0.883942] usbcore: registered new interface driver ums-sddr55
[    0.890112] usbcore: registered new interface driver ums-usbat
[    0.897410] input: sunxi-ts as /devices/platform/soc@3000000/2009c00.rtp/input/input1
[    0.906614] sunxi_gpadc_init,2137, success
[    0.913424] sunxi-rtc 7090000.rtc: registered as rtc0
[    0.918597] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:14:52 UTC (892)
[    0.927244] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    0.932939] i2c /dev entries driver
[    0.936836] IR NEC protocol handler initialized
[    0.941577] IR RC5(x/sz) protocol handler initialized
[    0.947075] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.957167] [DISP] disp_device_attached_and_enable,line:233:
[    0.957172] attached ok, mgr0<-->dev0
[    0.966893] sunxi_ir_startup: get ir protocol failed
[    0.966912] (NULL device *): deviceless supply  not found, using dummy regulator
[    0.979452] Registered IR keymap rc_map_sunxi
[    0.983886] [DISP] disp_device_attached_and_enable,line:236:
[    0.983895] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    0.998189] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[    1.006202] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[    1.015602] sunxi cedar version 1.1
[    1.019292] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.025267] VE: sunxi_cedar_probe power-domain init!!!
[    1.030448] VE: install start!!!
[    1.030448]
[    1.035677] VE: cedar-ve the get irq is 41
[    1.035677]
[    1.041738] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[    1.041738]
[    1.050050] VE: install end!!!
[    1.050050]
[    1.054712] VE: sunxi_cedar_probe
[    1.059706] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.069833] usbcore: registered new interface driver usbhid
[    1.076010] usbhid: USB HID core driver
[    1.082683] NET: Registered protocol family 10
[    1.088926] Segment Routing with IPv6
[    1.093119] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.101366] NET: Registered protocol family 17
[    1.105842] NET: Registered protocol family 15
[    1.110280] can: controller area network core (rev 20170425 abi 9)
[    1.117141] NET: Registered protocol family 29
[    1.121665] can: raw protocol (rev 20170425)
[    1.125949] can: broadcast manager protocol (rev 20170425 t)
[    1.131712] can: netlink gateway (rev 20190810) max_hops=1
[    1.137655] Registering SWP/SWPB emulation handler
[    1.145542] HDMI 2.0 driver init start!
[    1.149436] boot_hdmi=false
[    1.152606] ERROR: can not get hdmi_cts_compatibility
[    1.157670] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    1.164282] HDMI2.0 module init end
[    1.185545] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    1.195937] i2c i2c2: i2c2 supply twi not found, using dummy regulator
[    1.203843] i2c i2c2: probe success
[    1.251684] get ehci0-controller wakeup-source is fail.
[    1.257017] sunxi ehci0-controller don't init wakeup source
[    1.262968] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc097d980, 0x:c887a000, irq_no:37
[    1.273758] [sunxi-ehci0]: Not init ehci0
[    1.278252] get ohci0-controller wakeup-source is fail.
[    1.283834] sunxi ohci0-controller don't init wakeup source
[    1.289422] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc097dc10
[    1.298160] [sunxi-ohci0]: Not init ohci0
[    1.302695] get ehci1-controller wakeup-source is fail.
[    1.308030] sunxi ehci1-controller don't init wakeup source
[    1.313823] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc097dea0, 0x:c92b5000, irq_no:39
[    1.324913] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[    1.337329] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    1.343902] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    1.352635] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.358257] cma: cma_alloc(): returned (ptrval)
[    1.362901] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.368411] cma: cma_alloc(): returned (ptrval)
[    1.373012] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.378523] cma: cma_alloc(): returned (ptrval)
[    1.383193] sunxi-ehci 4200000.ehci1-controller: irq 57, io mem 0x04200000
[    1.410570] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    1.418584] hub 1-0:1.0: USB hub found
[    1.422606] hub 1-0:1.0: 1 port detected
[    1.427585] get ohci1-controller wakeup-source is fail.
[    1.433308] sunxi ohci1-controller don't init wakeup source
[    1.438888] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc097e130
[    1.447997] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[    1.459281] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    1.466035] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    1.474731] cma: cma_alloc(cma (ptrval), count 1, align 0)
[    1.480347] cma: cma_alloc(): returned (ptrval)
[    1.485057] sunxi-ohci 4200400.ohci1-controller: irq 58, io mem 0x04200400
[    1.565611] hub 2-0:1.0: USB hub found
[    1.569575] hub 2-0:1.0: 1 port detected
[    1.574804] UBI error: cannot open mtd 5, error -19
[    1.581840] clk: Not disabling unused clocks
[    1.586144] alloc_fd: slot 0 not NULL!
[    1.589927] Warning: unable to open an initial console.
[    1.595556] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[    1.603757] Please append a correct "root=" boot option; here are the available partitions:
[    1.612202] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    1.620476] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.61 #15
[    1.626471] Hardware name: Generic DT based system
[    1.631296] [<c010e310>] (unwind_backtrace) from [<c010a8bc>] (show_stack+0x10/0x14)
[    1.639042] [<c010a8bc>] (show_stack) from [<c05c9bc4>] (dump_stack+0x7c/0x98)
[    1.646268] [<c05c9bc4>] (dump_stack) from [<c01193dc>] (panic+0x100/0x3d0)
[    1.653242] [<c01193dc>] (panic) from [<c0801264>] (mount_block_root+0x248/0x344)
[    1.660718] [<c0801264>] (mount_block_root) from [<c0801464>] (prepare_namespace+0x84/0x178)
[    1.669164] [<c0801464>] (prepare_namespace) from [<c05dde20>] (kernel_init+0x8/0x10c)
[    1.677074] [<c05dde20>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    1.684648] Exception stack(0xc7025fb0 to 0xc7025ff8)
[    1.689701] 5fa0:                                     00000000 00000000 00000000 00000000
[    1.697885] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.706059] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    1.712674] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

#54 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 18:32:31

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3a6ce0 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b35f ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #13 SMP PREEMPT Fri Apr 22 18:30:15 CST 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: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    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] percpu: Embedded 15 pages/cpu s30860 r8192 d22388 u61440
[    0.000000] pcpu-alloc: s30860 r8192 d22388 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: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    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: 112660K/131072K available (5120K kernel code, 385K rwdata, 1836K rodata, 1024K init, 148K bss, 10220K 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] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000]  Tasks RCU enabled.
[    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] random: get_random_bytes called from start_kernel+0x250/0x3d8 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.008026] Switching to timer-based delay loop, resolution 41ns
[    0.014206] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023961] Console: colour dummy device 80x30
[    0.028451] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038831] pid_max: default: 32768 minimum: 301
[    0.043584] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050902] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.059240] CPU: Testing write buffer coherency: ok
[    0.064506] /cpus/cpu@0 missing clock-frequency property
[    0.069825] /cpus/cpu@1 missing clock-frequency property
[    0.075171] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.081437] Setting up static identity map for 0x40100000 - 0x40100060
[    0.088132] rcu: Hierarchical SRCU implementation.
[    0.093414] smp: Bringing up secondary CPUs ...
[    0.098530] smp: Brought up 1 node, 1 CPU
[    0.102539] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.108796] CPU: All CPU(s) started in SVC mode.
[    0.113839] devtmpfs: initialized
[    0.128503] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.136863] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.147016] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.154258] pinctrl core: initialized pinctrl subsystem
[    0.161610] NET: Registered protocol family 16
[    0.166308] cma: cma_alloc(cma (ptrval), count 64, align 6)
[    0.173762] cma: cma_alloc(): returned (ptrval)
[    0.178476] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.248527] rtc_ccu: sunxi ccu init OK
[    0.255402] ccu: sunxi ccu init OK
[    0.259983] r_ccu: sunxi ccu init OK
[    0.331437] iommu: Default domain type: Translated 
[    0.336533] sunxi iommu: irq = 24
[    0.343229] SCSI subsystem initialized
[    0.348177] usbcore: registered new interface driver usbfs
[    0.354475] usbcore: registered new interface driver hub
[    0.360062] usbcore: registered new device driver usb
[    0.368329] pwm module init!
[    0.373195] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.381822] clocksource: Switched to clocksource arch_sys_counter
[    0.398209] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.431081] thermal_sys: Registered thermal governor 'step_wise'
[    0.431088] thermal_sys: Registered thermal governor 'user_space'
[    0.438160] thermal_sys: Registered thermal governor 'power_allocator'
[    0.445493] NET: Registered protocol family 2
[    0.457598] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.466071] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.473807] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.480868] TCP: Hash tables configured (established 1024 bind 1024)
[    0.487433] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.494059] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.501227] NET: Registered protocol family 1
[    0.506555] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.517175] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.524188] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[    0.530337] sunxi_spi_resource_get()2189 - Failed to get sample mode
[    0.536893] sunxi_spi_resource_get()2194 - Failed to get sample delay
[    0.543417] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.551928] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[    0.558366] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c8821000, irq 41
[    0.569362] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.591740] ntfs: driver 2.1.32 [Flags: R/W].
[    0.597096] NET: Registered protocol family 38
[    0.602655] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.610073] io scheduler mq-deadline registered
[    0.614810] io scheduler kyber registered
[    0.621010] [DISP]disp_module_init
[    0.625859] disp 5000000.disp: Adding to iommu group 0
[    0.648198] display_fb_request,fb_id:0
[    0.656777] [DISP] Fb_copy_boot_fb,line:1443:
[    0.656783] no boot_fb0
[    0.664285] disp_al_manager_apply ouput_type:0
[    0.669627] [DISP]disp_module_init finish
[    0.673957] [DISP] lcd_clk_config,line:732:
[    0.673969] disp 0, clk: pll(364000000),clk(364000000),dclk(52000000) dsi_rate(364000000)
[    0.673969]      clk real:pll(360000000),clk(360000000),dclk(51428571) dsi_rate(0)
[    0.696246] sunxi_sid_init()551 - insmod ok
[    0.701409] pwm-regulator: supplied by regulator-dummy
[    0.708617] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.719558] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    0.729938] uart uart3: get regulator failed
[    0.734373] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.742226] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[    0.751512] misc dump reg init
[    0.757671] spi-nand spi0.0: Winbond SPI NAND was found.
[    0.763455] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    0.773661] libphy: Fixed MDIO Bus: probed
[    0.777777] CAN device driver interface
[    0.783395] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator

#55 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 17:39:31

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 17:37:29 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x3a7760 ]
## Flattened Device Tree blob at 42000000
   Booting using the fdt blob at 0x42000000
   Loading Device Tree to 43f5b000, end 43f6b3e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #10 SMP PREEMPT Fri Apr 22 17:17:39 CST 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: dma_contiguous_reserve(limit ffffffff)
[    0.000000] cma: dma_contiguous_reserve: reserving 8 MiB for global area
[    0.000000] cma: cma_declare_contiguous(size 0x00800000, base 0x00000000, limit 0xffffffff alignment 0x00000000)
[    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] Bad mode in prefetch abort handler detected
[    0.000000] Internal error: Oops - bad mode: 0 [#1] PREEMPT SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61 #10
[    0.000000] Hardware name: Generic DT based system
[    0.000000] PC is at 0xa9530408
[    0.000000] LR is at __invoke_psci_fn_smc+0x40/0x60
[    0.000000] pc : [<a9530408>]    lr : [<c04a2358>]    psr: 600001d6
[    0.000000] sp : c0901e98  ip : c0901ef0  fp : c77fff40
[    0.000000] r10: c090e064  r9 : c096bd90  r8 : 40000000
[    0.000000] r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00000000
[    0.000000] r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 84000000
[    0.000000] Flags: nZCv  IRQs off  FIQs off  Mode MON_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 4000406a  DAC: c0900000
[    0.000000] Process swapper (pid: 0, stack limit = 0x(ptrval))
[    0.000000] Stack: (0xc0901e98 to 0xc0902000)
[    0.000000] 1e80:                                                       84000000 00000000
[    0.000000] 1ea0: 00000000 00000000 00000000 00000000 00000000 00000000 40000000 c096bd90
[    0.000000] 1ec0: c090e064 c77fff40 c0901ef0 c0901e98 c04a2358 a9530408 600001d6 ffffffff
[    0.000000] 1ee0: c0900000 00000000 c0961180 c0906d80 00000000 00000000 00000000 00000000
[    0.000000] 1f00: c0901f0c 00000000 c0961180 c04a25b0 c3f5ba04 00000000 00000001 00000000
[    0.000000] 1f20: c0900000 c081882c c0900000 c76d4980 c0961180 c0906d80 40000000 c0818a94
[    0.000000] 1f40: c0900000 c0818c40 c08322c0 00000000 00000000 c0823ab8 c0908258 c08024c0
[    0.000000] 1f60: ffffffff 10c5387d 00000051 c07844a4 c0961000 43f5b000 410fc075 10c5387d
[    0.000000] 1f80: 00000000 c01575b8 c0721ea5 00000000 00000001 c0800330 00000051 c0903bc0
[    0.000000] 1fa0: c0961000 43f5b000 410fc075 10c5387d 00000000 c0800968 00000000 00000000
[    0.000000] 1fc0: 00000000 00000000 00000000 c08270c0 00000000 00000000 00000000 c0800330
[    0.000000] 1fe0: 00000051 10c0387d 00000000 43f5b000 410fc075 00000000 00000000 00000000
[    0.000000] [<c04a2358>] (__invoke_psci_fn_smc) from [<c0901e98>] (init_stack+0x1e98/0x2000)
[    0.000000] Code: bad PC value
[    0.000000] random: get_random_bytes called from init_oops_id+0x20/0x3c with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

#56 Re: 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 09:37:38

U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 22 2022 - 09:02:04 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
Kernel image @ 0x40080000 [ 0x000000 - 0x4923a0 ]
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 49fef000, end 49fff3e6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61+ (root@i9-10920) (arm-linux-gnueabihf-gcc (Linaro GCC 7.5-2019.12) 7.5.0, GNU ld (Linaro_Binutils-2019.12) 2.28.2.20170706) #1 SMP PREEMPT Wed Apr 13 17:16:30 CST 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 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] 8<--- cut here ---
[    0.000000] Unable to handle kernel paging request at virtual address c9fef000
[    0.000000] pgd = (ptrval)
[    0.000000] [c9fef000] *pgd=00000000
[    0.000000] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 5.4.61+ #1
[    0.000000] Hardware name: Generic DT based system
[    0.000000] PC is at fdt32_ld+0x0/0xc
[    0.000000] LR is at fdt_check_header+0xc/0x11c
[    0.000000] pc : [<c070d934>]    lr : [<c070d9f8>]    psr: a00000d3
[    0.000000] sp : c0c01f20  ip : 40c90097  fp : c77fff40
[    0.000000] r10: c0c0e0e4  r9 : c0c71390  r8 : 00000000
[    0.000000] r7 : c9fef000  r6 : c0b1d874  r5 : c0c8a73c  r4 : c0b1d874
[    0.000000] r3 : c9fef000  r2 : c0c8a73c  r1 : 00000000  r0 : c9fef000
[    0.000000] Flags: NzCv  IRQs off  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    0.000000] Control: 10c5387d  Table: 4000406a  DAC: 00000051
[    0.000000] Process swapper (pid: 0, stack limit = 0x(ptrval))
[    0.000000] Stack: (0xc0c01f20 to 0xc0c02000)
[    0.000000] 1f20: c0b1d874 c0c8a73c c0b1d874 c05696a4 c0b1d874 c0c08118 c0c66180 c0c06c40
[    0.000000] 1f40: 40000000 c0c71390 c0c0e0e4 c0b1e6fc 00000000 0000000c c0b28d4c c0b024c0
[    0.000000] 1f60: ffffffff 10c5387d 00000051 c09efecc c0c66000 49fef000 410fc075 10c5387d
[    0.000000] 1f80: 00000000 c01577a4 c0974d79 00000000 00000001 c0b00330 00000051 c0c03dc0
[    0.000000] 1fa0: c0c66000 49fef000 410fc075 10c5387d 00000000 c0b00968 00000000 00000000
[    0.000000] 1fc0: 00000000 00000000 00000000 c0b2d0c0 00000000 00000000 00000000 c0b00330
[    0.000000] 1fe0: 00000051 10c0387d 00000000 49fef000 410fc075 00000000 00000000 00000000
[    0.000000] [<c070d934>] (fdt32_ld) from [<c070d9f8>] (fdt_check_header+0xc/0x11c)
[    0.000000] [<c070d9f8>] (fdt_check_header) from [<c05696a4>] (__unflatten_device_tree+0x28/0xfc)
[    0.000000] [<c05696a4>] (__unflatten_device_tree) from [<c0b1e6fc>] (unflatten_device_tree+0x24/0x40)
[    0.000000] [<c0b1e6fc>] (unflatten_device_tree) from [<c0b024c0>] (setup_arch+0x618/0xa64)
[    0.000000] [<c0b024c0>] (setup_arch) from [<c0b00968>] (start_kernel+0x54/0x3e0)
[    0.000000] [<c0b00968>] (start_kernel) from [<00000000>] (0x0)
[    0.000000] Code: ebf054cb e28dd014 e49df004 c070d824 (e5900000) 
[    0.000000] random: get_random_bytes called from init_oops_id+0x20/0x3c with crng_init=0
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Kernel panic - not syncing: Attempted to kill the idle task!
[    0.000000] ---[ end Kernel panic - not syncing: Attempted to kill the idle task! ]---

#57 全志 SOC » T113-s3 spi-nand 启动 » 2022-04-22 08:09:24

Cadence
回复: 67
HELLO! BOOT0 is starting!
BOOT0 commit : #.###
set pll start
periph0 has been enabled
set pll end
board init ok
ZQ value = 0x2d
get_pmu_exist() = -1
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
mark_id: 0x60
trefi:7.8ms
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 8 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.32
DRAM CLK = 792 MHz
DRAM Type = 3 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT value: 0x42.
ddr_efuse_type: 0xa
mark_id: 0x60
DRAM SIZE =128 M
PLL_DDR_CTRL_REG:0xf8004100
DRAM_CLK_REG:0xc0000000
[TIMING DEBUG] MR2= 0x18
DRAM simple test OK.
rtc standby flag is 0x0, super standby flag is 0x0
boot0_main.c 71 128 M
spinand/spinand_osal_boot0.c 143 (NAND_CLK_BASE_ADDR + 0x0940) 0x8100000b
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 21 2022 - 23:45:21 +0800) Allwinner Technology

CPU:   SUNXI Family
Model: sun20iw1p1
DRAM:  128 MiB
[00.023]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
MMC:   
Loading Environment from FAT... In:    serial
Out:   serial
Err:   serial
starting USB...
No working controllers found
Hit any key to stop autoboot:  0 
List of MTD devices:
* spi-nand0
  - device: spi-nand@0
  - parent: spi@4025000
  - driver: spi_nand
  - path: /spi@4025000/spi-nand@0
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
          - 0x000000000000-0x000000100000 : "boot0"
          - 0x000000100000-0x000000200000 : "u-boot"
          - 0x000000200000-0x000000220000 : "dtb"
          - 0x000000220000-0x000000820000 : "kernel"
          - 0x000000820000-0x000008000000 : "rootfs"
=> 

#58 Re: 全志 SOC » 内核启动出错了??? » 2022-04-10 17:25:35

关于WIFI的调试信息操控
比如去掉如下信息:

[    7.866999] RTL871X: EEPROM type is E-FUSE
[    7.873956] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[    8.137127] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x98
[    8.144661] RTL871X: HW EFUSE
[    8.148152] RTL871X: 0x000: 
[    8.148199] 29 
[    8.151763] 81 
[    8.153862] 03 
[    8.155963] CC 
[    8.158065] 00 
[    8.160355] 00 
[    8.162460] 50 
[    8.164562] 00    
[    8.166663] 00 
[    8.169061] 00 
[    8.171350] 04 
[    8.173455] CC 
[    8.175557] 0A 
[    8.177660] 0C 
[    8.179949] 00 
[    8.182053] 00
[    8.186081] RTL871X: 0x010: 
[    8.186125] 2A 
[    8.189515] 2A 
[    8.191819] 2A 
[    8.193923] 2A 
[    8.196025] 2A 
[    8.198127] 2A 
[    8.200421] 2D 
[    8.202527] 2D    
[    8.204629] 2D 
[    8.207028] 2D 
[    8.209129] 2D 
[    8.211422] 03 
[    8.213526] FF 
[    8.215630] FF 
[    8.217731] FF 
[    8.220024] FF
[    8.224055] RTL871X: 0x020: 

1.修改drivers/net/wireless/rtl8189fs/include/autoconf.h
注释掉227行 CONFIG_DEBUG

227 //#define CONFIG_DEBUG /* DBG_871X, etc... */

2.修改drivers/net/wireless/rtl8189fs/core/rtw_debug.c

25 u32 GlobalDebugLevel = _drv_err_;

修改为

u32 GlobalDebugLevel = _drv_always_;

3.关掉全部调试信息
修改drivers/net/wireless/rtl8189fs/os_dep/linux/rtw_proc.c

135行 if( log_level >= _drv_always_ && log_level <= _drv_debug_ )

改为

if( log_level >= 0 && log_level <= _drv_debug_ )

启动起来后在sh里执行

echo 0 > /proc/net/rtl8189fs/log_level

或者drivers/net/wireless/rtl8189fs/core/rtw_debug.c

u32 GlobalDebugLevel = 0;

动态打开全部调试信息

echo 10 > /proc/net/rtl8189fs/log_level

#59 Re: 全志 SOC » 内核启动出错了??? » 2022-04-09 22:39:22

HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13 
[AUTO DEBUG] rank 0 bank = 4 
[AUTO DEBUG] rank 0 page size = 2 KB 
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 10 2022 - 10:55:44 +0800)

DRAM:  64 MiB
[00.336]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0 
Reading 131072 byte(s) (64 page(s)) at offset 0x00220000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00240000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0760c
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff17a ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #79 PREEMPT Sun Apr 10 10:21:14 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 42744K/63488K available (6745K kernel code, 755K rwdata, 2285K rodata, 196K init, 277K bss, 12552K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000026] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000358] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001008] Console: colour dummy device 80x25
[    0.001056] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001077] pid_max: default: 32768 minimum: 301
[    0.001265] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001285] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003252] ASID allocator initialised with 65536 entries
[    0.003449] rcu: Hierarchical SRCU implementation.
[    0.004176] devtmpfs: initialized
[    0.016259] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.017054] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017089] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.017606] pinctrl core: initialized pinctrl subsystem
[    0.019115] NET: Registered protocol family 16
[    0.021034] DMA: preallocated 256 KiB pool for atomic allocations
[    0.021752] cpuidle: using governor menu
[    0.056071] rtc_ccu: sunxi ccu init OK
[    0.063634] clock: sunxi ccu init OK
[    0.064720] clock: sunxi ccu init OK
[    0.114122] iommu: Default domain type: Translated 
[    0.114316] sunxi iommu: irq = 4
[    0.115493] SCSI subsystem initialized
[    0.115869] usbcore: registered new interface driver usbfs
[    0.115971] usbcore: registered new interface driver hub
[    0.116091] usbcore: registered new device driver usb
[    0.116300] mc: Linux media interface: v0.10
[    0.116373] videodev: Linux video capture interface: v2.00
[    0.117585] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.118316] Advanced Linux Sound Architecture Driver Initialized.
[    0.118998] Bluetooth: Core ver 2.22
[    0.119090] NET: Registered protocol family 31
[    0.119103] Bluetooth: HCI device and connection manager initialized
[    0.119130] Bluetooth: HCI socket layer initialized
[    0.119145] Bluetooth: L2CAP socket layer initialized
[    0.119187] Bluetooth: SCO socket layer initialized
[    0.119498] pwm module init!
[    0.121163] g2d 5410000.g2d: Adding to iommu group 0
[    0.121671] G2D: rcq version initialized.major:250
[    0.122567] clocksource: Switched to clocksource riscv_clocksource
[    0.135379] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.152771] thermal_sys: Registered thermal governor 'step_wise'
[    0.152777] thermal_sys: Registered thermal governor 'user_space'
[    0.153359] NET: Registered protocol family 2
[    0.154263] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.154307] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.154326] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.154343] TCP: Hash tables configured (established 512 bind 512)
[    0.154516] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154565] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.154832] NET: Registered protocol family 1
[    0.156154] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.156793] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.157066] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    0.157139] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    0.157152] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    0.157163] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.157225] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    0.157988] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    0.159763] Initialise system trusted keyrings
[    0.160014] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.167482] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.187695] Key type asymmetric registered
[    0.187712] Asymmetric key parser 'x509' registered
[    0.187738] io scheduler mq-deadline registered
[    0.187748] io scheduler kyber registered
[    0.187772] atomic64_test: passed
[    0.189049] [DISP]disp_module_init
[    0.189674] [DISP]disp_module_init finish
[    0.190437] sunxi_sid_init()506 - insmod ok
[    0.198681] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.199175] uart uart0: get regulator failed
[    0.199208] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.199581] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.199611] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    0.924272] printk: console [ttyS0] enabled
[    0.929849] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.941416] uart uart1: get regulator failed
[    0.946255] uart uart1: uart1 supply uart not found, using dummy regulator
[    0.954326] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    0.963965] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.975423] uart uart3: get regulator failed
[    0.980208] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.988352] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    0.998259] misc dump reg init
[    1.002517] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    1.009779] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    1.017396] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    1.024719] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    1.032110] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    1.038653] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    1.045596] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[    1.053329] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=0
[    1.061195] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    1.069353] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    1.077061] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    1.083843] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[    1.091353] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
[    1.099654] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[    1.107274] [ADDR_MGT] addr_mgt_probe: success.
[    1.113695] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.119630] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.129419] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.136653] Creating 6 MTD partitions on "spi0.0":
[    1.142009] 0x000000000000-0x000000100000 : "boot0"
[    1.163914] 0x000000100000-0x000000120000 : "opensbi"
[    1.183885] 0x000000120000-0x000000220000 : "u-boot"
[    1.203876] 0x000000220000-0x000000240000 : "dtb"
[    1.223925] 0x000000240000-0x000000840000 : "kernel"
[    1.231886] random: fast init done
[    1.253888] 0x000000840000-0x000008000000 : "rootfs"
[    1.514036] Error: Driver 'spi-nand' is already registered, aborting...
[    1.521902] libphy: Fixed MDIO Bus: probed
[    1.526560] CAN device driver interface
[    1.531135] RTL871X: module init start
[    1.535474] RTL871X: module init ret=0
[    1.539660] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.546981] sunxi-ehci: EHCI SUNXI driver
[    1.551841] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.558816] sunxi-ohci: OHCI SUNXI driver
[    1.563992] usbcore: registered new interface driver uas
[    1.570008] usbcore: registered new interface driver usb-storage
[    1.576869] usbcore: registered new interface driver ums-alauda
[    1.583592] usbcore: registered new interface driver ums-cypress
[    1.590354] usbcore: registered new interface driver ums-datafab
[    1.597187] usbcore: registered new interface driver ums_eneub6250
[    1.604205] usbcore: registered new interface driver ums-freecom
[    1.610965] usbcore: registered new interface driver ums-isd200
[    1.617688] usbcore: registered new interface driver ums-jumpshot
[    1.624620] usbcore: registered new interface driver ums-karma
[    1.631192] usbcore: registered new interface driver ums-onetouch
[    1.638129] usbcore: registered new interface driver ums-realtek
[    1.644968] usbcore: registered new interface driver ums-sddr09
[    1.651644] usbcore: registered new interface driver ums-sddr55
[    1.658374] usbcore: registered new interface driver ums-usbat
[    1.666969] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.672772] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T02:00:54 UTC (7254)
[    1.681933] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.687748] i2c /dev entries driver
[    1.691758] IR NEC protocol handler initialized
[    1.696864] IR RC5(x/sz) protocol handler initialized
[    1.702497] IR RC6 protocol handler initialized
[    1.707572] IR JVC protocol handler initialized
[    1.712647] IR Sony protocol handler initialized
[    1.717794] IR SANYO protocol handler initialized
[    1.723063] IR Sharp protocol handler initialized
[    1.728307] IR MCE Keyboard/mouse protocol handler initialized
[    1.734835] IR XMP protocol handler initialized
[    1.739876] ir_imon_decoder: IR iMON protocol handler initialized
[    1.746698] IR RCMM protocol handler initialized
[    1.752440] sunxi cedar version 1.1
[    1.756652] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.762950] VE: install start!!!
[    1.762950] 
[    1.768515] VE: cedar-ve the get irq is 6
[    1.768515] 
[    1.774924] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.774924] 
[    1.786517] VE: install end!!!
[    1.786517] 
[    1.792964] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.802030] Bluetooth: HCI UART driver ver 2.3
[    1.807045] Bluetooth: HCI UART protocol H4 registered
[    1.812803] Bluetooth: HCI UART protocol BCSP registered
[    1.818726] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.825988] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
[    1.832370] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
[    1.838966] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
[    1.838966] 
[    1.847644] [XR_BT_LPM] bluesleep_probe: uart_index(1)
[    1.856665] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.866682] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.872909] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.879226] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.885664] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.892074] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.898604] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.905138] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.911643] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.918692] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.924226] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.930882] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.942041] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.962197] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.986626] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.992299] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.004629] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    2.014653] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    2.020827] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    2.027314] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    2.033796] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    2.040258] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    2.046820] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.058400] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    2.064940] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    2.071446] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    2.078110] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    2.088023] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.099173] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.110814] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    2.121512] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.133117] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.157436] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    2.165090] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.177337] usbcore: registered new interface driver usbhid
[    2.183664] usbhid: USB HID core driver
[    2.190106] usbcore: registered new interface driver snd-usb-audio
[    2.197171] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.208792] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.220988] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    2.220988] 
[    2.238334] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    2.249322] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.261388] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    2.269623] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[    2.278795] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.291832] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    2.297780] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    2.307608] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.319408] [SNDCODEC][sunxi_card_init][583]:card init finished
[    2.326208] mmc0: new high speed SDHC card at address 59b4
[    2.334457] mmcblk0: mmc0:59b4 SMI   7.52 GiB 
[    2.342235] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    2.355792]  mmcblk0: p1 p2
[    2.359965] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.373218] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    2.385094] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.397641] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    2.405904] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.417590] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.429505] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.440880] mmc1: new high speed SDIO card at address 0001
[    2.448861] NET: Registered protocol family 10
[    2.454587] RTL871X: CHIP TYPE: RTL8188F
[    2.460671] Segment Routing with IPv6
[    2.465103] RTL871X: rtw_hal_config_rftype RF_Type is 3 TotalTxPath is 1 
[    2.472966] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.480445] NET: Registered protocol family 17
[    2.485516] RTL871X: Chip Version Info: CHIP_8188F_Normal_Chip_SMIC_B_CUT_1T1R_RomVer(0)
[    2.494668] can: controller area network core (rev 20170425 abi 9)
[    2.501670] NET: Registered protocol family 29
[    2.506890] RTL871X: SetHwReg8188F: hci_sus_state=1
[    2.512380] can: raw protocol (rev 20170425)
[    2.518957] RTL871X: SetHwReg8188F: bMacPwrCtrlOn=1
[    2.524451] can: broadcast manager protocol (rev 20170425 t)
[    2.530793] can: netlink gateway (rev 20190810) max_hops=1
[    2.536958] RTL871X: SetHwReg8188F: hci_sus_state=2
[    2.542747] RTL871X: PowerOnCheck: val_mix:0x0000063f, res:0x0000063f
[    2.549930] RTL871X: PowerOnCheck: 0x100 the result of cmd52 and cmd53 is the same.
[    2.558898] Bluetooth: RFCOMM TTY layer initialized
[    2.564492] Bluetooth: RFCOMM socket layer initialized
[    2.570257] Bluetooth: RFCOMM ver 1.11
[    2.574615] RTL871X: PowerOnCheck: 0x1B8 test Pass.
[    2.581033] Loading compiled-in X.509 certificates
[    2.586503] RTL871X: EEPROM type is E-FUSE
[    2.593975] HDMI2.0 module init end
[    2.603014] RTL871X: hal_EfuseSwitchToBank: Efuse switch bank to 0
[    2.650154] ubi0: attaching mtd5
[    2.709971] RTL871X: hal_ReadEFuse_WiFi: data end at address=0x98
[    2.717432] RTL871X: HW EFUSE
[    2.721824] RTL871X: hal_com_config_channel_plan chplan:0x20
[    2.734278] RTL871X: kfree flag:1
[    2.738511] RTL871X: bb_gain:1
[    2.745143] RTL871X: rtl8188f_FirmwareDownload((null)) tmp_ps=3
[    2.752294] RTL871X: rtl8188f_FirmwareDownload fw: FW_NIC, size: 21020
[    2.760197] RTL871X: rtl8188f_FirmwareDownload: fw_ver=4 fw_subver=0000 sig=0x88f1, Month=08, Date=22, Hour=17, Minute=36
[    2.773067] RTL871X: rtl8188f_FirmwareDownload(): Shift for fw header!
[    2.780892] RTL871X: rtl8188f_FirmwareDownload by IO write!
[    2.867451] random: crng init done
[    3.092731] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    3.249552] RTL871X: polling_fwdl_chksum: Checksum report OK! (1, 0ms), REG_MCUFWDL:0x07050105
[    3.264912] RTL871X: _8051Reset8188: Finish
[    3.278635] RTL871X: _FWFreeToGo: Polling FW ready OK! (15, 20ms), REG_MCUFWDL:0x070501c6
[    3.288112] RTL871X: rtl8188f_FirmwareDownload: DLFW OK !
[    3.294733] RTL871X: rtl8188f_FirmwareDownload success. write_fw:1, 520ms
[    3.304026] RTL871X:  <=== rtl8188f_FirmwareDownload()
[    3.315146] RTL871X: hal_read_mac_hidden_rpt OK! (1, 10ms), fwdl:1, id:0x19
[    3.329193] RTL871X: SetHwReg8188F: bMacPwrCtrlOn=0
[    3.334945] RTL871X: SetHwReg8188F: hci_sus_state=3
[    3.347593] RTL871X: SetHwReg8188F: hci_sus_state=0
[    3.353384] RTL871X: rtw_hal_read_chip_info in 850 ms
[    3.362279] RTL871X: init_channel_set((null)) ChannelPlan ID:0x20, ch num:13
[    3.375134] RTL871X: rtw_alloc_macid((null)) if1, hwaddr:ff:ff:ff:ff:ff:ff macid:1
[    3.385187] RTL871X: Init_ODM_ComInfo_8188f(): fab_ver=0 cut_ver=1
[    3.393229] RTL871X: rtw_regsty_chk_target_tx_power_valid return _FALSE for band:0, path:0, rs:0, t:-1
[    3.405840] RTL871X: phy_ConfigBBWithPgParaFile(): No File PHY_REG_PG.txt, Load from HWImg Array!
[    3.416393] RTL871X: default power by rate loaded
[    3.425270] RTL871X: rtw_macaddr_cfg mac addr:68:b9:d3:8b:ca:65
[    3.434045] RTL871X: bDriverStopped:True, bSurpriseRemoved:False, bup:0, hw_init_completed:0
[    3.446196] RTL871X: rtw_wiphy_alloc(phy0)
[    3.451766] RTL871X: rtw_wdev_alloc(padapter=00000000bcc9db8d)
[    3.458908] RTL871X: rtw_wiphy_register(phy0)
[    3.464383] RTL871X: Register RTW cfg80211 vendor cmd(0x67) interface 
[    3.475038] RTL871X: _rtw_reg_notifier
[    3.479226] RTL871X: _rtw_reg_notifier_apply: NL80211_REGDOM_SET_BY_CORE to DRV
[    3.491286] RTL871X: rtw_ndev_init(wlan0) if1 mac_addr=68:b9:d3:8b:ca:65
[    3.503397] RTL871X: cfg80211_rtw_get_txpower
[    4.200801] ubi0: scanning is finished
[    4.219173] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[    4.225640] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.233335] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.240906] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.248694] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    4.255421] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    4.263505] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[    4.273619] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[    4.283942] ubi0: background thread "ubi_bgt0d" started, PID 67
[    4.291341] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    4.302436] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    4.310130] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    4.319831] clk: Not disabling unused clocks
[    4.324731] ALSA device list:
[    4.328046]   #0: audiocodec
[    4.332054] cfg80211: failed to load regulatory.db
[    4.338613] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    4.407070] UBIFS (ubi0:0): recovery needed
[    4.490727] UBIFS (ubi0:0): recovery deferred
[    4.495803] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    4.505076] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    4.516165] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[    4.528025] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    4.535433] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[    4.551501] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    4.563183] devtmpfs: mounted
[    4.566742] Freeing unused kernel memory: 196K
[    4.571696] This architecture does not have kernel memory protection.
[    4.578930] Run /init as init process
[root@Risc-v /root]# ifconfig -a
lo        Link encap:Local Loopback  
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0      Link encap:IPv6-in-IPv4  
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 68:B9:D3:8B:CA:65  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

[root@Risc-v /root]#
[root@Risc-v /root]# 
[root@Risc-v /root]# cat /etc/wpa_action.sh
#!/bin/sh
/sbin/ifconfig wlan0 up
/usr/sbin/wpa_supplicant -i "wlan0" -c "/etc/wpa_supplicant.conf" -B
/sbin/udhcpc -i wlan0 -T 10 -s /usr/share/udhcpc/default.script
[root@Risc-v /root]# . /etc/wpa_action.sh
Successfully initialized wpa_supplicant
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
[   40.951254] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.1.6, server 192.168.1.1
udhcpc: lease of 192.168.1.6 obtained from 192.168.1.1, lease time 259200
/usr/share/udhcpc/default.script: Adding DNS 192.168.1.1
[root@Risc-v /root]#

WIFI 成功连接!!!

#60 Re: 全志 SOC » 内核启动出错了??? » 2022-04-05 17:40:41

d1s spi-nand 完整的启动 log

HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 17:29:15 +0800)

DRAM:  64 MiB
[00.334]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
Reading 131072 byte(s) (64 page(s)) at offset 0x00220000
Reading 6291456 byte(s) (3072 page(s)) at offset 0x00240000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff0fb ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #48 PREEMPT Tue Apr 5 10:58:34 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 43716K/63488K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 11580K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000027] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000354] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000986] Console: colour dummy device 80x25
[    0.001033] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001053] pid_max: default: 32768 minimum: 301
[    0.001259] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001280] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003282] ASID allocator initialised with 65536 entries
[    0.003484] rcu: Hierarchical SRCU implementation.
[    0.004206] devtmpfs: initialized
[    0.017783] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.018563] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.018601] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.019143] pinctrl core: initialized pinctrl subsystem
[    0.020724] NET: Registered protocol family 16
[    0.022554] DMA: preallocated 256 KiB pool for atomic allocations
[    0.023275] cpuidle: using governor menu
[    0.055733] rtc_ccu: sunxi ccu init OK
[    0.064399] clock: sunxi ccu init OK
[    0.065463] clock: sunxi ccu init OK
[    0.104117] iommu: Default domain type: Translated
[    0.104310] sunxi iommu: irq = 4
[    0.105480] SCSI subsystem initialized
[    0.105866] usbcore: registered new interface driver usbfs
[    0.105966] usbcore: registered new interface driver hub
[    0.106101] usbcore: registered new device driver usb
[    0.106303] mc: Linux media interface: v0.10
[    0.106370] videodev: Linux video capture interface: v2.00
[    0.107637] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.108402] Advanced Linux Sound Architecture Driver Initialized.
[    0.109045] Bluetooth: Core ver 2.22
[    0.109138] NET: Registered protocol family 31
[    0.109150] Bluetooth: HCI device and connection manager initialized
[    0.109175] Bluetooth: HCI socket layer initialized
[    0.109191] Bluetooth: L2CAP socket layer initialized
[    0.109232] Bluetooth: SCO socket layer initialized
[    0.109566] pwm module init!
[    0.111172] g2d 5410000.g2d: Adding to iommu group 0
[    0.111690] G2D: rcq version initialized.major:250
[    0.112545] clocksource: Switched to clocksource riscv_clocksource
[    0.125553] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.142864] thermal_sys: Registered thermal governor 'step_wise'
[    0.142871] thermal_sys: Registered thermal governor 'user_space'
[    0.143496] NET: Registered protocol family 2
[    0.144402] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.144450] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.144472] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.144488] TCP: Hash tables configured (established 512 bind 512)
[    0.144663] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.144708] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.144978] NET: Registered protocol family 1
[    0.146298] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    0.146941] spi spi0: spi0 supply spi not found, using dummy regulator
[    0.147226] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    0.147295] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    0.147305] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    0.147314] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    0.147378] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    0.148151] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    0.149892] Initialise system trusted keyrings
[    0.150142] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.157818] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.178896] Key type asymmetric registered
[    0.178915] Asymmetric key parser 'x509' registered
[    0.178945] io scheduler mq-deadline registered
[    0.178954] io scheduler kyber registered
[    0.178977] atomic64_test: passed
[    0.180298] [DISP]disp_module_init
[    0.181042] [DISP]disp_module_init finish
[    0.181824] sunxi_sid_init()506 - insmod ok
[    0.189854] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.190337] uart uart0: get regulator failed
[    0.190368] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.190781] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.190812] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    0.915227] printk: console [ttyS0] enabled
[    0.920829] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    0.932308] uart uart1: get regulator failed
[    0.937149] uart uart1: uart1 supply uart not found, using dummy regulator
[    0.945260] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    0.954890] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    0.966355] uart uart3: get regulator failed
[    0.971139] uart uart3: uart3 supply uart not found, using dummy regulator
[    0.979246] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    0.989117] misc dump reg init
[    0.994853] spi-nand spi0.0: Winbond SPI NAND was found.
[    1.000789] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    1.010608] 6 fixed-partitions partitions found on MTD device spi0.0
[    1.017808] Creating 6 MTD partitions on "spi0.0":
[    1.023251] 0x000000000000-0x000000100000 : "boot0"
[    1.043816] 0x000000100000-0x000000120000 : "opensbi"
[    1.063817] 0x000000120000-0x000000220000 : "u-boot"
[    1.083814] 0x000000220000-0x000000240000 : "dtb"
[    1.103781] 0x000000240000-0x000000840000 : "kernel"
[    1.111863] random: fast init done
[    1.133829] 0x000000840000-0x000008000000 : "rootfs"
[    1.403981] Error: Driver 'spi-nand' is already registered, aborting...
[    1.411850] libphy: Fixed MDIO Bus: probed
[    1.416508] CAN device driver interface
[    1.421075] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.428409] sunxi-ehci: EHCI SUNXI driver
[    1.433272] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.440195] sunxi-ohci: OHCI SUNXI driver
[    1.445384] usbcore: registered new interface driver uas
[    1.451404] usbcore: registered new interface driver usb-storage
[    1.458267] usbcore: registered new interface driver ums-alauda
[    1.464988] usbcore: registered new interface driver ums-cypress
[    1.471750] usbcore: registered new interface driver ums-datafab
[    1.478570] usbcore: registered new interface driver ums_eneub6250
[    1.485602] usbcore: registered new interface driver ums-freecom
[    1.492374] usbcore: registered new interface driver ums-isd200
[    1.499099] usbcore: registered new interface driver ums-jumpshot
[    1.506015] usbcore: registered new interface driver ums-karma
[    1.512642] usbcore: registered new interface driver ums-onetouch
[    1.519531] usbcore: registered new interface driver ums-realtek
[    1.526354] usbcore: registered new interface driver ums-sddr09
[    1.533111] usbcore: registered new interface driver ums-sddr55
[    1.539784] usbcore: registered new interface driver ums-usbat
[    1.546858] mousedev: PS/2 mouse device common for all mice
[    1.553760] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.566144] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.571903] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:05 UTC (5)
[    1.580853] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.586666] i2c /dev entries driver
[    1.590673] IR NEC protocol handler initialized
[    1.595781] IR RC5(x/sz) protocol handler initialized
[    1.601412] IR RC6 protocol handler initialized
[    1.606489] IR JVC protocol handler initialized
[    1.611536] IR Sony protocol handler initialized
[    1.616709] IR SANYO protocol handler initialized
[    1.621950] IR Sharp protocol handler initialized
[    1.627217] IR MCE Keyboard/mouse protocol handler initialized
[    1.633747] IR XMP protocol handler initialized
[    1.638796] ir_imon_decoder: IR iMON protocol handler initialized
[    1.645614] IR RCMM protocol handler initialized
[    1.651355] sunxi cedar version 1.1
[    1.655573] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.661820] VE: install start!!!
[    1.661820]
[    1.667399] VE: cedar-ve the get irq is 6
[    1.667399]
[    1.673801] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.673801]
[    1.685397] VE: install end!!!
[    1.685397]
[    1.691815] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.700932] Bluetooth: HCI UART driver ver 2.3
[    1.705945] Bluetooth: HCI UART protocol H4 registered
[    1.711672] Bluetooth: HCI UART protocol BCSP registered
[    1.717626] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.727698] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.737718] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.743942] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.750256] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.756696] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.763123] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.769627] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.776156] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.782688] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.789696] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.795232] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    1.801866] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.813032] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    1.833157] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    1.857596] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    1.863355] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    1.875574] usbcore: registered new interface driver usbhid
[    1.881792] usbhid: USB HID core driver
[    1.887959] usbcore: registered new interface driver snd-usb-audio
[    1.897965] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    1.897965]
[    1.915142] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    1.926576] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    1.936066] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    1.941751] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    1.951569] [SNDCODEC][sunxi_card_init][583]:card init finished
[    1.960906] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    1.972233] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    1.984480] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    1.992713] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.004328] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.016476] NET: Registered protocol family 10
[    2.023056] Segment Routing with IPv6
[    2.027368] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.035008] NET: Registered protocol family 17
[    2.040046] can: controller area network core (rev 20170425 abi 9)
[    2.047171] NET: Registered protocol family 29
[    2.052140] can: raw protocol (rev 20170425)
[    2.056948] can: broadcast manager protocol (rev 20170425 t)
[    2.063301] can: netlink gateway (rev 20190810) max_hops=1
[    2.069779] Bluetooth: RFCOMM TTY layer initialized
[    2.075364] Bluetooth: RFCOMM socket layer initialized
[    2.081126] Bluetooth: RFCOMM ver 1.11
[    2.086249] Loading compiled-in X.509 certificates
[    2.094329] HDMI2.0 module init end
[    2.125683] ubi0: attaching mtd5
[    2.369537] random: crng init done
[    2.682691] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    3.142823] ubi0: scanning is finished
[    3.160998] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[    3.167468] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.175207] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.182814] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.190576] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[    3.197300] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    3.205490] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[    3.215617] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[    3.225944] ubi0: background thread "ubi_bgt0d" started, PID 60
[    3.233375] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    3.244531] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    3.251994] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    3.261821] clk: Not disabling unused clocks
[    3.266686] cfg80211: failed to load regulatory.db
[    3.272130] ALSA device list:
[    3.275550]   #0: audiocodec
[    3.280603] UBIFS (ubi0:0): Mounting in unauthenticated mode
[    3.445935] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[    3.455213] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.466302] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[    3.478161] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[    3.485569] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[    3.502185] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[    3.514323] devtmpfs: mounted
[    3.517871] Freeing unused kernel memory: 192K
[    3.522881] This architecture does not have kernel memory protection.
[    3.530061] Run /init as init process
ntpd: send failed: Network is unreachable
[root@Risc-v /root]#

#61 Re: 全志 SOC » 内核启动出错了??? » 2022-04-05 17:03:14

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 16:57:13 +0800)

DRAM:  64 MiB
[23.161]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff0000, end 0000000049fff0fb ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #48 PREEMPT Tue Apr 5 10:58:34 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 init=/init partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M ubi.mtd=5 rootfstype=ubifs root=ubi0:rootfs
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 43716K/63488K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 11580K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000305] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004777] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017683] Console: colour dummy device 80x25
[    0.018005] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.018288] pid_max: default: 32768 minimum: 301
[    0.020395] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020636] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.035262] ASID allocator initialised with 65536 entries
[    0.036501] rcu: Hierarchical SRCU implementation.
[    0.042063] devtmpfs: initialized
[    0.253030] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263843] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.264109] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.267423] pinctrl core: initialized pinctrl subsystem
[    0.279113] NET: Registered protocol family 16
[    0.301405] DMA: preallocated 256 KiB pool for atomic allocations
[    0.307020] cpuidle: using governor menu
[    0.735690] rtc_ccu: sunxi ccu init OK
[    0.803603] clock: sunxi ccu init OK
[    0.809221] clock: sunxi ccu init OK
[    1.180159] iommu: Default domain type: Translated
[    1.181409] sunxi iommu: irq = 4
[    1.193147] SCSI subsystem initialized
[    1.196537] usbcore: registered new interface driver usbfs
[    1.197440] usbcore: registered new interface driver hub
[    1.198397] usbcore: registered new device driver usb
[    1.200095] mc: Linux media interface: v0.10
[    1.200758] videodev: Linux video capture interface: v2.00
[    1.210820] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.217997] Advanced Linux Sound Architecture Driver Initialized.
[    1.224785] Bluetooth: Core ver 2.22
[    1.225305] NET: Registered protocol family 31
[    1.225467] Bluetooth: HCI device and connection manager initialized
[    1.225686] Bluetooth: HCI socket layer initialized
[    1.225889] Bluetooth: L2CAP socket layer initialized
[    1.226236] Bluetooth: SCO socket layer initialized
[    1.228377] pwm module init!
[    1.242628] g2d 5410000.g2d: Adding to iommu group 0
[    1.246854] G2D: rcq version initialized.major:250
[    1.259592] clocksource: Switched to clocksource riscv_clocksource
[    1.422296] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.555294] thermal_sys: Registered thermal governor 'step_wise'
[    1.555368] thermal_sys: Registered thermal governor 'user_space'
[    1.561331] NET: Registered protocol family 2
[    1.570874] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.571291] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.571705] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.572067] TCP: Hash tables configured (established 512 bind 512)
[    1.572883] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.573399] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.575277] NET: Registered protocol family 1
[    1.590815] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.595601] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.597871] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.598518] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.598713] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.598914] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.599347] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.607283] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.628350] Initialise system trusted keyrings
[    1.629998] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    1.736855] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.733600] Key type asymmetric registered
[    2.733761] Asymmetric key parser 'x509' registered
[    2.734021] io scheduler mq-deadline registered
[    2.734175] io scheduler kyber registered
[    2.734405] atomic64_test: passed
[    2.746889] [DISP]disp_module_init
[    2.755400] [DISP]disp_module_init finish
[    2.763265] sunxi_sid_init()506 - insmod ok
[    2.831267] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.835210] uart uart0: get regulator failed
[    2.835539] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.838653] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.838930] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.596298] printk: console [ttyS0] enabled
[    3.611407] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.626879] uart uart1: get regulator failed
[    3.632260] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.643430] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.659874] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.675007] uart uart3: get regulator failed
[    3.680388] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.691575] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.710775] misc dump reg init
[    3.734544] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.741040] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.755120] 6 fixed-partitions partitions found on MTD device spi0.0
[    3.762969] Creating 6 MTD partitions on "spi0.0":
[    3.768592] 0x000000000000-0x000000100000 : "boot0"
[    3.822567] 0x000000100000-0x000000120000 : "opensbi"
[    3.862443] 0x000000120000-0x000000220000 : "u-boot"
[    3.912532] 0x000000220000-0x000000240000 : "dtb"
[    3.952436] 0x000000240000-0x000000840000 : "kernel"
[    3.978286] random: fast init done
[    4.092449] 0x000000840000-0x000008000000 : "rootfs"
[    6.243331] Error: Driver 'spi-nand' is already registered, aborting...
[    6.255180] libphy: Fixed MDIO Bus: probed
[    6.260183] CAN device driver interface
[    6.267416] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.275172] sunxi-ehci: EHCI SUNXI driver
[    6.285547] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    6.293059] sunxi-ohci: OHCI SUNXI driver
[    6.305045] usbcore: registered new interface driver uas
[    6.312429] usbcore: registered new interface driver usb-storage
[    6.320093] usbcore: registered new interface driver ums-alauda
[    6.327444] usbcore: registered new interface driver ums-cypress
[    6.335103] usbcore: registered new interface driver ums-datafab
[    6.342768] usbcore: registered new interface driver ums_eneub6250
[    6.350692] usbcore: registered new interface driver ums-freecom
[    6.358157] usbcore: registered new interface driver ums-isd200
[    6.365730] usbcore: registered new interface driver ums-jumpshot
[    6.373502] usbcore: registered new interface driver ums-karma
[    6.380978] usbcore: registered new interface driver ums-onetouch
[    6.388771] usbcore: registered new interface driver ums-realtek
[    6.396443] usbcore: registered new interface driver ums-sddr09
[    6.404133] usbcore: registered new interface driver ums-sddr55
[    6.411710] usbcore: registered new interface driver ums-usbat
[    6.421876] mousedev: PS/2 mouse device common for all mice
[    6.432682] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    6.452928] sunxi-rtc 7090000.rtc: registered as rtc0
[    6.459142] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:33 UTC (33)
[    6.468838] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    6.479002] i2c /dev entries driver
[    6.484515] IR NEC protocol handler initialized
[    6.489992] IR RC5(x/sz) protocol handler initialized
[    6.495856] IR RC6 protocol handler initialized
[    6.501314] IR JVC protocol handler initialized
[    6.506587] IR Sony protocol handler initialized
[    6.512146] IR SANYO protocol handler initialized
[    6.517613] IR Sharp protocol handler initialized
[    6.523280] IR MCE Keyboard/mouse protocol handler initialized
[    6.530230] IR XMP protocol handler initialized
[    6.535503] ir_imon_decoder: IR iMON protocol handler initialized
[    6.542745] IR RCMM protocol handler initialized
[    6.554671] sunxi cedar version 1.1
[    6.561180] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    6.567838] VE: install start!!!
[    6.567838]
[    6.575398] VE: cedar-ve the get irq is 6
[    6.575398]
[    6.583726] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    6.583726]
[    6.595817] VE: install end!!!
[    6.595817]
[    6.615896] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    6.629145] Bluetooth: HCI UART driver ver 2.3
[    6.634555] Bluetooth: HCI UART protocol H4 registered
[    6.640737] Bluetooth: HCI UART protocol BCSP registered
[    6.646928] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    6.696626] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    6.709024] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    6.716489] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    6.723324] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    6.730258] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    6.737009] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    6.744043] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    6.751079] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    6.757928] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    6.768336] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    6.777253] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    6.785991] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.797816] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    6.818834] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.845525] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    6.851887] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.874279] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.892240] usbcore: registered new interface driver usbhid
[    6.898698] usbhid: USB HID core driver
[    6.907380] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.934615] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    6.954607] usbcore: registered new interface driver snd-usb-audio
[    6.987797] mmc0: host does not support reading read-only switch, assuming write-enable
[    7.004241] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    7.004241]
[    7.022320] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    7.034082] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.049455] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    7.058791] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    7.080916] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    7.097129] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    7.103932] mmc0: new high speed SDHC card at address 59b4
[    7.111101] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    7.124966] [SNDCODEC][sunxi_card_init][583]:card init finished
[    7.135667] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    7.157208] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    7.169379]  mmcblk0: p1 p2
[    7.201860] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    7.219810] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    7.234372] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    7.247412] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    7.278480] NET: Registered protocol family 10
[    7.297312] Segment Routing with IPv6
[    7.304014] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.321177] NET: Registered protocol family 17
[    7.326684] can: controller area network core (rev 20170425 abi 9)
[    7.334798] NET: Registered protocol family 29
[    7.340209] can: raw protocol (rev 20170425)
[    7.345200] can: broadcast manager protocol (rev 20170425 t)
[    7.352028] can: netlink gateway (rev 20190810) max_hops=1
[    7.361040] Bluetooth: RFCOMM TTY layer initialized
[    7.366791] Bluetooth: RFCOMM socket layer initialized
[    7.373556] Bluetooth: RFCOMM ver 1.11
[    7.388034] Loading compiled-in X.509 certificates
[    7.416156] HDMI2.0 module init end
[    7.768610] ubi0: attaching mtd5
[    7.910357] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    9.096708] random: crng init done
[   14.351475] ubi0: scanning is finished
[   14.483322] ubi0: attached mtd5 (name "rootfs", size 119 MiB)
[   14.490260] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   14.498270] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   14.506374] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[   14.514865] ubi0: good PEBs: 958, bad PEBs: 0, corrupted PEBs: 0
[   14.522085] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[   14.530703] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 148355507
[   14.541386] ubi0: available PEBs: 0, total reserved PEBs: 958, PEBs reserved for bad PEB handling: 20
[   14.552315] ubi0: background thread "ubi_bgt0d" started, PID 63
[   14.568661] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   14.602462] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   14.612387] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   14.622752] clk: Not disabling unused clocks
[   14.627755] ALSA device list:
[   14.631776] cfg80211: failed to load regulatory.db
[   14.637862]   #0: audiocodec
[   14.654466] UBIFS (ubi0:0): Mounting in unauthenticated mode
[   15.752530] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs", R/O mode
[   15.762363] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   15.774074] UBIFS (ubi0:0): FS size: 117198848 bytes (111 MiB, 923 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[   15.786511] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[   15.794470] UBIFS (ubi0:0): media format: w5/r0 (latest is w5/r0), UUID 632A2A4C-3F3D-49A5-81D8-819561999B1E, small LPT model
[   15.832954] VFS: Mounted root (ubifs filesystem) readonly on device 0:14.
[   15.869313] devtmpfs: mounted
[   15.874377] Freeing unused kernel memory: 192K
[   15.879773] This architecture does not have kernel memory protection.
[   15.887226] Run /init as init process
ntpd: send failed: Network is unreachable
[root@Risc-v /root]#
[root@Risc-v /root]# uname -a
Linux Risc-v 5.4.61 #48 PREEMPT Tue Apr 5 10:58:34 CST 2022 riscv64 GNU/Linux
[root@Risc-v /root]#
[root@Risc-v /root]# bash -version
GNU bash, version 5.1.8(1)-release (riscv64-unknown-linux-gnu)
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

spi-nand 启动成功了!!!

#62 Re: 全志 SOC » 内核启动出错了??? » 2022-04-05 16:51:14

    dram: dram {
        device_type = "dram";
        compatible = "allwinner,dram";
        clocks = <&ccu CLK_PLL_DDR0>;
        clock-names = "pll_ddr";
    };

    memory@40000000 {
        device_type = "memory";
        reg = <0x0 0x40000000 0x0 0x8000000>;
    };

f133 的 内存是 128M??? 坑!!!

#63 Re: 全志 SOC » 内核启动出错了??? » 2022-04-05 09:42:41

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 00:09:54 +0800)

DRAM:  64 MiB
[19.106]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff1000, end 0000000049ffff29 ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #46 PREEMPT Mon Apr 4 23:14:30 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000047800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] On node 0 totalpages: 32256
[    0.000000]   DMA32 zone: 441 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 32256 pages, LIFO batch:7
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 root=/dev/mmcblk0p2 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M gpt=1 boot_type=1 mem=64M rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 108264K/129024K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 12568K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000307] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004774] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017351] Console: colour dummy device 80x25
[    0.017671] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.017955] pid_max: default: 32768 minimum: 301
[    0.020053] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020286] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.034887] ASID allocator initialised with 65536 entries
[    0.036130] rcu: Hierarchical SRCU implementation.
[    0.041704] devtmpfs: initialized
[    0.250633] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263157] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.263418] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.266726] pinctrl core: initialized pinctrl subsystem
[    0.278422] NET: Registered protocol family 16
[    0.302424] DMA: preallocated 256 KiB pool for atomic allocations
[    0.307974] cpuidle: using governor menu
[    0.736405] rtc_ccu: sunxi ccu init OK
[    0.804152] clock: sunxi ccu init OK
[    0.809534] clock: sunxi ccu init OK
[    1.182116] iommu: Default domain type: Translated
[    1.183373] sunxi iommu: irq = 4
[    1.195113] SCSI subsystem initialized
[    1.198483] usbcore: registered new interface driver usbfs
[    1.199383] usbcore: registered new interface driver hub
[    1.200328] usbcore: registered new device driver usb
[    1.202005] mc: Linux media interface: v0.10
[    1.202747] videodev: Linux video capture interface: v2.00
[    1.212769] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.219990] Advanced Linux Sound Architecture Driver Initialized.
[    1.226638] Bluetooth: Core ver 2.22
[    1.227156] NET: Registered protocol family 31
[    1.227318] Bluetooth: HCI device and connection manager initialized
[    1.227537] Bluetooth: HCI socket layer initialized
[    1.227739] Bluetooth: L2CAP socket layer initialized
[    1.228082] Bluetooth: SCO socket layer initialized
[    1.230211] pwm module init!
[    1.244437] g2d 5410000.g2d: Adding to iommu group 0
[    1.248674] G2D: rcq version initialized.major:250
[    1.263144] clocksource: Switched to clocksource riscv_clocksource
[    1.424640] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.557051] thermal_sys: Registered thermal governor 'step_wise'
[    1.557125] thermal_sys: Registered thermal governor 'user_space'
[    1.562767] NET: Registered protocol family 2
[    1.572291] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.572704] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.573717] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.574264] TCP: Hash tables configured (established 1024 bind 1024)
[    1.575084] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.575600] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.577471] NET: Registered protocol family 1
[    1.592294] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.597505] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.599780] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.600412] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.600608] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.600810] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.601244] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.608950] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.631652] Initialise system trusted keyrings
[    1.633135] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    1.739799] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.720905] Key type asymmetric registered
[    2.721066] Asymmetric key parser 'x509' registered
[    2.721325] io scheduler mq-deadline registered
[    2.721478] io scheduler kyber registered
[    2.721709] atomic64_test: passed
[    2.734600] [DISP]disp_module_init
[    2.742701] [DISP]disp_module_init finish
[    2.750564] sunxi_sid_init()506 - insmod ok
[    2.818150] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.822002] uart uart0: get regulator failed
[    2.822330] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.825676] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.825953] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.586041] printk: console [ttyS0] enabled
[    3.601067] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.616705] uart uart1: get regulator failed
[    3.621872] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.633014] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.649539] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.664855] uart uart3: get regulator failed
[    3.670021] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.681078] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.700338] misc dump reg init
[    3.724328] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.730619] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.776991] Error: Driver 'spi-nand' is already registered, aborting...
[    3.789119] libphy: Fixed MDIO Bus: probed
[    3.794393] CAN device driver interface
[    3.801618] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.809595] sunxi-ehci: EHCI SUNXI driver
[    3.820248] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.827752] sunxi-ohci: OHCI SUNXI driver
[    3.839678] usbcore: registered new interface driver uas
[    3.847076] usbcore: registered new interface driver usb-storage
[    3.854738] usbcore: registered new interface driver ums-alauda
[    3.862171] usbcore: registered new interface driver ums-cypress
[    3.869834] usbcore: registered new interface driver ums-datafab
[    3.877495] usbcore: registered new interface driver ums_eneub6250
[    3.885366] usbcore: registered new interface driver ums-freecom
[    3.892830] usbcore: registered new interface driver ums-isd200
[    3.900403] usbcore: registered new interface driver ums-jumpshot
[    3.908172] usbcore: registered new interface driver ums-karma
[    3.915645] usbcore: registered new interface driver ums-onetouch
[    3.923751] usbcore: registered new interface driver ums-realtek
[    3.931225] usbcore: registered new interface driver ums-sddr09
[    3.938802] usbcore: registered new interface driver ums-sddr55
[    3.946369] usbcore: registered new interface driver ums-usbat
[    3.956499] mousedev: PS/2 mouse device common for all mice
[    3.975669] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.981893] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T16:08:55 UTC (58135)
[    3.992083] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.002243] i2c /dev entries driver
[    4.007752] IR NEC protocol handler initialized
[    4.013029] IR RC5(x/sz) protocol handler initialized
[    4.019101] IR RC6 protocol handler initialized
[    4.024566] IR JVC protocol handler initialized
[    4.029835] IR Sony protocol handler initialized
[    4.035390] IR SANYO protocol handler initialized
[    4.040862] IR Sharp protocol handler initialized
[    4.046530] IR MCE Keyboard/mouse protocol handler initialized
[    4.053476] IR XMP protocol handler initialized
[    4.058746] ir_imon_decoder: IR iMON protocol handler initialized
[    4.065996] IR RCMM protocol handler initialized
[    4.077848] sunxi cedar version 1.1
[    4.084362] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    4.091024] VE: install start!!!
[    4.091024]
[    4.098781] VE: cedar-ve the get irq is 6
[    4.098781]
[    4.107094] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    4.107094]
[    4.119181] VE: install end!!!
[    4.119181]
[    4.139273] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    4.152512] Bluetooth: HCI UART driver ver 2.3
[    4.157925] Bluetooth: HCI UART protocol H4 registered
[    4.164102] Bluetooth: HCI UART protocol BCSP registered
[    4.170294] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    4.219001] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    4.231331] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    4.238783] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    4.245618] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    4.252361] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    4.259297] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    4.266333] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    4.273379] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    4.280222] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    4.290622] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    4.299586] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    4.308250] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.320092] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    4.341108] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.368073] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.374431] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.397955] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.414823] usbcore: registered new interface driver usbhid
[    4.421277] usbhid: USB HID core driver
[    4.429966] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.457819] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.477134] usbcore: registered new interface driver snd-usb-audio
[    4.510253] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.527170] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    4.527170]
[    4.545259] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    4.557010] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.572344] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    4.581684] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.604565] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.619927] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    4.626741] mmc0: new high speed SDHC card at address 59b4
[    4.633921] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    4.647746] [SNDCODEC][sunxi_card_init][583]:card init finished
[    4.658355] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    4.680103] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    4.694072]  mmcblk0: p1 p2
[    4.723078] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    4.744753] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    4.759147] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    4.772335] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    4.803441] NET: Registered protocol family 10
[    4.822090] Segment Routing with IPv6
[    4.828856] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.846130] NET: Registered protocol family 17
[    4.851639] can: controller area network core (rev 20170425 abi 9)
[    4.859745] NET: Registered protocol family 29
[    4.865158] can: raw protocol (rev 20170425)
[    4.870152] can: broadcast manager protocol (rev 20170425 t)
[    4.876977] can: netlink gateway (rev 20190810) max_hops=1
[    4.885952] Bluetooth: RFCOMM TTY layer initialized
[    4.891700] Bluetooth: RFCOMM socket layer initialized
[    4.898416] Bluetooth: RFCOMM ver 1.11
[    4.914874] Loading compiled-in X.509 certificates
[    4.940309] HDMI2.0 module init end
[    5.299122] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.333001] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.342928] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.353680] clk: Not disabling unused clocks
[    5.358689] ALSA device list:
[    5.362191]   #0: audiocodec
[    5.366077] cfg80211: failed to load regulatory.db
[    5.374751] VFS: Unable to mount root fs via NFS, trying floppy.
[    5.433704] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    5.764712] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
[    5.793733] EXT4-fs (mmcblk0p2): recovery complete
[    5.846751] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.856733] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.885237] devtmpfs: mounted
[    5.889681] Freeing unused kernel memory: 192K
[    5.895068] This architecture does not have kernel memory protection.
[    5.902521] Run /init as init process
[    6.152117] random: fast init done
ntpd: send failed: Network is unreachable

[root@Risc-v /root]#

[root@Risc-v /root]# busybox --help
BusyBox v1.34.1 (2022-04-04 10:09:25 PDT) multi-call binary.
BusyBox is copyrighted by many authors between 1998-2015.
Licensed under GPLv2. See source distribution for detailed
copyright notices.

Usage: busybox [function [arguments]...]
   or: busybox --list[-full]
   or: busybox --install [-s] [DIR]
   or: function [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, [[, acpid, add-shell, addgroup, adduser, adjtimex, arch, arp, arping, ascii, awk, base32, base64, basename, bc, beep, blkdiscard, blkid, blockdev, bootchartd, brctl, bunzip2, bzcat, bzip2, cal, cat, chat, chattr, chgrp,
        chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, conspy, cp, cpio, crc32, crond, crontab, cryptpw, cttyhack, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df, dhcprelay, diff,
        dirname, dmesg, dnsd, dnsdomainname, dos2unix, dpkg, dpkg-deb, du, dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid, ether-wake, expand, expr, factor, fakeidentd, fallocate, false, fatattr, fbset, fbsplash,
        fdflush, fdformat, fdisk, fgconsole, fgrep, find, findfs, flock, fold, free, freeramdisk, fsck, fsck.minix, fsfreeze, fstrim, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip, gzip, halt, hd, hdparm, head,
        hexdump, hexedit, hostid, hostname, httpd, hwclock, i2cdetect, i2cdump, i2cget, i2cset, i2ctransfer, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, init, inotifyd, insmod, install, ionice, iostat, ip, ipaddr, ipcalc, ipcrm,
        ipcs, iplink, ipneigh, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5, klogd, last, less, link, linux32, linux64, linuxrc, ln, loadfont, loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls,
        lsattr, lsmod, lsof, lspci, lsscsi, lsusb, lzcat, lzma, lzop, makedevs, makemime, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo, mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp, modinfo,
        modprobe, more, mount, mountpoint, mpstat, mt, mv, nameif, nanddump, nandwrite, nbd-client, nc, netcat, netstat, nice, nl, nmeter, nohup, nproc, nsenter, nslookup, ntpd, od, openvt, partprobe, passwd, paste, patch, pgrep, pidof,
        ping, ping6, pipe_progress, pivot_root, pkill, pmap, popmaildir, poweroff, powertop, printenv, printf, ps, pscan, pstree, pwd, pwdx, raidautorun, rdate, rdev, readlink, readprofile, realpath, reboot, reformime, remove-shell,
        renice, reset, resize, resume, rev, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake, run-init, run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed, sendmail, seq, setarch, setconsole, setfattr, setfont,
        setkeycodes, setlogcons, setpriv, setserial, setsid, setuidgid, sha1sum, sha256sum, sha3sum, sha512sum, showkey, shred, shuf, slattach, sleep, smemcap, softlimit, sort, split, ssl_client, start-stop-daemon, stat, strings, stty,
        su, sulogin, sum, sv, svc, svlogd, svok, swapoff, swapon, switch_root, sysctl, syslogd, tac, tail, tar, taskset, tc, tcpsvd, tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr, traceroute, traceroute6, true,
        truncate, ts, tty, ttysize, tunctl, ubiattach, ubidetach, ubimkvol, ubirename, ubirmvol, ubirsvol, ubiupdatevol, udhcpc, udhcpc6, udhcpd, udpsvd, uevent, umount, uname, unexpand, uniq, unix2dos, unlink, unlzma, unshare, unxz,
        unzip, uptime, users, usleep, uudecode, uuencode, vconfig, vi, vlock, volname, w, wall, watch, watchdog, wc, wget, which, who, whoami, whois, xargs, xxd, xz, xzcat, yes, zcat, zcip
[root@Risc-v /root]#

成功启动 !

#65 Re: 全志 SOC » 内核启动出错了??? » 2022-04-05 01:16:25

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 05 2022 - 00:09:54 +0800)

DRAM:  64 MiB
[22.346]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40b147cc
## Flattened Device Tree blob at 40020000
   Booting using the fdt blob at 0x40020000
   Loading Device Tree to 0000000049ff1000, end 0000000049ffff29 ... OK

Starting kernel ...

[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #46 PREEMPT Mon Apr 4 23:14:30 CST 2022
[    0.000000] cma: Reserved 8 MiB at 0x0000000047800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] On node 0 totalpages: 32256
[    0.000000]   DMA32 zone: 441 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 32256 pages, LIFO batch:7
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused loglevel=8 root=/dev/mmcblk0p2 init=/init rootfstype=ext4 partitions=boot@mmcblk0p1:rootfs@mmcblk0p2 cma=8M gpt=1 boot_type=1 mem=64M rw
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 108264K/129024K available (6087K kernel code, 654K rwdata, 2099K rodata, 192K init, 254K bss, 12568K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000101] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000307] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.004777] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.017361] Console: colour dummy device 80x25
[    0.017682] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.017965] pid_max: default: 32768 minimum: 301
[    0.020061] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.020293] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.034897] ASID allocator initialised with 65536 entries
[    0.036141] rcu: Hierarchical SRCU implementation.
[    0.041720] devtmpfs: initialized
[    0.251069] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.263605] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.263868] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.267180] pinctrl core: initialized pinctrl subsystem
[    0.278902] NET: Registered protocol family 16
[    0.302951] DMA: preallocated 256 KiB pool for atomic allocations
[    0.308515] cpuidle: using governor menu
[    0.737656] rtc_ccu: sunxi ccu init OK
[    0.805494] clock: sunxi ccu init OK
[    0.811072] clock: sunxi ccu init OK
[    1.183082] iommu: Default domain type: Translated
[    1.184340] sunxi iommu: irq = 4
[    1.196093] SCSI subsystem initialized
[    1.199461] usbcore: registered new interface driver usbfs
[    1.200362] usbcore: registered new interface driver hub
[    1.201308] usbcore: registered new device driver usb
[    1.202985] mc: Linux media interface: v0.10
[    1.203730] videodev: Linux video capture interface: v2.00
[    1.213765] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.220877] Advanced Linux Sound Architecture Driver Initialized.
[    1.227652] Bluetooth: Core ver 2.22
[    1.228169] NET: Registered protocol family 31
[    1.228332] Bluetooth: HCI device and connection manager initialized
[    1.228549] Bluetooth: HCI socket layer initialized
[    1.228752] Bluetooth: L2CAP socket layer initialized
[    1.229096] Bluetooth: SCO socket layer initialized
[    1.231226] pwm module init!
[    1.245464] g2d 5410000.g2d: Adding to iommu group 0
[    1.249712] G2D: rcq version initialized.major:250
[    1.264212] clocksource: Switched to clocksource riscv_clocksource
[    1.425951] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    1.558523] thermal_sys: Registered thermal governor 'step_wise'
[    1.558598] thermal_sys: Registered thermal governor 'user_space'
[    1.564466] NET: Registered protocol family 2
[    1.573777] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.574201] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.575211] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.575756] TCP: Hash tables configured (established 1024 bind 1024)
[    1.576578] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.577096] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    1.578970] NET: Registered protocol family 1
[    1.593844] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[    1.599051] spi spi0: spi0 supply spi not found, using dummy regulator
[    1.601331] sunxi_spi_resource_get()2125 - [spi0] SPI MASTER MODE
[    1.601965] sunxi_spi_resource_get()2163 - Failed to get sample mode
[    1.602161] sunxi_spi_resource_get()2168 - Failed to get sample delay
[    1.602363] sunxi_spi_resource_get()2172 - sample_mode:-1431633921 sample_delay:-1431633921
[    1.602795] sunxi_spi_clk_init()2214 - [spi0] mclk 100000000
[    1.610508] sunxi_spi_probe()2625 - [spi0]: driver probe succeed, base ffffffd00405c000, irq 31
[    1.633253] Initialise system trusted keyrings
[    1.634978] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    1.741562] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    2.736650] Key type asymmetric registered
[    2.736810] Asymmetric key parser 'x509' registered
[    2.737069] io scheduler mq-deadline registered
[    2.737223] io scheduler kyber registered
[    2.737453] atomic64_test: passed
[    2.749990] [DISP]disp_module_init
[    2.758520] [DISP]disp_module_init finish
[    2.766384] sunxi_sid_init()506 - insmod ok
[    2.833860] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    2.837947] uart uart0: get regulator failed
[    2.838277] uart uart0: uart0 supply uart not found, using dummy regulator
[    2.841385] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    2.841663] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    3.601440] printk: console [ttyS0] enabled
[    3.616699] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    3.632116] uart uart1: get regulator failed
[    3.637497] uart uart1: uart1 supply uart not found, using dummy regulator
[    3.648636] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    3.665170] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    3.680257] uart uart3: get regulator failed
[    3.685639] uart uart3: uart3 supply uart not found, using dummy regulator
[    3.696732] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    3.716011] misc dump reg init
[    3.739807] spi-nand spi0.0: Winbond SPI NAND was found.
[    3.746309] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[    3.788394] Error: Driver 'spi-nand' is already registered, aborting...
[    3.800417] libphy: Fixed MDIO Bus: probed
[    3.805693] CAN device driver interface
[    3.812926] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.820913] sunxi-ehci: EHCI SUNXI driver
[    3.831573] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.839081] sunxi-ohci: OHCI SUNXI driver
[    3.851022] usbcore: registered new interface driver uas
[    3.858421] usbcore: registered new interface driver usb-storage
[    3.866085] usbcore: registered new interface driver ums-alauda
[    3.873519] usbcore: registered new interface driver ums-cypress
[    3.881184] usbcore: registered new interface driver ums-datafab
[    3.888847] usbcore: registered new interface driver ums_eneub6250
[    3.896716] usbcore: registered new interface driver ums-freecom
[    3.904189] usbcore: registered new interface driver ums-isd200
[    3.911765] usbcore: registered new interface driver ums-jumpshot
[    3.919534] usbcore: registered new interface driver ums-karma
[    3.927008] usbcore: registered new interface driver ums-onetouch
[    3.935111] usbcore: registered new interface driver ums-realtek
[    3.942582] usbcore: registered new interface driver ums-sddr09
[    3.950160] usbcore: registered new interface driver ums-sddr55
[    3.957736] usbcore: registered new interface driver ums-usbat
[    3.967849] mousedev: PS/2 mouse device common for all mice
[    3.987025] sunxi-rtc 7090000.rtc: registered as rtc0
[    3.993245] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:13:39 UTC (819)
[    4.003233] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.013400] i2c /dev entries driver
[    4.018912] IR NEC protocol handler initialized
[    4.024396] IR RC5(x/sz) protocol handler initialized
[    4.030262] IR RC6 protocol handler initialized
[    4.035725] IR JVC protocol handler initialized
[    4.041001] IR Sony protocol handler initialized
[    4.046570] IR SANYO protocol handler initialized
[    4.052039] IR Sharp protocol handler initialized
[    4.057706] IR MCE Keyboard/mouse protocol handler initialized
[    4.064655] IR XMP protocol handler initialized
[    4.069930] ir_imon_decoder: IR iMON protocol handler initialized
[    4.077177] IR RCMM protocol handler initialized
[    4.089031] sunxi cedar version 1.1
[    4.095553] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    4.102214] VE: install start!!!
[    4.102214]
[    4.109974] VE: cedar-ve the get irq is 6
[    4.109974]
[    4.118300] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    4.118300]
[    4.130395] VE: install end!!!
[    4.130395]
[    4.150507] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    4.163754] Bluetooth: HCI UART driver ver 2.3
[    4.169175] Bluetooth: HCI UART protocol H4 registered
[    4.175357] Bluetooth: HCI UART protocol BCSP registered
[    4.181548] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    4.230232] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    4.242569] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    4.250022] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    4.256861] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    4.263601] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    4.270536] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    4.277576] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    4.284607] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    4.291450] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    4.301850] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    4.310806] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    4.319464] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.331302] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    4.352310] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.378996] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    4.385350] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.408876] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.425740] usbcore: registered new interface driver usbhid
[    4.432196] usbhid: USB HID core driver
[    4.440891] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.469036] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    4.488087] usbcore: registered new interface driver snd-usb-audio
[    4.521231] mmc0: host does not support reading read-only switch, assuming write-enable
[    4.538150] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    4.538150]
[    4.556246] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    4.568019] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.583383] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    4.592708] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    4.615608] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    4.630981] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    4.637789] mmc0: new high speed SDHC card at address 59b4
[    4.644992] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    4.658800] [SNDCODEC][sunxi_card_init][583]:card init finished
[    4.669414] mmcblk0: mmc0:59b4 SMI   7.52 GiB
[    4.691169] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    4.705152]  mmcblk0: p1 p2
[    4.734155] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    4.755818] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    4.770223] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    4.783422] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    4.814547] NET: Registered protocol family 10
[    4.833218] Segment Routing with IPv6
[    4.839991] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.857292] NET: Registered protocol family 17
[    4.862795] can: controller area network core (rev 20170425 abi 9)
[    4.870904] NET: Registered protocol family 29
[    4.876323] can: raw protocol (rev 20170425)
[    4.881314] can: broadcast manager protocol (rev 20170425 t)
[    4.888149] can: netlink gateway (rev 20190810) max_hops=1
[    4.897122] Bluetooth: RFCOMM TTY layer initialized
[    4.902871] Bluetooth: RFCOMM socket layer initialized
[    4.909603] Bluetooth: RFCOMM ver 1.11
[    4.926091] Loading compiled-in X.509 certificates
[    4.951655] HDMI2.0 module init end
[    5.311100] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    5.345671] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    5.355215] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    5.365679] clk: Not disabling unused clocks
[    5.370682] ALSA device list:
[    5.374682]   #0: audiocodec
[    5.380176] VFS: Unable to mount root fs via NFS, trying floppy.
[    5.387673] cfg80211: failed to load regulatory.db
[    5.444750] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    5.455679] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    5.465618] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    5.493129] devtmpfs: mounted
[    5.497790] Freeing unused kernel memory: 192K
[    5.502972] This architecture does not have kernel memory protection.
[    5.510622] Run /init as init process
[    5.536148] Kernel panic - not syncing: Requested init /init failed (error -13).
[    5.544758] CPU: 0 PID: 1 Comm: swapper Not tainted 5.4.61 #46
[    5.551487] Call Trace:
[    5.554476] [<ffffffe0000323ce>] walk_stackframe+0x0/0xa0
[    5.560814] [<ffffffe0000325b0>] show_stack+0x2a/0x34
[    5.566738] [<ffffffe0006072de>] dump_stack+0x20/0x28
[    5.572656] [<ffffffe000037376>] panic+0xee/0x2b6
[    5.578209] [<ffffffe00061ac66>] kernel_init+0x8a/0xee
[    5.584242] [<ffffffe000031018>] ret_from_exception+0x0/0xc
[    5.590776] ---[ end Kernel panic - not syncing: Requested init /init failed (error -13). ]---

#66 Re: 全志 SOC » 内核启动出错了??? » 2022-04-04 11:40:14

const boot0_file_head_t  fes1_head = {
    {
        /* jump_instruction */
        JUMP_INSTRUCTION,
        BOOT0_MAGIC,
        STAMP_VALUE,
        32,
        sizeof(boot_file_head_t),
        BOOT_PUB_HEAD_VERSION,
        (CONFIG_FES1_RUN_ADDR + sizeof(boot0_file_head_t) - sizeof(fes1_head.fes_union_addr)),
        CONFIG_FES1_RUN_ADDR,
        0,
        {
            0, 0, '3','.','0','.','0',0
        },
    },
    {
        //__u32 prvt_head_size;
        0,
        //char prvt_head_vsn[4];
        0,
        0,  /*power_mode*/
        {0},/* reserver[2] */
        //unsigned int                dram_para[32] ;
        {0},
        //__s32              uart_port;
        0,
        //normal_gpio_cfg       uart_ctrl[2];
        {
            {5, 3, 6, 1, 1, 0, {0} }, /* PE3: 6--RX */
            {5, 2, 6, 1, 1, 0, {0} }, /* PE2: 6--TX */
            //{ 2, 8, 4, 1, 1, 0, {0}},//PB8: 4--RX
            //{ 2, 9, 4, 1, 1, 0, {0}},//PB9: 4--TX
        },
        //__s32                         enable_jtag;
        0,
        //normal_gpio_cfg         jtag_gpio[5];
        {{0},{0},{0},{0},{0}},
        //normal_gpio_cfg        storage_gpio[32];
        {
            {6, 0, 2, 1, 2, 0, {0} },//PF0-5: 2--SDC
            {6, 1, 2, 1, 2, 0, {0} },
            {6, 2, 2, 1, 2, 0, {0} },
            {6, 3, 2, 1, 2, 0, {0} },
            {6, 4, 2, 1, 2, 0, {0} },
            {6, 5, 2, 1, 2, 0, {0} },
        },
        //char                             storage_data[512 - sizeof(normal_gpio_cfg) * 32];
        {0}
     },
    .hash = CI_INFO,
#ifdef CFG_SUNXI_SELECT_DRAM_PARA
    .fes_union_addr.extd_head.magic = DRAM_EXT_MAGIC,
#endif
};

修改 tina-d1-open/lichee/brandy-2.0/spl/fes/main/fes1_head.c

#67 Re: 全志 SOC » 内核启动出错了??? » 2022-04-03 17:31:51

ZQ value = 0x2f***********
get_pmu_exist() = 4294967295
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: %s
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.

OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 17:28:35 +0800)

DRAM:  64 MiB
[23.846]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0b52c
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Device Tree to 0000000049ff1000, end 0000000049fffed1 ... OK

Starting kernel ...

## Transferring control to kernel (at address 40200000) 0 ...
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61+ (root@i9-10920) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #6 PREEMPT Thu Jan 13 21:57:43 CST 2022
[    0.000000] earlycon: sbi0 at I/O port 0x0 (options '')
[    0.000000] printk: bootconsole [sbi0] enabled
[    0.000000] cma: Reserved 16 MiB at 0x0000000047000000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000047ffffff]
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 31815
[    0.000000] Kernel command line: console=ttyS0,115200n8 debug loglevel=7,initcall_debug=1 init=/init earlycon=sbi
[    0.000000] Dentry cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 99084K/129024K available (6746K kernel code, 749K rwdata, 2312K rodata, 192K init, 277K bss, 13556K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, 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: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000102] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008137] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.020891] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.038213] Console: colour dummy device 80x25
[    0.040174] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.047878] pid_max: default: 32768 minimum: 301
[    0.054318] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.059900] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.082166] ASID allocator initialised with 65536 entries
[    0.085435] rcu: Hierarchical SRCU implementation.
[    0.092763] devtmpfs: initialized
[    0.297604] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.310043] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.316120] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.328334] pinctrl core: initialized pinctrl subsystem
[    0.341876] NET: Registered protocol family 16
[    0.363657] DMA: preallocated 256 KiB pool for atomic allocations
[    0.371638] cpuidle: using governor menu
[    0.907494] rtc_ccu: sunxi ccu init OK
[    0.976661] clock: sunxi ccu init OK
[    0.983286] clock: sunxi ccu init OK
[    1.694274] iommu: Default domain type: Translated
[    1.697338] sunxi iommu: irq = 4
[    1.710960] SCSI subsystem initialized
[    1.715944] usbcore: registered new interface driver usbfs
[    1.718857] usbcore: registered new interface driver hub
[    1.722176] usbcore: registered new device driver usb
[    1.728288] mc: Linux media interface: v0.10
[    1.731394] videodev: Linux video capture interface: v2.00
[    1.746314] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    1.755962] Advanced Linux Sound Architecture Driver Initialized.
[    1.764867] Bluetooth: Core ver 2.22
[    1.766708] NET: Registered protocol family 31
[    1.768504] Bluetooth: HCI device and connection manager initialized
[    1.774238] Bluetooth: HCI socket layer initialized
[    1.778988] Bluetooth: L2CAP socket layer initialized
[    1.784428] Bluetooth: SCO socket layer initialized
[    1.790969] pwm module init!
[    1.821122] clocksource: Switched to clocksource riscv_clocksource
[    1.984896] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    2.129339] thermal_sys: Registered thermal governor 'step_wise'
[    2.129411] thermal_sys: Registered thermal governor 'user_space'
[    2.137617] NET: Registered protocol family 2
[    2.152395] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.155899] TCP established hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    2.163936] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    2.170589] TCP: Hash tables configured (established 1024 bind 1024)
[    2.177703] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.183974] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    2.192114] NET: Registered protocol family 1
[    2.222489] Initialise system trusted keyrings
[    2.225625] workingset: timestamp_bits=62 max_order=15 bucket_order=0
[    2.335111] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    3.318509] Key type asymmetric registered
[    3.320180] Asymmetric key parser 'x509' registered
[    3.323121] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    3.329636] io scheduler mq-deadline registered
[    3.334630] io scheduler kyber registered
[    3.338377] atomic64_test: passed
[    3.355155] [DISP]disp_module_init
[    3.363072] disp 5000000.disp: Adding to iommu group 0
[    3.673370] disp 5000000.disp: 5000000.disp supply vcc-lcd not found, using dummy regulator
[    3.678933] disp 5000000.disp: 5000000.disp supply vcc-pd not found, using dummy regulator
[    3.815206] [DISP] disp_sys_pwm_request,line:442:
[    3.815292] disp_sys_pwm_request pwm 8 fail! -517
[    3.819385] [DISP] disp_sys_pwm_config,line:509:
[    3.819446] disp_sys_pwm_Config, handle is NULL!
[    3.834089] display_fb_request,fb_id:0
[    3.840903] [DISP] Fb_copy_boot_fb,line:1444:
[    3.840955] no boot_fb0
[    3.847222] disp_al_manager_apply ouput_type:0
[    3.850326] [DISP] lcd_clk_config,line:731:
[    3.850538] disp 0, clk: pll(162000000),clk(162000000),dclk(27000000) dsi_rate(162000000)
[    3.850538]      clk real:pll(288000000),clk(288000000),dclk(48000000) dsi_rate(0)
[    3.873524] [DISP]disp_module_init finish
[    3.884122] sunxi_sid_init()506 - insmod ok
[    3.891577] [DISP] disp_sys_pwm_request,line:442:
[    3.891663] disp_sys_pwm_request pwm 8 fail! -517
[    3.895757] [DISP] disp_sys_pwm_config,line:509:
[    3.895819] disp_sys_pwm_Config, handle is NULL!
[    3.914956] [DISP] disp_sys_pwm_set_polarity,line:528:
[    3.915027] disp_sys_pwm_Set_Polarity, handle is NULL!
[    3.970357] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    4.004935] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    4.013285] uart uart0: get regulator failed
[    4.015196] uart uart0: uart0 supply uart not found, using dummy regulator
[    4.023967] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    4.028664] sw_console_setu▒[    4.037540] printk: console [ttyS0] enabled
[    4.037540] printk: console [ttyS0] enabled
[    4.044611] printk: bootconsole [sbi0] disabled
[    4.044611] printk: bootconsole [sbi0] disabled
[    4.064012] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    4.079468] uart uart1: get regulator failed
[    4.085043] uart uart1: uart1 supply uart not found, using dummy regulator
[    4.096389] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    4.113429] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    4.128728] uart uart3: get regulator failed
[    4.134341] uart uart3: uart3 supply uart not found, using dummy regulator
[    4.145622] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    4.166502] misc dump reg init
[    4.178246] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    4.186311] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    4.194607] [DISP] disp_sys_pwm_request,line:442:
[    4.194694] disp_sys_pwm_request pwm 8 fail! -517
[    4.206164] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    4.214390] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    4.222444] [DISP] disp_lcd_pwm_enable,line:1205:
[    4.222504] pwm device hdl is NULL
[    4.232374] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    4.239325] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    4.246975] [DISP] disp_sys_gpio_request,line:276:
[    4.247106] disp_sys_gpio_request failed, gpio_name=lcd_bl_en, gpio=123, value=0, ret=-517
[    4.263345] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
[    4.271652] [DISP] disp_device_attached_and_enable,line:233:
[    4.271736] attached ok, mgr0<-->dev0
[    4.283686] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    4.292440] [DISP] disp_device_attached_and_enable,line:236:
[    4.292617] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
[    4.309436] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    4.319366] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    4.327418] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
[    4.369116] libphy: Fixed MDIO Bus: probed
[    4.374103] CAN device driver interface
[    4.382227] RTL871X: module init start
[    4.386724] RTL871X: rtl8189fs v4.3.24.8_22657.20170607
[    4.393739] RTL871X: module init ret=0
[    4.398244] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.406213] sunxi-ehci: EHCI SUNXI driver
[    4.417458] get ehci0-controller wakeup-source is fail.
[    4.425072] sunxi ehci0-controller don't init wakeup source
[    4.431807] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe0009f6a70, 0x:ffffffd004075000, irq_no:2e
[    4.446089] [sunxi-ehci0]: Not init ehci0
[    4.454199] get ehci1-controller wakeup-source is fail.
[    4.461783] sunxi ehci1-controller don't init wakeup source
[    4.468322] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe0009f6e30, 0x:ffffffd004079000, irq_no:31
[    4.482754] hci: sunxi_insmod_ehci()600 WARN: get supply failed
[    4.489872] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    4.498054] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    4.509557] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
[    4.541567] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    4.560479] hub 1-0:1.0: USB hub found
[    4.565834] hub 1-0:1.0: 1 port detected
[    4.580147] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.588036] sunxi-ohci: OHCI SUNXI driver
[    4.599448] get ohci0-controller wakeup-source is fail.
[    4.607190] sunxi ohci0-controller don't init wakeup source
[    4.614129] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe0009f75b0
[    4.625241] [sunxi-ohci0]: Not init ohci0
[    4.633290] get ohci1-controller wakeup-source is fail.
[    4.640691] sunxi ohci1-controller don't init wakeup source
[    4.647396] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe0009f7970
[    4.658650] hci: sunxi_insmod_ohci()265 WARN: get supply failed
[    4.665878] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    4.674060] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    4.687222] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
[    4.776042] hub 2-0:1.0: USB hub found
[    4.780915] hub 2-0:1.0: 1 port detected
[    4.797398] usbcore: registered new interface driver uas
[    4.806425] usbcore: registered new interface driver usb-storage
[    4.814399] usbcore: registered new interface driver ums-alauda
[    4.822326] usbcore: registered new interface driver ums-cypress
[    4.829957] usbcore: registered new interface driver ums-datafab
[    4.837899] usbcore: registered new interface driver ums_eneub6250
[    4.846191] usbcore: registered new interface driver ums-freecom
[    4.853895] usbcore: registered new interface driver ums-isd200
[    4.861628] usbcore: registered new interface driver ums-jumpshot
[    4.869333] usbcore: registered new interface driver ums-karma
[    4.877090] usbcore: registered new interface driver ums-onetouch
[    4.885431] usbcore: registered new interface driver ums-realtek
[    4.894441] usbcore: registered new interface driver ums-sddr09
[    4.902398] usbcore: registered new interface driver ums-sddr55
[    4.909798] usbcore: registered new interface driver ums-usbat
[    4.920291] mousedev: PS/2 mouse device common for all mice
[    4.941639] sunxi-rtc 7090000.rtc: registered as rtc0
[    4.947842] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T02:13:11 UTC (7991)
[    4.958081] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    4.969638] i2c /dev entries driver
[    4.975146] IR NEC protocol handler initialized
[    4.980518] IR RC5(x/sz) protocol handler initialized
[    4.986793] IR RC6 protocol handler initialized
[    4.992238] IR JVC protocol handler initialized
[    4.997591] IR Sony protocol handler initialized
[    5.003134] IR SANYO protocol handler initialized
[    5.008695] IR Sharp protocol handler initialized
[    5.014578] IR MCE Keyboard/mouse protocol handler initialized
[    5.021516] IR XMP protocol handler initialized
[    5.026885] ir_imon_decoder: IR iMON protocol handler initialized
[    5.034339] IR RCMM protocol handler initialized
[    5.047755] sunxi cedar version 1.1
[    5.054595] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    5.063832] VE: cedar-ve the get irq is 6
[    5.063832]
[    5.072435] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    5.072435]
[    5.102077] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    5.116727] Bluetooth: HCI UART driver ver 2.3
[    5.122375] Bluetooth: HCI UART protocol H4 registered
[    5.128458] Bluetooth: HCI UART protocol BCSP registered
[    5.134840] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    5.191793] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    5.204330] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    5.211974] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    5.218589] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    5.225732] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    5.232873] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    5.239789] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    5.246794] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    5.254038] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    5.264729] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    5.273844] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    5.282784] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.294813] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    5.315992] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.343143] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    5.359110] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    5.372053] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    5.379305] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    5.386338] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    5.393478] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    5.400288] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    5.407296] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    5.414542] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    5.421786] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    5.428931] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    5.445456] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.457694] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    5.478918] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.504829] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    5.513293] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    5.521486] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    5.528857] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.552226] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    5.572532] usbcore: registered new interface driver usbhid
[    5.579456] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    5.592603] usbhid: USB HID core driver
[    5.600564] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.609175] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.617714] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.626286] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    5.633920] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    5.672367] usbcore: registered new interface driver snd-usb-audio
[    5.712300] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    5.712300]
[    5.730418] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    5.745582] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    5.768135] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    5.775074] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    5.785875] [SNDCODEC][sunxi_card_init][583]:card init finished
[    5.797254] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    5.822937] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
[    5.840951] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    5.857323] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    5.870629] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    5.901611] NET: Registered protocol family 10
[    5.919959] Segment Routing with IPv6
[    5.927058] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.944581] NET: Registered protocol family 17
[    5.950070] can: controller area network core (rev 20170425 abi 9)
[    5.958348] NET: Registered protocol family 29
[    5.963981] can: raw protocol (rev 20170425)
[    5.968967] can: broadcast manager protocol (rev 20170425 t)
[    5.976048] can: netlink gateway (rev 20190810) max_hops=1
[    5.985266] Bluetooth: RFCOMM TTY layer initialized
[    5.991672] Bluetooth: RFCOMM socket layer initialized
[    5.997769] Bluetooth: RFCOMM ver 1.11
[    6.010815] Loading compiled-in X.509 certificates
[    6.037171] HDMI 2.0 driver init start!
[    6.042119] boot_hdmi=false
[    6.045993] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    6.058356] HDMI2.0 module init end
[    6.388611] twi twi2: twi2 supply twi not found, using dummy regulator
[    6.468542] random: fast init done
[    6.515054] sunxi_i2c_probe()2262 - [i2c2] probe success
[    6.598982] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    6.634732] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    6.644562] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2

#68 全志 SOC » 内核启动出错了??? » 2022-04-03 10:51:21

Cadence
回复: 16
OpenSBI smartx-d1-tina-v1.0.1-release
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,R,W,X)
PMP4    : 0x0000000000000000-0x000000003fffffff (A,R,W)


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 10:29:00 +0800)

DRAM:  64 MiB
[17.330]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 03 2022 - 10:29:00 +0800)

riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0
GNU ld (GNU Binutils) 2.32
=> setenv kernel_comp_addr_r 0x41000000 && setenv kernel_comp_size 0x530121 && booti 0x40080000 - 0x43000000
   Uncompressing Kernel Image
Moving Image from 0x40080000 to 0x40200000, end=40c0b52c
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Device Tree to 0000000049ff1000, end 0000000049fffed1 ... OK

Starting kernel ...

Unhandled exception: Instruction access fault
EPC: 000000e0000000ae RA: ffffffe0000000ae TVAL: 000000e0000000ae
EPC: 000000dffe0af0ae RA: ffffffdffe0af0ae reloc adjusted
Unhandled exception: Load access fault
EPC: 0000000043f522a2 RA: 0000000043f52294 TVAL: 000000e0000000ae
EPC: 00000000420012a2 RA: 0000000042001294 reloc adjusted

Code: 35d6 f413 ffe4 5783 0004 470d 4989 8b8d (8363 00e7)


resetting ...
System reset not supported on this platform

#69 全志 SOC » u-boot spi-nand 的 spi-mem 框架调试 » 2022-04-01 18:03:01

Cadence
回复: 0
HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 17:50:11 +0800)

DRAM:  64 MiB
drivers/spi/spi-uclass.c 527 0
[00.245]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 17:50:11 +0800)

riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0
GNU ld (GNU Binutils) 2.32
=> mtd l
List of MTD devices:
* spi-nand0
  - device: spi-nand@0
  - parent: spi@4025000
  - driver: spi_nand
  - path: /spi@4025000/spi-nand@0
  - type: NAND flash
  - block size: 0x20000 bytes
  - min I/O: 0x800 bytes
  - OOB size: 64 bytes
  - OOB available: 24 bytes
  - 0x000000000000-0x000008000000 : "spi-nand0"
=> mtd dump spi-nand0 0x100000 0x200
Size not on a page boundary (0x800), rounding to 0x800
Reading 2048 byte(s) (1 page(s)) at offset 0x00100000

Dump 2048 data bytes from 0x00100000:
0x00100000:     73 25 40 f1 2a 82 ae 84  93 01 00 00 97 e2 06 00
0x00100010:     83 b2 42 aa 73 90 52 30  73 10 40 30 c1 52 37 83
0x00100020:     02 00 1b 03 03 e8 33 71  53 00 0a 85 ef 00 c1 09
0x00100030:     2a 84 2a 81 ef 00 30 6e  97 e2 06 00 83 b2 02 cc
0x00100040:     05 43 2f a9 62 08 63 1e  09 00 ef 00 a1 08 23 bc
0x00100050:     91 14 23 b8 41 14 97 d2  06 00 83 b2 22 6c 2f a0
0x00100060:     02 0a 97 d2 06 00 83 b2  62 6b 05 43 2f a3 62 0c
0x00100070:     e3 1e 03 fe a2 81 05 43  33 13 43 00 83 b3 01 16
0x00100080:     b3 e3 63 00 23 b0 71 16  2f a0 02 0a 63 1b 09 10
0x00100090:     ef 00 d0 75 ef 00 d0 75  13 05 00 00 17 ef 06 00
0x001000a0:     03 3f 4f ac 02 9f 2a 89  ae 89 32 8a 4a 81 97 e2
0x001000b0:     06 00 83 b2 a2 90 b3 0f  5a 40 63 86 42 0b 52 83
0x001000c0:     17 ee 06 00 03 3e 0e 9d  33 0e 5e 40 b3 83 c2 01
0x001000d0:     03 bf 02 00 a1 02 23 30  e3 01 21 03 e3 ca 72 fe
0x001000e0:     17 d3 06 00 03 33 03 58  97 e3 06 00 83 b3 03 bb
0x001000f0:     63 0b 73 06 7e 93 fe 93  a9 a8 03 3f 03 ff 0d 4e
0x00100100:     63 1b cf 01 03 3e 83 fe  03 3f 83 ff 7e 9f 7e 9e
0x00100110:     23 30 ee 01 3d a8 97 ee  06 00 83 be ae b8 fe 9e
0x00100120:     03 3f 03 ff 93 52 0f 02  13 7f ff 0f 09 4e 63 12
0x00100130:     cf 03 03 3e 83 fe 61 4f  b3 82 e2 03 b3 8a 5e 00
0x00100140:     83 32 83 ff 03 bf 8a 00  16 9f 7e 9f 7e 9e 23 30
0x00100150:     ee 01 61 03 e3 d3 63 fa  97 e2 06 00 83 b2 82 95
0x00100160:     fe 92 73 90 52 30 97 e2  06 00 83 b2 a2 92 fe 92
0x00100170:     17 d3 06 00 03 33 83 6f  7e 93 63 87 62 00 23 b0
0x00100180:     02 00 a1 02 e3 cd 62 fe  ef 10 40 05 ef 00 30 64
0x00100190:     97 d2 06 00 83 b2 82 70  b3 8e f2 01 4e 85 d2 85
0x001001a0:     82 8e 73 00 50 10 f5 bf  82 80 7d 55 7e 15 0d 05
0x001001b0:     82 80 7d 55 7e 15 0d 05  82 80 7d 55 7e 15 0d 05
0x001001c0:     82 80 7d 55 7e 15 0d 05  82 80 7d 55 7e 15 0d 05
0x001001d0:     82 80 7d 55 7e 15 0d 05  82 80 7d 55 7e 15 0d 05
0x001001e0:     82 80 97 16 00 00 93 86  66 bd 9c 62 b9 c3 b1 c5
0x001001f0:     98 61 09 e7 05 89 31 c1  01 45 82 80 03 b8 86 00
0x00100200:     83 b8 06 01 01 46 63 16  c8 00 7d 55 7e 15 39 05
0x00100210:     82 80 88 67 63 6c a7 00  94 6f b2 06 aa 96 63 77
0x00100220:     d7 00 9c 6b 89 8f 3e 97  98 e1 f9 b7 05 06 c6 97
0x00100230:     d9 bf 7d 55 7e 15 0d 05  82 80 7d 55 7e 15 09 05
0x00100240:     82 80 41 11 22 e0 06 e4  50 45 2a 84 23 28 05 00
0x00100250:     aa 85 01 45 ef 00 20 65  08 c8 a2 60 02 64 41 01
0x00100260:     82 80 81 47 63 13 f6 00  82 80 33 87 f5 00 83 46
0x00100270:     07 00 33 07 f5 00 85 07  23 00 d7 00 e5 b7 17 d5
0x00100280:     06 00 03 35 a5 4f 97 d7  06 00 83 b7 27 78 3c f5
0x00100290:     97 d7 06 00 83 b7 87 59  1c ed 97 d7 06 00 83 b7
0x001002a0:     67 60 1c f1 6f f0 ff f9  1d 71 a2 e8 ca e0 4e fc
0x001002b0:     37 04 00 be 17 d9 06 00  03 39 49 4c 97 e9 06 00
0x001002c0:     83 b9 c9 92 a6 e4 52 f8  56 f4 5a f0 5e ec 62 e8
0x001002d0:     66 e4 86 ec ae 8c 17 dc  06 00 03 3c ac 43 17 da
0x001002e0:     06 00 03 3a 2a 69 97 ea  06 00 83 ba aa 9b b3 04
0x001002f0:     85 00 13 0b 89 01 93 8b  89 00 63 60 4c 03 46 64
0x00100300:     e6 60 a6 64 06 69 e2 79  42 7a a2 7a 02 7b e2 6b
0x00100310:     42 6c a2 6c 25 61 6f 00  70 6c 03 b5 01 07 03 36
0x00100320:     0c 00 22 95 32 95 63 8c  0c 00 63 66 65 01 93 07
0x00100330:     09 08 63 fc a7 06 63 8a  ab 06 63 88 a9 06 83 37
0x00100340:     8c 00 09 47 13 f6 f7 0f  63 00 e6 04 8d 47 63 14
0x00100350:     f6 04 83 36 0c 01 a6 96  63 8b 0c 04 03 b7 0c 01
0x00100360:     63 e8 e6 00 83 b7 8c 01  b2 07 ba 97 63 f1 d7 04
0x00100370:     2a 86 97 05 05 00 93 85  65 84 17 05 00 00 13 05
0x00100380:     e5 56 ef a0 34 06 15 a0  81 93 61 47 b3 87 e7 02
0x00100390:     d6 97 94 67 c9 b7 97 05  05 00 93 85 25 82 17 05
0x001003a0:     00 00 13 05 25 52 ef a0  f4 03 61 0c b9 b7 93 05
0x001003b0:     75 04 14 e1 93 f5 05 fc  13 75 05 fc ef 00 50 41
0x001003c0:     ed b7 41 11 22 e0 81 47  32 84 06 e4 ef 00 40 1d
0x001003d0:     09 c4 1c 40 93 f7 f7 07  1c c0 a2 60 02 64 41 01
0x001003e0:     82 80 6f 00 a0 12 01 47  bd 48 b3 07 e5 00 33 88
0x001003f0:     e5 00 83 c7 07 01 03 48  08 00 63 04 17 03 05 07
0x00100400:     e3 85 07 ff 81 47 13 07  05 02 83 55 07 00 91 c7
0x00100410:     83 57 06 00 8d 8f 93 b7  17 00 09 07 81 c9 09 06
0x00100420:     ed b7 b3 87 07 41 93 b7  17 00 f1 bf 99 c6 03 66
0x00100430:     05 00 1d 06 32 97 61 9b  98 e2 89 c7 17 17 00 00
0x00100440:     23 3e a7 a0 3e 85 82 80  41 11 97 15 00 00 93 85
0x00100450:     65 a1 01 45 06 e4 ef f0  df d8 a2 60 97 17 00 00
0x00100460:     23 be 07 9e 41 01 82 80  5d 71 a2 e0 26 fc 86 e4
0x00100470:     4a f8 4e f4 52 f0 56 ec  17 14 00 00 13 04 04 9e
0x00100480:     1c 64 03 d7 05 00 b2 84  03 e9 07 01 3e 99 05 e7
0x00100490:     01 ee 01 44 22 85 a6 60  06 64 e2 74 42 79 a2 79
0x001004a0:     02 7a e2 6a 61 61 82 80  e1 07 1c e2 e3 e3 27 ff
0x001004b0:     23 b0 04 00 f9 bf 2a 8a  08 60 ae 89 19 cd b2 86
0x001004c0:     2e 86 d2 85 ef f0 3f f2  09 c9 91 c4 9c 60 63 e4
0x001004d0:     27 01 23 b0 04 00 00 60  75 bf 00 64 93 0a 81 00
0x001004e0:     61 04 63 65 24 01 e9 f4  6d b7 22 64 6d dc d6 86
0x001004f0:     4e 86 d2 85 22 85 ef f0  1f ef a2 67 63 e3 27 01
0x00100500:     02 e4 65 d5 c1 d8 a2 67  9c e0 69 b7 11 ed 7d 55
0x00100510:     7e 15 09 05 82 80 7d 55  7e 15 09 05 a2 70 02 74
0x00100520:     e2 64 42 69 45 61 82 80  fd d1 75 d2 79 71 22 f0
0x00100530:     26 ec 4a e8 06 f4 2e 84  0c 61 aa 84 22 85 32 89
0x00100540:     ef 00 20 27 9c 60 e3 08  f5 fc 30 00 a2 85 4a 85
0x00100550:     ef f0 9f f1 01 e5 83 57  04 00 d5 ff a2 65 8d c9
0x00100560:     93 85 05 02 ae 87 03 d7  07 00 89 07 6d ff 98 60
0x00100570:     33 86 b7 40 90 e0 63 61  c7 02 22 85 ef f0 7f ce
0x00100580:     a2 65 4a 85 41 46 c1 05  ef f0 bf cd 01 45 79 b7
0x00100590:     7d 55 7e 15 39 05 59 b7  7d 55 7e 15 15 05 bd bf
0x001005a0:     19 ed 7d 55 7e 15 09 05  82 80 7d 55 7e 15 09 05
0x001005b0:     a2 70 02 74 e2 64 42 69  a2 69 45 61 82 80 f5 d1
0x001005c0:     ed d2 79 71 2a 88 4e e4  2e 85 b2 89 c2 85 01 46
0x001005d0:     22 f0 26 ec 4a e8 06 f4  3e 89 ba 84 36 84 ef f0
0x001005e0:     bf e8 1d cd 63 85 09 00  5c 41 23 a0 f9 00 63 05
0x001005f0:     09 00 1c 65 23 30 f9 00  03 67 05 00 1c 60 18 e0
0x00100600:     03 66 05 00 63 e2 c7 02  cd d0 93 05 05 02 83 d7
0x00100610:     05 00 89 05 ed ff 26 85  ef f0 bf c4 01 45 49 bf
0x00100620:     7d 55 7e 15 39 05 69 b7  7d 55 7e 15 15 05 49 b7
0x00100630:     3d c5 41 11 22 e0 06 e4  97 17 00 00 93 87 07 82
0x00100640:     98 67 94 63 3e 84 03 28  07 01 13 16 08 02 01 92
0x00100650:     3a 96 63 e6 a6 00 97 17  00 00 23 b1 07 80 93 05
0x00100660:     05 02 83 d7 05 00 89 05  ed ff 83 66 05 00 9d 06
0x00100670:     b6 95 e1 99 b3 07 b5 40  bb 87 07 01 0d 8e 1c cb
0x00100680:     ef f0 3f be 00 64 01 45  10 48 93 05 84 01 21 36
0x00100690:     ef 00 60 21 48 c8 a2 60  02 64 41 01 82 80 82 80
0x001006a0:     1d 71 56 f4 97 0a 00 00  93 8a 4a 7b 03 b3 8a 00
0x001006b0:     86 ec a2 e8 a6 e4 ca e0  4e fc 52 f8 5a f0 5e ec
0x001006c0:     62 e8 66 e4 03 69 03 01  01 4e 1a 99 93 1e 0e 02
0x001006d0:     93 de fe 01 aa 9e 83 de  0e 00 05 2e e3 98 0e fe
0x001006e0:     02 1e 93 54 fe 01 93 0c  09 02 33 83 67 40 33 8a
0x001006f0:     9c 00 36 93 52 93 11 6e  63 61 6e 08 be 89 b5 9f
0x00100700:     23 20 f9 00 23 34 19 01  2a 8b 23 22 c9 00 13 05
0x00100710:     09 01 41 46 36 84 c2 8b  3a 8c ef f0 9f b4 26 86
0x00100720:     da 85 66 85 ef f0 ff b3  22 86 e2 85 52 85 ef f0
0x00100730:     5f b3 33 05 8a 00 4e 86  de 85 ef f0 9f b2 03 66
0x00100740:     09 00 03 b4 8a 00 01 45  1d 06 52 96 61 9a 01 9e
0x00100750:     10 c8 93 05 84 01 21 36  ef 00 e0 14 48 c8 01 45
0x00100760:     e6 60 46 64 a6 64 06 69  e2 79 42 7a a2 7a 02 7b
0x00100770:     e2 6b 42 6c a2 6c 25 61  82 80 7d 55 7e 15 25 05
0x00100780:     c5 b7 97 07 00 00 93 87  67 6d 9c 67 11 65 9c 4b
0x00100790:     1d 9d 02 15 01 91 01 15  82 80 7d 55 7e 15 0d 05
0x001007a0:     82 80 7d 55 7e 15 0d 05  82 80 6f f0 7f df 6f f0
0x001007b0:     ff d5 81 47 63 88 b7 00  13 97 17 00 2a 97 03 57
0x001007c0:     07 00 19 e3 3e 85 82 80  85 07 ed b7 93 f7 35 00
0x001007d0:     85 cb 1d c6 17 07 00 00  13 07 47 14 85 05 83 c7
0x001007e0:     f5 ff 7d 36 a9 8f 93 f7  f7 0f 8a 07 ba 97 9c 43
0x001007f0:     1b 55 85 00 3d 8d 01 25  01 c6 93 f7 35 00 f9 ff
=>

#70 全志 SOC » 怎么使用BBCode? » 2022-04-01 09:11:21

Cadence
回复: 0
HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 07:21:09 +0800)

DRAM:  64 MiB
drivers/spi/spi-uclass.c 527 0
[00.244]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 07:21:09 +0800)

riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0
GNU ld (GNU Binutils) 2.32
=>

#71 全志 SOC » U-Boot 2022.01-rc3在spi-nand上启动起来了 » 2022-04-01 09:04:43

Cadence
回复: 0
HELLO! BOOT0 is starting!
BOOT0 commit : 023b78d-dirty
set pll start
periph0 has been enabled
set pll end
[pmu]: bus read error
board init ok
ZQ value = 0x2f***********
get_pmu_exist() = -1
ddr_efuse_type: 0xa
[AUTO DEBUG] single rank and full DQ!
ddr_efuse_type: 0xa
[AUTO DEBUG] rank 0 row = 13
[AUTO DEBUG] rank 0 bank = 4
[AUTO DEBUG] rank 0 page size = 2 KB
DRAM BOOT DRIVE INFO: V0.24
DRAM CLK = 528 MHz
DRAM Type = 2 (2:DDR2,3:DDR3)
DRAMC read ODT  off.
DRAM ODT off.
ddr_efuse_type: 0xa
DRAM SIZE =64 M
DRAM simple test OK.
dram size =64
spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 16
Jump to second Boot.


U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 07:21:09 +0800)

DRAM:  64 MiB
drivers/spi/spi-uclass.c 527 0
[00.244]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
Loading Environment from nowhere... OK
In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Hit any key to stop autoboot:  0
U-Boot 2022.01-rc3-00096-gc0ffc12a70-dirty (Apr 01 2022 - 07:21:09 +0800)

riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0
GNU ld (GNU Binutils) 2.32
=>

页脚

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

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