brandy/brandy-2.0/u-boot-2018/arch/arm/dts/sun8iw20p1-soc-system.dts
添加:
lcd0_1: lcd0_1@5461000 {
};
device/config/chips/t113_s4/configs/pt1/uboot-board.dts
添加lcd配置
&lcd0 {
lcd_used = <1>;
lcd_driver_name = "lcd_639";
lcd_backlight = <100>;
lcd_if = <4>;
lcd_x = <800>;
lcd_y = <1280>;
lcd_width = <52>;
lcd_height = <52>;
lcd_dclk_freq = <72>;
lcd_pwm_used = <1>;
lcd_pwm_ch = <4>;
lcd_pwm_freq = <1000>;
lcd_pwm_pol = <0>;
lcd_pwm_max_limit = <255>;
lcd_hbp = <50>;
lcd_ht = <895>;
lcd_hspw = <4>;
lcd_vbp = <30>;
lcd_vt = <1340>;
lcd_vspw = <4>;
lcd_dsi_if = <0>;
lcd_dsi_lane = <4>;
lcd_lvds_if = <0>;
lcd_lvds_colordepth = <0>;
lcd_lvds_mode = <0>;
lcd_frm = <0>;
lcd_hv_clk_phase = <0>;
lcd_hv_sync_polarity= <0>;
lcd_io_phase = <0x0000>;
lcd_gamma_en = <0>;
lcd_bright_curve_en = <0>;
lcd_cmap_en = <0>;
lcd_fsync_en = <0>;
lcd_fsync_act_time = <1000>;
lcd_fsync_dis_time = <1000>;
lcd_fsync_pol = <0>;
deu_mode = <0>;
lcdgamma4iep = <22>;
smart_color = <90>;
lcd_gpio_0 = <&pio PD 21 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dsi4lane_pins_a>;
pinctrl-1 = <&dsi4lane_pins_b>;
};
&lcd0_1 {
lcd_used = <1>;
lcd_driver_name = "lcd_630";
lcd_backlight = <100>;
lcd_if = <4>;
lcd_x = <720>;
lcd_y = <1280>;
lcd_width = <52>;
lcd_height = <52>;
lcd_dclk_freq = <68>;
lcd_pwm_used = <1>;
lcd_pwm_ch = <4>;
lcd_pwm_freq = <1000>;
lcd_pwm_pol = <0>;
lcd_pwm_max_limit = <255>;
lcd_hbp = <64>;
lcd_ht = <820>;
lcd_hspw = <4>;
lcd_vbp = <30>;
lcd_vt = <1380>;
lcd_vspw = <4>;
lcd_dsi_if = <0>;
lcd_dsi_lane = <4>;
lcd_lvds_if = <0>;
lcd_lvds_colordepth = <0>;
lcd_lvds_mode = <0>;
lcd_frm = <0>;
lcd_hv_clk_phase = <0>;
lcd_hv_sync_polarity= <0>;
lcd_io_phase = <0x0000>;
lcd_gamma_en = <0>;
lcd_bright_curve_en = <0>;
lcd_cmap_en = <0>;
lcd_fsync_en = <0>;
lcd_fsync_act_time = <1000>;
lcd_fsync_dis_time = <1000>;
lcd_fsync_pol = <0>;
deu_mode = <0>;
lcdgamma4iep = <22>;
smart_color = <90>;
lcd_gpio_0 = <&pio PD 21 GPIO_ACTIVE_HIGH>;
pinctrl-0 = <&dsi4lane_pins_a>;
pinctrl-1 = <&dsi4lane_pins_b>;
};
lcd_639.c
static void LCD_panel_try_switch(u32 sel)
{
printf("switch to lcd0_1 ................. \n");
printf("switch to lcd0_1 ................. \n");
printf("switch to lcd0_1 ................. \n");
lcd_power_off(sel);
sunxi_lcd_switch_compat_panel(sel, 1);/*switch to lcd0_1*/
}
static s32 lcd_open_flow(u32 sel)
{
LCD_OPEN_FUNC(sel, lcd_power_on, 10);
LCD_OPEN_FUNC(sel, LCD_panel_try_switch, 0); //must delay 0
LCD_OPEN_FUNC(sel, lcd_panel_init, 10);
LCD_OPEN_FUNC(sel, sunxi_lcd_tcon_enable, 50);
LCD_OPEN_FUNC(sel, lcd_bl_open, 0);
return 0;
}
启动日志:
[22]HELLO! BOOT0 is starting!
[25]BOOT0 commit : 2386bdb825
[27]set pll start
[33]periph0 has been enabled
[36]set pll end
[38][pmu]: bus read error
[40]board init ok
[42]enable_jtag
[44]ZQ value = 0x2f
[45]get_pmu_exist() = -1
[48]DRAM BOOT DRIVE INFO: V0.34
[51]DRAM CLK = 792 MHz
[53]DRAM Type = 3 (2:DDR2,3:DDR3)
[56]DRAMC ZQ value: 0x7b7bfb
[59]DRAM ODT value: 0x42.
[61]ddr_efuse_type: 0xa
[64]DRAM SIZE = 256 MB
[71]DRAM simple test OK.
[73]rtc standby flag is 0x0, super standby flag is 0x0
[78]dram size =256
[81]4byte mode error
[83]set spi freq:50000000
[86]spi sample_mode:1 sample_delay:1c
[91]spinor id is: ef 40 19, read cmd: 6b
[94]Succeed in reading toc file head.
[98]The size of toc is ec000.
[140]Entry_name = u-boot
[145]Entry_name = optee
[149]Entry_name = dtb
[152]Jump to second Boot.
M/TC: OP-TEE version: aa2ed4e9 (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Mon Jan 13 06:39:29 UTC 2025 arm
M/TC: OP-TEE 32bit
E/TC:0 0 search_key_via_name:418 Key 'huk' not found
E/TC:0 0 platform_standby_fdt_parse:126 no pmu0 node
E/TC:0 0 sunxi_twi_parse_from_dt:121 no pmu node
U-Boot 2018.07-gce06dac-dirty (May 24 2025 - 22:57:27 +0800) Allwinner Technology
[00.230]CPU: Allwinner Family
[00.233]Model: sun8iw20
[00.235]DRAM: 256 MiB
[00.238]Relocation Offset is: 0cf39000
[00.256]secure enable bit: 0
CACHE: Misaligned operation at range [4bef8e68, 4bf18e68]
E/TC:0 generate_smc_mem_map:319 Not enough SMC region, 0x41b07937 byte ta ram left unsecured
E/TC:0 fdt_getprop_u32:340 prop trace_level not found
[00.283]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.289]gic: sec monitor mode
SPI ALL: ready
[00.294]line:703 init_clocks
[00.297]flash init start
[00.299]workmode = 0,storage type = 3
[00.305]spi sample_mode:1 sample_delay:1c
[00.309]spi sunxi_slave->max_hz:50000000
SF: Detected w25q256( ) with page size 256 Bytes, erase size 64 KiB, total 32 MiB
[00.321]sunxi flash init ok
[00.324]drv_disp_init
partno erro : can't find partition bootloader
[00.361]drv_disp_init finish
[00.366]Loading Environment from SUNXI_FLASH... OK
[00.416]boot_gui_init:start
partno erro : can't find partition Reserve0
lcd 630 init ...............................
[00.709]LCD open finish
bad fb1_cfg[w=0,h=0,bpp=32,format=0]
[00.757]boot_gui_init:finish
partno erro : can't find partition bootloader
[00.764]bmp_name=bootlogo.bmp size 38454
root_partition is rootfs
set root to /dev/mtdblock5
[00.781]update part info
[00.784]update bootcmd
[00.796]change working_fdt 0x4bef8e68 to 0x4bed8e68
[00.824]update dts
Hit any key to stop autoboot: 0
[01.537]no vendor_boot partition is found
Android's image name: sun8i_arm
ERROR: reserving fdt memory region failed (addr=41b00000 size=100000)
ERROR: reserving fdt memory region failed (addr=4bf43000 size=384000)
[01.578]Starting kernel ...
[01.580]total: 1580 ms
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.61 (ubuntu@ubuntu) (arm-linux-gnueabi-gcc (Linaro GCC 5.3-2016.05) 5.3.1 20160412, GNU ld (Linaro_Binutils-2016.05) 2.25.0 Linaro 2016_02) #1 SMP PREEMPT Fri May 16 17:43:52 CST 2025
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: sun8iw20
[ 0.000000] printk: bootconsole [earlycon0] enabled
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created DMA memory pool at 0x42200000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@42200000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x42244000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node dsp0_rpbuf@42244000, compatible id shared-dma-pool
[ 0.000000] Reserved memory: created DMA memory pool at 0x42900000, size 0 MiB
[ 0.000000] OF: reserved mem: initialized node vdev0buffer@42900000, compatible id shared-dma-pool
[ 0.000000] cma: Reserved 32 MiB at 0x4e000000
[ 0.000000] On node 0 totalpages: 63600
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 63600 pages, LIFO batch:15
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.0 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.0
[ 0.000000] percpu: Embedded 15 pages/cpu s30848 r8192 d22400 u61440
[ 0.000000] pcpu-alloc: s30848 r8192 d22400 u61440 alloc=15*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 63088
[ 0.000000] Kernel command line: earlyprintk= clk_ignore_unused initcall_debug=0 console=ttyS4,115200 loglevel=8 root=/dev/mtdblock5 rootfstype=squashfs rootwait init=/init partitions=boot-resource@mtdblock1:env@mtdblock2:env-redund@mtdblock3:boot@mtdblock4:rootfs@mtdblock5:UDISK@mtdblock6 cma=32M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw20p1 boot_type=3 androidboot.boot_type=3 gpt=1 uboot_message=2018.07-gce06dac-dirty(05/24/2025-22:57:27) mbr_offset=1032192 disp_reserve=3686400,0x4bf43000 androidboot.dramfreq=792 androidboot.dramsize=256 uboot_backup=ubootA
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 197340K/254400K available (6144K kernel code, 384K rwdata, 2128K rodata, 1024K init, 166K bss, 24292K reserved, 32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x254/0x3d0 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.014212] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.024062] Console: colour dummy device 80x30
[ 0.028561] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.038941] pid_max: default: 32768 minimum: 301
[ 0.043717] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.051055] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.059425] CPU: Testing write buffer coherency: ok
[ 0.064680] /cpus/cpu@0 missing clock-frequency property
[ 0.070000] /cpus/cpu@1 missing clock-frequency property
[ 0.075353] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.081621] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.088312] rcu: Hierarchical SRCU implementation.
[ 0.093595] smp: Bringing up secondary CPUs ...
[ 0.099422] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.099578] smp: Brought up 1 node, 2 CPUs
[ 0.109413] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[ 0.115592] CPU: All CPU(s) started in SVC mode.
[ 0.120724] devtmpfs: initialized
[ 0.137076] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.145280] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.155177] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.163533] pinctrl core: initialized pinctrl subsystem
[ 0.170135] NET: Registered protocol family 16
[ 0.176417] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.222596] rtc_ccu: sunxi ccu init OK
[ 0.228880] ccu: sunxi ccu init OK
[ 0.232823] r_ccu: sunxi ccu init OK
[ 0.273847] sun6i-dma 3002000.dma-controller: sunxi dma probed
[ 0.282609] iommu: Default domain type: Translated
[ 0.287756] sunxi iommu: irq = 24
[ 0.292313] SCSI subsystem initialized
[ 0.296489] usbcore: registered new interface driver usbfs
[ 0.302144] usbcore: registered new interface driver hub
[ 0.307599] usbcore: registered new device driver usb
[ 0.314156] Advanced Linux Sound Architecture Driver Initialized.
[ 0.321268] pwm module init!
[ 0.334687] g2d 5410000.g2d: Adding to iommu group 0
[ 0.340148] G2D: rcq version initialized.major:251
[ 0.345727] input: sunxi-keyboard as /devices/virtual/input/input0
[ 0.353390] clocksource: Switched to clocksource arch_sys_counter
[ 0.368671] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[ 0.390033] thermal_sys: Registered thermal governor 'step_wise'
[ 0.390595] NET: Registered protocol family 2
[ 0.401698] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.410787] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 0.418524] TCP bind hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.426143] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.432637] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.439218] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.446453] NET: Registered protocol family 1
[ 0.451953] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.462351] spi spi0: spi0 supply spi not found, using dummy regulator
[ 0.469303] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE
[ 0.475513] sunxi_spi_resource_get()2198 - sample_mode:1 sample_delay:28
[ 0.482282] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000
[ 0.488752] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base d0821000, irq 40
[ 0.498834] Initialise system trusted keyrings
[ 0.503582] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[ 0.518453] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.524761] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.529571] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.566253] Key type asymmetric registered
[ 0.570361] Asymmetric key parser 'x509' registered
[ 0.575304] io scheduler mq-deadline registered
[ 0.579839] io scheduler kyber registered
[ 0.583964] atomic64_test: passed
[ 0.588803] [DISP]disp_module_init
[ 0.592801] disp 5000000.disp: Adding to iommu group 0
[ 0.598639] [DISP] disp_init,line:2372:
[ 0.598645] smooth display screen:0 type:1 mode:4
[ 0.624412] display_fb_request,fb_id:0
[ 0.638390] disp_al_manager_apply ouput_type:1
[ 0.643156] [DISP] lcd_clk_config,line:777:
[ 0.643167] disp 0, clk: pll(432000000),clk(432000000),dclk(72000000) dsi_rate(72000000)
[ 0.643167] clk real:pll(432000000),clk(432000000),dclk(108000000) dsi_rate(150000000)
[ 0.644024] [DISP]disp_module_init finish
[ 0.648057] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[ 0.664997] sunxi_sid_init()783 - insmod ok
[ 0.682724] pwm-regulator: supplied by regulator-dummy
[ 0.685698] Freeing logo buffer memory: 3600K
[ 0.690299] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[ 0.702591] uart uart3: uart3 supply uart not found, using dummy regulator
[ 0.709972] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
[ 0.718654] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.728939] uart uart4: uart4 supply uart not found, using dummy regulator
[ 0.736234] uart4: ttyS4 at MMIO 0x2501000 (irq = 35, base_baud = 1500000) is a SUNXI
[ 0.744122] sw_console_setup()1831 - console setup baud 115200 parity n bits 8, flow n
▒[ 0.752102] printk: console [ttyS4] enabled
[ 0.752102] printk: console [ttyS4] enabled
[ 0.761034] printk: bootconsole [earlycon0] disabled
[ 0.761034] printk: bootconsole [earlycon0] disabled
[ 0.772905] misc dump reg init
[ 0.776961] deinterlace 5400000.deinterlace: Adding to iommu group 0
[ 0.784699] deinterlace 5400000.deinterlace: version[1.0.0], ip=0x110
[ 0.793492] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[ 0.800744] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[ 0.808118] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[ 0.815567] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[ 0.822112] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[ 0.829079] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
[ 0.836829] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=207 assert=1
[ 0.844703] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=204 assert=1
[ 0.852826] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[ 0.860547] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[ 0.867352] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
[ 0.874916] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=38 assert=0
[ 0.883105] [ADDR_MGT] addr_mgt_probe: module version: v1.0.11
[ 0.890413] [ADDR_MGT] addr_mgt_probe: success.
[ 0.897147] spi-nor spi0.0: w25q256 (32768 Kbytes)
[ 0.903528] 7 sunxipart partitions found on MTD device spi0.0
[ 0.909980] Creating 7 MTD partitions on "spi0.0":
[ 0.915417] 0x000000000000-0x000000100000 : "uboot"
[ 0.924554] 0x000000100000-0x000000120000 : "boot-resource"
[ 0.934606] 0x000000120000-0x000000140000 : "env"
[ 0.944575] 0x000000140000-0x000000160000 : "env-redund"
[ 0.954541] 0x000000160000-0x0000005a0000 : "boot"
[ 0.964579] 0x0000005a0000-0x000001050000 : "rootfs"
[ 0.974620] 0x000001050000-0x000002000000 : "UDISK"
[ 0.985638] libphy: Fixed MDIO Bus: probed
[ 0.990244] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.997673] sunxi-ehci: EHCI SUNXI driver
[ 1.002695] get drvvbus-en is fail, 22
[ 1.006959] get ehci0-controller wakeup-source is fail.
[ 1.012944] sunxi ehci0-controller don't init wakeup source
[ 1.019318] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b82920, 0x:d083a000, irq_no:35
[ 1.031337] [sunxi-ehci0]: Not init ehci0
[ 1.036191] get drvvbus-en is fail, 22
[ 1.040400] get ehci1-controller wakeup-source is fail.
[ 1.046403] sunxi ehci1-controller don't init wakeup source
[ 1.052687] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b82e80, 0x:d083e000, irq_no:37
[ 1.064983] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator
[ 1.077410] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[ 1.084725] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[ 1.094818] sunxi-ehci 4200000.ehci1-controller: irq 55, io mem 0x04200000
[ 1.123416] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[ 1.132224] hub 1-0:1.0: USB hub found
[ 1.136520] hub 1-0:1.0: 1 port detected
[ 1.141714] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.148708] sunxi-ohci: OHCI SUNXI driver
[ 1.153716] get drvvbus-en is fail, 22
[ 1.157928] get ohci0-controller wakeup-source is fail.
[ 1.163973] sunxi ohci0-controller don't init wakeup source
[ 1.170234] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b82bd0
[ 1.179930] [sunxi-ohci0]: Not init ohci0
[ 1.184827] get drvvbus-en is fail, 22
[ 1.189039] get ohci1-controller wakeup-source is fail.
[ 1.195037] sunxi ohci1-controller don't init wakeup source
[ 1.201297] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b83130
[ 1.211238] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator
[ 1.223694] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[ 1.230955] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[ 1.240924] sunxi-ohci 4200400.ohci1-controller: irq 56, io mem 0x04200400
[ 1.318396] hub 2-0:1.0: USB hub found
[ 1.322653] hub 2-0:1.0: 1 port detected
[ 1.327977] usbcore: registered new interface driver usb-storage
[ 1.335350] sunxi_gpadc_init,2228, success
[ 1.341290] sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
[ 1.352050] sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
[ 1.363339] sunxi-rtc 7090000.rtc: registered as rtc0
[ 1.369088] sunxi-rtc 7090000.rtc: Warning: Using internal RC 16M clock source. Time may be inaccurate!
[ 1.379759] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:51:20 UTC (3080)
[ 1.388957] sunxi-rtc 7090000.rtc: Fail to read dts property 'gpr_bootcount_pos'
[ 1.397289] reasonbase NULL
[ 1.400420] reason large than max, fix to hot reboot, save boot reason
[ 1.407754] invalid reason or reasonbase NULL
[ 1.412649] sunxi-rtc 7090000.rtc: sunxi rtc probed
[ 1.418635] i2c /dev entries driver
[ 1.422682] IR NEC protocol handler initialized
[ 1.428202] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[ 1.439607] sunxi-rc-recv 7040000.s_cir: sunxi_irrx_resource_get: get ir protocol failed
[ 1.448813] Registered IR keymap rc_map_sunxi
[ 1.453890] rc rc0: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0
[ 1.462613] rc rc0: lirc_dev: driver sunxi-rc-recv registered at minor = 0, raw IR receiver, no transmitter
[ 1.473797] input: sunxi-ir as /devices/platform/soc@3000000/7040000.s_cir/rc/rc0/s_cir_rx
[ 1.484160] sunxi cedar version 1.1
[ 1.488266] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[ 1.494577] VE: sunxi_cedar_probe power-domain init!!!
[ 1.500350] VE: install start!!!
[ 1.500350]
[ 1.505946] VE: cedar-ve the get irq is 41
[ 1.505946]
[ 1.512422] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
[ 1.512422]
[ 1.521733] VE: install end!!!
[ 1.521733]
[ 1.526829] VE: sunxi_cedar_probe
[ 1.531880] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.544010] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
[ 1.553957] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[ 1.560178] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[ 1.566547] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[ 1.572994] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[ 1.579453] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[ 1.586007] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[ 1.592550] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[ 1.599107] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[ 1.606152] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[ 1.611561] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[ 1.618280] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.629461] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[ 1.649625] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.674102] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[ 1.679807] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1.684049] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
[ 1.700899] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[ 1.707143] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[ 1.713514] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[ 1.719977] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[ 1.726439] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[ 1.732992] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[ 1.739550] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[ 1.746107] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[ 1.752707] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[ 1.762273] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.773506] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[ 1.793411] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.817697] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[ 1.825405] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 1.832555] usbcore: registered new interface driver usbhid
[ 1.838843] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[ 1.845731] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.853399] usbhid: USB HID core driver
[ 1.860440] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.861639] exFAT: Version 1.3.0
[ 1.875422] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[ 1.879969] NET: Registered protocol family 10
[ 1.885255] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[ 1.889937] Segment Routing with IPv6
[ 1.896302] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[ 1.899704] NET: Registered protocol family 17
[ 1.907249] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[ 1.911414] 8021q: 802.1Q VLAN Support v1.8
[ 1.918158] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1.923541] Registering SWP/SWPB emulation handler
[ 1.939707] Loading compiled-in X.509 certificates
[ 1.964564] sunxi-thermal 2009400.ths: sun8iw20 chip id: 29184
[ 1.971120] sunxi-thermal 2009400.ths: sun8iw20 t1: 8000
[ 1.977245] sunxi-thermal 2009400.ths: sun8iw20 cp version:22
[ 1.988375] otg manager soc@3000000:usbc0@0: soc@3000000:usbc0@0 supply usbc not found, using dummy regulator
[ 2.004786] debugfs: Directory 'soc@3000000:codec_plat' with parent 'audiocodec' already present!
[ 2.015423] sunxi-snd-mach soc@3000000:codec_mach: 2030000.codec <-> soc@3000000:codec_plat mapping ok
[ 2.027256] input: audiocodec Headphones as /devices/platform/soc@3000000/soc@3000000:codec_mach/sound/card0/input2
[ 2.039843] [sound 403][MACH simple_parse_of] simple_dai_link_of failed
[ 2.047540] [sound 403][MACH simple_parse_of] simple_dai_link_of failed
[ 2.055263] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.066752] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.074404] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.083643] clk: Not disabling unused clocks
[ 2.084216] cfg80211: failed to load regulatory.db
[ 2.088847] ALSA device list:
[ 2.097533] #0: audiocodec
[ 2.100769] alloc_fd: slot 0 not NULL!
[ 2.167895] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[ 2.179929] Freeing unused kernel memory: 1024K
[ 2.203685] Run /init as init process
[ 2.258703] random: fast init done
[ 5.500231] random: fgrep: uninitialized urandom read (4 bytes read)
[ 5.516774] random: mkdir: uninitialized urandom read (4 bytes read)
[ 5.534743] random: sed: uninitialized urandom read (4 bytes read)
[ 5.603539]
[ 5.603539] insmod_device_driver
[ 5.603539]
[ 5.614281] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator
[ 7.469946] random: crng init done
[ 7.473780] random: 7 urandom warning(s) missed due to ratelimiting
[ 15.470764] jffs2: notice: (1009) jffs2_build_xattr_subsystem: complete building xattr subsystem, 20 of xdatum (7 unchecked, 13 orphan) and 22 of xref (13 dead, 0 orphan) found.
[ 15.685674] overlayfs: upper fs does not support tmpfile.
mount: mounting proc on /proc failed: Device or resource busy
[ 17.656374] file system registered
[ 17.695166] configfs-gadget 4100000.udc-controller: failed to start g1: -19
sh: write error: No such device
init adb main
[ 17.887423] read descriptors
Handling main()
[ 17.890967] read strings
[5]+ Done echo /sbin/mdev 1>/proc/sys/kernel/hotplug
#
[4] Done mkdir -p /mnt/addon2/
#
#
# WARNING: awplayer <cdx_log_set_level:30>: cdx Set log level to 4
[5] Done /bin/setusbconfig adb
[3] Done tinymix set "HPOUT Switch" 1
[1] Done mdev -s
# [1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:79>: register h264 decoder success!
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:84>: register mjpeg decoder success!
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:86>: register mpeg2 decoder success!
WARNING: awplayer <DlOpenPlugin:114>: Invalid plugin,function CedarPluginVDInit not found.
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:92>: register mpeg4dx decoder success!
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:79>: register mpeg4H263 decoder success!
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:90>: register mpeg4Normal decoder success!
ERROR : awplayer <DlOpenPlugin:105>: dlopen 'libawwmv3.so' fail: libawwmv3.so: cannot open shared object file: No such file or directory
[1970-01-01 08:51:42] INFO : cedarc <CedarPluginVDInit:85>: register h265 decoder success!
INFO : awplayer <AwParserInit:452>: aw parser init...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> tina_multimedia <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
tag : tina3.5
branch: tina-dev
date : Mon Jul 15 19:04:59 2019 +0800
Change-Id: I5f6c8a88d7b387a312b7744797a0d5f8ab07ee7a
-------------------------------------------------------------------------------
#
#
#
#
# xplayer:process message XPLAYER_COMMAND_SET_AUDIOSINK.
xplayer:process message XPLAYER_COMMAND_SET_SURFACE.
xplayer:process message XPLAYER_COMMAND_SET_SUBCTRL.
xplayer:process message XPLAYER_COMMAND_SET_DI.
# WARNING: awplayer <XPlayerReset:1005>: reset...
xplayer:process message XPLAYER_COMMAND_RESET.
ERROR : awplayer <PlayerStop:994>: invalid stop operation, player already in stopped status.
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
#
# wh=800x1280, vwh=800x2560, bpp=32, rotated=0
Turn on double buffering.
Turn on 2d hardware acceleration.
Turn on 2d hardware acceleration blit.
Turn on 2d hardware acceleration rotate.
finfo.line_length=3200, vinfo.yres=1280
sinfo.rotatefbp_w=800, sinfo.rotatefbp_h=1280
------> sunxifb_alloc=b41ee000
lvgl width=800, height=1280, rotated=0
#
#
#
#
#
# unable to open evdev interface:: No such file or directory
# ccode = 7
now play: /mnt/addon2/test1.mp4
WARNING: awplayer <XPlayerReset:1005>: reset...
xplayer:process message XPLAYER_COMMAND_RESET.
ERROR : awplayer <PlayerStop:994>: invalid stop operation, player already in stopped status.
INFO : awplayer <XPlayerThread:1838>: process message XPLAYER_COMMAND_SET_SOURCE.
xplayer:process message XPLAYER_COMMAND_SET_SOURCE.
xplayer:process message XPLAYER_COMMAND_PREPARE.
ERROR : awplayer <__FileStreamConnect:385>: open file failure, errno(2)
ERROR : awplayer <CdxParserPrepare:840>: open stream fail, uri(file:///mnt/addon2/test1.mp4)
ERROR : demuxComponent <DemuxThread:2119>: DEMUX_ERROR_IO
ERROR : awplayer <XPlayerSetDataSourceUrl:544>: prepare failure, ret(-1004)
TPlayerSetDataSource() return fail.
not prepared!
Screen Width: 800px, Screen Height: 1280px
-/bin/sh: c: not found
[6]- Done modprobe xr819 && wpa_supplicant -B -d -i wlan0 -c /etc/wpa_supplicant.conf 1>/dev/null 2>&1
#
#
#
#
#
# cat /sys/class/disp/disp/attr/sys
screen 0:
de_rate 300000000 hz, ref_fps:60
mgr0: 800x1280 fmt[rgb] cs[0x204] range[full] eotf[0x4] bits[8bits] err[0] force_sync[0] unblank direct_show[false] iommu[1]
dmabuf: cache[0] cache max[0] umap skip[0] umap skip max[6]
lcd output backlight(255) fps:60.6 800x1280
err:0 skip:29 irq:1864 vsync:0 vsync_skip:0
BUF enable ch[1] lyr[0] z[16] prem[N] a[pixel 255] fmt[ 0] fb[ 800,1280; 800,1280; 800,1280] crop[ 0,1280, 800,1280] frame[ 0, 0, 720,1280] addr[ 0, 0, 0] flags[0x 0] trd[0,0]
depth[ 0]
#
#
#
#
离线
ILI9881C 可以用 mipi cmd 读取 id
static void LCD_panel_try_switch(u32 sel)
{
u8 result[16] = {0};
u32 num = 0;
sunxi_lcd_delay_ms(100);
sunxi_lcd_dsi_dcs_write_3para(sel, 0xFF, 0x98, 0x81, 0x01); //切换到page1
sunxi_lcd_delay_ms(10);
sunxi_lcd_dsi_set_max_ret_size(sel, 3);
sunxi_lcd_dsi_dcs_read(sel, 0x00, result, &num);//读寄存器0
printf("^^^^^^^^^^^^^^^get lcd id 0x%x, num=%d\n", result[0], num);
sunxi_lcd_dsi_dcs_read(sel, 0x01, result, &num);//读寄存器1
printf("^^^^^^^^^^^^^^^get lcd id 0x%x, num=%d\n", result[0], num);
sunxi_lcd_dsi_dcs_read(sel, 0x02, result, &num);//读寄存器2
printf("^^^^^^^^^^^^^^^get lcd id 0x%x, num=%d\n", result[0], num);
}
日志:
[00.363]drv_disp_init finish
[00.368]Loading Environment from SUNXI_FLASH... OK
[00.417]boot_gui_init:start
partno erro : can't find partition Reserve0
^^^^^^^^^^^^^^^get lcd id 0x98, num=1
^^^^^^^^^^^^^^^get lcd id 0x81, num=1
^^^^^^^^^^^^^^^get lcd id 0x1c, num=1
lcd 636 init ...............................
[00.831]LCD open finish
离线