Advertisement
timonsku

Untitled

Jan 19th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.64 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved.
  4. #
  5. # Redistribution and use in source and binary forms, with or without
  6. # modification, are permitted provided that the following conditions
  7. # are met:
  8. # * Redistributions of source code must retain the above copyright
  9. # notice, this list of conditions and the following disclaimer.
  10. # * Redistributions in binary form must reproduce the above copyright
  11. # notice, this list of conditions and the following disclaimer in the
  12. # documentation and/or other materials provided with the distribution.
  13. # * Neither the name of NVIDIA CORPORATION nor the names of its
  14. # contributors may be used to endorse or promote products derived
  15. # from this software without specific prior written permission.
  16. #
  17. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
  18. # EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  19. # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
  21. # CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  22. # EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  23. # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  24. # PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  25. # OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  26. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  27. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  28.  
  29. # Process_board_version:
  30. # Added to read the board id and board version from EEPROM on main board.
  31. # undef for non eeprom boards.
  32. process_board_version()
  33. {
  34. local board_id="${1}";
  35. local board_version="${2}";
  36. local board_sku="${3}";
  37. local bdv=${board_version^^};
  38. local bid=${board_id^^};
  39.  
  40. echo "Board ID(${board_id}) version(${board_version}) " >/dev/stderr;
  41.  
  42. if [ "${bdv}" \< "100" ]; then
  43. dtbfab=a00;
  44. elif [ "${bdv}" \< "200" ]; then
  45. dtbfab=a01;
  46. elif [ "${bdv}" \< "300" ]; then
  47. dtbfab=a02;
  48. else
  49. dtbfab=b00;
  50. fi
  51.  
  52. if [ "${board_sku}" = "" ]; then
  53. board_sku="0000";
  54. fi;
  55. DTB_FILE=tegra210-p3448-${board_sku}-p3449-0000-${dtbfab}.dtb;
  56. }
  57.  
  58. #
  59. # p3448-0000.conf: configuration for Porg SPI
  60.  
  61. ODMDATA=0x94000;
  62. CHIPID=0x21;
  63. EMMC_BCT=P3448_A00_4GB_Micron_4GB_lpddr4_204Mhz_P987.cfg;
  64. #BOOTPARTSIZE=4194304;
  65. EMMCSIZE=4194304;
  66. ITS_FILE=;
  67. # To configure whether to use U-Boot,
  68. # do either of the following before running flash.sh:
  69. # 1) Set environment variable USE_UBOOT to 0 or 1.
  70. # 2) Edit the line below to set USE_UBOOT to 0 or 1.
  71. if [ -z "${USE_UBOOT}" ]; then
  72. USE_UBOOT=1;
  73. fi;
  74. ROOTFSSIZE=14GiB;
  75. CMDLINE_ADD="console=ttyS0,115200n8 console=tty0 fbcon=map:0 net.ifnames=0";
  76. target_board="t210ref";
  77. ROOT_DEV="mmcblk0p1 ------------ external SDCARD. (SKU0)
  78. mmcblk0p1 ------------ internal eMMC. (SKU2)
  79. sda1 ----------------- external USB devices. (USB memory stick, HDD)
  80. eth0 ----------------- nfsroot via RJ45 Ethernet port.
  81. eth1 ----------------- nfsroot via USB Ethernet interface.";
  82. TEGRABOOT="bootloader/${target_board}/nvtboot.bin";
  83. SOSFILE="bootloader/nvtboot_recovery.bin";
  84. WB0BOOT="bootloader/${target_board}/warmboot.bin";
  85. FLASHER="bootloader/${target_board}/cboot.bin";
  86. if [ "${USE_UBOOT}" -eq 1 ]; then
  87. DFLT_KERNEL_IMAGE="bootloader/${target_board}/p3450-porg/u-boot.bin";
  88. fi;
  89. BOOTLOADER="bootloader/${target_board}/cboot.bin";
  90. TBCFILE="bootloader/nvtboot_cpu.bin";
  91. BPFFILE="bootloader/t210ref/sc7entry-firmware.bin";
  92. TOSFILE="bootloader/tos.img";
  93. EKSFILE="bootloader/eks.img";
  94. BCT="--bct ";
  95. VERFILENAME="qspi_bootblob_ver.txt";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement