您尚未登录。

#1 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-22 17:29:34

pythinker 说:

建议先用 SYNC 的屏幕, 看还有没有这个错误, 如果正常了, 再到 i80 屏幕测试.

我原本是用 SYNC 的屏幕, 是無問題的..

#2 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-22 17:10:01

還是不成!!找不到以下原因
disp_al_capture_screen,line:1992:    WB_EBIOS_Set_Para fail, ret=-1

#3 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-22 14:37:43

init LCD program:

/***************************************************************
	init lCD driver
***************************************************************/
int initLCD(void)
{
	unsigned int arg[4];

	if ((disp = open("/dev/disp", O_RDWR)) == -1)
	{
        printf("can't open /dev/disp \n");
        return 0;
	}

	arg[0] = 0;
	screen_width  = ioctl(disp, DISP_CMD_SCN_GET_WIDTH, arg);
	screen_height = ioctl(disp, DISP_CMD_SCN_GET_HEIGHT, arg);
	printf("width=%d,height=%d\n", screen_width,screen_height);

	arg[0] = SCREEN_A;
	ioctl(disp, DISP_CMD_LCD_ON,(unsigned long)arg);

	bk_color.red = 0xff;
	bk_color.green = 0x00;
	bk_color.blue = 0x00;
	arg[0] = SCREEN_A;
	arg[1] = (unsigned long)&bk_color;
	ioctl(disp, DISP_CMD_SET_BKCOLOR,(unsigned long)arg);

//request fb0
	fb_para.mode = DISP_LAYER_WORK_MODE_SCALER;
	fb_para.smem_len = FB_WIDTH * FB_HEIGHT * 4/*32bpp*/ * (DOUBLE_BUFFER+1);
	fb_para.ch1_offset = 0;
	fb_para.ch2_offset = 0;
	arg[0] = SCREEN_A;
	arg[1] = (unsigned long)&fb_para;
	hlay = ioctl(disp, DISP_CMD_FB_REQUEST,(unsigned long)arg);
	if(hlay <= 0)
	{
		printf("request fb fail\n");
	}

	if ((lcd_fd = open("/dev/fb0", O_RDWR)) > 0)
	{
		printf("open fb0 ok\n");
	}
	else
	{
		printf("open fb0 fail!!!\n");
	}
	ioctl(lcd_fd, FBIOGET_FSCREENINFO, &finfo);
	frameBuffer = (char*)mmap(0, screensize, PROT_READ|PROT_WRITE, MAP_SHARED, lcd_fd, 0);
	memset(frameBuffer, 0xff, finfo.smem_len/(DOUBLE_BUFFER+1));
	ioctl(lcd_fd, FBIOGET_VSCREENINFO, &vinfo);
	vinfo.xoffset= 0;
	vinfo.yoffset= 0;
	vinfo.xres = FB_WIDTH;
	vinfo.yres = FB_HEIGHT;
	vinfo.xres_virtual= FB_WIDTH;
	vinfo.yres_virtual= FB_HEIGHT * (DOUBLE_BUFFER+1);
	vinfo.nonstd = 0;
	vinfo.bits_per_pixel = 32;
	vinfo.transp.length = 8;
	vinfo.red.length = 8;
	vinfo.green.length = 8;
	vinfo.blue.length = 8;
	vinfo.activate = FB_ACTIVATE_FORCE;
	ioctl(lcd_fd, FBIOPUT_VSCREENINFO, &vinfo);

	scn_win.x = 0;
	scn_win.y = 0;
	scn_win.width = FB_WIDTH;
	scn_win.height = FB_HEIGHT;
	arg[0] = SCREEN_A;
	arg[1] = (unsigned long)hlay;
	arg[2] = (unsigned long)&scn_win;
	ioctl(disp, DISP_CMD_LAYER_SET_SCN_WINDOW, (unsigned long)arg);

        arg[0] = SCREEN_A;
        arg[1] = hlay;
        ioctl(disp, DISP_CMD_FB_RELEASE, (unsigned long)arg);

log file:

HELLO! BOOT0 is starting!
boot0 version : 3.1.0
reg_addr 0x01f00100 =0x00000000
reg_addr 0x01f00104 =0x00000000
reg_addr 0x01f00108 =0x00000000
reg_addr 0x01f0010c =0x00000000
reg_addr 0x01f00110 =0x00000000
reg_addr 0x01f00114 =0x00000000
DRAM DRIVE INFO: V1.5
DRAM CLK =552 MHZ
DRAM simple test OK.
dram size =1024
card boot number = 2
card no is 2
sdcard 2 line count 0
[mmc]: mmc driver ver 2014-07-07 16:54
[mmc]: ***Try SD card 2***
[mmc]: mmc 2 cmd 8 timeout, err 0x00000100
[mmc]: mmc 2 cmd 8 err 0x00000100
[mmc]: mmc 2 send if cond failed
[mmc]: mmc 2 cmd 55 timeout, err 0x00000100
[mmc]: mmc 2 cmd 55 err 0x00000100
[mmc]: mmc 2 send app cmd failed
[mmc]: ***Try MMC card 2***
[mmc]: MMC ver 5.0
[mmc]: SD/MMC Card: 4bit, capacity: 7456MB
[mmc]: vendor: Man 0x00150100 Snr 0x016445b8
[mmc]: product: 8GND3
[mmc]: revision: 5.2
[mmc]: ***SD/MMC 2 init OK!!!***
sdcard 2 init ok
The size of uboot is 0x000bc000.
sum=0xf8f85a95
src_sum=0xf8f85a95
set_mmc_para,sdly 50M 0
set_mmc_para,sdly 25M 0
Succeed in loading uboot from sdmmc flash.
Ready to disable icache.
Jump to secend Boot.
[      0.331]

U-Boot 2011.09-rc1 (Jan 22 2020 - 10:03:35) Allwinner Technology 

[      0.338]version: 1.1.0
[      0.423]pmbus:   ready
[      0.426]PMU: AXP221
[      0.428]PMU: AXP22x found
[      0.431]PMU: dcdc3 1200
€€趣暊僛cN?€Sb嘣妧1 马妹匾S姑€@┟€@┟€@@ッ繞?孛繞?涿€@俬毿?浺?儤?Z褤JJ鬀^
                                                                                               ??拻o?扗髝€菮?S?赡?蚃维覛€拋?€颗滈閫儖€?€€?艤型捔?蛙许橜P浲??侒悁菮蛙韶氻Vj髝€?网$P悞€墎?€€?諟蓸 HN翏[3?艠冱晚豿憖€華跑蓽蓚悅儉[;9蛙蒐n杪8€€華蛙韶 N翏[;0咆牲晚? Z齹€菼跑蓽谅0們怟;2?倰?&€€華砒$X临8€€萚跑韶氻Vj髳€萠跑霖氻^j髝€菻蛙韶氻^j麁€权艛艕'€        放啊C?儍€亖B1硼?€€燃艛?{K39艛?侭0?洓摀7⑸悰摀€€权艤摏摀7㈨毴洆摏€€菮艕7悮?АK悜
                                                                                                                     €€豍?捝?Ъ偵??鸥?€掹€€菻?搨€x,9佇?摀#蛡_C?釗?滥_?摏悁€€€€€€[K搨€€亐€€€€€€趻悁羳€悁垚€?€?€驌摏摀洆洆摏g見僗zg跉
                                                                          谝?Pr?zpn?侤憮衣蜆蹞樕?冡[櫓Zj?
                                                                                                              c$ば殐Xz哨?搾?'?闃山?㈣仢
                                                                                                                                            梼牵?团挺€€W1氋?/S氎挌3蒵%j[c?跊^邑3?'S袙殜€髿偮倆pj髝€1撔/K-袝洂\R齹€w8J匦
                                                 ?擅_7嬳?%jnF剙€:忘?铜€€1艤霖氻^j髝€w:蛙韶氻^j髝€:艤蓸 H^翏[;?艠牲彭榹亐€w9諟绍蓚槀儉[;?跑蒐n曷8€€w9艤霖 V翏[3?咆牲晚? Z齹€wk跑蓽陕 拑€[;1諛倰碥€k忘淋3陈_7'砣 鸞    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.4.39 (aug@aug-virtual-machine) (gcc version 4.6.3 20120201 (prerelease) (crosstool-NG linaro-1.13.1-2012.02-20120222 - Linaro GCC 2012.02) ) #21 SMP PREEMPT Wed Jan 22 15:14:53 HKT 2020
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: sun8i
[    0.000000] cma: CMA: reserved 176 MiB at 75000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] script_init enter!
[    0.000000] script_init exit!
[    0.000000] PERCPU: Embedded 8 pages/cpu @c1ba5000 s10688 r8192 d13888 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 259840
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p7 init=/init ion_cma_512m=120m ion_cma_1g=176m ion_carveout_512m=96m ion_carveout_1g=150m coherent_pool=4m loglevel=7 partitions=boot-res@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:data@mmcblk0p8:UDISK@mmcblk0p1 boot_type=2 config_size=0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 844040k/844040k available, 204536k reserved, 90112K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc08ea6e0   (9098 kB)
[    0.000000]       .init : 0xc08eb000 - 0xc093d9c0   ( 331 kB)
[    0.000000]       .data : 0xc093e000 - 0xc09b8bc0   ( 491 kB)
[    0.000000]        .bss : 0xc09ba098 - 0xc0b21f08   (1440 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:416
[    0.000000] try to syncboot of clk ats
[    0.000000] try to syncboot of clk sdmmc2
[    0.000000] try to syncboot of clk pll_ddr1
[    0.000000] try to syncboot of clk debe0
[    0.000000] try to syncboot of clk uart0
[    0.000000] try to syncboot of clk dma
[    0.000000] try to syncboot of clk sat
[    0.000000] try to syncboot of clk pio
[    0.000000] try to syncboot of clk mbus
[    0.000000] try to syncboot of clk drc0
[    0.000000] try to syncboot of clk lcd0ch0
[    0.000000] try to syncboot of clk axi
[    0.000000] try to syncboot of clk losc_out
[    0.000000] Architected local timer running at 24.00MHz.
[    0.000000] Switching to timer-based delay loop
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
[    0.000000] Console: colour dummy device 80x30
[    0.000251] Calibrating delay loop (skipped), value calculated using timer frequency.. 4800.00 BogoMIPS (lpj=24000000)
[    0.000277] pid_max: default: 32768 minimum: 301
[    0.000501] Security Framework initialized
[    0.000552] SELinux:  Initializing.
[    0.000632] AppArmor: AppArmor disabled by boot time parameter
[    0.000735] Mount-cache hash table entries: 512
[    0.001844] Initializing cgroup subsys debug
[    0.001862] Initializing cgroup subsys cpuacct
[    0.001874] Initializing cgroup subsys freezer
[    0.001918] CPU: Testing write buffer coherency: ok
[    0.001966] ftrace: allocating 23575 entries in 70 pages
[    0.030319] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.030340] [sunxi_smp_prepare_cpus] enter
[    0.030383] Setting up static identity map for 0x4063a030 - 0x4063a088
[    0.010000] CPU1: Booted secondary processor
[    0.010000] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.010000] CPU2: Booted secondary processor
[    0.010000] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.010000] CPU3: Booted secondary processor
[    0.010000] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.210189] Brought up 4 CPUs
[    0.210189] SMP: Total of 4 processors activated (19200.00 BogoMIPS).
[    0.210434] devtmpfs: initialized
[    0.214461] pinctrl core: initialized pinctrl subsystem
[    0.220318] dummy: 
[    0.227567] NET: Registered protocol family 16
[    0.243965] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.244048] script_sysfs_init success
[    0.244372] sunxi pinctrl probe enter
[    0.245088] gpiochip_add: registered GPIOs 0 to 383 on device: sunxi-pinctrl
[    0.246226] sunxi-pinctrl sunxi-pinctrl: initialized sunXi PIO driver
[    0.246446] axp_pinctrl_probe enter...
[    0.246618] gpiochip_add: registered GPIOs 1024 to 1029 on device: axp-pinctrl
[    0.246638] mainkey total count : 78
[    0.246648] mainkey name : product, pin count : 0
[    0.246658] mainkey name : platform, pin count : 0
[    0.246668] mainkey name : target, pin count : 0
[    0.246678] mainkey name : key_detect_en, pin count : 0
[    0.246688] mainkey name : power_sply, pin count : 0
[    0.246698] mainkey name : card_boot, pin count : 0
[    0.246708] mainkey name : card0_boot_para, pin count : 6
[    0.246720] mainkey name : card2_boot_para, pin count : 6
[    0.246733] mainkey name : twi_para, pin count : 2
[    0.246745] mainkey name : uart_para, pin count : 2
[    0.246758] mainkey name : force_uart_para, pin count : 2
[    0.246770] mainkey name : jtag_para, pin count : 4
[    0.246783] mainkey name : clock, pin count : 0
[    0.246793] mainkey name : pm_para, pin count : 0
[    0.246804] mainkey name : dram_para, pin count : 0
[    0.246814] mainkey name : pm_para, pin count : 0
[    0.246826] mainkey name : wakeup_src_para, pin count : 2
[    0.246839] mainkey name : twi0, pin count : 2
[    0.246850] mainkey name : twi1, pin count : 2
[    0.246862] mainkey name : twi2, pin count : 2
[    0.246874] mainkey name : uart0, pin count : 2
[    0.246884] mainkey name : uart1, pin count : 4
[    0.246895] mainkey name : uart2, pin count : 2
[    0.246906] mainkey name : uart3, pin count : 0
[    0.246917] mainkey name : uart4, pin count : 4
[    0.246929] mainkey name : spi0, pin count : 4
[    0.246939] mainkey name : spi1, pin count : 4
[    0.246950] mainkey name : spi_devices, pin count : 0
[    0.246960] mainkey name : spi_board0, pin count : 0
[    0.246970] mainkey name : ctp_para, pin count : 0
[    0.246981] mainkey name : ctp_list_para, pin count : 0
[    0.246991] mainkey name : tkey_para, pin count : 0
[    0.247001] mainkey name : motor_para, pin count : 1
[    0.247013] map mainkey [motor_para] to pinctrl, map number [2]
[    0.247026] mainkey name : ths_para, pin count : 0
[    0.247036] mainkey name : cooler_table, pin count : 0
[    0.247047] mainkey name : nand0_para, pin count : 19
[    0.247060] mainkey name : disp_init, pin count : 0
[    0.247072] mainkey name : lcd0_para, pin count : 15
[    0.247086] map mainkey [lcd0_para] to pinctrl, map number [2]
[    0.247100] mainkey name : pwm0_para, pin count : 1
[    0.247111] mainkey name : pwm1_para, pin count : 1
[    0.247122] mainkey name : csi0, pin count : 14
[    0.247134] mainkey name : mmc0_para, pin count : 7
[    0.247147] mainkey name : mmc1_para, pin count : 6
[    0.247159] mainkey name : mmc2_para, pin count : 11
[    0.247172] mainkey name : usbc0, pin count : 2
[    0.247183] map mainkey [usbc0] to pinctrl, map number [2]
[    0.247195] mainkey name : usbc1, pin count : 1
[    0.247206] mainkey name : usb_feature, pin count : 0
[    0.247216] mainkey name : msc_feature, pin count : 0
[    0.247227] mainkey name : serial_feature, pin count : 0
[    0.247237] mainkey name : gsensor_para, pin count : 0
[    0.247248] mainkey name : gsensor_list_para, pin count : 0
[    0.247259] mainkey name : gps_para, pin count : 0
[    0.247269] mainkey name : wifi_para, pin count : 7
[    0.247280] map mainkey [wifi_para] to pinctrl, map number [2]
[    0.247293] mainkey name : bt_para, pin count : 0
[    0.247303] mainkey name : 3g_para, pin count : 4
[    0.247315] mainkey name : gy_para, pin count : 0
[    0.247326] mainkey name : gy_list_para, pin count : 0
[    0.247339] mainkey name : ls_para, pin count : 1
[    0.247352] mainkey name : ls_list_para, pin count : 0
[    0.247363] mainkey name : compass_para, pin count : 0
[    0.247373] mainkey name : gpio_para, pin count : 2
[    0.247385] mainkey name : i2s0, pin count : 4
[    0.247395] mainkey name : i2s1, pin count : 0
[    0.247406] mainkey name : audio0, pin count : 1
[    0.247416] mainkey name : pmu1_para, pin count : 0
[    0.247427] mainkey name : pmu2_para, pin count : 0
[    0.247437] mainkey name : recovery_key, pin count : 0
[    0.247448] mainkey name : dvfs_table, pin count : 0
[    0.247459] mainkey name : Vdevice, pin count : 2
[    0.247470] mainkey name : s_uart0, pin count : 2
[    0.247481] mainkey name : s_rsb0, pin count : 2
[    0.247492] mainkey name : s_jtag0, pin count : 4
[    0.247503] mainkey name : s_powchk, pin count : 0
[    0.247513] mainkey name : mali_para, pin count : 0
[    0.247524] mainkey name : dram_dvfs_table, pin count : 0
[    0.247535] mainkey name : charging_type, pin count : 0
[    0.247546] mainkey name : dram_scene_table, pin count : 0
[    0.247557] mainkey name : leds_para, pin count : 2
[    0.247568] map mainkey [leds_para] to pinctrl, map number [2]
[    0.247579] axp pinctrl driver probe ok
[    0.249069] [sunxi-module]: [sunxi-module.0] probe success
[    0.249118] script config pll3 to 297 Mhz
[    0.249135] script config pll4 to 300 Mhz
[    0.249172] script config pll6 to 600 Mhz
[    0.249185] script config pll8 to 408 Mhz
[    0.249208] script config pll9 to 480 Mhz
[    0.249221] script config pll10 to 297 Mhz
[    0.249230] sunxi_default_clk_init
[    0.249238] try to set pll6ahb1 to 200000000
[    0.249290] try to set ahb clk source to pll6ahb1
[    0.249299] set ahb clk source to pll6ahb1
[    0.249310] try to set ahb1 to 200000000
[    0.249322] try to set apb1 to 100000000
[    0.260300] bio: create slab <bio-0> at 0
[    0.260498] [ARISC] :sunxi-arisc driver v1.60
[    0.294564] [ARISC] :arisc version: [v0.0.76]
[    0.294578] [sunxi-module]: arisc register success
[    0.514138] [ARISC] :sunxi-arisc driver v1.60 startup succeeded
[    0.515497] SCSI subsystem initialized
[    0.515497] usbcore: registered new interface driver usbfs
[    0.515497] usbcore: registered new interface driver hub
[    0.515497] usbcore: registered new device driver usb
[    0.515497] twi_chan_cfg()350 - [twi0] has no twi_regulator.
[    0.515497] twi_chan_cfg()350 - [twi1] has no twi_regulator.
[    0.515497] twi_chan_cfg()350 - [twi2] has no twi_regulator.
[    0.515497] Linux video capture interface: v2.00
[    0.520044] axp22_board axp22_board: AXP (CHIP ID: 0x06) detected
[    0.522054] axp22_dcdc1: 1600 <--> 3400 mV at 3000 mV 
[    0.522054] axp22_dcdc2: 600 <--> 1540 mV at 1100 mV 
[    0.522054] axp22_dcdc3: 600 <--> 1860 mV at 1200 mV 
[    0.522054] axp22_dcdc4: 600 <--> 1540 mV at 1100 mV 
[    0.522054] axp22_dcdc5: 1000 <--> 2550 mV at 1500 mV 
[    0.522054] axp22_rtc: 3000 mV 
[    0.522054] axp22_aldo1: 700 <--> 3300 mV at 3000 mV 
[    0.522054] axp22_aldo2: 700 <--> 3300 mV at 2500 mV 
[    0.522054] axp22_aldo3: 700 <--> 3300 mV at 3000 mV 
[    0.522054] axp22_dldo1: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_dldo2: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_dldo3: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_dldo4: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_eldo1: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_eldo1: supplied by axp22_dcdc1
[    0.522054] axp22_eldo2: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_eldo2: supplied by axp22_dcdc1
[    0.522054] axp22_eldo3: 700 <--> 3300 mV at 700 mV 
[    0.522054] axp22_eldo3: supplied by axp22_dcdc1
[    0.522054] axp22_dc5ldo: 700 <--> 1400 mV at 1100 mV 
[    0.522054] axp22_ldoio0: 700 <--> 3300 mV at 3800 mV 
[    0.522054] axp22_ldoio1: 700 <--> 3300 mV at 3800 mV 
[    0.522054] axp22_dc1sw: at 700 mV 
[    0.522054] axp22_dc1sw: supplied by axp22_dcdc1
[    0.522054] input: axp22-supplyer as /devices/platform/axp22_board/axp22-supplyer.20/input/input0
[    0.530659] now_rest_vol = 100
[    0.530659] Advanced Linux Sound Architecture Driver Version 1.0.25.
[    0.530870] Bluetooth: Core ver 2.16
[    0.530941] NET: Registered protocol family 31
[    0.530954] Bluetooth: HCI device and connection manager initialized
[    0.530969] Bluetooth: HCI socket layer initialized
[    0.530981] Bluetooth: L2CAP socket layer initialized
[    0.531012] Bluetooth: SCO socket layer initialized
[    0.531292] cfg80211: Calling CRDA to update world regulatory domain
[    0.531330] Switching to clocksource arch_sys_counter
[    0.553543] FS-Cache: Loaded
[    0.553898] CacheFiles: Loaded
[    0.565138] [sunxi_hci_sunxi]: sunxi-ehci1(restrict_gpio) is invalid
[    0.565159] [sunxi_hci_sunxi]: get usb_regulator is nocare
[    0.565191] [sunxi_hci_sunxi]: sunxi-ohci1(restrict_gpio) is invalid
[    0.565205] [sunxi_hci_sunxi]: get usb_regulator is nocare
[    0.565463] [usb_manager]: CONFIG_USB_SUNXI_USB0_OTG
[    0.565491] no usbc(0) det_vbus gpio and try to axp det_pin
[    0.565507] get usbc0(usb_restrict pin) failed
[    0.565894] [sw_udc]: udc_init: version 20080411
[    0.566394] [ddrfreq] dram_clk value is 552
[    0.566405] [ddrfreq] sunxi_ddrfreq_max=552000
[    0.566416] [ddrfreq] dram_type value is 3
[    0.566426] [ddrfreq] dram_zq value is 0x3bbb
[    0.566436] [ddrfreq] dram_odt_en value is 1
[    0.566446] [ddrfreq] dram_para1 value is 0x10f20400
<4>[    0.566457] [ddrfreq] dram_para2 value is 0x1000
[    0.566468] [ddrfreq] dram_mr0 value is 0x1c70
[    0.566478] [ddrfreq] dram_mr1 value is 0x40
[    0.566488] [ddrfreq] dram_mr2 value is 0x18
[    0.566498] [ddrfreq] dram_mr3 value is 0x0
[    0.566508] [ddrfreq] dram_tpr0 value is 0x47214f
[    0.566518] [ddrfreq] dram_tpr1 value is 0x1c2294b
[    0.566529] [ddrfreq] dram_tpr2 value is 0x61043
[    0.566539] [ddrfreq] dram_tpr3 value is 0x0
[    0.566549] [ddrfreq] dram_tpr4 value is 0x0
[    0.566559] [ddrfreq] dram_tpr5 value is 0x0
[    0.566569] [ddrfreq] dram_tpr6 value is 0x0
[    0.566579] [ddrfreq] dram_tpr7 value is 0x0
[    0.566589] [ddrfreq] dram_tpr8 value is 0x0
[    0.566599] [ddrfreq] dram_tpr9 value is 0x0
[    0.566609] [ddrfreq] dram_tpr10 value is 0x0
[    0.566619] [ddrfreq] dram_tpr11 value is 0x0
[    0.566629] [ddrfreq] dram_tpr12 value is 168
[    0.566638] [ddrfreq] sunxi_ddrfreq_min=168000
[    0.566648] [ddrfreq] dram_tpr13 value is 0x10901
[    0.566828] [dsm] use sysconfig
[    0.566837] [dsm] -----------Dram scene-freq Table------------
[    0.566848] [dsm] scene =    0       frequency = 552000KHz
[    0.566858] [dsm] scene =    1       frequency = 360000KHz
[    0.566868] [dsm] scene =    2       frequency = 240000KHz
[    0.566878] [dsm] scene =    3       frequency = 168000KHz
[    0.566887] [dsm] --------------------------------------------
[    0.567021] [ddrfreq] LV_count value is 3
[    0.567044] [ddrfreq] ---------------Dram V-F Table---------------
[    0.567056] [ddrfreq] voltage = 1100mv       frequency = 552000KHz
[    0.567067] [ddrfreq] voltage = 1100mv       frequency = 360000KHz
[    0.567077] [ddrfreq] voltage = 1100mv       frequency =    0KHz
[    0.567087] [ddrfreq] --------------------------------------------
[    0.567272] [ddrfreq] last_vdd=1100
[    0.567353] [ddrfreq] __sram_start: 0xc09b9000, __sram_end: 0xc09ba074, __sram_text_start: 0xf0000000, __sram_data_end: 0xf0001074
[    0.567368] [ddrfreq] sunxi dramfreq probe ok!
[    0.567715] NET: Registered protocol family 2
[    0.568016] IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.568743] TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.570704] TCP bind hash table entries: 65536 (order: 7, 786432 bytes)
[    0.571631] TCP: Hash tables configured (established 131072 bind 65536)
[    0.571644] TCP: reno registered
[    0.571659] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.571698] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.572064] NET: Registered protocol family 1
[    0.572503] RPC: Registered named UNIX socket transport module.
[    0.572515] RPC: Registered udp transport module.
[    0.572525] RPC: Registered tcp transport module.
[    0.572535] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.572794] Unpacking initramfs...
[    0.752608] Freeing initrd memory: 2608K
[    0.753084] [pm]aw_pm_init!
[    0.753098] standby_mode = 1. 
[    0.753107] wakeup src cnt is : 2. 
[    0.753119] [exstandby]leave extended_standby_enable_wakeup_src : event 0x2000
[    0.753131] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x80
[    0.753143] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x0
[    0.753156] [exstandby]leave extended_standby_enable_wakeup_src : event 0x2000
[    0.753167] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_map 0x280
[    0.753180] [exstandby]leave extended_standby_enable_wakeup_src : wakeup_gpio_group 0x0
[    0.753203] [wifi]: select wifi: ap6210 !!
[    0.753471] [ap6xxx]: module power name axp22_dldo1
[    0.753484] [ap6xxx]: module power ext1 name 
[    0.753494] [ap6xxx]: module power ext2 name 
[    0.753637] [ap6xxx]: ap6xxx module power set by axp.
[    0.753731] [ap6xxx]: get power regulator  failed.
[    0.753742] [ap6xxx]: first time
[    0.753852] [ap6xxx]: regulator on.
[    0.754702] [wifi_pm]: wifi gpio init is OK !!
[    0.754759] sunxi_reg_init enter
[    0.755678] audit: initializing netlink socket (disabled)
[    0.755741] type=2000 audit(0.750:1): initialized
[    0.756484] highmem bounce pool size: 64 pages
[    0.758629] NTFS driver 2.1.30 [Flags: R/W].
[    0.758841] fuse init (API version 7.18)
[    0.759344] msgmni has been set to 1477
[    0.761720] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    0.761738] io scheduler noop registered
[    0.761748] io scheduler deadline registered
[    0.761849] io scheduler cfq registered (default)
[    0.762314] failed to get normal led pin assign
[    0.762326] failed to get standby led pin assign
[    0.762336] gpio_pin_1(231) gpio_request
[    0.762465] gpio_pin_2(233) gpio_request
[    0.762623] gpio name is PH7, ret = 0
[    0.762769] gpio name is PH9, ret = 0
<4>[    0.762915] gpio_init finish with uesd 1! 
[    0.762928] pwm module init!
[    0.763523] sw_uart_get_devinfo()1416 - uart0 has no uart_regulator.
[    0.763543] sw_uart_get_devinfo()1416 - uart1 has no uart_regulator.
[    0.763559] sw_uart_get_devinfo()1416 - uart2 has no uart_regulator.
[    0.764072] uart0: ttyS0 at MMIO 0x1c28000 (irq = 32) is a SUNXI
[    0.764096] sw_console_setup()1176 - console setup baud 115200 parity n bits 8, flow n
[    0.907148] console [ttyS0] enabled
[    1.004240] uart1: ttyS1 at MMIO 0x1c28400 (irq = 33) is a SUNXI
[    1.101210] uart2: ttyS2 at MMIO 0x1c28800 (irq = 34) is a SUNXI
[    1.290351] loop: module loaded
[    2.703639] sunxi_spi_chan_cfg()1368 - [spi-0] has no spi_regulator.
[    2.710818] sunxi_spi_chan_cfg()1368 - [spi-1] has no spi_regulator.
[    2.717991] tun: Universal TUN/TAP device driver, 1.6
[    2.723683] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.730850] PPP generic driver version 2.4.2
[    2.735825] PPP BSD Compression module registered
[    2.741132] PPP Deflate Compression module registered
[    2.754410] PPP MPPE Compression module registered
[    2.759807] NET: Registered protocol family 24
[    2.764881] PPTP driver version 0.8.5
[    2.769306] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.776789] [sunxi_hci_sunxi]: [sunxi-ehci1]: probe, pdev->name: sunxi-ehci, pdev->id: 1, sunxi_ehci: 0xc0a1462c
[    2.788258] [sunxi_hci_sunxi]: [sunxi-ehci1]: open clock, is_open: 0
[    2.815443] [sunxi_hci_sunxi]: [sunxi-ehci1]: Set USB Power ON
[    2.822035] sunxi-ehci sunxi-ehci.1: SW USB2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.831076] sunxi-ehci sunxi-ehci.1: new USB bus registered, assigned bus number 1
[    2.841373] sunxi-ehci sunxi-ehci.1: irq 104, io mem 0xf1c1a000
[    2.860038] sunxi-ehci sunxi-ehci.1: USB 0.0 started, EHCI 1.00
[    2.866697] ehci_irq: highspeed device connect
[    2.871831] hub 1-0:1.0: USB hub found
[    2.876061] hub 1-0:1.0: 1 port detected
[    2.880944] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.887956] [sunxi_hci_sunxi]: [sunxi-ohci1]: probe, pdev->name: sunxi-ohci, pdev->id: 1, sunxi_ohci: 0xc0a14730
[    2.899419] [sunxi_hci_sunxi]: [sunxi-ohci1]: open clock, is_open: 0
[    2.926597] sunxi-ohci sunxi-ohci.1: SW USB2.0 'Open' Host Controller (OHCI) Driver
[    2.935235] sunxi-ohci sunxi-ohci.1: new USB bus registered, assigned bus number 2
[    2.943794] sunxi-ohci sunxi-ohci.1: irq 105, io mem 0xf1c1a400
[    3.014652] hub 2-0:1.0: USB hub found
[    3.018886] hub 2-0:1.0: 1 port detected
[    3.023834] usbcore: registered new interface driver cdc_acm
[    3.030213] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    3.039210] Initializing USB Mass Storage driver...
[    3.044816] usbcore: registered new interface driver usb-storage
[    3.051585] USB Mass Storage support registered.
[    3.056811] usbcore: registered new interface driver ums-alauda
[    3.063518] usbcore: registered new interface driver ums-cypress
[    3.070326] usbcore: registered new interface driver ums-datafab
[    3.077114] usbcore: registered new interface driver ums_eneub6250
[    3.084171] usbcore: registered new interface driver ums-freecom
[    3.090988] usbcore: registered new interface driver ums-isd200
[    3.097677] usbcore: registered new interface driver ums-jumpshot
[    3.104585] usbcore: registered new interface driver ums-karma
[    3.111197] usbcore: registered new interface driver ums-onetouch
[    3.118097] usbcore: registered new interface driver ums-realtek
[    3.124944] usbcore: registered new interface driver ums-sddr09
[    3.131658] usbcore: registered new interface driver ums-sddr55
[    3.138356] usbcore: registered new interface driver ums-usbat
[    3.145047] usbcore: registered new interface driver usbserial
[    3.151620] usbserial: USB Serial Driver core
[    3.156564] usbcore: registered new interface driver option
[    3.162880] USB Serial support registered for GSM modem (1-port)
[    3.200060] usb 1-1: new high-speed USB device number 2 using sunxi-ehci
[    3.352497] hub 1-1:1.0: USB hub found
[    3.357064] hub 1-1:1.0: 4 ports detected
[    3.364416] [sw_udc]: [sunxi_usb_udc]: binding gadget driver 'android_usb'
[    3.372186] [sw_udc]: alloc request: ep(0xc0986f90, ep0, 64), req(0xeea09140)
[    3.380231] sunxi_udc_set_selfpowered_2300: usb device is not active
[    3.387372] [sw_udc]: sunxi_udc_pullup, is_on = 0
[    3.392678] sunxi_udc_set_pullup_2317: usb device is not active
[    3.399436] file system registered
[    3.405226] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    3.412986] android_usb gadget: Number of LUNs=3
[    3.418176]  lun0: LUN: removable file: (no medium)
[    3.423673]  lun1: LUN: removable file: (no medium)
[    3.429154]  lun2: LUN: removable file: (no medium)
[    3.435041] android_bind, serial_unique = 1
[    3.439748] sunxi_udc_set_selfpowered_2300: usb device is not active
[    3.446921] android_usb gadget: android_usb ready
[    3.452240] [sw_hcd0]: usb host driver initialize........
[    3.458391] [sw_hcd0]: open_usb_clock
[    3.462828] [sunxi_hcd0]: host_init_state = 0
[    3.467914] [sw_hcd0]: platform is usb host
[    3.472696] [sw_hcd0]: sunxi_hcd_init_controller: sunxi_hcd_host0: USB Host mode controller at f1c19000 using PIO, IRQ 103
[    3.485150] sunxi_hcd_host0 sunxi_hcd_host0: sunxi_hcd host driver
[    3.492128] sunxi_hcd_host0 sunxi_hcd_host0: new USB bus registered, assigned bus number 3
[    3.502041] hub 3-0:1.0: USB hub found
[    3.506265] hub 3-0:1.0: 1 port detected
[    3.511063] [sw_hcd0]: sunxi_usb_host0_disable start
[    3.516645] [sw_hcd0]: sunxi_hcd_wait_for_disconnect cnt=0
[    3.522834] [sunxi_hcd_host0]: Set USB Power OFF
[    3.528127] -------sunxi_hcd0_soft_disconnect---------
[    3.533901] wrn: hcd is not enable, need not stop hcd
[    3.539589] [sunxi_hcd_host0]: Set USB Power OFF
[    3.544914] [sw_hcd0]: close_usb_clock
[    3.549147] [sw_hcd0]: sunxi_usb_host0_disable end
[    3.554938] mousedev: PS/2 mouse device common for all mice
[    3.562220] sunxi-rtc sunxi-rtc: rtc core: registered sunxi-rtc as rtc0
[    3.569795] sunxi cedar version 0.1 
[    3.574035] [cedar]: install start!!!
[    3.578377] [cedar]: install end!!!
[    3.585431] axp22_dcdc1: Failed to create debugfs directory
[    3.593423] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    3.602986] Bluetooth: HCI UART driver ver 2.2
[    3.607980] Bluetooth: HCI H4 protocol initialized
[    3.613380] Bluetooth: HCI BCSP protocol initialized
[    3.619055] usbcore: registered new interface driver btusb
[    3.625237] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
[    3.631764] Bluetooth: MSM Sleep Mode Driver Ver 1.2
[    3.637958] autohotplug_init init ok
[    3.640366] usb 1-1.4: new high-speed USB device number 3 using sunxi-ehci
[    3.649743] sunxi_cpufreq_initcall: clocks pll=1008000000,cpu=1008000000,axi=336000000
[    3.658668] cur: pll=1008000000, cpudiv=1, axidiv=3
[    3.664182] axp22_dcdc3: Failed to create debugfs directory
[    3.670475] sunxi_cpufreq_initcall, get cpu frequency from sysconfig, max freq: 1200MHz, min freq: 120MHz
[    3.681272] -------------------CPU V-F Table--------------------
[    3.688022]  frequency = 1536000KHz  voltage = 1500mv
[    3.693711]  frequency = 1344000KHz  voltage = 1460mv
[    3.699386]  frequency = 1200000KHz  voltage = 1320mv
[    3.705073]  frequency = 1008000KHz  voltage = 1200mv
[    3.710760]  frequency = 816000KHz   voltage = 1100mv
[    3.716337]  frequency = 648000KHz   voltage = 1040mv
[    3.721928]  frequency =    0KHz     voltage = 1040mv
[    3.727310]  frequency =    0KHz     voltage = 1040mv
[    3.732705] -----------------------------------------------------
[    3.741947] [mmc]: SD/MMC/SDIO Host Controller Driver(v1.85 2014-08-01 15:11) Compiled in Jan 22 2020 at 11:27:10
[    3.753471] [mmc]: sunxi_mci_init
[    3.757202] [mmc]: get mmc1's sdc_power failed
[    3.762194] [mmc]: get mmc1's 2xmode fail
[    3.766682] [mmc]: get mmc1's ddrmode fail
[    3.771278] [mmc]: get mmc1's sdc_ex_dly_used failed, use default dly
[    3.778508] [mmc]: get mmc2's power supply 'axp22_dcdc1' ok
[    3.784763] [mmc]: get mmc2's 2xmode ok, val = 1
[    3.789932] [mmc]: get mmc2's ddrmode fail
[    3.794528] [mmc]: get mmc2's sdc_ex_dly_used failed, use default dly
[    3.801757] [mmc]: MMC host used card: 0x6, boot card: 0x4, io_card 2
[    3.809973] [mmc]: mmc not poweroff notifiy
[    3.814695] [mmc]: sdc2 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.825640] [mmc]: sdc2 Probe: base:0xf1c11000 irq:94 sg_cpu:f0020000(75404000) ret 0.
[    3.825654] [mmc]: sdc2 set ios: clk 0Hz bm PP pm UP vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.827187] [mmc]: sdc2 card_power_on start...
[    3.827219] axp22_dcdc1: Failed to create debugfs directory
[    3.827294] [mmc]: sdc2 card_power_on end ...ok
[    3.827301] [mmc]: sdc2 card_power_on ok
[    3.840041] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.840111] [mmc]: mclk 0xf1c20090 0xc001000e
[    3.880770] [mmc]: mmc not poweroff notifiy
[    3.885458] [mmc]: sdc1 set ios: clk 0Hz bm OD pm OFF vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.896405] [mmc]: sdc1 Probe: base:0xf1c10000 irq:93 sg_cpu:f0022000(75405000) ret 0.
[    3.905292] [mmc]: sdc1: no card detected, try to shutdown io voltage.
[    3.910851] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 52,  RTO !!
[    3.911689] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 52,  RTO !!
[    3.911719] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.911785] [mmc]: mclk 0xf1c20090 0xc001000e
[    3.946561] usbcore: registered new interface driver usbhid
[    3.952828] usbhid: USB HID core driver
[    3.957125] zram: num_devices not specified. Using default: 1
[    3.963574] zram: Creating 1 devices ...
[    3.969145] ashmem: initialized
[    3.969239] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    3.969309] [mmc]: mclk 0xf1c20090 0xc001000e
[    3.987961] logger: created 256K log 'log_main'
[    3.993174] logger: created 256K log 'log_events'
[    3.998565] logger: created 256K log 'log_radio'
[    4.003877] logger: created 256K log 'log_system'
[    4.009384] Linux telephony interface: v1.00
[    4.015270] headphone_vol=0x3b, earpiece_vol=0x3e, cap_vol=0x5,              phone_headset_mic_vol=0x3, phone_main_mic_vol=0x1,              pa_double_used=0x0, pa_vol=0x3e 
[    4.026188] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 8,  RTO !!
[    4.026216] *******************Try sdio*******************
[    4.027032] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 5,  RTO !!
[    4.027865] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 5,  RTO !!
[    4.028695] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 5,  RTO !!
[    4.029528] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 5,  RTO !!
[    4.029552] *******************Try sd *******************
[    4.030370] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 55,  RTO !!
[    4.031205] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 55,  RTO !!
[    4.032038] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 55,  RTO !!
[    4.032870] [mmc]: *** sunxi_mci_dump_errinfo(L773): smc 2 err, cmd 55,  RTO !!
[    4.032894] *******************Try mmc*******************
[    4.032906] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.032974] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.088362] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.088424] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.143491] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.143552] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.152023] [audiocodec] : aif2 not used!
[    4.171620] [audiocodec] : aif3 not used!
[    4.176310] soc-audio soc-audio.0: ASoC machine audiocodec should use snd_soc_register_card()
[    4.187361] asoc: sndcodec <-> sunxi-codec mapping ok
[    4.194304] input: headset as /devices/virtual/input/input1
[    4.198627] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.198700] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.216180] [I2S0]sunxi-i2s0 cannot find any using configuration for controllers, return directly!
[    4.226469] [I2S]sndi2s0 cannot find any using configuration for controllers, return directly!
[    4.236145] [I2S0]sunxi_sndi2s0 cannot find any using configuration for controllers, return directly!
[    4.246494] [I2S1]sunxi-i2s1 cannot find any using configuration for controllers, return directly!
[    4.256167] [mmc]: sdc2 set ios: clk 400000Hz bm OD pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.256234] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.271832] [I2S]sndi2s1 cannot find any using configuration for controllers, return directly!
[    4.281507] [I2S1]sunxi_sndi2s1 cannot find any using configuration for controllers, return directly!
[    4.292021] u32 classifier
[    4.295056]     Actions configured
[    4.298873] Netfilter messages via NETLINK v0.30.
[    4.304236] nf_conntrack version 0.5.0 (16044 buckets, 64176 max)
[    4.311542] ctnetlink v0.93: registering with nfnetlink.
[    4.317544] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
[    4.325366] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
[    4.331267] [mmc]: sdc2 set ios: clk 400000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.331337] [mmc]: mclk 0xf1c20090 0xc001000e
[    4.347446] xt_time: kernel timezone is -0000
[    4.352503] IPv4 over IPv4 tunneling driver
[    4.357669] gre: GRE over IPv4 demultiplexor driver
[    4.363160] ip_gre: GRE over IPv4 tunneling driver
[    4.369230] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.375385] arp_tables: (C) 2002 David S. Miller
[    4.380624] TCP: cubic registered
[    4.384333] Initializing XFRM netlink socket
[    4.389439] NET: Registered protocol family 10
[    4.395571] Mobile IPv6
[    4.398342] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    4.398642] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing LEGACY(SDR12) dt B
[    4.398734] [mmc]: mclk 0xf1c20090 0xc100000b
[    4.419901] IPv6 over IPv4 tunneling driver
[    4.425675] NET: Registered protocol family 17
[    4.430709] NET: Registered protocol family 15
[    4.435867] Bluetooth: RFCOMM TTY layer initialized
[    4.441371] Bluetooth: RFCOMM socket layer initialized
[    4.447127] Bluetooth: RFCOMM ver 1.11
[    4.451343] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    4.453852] [mmc]: sdc2 set ios: clk 25000000Hz bm PP pm ON vdd 3.3V width 1 timing MMC-HS(SDR20) dt B
[    4.453926] [mmc]: mclk 0xf1c20090 0xc100000b
[    4.472593] Bluetooth: BNEP filters: protocol multicast
[    4.478446] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    4.485189] L2TP core driver, V2.0
[    4.489012] PPPoL2TP kernel driver, V2.0
[    4.493421] L2TP IP encapsulation support (L2TPv3)
[    4.498873] L2TP netlink interface
[    4.502725] L2TP ethernet pseudowire support (L2TPv3)
[    4.508773] VFP support v0.3: [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 1 timing MMC-HS(SDR20) dt B
[    4.509032] [mmc]: mclk 0xf1c20090 0xc1000005
[    4.525855] implementor 41 architecture 2 part 30 variant 7 rev 5
[    4.532700] ThumbEE CPU extension supported.
[    4.537496] Registering SWP/SWPB emulation handler
[    4.543247] [rfkill]: rfkill set power 1
[    4.547646] gpio ap6xxx_bt_regon set val 0, act val 0
[    4.564151] [mmc]: sdc2 set ios: clk 50000000Hz bm PP pm ON vdd 3.3V width 8 timing MMC-HS(SDR20) dt B
[    4.574621] axp22_dc1sw: incomplete constraints, leaving on
[    4.574682] [mmc]: mclk 0xf1c20090 0xc1000005
[    4.585897] axp22_dc5ldo: incomplete constraints, leaving on
[    4.592559] axp22_aldo3: incomplete constraints, leaving on
[    4.598844] axp22_aldo2: incomplete constraints, leaving on
[    4.605157] axp22_aldo1: incomplete constraints, leaving on
[    4.611506] axp22_dcdc5: incomplete constraints, leaving on
[    4.617839] axp22_dcdc3: incomplete constraints, leaving on
[    4.624139] axp22_dcdc2: incomplete constraints, leaving on
[    4.630562] mmc0: new high speed MMC card at address 0001
[    4.637048] otg_wakelock_init: No USB transceiver found
[    4.637070] mmcblk0: mmc0:0001 8GND3R 7.28 GiB 
[    4.637296] mmcblk0boot0: mmc0:0001 8GND3R partition 1 4.00 MiB
[    4.637486] mmcblk0boot1: mmc0:0001 8GND3R partition 2 4.00 MiB
[    4.661357]  mmcblk0: p1 p2 p3 < p5 p6 p7 p8 >
[    4.661373] sunxi-rtc sunxi-rtc: setting system clock to 1970-01-01 03:33:38 UTC (12818)
[    4.661421] ths_fetch_sysconfig_para: type err  device_used = 1. 
[    4.661433] ths_fetch_sysconfig_para: type err ths_trip1_3 = 110. 
[    4.661441] ths_fetch_sysconfig_para: type err ths_trip1_4 = 110. 
[    4.661449] ths_fetch_sysconfig_para: type err ths_trip1_5 = 110. 
[    4.661457] ths_fetch_sysconfig_para: type err ths_trip1_6 = 110. 
[    4.661465] ths_fetch_sysconfig_para: type err ths_trip1_7 = 110. 
[    4.661479] ths_fetch_sysconfig_para: type err ths_trip1_3_min = 0. 
[    4.661487] ths_fetch_sysconfig_para: type err ths_trip1_3_max = 0. 
[    4.661495] ths_fetch_sysconfig_para: type err ths_trip1_4_min = 0. 
[    4.661503] ths_fetch_sysconfig_para: type err ths_trip1_4_max = 0. 
[    4.661511] ths_fetch_sysconfig_para: type err ths_trip1_5_min = 0. 
[    4.661518] ths_fetch_sysconfig_para: type err ths_trip1_5_max = 0. 
[    4.661527] ths_fetch_sysconfig_para: type err ths_trip1_6_min = 0. 
[    4.661534] ths_fetch_sysconfig_para: type err ths_trip1_6_max = 0. 
[    4.661542] ths_fetch_sysconfig_para: type err ths_trip2_count = 0. 
[    4.661550] ths_fetch_sysconfig_para: type err ths_trip2_0 = 0. 
[    4.661745] input: sunxi-ths as /devices/virtual/input/input2
[    4.662171] suxi_ths: Kernel Thermal management registered
[    4.662188] fetch C0_LV_count from sysconfig failed
[    4.662621] CPU Budget:Register notifier
[    4.662631] CPU Budget:register Success
[    4.662640] sunxi-budget-cooling sunxi-budget-cooling: Cooling device registered: thermal-budget-0
[    4.666447] ALSA device list:
[    4.666457]   #0: audiocodec
[    4.666804] Freeing init memory: 328K
[    4.772416] mmcblk0: p1 size 10969088 extends beyond EOD, truncated
[    4.844584]  mmcblk0boot1: unknown partition table
[    4.851159]  mmcblk0boot0: unknown partition table
[    4.856760] *******************mmc init ok *******************
[    4.880035] ====codec_init_events===
[    5.746266] EXT4-fs (mmcblk0p7): barriers disabled
[    5.753174] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: noauto_da_alloc,barrier=0,data=ordered
[    6.055215] [DISP]disp_module_init
[    6.059675] [DISP]disp_probe
[    6.070452] [DISP] *****************************************************************
[    6.079136] [DISP] ***
[    6.081798] [DISP] *** LCD Panel Parameter Check
[    6.086970] [DISP] ***
[    6.089610] [DISP] ***             by guozhenjie
[    6.094801] [DISP] ***
[    6.097441] [DISP] *****************************************************************
[    6.106134] [DISP] *** 
[    6.108872] [DISP] *** Interface:
[    6.112404] [DISP] *** 16Bit CPU Panel
[    6.116800] [DISP] *** Lcd Frm to RGB565
[    6.121206] [DISP] *** 
[    6.123944] [DISP] *** Timing:
[    6.127363] [DISP] *** lcd_x:      240
[    6.131581] [DISP] *** lcd_y:      320
[    6.135781] [DISP] *** lcd_ht:     600
[    6.139979] [DISP] *** lcd_hbp:    60
[    6.144094] [DISP] *** lcd_vt:     1000
[    6.148390] [DISP] *** lcd_vbp:    340
[    6.152606] [DISP] *** lcd_hspw:   30
[    6.156708] [DISP] *** lcd_vspw:   2
[    6.160725] [DISP] *** lcd_frame_frq:  26Hz
[    6.165411] [DISP] *** 
[    6.168149] [DISP] *** WRN03: Recommend "lcd_dclk_frq = 36"
[    6.174409] [DISP] *** 
[    6.177147] [DISP] *** LCD Panel Parameter Check End
[    6.182722] [DISP] *****************************************************************
[    6.191814] [DISP]Fb_Init
[    6.194815] [DISP] parser_disp_init_para,line:130:    fetch script data disp_init.screen2_output_type fail
[    6.205670] [DISP] parser_disp_init_para,line:147:    fetch script data disp_init.screen2_output_mode fail
[    6.216519] [DISP] parser_disp_init_para,line:208:    fetch script data disp_init.fb2_format fail
[    6.226480] [DISP] parser_disp_init_para,line:213:    fetch script data disp_init.fb2_scaler_mode_enable fail
[    6.237617] [DISP] parser_disp_init_para,line:218:    fetch script data disp_init.fb2_width fail
[    6.247480] [DISP] parser_disp_init_para,line:223:    fetch script data disp_init.fb2_height fail
[    6.263095] [DISP]disp_probe finish
[    6.267107] [DISP]capture_module_init
[    6.271671] [DISP]capture_probe
[    6.275229] [DISP]capture finish
[    6.278848] [DISP]disp_module_init finish
[    6.318516] [LCD]lcd_module_init
[    6.323259] axp pconf set pin [GPIO2] data to [1]
[    6.328758] [LCD]open, step 0 finish
[    6.706978] [LCD]open, step 1 finish
[    6.920042] [LCD]open, step 2 finish
[    7.130097] [LCD]open, step 3 finish
[    7.140271] [LCD]lcd_module_init finish

login[112]: root login on 'ttyS0'
nand activated #1
[    7.610401] [NAND][NAND]nand init start, nand0_used_flag is 0
[    7.616848] [NAND]nand_cache_level err! 0[NAND]nand_capacity_level err! 0
[    7.624505] regisger ISP =====================
[    7.629507] [NAND]nand driver is disabled 
[    7.660324] axp22_ldoio1: Failed to create debugfs directory
[    7.666676] =====ctp_fetch_sysconfig_para=====. 
[    7.671882] ctp_fetch_sysconfig_para: ctp_unused. 
[    7.677246] =========script_get_item_err============
[    7.682817] ft5x_ts_init: ctp_fetch_sysconfig_para err.
[    7.712888] input: sunxi-keyboard as /devices/virtual/input/input3
camera activated #1
camera activated
[    7.987648] [VFE]Welcome to Video Front End driver
[    7.993407] [VFE]pdev->id = 0
[    7.996729] [VFE]dev->mipi_sel = 0
[    8.000614] [VFE]dev->vip_sel = 0
[    8.004323] [VFE]dev->isp_sel = 0
[    8.014122] [VFE_WARN]vfe vpu clock is null
[    8.019982] [ISP] isp platform_id = 3!
[    8.024206] [ISP] isp isp_get_driver = bf206ca0!
[    8.029472] [VFE]vfe_init end
[    8.032823] [VFE]probe_work_handle start!
[    8.037316] [VFE]v4l2 subdev register input_num = 0
[    8.042851] axp22_dldo3: Failed to create debugfs directory
camera module insmod done
[    8.049119] axp22_ldoio0: Failed to create debugfs directory
[    8.057918] axp22_eldo2: Failed to create debugfs directory
camera activated #1[    8.064234] [VFE]vfe sensor detect start! input_num = 0

[    8.071711] [VFE]Find sensor name is "ov5640", i2c address is 78, type is "YUV" !
camera activated
[    8.080302] [VFE]Sub device register "ov5640" i2c_addr = 0x78 start!
[    8.088968] [VFE_ERR]request i2c adapter failed!
[    8.094217] [VFE_ERR]vfe sensor register check error at input_num = 0
[    8.101828] [VFE]V4L2 device registered as video0
[    8.107119] [VFE]register_early_suspend @ probe handle!
[    8.112986] [VFE]probe_work_handle end!
insmod: can't insert '/lib/modules/3.4.39/videobuf-core.ko': File exists
insmod /lib/modules/3.4.39/videobuf-core.ko failed
mount: mounting /dev/mmcblk0p8 on /data failed: Invalid argument
grep: /sys/class/input/event4/device/name: No such file or directory
[root@dragonboard /root]# width=320,height=1
[    8.812356] [DISP] disp_al_capture_screen,line:1992:    WB_EBIOS_Set_Para fail, ret=-1
open fb0 ok

sys_config.fex setting:

[lcd0_para]
lcd_used            = 1

lcd_driver_name     = "default_lcd"
lcd_if              = 1
lcd_x               = 240
lcd_y               = 320
lcd_width           =
lcd_height          =
lcd_dclk_freq       = 16
lcd_pwm_used        = 1
lcd_pwm_ch          = 0
lcd_pwm_freq        = 50000
lcd_pwm_pol         = 1
lcd_hbp             = 60
lcd_ht              = 600
;lcd_ht              = 405
lcd_hspw            = 30
lcd_vbp             = 340
;lcd_vt              = 670
lcd_vt              = 1000
lcd_vspw            = 2
;lcd_hv_if                    = 0
;lcd_hv_srgb_seq     = 0
;lcd_hv_syuv_seq     = 0
;lcd_hv_syuv_fdly    = 0
;lcd_lvds_if         = 0
;lcd_lvds_colordepth = 0
;lcd_lvds_mode       = 0
lcd_cpu_te          = 0
lcd_cpu_if          = 14
lcd_frm             = 2
;lcd_io_phase        = 0
;lcd_io_phase        = 0x0100
lcd_gamma_en        = 0
lcd_bright_curve_en = 1
lcd_cmap_en         = 0
lcd_rb_swap            = 1

deu_mode            = 0
lcdgamma4iep        = 22
smart_color        = 90

;lcd_bl_en           = port:PE13<1><0><default><1>
lcd_bl_en           = ""
lcd_power           = port:power2<1><0><default><1>
lcd_gpio_0          = port:PG11<1><0><default><0>
lcd_gpio_1          = port:PE14<1><0><default><0>
lcd_gpio_2          =

lcdd3                    = port:PD03<2><0><default><default>
lcdd4                    = port:PD04<2><0><default><default>
lcdd5                    = port:PD05<2><0><default><default>
lcdd6                    = port:PD06<2><0><default><default>
lcdd7                    = port:PD07<2><0><default><default>
lcdd10                   = port:PD10<2><0><default><default>
lcdd11                   = port:PD11<2><0><default><default>
lcdd12                   = port:PD12<2><0><default><default>
lcdclk                   = port:PD24<2><0><default><default>
lcdde                    = port:PD25<2><0><default><default>
lcdhsync                 = port:PD26<2><0><default><default>
lcdvsync                 = port:PD27<2><0><default><default>

#5 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-17 18:48:25

晕哥 说:

本站搜一下 海豚派,他的LCD就是i80的ili94xx,可以参考对比。

我有參考ili94xx可以出到開機畫面,但同時參考LCD test example 就無反應了!!

#6 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-17 18:29:01

超级萌新 说:

执行上面的代码 rd/wr 都没信号吗?

係..都無反應!!

#7 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-17 18:11:01

哦豁哦豁 说:

i80的MPU屏,在屏里面有缓冲区的吧,如果全志这端没有刷屏,i80总线上面没有信号,这个也正常吧。

VSYNC/HSYNC的屏才需要不断的输出数据信号。

但我試過以下方法但都不成功.

1. disp = oepn("/dev/disp", O_RDWR)

   arg[0]= 0;
   ioctl(disp , DISP_CMD_LCD_ON, arg);

   open("/dev/fb0", O_RDWR);
   framebuffer = mmap(0, screensize, PROT_READ|PROT_WRITE, MAP_SHARED, lcd_fd, 0);
   .....

2.
    void TCON0_INDEX(u32 index)
   {
     TCON0_CPU_IF_REG&=~(1UL<<CA); //清除CA位 clear CA bit
     TCON0_CPU_WR_REG=index;       //写索引 write index
   }

   void TCON0_DATA(u32 data)
  {
    TCON0_CPU_IF_REG|=(1UL<<CA);   //设置CA位 set CA bit
    TCON0_CPU_WR_REG=data;         // 写入数据 write data
  }

#8 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-17 16:34:16

gui401 说:

用write_index/data来刷屏是可以的,但会占用cpu开销。我用tcon自动刷,但刷一行的速度只有2KHz左右(不受分辨率参数影响),相当于垂直200像素的屏每秒只能刷10帧,不知道大神有没有遇到过?

想問點可以用tcon自动刷, 因為我現在會自動停..我見過有樣板可做到長期输出I80的信号的.

#10 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-17 15:03:29

firstman 说:

sunxi_lcd_cpu_write_index/data 写进去之后, LCD 有没有反应, 如果有反应, 可以直接写像素点的话,不考虑程序可移植性,怎么玩都可以。

試了!!不可以這樣用.

想問行了sunxi_lcd_tcon_enable 之後 輸出LCD信號(WRX, CSX) 會自動停?

data1.png

#11 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-15 15:22:43

firstman 说:

sunxi_lcd_cpu_write_index 直接写帧缓冲区(framebuffer)?没有这么玩过嗯, 为什么要这么做呢?

sunxi_lcd_cpu_write_index/data 是直寫入LCD DATA port,
同時想問開啟了suxi_lcd_tcon_enable,是否應該自動連續輸出LCD data? 如果設定回lcd_if=0(hv)他會自動連續輸出LCD data.

#12 Re: 全志 SOC » 全志a20可不可以接8位并口的8080 CPU屏?如果可以的话接口怎么连接? » 2020-01-15 15:05:58

大家好!!
我把A33 LCD 改了RGB565 同時可出現開機畫面,但到自己程式就不能出想要的畫面,想知道8080是否不用dev/fb0,是直接用 sunxi_lcd_cpu_write_index/data function?

我改了以下文件
1、修改配置文件,路径: /root/android/lichee/tools/pack/chips/sun8iw5p1/configs/vstar/sys_config.fex
2、修改uboot中的LCD驱动,路径: /root/android/lichee/brandy/u-boot-2011.09/drivers/video_sunxi/sunxi_v2/de_bsp/lcd/panels/default_panel.c
3、修改Linux内核中的LCD驱动,路径: /root/android/lichee/linux-3.4/drivers/video/sunxi/lcd/panels/default_panel.c

輸出信號
data1.png

#13 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-06 17:56:58

終於解決registered sensor subdev 同找到OV5640 sensor.
但還有新問題 [VFE_WARN] Nobody is waiting on this video buffer,buf = xxxx. 是什麼解決?

log_camera.txt

#14 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-06 15:22:05

xgui 说:

看起来 Android 向 camera 写的数据, 和Linux向 camera 写的数据 都不同吧?

是不是用同一个驱动程序?

不是同一个驱动程序, 因為提供者分了兩個android 同 camera 驱动程序給我.

#15 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-05 16:58:03

xgui 说:

Android正常, Linux不正常吗? 看来数据差异有点大哦。

係!!!Android是正常

#16 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-05 16:41:45

晕哥 说:

逻辑分析仪抓 i2c 数据, 应该是i2c没有检测到摄像头的存在.


應該是 v4l2-common.c 中 i2c_new_device function return 了 client 等於 NULL,

struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,......
{
    client = i2c_new_device(adapter, info);
    if (client == NULL || client=>driver == NULL)
        goto error;
}

以下是 i2c_new_device function 数据
[    7.971422] [VFE_I2C] client=, driver=(null), flags=0, addr=60, irq=0
[    7.978674] [VFE_I2C] client_name=ov5640, dev_name=1-003c
[    7.984812] [VFE_I2C] dev.parent=-283474880, dev.bus=-1063747452, dev.type=-1063747524, dev.of_node=0

Android i2c 数据
Android.png

Linux i2c 数据
Linux.png

#17 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-04 12:17:54

xgui 说:

https://whycan.cn/t_561_2.html#p18934

摄像头的 i2c 地址没有检测到吧?

之前有望過...但無說明解決方法

#18 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-12-03 13:37:39

晕哥 说:

那这个问题用逻辑分析仪抓i2c数据对比,可以快速定位问题

正常的固件,和不正常的固件。

找到是 vfe.c 程式中 出現 "Error registering v4l2 subdevice No such device", 請問什麼解決?

vfe_sensor_subdev_register_check(struct vfe_dev *dev, struct v4l2_device *v4l2_dev,
                                                   struct ccm_config *ccm_cfg, struct i2c_board_info *sensor i2c_board)
...............
ccm_cfg->sd = v4l2_i2c_new_subdev_board(v4l2_dev, i2c_adap, sensor_i2c_board, NULL);
if (IS_ERR_OR_NULL(ccm_cfg->sd))
{
    i2c_put_adpter(i2c_adap);
    vfe_err("Error registering v4l2 subdevice No such device!\n");
    return -ENODEV;
}

#19 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-11-26 15:27:20

晕哥 说:

从这里看, 电源应该正常才是:

[    0.520047] axp22_board axp22_board: AXP (CHIP ID: 0x06) detected
[    0.522070] axp22_dcdc1: 1600 <--> 3400 mV at 3000 mV 
[    0.522070] axp22_dcdc2: 600 <--> 1540 mV at 1100 mV 
[    0.522070] axp22_dcdc3: 600 <--> 1860 mV at 1200 mV 
[    0.522070] axp22_dcdc4: 600 <--> 1540 mV at 1100 mV 
[    0.522070] axp22_dcdc5: 1000 <--> 2550 mV at 1500 mV 
[    0.522070] axp22_rtc: 3000 mV 
[    0.522070] axp22_aldo1: 700 <--> 3300 mV at 3000 mV 
[    0.522070] axp22_aldo2: 700 <--> 3300 mV at 2500 mV 
[    0.522070] axp22_aldo3: 700 <--> 3300 mV at 3000 mV 
[    0.522070] axp22_dldo1: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_dldo2: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_dldo3: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_dldo4: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_eldo1: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_eldo1: supplied by axp22_dcdc1
[    0.522070] axp22_eldo2: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_eldo2: supplied by axp22_dcdc1
[    0.522070] axp22_eldo3: 700 <--> 3300 mV at 700 mV 
[    0.522070] axp22_eldo3: supplied by axp22_dcdc1
[    0.522070] axp22_dc5ldo: 700 <--> 1400 mV at 1100 mV 
[    0.522070] axp22_ldoio0: 700 <--> 3300 mV at 3800 mV 
[    0.530089] axp22_ldoio1: 700 <--> 3300 mV at 3800 mV 
[    0.530243] axp22_dc1sw: at 700 mV 
[    0.530243] axp22_dc1sw: supplied by axp22_dcdc1



这三组确认都是 axp223 供电吗?有没有pdf原理图?

我試過用他們提供的android img file. 是無問題可以出 DOVDD-CSI 2.8V, AVDD-CSI 2.8V, DVDD18V-CSI 1.8V 同可控制 ov5640
A33-Vstar2-DVK.pdf

#20 Re: 全志 SOC » @augyy A33 驱动 ov5640 问题 » 2019-11-26 14:53:10

AXP = axp223

log file
session.txt

code 我是用A33-Vstar 提供Linux-SDK

#21 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-11-26 13:45:59

晕哥 说:

不排除, 有可能的.

請問有冇解決方法!!因為找了很多網,都找不到解決方法

#22 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-11-25 18:11:08

晕哥 说:

电源有问题

是否關 axp22_dldo3 创建 debugfs 出错了問題?

#23 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-11-25 17:25:41

超级萌新 说:

用逻辑分析仪抓 i2c 和 camera 的数据,看有什么情况

我發現 DOVDD-CSI 無 2.8V, AVDD-CSI 無 2.8V, DVDD18V-CSI 無1.8V, 是什麼原因?

#24 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-11-22 17:20:56

晕哥 说:

最前面 axp22_dldo3 创建 debugfs 出错了, 有没有影响?

改為以下. 但都出現問題
vip_dev0_iovdd = ""
vip_dev0_avdd = ""
vip_dev0_dvdd = ""

ov5640_4.png

#25 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-11-22 15:38:35

大家好!!請教各位大佬!! 本人用A33-Vstar開發板,想选通ov5640,但出現以下問題.
ov5640_1.png
ov5640_2.png

同sys_config.fex setting
ov5640_3.png

開啟
--- I2C support
[x] I2C device interface

#26 全志 SOC » 請問大家!!全志A33 切換其他摄像头問題. » 2019-10-30 17:04:11

augyy
回复: 1

本人想切換 gc2145 摄像头,同時做以下步驟.但是不成!!

1. 把 gc2145.c 文件放起 \linux-3.4\drivers\media\video\sunxi-vfe\device\
    加 “obj – m += gc2145.o” 起 makefile 檔案

2. 改 sys_config.fex 檔案
FluxBB bbcode

3. 加以下語句起 \linux-3.4\drivers\media\video\sunxi-vfe\sensor_info.c
    Struct sensor_item sensor_list_t [] =
    {"gc2145",0x78,SENSOR_YUV, PIXEL_NUM_2M, CORE_CLK_RATE_FOR_2M},

4. 加以下function 起 \linux-3.4\drivers\media\video\sunxi-vfe\ camera_detector\camera_list.c
#define __GC2145__

static void camera_pwr_on_gc2145(__u32 list_index, __camera_info_t *camera_info)
{
camera_gpio_set_status(camera_info->stby_pin, 1);
camera_gpio_set_status(camera_info->reset_pin, 1);

//power supply
camera_gpio_write(camera_info->stby_pin, camera_list[list_index].CSI_STBY_ON);
camera_gpio_write(camera_info->reset_pin, camera_list[list_index].CSI_RST_ON);
msleep(1);
clk_enable(camera_info->module_clk);
msleep(10);

camera_gpio_write(camera_info->pwr_pin, camera_list[list_index].CSI_PWR_ON);
msleep(10);
if(camera_info->dvdd)
{
  if(camera_info->dvdd_vol > 0)
  {
   regulator_set_voltage(camera_info->dvdd,camera_info->dvdd_vol,camera_info->dvdd_vol);
  }
  else
  {
   list_print("dvdd_vol is NULL!! \n");
  }
  regulator_enable(camera_info->dvdd);
  msleep(10);
}
if(camera_info->avdd)
{
  if(camera_info->dvdd_vol > 0)
  {
   regulator_set_voltage(camera_info->avdd,camera_info->avdd_vol,camera_info->avdd_vol);
  }
  else
  {
   list_print("dvdd_vol is NULL!! \n");
  }
  regulator_enable(camera_info->avdd);
  msleep(10);
}
if(camera_info->iovdd)
{
  if(camera_info->dvdd_vol > 0)
  {
   regulator_set_voltage(camera_info->iovdd,camera_info->iovdd_vol,camera_info->iovdd_vol);
  }
  else
  {
   list_print("dvdd_vol is NULL!! \n");
  }
  regulator_enable(camera_info->iovdd);
  msleep(10);
}
//standby off io
camera_gpio_write(camera_info->stby_pin, camera_list[list_index].CSI_STBY_OFF);
msleep(10);
camera_gpio_write(camera_info->reset_pin, camera_list[list_index].CSI_RST_OFF);
msleep(10);
camera_gpio_write(camera_info->reset_pin, camera_list[list_index].CSI_RST_ON);
msleep(10);
camera_gpio_write(camera_info->reset_pin, camera_list[list_index].CSI_RST_OFF);
msleep(10);
}

static void camera_pwr_off_gc2145(__u32 list_index, __camera_info_t *camera_info)
{
camera_gpio_write(camera_info->stby_pin, camera_list[list_index].CSI_STBY_ON);
    msleep(10);
//reset on io
    camera_gpio_write(camera_info->reset_pin, camera_list[list_index].CSI_RST_ON);
    msleep(10);
    //inactive mclk after power off
    //power supply off
    if(camera_info->iovdd) {
     regulator_disable(camera_info->iovdd);
    }
    if(camera_info->avdd) {
     regulator_disable(camera_info->avdd);
    }
    if(camera_info->dvdd) {
     regulator_disable(camera_info->dvdd);
    }
    camera_gpio_write(camera_info->pwr_pin, camera_list[list_index].CSI_PWR_OFF);
    msleep(10);
    //standby of io
clk_disable(camera_info->module_clk);
    //set the io to hi-z
    camera_gpio_set_status(camera_info->reset_pin, 0);//set the gpio to input
   // camera_gpio_set_status(camera_info->stby_pin, 0);//set the gpio to input
}

static __s32 camera_detect_gc2145(__u32 list_index, struct i2c_adapter *i2c_adap)
{
    char reg_num[1], value[1];
    __s32 ret = 0;
    __u32 i2c_addr = camera_list[list_index].i2c_addr;
    __u32 addr_step = camera_list[list_index].REG_ADDR_STEP;
    __u32 data_step = camera_list[list_index].REG_DATA_STEP;
    list_print("try to detect gc2145 ... \n");
    reg_num[0] = 0xf0;
ret = camera_i2c_read(i2c_adap, reg_num, value, i2c_addr, addr_step, data_step);
if (ret < 0) {
  return ret;
}
if(value[0] !=0x21)
  return -ENODEV;
reg_num[0] = 0xf1;
ret = camera_i2c_read(i2c_adap, reg_num, value, i2c_addr, addr_step, data_step);
if (ret < 0) {
  return ret;
}
  if(value[0] !=0x55)
  return -ENODEV;
list_print("detect gc2145 success!!\n");
  return 0;
}
__camera_list_t camera_list[MAX_CAMERA_LIST_ITEM] = {
   ... ...
    CAMERA_LIST_ITEM_INIT(gc2145, 1, 1, 0x78, 1, 0, 0, 1, 1, 0),
};

5. 改了 linux-3.4\drivers\media\video\sunxi-vfe\ camera_detector\camera_list.h
    #define MAX_CAMERA_LIST_ITEM 26     //在原来的基础上加一

出現以下問題.
VFE_ERR Error registering v4l2 subdevice No such device
VFE_ERR vfe sensor register check error at input_num = 0

FluxBB bbcode

#27 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-25 12:02:07

jimmy 说:
augyy 说:

出到921600波特率了. 謝謝!!

请问怎么做到的呢?

Linus-SDK/dragonboard/brandy/u-boot-2011.09/arch/arm/cpu/armv7/sun8iw5/clock.c

int sunxi_clock_set_corepll(xxx) 加 :

    reg_val = readl(CCM_APB2_CLK_CTRL);
    reg_val &= ~((0x03 << 24) | (0x.03 << 16) | (0x1f << 0);
    reg_val |= (0x02 << 24) | (0x07 << 0);
    writel(reg_val, CCM_APB2_CLK_CTRL);

int sunxi_clock_get_apb2(void) 改:
   //return 24;
   return 600;

之後起 brandy/ 行 ./build.sh -p sun8iw5p1

#29 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-17 17:18:05

我用u-boot-2011.09 版本的. 同sun8iw5p1.h

#30 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-10 17:01:32

只找到board.c 同 serial_tegra2.c 文件

FluxBB bbcode

FluxBB bbcode

是否改setup_uart(..) function
reg = NVRM_PLLP_FIXED_FREQ_KHZ * 1000 / NV_DEFAULT_DEBUF_BAUD / 16 的
16 為 20 or 其他?

#31 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-10 15:43:26

checkout 说:

apb2时钟默认是OSC24M,时钟源应该使用PLL6,修改uboot时钟初始化的代码就行
24000000/16/921600=1.6276,向上取整,实际波特率24000000/16/2=750000,应该是这样

augyy 说:
阿黄 说:

会不会是逻辑分析仪的最大频率不够?

逻辑分析仪频率應該足夠,因為可看到1500000频率

https://whycan.cn/files/members/1429/CONFIG_SYS_NS16550_CLK.png

是否直接把CONFIG_SYS_NS16550_CLK 為 (30000000) ?

#32 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-09 16:05:29

阿黄 说:

会不会是逻辑分析仪的最大频率不够?

逻辑分析仪频率應該足夠,因為可看到1500000频率

#33 Re: 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-04 17:16:26

用logic analyzer 望 output data. 所以知道波特率大約761904.
同時試過把設波特率定為 1500000, 是無問題!!

#34 全志 SOC » 全志A33 UART baudrate 921600 問題!! » 2019-10-04 16:45:35

augyy
回复: 22

現在我把A33 UART2 波特率設定為921600, 但是出來波特率是761904.

pro.png

同時我找到sunxi-uart.c file 裡要改apb2div. 請問那裡設定?

buadrate.png

#35 Re: 全志 SOC » 请教两个Linux应用层操作i2c的问题 » 2019-08-01 13:54:02

想請教什麼在 ioctl 驱动中添加一个修改频率的命令?

#36 Re: 全志 SOC » 请教两个Linux应用层操作i2c的问题 » 2019-07-31 11:43:22

本人想起程式中交替 I2C clock frequency 400kHz <> 1000kHz, 但是只搵了單一更改 clock frequency 方法 drivers/i2c/busses/i2c=sunxi.h "SUNXI_TWI_SPEED_400K (400000) -> SUNXI_TWI_SPEED_1000K (1000000)".  請問有冇方法起程式更改到?

我是用這方式寫I2C
none_20190731-1127.png

#38 全志 SOC » QT4 點用串口連接到Allwinner A33 開發板? » 2019-05-27 14:38:19

augyy
回复: 4

Ubuntu serial port 找到了 a33開發板.
1.png




但是QT4 點用串口連接到Allwinner A33 開發板?
none_20190527-1436.png

#40 Re: 全志 SOC » 使用buildroot构建文件系统, mplayer视频播放器, Qt运行库等 » 2019-02-27 11:50:43

buildroot 参数, 行了make menuconfig; make
但是在buildroot/output/build/ 找不到qt5base file. 有什麼地方出錯?

#41 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-02-22 16:49:46

起 u-boot 裡打 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig
就出現下面問題..
HOSTCC scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:398: recipe for target 'scripts_basic' failed
make: *** [scripts basic] Error 2

#42 Re: 全志 SOC » 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot) » 2019-02-22 12:05:40

請問! 是否把原本sun8i.h 裡面的
" #ifdef CONFIG_USB_EHCI
  #define CONFIG USB_EHCI_SUNXI
  #endif

  #ifdef CONFIG_MACH_SUN8I_H3
.
.
"
不要.. 之後加下面 program?

#define CONFIG_BOOTCOMMAND   "setenv bootm_boot_mode sec; " \
                            "load mmc 0:1 0x41000000 zImage; "  \
                            "load mmc 0:1 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb; " \
                            "bootz 0x41000000 - 0x41800000;"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 earlyprintk rw  vt.global_cursor_default=0"

cd u-boot
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_800x480LCD_defconfig (群主网店5寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_480x272LCD_defconfig (通用4.3寸屏)

ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig (默认)

ARCH=arm make menuconfig

执行编译:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make

多核编译,避免cpu其他内核打酱油, J后的参数是参与编译的cpu个数:
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -J3

#43 全志 SOC » 全志 A33 開發問題!! » 2019-01-29 12:13:56

augyy
回复: 1

全志A33是否一定要用linux編輯程式? 如果用Keil或IAR同Jink 是否可行?

页脚

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

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