Advertisement
Guest User

boot.scr a311d nvme

a guest
Oct 3rd, 2023
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. 'V\9AX\B7e\80\83\00\00\0C\35\00\00\00\00\00\00\00\00\E5\D8\B5\E8\05\16\06\00\62\6F\6F\74\20\73\63\72\69\70\74\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0C\2D\00\00\00\00
  2. #
  3. # flash-kernel: bootscr.uboot-generic
  4. #
  5.  
  6. # Bootscript using the new unified bootcmd handling
  7. # introduced with u-boot v2014.10
  8. #
  9. # Expects to be called with the following environment variables set:
  10. #
  11. # devtype e.g. mmc/scsi etc
  12. # devnum The device number of the given type
  13. # bootpart The partition containing the boot files
  14. # distro_bootpart The partition containing the boot files
  15. # (introduced in u-boot mainline 2016.01)
  16. # prefix Prefix within the boot partiion to the boot files
  17. # kernel_addr_r Address to load the kernel to
  18. # fdt_addr_r Address to load the FDT to
  19. # ramdisk_addr_r Address to load the initrd to.
  20. #
  21. # The uboot must support the booti and generic filesystem load commands.
  22.  
  23. # Workaround lack of baudrate included with console on various iMX
  24. # systems (e.g. wandboard, cubox-i, hummingboard)
  25. if test "${console}" = "ttymxc0" && test -n "${baudrate}"; then
  26. setenv console "${console},${baudrate}"
  27. fi
  28.  
  29. if test -n "${console}"; then
  30. setenv bootargs "${bootargs} console=${console}"
  31. fi
  32.  
  33. setenv bootargs "ro no_console_suspend cma=512M pci=nomsi ${bootargs} console=ttymxc0,115200 console=tty1"
  34.  
  35. # setenv bootpart "1"
  36. # setenv prefix "/"
  37. # setenv kernel_addr_r "0x40480000"
  38. # setenv fdt_addr_r "0x50000000"
  39. # setenv ramdisk_addr_r "0x51000000"
  40.  
  41. if test -z "${fk_kvers}"; then
  42. setenv fk_kvers '6.5.0-1-reform2-arm64'
  43. fi
  44.  
  45. # These two blocks should be the same apart from the use of
  46. # ${fk_kvers} in the first, the syntax supported by u-boot does not
  47. # lend itself to removing this duplication.
  48.  
  49. if test -n "${fdtfile}"; then
  50. setenv fdtpath dtbs/${fk_kvers}/${fdtfile}
  51. else
  52. setenv fdtpath dtb-${fk_kvers}
  53. fi
  54.  
  55. if test -z "${distro_bootpart}"; then
  56. setenv partition ${bootpart}
  57. else
  58. setenv partition ${distro_bootpart}
  59. fi
  60.  
  61.  
  62. # place here any u-boot commands to be executed before boot
  63.  
  64. if test -z "${fk_image_locations}"; then
  65. setenv fk_image_locations ${prefix}
  66. fi
  67.  
  68. for pathprefix in ${fk_image_locations}
  69. do
  70. if test -e ${devtype} ${devnum}:${partition} ${pathprefix}vmlinuz-${fk_kvers}
  71. then
  72. load ${devtype} ${devnum}:${partition} ${kernel_addr_r} ${pathprefix}vmlinuz-${fk_kvers} \
  73. && load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${pathprefix}${fdtpath} \
  74. && load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${pathprefix}initrd.img-${fk_kvers} \
  75. && echo "Booting Debian ${fk_kvers} from ${devtype} ${devnum}:${partition}..." \
  76. && booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
  77. fi
  78. done
  79.  
  80. for pathprefix in ${fk_image_locations}
  81. do
  82. if test -e ${devtype} ${devnum}:${partition} ${pathprefix}vmlinuz
  83. then
  84. load ${devtype} ${devnum}:${partition} ${kernel_addr_r} ${pathprefix}vmlinuz \
  85. && load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${pathprefix}dtb \
  86. && load ${devtype} ${devnum}:${partition} ${ramdisk_addr_r} ${pathprefix}initrd.img \
  87. && echo "Booting Debian from ${devtype} ${devnum}:${partition}..." \
  88. && booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}
  89. fi
  90. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement