Advertisement
Guest User

Untitled

a guest
Sep 29th, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. #!/bin/bash
  2. if [ "$(whoami)" != "root" ] ; then
  3. echo "Please run as root"
  4. echo "Quitting ..."
  5. exit 1
  6. fi
  7.  
  8. # Replace base DTB files
  9. mv tegra234-p3767-0000-p3768-0000-a0.dtb Linux_for_Tegra/kernel/dtb/tegra234-p3767-0000-p3768-0000-a0.dtb
  10. mv tegra234-p3767-0001-p3768-0000-a0.dtb Linux_for_Tegra/kernel/dtb/tegra234-p3767-0001-p3768-0000-a0.dtb
  11.  
  12. # Replace kernel Image & nvgpu.ko
  13. mv Image Linux_for_Tegra/kernel/Image
  14. sudo mv ./nvgpu.ko Linux_for_Tegra/rootfs/usr/lib/modules/5.10.120-tegra/kernel/drivers/gpu/nvgpu/nvgpu.ko
  15.  
  16. # Replace pinmux files
  17. mv tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb1-bct-pinmux-p3767-dp-a03.dtsi
  18. mv tegra234-mb1-bct-gpio-p3767-dp-a03.dtsi Linux_for_Tegra/bootloader/tegra234-mb1-bct-gpio-p3767-dp-a03.dtsi
  19.  
  20. # Apply the system config
  21. 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
  22. 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
  23.  
  24. #cat Linux_for_Tegra/bootloader/t186ref/BCT/tegra234-mb2-bct-misc-p3767-0000.dts | grep eeprom
  25. #cat Linux_for_Tegra/p3767.conf.common | grep ODMDATA
  26.  
  27. echo "Done."
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement