求教使用百问网v851s的sdk打包问题!
-
这是使用晕哥网盘提供的sdk编译的固件烧录后的分区。可以正常TF卡启动。显示分区是GUID。。
这是拉取最新853sdk后打上柚木大佬提供的补丁编译的固件烧录后的分区,不能正常启动,显示分区是MBR。。
求教如何改变打包分区格式为GUID? -
@whycanservice2 顶起来,有大佬指点一下嘛?!
-
@whycanservice2 请发送您使用的 pack 命令的日志,它可能会失败。 另请注意,您需要“pack -d”来打包供微型 SD 卡使用的映像。
-
@kanken6174 您好大佬,使用pack -d命令打包确实失败了 日志如下:
lovexulu@lovexulu:~/tina-v853-open$ pack -d /home/lovexulu/tina-v853-open/build/pack -c sun8iw21p1 -i v851s -p openwrt -b lizard -k linux-4.9 -d card0 -v none -m normal -w none -n default INFO: /home/lovexulu/tina-v853-open/out/v851s/common/keys copying tools file copying configs file copying product configs file /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/aultls32.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/aultools.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package_nor.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardscript.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardscript_secure.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardtool.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/diskfs.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/dragon_toc.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/env_burn.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/env.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/esm.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_crashdump.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_linux.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_nor.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/jffs2.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/overlay.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/split_xxxx.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sunxi.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_config.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_dump.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_nor.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_private.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc0.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc0_ft.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc1.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool_crash.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool_test.fex copying boot resource copying boot file '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_nand_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_nand.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_sdcard_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_sdcard.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_spinor_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/fes1_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/fes1.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/optee_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/optee_sun8iw21p1-monitor.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-spinor-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-spinor-secure-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor-secure.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_nand_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_nand.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_sdcard_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_sdcard.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_spinor_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/fes1_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/fes1.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/optee_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/optee_sun8iw21p1-monitor.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-spinor-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-spinor-secure-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor-secure.fex' copying boot file 2.0 '/home/lovexulu/tina-v853-open/out/v851s/lizard/openwrt/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' copying additional files ERROR: uart_switch: sun8iw21p1 not configured in card_debug_pin/card_debug_string! lovexulu@lovexulu:~/tina-v853-open$
使用pack命令 打包日志如下:
lovexulu@lovexulu:~/tina-v853-open$ pack /home/lovexulu/tina-v853-open/build/pack -c sun8iw21p1 -i v851s -p openwrt -b lizard -k linux-4.9 -d uart0 -v none -m normal -w none -n default INFO: /home/lovexulu/tina-v853-open/out/v851s/common/keys copying tools file copying configs file copying product configs file /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/aultls32.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/aultools.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot_package_nor.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardscript.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardscript_secure.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/cardtool.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/diskfs.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/dragon_toc.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/env_burn.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/env.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/esm.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_crashdump.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_linux.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/image_nor.cfg /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/jffs2.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/overlay.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/split_xxxx.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sunxi.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_config.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_dump.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_nor.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition_private.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc0.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc0_ft.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/toc1.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool_crash.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool.fex /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/usbtool_test.fex copying boot resource copying boot file '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_nand_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_nand.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_sdcard_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_sdcard.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/boot0_spinor_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/fes1_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/fes1.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/optee_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/optee_sun8iw21p1-monitor.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-spinor-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s/bin/u-boot-spinor-secure-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor-secure.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_nand_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_nand.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_sdcard_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_sdcard.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/boot0_spinor_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/boot0_spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/fes1_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/fes1.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/optee_sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/optee_sun8iw21p1-monitor.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/optee.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-spinor-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor.fex' '/home/lovexulu/tina-v853-open/device/config/chips/v851s//bin/u-boot-spinor-secure-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot-spinor-secure.fex' copying boot file 2.0 '/home/lovexulu/tina-v853-open/out/v851s/lizard/openwrt/u-boot-sun8iw21p1.bin' -> '/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/u-boot.fex' copying additional files handle partition_size sunxi_dtb create p=soc c=product state=0 p=soc c=power_sply state=0 p=soc c=target state=0 p=soc c=card_boot state=0 p=soc c=card0_boot_para state=0 p=soc c=card2_boot_para state=0 p=soc c=spinor_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=dram state=0 Conver script to dts ok. update optee commit : 77d9f87226 sboot file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sboot.bin script file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_config.bin update:unable to open sboot file script update sboot ok do not set LINUX_DTBO_FILE pack boot package content_count=3 2:LICHEE_REDUNDANT_ENV_SIZE: 16150 块 16150 块 packing for linux normal make user resource for : sys_partition.fex handle partition user-res no user resource partitions APP_PART_DOWNLOAD_FILE = /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/app.fex Need size of filesystem no data resource partitions ==================================== show sys_partition.fex message ------------------------------------ [mbr] mbr_size : 4096 Kbyte ------------------------------------ partition_name : boot-res partition_size : 1024 downloadfile : boot-resource.fex boot-resource.fex size : 80K byte ------------------------------------ partition_name : env partition_size : 512 downloadfile : env.fex env.fex size : 128K byte ------------------------------------ partition_name : boot partition_size : 25200 downloadfile : boot.fex boot.fex -> /home/lovexulu/tina-v853-open/out/v851s/lizard/openwrt/boot.img boot.img size : 7.6M byte ------------------------------------ partition_name : rootfs partition_size : 102400 downloadfile : rootfs.fex rootfs.fex -> /home/lovexulu/tina-v853-open/out/v851s/lizard/openwrt/rootfs.img rootfs.img size : 29M byte ------------------------------------ partition_name : UDISK ------------------------------------ commit : f7388902e9-dirty mbr count = 4 partitation file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition.bin mbr_name file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sunxi_mbr.fex download_name file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/dlinfo.fex mbr size = 4096 mbr magic softw411 disk name=boot-res disk name=env disk name=boot disk name=rootfs disk name=UDISK this is not a partition key update_for_part_info 0 crc 0 = f8c0f1be crc 1 = 6d7da0e3 crc 2 = 8cb5545 crc 3 = 9d760418 MBR addr = 0x2000,logic_offset = 0xa000 GPT:boot-res : c000 c3ff MBR addr = 0x2400,logic_offset = 0xa000 GPT:env : c400 c5ff MBR addr = 0x2600,logic_offset = 0xa000 GPT:boot : c600 1286f MBR addr = 0x8870,logic_offset = 0xa000 GPT:rootfs : 12870 2b86f MBR addr = 0x21870,logic_offset = 0xa000 GPT:UDISK : 2b870 ffffffde gpt_head->header_crc32 = 0x825dc7c2 GPT----part num 5--- gpt_entry: 128 gpt_header: 92 GPT:boot-res : c000 c3ff GPT:env : c400 c5ff GPT:boot : c600 1286f GPT:rootfs : 12870 2b86f GPT:UDISK : 2b870 ffffffde update gpt file ok update mbr file ok commit : f7388902e9-dirty temp = 20 mbr count = 4 total_sectors = 15269888 logic_offset = 20 media = 0 partitation file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sys_partition.bin mbr_name file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/sunxi_mbr.fex download_name file Path=/home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out/dlinfo.fex mbr size = 4096 mbr magic softw411 disk name=boot-res disk name=env disk name=boot disk name=rootfs disk name=UDISK this is not a partition key update_for_part_info 0 crc 0 = f8c0f1be crc 1 = 6d7da0e3 crc 2 = 8cb5545 crc 3 = 9d760418 MBR addr = 0x2000,logic_offset = 0x14 GPT:boot-res : 2014 2413 MBR addr = 0x2400,logic_offset = 0x14 GPT:env : 2414 2613 MBR addr = 0x2600,logic_offset = 0x14 GPT:boot : 2614 8883 MBR addr = 0x8870,logic_offset = 0x14 GPT:rootfs : 8884 21883 MBR addr = 0x21870,logic_offset = 0x14 GPT:UDISK : 21884 e8ffde gpt_head->header_crc32 = 0x3727b79d GPT----part num 5--- gpt_entry: 128 gpt_header: 92 GPT:boot-res : 2014 2413 GPT:env : 2414 2613 GPT:boot : 2614 8883 GPT:rootfs : 8884 21883 GPT:UDISK : 21884 e8ffde update gpt file ok update mbr file ok /home/lovexulu/tina-v853-open/tools/pack/pctools/linux/eDragonEx/ /home/lovexulu/tina-v853-open/out/v851s/lizard/pack_out 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=14000Add 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=781000Add partion rootfs.fex ROOTFS_FEX000000 Add partion very rootfs.fex ROOTFS_FEX000000 FilePath: rootfs.fex FileLength=1c60000BuildImg 0 Dragon execute image.cfg SUCCESS ! ----------image is at---------- 39M /home/lovexulu/tina-v853-open/out/v851s/lizard/openwrt/v851s_linux_lizard_uart0.img pack finish lovexulu@lovexulu:~/tina-v853-open$
显示可以打包成功,请问 报错是什么原因?
-
@whycanservice2 经报错提示 修改tina-v853-open/device/config/common/debug/目录下的两个文件,添加sun8iw21p1 引脚定义,如下:
card_debug_pinsun8iw21p1 port:PF02<4><1><1><default> port:PF04<4><1><1><default> 0 port:PF00<4><1><1><default> port:PF05<4><1><1><default> port:PF03<4><1><1><default> port:PF01<4><1><1><default> 1
card_debug_string
sun8iw21p1 uart_para uart_debug_port uart_debug_tx uart_debug_rx uart0 uart0_used uart0_port uart0_tx uart0_rx uart1 jtag_para jtag_ms jtag_ck jtag_do jtag_di sdc0 sdc0_used
之后使用pack -d 生成v851s_linux_lizard_card0.img 的固件,烧录之后挂载到linux用磁盘工具查看 依旧是 mbr分区。如1楼图片所示 一样。
插入板子 上电启动 结果 无引导输出,无uboot输出 之后进入内核开始打印logo 最后卡在以下位置。跟之前烧录 pack命令打包出来的固件 一样的位置,个人感觉 是打包分区不是GUID的问题。但找不到在哪修改。[ 4.747967] List of all partitions: [ 4.752029] b300 248064 mmcblk0 driver: mmcblk [ 4.758000] b301 512 mmcblk0p1 a0085546-4166-744a-a353-fca9272b8e45 [ 4.766525] b302 256 mmcblk0p2 a0085546-4166-744a-a353-fca9272b8e46 [ 4.775011] b303 6144 mmcblk0p3 a0085546-4166-744a-a353-fca9272b8e47 [ 4.783424] b304 25600 mmcblk0p4 a0085546-4166-744a-a353-fca9272b8e48 [ 4.791821] b305 51200 mmcblk0p5 a0085546-4166-744a-a353-fca9272b8e49 [ 4.800215] b306 139759 mmcblk0p6 a0085546-4166-744a-a353-fca9272b8e4a [ 4.808599] No filesystem could mount root, tried: ext3 ext2 ext4 squashfs vfat msdos [ 4.817586] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,4) [ 4.827030] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.191 #1 [ 4.833551] Hardware name: sun8iw21 [ 4.837482] [<c010d5a0>] (unwind_backtrace) from [<c010a694>] (show_stack+0x10/0x14) [ 4.846153] [<c010a694>] (show_stack) from [<c017050c>] (panic+0xac/0x2b8) [ 4.853853] [<c017050c>] (panic) from [<c09012cc>] (mount_block_root+0x258/0x300) [ 4.862233] [<c09012cc>] (mount_block_root) from [<c0901500>] (prepare_namespace+0x118/0x178) [ 4.871777] [<c0901500>] (prepare_namespace) from [<c0900eb4>] (kernel_init_freeable+0x144/0x178) [ 4.881708] [<c0900eb4>] (kernel_init_freeable) from [<c06807c4>] (kernel_init+0x8/0x118) [ 4.890863] [<c06807c4>] (kernel_init) from [<c0106e08>] (ret_from_fork+0x14/0x2c) [ 4.899335] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,4) [ 4.909645] sunxi dump enabled [ 4.913055] dump regs done [ 4.916112] flush cache done [ 4.919350] crashdump enter
-
@whycanservice2 可以拉取docker镜像使用docker的sdk吗
-
@yuzukitsuru 使用了 docker镜像 编译出来的固件也是这样的。无法启动,分区不是GUID
-
@whycanservice2
[ 4.808599] No filesystem could mount root, tried: ext3 ext2 ext4 squashfs vfat msdos
您是否使用至少一个支持的文件系统编译了内核? (“ Squashfs”仅读取,并且“ Ext4”是可以写的)。 您确定自己从正确的制作图像中闪烁了吗? 您使用什么工具来刷新微型SD?
从个人角度来看,我的工作流就是这样:
- 编译Tina Linux
- 使用
Pack -d
创建Intial Micro SD图像 - 使用Yuzukitsuru的Openixcard实用程序来创建可闪烁的图像,该图像可以在没有特殊工具的情况下闪烁到Micro SD卡
- 与Balena Etcher的闪光灯
我知道这对我有用。
-
@kanken6174 经仔细查看,pack -d命令生成的是一个用于sd卡座式的debug接口固件。并非用于启动。我编译了Tina linux 使用pack命令可以得到一个固件,修改线刷文件后使用线刷可以启动进入控制台。线刷后取出sd卡挂载,用磁盘分析查看是 GUID分区格式的。但是用PhoenixCard直接烧录sd卡得到的是MBR分区格式的。
-
看一下
device/config/chips/v851s/configs/xxx/sys_config.fex
是不是3,如果是3改为-1试试看,3是nand -
@awwwwa 这个尝试过 5和1 均无效,另一个sdk 这里配置的是5,且手册种指明 sd卡 nand emmc 用同一种img都是可以的。
-
@whycanservice2 顶起来 问题还未解决。有大佬指点一下啥情况嘛?
-
@whycanservice2 最新进展情况 发现 pack 脚本文件导出的最终 image.cfg 缺少 gpt配置fex文件?!
-
大佬可否留个联系方式?我也有跟你一模一样的情况
-
@zeeking 至今没有解决。。。。线刷了
-
拉取SDK看了下,他默认配置是MBR格式,针对 NAND 设备。使用 PhoenixSuit 烧写的时候会自动识别存储器来判断使用GPT分区表还是MBR分区表。但是 PhoenixCard 刷写的时候无法识别到存储器,所以需要固件配置 GPT 或者 MBR,配置文件为
image.cfg
,如果没有配置 GPT 固件使用 MBR 格式固件,会导致PhoenixCard 将 boot1被写入 8K 偏移位,8K偏移位置正好是 GPT 分区表的位置,导致覆盖了 GPT 分区表,正确的操作应该是写入 128K 偏移,但是由于 SDK 内配置为MBR固件,而且PhoenixCard 无法读取目标设备是何种存储设备,所以PhoenixCard 默认写入 8K 偏移导致启动失败。修改方法如下
编辑文件:
device/config/chips/v851s/configs/default/image.cfg
加入一行,使打包成为 GPT 格式{filename = "sunxi_gpt.fex", maintype = "12345678", subtype = "1234567890___GPT",},
-
@awwwwa
可以参考 编译步骤
https://dongshanpi.com/YuzukiHD-Lizard/07-TinaSDK_DevelopmentGuide/
重新 拉取 SDK Lizard 扩展补丁包
覆盖
-
@baiwen 感谢回复,实际操作我参考了教程,也下载了论坛上各路大神编译好的固件烧录到tf卡,结果均如同1楼所示,并非编译环境配置问题,也参考手册修改了sys_config.fex,结果均无效,后来发现了image.cfg 缺少gpt配置文件,修改此处确实可以识别gpt,但不知为何,烧录的卡均为量产卡,即使是在使用PhoenixCard烧录选择启动卡的前提下,烧录出来的卡 依然是“量产卡“!启动日志与烧录量产卡一样!。还追踪到是pack脚本文件中并未处理storage_type=5的情况,但这个脚本 十分复杂不知道从哪下手修改。还请大佬多费点心帮忙看一下该如何处理。十分感谢!
-
@awwwwa 之前尝试修改过此文件,但结果烧录出来的卡始终是量产卡(烧录时选择启动卡烧录之后依然是量产卡)。。。。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号