Advertisement
faenil

Untitled

Apr 27th, 2013
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.71 KB | None | 0 0
  1. # This file contains boot-up definitions and configuration for ubiboot-02.
  2. # The usual stuff applies, if you do not understand what a setting means tweaking it might well
  3. # make your device unbootable. This is a friendly warning to ya.
  4. #
  5.  
  6. # The name of the archive containing the loadable part of ubiboot FS.
  7. # This is a cpio file located in the same directory as this file.
  8. #
  9. G_UBIBOOT_ARCHIVE="ubiboot-02.menus.cpio"
  10.  
  11. # Enable timeout for the main boot menu. If this is set to 0 then we will wait forever
  12. # for user interaction in the menu... propably not a wise selection.
  13. # If timeout is specified and reached, the default OS & kernel are booted.
  14. #
  15. G_MENU_TIMEOUT=1
  16.  
  17. # Exported partitions if USB is connected.
  18. # Even if you set this to (none), you can export these manually when you telnet to the device.
  19. # Exporting them all is handy for backup purposes as you can then tar off everything on a partition
  20. # to external computer. Note that windows computers cannot normally mount ext2 partitions...
  21. # This could be thought as a minor security breach, but then again, same thing can always be accomplished
  22. # using flasher and maintanace boot so I do not see this as an additional high risk...
  23. #
  24. G_EXPORTED_PARTITONS="/dev/mmcblk0" # This exports all partitons of the device
  25. #G_EXPORTED_PARTITONS="/dev/mmcblk0p1" # this exports just the Mydocs partiton
  26. #G_EXPORTED_PARTITONS="/dev/mmcblk0p2" # this exports just the root partition
  27. #G_EXPORTED_PARTITONS="/dev/mmcblk0p3" # this exports just the home partiton
  28. #G_EXPORTED_PARTITONS="/dev/mmcblk0p4" # this exports just the nemo partition
  29. #G_EXPORTED_PARTITONS="/dev/mmcblk0p5" # some people have more than 4 partitions
  30. #G_EXPORTED_PARTITONS="/dev/mmcblk0p6" # ...
  31. #G_EXPORTED_PARTITONS="/dev/mmcblk0p7" # ...
  32. #G_EXPORTED_PARTITONS="/dev/mmcblk0p8" # ...
  33. #G_EXPORTED_PARTITONS="/dev/mmcblk0p9" # ...
  34. #G_EXPORTED_PARTITONS="" # this turns off partition exporting
  35.  
  36. # Start DHCP server on the USB, to give address for a host for telnet access.
  37. # If this is set to 0, you must ifconfig the interface yourself to access the device.
  38. #
  39. G_START_DHCP_SERVER=1
  40.  
  41. # Enable telnet server on the device.
  42. # If the USB is connected when the device boots, no menu will be shown and instead you may login
  43. # to the device for maintanance purposes.
  44. # This could be thought as a minor security breach, since no password is required.
  45. # However, same thing can always be accomplished using flasher and maintanace boot so I do not see
  46. # this as an additional high risk...
  47. #
  48. G_START_TELNET_SERVER=1
  49.  
  50. # Enable SSH server on the device.
  51. # If the USB is connected when the device boots, no menu will be shown and instead you may login
  52. # to the device for maintanance purposes.
  53. # This is better than telnet as you need to use the harmattan root password to login to the device.
  54. # Hey, of course you have changed the default password from "rootme" to something else? What, not? hmmm...
  55. # Unfortunately this is not ready yet... I need to rebuild the SSH server to not bitch about missing PAM's...
  56. # ... hence not enabled :)
  57. #
  58. G_START_SSH_SERVER=0
  59.  
  60. # Settings related to device powerup in special modes.
  61. # Set mode to 0 if you do not want device to power up in default OS if waking up due to event.
  62. # In order for these to work correctly, you need to have G_DEFAULT_OS and G_DEFAULT_KERNEL set to something
  63. # sensible, preferrably to Harmattan & default kernel.
  64. #
  65. G_OVERRIDE_RTC_ALARM_BOOT=1
  66. G_OVERRIDE_USB_CHARGER_BOOT=1
  67.  
  68. # Init scripts for different OS'es. Make sure that you have these in place, or else booting will fail.
  69. # Note that you have to escape the forward slashes here as this is a substituting expression in sedscript...
  70. #
  71. G_HARMATTAN_INITSCRIPT="\/sbin\/preinit_harmattan"
  72. G_NITDROID_INITSCRIPT="\/sbin\/preinit_nitdroid"
  73. G_NEMO_INITSCRIPT="\/sbin\/init"
  74.  
  75. # List of mountable partitions containing bootable kernels.
  76. # Normally you need to have at least /mnt/2 and /mnt/4 mounted, but if you keep your kernels in unusual
  77. # locations you need to modify this.
  78. #
  79. G_MOUNTABLE_PARTITONS="/mnt/2 /mnt/4"
  80.  
  81. # Now follow the bootable OS'es and kernels on the device, this is the structure of the 2nd level menu.
  82. # Due to screen resolution issues, the maximum length of the kernel label is 30 characters.
  83. #
  84. # - Each OS has 6 slots for kernels, but all need not be defined. Each used slot needs a G_<osname>_<n>_LABEL
  85. # that defines the text shown on the menu line and G_<osname>_<n>_FILE which defines the kernel-to-boot, path
  86. # is relative to the ubiboot FS.
  87. # - The G_<osname>_NUM parameter defines the number of kernel lines shown on the 2nd level menu.
  88. # Be careful to NOT give values in this variable exceeding the number of your used slots.
  89. # - The G_<osname>_AUTOBOOT defines the slot that is used to boot automatically, user does not need to press
  90. # the kernel line to boot this selection. Useful only if you have just one kernel line defined for an OS.
  91. # Setting this variable to zero disables the autoboot on the OS entry.
  92. #
  93.  
  94. # Nitdroid kernels
  95. G_NITDROID_NUM=1
  96. G_NITDROID_AUTOBOOT=1
  97. G_NITDROID_1_LABEL="Eyes zImage l2fix kernel"
  98. G_NITDROID_1_FILE="/boot/Harmattan/boot/zImage_nitdroid_l2fix"
  99. G_NITDROID_2_LABEL=""
  100. G_NITDROID_2_FILE=""
  101. G_NITDROID_3_LABEL=""
  102. G_NITDROID_3_FILE=""
  103. G_NITDROID_4_LABEL=""
  104. G_NITDROID_4_FILE=""
  105. G_NITDROID_5_LABEL=""
  106. G_NITDROID_5_FILE=""
  107. G_NITDROID_6_LABEL=""
  108. G_NITDROID_6_FILE=""
  109.  
  110. # Harmattan kernels
  111. G_HARMATTAN_NUM=5
  112. G_HARMATTAN_AUTOBOOT=0
  113. G_HARMATTAN_1_LABEL="2.6.32.54-dfl61-oma"
  114. G_HARMATTAN_1_FILE="/boot/Harmattan/boot/zImage-2.6.32.54-dfl61-oma"
  115. G_HARMATTAN_2_LABEL="2.6.32.54 Nemo backport"
  116. G_HARMATTAN_2_FILE="/boot/Harmattan/boot/zImage-2.6.32.54-juice_backport"
  117. G_HARMATTAN_3_LABEL="Nitdroid pr13 kernel"
  118. G_HARMATTAN_3_FILE="/boot/Harmattan/boot/zImage.pr13"
  119. G_HARMATTAN_4_LABEL="Plain openmode kernel"
  120. G_HARMATTAN_4_FILE="/boot/Harmattan/boot/zImage-2.6.32.54-dfl61-20121301"
  121. G_HARMATTAN_5_LABEL="Openmode + L2fix"
  122. G_HARMATTAN_5_FILE="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix_harmattan"
  123. G_HARMATTAN_6_LABEL=""
  124. G_HARMATTAN_6_FILE=""
  125.  
  126. # Nemo kernels
  127. G_NEMO_NUM=2
  128. G_NEMO_AUTOBOOT=0
  129. G_NEMO_1_LABEL="Latest 2.6.32"
  130. G_NEMO_1_FILE="/boot/Nemo/boot/bzImage"
  131. G_NEMO_2_LABEL="Unstable 3.5.3 SabreTSq"
  132. G_NEMO_2_FILE="/boot/Nemo/altboot/vmlinuz-3.5.3-juice"
  133. G_NEMO_3_LABEL=""
  134. G_NEMO_3_FILE=""
  135. G_NEMO_4_LABEL=""
  136. G_NEMO_4_FILE=""
  137. G_NEMO_5_LABEL=""
  138. G_NEMO_5_FILE=""
  139. G_NEMO_6_LABEL=""
  140. G_NEMO_6_FILE=""
  141.  
  142. # Default boot kernel
  143. # If timeout is reached before user interaction this is booted.
  144. # This is also the kernel that gets booted if the device wakes up due to RTC alarm or USB event.
  145. #
  146. G_DEFAULT_OS="Harmattan"
  147. G_DEFAULT_KERNEL="/boot/Harmattan/boot/zImage_2.6.32.54-openmode_l2fix_harmattan"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement