Skip to content

CTCaer/bootstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

L4T Bootstack

This repository contains our L4T initramfs, u-boot and u-boot scripts, our latest coreboot.romm and a script to update it.

Automated build

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

Manual build

Building u-boot scripts

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

Initramfs

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

l4t-platform-t210-icosa-overlays

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

More infos

Rebuild Dockerfile:

./scripts/docker/build_image.sh

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published