嵌入式爱好者

查看: 16664|回复: 3

[Linux] 制作 img 烧写映像时,提示ERROR:update_mbr failed

[复制链接]

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

扫一扫,手机访问本帖
发表于 2020-7-1 16:33:01 | 显示全部楼层 |阅读模式
请教各位大佬,我在制作 img 烧写映像时,提示ERROR:update_mbr failed,也没看到错误信息,这情况咋办呐?

回复

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2020-7-1 16:43:32 | 显示全部楼层
root@kavieen-PC:~/workspace/allwinner/A40i/bsp/lichee# ./build.sh pack
build buidroot-201611...
xgnueabihf
sun8iw11p1_hf_defconfig
INFO: packing firmware ...
copying tools file
copying configs file
./out/aultls32.fex
./out/aultools.fex
./out/boot_package.cfg
./out/boot_package.fex
./out/boot_package_nor.cfg
./out/cardscript.fex
./out/cardscript_secure.fex
./out/cardtool.fex
./out/diskfs.fex
./out/env.cfg
./out/env_burn.cfg
./out/image.cfg
'./out/image_linux.cfg' -> './out/image.cfg'
./out/split_**x.fex
./out/sunxi.fex
./out/sys_config.fex
./out/sys_config1024x600.fex
./out/sys_config1024x600_v1.fex
./out/sys_config1024x600mipi.fex
./out/sys_config1024x600mipi_v1.fex
./out/sys_config1080p.fex
./out/sys_config1080p_v1.fex
./out/sys_config1280x800.fex
./out/sys_config1280x800_v1.fex
./out/sys_config800x480.fex
./out/sys_config800x480_v1.fex
./out/sys_configFCU2401.fex
./out/sys_config_new_evb_lvds1024600.fex
./out/sys_partition_dump.fex
'./out/sys_partition_linux.fex' -> './out/sys_partition.fex'
./out/sys_partition_linux_128M.fex
./out/sys_partition_linux_256M.fex
./out/sys_partition_linux_mmc.fex
./out/sys_partition_private.fex
./out/toc0.fex
./out/toc1.fex
./out/usbtool.fex
./out/usbtool_test.fex
copying boot resource
copying usr resource
copying boot file
p=soc c=product state=0
p=soc c=platform state=0
p=soc c=target state=0
p=soc c=norflash state=0
p=soc c=power_sply state=0
p=soc c=card_boot state=0
p=soc c=pm_para state=0
p=soc c=card0_boot_para state=0
p=soc c=card2_boot_para state=0
p=soc c=twi_para state=0
p=soc c=uart_para state=0
p=soc c=jtag_para state=0
p=soc c=clock state=0
p=soc c=dram state=0
p=soc c=emac0 state=0
p=soc c=gmac0 state=0
p=soc c=can0 state=0
p=soc c=can0 state=1
p=soc c=twi0 state=0
p=soc c=twi1 state=0
p=soc c=twi2 state=0
p=soc c=twi3 state=0
p=soc c=twi4 state=0
p=twi2 c=rx8010 state=0
p=twi4 c=at24 state=0
p=soc c=ir0 state=0
p=soc c=uart0 state=0
p=soc c=uart0 state=1
p=soc c=uart1 state=0
p=soc c=uart1 state=1
p=soc c=uart2 state=0
p=soc c=uart2 state=1
p=soc c=uart3 state=0
p=soc c=uart3 state=1
p=soc c=uart4 state=0
p=soc c=uart4 state=1
p=soc c=uart5 state=0
p=soc c=uart5 state=1
p=soc c=uart6 state=0
p=soc c=uart6 state=1
p=soc c=uart7 state=0
p=soc c=uart7 state=1
p=soc c=spi0 state=0
p=soc c=spi1 state=0
p=soc c=spi2 state=0
p=soc c=spi3 state=0
p=soc c=rtp_para state=0
p=soc c=ctp state=0
p=soc c=ctp_list state=0
p=soc c=tkey_para state=0
p=soc c=motor_para state=0
p=soc c=nand0 state=0
p=soc c=sata state=0
p=soc c=disp state=0
p=soc c=tv0 state=0
p=soc c=tv1 state=0
p=soc c=tvd state=0
p=soc c=tvd0 state=0
p=soc c=tvd1 state=0
p=soc c=tvd2 state=0
p=soc c=tvd3 state=0
p=soc c=lcd0 state=0
p=soc c=lcd0 state=1
p=soc c=pwm0 state=0
p=soc c=pwm0 state=1
p=soc c=car_reverse state=0
p=soc c=Transmit_fm state=0
p=soc c=hdmi state=0
p=soc c=ak7601 state=0
p=soc c=csi0 state=0
p=csi0 c=csi0_dev0 state=0
p=soc c=csi1 state=0
p=csi1 c=csi1_dev0 state=0
p=soc c=tvout_para state=0
p=soc c=tvin_para state=0
p=soc c=di state=0
p=soc c=sdc0 state=0
p=soc c=sdc1 state=0
p=soc c=sdc2 state=0
p=soc c=sdc3 state=0
p=soc c=smc state=0
p=soc c=gpio_para state=0
p=soc c=usbc0 state=0
p=soc c=usbc1 state=0
p=soc c=usbc2 state=0
p=soc c=gsensor_para state=0
p=soc c=gps_para state=0
p=soc c=ril_para state=0
p=soc c=wlan state=0
p=soc c=bt state=0
p=soc c=btlpm state=0
p=soc c=gy_para state=0
p=soc c=ls_para state=0
p=soc c=compass_para state=0
p=soc c=spdif state=0
p=soc c=sndspdif state=0
p=soc c=audiohdmi state=0
p=soc c=sndhdmi state=0
p=soc c=snddaudio0 state=0
p=soc c=daudio0 state=0
p=soc c=snddaudio1 state=0
p=soc c=daudio1 state=0
p=soc c=sndcodec state=0
p=soc c=codec state=0
p=soc c=pmu0 state=0
p=soc c=charger0 state=0
p=soc c=powerkey0 state=0
p=soc c=regulator0 state=0
p=soc c=axp_gpio0 state=0
p=soc c=dvfs_table state=0
p=soc c=Vdevice state=0
p=soc c=gpu_mali400_0 state=0
Conver script to dts ok.
dtbpath=/root/workspace/allwinner/A40i/bsp/lichee/tools/pack/out/sunxi.fex
update_fdt: u-boot.fex will merage sunxi.fex, generate u-boot.fex
---0xd0, 0xd
update_fdt: num 843672 randto1k
update_fdt: num 155488 randto1k
file1_len = ce000, file2_len = 28000
dtb offset ce000,size 28000
update_fdt:genrate /root/workspace/allwinner/A40i/bsp/lichee/tools/pack/out/u-boot.fex ok
pack boot package
GetPrivateProfileSection read to end
content_count=1
packing for linux
normal
ERROR: update_mbr failed
root@kavieen-PC:~/workspace/allwinner/A40i/bsp/lichee#
点评回复 支持 反对

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2020-7-1 17:13:02 | 显示全部楼层
通过查看 pack 脚本,屏蔽掉update_mbr sys_partition.bin 4 > /dev/null 后面的   > /dev/null,得到如下的提示:
disk name=private
disk name=usr
unable to open file usr-resource.fex
dl file usr-resource.fex size too large
update_for_part_info -1
update mbr file fail
ERROR: update_mbr failed

请问这个怎么破?
点评回复 支持 反对

使用道具 举报

4

主题

14

帖子

48

积分

A40i/T3/T507/T527通行证AM335x通行证

 楼主| 发表于 2020-7-2 08:58:13 | 显示全部楼层
谢谢飞凌大佬的技术支持,已解决,请参考http://bbs.witech.com.cn/article-372-1.html
点评回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 14:11

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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