Skip to content

Commit 02b5e1e

Browse files
Merge pull request #28 from qualcomm-linux/quic-kaushalk-patch-11
Update Documentation.md
2 parents 5a85dcd + dffd815 commit 02b5e1e

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Documentation.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,20 @@ sudo apt-get install device-tree-compiler u-boot-tools mtools
441441
# Clone the qcom-dtb-metadata project
442442
git clone [email protected]:qualcomm-linux/qcom-dtb-metadata.git
443443
mkdir fit_image
444-
cp -rap qcom-dtb-metadata/qcom-fitimage.its qcom-dtb-metadata/qcom-metadata.dts fit_image/
444+
cp -rap qcom-dtb-metadata/qcom-fitimage.its qcom-dtb-metadata/qcom-next-fitimage.its qcom-dtb-metadata/qcom-metadata.dts fit_image/
445445

446-
# Copy the dtb/dtbo files from the kernel tree to the fit_image directory. For steps on cloning and building the Qualcomm Linux Kernel Tree, pls refer https://github.com/qualcomm-linux/kmake-image/blob/main/README.md
446+
# Copy the dtb/dtbo files from the kernel tree to the fit_image directory. For steps on cloning and building the Qualcomm Linux Kernel Tree, pls refer https://github.com/qualcomm-linux/kmake-image/blob/main/README.md.
447+
# Checkout and build Qualcomm Linux Kernel : main branch, if you need dtb/dtbo from upstream kernel (https://github.com/qualcomm-linux/kernel/tree/main)
448+
# Checkout and build Qualcomm Linux Kernel : qcom-next branch, if you need dts/dtso from qcom-next kernel (https://github.com/qualcomm-linux/kernel/tree/qcom-next).
447449
mkdir -p fit_image/arch/arm64/boot/dts/qcom/
450+
# Copy the compiled *dtb* files from the kernel's kobj directory into your fit_image directory
448451
cp -rap kobj/arch/arm64/boot/dts/qcom/*.dtb* fit_image/arch/arm64/boot/dts/qcom/
449452

450453
# Compile qcom-metadata.dts into qcom-metadata.dtb
451454
cd fit_image
452455
dtc -I dts -O dtb -o qcom-metadata.dtb qcom-metadata.dts
453456

454-
# Generate qclinux_fit.img from qcom-fitimage.its
457+
# Generate qclinux_fit.img from qcom-fitimage.its (or qcom-next-fitimage.its)
455458
# Name of .img file has to be qclinux_fit.img since this name is hardcoded in UEFI code.
456459
# Naming convention used in UEFI code:
457460
#define FIT_BINARY_FILE L"\\qclinux_fit.img"
@@ -460,7 +463,10 @@ dtc -I dts -O dtb -o qcom-metadata.dtb qcom-metadata.dts
460463
# "-E" flag places binary data outside the FIT structure. However, since /incbin/ is used in the .its file, all binaries are appended into the same image. The FIT structure contains the offset and size for each appended binary.
461464
# "-B 8" flag enforces 8‑byte alignment for the image since 8-byte alignment is normally recommended as per standards.
462465
mkdir out
466+
# For kernel main branch based FIT image creation
463467
mkimage -f qcom-fitimage.its out/qclinux_fit.img -E -B 8
468+
# For kernel qcom-next branch based FIT image creation
469+
mkimage -f qcom-next-fitimage.its out/qclinux_fit.img -E -B 8
464470

465471
# Pack qclinux_fit.img into fitimage.bin. This fitimage.bin shall be flashed onto dtb_a partition of the board.
466472
cd ..

0 commit comments

Comments
 (0)