This repository contains our L4T initramfs, u-boot and u-boot scripts, our latest coreboot.romm and a script to update it.
Rebuilds initramfs and uboot script. For Ubuntu Focal Bootfiles on partition 2 with Hekate ID SWR-FOC:
Pull the docker image :
docker pull alizkan/l4t-bootfiles-misc:latest
Create a directory to store build files and kernel files.
mkdir -p "${PWD}"/out
Run the docker contaainer to trigger the actuall build :
docker run -it --rm -e DISTRO=focal -e PARTNUM=mmcblk0p2 -e HEKATE_ID=SWR-FOC -v "${PWD}"/out:/out alizkan/l4t-bootfiles-misc:latest
sudo apt-get install u-boot-tools
For GNU/Linux:
mkimage -A arm -T script -O linux -d linux_boot_sdemmc.txt boot.scr
For Android:
mkimage -A arm -T script -O linux -d android_boot_sdemmc.txt boot.scr
mkimage -A arm -T script -O linux -d android_common_sdemmc.txt common.scr
sudo apt-get install cpio
To rebuild initramfs :
sh -c 'cd initramfs_files/ && find . | cpio -H newc -o' | gzip -9 > new_initramfs.cpio.gz && mkimage -A arm64 -O linux -T ramdisk -C gzip -d new_initramfs.cpio.gz initramfs
To extract initramfs :
tail -c+65 < initramfs | gunzip > out
mkdir initramfs_files
mv out initramfs_files
cd initramfs_files
cpio -i < out
rm out
Overlays for Tegra210
- eMMC overlay
dtc -I dts -O dtb -o tegra210-icosa_emmc-overlay.dtbo emmc_overlay.dts
- UART-B overlay
dtc -I dts -O dtb -o tegra210-icosa-UART-B-overlay.dtbo uart_b_debug.dts
Rebuild Dockerfile:
./scripts/docker/build_image.sh