导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. vc915813805
    3. 最佳
    V
    • 资料
    • 关注 2
    • 粉丝 0
    • 我的积分 693
    • 主题 5
    • 帖子 10
    • 最佳 2
    • 群组 0

    vc915813805 发布的最佳帖子

    • t113-i mipi屏幕,longan系统屏幕的mapping->base为0是什么原因?

      t113-i mipi屏幕,longan系统屏幕的mapping->base为0是什么原因?具体是在哪里分配的呢,是不是需要在menuconfig里面打开某些配置?请大佬指教

      static int __iommu_map_sg(struct device *dev, struct scatterlist *sg, int nents,
      		     enum dma_data_direction dir, unsigned long attrs,
      		     bool is_coherent)
      {
      printk("[damon_mapping]{__iommu_map_sg} mapping->base 0x%px\n", dev->archdata.mapping->base);
      	struct scatterlist *s = sg, *dma = sg, *start = sg;
      	int i, count = 0;
      	unsigned int offset = s->offset;
      	unsigned int size = s->offset + s->length;
      	unsigned int max = dma_get_max_seg_size(dev);
      
      	for (i = 1; i < nents; i++) {
      		s = sg_next(s);
      
      		s->dma_address = DMA_MAPPING_ERROR;
      		s->dma_length = 0;
      
      		if (s->offset || (size & ~PAGE_MASK) || size + s->length > max) {
      			if (__map_sg_chunk(dev, start, size, &dma->dma_address,
      			    dir, attrs, is_coherent) < 0){
      				goto bad_mapping;}
      
      			dma->dma_address += offset;
      			dma->dma_length = size - offset;
      
      			size = offset = s->offset;
      			start = s;
      			dma = sg_next(dma);
      			count += 1;
      		}
      		size += s->length;
      	}
      	if (__map_sg_chunk(dev, start, size, &dma->dma_address, dir, attrs,
      		is_coherent) < 0){
      		goto bad_mapping;}
      
      	dma->dma_address += offset;
      	dma->dma_length = size - offset;
      
      	return count+1;
      
      bad_mapping:
      	for_each_sg(sg, s, count, i)
      		__iommu_remove_mapping(dev, sg_dma_address(s), sg_dma_len(s));
      	return 0;
      }
      
      发布在 创龙科技专区
      V
      vc
    • T113-i tina 启动时卡在uboot 显示emmc出错
      [120]HELLO! BOOT0 is starting!
      [123]BOOT0 commit : 069ed30b88
      [126]set pll start
      [128]fix vccio detect value:0xc0
      [136]periph0 has been enabled
      [139]set pll end
      [140][pmu]: bus read error
      [143]board init ok
      [145]enable_jtag
      [146]get_pmu_exist() = -1
      [149]ddr_efuse_type: 0x0
      [151]trefi:7.8ms
      [154][AUTO DEBUG] single rank and full DQ!
      [158]ddr_efuse_type: 0x0
      [160]trefi:7.8ms
      [163][AUTO DEBUG] rank 0 row = 15
      [166][AUTO DEBUG] rank 0 bank = 8
      [169][AUTO DEBUG] rank 0 page size = 2 KB
      [173]DRAM BOOT DRIVE INFO: V0.34
      [177]DRAM CLK = 792 MHz
      [179]DRAM Type = 3 (2:DDR2,3:DDR3)
      [182]DRAMC ZQ value: 0x7b7bfb
      [185]DRAM ODT value: 0x42.
      [188]ddr_efuse_type: 0x0
      [191]DRAM SIZE = 512 MB
      [198]DRAM simple test OK.
      [200]rtc standby flag is 0x0, super standby flag is 0x0
      [205]dram size =512
      [208]card no is 0
      [210]sdcard 0 line count 4
      [212][mmc]: mmc driver ver 2021-05-21 14:47
      [222][mmc]: Wrong media type 0x0
      [225][mmc]: ***Try SD card 0***
      [254][mmc]: HSSDR52/SDR25 4 bit
      [257][mmc]: 50000000 Hz
      [259][mmc]: 3781 MB
      [261][mmc]: ***SD/MMC 0 init OK!!!***
      [365]Loading boot-pkg Succeed(index=0).
      [369]Entry_name        = u-boot
      [377]Entry_name        = optee
      [381]Entry_name        = dtb
      [384]mmc not para
      [385]Jump to second Boot.
      M/TC: OP-TEE version: 2a99a16f (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Thu Aug 17 11:13:02 UTC 2023 arm
      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-g0317dec-dirty (Mar 26 2024 - 09:11:55 +0000) Allwinner Technology
      
      [00.457]CPU:   Allwinner Family
      [00.460]Model: sun8iw20
      I2C:   ready
      [00.480]DRAM:  512 MiB
      [00.483]Relocation Offset is: 1ce93000
      [00.513]secure enable bit: 0
      E/TC:0   fdt_getprop_u32:336 prop trace_level not found
      [00.527]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.534]gic: sec monitor mode
      SPI ALL:   ready
      [00.539]line:719 init_clocks
      [00.542]flash init start
      [00.544]workmode = 0,storage type = 1
      [00.548][mmc]: mmc driver ver uboot2018:2023-07-4 16:18:00
      [00.553][mmc]: get sdc_type fail and use default host:tm1.
      [00.559][mmc]: can't find node "mmc0",will add new node
      [00.564][mmc]: fdt err returned <no error>
      [00.568][mmc]: Using default timing para
      [00.571][mmc]: SUNXI SDMMC Controller Version:0x50310
      [00.607][mmc]: card_caps:0x3000000a
      [00.610][mmc]: host_caps:0x3000003f
      [00.617]sunxi flash init ok
      get value error
      [00.621]drv_disp_init
      partno erro : can't find partition bootloader
      [00.680]drv_disp_init finish
      [04.695]env/env.c:env_load:233:Waiting for display 1 timeout
      [04.700]Loading Environment from SUNXI_FLASH... OK
      [04.737]boot_gui_init:start
      partno erro : can't find partition Reserve0
      [04.747]LCD open finish
      bad fb1_cfg[w=0,h=0,bpp=32,format=0]
      [04.753]boot_gui_init:finish
      partno erro : can't find partition bootloader
      [04.763]bmp_name=bootlogo.bmp size 1036854
      [04.824]Item0 (Map) magic is bad
      [04.827]the secure storage item0 copy0 magic is bad
      [04.835]Item0 (Map) magic is bad
      [04.838]the secure storage item0 copy1 magic is bad
      [04.843]Item0 (Map) magic is bad
      secure storage read widevine fail
      secure storage read ec_key fail
      secure storage read ec_cert1 fail
      secure storage read ec_cert2 fail
      secure storage read ec_cert3 fail
      secure storage read rsa_key fail
      secure storage read rsa_cert1 fail
      secure storage read rsa_cert2 fail
      secure storage read rsa_cert3 fail
      [04.873]usb burn from boot
      delay time 0
      weak:otg_phy_config
      [04.884]usb prepare ok
      [05.187]overtime
      [05.190]do_burn_from_boot usb : no usb exist
      cann't get the boot_base from the env
      [05.199]update part info
      [05.202]update bootcmd
      [05.215]change working_fdt 0x5c852e68 to 0x5c832e68
      get value error
      [05.222][mmc]: get sunxi-mmc0 string failed
      [05.227]The storage not support sample function
      [05.251]update dts
      phy_mode=rgmii, phy_interface=7
      get phy-tx-delay fail!geth_sys_init fail!
      [05.261]Board Net Initialization Failed
      [05.265]No ethernet found.
      =====YTR==workmode=0==if_need_auto_force_burn=0, nRet=-1,auto_update_system
      Hit <SPACE> key to stop autoboot in  1s
      [05.532]no vendor_boot partition is found
      Android's image name: sun8i_arm
      The loading address of the kernel is not in the boot image
      ERROR: reserving fdt memory region failed (addr=41b00000 size=100000)
      ERROR: reserving fdt memory region failed (addr=5c8dd000 size=271000)
      [05.564]Starting kernel ...
      
      [05.567][mmc]: MMC Device 2 not found
      [05.570][mmc]: mmc 2 not find, so not exit
      
      发布在 创龙科技专区
      V
      vc
    • 1 / 1