嵌入式爱好者

查看: 11391|回复: 5

[Linux] 无法烧写镜像

[复制链接]

12

主题

27

帖子

108

积分

A40i/T3/T507/T527通行证

扫一扫,手机访问本帖
发表于 2021-6-29 10:16:45 | 显示全部楼层 |阅读模式
把/dev/mmcblk0p8分区格式化了  然后SD卡烧写和OTG烧写就都不能烧写成功了。求解决办法。
回复

使用道具 举报

0

主题

1173

帖子

2203

积分

发表于 2021-6-29 10:33:34 | 显示全部楼层
您是改的源码里的分区吗,还是在板子里格式化的,烧我们出厂镜像也不行吗

点评

之前没用过SD卡烧写 您看是我在SD卡烧写时候出现问题了吗?  详情 回复 发表于 2021-6-29 11:07
在板子里面格式化的 , 用网盘上下载的镜像也不行 otg烧写 就报错 烧写固件失败 请确保固件文件有效并且智能设备可以正常工作 。 SD卡 用卡量产烧写 用终端查看 HELLO! BOOT0 is starting!  详情 回复 发表于 2021-6-29 11:06
点评回复 支持 反对

使用道具 举报

12

主题

27

帖子

108

积分

A40i/T3/T507/T527通行证

 楼主| 发表于 2021-6-29 11:06:09 | 显示全部楼层
zhichao 发表于 2021-6-29 10:33
您是改的源码里的分区吗,还是在板子里格式化的,烧我们出厂镜像也不行吗

在板子里面格式化的 , 用网盘上下载的镜像也不行     otg烧写 就报错 烧写固件失败 请确保固件文件有效并且智能设备可以正常工作 。    SD卡  用卡量产烧写  用终端查看
HELLO! BOOT0 is starting!
                         [     0.35]HELLO! BOOT0 is starting!
[     0.39]boot0 commit : b58d49ff80aa5ff8865ab68aa2463d4ee0fe1e7d

[     0.46]boot0 version : 4.0
[     0.50]set pll start
[     0.54]set pll end
[     0.89]rtc[0] value = 0x00000000
[     0.92]rtc[1] value = 0x00000000
[     0.95]rtc[2] value = 0x00000000
[     0.98]rtc[3] value = 0x00000000
[     0.102]rtc[4] value = 0x00000000
[     0.105]rtc[5] value = 0x00000000
[     0.109]DRAMC IS FOUR
[     0.111]DRAM BOOT DRIVE INFO: V1.1
[     0.115]Found A40
[     0.117]Found A40
[     0.119]Found A40
[     0.121]Found A40
[     0.123]Found A40
[     0.129]PMU: [     0.130]AXP221
[     0.132]ddr voltage = 1250 mv
[     0.139]PMU: [     0.140]AXP221
[     0.142]ddr voltage = 1250 mv
[     0.153]PMU: [     0.154]AXP221
[     0.156]ddr voltage = 1500 mv
[     0.166]DRAM CLK =576 MHZ
[     0.169]DRAM Type =3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
[     0.174]DRAM zq value: 0x003b3bfb
[     0.180]DRAM SIZE =2048 M
[     0.183]DRAM ** test OK.
[     0.186]dram size =2048
[     0.189]rtc standby flag is 0x00000000, super standby flag is 0x00000000
[     0.196]card no is 0
[     0.199]sdcard 0 line count 4
[     0.202][mmc]: mmc driver ver 2016-07-01 15:30
[     0.206][mmc]: sdc0 spd mode error, 2
[     0.219][mmc]: Wrong media type 0x00000000
[     0.223][mmc]: ***Try SD card 0***
[     0.243][mmc]: HSSDR52/SDR25 4 bit
[     0.246][mmc]: 50000000 Hz
[     0.249][mmc]: 30436 MB
[     0.251][mmc]: ***SD/MMC 0 init OK!!!***
[     0.347]Succeed in loading uboot from sdmmc flash.
[     0.352]Entry_name        = u-boot
[     0.368]Ready to disable icache.
[     0.371]Jump to secend Boot.


U-Boot 2014.07 (Jan 19 2020 - 05:27:12) Allwinner Technology

uboot commit : ffae925c54abddcfc8f616c65bb6eb8a3076b947

i2c_init: by cpux
i2c_init ok
[      0.386]pmbus:   ready
[      0.400]PMU: AXP221
[      0.400]PMU: AXP22x found
[      0.401]PMU: dcdc2 1160
[      0.402]PMU: cpux 1008 Mhz,AXI=336 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz  MBus=400Mhz
set power on vol to default
dcdc1_vol = 3300, onoff=1
dcdc2_vol = 1160, onoff=1
dcdc3_vol = 1200, onoff=1
dcdc4_vol = 1100, onoff=0
aldo1_vol = 3300, onoff=1
aldo2_vol = 1800, onoff=1
aldo3_vol = 3000, onoff=1
dc1sw_vol = 3000, onoff=0
dc5ldo_vol = 1100, onoff=0
dldo1_vol = 3300, onoff=1
dldo2_vol = 3300, onoff=0
dldo3_vol = 3300, onoff=0
dldo4_vol = 2500, onoff=1
eldo1_vol = 2800, onoff=0
eldo2_vol = 1200, onoff=1
eldo3_vol = 2800, onoff=1
gpio0_vol = 3300, onoff=1
gpio1_vol = 3300, onoff=1
find power_sply to end
vbus exist
DRAM:  2 GiB
fdt addr: 0xb6e8dbf8
Relocation Offset is: 75ee4000
axp: get node[charger0] error
In:    serial
Out:   serial
Err:   serial
gic: normal mode
[      0.534]start
drv_disp_init
init_clocks: finish init_clocks.
pwm_request: reg = 0x1c23400. pwm = 0.
request pwm success, pwm = 0.
tv_init:
tv_probe:000
tv0 have no type1
tv0 have no type2
tv0 have no type3
no report hpd work,you need support the switch class!
screen 0 don't support TV!
screen 1 don't support TV!
screen 0 do not support VGA TYPE!
screen 1 do not support VGA TYPE!
tv_init:
drv_disp_init finish
fetch script data boot_disp.output_disp fail
fetch script data boot_disp.output_type fail
fetch script data boot_disp.output_mode fail
fetch script data boot_disp.auto_hpd fail
disp0 device type(1) enable
disp 0, clk: pll(306000000),clk(306000000),dclk(51000000) dsi_rate(306000000)
     clk real:pll(308571428),clk(308571428),dclk(51428571) dsi_rate(0)
enable power vcc-lcd, ret=0
[      1.301]end
workmode = 17,storage type = 1
[      1.301]NAND_UbootProbe start
[      1.303]NB1 : enter phy init
[      1.306]nand_physic_init
[      1.423]Reset NDFC start 0  0
[      1.423]Reset NDFC end 0  0
[      1.424]nand not support! channel 0 chip 0: fe fe fe fe fe fe fe fe
[      1.430]nand not support! channel 0 chip 1: fe fe fe fe fe fe fe fe
[      1.436]nand not support! channel 0 chip 2: fe fe fe fe fe fe fe fe
[      1.443]nand not support! channel 0 chip 3: fe fe fe fe fe fe fe fe
[      1.449] no nand found !
[      1.452]nand_physic_init nand_build_nsi error
[      1.498]nand_physic_init error -1
[      1.498]NB1 : nand phy init fail
[      1.500]NB1 : enter phy Exit
[      1.503]nand_physic_exit
[      1.506]NAND_UbootProbe end: 0xffffffff
try nand fail
try nand fail
try card 2
[mmc]: mmc driver ver 2016-07-01 15:50:00
[mmc]: mmc_update_timing_para: error sdc_no 2
SUNXI SD/MMC: 2
[mmc]: 50 MHz...
[mmc]: sample: 63 - 158(ps)
[mmc]: ds: 63 - 158(ps)
[mmc]: 100 MHz...
[mmc]: sample: 34 - 147(ps)
[mmc]: ds: 34 - 147(ps)
[mmc]: 200 MHz...
[mmc]: sample: 17 - 147(ps)
[mmc]: ds: 17 - 147(ps)
[mmc]: ************Try SD card 2************
[mmc]: mmc 2 cmd 8 timeout, err 100
[mmc]: smc 2 err, cmd 8,  RTO
[mmc]: mmc 2 close bus gating and reset
[mmc]: mmc 2 mmc cmd 8 err 0x00000100
[mmc]: mmc send if cond failed
[mmc]: mmc 2 cmd 55 timeout, err 100
[mmc]: smc 2 err, cmd 55,  RTO
[mmc]: mmc 2 close bus gating and reset
[mmc]: mmc 2 mmc cmd 55 err 0x00000100
[mmc]: send app cmd failed
[mmc]: ************Try MMC card 2************
[mmc]: host caps: 0x6f
[mmc]: MID 000013 PSN 112eff11
[mmc]: PNM Q2J55L -- 0x51-32-4a-35-35
[mmc]: PRV 1.0
[mmc]: MDT m-7 y-2020
[mmc]: MMC v5.0
[mmc]: speed mode     : HSSDR52/SDR25
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 8 bit
[mmc]: user capacity  : 7264 MB
[mmc]: boot capacity  : 16384 KB
[mmc]: rpmb capacity  : 4096 KB
[mmc]: ************SD/MMC 2 init OK!!!************
[mmc]: use default speed mode: 1-HSSDR52/SDR25, ifreq: 2
[mmc]: ========best spd md: 1-HSSDR52/SDR25, freq: 2-50000000
[mmc]: already at HSSDR52_SDR25 mode
[mmc]: erase_grp_size      : 0x400WrBlk*0x200=0x80000 Byte
[mmc]: secure_feature      : 0x55
[mmc]: secure_removal_type : 0x1
[mmc]: EOL Info(Rev blks): Normal
[mmc]: Wear out(type A): 0%-10% life time used
[mmc]: Wear out(type B): 0%-10% life time used
[mmc]: mmc driver ver 2016-07-01 15:50:00
[mmc]: boot_card_no error 2
SUNXI SD/MMC: 2, SUNXI SD/MMC: 0
[mmc]: 50 MHz...
[mmc]: sample: 63 - 158(ps)
[mmc]: 100 MHz...
[mmc]: sample: 34 - 147(ps)
[mmc]: 200 MHz...
[mmc]: sample: 17 - 147(ps)
[mmc]: ************Try SD card 0************
[mmc]: host caps: 0x27
[mmc]: MID 03 PSN a7e284e7
[mmc]: PNM SD32G -- 0x53-44-33-32-47
[mmc]: PRV 8.5
[mmc]: MDT m-3 y-2021
[mmc]: speed mode     : HSSDR52/SDR25
[mmc]: clock          : 50000000 Hz
[mmc]: bus_width      : 4 bit
[mmc]: user capacity  : 30436 MB
[mmc]: ************SD/MMC 0 init OK!!!************
[mmc]: erase_grp_size      : 0x1WrBlk*0x200=0x200 Byte
[mmc]: secure_feature      : 0x0
[mmc]: secure_removal_type : 0x0
mmc init ok
out of usb burn from boot: not boot mode
[      1.948]inter uboot shell
don't support write key!!!
flash secret error!!!
Hit any key to stop autoboot:  0
work mode=0x11
run card sprite
try sprite_led_gpio config
[      1.958]sunxi sprite begin
fetch script data boot_disp.output_full fail
screen_id =0, screen_width =1024, screen_height =600
frame buffer address b7f2eed0
board_display_show_until_lcd_open
screen_width = 1024
screen_height = 600
bar x1: 256 y1: 260
bar x2: 768 y2: 340
reading font32.sft
FAT: Misaligned buffer address (b8186ff8)
357443 bytes read in 163 ms (2.1 MiB/s)
[SFTE_Set_Pixel_Sizes_i] 407 buf_size is 2304
cur_pixel_size 32 pixel_size 32
[      2.190]firmware probe ok
[      2.190]fetch download map
*************DOWNLOAD MAP DUMP************
total download part 5

download part[0] name          :boot-resource
download part[0] download file :BOOT-RESOURCE_FE
download part[0] verify file   :VBOOT-RESOURCE_F
download part[0] lenlo         :0x3800
download part[0] addrlo        :0x8000
download part[0] encrypt       :0x0
download part[0] verify        :0x1

download part[1] name          :env
download part[1] download file :ENV_FEX000000000
download part[1] verify file   :VENV_FEX00000000
download part[1] lenlo         :0x2000
download part[1] addrlo        :0xb800
download part[1] encrypt       :0x0
download part[1] verify        :0x1

download part[2] name          :boot
download part[2] download file :BOOT_FEX00000000
download part[2] verify file   :VBOOT_FEX0000000
download part[2] lenlo         :0x8000
download part[2] addrlo        :0xd800
download part[2] encrypt       :0x0
download part[2] verify        :0x1

download part[3] name          :rootfs
download part[3] download file :ROOTFS_FEX000000
download part[3] verify file   :VROOTFS_FEX00000
download part[3] lenlo         :0x200000
download part[3] addrlo        :0x15800
download part[3] encrypt       :0x0
download part[3] verify        :0x1

download part[4] name          :usr
download part[4] download file :USR-RESOURCE_FEX
download part[4] verify file   :VUSR-RESOURCE_FE
download part[4] lenlo         :0xcf5800
download part[4] addrlo        :0x21d800
download part[4] encrypt       :0x0
download part[4] verify        :0x1

[      2.328]fetch mbr
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 7

part[0] name      :boot-resource
part[0] classname :DISK
part[0] addrlo    :0x8000
part[0] lenlo     :0x3800
part[0] user_type :32768
part[0] keydata   :0
part[0] ro        :0

part[1] name      :env
part[1] classname :DISK
part[1] addrlo    :0xb800
part[1] lenlo     :0x2000
part[1] user_type :32768
part[1] keydata   :0
part[1] ro        :0

part[2] name      :boot
part[2] classname :DISK
part[2] addrlo    :0xd800
part[2] lenlo     :0x8000
part[2] user_type :32768
part[2] keydata   :0
part[2] ro        :0

part[3] name      :rootfs
part[3] classname :DISK
part[3] addrlo    :0x15800
part[3] lenlo     :0x200000
part[3] user_type :32768
part[3] keydata   :0
part[3] ro        :0

part[4] name      :private
part[4] classname :DISK
part[4] addrlo    :0x215800
part[4] lenlo     :0x8000
part[4] user_type :32768
part[4] keydata   :0
part[4] ro        :0

part[5] name      :usr
part[5] classname :DISK
part[5] addrlo    :0x21d800
part[5] lenlo     :0xcf5800
part[5] user_type :32768
part[5] keydata   :0
part[5] ro        :0

part[6] name      :UDISK
part[6] classname :DISK
part[6] addrlo    :0xf13000
part[6] lenlo     :0x0
part[6] user_type :0
part[6] keydata   :0
part[6] ro        :0

*************MBR DUMP***************
total mbr part 7

part[0] name      :boot-resource
part[0] classname :DISK
part[0] addrlo    :0x8000
part[0] lenlo     :0x3800
part[0] user_type :0x8000
part[0] keydata   :0x0
part[0] ro        :0x0

part[1] name      :env
part[1] classname :DISK
part[1] addrlo    :0xb800
part[1] lenlo     :0x2000
part[1] user_type :0x8000
part[1] keydata   :0x0
part[1] ro        :0x0

part[2] name      :boot
part[2] classname :DISK
part[2] addrlo    :0xd800
part[2] lenlo     :0x8000
part[2] user_type :0x8000
part[2] keydata   :0x0
part[2] ro        :0x0

part[3] name      :rootfs
part[3] classname :DISK
part[3] addrlo    :0x15800
part[3] lenlo     :0x200000
part[3] user_type :0x8000
part[3] keydata   :0x0
part[3] ro        :0x0

part[4] name      :private
part[4] classname :DISK
part[4] addrlo    :0x215800
part[4] lenlo     :0x8000
part[4] user_type :0x8000
part[4] keydata   :0x0
part[4] ro        :0x0

part[5] name      :usr
part[5] classname :DISK
part[5] addrlo    :0x21d800
part[5] lenlo     :0xcf5800
part[5] user_type :0x8000
part[5] keydata   :0x0
part[5] ro        :0x0

part[6] name      :UDISK
part[6] classname :DISK
part[6] addrlo    :0xf13000
part[6] lenlo     :0x0
part[6] user_type :0x0
part[6] keydata   :0x0
part[6] ro        :0x0

[      2.568]begin to erase flash
total part: 8
mbr 0, 8000, 8000
boot-resource 1, 3800, 8000
env 2, 2000, 8000
boot 3, 8000, 8000
rootfs 4, 200000, 8000
private 5, 8000, 8000
usr 6, cf5800, 8000
UDISK 7, 0, 0
not need erase flash
private part exist
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 7

part[0] name      :boot-resource
part[0] classname :DISK
part[0] addrlo    :0x8000
part[0] lenlo     :0x3800
part[0] user_type :32768
part[0] keydata   :0
part[0] ro        :0

part[1] name      :env
part[1] classname :DISK
part[1] addrlo    :0xb800
part[1] lenlo     :0x2000
part[1] user_type :32768
part[1] keydata   :0
part[1] ro        :0

part[2] name      :boot
part[2] classname :DISK
part[2] addrlo    :0xd800
part[2] lenlo     :0x200000
part[2] user_type :32768
part[2] keydata   :0
part[2] ro        :0

part[3] name      :rootfs
part[3] classname :DISK
part[3] addrlo    :0x20d800
part[3] lenlo     :0x200000
part[3] user_type :32768
part[3] keydata   :0
part[3] ro        :0

part[4] name      :private
part[4] classname :DISK
part[4] addrlo    :0x40d800
part[4] lenlo     :0x200000
part[4] user_type :32768
part[4] keydata   :0
part[4] ro        :0

part[5] name      :usr
part[5] classname :DISK
part[5] addrlo    :0x60d800
part[5] lenlo     :0x200000
part[5] user_type :32768
part[5] keydata   :0
part[5] ro        :0

part[6] name      :UDISK
part[6] classname :DISK
part[6] addrlo    :0x80d800
part[6] lenlo     :0x0
part[6] user_type :0
part[6] keydata   :0
part[6] ro        :0

begin to store data
part name boot-resource
keydata = 0x0
part name env
keydata = 0x0
part name boot
keydata = 0x0
part name rootfs
keydata = 0x0
part name private
keydata = 0x0
find keypart private
keypart read start: 0x40d800, sectors 0x200000
sprite protect private data fail: cant malloc memory for part private, sectors 0x200000
sunxi sprite error: erase flash err
sprite_test - do a sprite test

sunxi#
点评回复 支持 反对

使用道具 举报

12

主题

27

帖子

108

积分

A40i/T3/T507/T527通行证

 楼主| 发表于 2021-6-29 11:07:28 | 显示全部楼层
zhichao 发表于 2021-6-29 10:33
您是改的源码里的分区吗,还是在板子里格式化的,烧我们出厂镜像也不行吗

之前没用过SD卡烧写 您看是我在SD卡烧写时候出现问题了吗?
点评回复 支持 反对

使用道具 举报

0

主题

158

帖子

385

积分

LS1012A通行证LS1043A\46A通行证A40i/T3/T507/T527通行证i.MX8MM通行证RK3399通行证LS1028A通行证AM5718通行证Hi3519A通信证AM335x通行证i.MX6UL通行证i.MX RT通行证i.MX6Q通行证XX18通行证TCU通行证FDU产品通行证FCU1401通行证FCU1301通行证FCU11xx通行证FCU1201通行证FCU2301/FCU2302通行证FCU2401通行证5G转接卡通行证

发表于 2021-6-29 11:34:33 | 显示全部楼层
您方便说一下您具体是怎么操作的吗?比如输入了什么指令

点评

我按照新增分区的应用笔记 想挂载用户分区 用mount /dev/mmcblk0p8 /mydata 发现挂载不上 然后通过源码把mmcblk0p8的分区变成了1G大小 然后还用了 fsck -t ext4 /dev/mmcblk0p8 mkfs -t ext4 /dev/  详情 回复 发表于 2021-6-29 12:16
点评回复 支持 反对

使用道具 举报

12

主题

27

帖子

108

积分

A40i/T3/T507/T527通行证

 楼主| 发表于 2021-6-29 12:16:51 | 显示全部楼层
tanglu 发表于 2021-6-29 11:34
您方便说一下您具体是怎么操作的吗?比如输入了什么指令

我按照新增分区的应用笔记 想挂载用户分区   用mount /dev/mmcblk0p8  /mydata    发现挂载不上   
然后通过源码把mmcblk0p8的分区变成了1G大小      然后还用了 fsck -t ext4 /dev/mmcblk0p8
mkfs -t ext4 /dev/mmcblk0p8     wipefs -a /dev/mmcblk0p8    然后就可以挂载上了。。。。。但是再烧写新的镜像就出现了上面说的情况
点评回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋| 飞凌嵌入式 ( 冀ICP备12004394号-1 )

GMT+8, 2025-1-9 04:42

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表