This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] SK-AM62-LP:SD 卡启动内核崩溃

Guru**** 2815985 points

Other Parts Discussed in Thread: SK-AM62-LP, TPS65219

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1316687/sk-am62-lp-sd-card-boot-kernel-crashes

器件型号:SK-AM62-LP
主题中讨论的其他器件: TPS65219

您好!

所以我能够在相关帖子中的 saveenv 问题之外取得一些进展。 我可以手动运行"setenv mmcdev 1"、然后运行 flashall.sh 脚本以刷写 SD 卡。 然后、我可以重新启动并再次手动将 mmcdev 设置为1、然后运行引导命令以加载内核。

但是、内核似乎在启动期间崩溃、Android 无法成功启动。 一段时间后、AM62重新启动并再次通过 u-boot 运行:

U-Boot 2023.04-dirty (Jan 23 2024 - 08:33:50 -0600)

SoC:   AM62X SR1.0 HS-FS
Model: Texas Instruments AM62x LP SK
EEPROM not available at 80, trying to read at 81
Board: AM62-LP-SKEVM rev E2
DRAM:  2 GiB
Core:  78 devices, 30 uclasses, devicetree: separate
NAND:  0 MiB
MMC:   mmc@fa10000: 0, mmc@fa00000: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Loading Environment from nowhere... OK
In:    serial@2800000
Out:   serial@2800000
Err:   serial@2800000
Net:   eth0: ethernet@8000000port@1
Hit any key to stop autoboot:  0 
Verify GPT: error!
Broken MMC partition scheme
Running Fastboot...
generic_phy_get_bulk : no phys property
=> mmcdev 1
Unknown command 'mmcdev' - try 'help'
=> setenv mmcdev 1
=> boot
Verify GPT: success!
Loading Android boot partition...
switch to partitions #0, OK
mmc1 is current device
misc partition number:0x4
ANDROID: Attempting slot b, tries remaining 7
ANDROID: Booting slot: b
A/B cmdline addition: androidboot.slot_suffix=_b
Running without AVB...

MMC read: dev # 1, block # 110592, count 81920 ... 81920 blocks read: OK
Preparing FDT...
  Reading DTB for am62x_lp_skevm...
Working FDT set to 88000000

MMC read: dev # 1, block # 208896, count 16384 ... 16384 blocks read: OK
  Applying DTBOs...
Running Android...
## Booting Android Image at 0x82000000 ...
Kernel load addr 0x92000000 size 19076 KiB
Kernel command line: no_console_suspend console=ttyS2,115200 printk.devkmsg=on androidboot.boot_devices=bus@f0000/fa00000.mmc init=/init cma=512M firmware_class.path=/vendor/firmware androidboot.hardware=am62x 8250.nr_uarts=10 mem_sleep_default=deep buildvariant=userdebug
RAM disk load addr 0x832a1800 size 14201 KiB
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
Working FDT set to 88000000
   Uncompressing Kernel Image
   Loading Ramdisk to 8f221000, end 8ffff10a ... OK
ERROR: reserving fdt memory region failed (addr=ff700000 size=8ca000 flags=4)
   Loading Device Tree to 000000008f20f000, end 000000008f220036 ... OK
Working FDT set to 8f20f000

Starting kernel ...

I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
I/TC: Reserved shared memory is enabled
I/TC: Dynamic shared memory is enabled
I/TC: Normal World virtualization support is disabled
I/TC: Asynchronous notifications are disabled

U-Boot SPL 2023.04-dirty (Jan 23 2024 - 08:31:14 -0600)
SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
SPL initial stack usage: 13376 bytes
Trying to boot from MMC2
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Authentication passed
Starting ATF on ARM64 core...

您可以在第69行中看到 u-boot 再次运行前的最后一行内核输出。 对内核不能成功运行有什么想法吗?

穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!  

    这里是否有更新或 ETA?

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    Munan、

    Android 支持的引导和闪存模式是 eMMC。

    https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_01_00/docs/devices/AM62X/android/Release_Specific_Release_Notes.html#release-09-01-00 

    如果是第一次刷写,请确保 SD 卡为首次引导至引导提示符做好准备。  

    1."验证 GPT:错误!" >>看起来奇怪。 FAT 引导加载程序分区的格式是否正确?

    2.在 uboot 提示符"env default -f -a "处重置引导参数 ,然后执行这些步骤。  https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_01_00/docs/devices/AM62X/android/Application_Notes_Android_Bootloader_SD_Card.html 

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Praneeth:

    在 SDK 中、我们有一份应用手册介绍了如何支持基于 SD 卡的启动和闪存。 flashall.sh 脚本支持格式化 SD 卡以运行 SD 卡、我准确地遵循该脚本来生成 SD 卡用于 Android 闪存。  

    此外,如果您看一下我的相关问题,env default -f -a 和 saveenv 命令无法成功执行以设置分区。

    这个问题具体是为什么内核在从 SD 卡运行时崩溃? 如何确定导致崩溃的原因?

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    SD 卡仅用于进入引导加载程序阶段、并将必要的 Android 映像刷写到 eMMC。 切换设置完成后、Android 引导预期通过 eMMC 流、而不是 SD。  

    您在此处遇到刷写步骤问题吗: https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_01_00/docs/android/Overview_Flashing step.html#step-5-flashing-instructions ?  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    您好!

    请参阅文档中的这一部分、该部分专门介绍了如何从 SD 卡启动 Android 文件系统:

    https://software-dl.ti.com/processor-sdk-android/esd/AM62X/09_00_00/docs/devices/AM62X/android/Application_Notes_Android_SD_CARD.html

    我知道这不一定是开包即用支持的内容、但另外请注意、直接从 SDK 支持的内容非常重要。 我正在为一位需要从 MMC1而不是 MMC0引导的客户提供支持、并且我正在使用 SK-AM62-LP 作为需要进行哪些更改的模型。 我只问这个问题、因为我们的文档中将它描述为您可以执行的操作。 因此、请尝试这样做并告诉我它是否正常工作、或告诉我如何在此处确定问题。 此问题已有一周多未解决、我不需要您告诉我 SDK 文档中包含哪些内容。

    如果您无法回答此问题、请向可能的人咨询。

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    这听起来不错。  

    Android OS 版本从9.0到9.1进行了重大迁移。 对于任何非标准配置的此类应用手册、应针对所有适用的平台再次进行调查。

    工程师正在审查62LP 和其他器件当前基准所需的内容、并将作出响应。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    很抱歉耽误你的时间。

    我可以确认 SDK 9.1版本正式支持从 SD 卡启动 Android。
    我可以在 SDcard 上使用9.1引导 AM62x LP SK EVM:

    U-Boot SPL 2023.04 (Sep 27 2023 - 11:21:33 +0200)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
    SPL initial stack usage: 13392 bytes
    Trying to boot from MMC2
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Starting ATF on ARM64 core...
    
    NOTICE:  BL3rB͕҂rrrjUQ BL31: Built : 10:04:25, Feb  2 2024
    
    U-Boot SPL 2023.04-00003-g8bb068e71ae (Feb 02 2024 - 10:04:56 +0000)
    SYSFW ABI: 3.1 (firmware rev 0x0009 '9.0.5--v09.00.05 (Kool Koala)')
    Trying to boot from MMC2
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    Warning: Detected image signing certificate on GP device. Skipping certificate to prevent boot failure. This will fail if the image was also encrypted
    
    
    U-Boot 2023.04-00003-g8bb068e71ae (Feb 02 2024 - 10:04:56 +0000)
    
    SoC:   AM62X SR1.0 GP
    Model: Texas Instruments AM62x LP SK
    EEPROM not available at 80, trying to read at 81
    Board: AM62-LP-SKEVM rev E1
    DRAM:  2 GiB
    Core:  79 devices, 31 uclasses, devicetree: separate
    NAND:  0 MiB
    MMC:   mmc@fa10000: 0, mmc@fa00000: 1
    Loading Environment from MMC... OK
    In:    serial@2800000
    Out:   serial@2800000
    Err:   serial@2800000
    Net:   eth0: ethernet@8000000port@1
    Hit any key to stop autoboot:  0
    Verify GPT: success!
    Loading Android boot partition...
    switch to partitions #0, OK
    mmc1 is current device
    misc partition number:0x3
    ANDROID: Invalid CRC-32 (expected 80e3231d, found ffffffff),re-initializing A/B metadata.
    ANDROID: Attempting slot a, tries remaining 7
    ANDROID: Booting slot: a
    A/B cmdline addition: androidboot.slot_suffix=_a
    Running without AVB...
    
    MMC read: dev # 1, block # 29696, count 81920 ... 81920 blocks read: OK
    
    MMC read: dev # 1, block # 193536, count 65536 ... 65536 blocks read: OK
    Preparing FDT...
      Reading DTB for am62x_lp_skevm...
    Working FDT set to 88000000
    
    MMC read: dev # 1, block # 357376, count 16384 ... 16384 blocks read: OK
      Applying DTBOs...
    Running Android...
    ## Booting Android Image at 0x82000000 ...
    Kernel load addr 0x92000000 size 19841 KiB
    Kernel extra command line: console=ttyS2,115200 cma=512M 8250.nr_uarts=10 printk.devkmsg=on init=/init firmware_class.path=/vendor/firmware mem_sleep_default=deep bootconfig
    RAM disk load addr 0xe9000000 size 16812 KiB
    ## Flattened Device Tree blob at 88000000
       Booting using the fdt blob at 0x88000000
    Working FDT set to 88000000
       Uncompressing Kernel Image
       Loading Ramdisk to 8ef95000, end 8ffffdf5 ... OK
    ERROR: reserving fdt memory region failed (addr=ff700000 size=8ca000 flags=4)
       Loading Device Tree to 000000008ef83000, end 000000008ef94705 ... OK
    Working FDT set to 8ef83000
    
    Starting kernel ...
    
    [    0.000000][    T0] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000][    T0] Linux version 6.1.43-android14-11-maybe-dirty (build-user@build-host) (Android (10087095, +pgo, +bolt, +lto, -mlgo, based on r487747c) clang version 17.0.2 (android.googlesource.com/.../llvm-project d9f89f4d16663d5012e5c09495f3b30ece3d2362), LLD 17.0.2) #1 SMP PREEMPT Thu Jan  1 00:00:00 UTC 1970
    [    0.000000][    T0] Machine model: Texas Instruments AM62x LP SK
    [    0.000000][    T0] Stack Depot is disabled
    [    0.000000][    T0] Enabling dynamic shadow call stack
    [    0.000000][    T0] efi: UEFI not found.
    [    0.000000][    T0] Reserved memory: bypass linux,cma node, using cmdline CMA params instead
    

    确保:

    1. 应用了记录的 U-Boot 差异(将 CONFIG_FASTBOOT_FLASH_MMC_DEV 切换到1)
    2. eMMC 引导分区被擦除(使用--sdcard 选项运行 flashall.sh 时记录的步骤)

    我知道您尝试在较旧版本(09.00.00)上运行此功能、但我想首先确认在最新版本(09.01.00)上运行此功能是有效的。

    下一步我将查看9.0

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    我确认我可以在9.0版本上重现报告的问题。

    我没有任何 ETA 来进行修复、但我正在调查这个问题。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    我们已经确定了问题。

    应在 device/ti/am62x 中应用以下补丁来解决该问题:

    commit 337223e9fe4777d603a6c9c7830a6a6947a01d72 (HEAD -> mkorpershoek/sdcard-boot)
    Author: Mattijs Korpershoek <mkorpershoek@baylibre.com>
    Date:   Tue Feb 6 10:01:29 2024 +0100
    
        Boardconfig: add tps65219 to vendor ramdisk modules
        
        On AM62X LP SK, when booting from SD card (TARGET_SDCARD_BOOT=true),
        the system panics early because we can't mount early partitions:
        
        [   14.564779][   T48] gpio-regulator regulator-4: Failed to register regulator: -517
        [   14.573021][   T50] platform regulator-4: deferred probe pending
        [   14.708155][    T1] init: Wait for partitions returned after 10010ms
        [   14.714568][    T1] init: bool
        android::init::BlockDevInitializer::InitDevices(std::set<std::string>):
        partition(s) not found after polling timeout: metadata, super
        [   14.729555][    T1] init: Failed to mount required partitions early
        
        The regulator-4 gets deferred because the vin-supply (ldo1_reg) is not
        available.  In fact, ldo1_reg is provided by the ti,tps65219 pmic driver
        module and that module is not shipped in the vendor ramdisk.
        
        Add the tps65219 module and its dependencies to the vendor ramdisk.
        This fixes booting from SD Card on AM62x LP SK EVM.
        
        Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
    
    diff --git a/BoardConfig.mk b/BoardConfig.mk
    index 60756cb6d646..5604c32db022 100644
    --- a/BoardConfig.mk
    +++ b/BoardConfig.mk
    @@ -262,6 +262,9 @@ BOARD_VENDOR_RAMDISK_KERNEL_MODULES += \
             device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/tidss.ko \
             device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/sii902x.ko \
             device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/display-connector.ko \
    -        device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/panel-simple.ko
    +        device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/panel-simple.ko \
    +        device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/tps65219.ko \
    +        device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/tps65219-pwrbutton.ko \
    +        device/ti/am62x-kernel/kernel/$(TARGET_KERNEL_USE)/tps65219-regulator.ko
     
     BOARD_VENDOR_RAMDISK_KERNEL_MODULES_LOAD +=  $(BOARD_VENDOR_RAMDISK_KERNEL_MODULES)
    


    COMMIT 消息包含一些详细信息、但这里是如何调试的、以防您需要对类似内容进行故障排除。

    1.将此修补程序向后移植以在控制台中具有较早的日志: https://git.ti.com/cgit/android/device-ti-am62x/commit/?h=d-android14-release&id=3d67a037adc75a314a7cdf8cf9c64d9cbfc8a9f9

    2.添加早期控制台日志记录,具有以下差异:

    diff --git a/BoardConfig.mk b/BoardConfig.mk
    index 306e6024e681..143c487c7f08 100644
    --- a/BoardConfig.mk
    +++ b/BoardConfig.mk
    @@ -118,6 +118,7 @@ BOARD_KERNEL_CMDLINE += cma=512M
     BOARD_KERNEL_CMDLINE += firmware_class.path=/vendor/firmware
     BOARD_KERNEL_CMDLINE += androidboot.hardware=am62x 8250.nr_uarts=10
     BOARD_KERNEL_CMDLINE += mem_sleep_default=deep
    +BOARD_KERNEL_CMDLINE += earlyprintk=serial,0x2800000,115200
     
     DEVICE_MANIFEST_FILE := device/ti/am62x/manifest.xml
    

    3.观察以下错误:

    [   14.564779][   T48] gpio-regulator regulator-4: Failed to register regulator: -517
    [   14.573021][   T50] platform regulator-4: deferred probe pending
    [   14.708155][    T1] init: Wait for partitions returned after 10010ms
    [   14.714568][    T1] init: bool android::init::BlockDevInitializer::InitDevices(std::set<std::string>): partition(s) not found after polling timeout: metadata, super
    [   14.729555][    T1] init: Failed to mount required partitions early ...

    4.我们在这里看到我们得到了-517、即-ePROBE_DEFPIT。 在 common/arch/arm64/boot/dts/ti/k3-am62-lp-sk.dts 中、我们可以看到稳压器4标记为  vddshv_sDIO 并由 SD 卡控制器节点使用:

    &sdhci1 {
    	vmmc-supply = <&vdd_mmc1>;
    	vqmmc-supply = <&vddshv_sdio>;
    };
    
    	vddshv_sdio: regulator-4 {
    		compatible = "regulator-gpio";
    		regulator-name = "vddshv_sdio";
    		pinctrl-names = "default";
    		pinctrl-0 = <&vddshv_sdio_pins_default>;
    		regulator-min-microvolt = <1800000>;
    		regulator-max-microvolt = <3300000>;
    		regulator-boot-on;
    		vin-supply = <&ldo1_reg>;
    		gpios = <&main_gpio0 31 GPIO_ACTIVE_HIGH>;
    		states = <1800000 0x0>,
    			 <3300000 0x1>;
    	};
    


    5.  VIN-SUPPLY =<&ldo1_reg>;与此相关。 ldo1_reg 由 PMIC 提供(tps65219:PMIC@30 { compatible ="ti, tps65219";),并且 PMIC 驱动程序不是供应商 ramdisk 的一部分,这就解释了我们为什么要观察-EPROBE_DEPer

    注意: 由于 使用了以下补丁、SDK 9.1未发现此问题:
    https://git.ti.com/cgit/android/device-ti-am62x/commit/?h=d-android14-release&id=55df06501d38f85122a19dd845da30322f4bbf30



    我希望这能解决您的问题。
    马蒂斯

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Mattijs:

    感谢您的更新。 我跟客户跟进、希望这能为他们解决问题!

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    感谢您共享启动日志。

    日志的相关部分是:

    [   13.193874][    T1] init: [libfs_mgr]Invalid ext4 superblock on '/dev/block/platform/bus@f0000/fa00000.mmc/by-name/metadata'
    [   13.205714][    T1] init: [libfs_mgr]mount_with_alternatives(): skipping mount due to invalid magic, mountpoint=/metadata blk_dev=/dev/block/mmcblk1p12 rec[2].fs_type=ext4
    [   13.222243][    T1] init: [libfs_mgr]Failed to mount an un-encryptable or wiped partition on /dev/block/platform/bus@f0000/fa00000.mmc/by-name/metadata at /metadata options: discard: Invalid argument
    [...]
    [   13.679769][    T1] selinux: SELinux:  setxattr failed: /metadata:  Read-only file system
    [   13.692137][    T1] init: Command 'mkdir /metadata/vold' action=post-fs (/system/etc/init/hw/init.rc:608) took 0ms and failed: mkdir() failed on /metadata/vold: Read-only file system
    

    事实上,元数据是 Android 的一个非常重要的分区。  

    您是否可以尝试反向移植以下 U-Boot 修补程序(它告知 fastboot 元数据是 ext4分区):
    https://git.ti.com/cgit/ti-u-boot/ti-u-boot/commit/?h=ti-u-boot-2023.04&id=102f008f7614f514522893098a37c6b3b0ca68f8

    注意:这是一个 U-Boot 环境补丁、因此请确保在应用更改后将环境设置为默认值(使用=> env 默认-a -f;saveenv)。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:


    如果此问题已解决、您能否将其标记为该问题?

    谢谢!
    马蒂斯

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嘿 Mattijs、

    很抱歉、我不得不离开这一步、我的目标是今天或明天测试这一步以进行确认。

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    是的、已经有多份关于元数据格式化失败的报告:
    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1316687/sk-am62-lp-sd-card-boot-kernel-crashes

    https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1336240/sk-am62b-p1-sk-am62b-p1-stuck-at-starting-kernel

    此问题将被修复为9.2。
    使其正确格式化的解决方法是在 flashall.sh 之后运行以下命令:

    λ /mnt/work/ti/src/ti-android-09.01.00/ source build/envsetup.sh  
    λ /mnt/work/ti/src/ti-android-09.01.00/ lunch am62x-userdebug
    λ /mnt/work/ti/src/ti-android-09.01.00/ cd out/target/product/am62x
    
    
    λ /mnt/work/ti/src/ti-android-09.01.00/out/target/product/am62x/ fastboot format metadata
    mke2fs 1.46.6 (1-Feb-2023)
    Creating filesystem with 4096 4k blocks and 4096 inodes
    
    Allocating group tables: done                            
    Writing inode tables: done                            
    Creating journal (1024 blocks): done
    Writing superblocks and filesystem accounting information: done
    
    Sending 'metadata' (52 KB)                         OKAY [  0.024s]
    Writing 'metadata'                                 OKAY [  0.028s]
    Finished. Total time: 0.161s


    您能否确认是否仍然失败?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嘿 Mattijs、

    我仍然收到创建分区失败的消息。 我确实找到了 envsetup 并运行了午餐、它只是输出了大量额外的文本、因此我省略了:

    builduser@builduser-Venus-Series:ti-aosp-13$ cd out/target/product/am62x/
    builduser@builduser-Venus-Series:am62x$ sudo fastboot format metadata
    mke2fs 1.45.5 (07-Jan-2020)
    /tmp/TemporaryFile-EooviH: Unimplemented ext2 library function while setting up superblock
    /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
    mke2fs failed: 1
    error: Cannot generate image for metadata
    
    builduser@builduser-Venus-Series:am62x$ sudo fastboot format metadata
    mke2fs 1.45.5 (07-Jan-2020)
    /tmp/TemporaryFile-2CUZzW: Unimplemented ext2 library function while setting up superblock
    /usr/lib/android-sdk/platform-tools/mke2fs failed with status 1
    mke2fs failed: 1
    error: Cannot generate image for metadata
    
    builduser@builduser-Venus-Series:am62x$ 
    

    在 EVM 上、显示"MMC_metadata_a 的器件规格错误":

    => fastboot 0
    generic_phy_get_bulk : no phys property
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    ** Bad device specification mmc metadata_a **
    ** Bad device specification mmc metadata_a **
    Couldn't find partition mmc metadata_a
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk
    dwc3-generic-peripheral usb@31000000: request 00000000f7eb5f40 was not queued to ep1in-bulk

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    通过查看日志、我们可以看到、即使您采购了 envsetup.sh 并运行了午餐、您仍在使用系统的快速引导:

    /usr/lib/android-sdk/platform-tools/mke2fs


    这是因为您运行 sudo。 不使用 sudo 是否可以进行闪存?

    另一种解决方法是从 OUT 中复制快速引导二进制文件:

    cd out/target/product/am62x/
    cp ../../../host/linux-x86/bin/fastboot .
    cp ../../../host/linux-x86/bin/mke2fs .
    sudo ./fastboot format metadata
    

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    嘿 Mattijs、

    好的,因为某些原因,你提到 bash 仍然使用 Ubuntu 提供的快速引导,而不是 AOSP 目录中的快速引导。

    因此、SK-AM62-LP 似乎正在成功从 SD 卡引导。 感谢您的帮助!

    我仍在完全引导客户电路板、但我认为我需要在那里做一些 DT 更改、以便更好地匹配硬件。  

    希望这也能解决客户电路板上的启动问题。

    穆南

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Munan:

    很高兴你解决了。

    如果我们可以从 SD 卡引导 SK-AM62-LP、我们可以解决此问题吗?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    好的、您可以关闭此主题、谢谢!

    穆南