Skip to content

Instantly share code, notes, and snippets.

@KunYi
KunYi / evk boot_07222021_without_FitImage.log
Last active July 22, 2021 05:50
SRG-IMX8P without FitImage Booting
U-Boot SPL 2020.04-srg-imx8p+g57568fdd92 (Jul 19 2021 - 08:05:43 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE: BL31: v2.4(release):lf-5.10.y-1.0.0-0-gba76d337e
NOTICE: BL31: Built : 08:27:48, Mar 1 2021
@KunYi
KunYi / cst_init.sh
Last active May 21, 2021 06:35
initial NXP/Freescale HAB(High Assurance Boot) PKI base certificate and get fuse.txt for burn fuse
#!/bin/bash
set -euo pipefail # for strict mode
CST_TARFILE="cst-3.3.1.tgz"
DEF_SERIAL_NUMBER="41325426"
DEF_KEY_PASS="KeyKunYi4SecureBoot"
if [ ! -f $CST_TARFILE ]; then
echo "not found $CST_TARFILE, please download first"
@KunYi
KunYi / imx-mkimge-steps.sh
Created May 19, 2021 08:38
imx-mkimage steps
#under imx-mkimage
# copy u-boot parts
cp ../uboot-imx/u-boot-nodtb.bin ./iMX8M
cp ../uboot-imx/arch/arm/dts/imx8mp-evk.dtb ./iMX8M
cp ../uboot-imx/spl/u-boot-spl.bin ./iMX8M
cp ../uboot-imx/tools/mkimage ./iMX8M/mkimage_uboot # need rename to mkimage_uboot
# copy firmware-imx parts
cp ../firmware-imx/firmware-imx-8.11/firmware/ddr/synopsys/lpddr4*.bin ./iMX8M # copy for DRAM Controller
@KunYi
KunYi / gist:cf663ff16f2faecc058389396147bbb7
Created May 12, 2021 04:22
Ubuntu resettings for Factory Reset
#from https://askubuntu.com/questions/870434/how-can-i-factory-reset-an-oem-install-of-ubuntu
# but need to verify the process
1. Create a new user:
Name: OEM Configuration (temporary user)
Login: oem
UID: 29999
Groups: adm, cdrom, sudo, dip, plugdev, lpadmin, oem, sambashare
@KunYi
KunYi / flash_jetson_xavier_nx-devkit-emmc.log
Created May 7, 2021 09:36
Nvidia Jetson XavierNX devkit-emmc log
sudo ./flash.sh jetson-xavier-nx-devkit-emmc mmcblk0p1
Place your finger on the fingerprint reader
###############################################################################
# L4T BSP Information:
# R32 , REVISION: 5.1
###############################################################################
# Target Board Information:
# Name: jetson-xavier-nx-devkit-emmc, Board Family: t186ref, SoC: Tegra 194,
# OpMode: production, Boot Authentication: NS,
# Disk encryption: disabled ,
@KunYi
KunYi / enabled_sdmmc3.patch
Created May 7, 2021 08:17
Nvidia Jetson R32.5.1 enabled sdcard slot patch of AAEON BOXER-8251AI/
diff --git a/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts b/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts
index b724f6279..c3125db52 100644
--- a/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts
+++ b/hardware/nvidia/platform/t19x/jakku/kernel-dts/tegra194-p3668-all-p3509-0000.dts
@@ -23,3 +23,13 @@
compatible = "nvidia,p3449-0000+p3668-0000", "nvidia,p3449-0000+p3668-0001", "nvidia,p3509-0000+p3668-0000", "nvidia,p3509-0000+p3668-0001", "nvidia,tegra194";
};
+
+&sdmmc3 {
@KunYi
KunYi / JetsonXavierNX_Booting.log
Created May 7, 2021 06:01
Nvidia Jetson Xavier NX Booting log
[0000.024] W> RATCHET: MB1 binary ratchet value 4 is too large than ratchet level 2 from HW fuses.
[0000.033] I> MB1 (prd-version: 1.5.1.6-t194-41334769-1740dd39)
[0000.038] I> Boot-mode: Coldboot
[0000.041] I> Chip revision : A02P
[0000.044] I> Bootrom patch version : 15 (correctly patched)
[0000.049] I> ATE fuse revision : 0x200
[0000.053] I> Ram repair fuse : 0x0
[0000.056] I> Ram Code : 0x0
[0000.058] I> rst_source : 0xb
[0000.061] I> rst_level : 0x1
@KunYi
KunYi / code-extension.lst
Created May 6, 2021 08:12
my visual code extension
bierner.markdown-preview-github-styles
donjayamanne.githistory
eamodio.gitlens
esbenp.prettier-vscode
EugenWiens.bitbake
foxundermoon.shell-format
golang.go
JerryHong.autofilename
kweihmann.oelint-vscode
ms-azuretools.vscode-docker
@KunYi
KunYi / linux-imx_task_order.log
Created April 15, 2021 07:32
NXP imx8mp task order
do_fetch (148689): log.do_fetch.148689
do_unpack (148700): log.do_unpack.148700
do_prepare_recipe_sysroot (148701): log.do_prepare_recipe_sysroot.148701
do_symlink_kernsrc (148746): log.do_symlink_kernsrc.148746
do_kernel_checkout (148748): log.do_kernel_checkout.148748
do_validate_branches (149556): log.do_validate_branches.149556
do_kernel_metadata (149580): log.do_kernel_metadata.149580
do_kernel_version_sanity_check (149659): log.do_kernel_version_sanity_check.149659
do_patch (149658): log.do_patch.149658
do_kernel_configme (149673): log.do_kernel_configme.149673
@KunYi
KunYi / uboot-imx8mp-lpddr4-evk.log
Created April 12, 2021 07:11
u-boot for imx8mp lpddr4 evk
U-Boot SPL 2020.04-5.10.9-1.0.0+gad7b74b415 (Mar 05 2021 - 07:05:56 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE: BL31: v2.4(release):lf-5.10.y-1.0.0-0-gba76d337e
NOTICE: BL31: Built : 08:27:48, Mar 1 2021