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.

[参考译文] AM625:ubiattach 命令在 Linux SDK 版本10_00_07_04中失败

Guru**** 2487425 points
Other Parts Discussed in Thread: SK-AM62-LP

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1439289/am625-ubiattach-command-failed-in-linux-sdk-version-10_00_07_04

器件型号:AM625
Thread 中讨论的其他器件:SK-AM62-LP

工具与软件:

你(们)好

我使用 SK-AM62-LP EVM 板和 Linux SDK 版本 10_00_07_04。   系统从 SD 卡引导。  

根据网页 https://software-dl.ti.com/processor-sdk-linux/esd/AM62X/10_00_07_04/exports/docs/linux/Foundational_Components /内核/ Kernel_Drivers / QSPI.html ,我想创建 ubi 卷,但 ubiattach  将失败. 下面是日志。 请帮助检查原因;

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    Unknown 说:
    我使用 SK-AM62-LP EVM 板和 Linux SDK 版本 10_00_07_04。  [报价]

    我现在没有那块板、但我使用 SK-AM62A 板尝试了文档中的步骤、我认为这块板使用了相同的 OSPI NAND 闪存设置、并且工作正常。

    root@am62axx-evm:/# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00080000 00040000 "ospi_nand.tiboot3"
    mtd1: 00200000 00040000 "ospi_nand.tispl"
    mtd2: 00400000 00040000 "ospi_nand.u-boot"
    mtd3: 00040000 00040000 "ospi_nand.env"
    mtd4: 00040000 00040000 "ospi_nand.env.backup"
    mtd5: 05fc0000 00040000 "ospi_nand.rootfs"
    mtd6: 00040000 00040000 "ospi_nand.phypattern"
    root@am62axx-evm:/# ubiformat /dev/mtd5
    ubiformat: mtd5 (nand), size 100401152 bytes (95.7 MiB), 383 eraseblocks of 262144 bytes (256.0 KiB), min. I/O size 4096 bytes
    libscan: scanning eraseblock 382 -- 100 % complete
    ubiformat: 383 eraseblocks have valid erase counter, mean value is 793
    ubiformat: formatting eraseblock 382 -- 100 % complete
    root@am62axx-evm:/# ubiattach -p /dev/mtd5
    [431258.984859] ubi0: attaching mtd5
    [431259.083885] ubi0: scanning is finished
    [431259.090082] ubi0: attached mtd5 (name "ospi_nand.rootfs", size 95 MiB)
    [431259.096781] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
    [431259.103831] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
    [431259.110742] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
    [431259.117811] ubi0: good PEBs: 383, bad PEBs: 0, corrupted PEBs: 0
    [431259.123912] ubi0: user volume: 0, internal volumes: 1, max. volumes count: 128
    [431259.131215] ubi0: max/mean erase counter: 1310/794, WL threshold: 4096, image sequence number: 1620189444
    [431259.140857] ubi0: available PEBs: 369, total reserved PEBs: 14, PEBs reserved for bad PEB handling: 10
    [431259.150250] ubi0: background thread "ubi_bgt0d" started, PID 6279
    UBI device number 0, total 383 LEBs (97263616 bytes, 92.7 MiB), available 369 LEBs (93708288 bytes, 89.3 MiB), LEB size 253952 bytes (248.0 KiB)
    root@am62axx-evm:/# ls -al /dev/ubi*
    crw------- 1 root root 235,   0 Jan  5 23:47 /dev/ubi0
    crw------- 1 root root  10, 124 Jan  1 00:00 /dev/ubi_ctrl
    root@am62axx-evm:/#

    给我一天左右的时间、以便我找到相应的 SK-AM62-LP 电路板、然后重试。

    此致、Andreas

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

    根据以下提交内容进行修正: https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/commit/?h=ti-linux-6.6.y-cicd&id=7866eaeb3c1ddb52b976c3e4140cdfbba28a74f3