MQ-Pro overlay挂载的问题
-
sdk: tina v2.0
patch: https://github.com/mangopi-sbc/Tina_d1x_append问题:挂载
/dev/by-name/rootfs_data
找不到块设备查了相关资料,需要修改
sys_partition.fex
,看了
tina-d1-h/device/config/chips/d1-h/configs/mq_pro/sys_partition.fex
文件,没看到有UDISK
这个分区。 -
UDISK分区可能是pack打包程序生成,也可能是烧录软件生成的,也可能是运行的时候脚本生成的,我还不确定。
-
@whycan 附上pack的log
--==========-- PACK_CHIP sun20iw1p1 PACK_PLATFORM tina PACK_BOARD d1-h-mq_pro PACK_KERN PACK_DEBUG uart0 PACK_SIG none PACK_SECURE none PACK_MODE normal PACK_FUNC android PACK_PROGRAMMER none PACK_TAR_IMAGE none PACK_TOPDIR /home/lewin/tina-d1-h --==========-- No kernel param, parse it from d1-h copying tools file copying configs file storage_type value is 1 rm /home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sys_partition_nor.fex rm /home/lewin/tina-d1-h/out/d1-h-mq_pro/image/image_nor.cfg copying boot resource LZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03 copying boot file make user resource for : /home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sys_partition.fex handle partition user-res no user resource partitions APP_PART_DOWNLOAD_FILE = /home/lewin/tina-d1-h/out/d1-h-mq_pro/image/app.fex Need size of filesystem no data resource partitions don't build dtbo ... update_chip pack boot package GetPrivateProfileSection read to end content_count=3 LICHEE_REDUNDANT_ENV_SIZE config in BoardConfig.mk --mkenvimage create redundant env data!-- ---redundant env data size 0x20000--- packing for tina linux normal mbr count = 4 partitation file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sys_partition.bin mbr_name file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sunxi_mbr.fex download_name file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/dlinfo.fex mbr size = 252 mbr magic softw411 disk name=boot-resource disk name=env disk name=env-redund disk name=boot disk name=rootfs disk name=dsp0 disk name=recovery this is not a partition key update_for_part_info 0 crc 0 = 4c7bc2df crc 1 = d9c69382 crc 2 = bc706624 crc 3 = 29cd3779 gpt_head->header_crc32 = 0x892c53ba GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: a1f8 c177 GPT:env : c178 c36f GPT:env-redund : c370 c567 GPT:boot : c568 1161f GPT:rootfs : 11620 1b597 GPT:dsp0 : 1b598 1b987 GPT:recovery : 1b988 227c7 GPT:UDISK : 227c8 ffffffde update gpt file ok update mbr file ok temp = 20 mbr count = 4 total_sectors = 15269888 logic_offset = 40960 partitation file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sys_partition.bin mbr_name file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/sunxi_mbr.fex download_name file Path=/home/lewin/tina-d1-h/out/d1-h-mq_pro/image/dlinfo.fex mbr size = 252 mbr magic softw411 disk name=boot-resource disk name=env disk name=env-redund disk name=boot disk name=rootfs disk name=dsp0 disk name=recovery this is not a partition key update_for_part_info 0 crc 0 = 4c7bc2df crc 1 = d9c69382 crc 2 = bc706624 crc 3 = 29cd3779 gpt_head->header_crc32 = 0x1328fa28 GPT----part num 8--- gpt_entry: 128 gpt_header: 92 GPT:boot-resource: a1f8 c177 GPT:env : c178 c36f GPT:env-redund : c370 c567 GPT:boot : c568 1161f GPT:rootfs : 11620 1b597 GPT:dsp0 : 1b598 1b987 GPT:recovery : 1b988 227c7 GPT:UDISK : 227c8 e8ffde update gpt file ok update mbr file ok ==================================== show "sys_partition_for_dragon.fex" message ------------------------------------ [mbr] mbr_size : 252 Kbyte ------------------------------------ partition_name : boot-resource partition_size : 8064 downloadfile : boot-resource.fex boot-resource.fex size : 3.0M byte ------------------------------------ partition_name : env partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : env-redund partition_size : 504 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : boot partition_size : 20664 downloadfile : boot.fex boot.fex -> /home/lewin/tina-d1-h/out/d1-h-mq_pro/boot.img boot.img size : 5.0M byte ------------------------------------ partition_name : rootfs partition_size : 40824 downloadfile : rootfs.fex rootfs.fex -> /home/lewin/tina-d1-h/out/d1-h-mq_pro/rootfs.img rootfs.img size : 17M byte ------------------------------------ partition_name : dsp0 partition_size : 1008 downloadfile : dsp0.fex dsp0.fex size : 249K byte ------------------------------------ partition_name : recovery partition_size : 28224 ------------------------------------ /home/lewin/tina-d1-h/out/host/bin/ /home/lewin/tina-d1-h/out/d1-h-mq_pro/image Begin Parse sys_partion.fex Add partion boot-resource.fex BOOT-RESOURCE_FEX Add partion very boot-resource.fex BOOT-RESOURCE_FEX FilePath: boot-resource.fex FileLength=2f8c00Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion env.fex ENV_FEX000000000 Add partion very env.fex ENV_FEX000000000 FilePath: env.fex FileLength=20000Add partion boot.fex BOOT_FEX00000000 Add partion very boot.fex BOOT_FEX00000000 FilePath: boot.fex FileLength=4f4800Add partion rootfs.fex ROOTFS_FEX000000 Add partion very rootfs.fex ROOTFS_FEX000000 FilePath: rootfs.fex FileLength=1060000Add partion dsp0.fex DSP0_FEX00000000 Add partion very dsp0.fex DSP0_FEX00000000 FilePath: dsp0.fex FileLength=3e38cBuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is for nand/emmc---------- ----------image is at---------- /home/lewin/tina-d1-h/out/d1-h-mq_pro/tina_d1-h-mq_pro_uart0.img pack finish
-
此回复已被删除! -
原因:
打上patch https://github.com/mangopi-sbc/Tina_d1x_append, lunch选择mq pro的板卡进行编译,tina/target/allwinner/<方案名>/base-files/etc/config/fstab
这个文件并没有正常,导致无法成功将UDISK分区挂载到/overlay -
@lbuque 大哥,这个pack要怎么打,不会啊,全部下载放到SDK根目录下吗
-
大佬,我用的是D1H,和您这个是一个问题吗?
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号