boot.ini.oelec 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #DESCRIPTION Odroid OpenElec
  2. # U-Boot Parameters
  3. setenv initrd_high "0xffffffff"
  4. setenv fdt_high "0xffffffff"
  5. #------------------------------------------------------------------------------------------------------
  6. #
  7. # Boot Specific Stuff
  8. #
  9. #------------------------------------------------------------------------------------------------------
  10. setenv bootrootfs "boot=LABEL=userdata disk=LABEL=oelec"
  11. #------------------------------------------------------------------------------------------------------
  12. #
  13. # Console Setup
  14. #
  15. #------------------------------------------------------------------------------------------------------
  16. setenv console "console=ttySAC2,115200n8"
  17. #------------------------------------------------------------------------------------------------------
  18. #
  19. # Video output
  20. #
  21. # Setup the video output
  22. # Unset variable = automatic
  23. #
  24. # setenv video_output "video=HDMI-A-1:1920x1080M@60" : 1080p (Use connected display's EDID)
  25. # setenv video_output "video=HDMI-A-1:1280x720@60" : 720p (Use connected display's EDID)
  26. #
  27. # setenv video_output "drm_kms_helper.edid_firmware=edid/1920x1080.bin" : 1080p (Use system EDID)
  28. # setenv video_output "drm_kms_helper.edid_firmware=edid/1280x720.bin" : 720p (Use system EDID)
  29. #------------------------------------------------------------------------------------------------------
  30. # setenv video_output "video=HDMI-A-1:1920x1080M@60"
  31. #------------------------------------------------------------------------------------------------------
  32. #
  33. # OpenELEC variables
  34. #
  35. # Setup the OpenELEC options
  36. # valid values are: progress ssh debugging quiet break verbose
  37. #------------------------------------------------------------------------------------------------------
  38. setenv openelec "quiet ssh"
  39. #------------------------------------------------------------------------------------------------------
  40. #
  41. # MAC Network Address
  42. #
  43. #------------------------------------------------------------------------------------------------------
  44. setenv macaddr "00:1e:06:61:7a:39"
  45. #------------------------------------------------------------------------------------------------------
  46. #
  47. # Kernel boot
  48. #
  49. #------------------------------------------------------------------------------------------------------
  50. setenv bootargs "${console} ${bootrootfs} ${openelec} smsc95xx.macaddr=${macaddr}"
  51. # ========================================================
  52. # = RESTORE boot.scr FOR MULTIBOOT, DO NOT CHANGE =
  53. # ========================================================
  54. mmc list
  55. mmc dev
  56. setenv change_osdev no;
  57. setenv bootdev "0:1";
  58. if test "${mmc_boot_device}" = "0"; then
  59. setenv bootdev "0:1";
  60. elif test "${mmc_boot_device}" = "1"; then
  61. setenv bootdev "1:1";
  62. fi
  63. setenv os_dev "${bootdev}";
  64. if test "${change_osdev}" = "yes"; then
  65. if test "${bootdev}" = "0:1"; then
  66. setenv os_dev "1:1";
  67. else
  68. setenv os_dev "0:1";
  69. fi
  70. fi
  71. # ========================================================
  72. fatload mmc ${os_dev} 40008000 multiboot/KERNEL
  73. fatload mmc ${os_dev} 42000000 multiboot/INITRD
  74. fatload mmc ${os_dev} 44000000 multiboot/exynos5422-odroidxu3.dtb.oelec
  75. # === RESTORE MULTIBOOT SCRIPT ===========================
  76. fatload mmc ${bootdev} 0x60000000 multiboot/boot.scr.multi
  77. fatwrite mmc ${bootdev} 0x60000000 boot.scr ${filesize}
  78. #=========================================================
  79. # Boot the board
  80. bootz 40008000 42000000 44000000