Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- if [ "$(whoami)" != "root" ] ; then
- echo "Please run as root"
- echo "Quitting ..."
- exit 1
- fi
- # Replace base DTB files
- mv tegra234-p3767-0000-p3768-0000-a0.dtb Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3768-0000-a0.dtb
- mv tegra234-p3767-0001-p3768-0000-a0.dtb Linux_for_Tegra/kernel/dtb/tegra234-p3767-0001-p3768-0000-a0.dtb
- # Replace kernel Image & nvgpu.ko
- mv Image Linux_for_Tegra/kernel/Image
- sudo mv ./nvgpu.ko Linux_for_Tegra/rootfs/usr/lib/modules/5.10.120-tegra/kernel/drivers/gpu/nvgpu/nvgpu.ko
- # Replace pinmux files
- mv tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi
- mv tegra234-mb1-bct-gpio-p3767-dp-a03.dtsi Linux_for_Tegra/bootloader/tegra234-mb1-bct-gpio-p3767-dp-a03.dtsi
- # Apply the system config
- sed -i "s/cvb_eeprom_read_size = <0x100>;/cvb_eeprom_read_size = <0x0>;/g" Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts
- sed -i "s/ODMDATA=\"gbe-uphy-config-8,hsstp-lane-map-3,hsio-uphy-config-0\";/ODMDATA=\"gbe-uphy-config-9,hsstp-lane-map-3,hsio-uphy-config-0\";/g" Linux_for_Tegra/p3767.conf.common
- #cat Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts | grep eeprom
- #cat Linux_for_Tegra/p3767.conf.common | grep ODMDATA
- echo "Done."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement