导航

    全志在线开发者论坛

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

    kwongwoLV 2

    @kwongwo

    96
    积分
    0
    声望
    1
    资料浏览
    1
    帖子
    0
    粉丝
    0
    关注
    注册时间 最后登录

    kwongwo 取消关注 关注

    kwongwo 发布的最新帖子

    • T113-S3 NAND切换NOR (32MB) 出错 Wrong Image Format

      参照这位大神的帖子[tina-linux-存储介质切换] 进行切换 SPI-NAND - > SPI NOR (W25Q256) ,出现错误

      Wrong Image Format for bootm command

      是不是还需要配置哪里? 还是spi nor启动参数bootargs和nand的不一样?

      请帮忙看看,谢谢:)

      [22]HELLO! BOOT0 is starting!
      [24]BOOT0 commit : adaf1174cc
      [27]set pll start
      [33]periph0 has been enabled
      [36]set pll end
      [38][pmu]: bus read error
      [40]board init ok
      [42]ZQ value = 0x2f
      [44]get_pmu_exist() = -1
      [46]DRAM BOOT DRIVE INFO: V0.33
      [49]DRAM CLK = 936 MHz
      [52]DRAM Type = 3 (2:DDR2,3:DDR3)
      [55]DRAMC read ODT  off.
      [57]DRAM ODT value: 0x42.
      [60]ddr_efuse_type: 0xa
      [63]DRAM SIZE =128 M
      [65]dram_tpr4:0x0
      [67]PLL_DDR_CTRL_REG:0xf8004d00
      [70]DRAM_CLK_REG:0xc0000000
      [72][TIMING DEBUG] MR2= 0x20
      [80]DRAM simple test OK.
      [82]rtc standby flag is 0x0, super standby flag is 0x0
      [87]dram size =128
      [91]4byte mode error
      [92]set spi freq:50000000
      [95]spinor id is: ef 40 19, read cmd: 6b
      [99]Succeed in reading toc file head.
      [102]The size of toc is d4000.
      [140]Entry_name        = u-boot
      [145]Entry_name        = optee
      [149]Entry_name        = dtb
      [152]Jump to second Boot.
      M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm
      
      
      U-Boot 2018.05-g2a1965a-dirty (Jul 10 2022 - 02:50:57 +0000) Allwinner Technology
      
      [00.205]CPU:   Allwinner Family
      [00.208]Model: sun8iw20
      [00.210]DRAM:  128 MiB
      [00.214]Relocation Offset is: 04f46000
      [00.229]secure enable bit: 0
      [00.231]smc_tee_inform_fdt failed with: -65526[00.235]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
      [00.242]gic: sec monitor mode
      [00.244]flash init start
      [00.247]workmode = 0,storage type = 3
      [00.252]spi sunxi_slave->max_hz:50000000 
      SF: Detected w25q256 with page size 256 Bytes, erase size 64 KiB, total 32 MiB
      [00.263]sunxi flash init ok
      [00.265]line:703 init_clocks
      [00.268]drv_disp_init
      request pwm success, pwm7:pwm7:0x2000c00.
      fdt get node offset faill: hdmi
      [00.284]unable to map hdmi registers
      [00.287]drv_disp_init finish
      [00.293]Loading Environment from SUNXI_FLASH... OK
      [00.319]boot_gui_init:start
      [00.322]set disp.dev2_output_type fail. using defval=0
      [00.699]set disp.fb0_width fail. using defval=0
      [00.703]set disp.fb0_height fail. using defval=0
      [00.707]boot_gui_init:finish
      partno erro : can't find partition bootloader
      ** Unrecognized filesystem type **
      [00.877]sunxi bmp info error : unable to open logo file bootlogo.bmp
      root_partition is rootfs
      set root to /dev/mtdblock5
      [00.888]update part info
      [00.891]update bootcmd
      [00.893]change working_fdt 0x43f05e70 to 0x43ee5e70
      disable nand error: FDT_ERR_NOTFOUND
      [00.913]update dts
      Hit any key to stop autoboot:  1 FDT ERROR:get muxsel err returned FDT_ERR_INTERNAL
      sunxi_pwm_pin_set_state, fdt_set_all_pin, ret=-1
      [00.939]LCD open finish
       0 
      ramdisk  addr 0x41000000 0x4100000c exceed boot scope
      boot  addr 0x41000000 0x4146b000
      [02.675]no vendor_boot partition is found
      Wrong Image Format for bootm command
      ERROR: can't get kernel image!
      

      uboot的env参数 ,setargs_nor 参数不知道对不对,setargs_nor 和setargs_nor2都试了,还是不行.

      boot_dsp0=sunxi_flash read 40000000 ${dsp0_partition};bootr 40000000 0 0
      boot_fastboot=fastboot
      boot_from_partion=boot
      boot_normal=sunxi_flash read 41000000 ${boot_partition};bootm 41000000
      boot_partition=boot
      boot_recovery=sunxi_flash read 43000000 extend;bootm 43000000
      bootargs=earlyprintk=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/mtdblock5 rootfstype=squashfs init=/pseudo_init partitions=boot-resource@mtdblock1:env@mtdblock2:env-redund@mtdblock3:boot@mtdblock4:rootfs@mtdblock5:UDISK@mtdblock6 cma=4M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw20p1 boot_type=3 androidboot.boot_type=3 gpt=1 uboot_message=2018.05-g2a1965a-dirty(07/10/2022-02:50:57) mbr_offset=1032192 disp_reserve=4096000,0x43f50000 androidboot.dramsize=128
      bootcmd=run setargs_nor boot_normal
      bootdelay=1
      burn_key=0
      cma=4M
      console=ttyS3,115200
      disp_reserve=4096000,0x43f50000
      dsp0_partition=dsp0
      earlyprintk=sunxi-uart,0x02500C00
      fdtcontroladdr=43f05e70
      force_normal_boot=1
      init=/pseudo_init
      initcall_debug=0
      loglevel=8
      mac= 
      mmc_root=/dev/mmcblk0p5
      mtd_name=sys
      nand_root=/dev/ubiblock0_5
      nor_root=/dev/mtdblock5
      partitions=boot-resource@mtdblock1:env@mtdblock2:env-redund@mtdblock3:boot@mtdblock4:rootfs@mtdblock5:UDISK@mtdblock6
      ramdisk_size=c
      ramdisk_start=41000000
      ramdisk_sum=dd40c244
      root_partition=rootfs
      rootdelay=2
      rootfstype=squashfs
      setargs_nor=setenv bootargs earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      
      setargs_nor2=setenv bootargs ubi.mtd=${mtd_name} ubi.block=0,${root_partition} earlyprintk=${earlyprintk} clk_ignore_unused initcall_debug=${initcall_debug} console=${console} loglevel=${loglevel} root=${nor_root} rootfstype=${rootfstype} init=${init} partitions=${partitions} cma=${cma} snum=${snum} mac_addr=${mac} wifi_mac=${wifi_mac} bt_mac=${bt_mac} specialstr=${specialstr} gpt=1
      
      sunxi_mtdparts=spi0.0:128K(boot-resource),128K(env),128K(env-redund),6400K(boot),12800K(rootfs)
      
      发布在 其它全志芯片讨论区
      K
      kwongwo