导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. karmastone
    3. 帖子
    K
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 452
    • 主题 4
    • 帖子 7
    • 最佳 2
    • 群组 0

    karmastone 发布的帖子

    • 请问下TinaLinux下, D1S的DCLK极性在哪里设置

      现在的图像有点模糊, 不知道是不是DCLK的极性问题, 想修改以下试试。 请问下有地方修改吗

      0c752850-738a-494d-a0aa-5e1075bf98b4-image.png

      发布在 Linux
      K
      karmastone
    • 回复: D1S 接小屏 频率设置不成功

      @karmastone 打了一堆日志, 好像没进入disp_lcd_enable函数,disp_lcd_fake_enable也没进。

      发布在 MR Series
      K
      karmastone
    • D1S 接小屏 频率设置不成功

      使用MQ-R的板子,接480*480的屏, DCLK设置为16Mhz, 但是输出一直是48Mhz, DCLK设置大于48M的,实际测量正常。 小于48M的,日志输出对,实际测量都是48M。

      还需要设置那块?

      [    0.217616] dclk_rate_set:33000000 , lcd_rate_set:288000000 , clk_info.tcon_div:6
      [    0.217628] [DISP] lcd_clk_config,line:749:
      [    0.217638] disp 0, clk: pll(96000000),clk(96000000),dclk(16000000) dsi_rate(96000000)
      [    0.217638]      clk real:pll(288000000),clk(288000000),dclk(16000000) dsi_rate(0)
      
      root@TinaLinux:/# cat /sys/devices/virtual/disp/disp/attr/sys 
      screen 0:
      de_rate 300000000 hz, ref_fps:64
      mgr0: 480x480 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[28]
              lcd output      backlight(250)  fps:60.2         480x 480
              err:26028       skip:153        irq:26037       vsync:0 vsync_skip:0
         BUF    enable ch[1] lyr[0] z[16] prem[N] a[pixel 255] fmt[  0] fb[ 480, 480; 480, 480; 480, 480] crop[   0,   0, 480, 480] frame[   0,   0, 800, 480] addr[fff00000,       0,       0] flags[0x       0] trd[0,0]
      
      发布在 MR Series
      K
      karmastone
    • 回复: TinaLinux openssl 升级1.1.1

      @awwwwa 更改makefile之后, 在make img文件的时候, 需要打补丁, 1.1.1的包打补丁失败

      发布在 MR Series
      K
      karmastone
    • TinaLinux openssl 升级1.1.1

      最新想在F133上部署mosquitto, 需要用到openssl 1.1.1, 但是自带的是1.1.0.

      更改package的makefile,版本设置1.1.1w, 之后patch又失败。去掉patch不知道会不会影响到其他的

      请教下有什么方法可以搞这个

      发布在 MR Series
      K
      karmastone
    • 回复: MQ-R F133 NandFlash 烧录失败 55% W25N02KVZEIR WSON-8 3V 2Gb 串行NAND

      @whycanservice 感谢,换成MT29F2G01ABAGDWB-IT:G了, 可以正常烧录

      发布在 其它全志芯片讨论区
      K
      karmastone
    • MQ-R F133 NandFlash 烧录失败 55% W25N02KVZEIR WSON-8 3V 2Gb 串行NAND

      设备烧录日志

      U-Boot 2018.05-g2a1965a-config-dirty (Dec 02 2023 - 05:02:23 -0800) Allwinner Technology
      
      [03.661]DRAM:  64 MiB
      [03.666]Relocation Offset is: 01efe000
      [03.690]secure enable bit: 0
      [03.695]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [03.702]flash init start
      [03.704]workmode = 16,storage type = 0
      try card 2
      set card number 2
      get card number 2
      [03.712][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00
      [03.721][mmc]: get sdc_type fail and use default host:tm4.
      [03.751][mmc]: Is not Boot mode!
      [03.754][mmc]: SUNXI SDMMC Controller Version:0x50310
      [03.765][mmc]: ************Try SD card 2************
      [03.771][mmc]: mmc 2 cmd timeout 100 status 100
      [03.775][mmc]: smc 2 err, cmd 8,  RTO
      [03.778][mmc]: mmc 2 close bus gating and reset
      [03.783][mmc]: mmc 2 cmd timeout 100 status 100
      [03.788][mmc]: smc 2 err, cmd 55,  RTO
      [03.791][mmc]: mmc 2 close bus gating and reset
      [03.795][mmc]: ************Try MMC card 2************
      [03.804][mmc]: mmc 2 cmd timeout 100 status 100
      [03.808][mmc]: smc 2 err, cmd 1,  RTO
      [03.812][mmc]: mmc 2 close bus gating and reset
      [03.816][mmc]: Card did not respond to voltage select!
      [03.821][mmc]: ************SD/MMC 2 init error!************
      [03.826][mmc]: mmc init product failed
      MMC init failed
      try emmc fail
      [03.842]sunxi-spinand: AW SPINand MTD Layer Version: 1.8 20220106
      [03.848]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.11 20211217
      [03.908]sunxi-spinand-phy: request spi0 gpio ok
      [03.912]sunxi-spinand-phy: request general tx dma channel ok!
      [03.918]sunxi-spinand-phy: request general rx dma channel ok!
      [03.923]sunxi-spinand-phy: set spic0 clk to 20 Mhz
      [03.928]sunxi-spinand-phy: init spic0 clk ok
      [03.932]sunxi-spinand-phy: detect munufacture from id table: Winbond
      [03.938]sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff
      [03.944]sunxi-spinand-phy: ========== arch info ==========
      [03.949]sunxi-spinand-phy: Model:               W25N01GVZEIG
      [03.954]sunxi-spinand-phy: Munufacture:         Winbond
      [03.959]sunxi-spinand-phy: DieCntPerChip:       1
      [03.963]sunxi-spinand-phy: BlkCntPerDie:        1024
      [03.968]sunxi-spinand-phy: PageCntPerBlk:       64
      [03.973]sunxi-spinand-phy: SectCntPerPage:      4
      [03.977]sunxi-spinand-phy: OobSizePerPage:      64
      [03.982]sunxi-spinand-phy: BadBlockFlag:        0x0
      [03.986]sunxi-spinand-phy: OperationOpt:        0x7
      [03.991]sunxi-spinand-phy: MaxEraseTimes:       65000
      [03.996]sunxi-spinand-phy: EccFlag:             0x0
      [04.000]sunxi-spinand-phy: EccType:             2
      [04.005]sunxi-spinand-phy: EccProtectedType:    3
      [04.009]sunxi-spinand-phy: ========================================
      [04.015]sunxi-spinand-phy: 
      [04.017]sunxi-spinand-phy: ========== physical info ==========
      [04.023]sunxi-spinand-phy: TotalSize:    128 M
      [04.027]sunxi-spinand-phy: SectorSize:   512 B
      [04.031]sunxi-spinand-phy: PageSize:     2 K
      [04.035]sunxi-spinand-phy: BlockSize:    128 K
      [04.039]sunxi-spinand-phy: OOBSize:      64 B
      [04.044]sunxi-spinand-phy: ========================================
      [04.050]sunxi-spinand-phy: 
      [04.052]sunxi-spinand-phy: ========== logical info ==========
      [04.058]sunxi-spinand-phy: TotalSize:    128 M
      [04.062]sunxi-spinand-phy: SectorSize:   512 B
      [04.066]sunxi-spinand-phy: PageSize:     4 K
      [04.070]sunxi-spinand-phy: BlockSize:    256 K
      [04.074]sunxi-spinand-phy: OOBSize:      128 B
      [04.078]sunxi-spinand-phy: ========================================
      [04.094]sunxi-spinand-phy: set spic0 clk to 100 Mhz
      [04.098]sunxi-spinand-phy: block lock register: 0x00
      [04.103]sunxi-spinand-phy: feature register: 0x19
      [04.107]sunxi-spinand-phy: sunxi physic nand init end
      [04.112]line:703 init_clocks
      [04.126]init_clocks:finish
      [04.135]Loading Environment from SUNXI_FLASH... OK
      [04.143]try to burn key
      [04.146]out of usb burn from boot: not need burn key
      Hit any key to stop autoboot:  0 
      sunxi work mode=0x10
      run usb efex
      delay time 2500
      weak:otg_phy_config
      usb init ok
      set address 0xc
      set address 0xc ok
      set address 0xc
      set address 0xc ok
      SUNXI_EFEX_ERASE_TAG
      erase_flag = 0x12
      origin_erase_flag = 0x1
      FEX_CMD_fes_verify_status
      FEX_CMD_fes_verify last err=0
      the 0 mbr table is ok
      the 1 mbr table is ok
      the 2 mbr table is ok
      the 3 mbr table is ok
      *************MBR DUMP***************
      total mbr part 8
      
      part[0] name      :boot-resource
      part[0] classname :DISK
      part[0] addrlo    :0x8000
      part[0] lenlo     :0x1f8
      part[0] user_type :32768
      part[0] keydata   :0
      part[0] ro        :0
      
      part[1] name      :env
      part[1] classname :DISK
      part[1] addrlo    :0x81f8
      part[1] lenlo     :0x1f8
      part[1] user_type :32768
      part[1] keydata   :0
      part[1] ro        :0
      
      part[2] name      :env-redund
      part[2] classname :DISK
      part[2] addrlo    :0x83f0
      part[2] lenlo     :0x1f8
      part[2] user_type :32768
      part[2] keydata   :0
      part[2] ro        :0
      
      part[3] name      :boot
      part[3] classname :DISK
      part[3] addrlo    :0x85e8
      part[3] lenlo     :0x3b10
      part[3] user_type :32768
      part[3] keydata   :0
      part[3] ro        :0
      
      part[4] name      :rootfs
      part[4] classname :DISK
      part[4] addrlo    :0xc0f8
      part[4] lenlo     :0xf000
      part[4] user_type :32768
      part[4] keydata   :0
      part[4] ro        :0
      
      part[5] name      :private
      part[5] classname :DISK
      part[5] addrlo    :0x1b0f8
      part[5] lenlo     :0x2800
      part[5] user_type :32768
      part[5] keydata   :0
      part[5] ro        :0
      
      part[6] name      :rootfs_data
      part[6] classname :DISK
      part[6] addrlo    :0x1d8f8
      part[6] lenlo     :0xc4e0
      part[6] user_type :32768
      part[6] keydata   :0
      part[6] ro        :0
      
      part[7] name      :UDISK
      part[7] classname :DISK
      part[7] addrlo    :0x29dd8
      part[7] lenlo     :0x0
      part[7] user_type :33024
      part[7] keydata   :0
      part[7] ro        :0
      
      common1(partition3) need it, here is a weak func
      total part: 9
      mbr 0, 8000, 8000
      boot-resource 1, 1f8, 8000
      env 2, 1f8, 8000
      env-redund 3, 1f8, 8000
      boot 4, 3b10, 8000
      rootfs 5, f000, 8000
      private 6, 2800, 8000
      rootfs_data 7, c4e0, 8000
      UDISK 8, 0, 8100
      [07.443]erase blk 0 to blk 32
      need erase flash: 18
      [07.546]mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
      
      device nand0 <nand>, # parts = 4
       #: name                size            offset          mask_flags
       0: boot0               0x00100000      0x00000000      1
       1: uboot               0x00300000      0x00100000      1
       2: secure_storage      0x00100000      0x00400000      1
       3: sys                 0x07b00000      0x00500000      0
      
      active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
      
      defaults:
      mtdids  : nand0=nand
      mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
      [07.600]MTD info (4)
      [07.602]pagesize: 0x1000
      [07.604]blksize: 0x40000
      [07.606]num  offset     bytes      name
      [07.610]0    0x00000000 0x00100000 boot0
      [07.613]1    0x00100000 0x00300000 uboot
      [07.617]2    0x00400000 0x00100000 secure_storage
      [07.621]3    0x00500000 0x07b00000 sys
      [07.625]ubi attach the last part of mtd device: NO.3
      [07.720]ubi0: attaching mtd4
      [07.913]ubi0: scanning is finished
      [07.949]ubi0: attached mtd4 (name "sys", size 123 MiB)
      [07.954]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [07.960]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [07.966]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [07.972]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
      [07.978]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128
      [07.984]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
      [07.992]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20
      [08.001]erase blk 0 to blk 32
      [08.098]erase blk 40 to blk 1024
      [10.852]sunxi-spinand: spinand secure storage ok for phy blk 32 and 33
      [10.863]Item0 (Map) magic is bad
      [10.865]the secure storage map is empty
      [10.992]sunxi-spinand: write secure storage itme 0 ok
      [10.997]erase secure storage: 0 ok
      SUNXI_EFEX_MBR_TAG
      mbr size = 0x10000
      force mbr
      
      device nand0 <nand>, # parts = 4
       #: name                size            offset          mask_flags
       0: boot0               0x00100000      0x00000000      1
       1: uboot               0x00300000      0x00100000      1
       2: secure_storage      0x00100000      0x00400000      1
       3: sys                 0x07b00000      0x00500000      0
      
      active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000
      
      defaults:
      mtdids  : nand0=nand
      mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys)
      [11.048]MTD info (4)
      [11.049]pagesize: 0x1000
      [11.052]blksize: 0x40000
      [11.054]num  offset     bytes      name
      [11.058]0    0x00000000 0x00100000 boot0
      [11.061]1    0x00100000 0x00300000 uboot
      [11.065]2    0x00400000 0x00100000 secure_storage
      [11.069]3    0x00500000 0x07b00000 sys
      [11.073]MBR info (unalign):
      [11.075]partno   addr       sects      type       name
      [11.080]0        0x00000000 0x00008000 0x00000001 mbr
      [11.085]1        0x00008000 0x000001f8 0x00008000 boot-resource
      [11.090]2        0x000081f8 0x000001f8 0x00008000 env
      [11.095]3        0x000083f0 0x000001f8 0x00008000 env-redund
      [11.101]4        0x000085e8 0x00003b10 0x00008000 boot
      [11.105]5        0x0000c0f8 0x0000f000 0x00008000 rootfs
      [11.111]6        0x0001b0f8 0x00002800 0x00008000 private
      [11.116]7        0x0001d8f8 0x0000c4e0 0x00008000 rootfs_data
      [11.121]8        0x00029dd8 0x00000000 0x00008100 UDISK
      [11.126]ubi attach the last part of mtd device: NO.3
      [11.131]MBR info (align):
      [11.133]partno   addr       sects      type       name
      [11.138]0        0x00002800 0x000081f0 0x00000001 mbr
      [11.143]1        0x0000a9f0 0x000001f8 0x00008000 boot-resource
      [11.148]2        0x0000abe8 0x000001f8 0x00008000 env
      [11.153]3        0x0000ade0 0x000001f8 0x00008000 env-redund
      [11.158]4        0x0000afd8 0x00003b10 0x00008000 boot
      [11.163]5        0x0000eae8 0x0000f030 0x00008000 rootfs
      [11.168]6        0x0001db18 0x00002958 0x00008000 private
      [11.173]7        0x00020470 0x0000c4e0 0x00008000 rootfs_data
      [11.179]8        0x0002c950 0x00000000 0x00008100 UDISK
      [11.184]ubi attach the last part of mtd device: NO.3
      [11.189]ubi attatch mtd, name: sys
      
      [11.192]ubi0: detaching mtd4
      [11.196]ubi0: mtd4 is detached
      [11.199]ubi0: attaching mtd4
      [11.291]ubi0: scanning is finished
      [11.294]ubi0: empty MTD device detected
      [11.346]ubi0: attached mtd4 (name "sys", size 123 MiB)
      [11.350]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes
      [11.357]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048
      [11.363]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
      [11.369]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0
      [11.375]ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
      [11.381]ubi0: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 0
      [11.389]ubi0: available PEBs: 468, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 20
      Creating static volume mbr of size 17031168
      Creating dynamic volume boot-resource of size 258048
      Creating dynamic volume env of size 258048
      Creating dynamic volume env-redund of size 258048
      Creating dynamic volume boot of size 7741440
      Creating dynamic volume rootfs of size 31481856
      Creating dynamic volume private of size 5419008
      Creating dynamic volume rootfs_data of size 25804800
      No size specified -> Using max size (32514048)
      [15.003]reset last volume size to 0xf810
      Creating dynamic volume UDISK of size 32514048
      [15.110]fill gap start: volume mbr sects 0x7f80
      [29.044]fill gap end: volume mbr
      [29.047]update partition map
      [29.050]logical area info: 468 258048 last_lba: 235871
      [29.065]logical area info: 468 258048 last_lba: 235871
      [29.081]logical area info: 468 258048 last_lba: 235871
      [29.096]logical area info: 468 258048 last_lba: 235871
      [29.112]logical area info: 468 258048 last_lba: 235871
      [29.128]logical area info: 468 258048 last_lba: 235871
      [29.143]logical area info: 468 258048 last_lba: 235871
      [29.159]logical area info: 468 258048 last_lba: 235871
      [29.174]logical area info: 468 258048 last_lba: 235871
      [29.190]logical area info: 468 258048 last_lba: 235871
      [29.206]logical area info: 468 258048 last_lba: 235871
      [29.221]logical area info: 468 258048 last_lba: 235871
      [29.237]logical area info: 468 258048 last_lba: 235871
      [29.252]logical area info: 468 258048 last_lba: 235871
      [29.268]logical area info: 468 258048 last_lba: 235871
      [29.283]logical area info: 468 258048 last_lba: 235871
      [29.299]logical area info: 468 258048 last_lba: 235871
      [29.315]logical area info: 468 258048 last_lba: 235871
      [29.330]logical area info: 468 258048 last_lba: 235871
      [29.346]logical area info: 468 258048 last_lba: 235871
      [29.361]logical area info: 468 258048 last_lba: 235871
      [29.377]logical area info: 468 258048 last_lba: 235871
      [29.393]logical area info: 468 258048 last_lba: 235871
      [29.408]logical area info: 468 258048 last_lba: 235871
      [29.424]logical area info: 468 258048 last_lba: 235871
      [29.439]logical area info: 468 258048 last_lba: 235871
      [29.455]logical area info: 468 258048 last_lba: 235871
      [29.470]logical area info: 468 258048 last_lba: 235871
      FEX_CMD_fes_verify_status
      FEX_CMD_fes_verify last err=0
      [29.535]fill gap start: volume boot-resource sects 0x158
      [29.696]fill gap end: volume boot-resource
      FEX_CMD_fes_verify_value, start 0x8000, size high 0x0:low 0x14000
      FEX_CMD_fes_verify_value 0xe6f75b5c
      [29.779]fill gap start: volume env sects 0xf8
      [29.937]fill gap end: volume env
      FEX_CMD_fes_verify_value, start 0x81f8, size high 0x0:low 0x20000
      FEX_CMD_fes_verify_value 0xbb09ad61
      [30.081]fill gap start: volume env-redund sects 0xf8
      [30.239]fill gap end: volume env-redund
      FEX_CMD_fes_verify_value, start 0x83f0, size high 0x0:low 0x20000
      FEX_CMD_fes_verify_value 0xbb09ad61
      [33.419]fill gap start: volume boot sects 0x770
      [33.732]fill gap end: volume boot
      FEX_CMD_fes_verify_value, start 0x85e8, size high 0x0:low 0x674000
      FEX_CMD_fes_verify_value 0xe4d44afb
      

      Suit显示的日志

      [16504] INFO: ID = 3, pc_crc = 0xbb09ad61, nand_crc = 0xbb09ad61
      [16504] INFO: ID = 3, pc_crc = 0xbb09ad61, nand_crc = 0xbb09ad61, it's OK
      [16504] id[3]: down pkt_name(ENV_FEX000000000VENV_FEX00000000) to part(env-redund) successful 
      [16504] 剩余 37 秒
      [16504] 
      [16504] download_firmware: env-redund 55
      [16504] 
      [16504] value =0  
      [16504] Img_OpenItem now! 
      [16504] Img_OpenItem[RFSFAT16][BOOT_FEX00000000VBOOT_FEX0000000]
      [16504] id[3]:part_name = boot, packet_len_high = 0x0, packet_len_low = 0x674000, pkt_name = BOOT_FEX00000000VBOOT_FEX0000000, verify_file = VBOOT_FEX0000000, encrypt = 1
      [16504] sparse: bad magic, it is NOT a sparse format part
      [16504] part boot need verify
      [16504] Img_OpenItem now! 
      [16504] Img_OpenItem[RFSFAT16][VBOOT_FEX0000000]
      [16504] the verify value of part boot is 0x77126f35
      [16504] INFO: ID = 3, pc_crc = 0x77126f35, nand_crc = 0xe4d44afb
      [16504] ERR : efex_verify_transfer_status, verify_data != media_verify
      [16504] err: download_packet, check_crc32_form_efex failed
      [16504] ERR: step_download_firmware, download_packet failed
      [16504] ERR : ID=3, fes_thread() : step 163 ,fail
      [16504] 
      [16504] INFO: ID=3, update failed
      
      

      一直55%就烧录失败 , 是不是芯片不支持呀, 使用的是MQ-R,背后焊接NandFlash

      发布在 其它全志芯片讨论区
      K
      karmastone
    • 1 / 1