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.

[参考译文] Linux/66AK2H12:从内核文件构建 nand.bin (或 ubi 文件)。

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

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/672760/linux-66ak2h12-building-nand-bin-or-ubi-file-from-kernel-files

器件型号:66AK2H12

工具/软件:Linux

你(们)好。 我使用 K2H 板和处理器 SDK u-boot 和内核。

我想从重建的内核(zImage 文件)和设备树文件(.dTB)以及一些其他文件(skern-k2hk.bin 和 K2-FW-initrd.cpio.gz)构建 nand.bin 文件(.ubi 文件)。

我在 MCSDK 3.01.04.07中使用了 arago-console-image-k2hk-evm.tar.gz 并提取它。 然后在/boot 中复制了这些文件。

通过使用这两条命令、我创建了一个 Ubi 文件:

sudo mkfs.ubifs -F -m 2048 -e 126976 -c 3970 -r ~/tisdk-server-rootfs-image-k2hk-evm tisdk-server-rootfs-image-k2hk-evm.img
ubbinize -o tisdk-server-rootfs-image-k2hk-evm.ubi -m 2048 -p 128KiB -s 2048 -O 2048 ubinize.ini

 ubbinize 文件为:

[ubI_RFS]
mode=ubi
image=tisdk-server-rootfs-image-k2hk-evm.img
VOL_id=0
VOL_SIZE = 480MiB
VOL_TYPE=动态
VOL_NAME=ubi_RFS
VOL_flags=自动大小

但它没有在我的板上启动。