Skip to content
Permalink
Browse files

Merge pull request #1 from offensive-security/master

Merge changes
  • Loading branch information...
kimocoder committed Mar 14, 2019
2 parents 1e733e9 + e3e2ea7 commit 57a956ac6e49273b1ec512bb38accda906c4d2ab
Showing with 4,275 additions and 5 deletions.
  1. +21 −5 README.md
  2. +31 −0 devices.cfg
  3. +127 −0 example_scripts/build.sh
  4. +95 −0 example_scripts/menuconfig.sh
  5. +8 −0 kernels.txt
  6. BIN nougat/gemini4g_p1/Image.gz-dtb
  7. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/i2c/algos/i2c-algo-bit.ko
  8. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsdvb.ko
  9. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsmdtv.ko
  10. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/common/tveeprom.ko
  11. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9013.ko
  12. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9033.ko
  13. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/as102_fe.ko
  14. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22700.ko
  15. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22702.ko
  16. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cxd2820r.ko
  17. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mb.ko
  18. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mc.ko
  19. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000m.ko
  20. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000p.ko
  21. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib9000.ko
  22. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dibx000_common.ko
  23. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/ec100.ko
  24. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/hd29l2.ko
  25. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/l64781.ko
  26. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/mt352.ko
  27. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/nxt6000.ko
  28. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/rtl2830.ko
  29. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/s5h1432.ko
  30. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp8870.ko
  31. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp887x.ko
  32. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/stv0367.ko
  33. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda10048.ko
  34. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda1004x.ko
  35. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/zl10353.ko
  36. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/usb/as102/dvb-as102.ko
  37. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/usb/au0828/au0828.ko
  38. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/usb/siano/smsusb.ko
  39. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/tuner.ko
  40. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-core.ko
  41. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-vmalloc.ko
  42. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/kernel/drivers/usb/class/cdc-acm.ko
  43. +173 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.alias
  44. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.alias.bin
  45. +483 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.builtin
  46. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.builtin.bin
  47. +36 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.dep
  48. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.dep.bin
  49. 0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.devname
  50. +36 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.order
  51. +1 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.softdep
  52. +112 −0 nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.symbols
  53. BIN nougat/gemini4g_p1/modules/3.18.41-nethunter+/modules.symbols.bin
  54. BIN nougat/gemini4g_p2/Image.gz-dtb
  55. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/i2c/algos/i2c-algo-bit.ko
  56. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsdvb.ko
  57. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsmdtv.ko
  58. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/common/tveeprom.ko
  59. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9013.ko
  60. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9033.ko
  61. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/as102_fe.ko
  62. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22700.ko
  63. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22702.ko
  64. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cxd2820r.ko
  65. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mb.ko
  66. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mc.ko
  67. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000m.ko
  68. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000p.ko
  69. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib9000.ko
  70. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dibx000_common.ko
  71. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/ec100.ko
  72. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/hd29l2.ko
  73. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/l64781.ko
  74. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/mt352.ko
  75. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/nxt6000.ko
  76. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/rtl2830.ko
  77. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/s5h1432.ko
  78. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp8870.ko
  79. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp887x.ko
  80. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/stv0367.ko
  81. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda10048.ko
  82. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda1004x.ko
  83. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/zl10353.ko
  84. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/usb/as102/dvb-as102.ko
  85. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/usb/au0828/au0828.ko
  86. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/usb/siano/smsusb.ko
  87. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/tuner.ko
  88. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-core.ko
  89. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-vmalloc.ko
  90. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/kernel/drivers/usb/class/cdc-acm.ko
  91. +173 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.alias
  92. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.alias.bin
  93. +483 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.builtin
  94. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.builtin.bin
  95. +36 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.dep
  96. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.dep.bin
  97. 0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.devname
  98. +36 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.order
  99. +1 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.softdep
  100. +112 −0 nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.symbols
  101. BIN nougat/gemini4g_p2/modules/3.18.41-nethunter+/modules.symbols.bin
  102. BIN nougat/gemini4g_p3/Image.gz-dtb
  103. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/i2c/algos/i2c-algo-bit.ko
  104. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsdvb.ko
  105. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/common/siano/smsmdtv.ko
  106. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/common/tveeprom.ko
  107. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9013.ko
  108. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/af9033.ko
  109. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/as102_fe.ko
  110. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22700.ko
  111. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cx22702.ko
  112. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/cxd2820r.ko
  113. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mb.ko
  114. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib3000mc.ko
  115. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000m.ko
  116. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib7000p.ko
  117. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dib9000.ko
  118. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/dibx000_common.ko
  119. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/ec100.ko
  120. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/hd29l2.ko
  121. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/l64781.ko
  122. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/mt352.ko
  123. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/nxt6000.ko
  124. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/rtl2830.ko
  125. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/s5h1432.ko
  126. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp8870.ko
  127. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/sp887x.ko
  128. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/stv0367.ko
  129. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda10048.ko
  130. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/tda1004x.ko
  131. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/dvb-frontends/zl10353.ko
  132. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/usb/as102/dvb-as102.ko
  133. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/usb/au0828/au0828.ko
  134. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/usb/siano/smsusb.ko
  135. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/tuner.ko
  136. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-core.ko
  137. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/media/v4l2-core/videobuf-vmalloc.ko
  138. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/kernel/drivers/usb/class/cdc-acm.ko
  139. +173 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.alias
  140. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.alias.bin
  141. +483 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.builtin
  142. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.builtin.bin
  143. +36 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.dep
  144. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.dep.bin
  145. 0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.devname
  146. +36 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.order
  147. +1 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.softdep
  148. +112 −0 nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.symbols
  149. BIN nougat/gemini4g_p3/modules/3.18.41-nethunter+/modules.symbols.bin
  150. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/bluetooth/bcm203x.ko
  151. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/bluetooth/bfusb.ko
  152. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/bluetooth/bpa10x.ko
  153. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/ath/ath9k/ath9k_common.ko
  154. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/ath/ath9k/ath9k_htc.ko
  155. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/ath/ath9k/ath9k_hw.ko
  156. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/ath/carl9170/carl9170.ko
  157. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt2500usb.ko
  158. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt2800lib.ko
  159. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt2800usb.ko
  160. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt2x00lib.ko
  161. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt2x00usb.ko
  162. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rt2x00/rt73usb.ko
  163. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rtl818x/rtl8187/rtl8187.ko
  164. BIN ...tara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
  165. BIN ...t/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
  166. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko
  167. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/net/wireless/zd1201.ko
  168. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/drivers/scsi/scsi_wait_scan.ko
  169. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/net/bluetooth/rfcomm/rfcomm.ko
  170. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/kernel/net/mac80211/mac80211.ko
  171. +517 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.alias
  172. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.alias.bin
  173. +566 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.builtin
  174. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.builtin.bin
  175. +21 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.dep
  176. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.dep.bin
  177. +1 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.devname
  178. +21 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.order
  179. +1 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.softdep
  180. +342 −0 nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.symbols
  181. BIN nougat/victara/3.4.42-exocet-g0ccc400-dirty/modules.symbols.bin
  182. BIN nougat/victara/zImage-dtb
  183. +1 −0 pie/placeholder
@@ -11,7 +11,7 @@ You can find that here: https://github.com/offensive-security/kali-nethunter/tre
All devices are contained in devices.cfg. If you want to add your own device you would add something like:

```sh
# Full device name for CyanogenMod (or some other ROM)
# Full device name for LineageOS (or some other ROM)
[codename]
author = "Your Name"
version = "1.0"
@@ -21,8 +21,8 @@ ramdisk = gzip
block = /dev/block/WHATEVER/by-name/boot
devicenames = codename codename2_if_it_has_one
```
Some devices have more then one codename like the OnePlus One, or variants like the Nexus 7 2012/2013. You should add multiple codenames to devicenames.
Getting the block location isn't too difficult, you can look at other kernels to see where they are installing their boot.img or you can also look at CyanogenMod device repo in the BoardConfig.mk file.
Some devices have more than one codename like the OnePlus One, or variants like the Nexus 7 2012/2013. You should add multiple codenames to devicenames.
Getting the block location isn't too difficult, you can look at other kernels to see where they are installing their boot.img or you can also look at LineageOS device repo in the BoardConfig.mk file.

All fields are optional except the [codename] entry. It's recommended that you leave out any defaults from your device entry to keep it short.
Here are the device entry option defaults:
@@ -45,7 +45,7 @@ As a last resort, you can also include:
`getprop ro.product.name`
Keep in mind that each name is space delimited, and you can't quote them, so don't use values with spaces in them!

If porting for CyanogenMod rather than stock, it's recommended to append cm to the codename in [], ex. `[codenamecm]`
If porting for LineageOS rather than stock, it's recommended to append -los to the codename in [], ex. `[codename-los]`

Once you have a device added to devices.cfg, you need to add a prebuilt kernel to the device's folder.
It should be formatted as:
@@ -54,8 +54,24 @@ It should be formatted as:

Some devices may require a separate dtb file. You can place a `dtb.img` file in the same location as the kernel image, and it will be automatically added to the installer.

If you choose to build kernel modules for your device instead of including them in the kernel image, they can be placed at the location:
`[androidversion]/[codename]/modules/*.ko` or `[androidversion]/[codename]/modules/[kernelversion]/...`
Please use the latter when possible by preparing your kernel modules for install (modprobe support) with the command:
`make INSTALL_MOD_PATH="." INSTALL_MOD_STRIP=1 modules_install`
Alternatively, use the build scripts mentioned below which do this already!

So really all you need is a kernel image and sometimes a dtb.img to build for a new device.

Don't forget to add your newly supported device's kernel sources to the kernels.txt file!

Sat Oct 22 21:31:18 EST 2016
## Building a kernel for your device

There are scripts in the `example_scripts` folder that you can copy to the root of your device's kernel sources.
They should be modified to match your device. It will make it easier to build your device's kernel outside of an Android source tree.

The binary output from the build will be self-contained in a `build` folder, with the kernel modules properly stripped and installed with their modprobe data in `build/lib/modules`.

Using these scripts in your source tree will make it easier for others to make modifications and update your device in the future. It will also increase the likelihood your device will be accepted into the nethunter-devices repository as an officially supported device!


Thu Feb 28 21:05:22 EST 2019
@@ -496,6 +496,30 @@ kernelstring = "NetHunter Kernel TW"
version = "1.0"
devicenames = a5ulte a5ultexx SM-A500FU

# Planet Computers Gemini PDA 4G - Partition #1
[gemini4g_p1]
author = "Re4son"
version = "0.2"
arch = arm64
devicenames = geminipda
block = /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot

# Planet Computers Gemini PDA 4G - Partition #2
[gemini4g_p2]
author = "Re4son"
version = "0.2"
arch = arm64
devicenames = geminipda
block = /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot2

# Planet Computers Gemini PDA 4G - Partition #3
[gemini4g_p3]
author = "Re4son"
version = "0.2"
arch = arm64
devicenames = geminipda
block = /dev/block/platform/mtk-msdc.0/11230000.msdc0/by-name/boot3

# Sony Xperia ZR for Cyanogenmod
[dogo]
author = "Daedroza"
@@ -539,6 +563,13 @@ kernelstring = "NetHunter Kernel For LeEco Le 2"
arch = arm64
block = /dev/block/bootdevice/by-name/boot

# Moto X2 (2014)
[victara]
author = "DSR!"
version = "3.0"
arch = armhf
devicenames = victara

# Motorola Moto G5
[cedric]
author = "rajeshdubey293"
@@ -0,0 +1,127 @@
#!/bin/bash
# script for building NetHunter kernels by jcadduono

################### BEFORE STARTING ################
#
# download a working toolchain and extract it somewhere and configure this
# file to point to the toolchain's root directory.
# this file should be placed in your kernel source folder with
# the CONFIG section edited to work for your device.
#
# once you've set up the config section how you like it, you can simply run
# ./build.sh [DEVICE] [TARGET]
#
# make a copy of your device's original defconfig file.
# the new defconfig file should follow the format:
# arch/arm64/configs/nethunter_yourdevice_defconfig
#
###################### CONFIG ######################

# default device name (change this!)
DEFAULT_DEVICE=yourdevice

# default target name
DEFAULT_TARGET=nethunter

# release version (increment this with new releases)
RELEASE_VERSION=1.0

# directory containing cross-compile arm64 toolchain (change this!)
TOOLCHAIN=/opt/toolchain/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu

############## SCARY NO-TOUCHY STUFF ###############

# root directory of kernel source git repo (default is this script's location)
RDIR=$(pwd)

CPU_THREADS=$(grep -c "processor" /proc/cpuinfo)
# amount of cpu threads to use in kernel make process
THREADS=$((CPU_THREADS + 1))

ABORT() {
[ "$1" ] && echo "Error: $*"
exit 1
}

CONTINUE=false
export ARCH=arm64
export CROSS_COMPILE=$TOOLCHAIN/bin/aarch64-linux-gnu-

[ -x "${CROSS_COMPILE}gcc" ] ||
ABORT "Unable to find gcc cross-compiler at location: ${CROSS_COMPILE}gcc"

while [ $# != 0 ]; do
if [ "$1" = "--continue" ] || [ "$1" == "-c" ]; then
CONTINUE=true
elif [ ! "$TARGET" ]; then
TARGET=$1
elif [ ! "$DEVICE" ]; then
DEVICE=$1
else
echo "Too many arguments!"
echo "Usage: ./build.sh [--continue] [device] [target defconfig]"
ABORT
fi
shift
done

[ "$DEVICE" ] || DEVICE=$DEFAULT_DEVICE
[ "$TARGET" ] || TARGET=$DEFAULT_TARGET
DEFCONFIG=${TARGET}_${DEVICE}_defconfig

[ -f "$RDIR/arch/$ARCH/configs/${DEFCONFIG}" ] ||
ABORT "Config $DEFCONFIG not found in $ARCH configs!"

export LOCALVERSION=$TARGET-$DEVICE-$RELEASE_VERSION

CLEAN_BUILD() {
echo "Cleaning build..."
rm -rf build
}

SETUP_BUILD() {
echo "Creating kernel config for $LOCALVERSION..."
mkdir -p build
make -C "$RDIR" O=build "$DEFCONFIG" \
|| ABORT "Failed to set up build"
}

BUILD_KERNEL() {
echo "Starting build for $LOCALVERSION..."
while ! make -C "$RDIR" O=build -j"$THREADS"; do
read -rp "Build failed. Retry? " do_retry
case $do_retry in
Y|y) continue ;;
*) return 1 ;;
esac
done
}

INSTALL_MODULES() {
grep -q 'CONFIG_MODULES=y' build/.config || return 0
echo "Installing kernel modules to build/lib/modules..."
while ! make -C "$RDIR" O=build \
INSTALL_MOD_PATH="." \
INSTALL_MOD_STRIP=1 \
modules_install
do
read -rp "Build failed. Retry? " do_retry
case $do_retry in
Y|y) continue ;;
*) return 1 ;;
esac
done
rm build/lib/modules/*/build build/lib/modules/*/source
}

cd "$RDIR" || ABORT "Failed to enter $RDIR!"

if ! $CONTINUE; then
CLEAN_BUILD
SETUP_BUILD ||
ABORT "Failed to set up build!"
fi

BUILD_KERNEL &&
INSTALL_MODULES &&
echo "Finished building $LOCALVERSION!"
@@ -0,0 +1,95 @@
#!/bin/bash
# script for configuring NetHunter kernels by jcadduono

################### BEFORE STARTING ################
#
# download a working toolchain and extract it somewhere and configure this
# file to point to the toolchain's root directory.
# this file should be placed in your kernel source folder with
# the CONFIG section edited to work for your device.
#
# once you've set up the config section how you like it, you can simply run
# ./menuconfig.sh [DEVICE] [TARGET]
#
# make a copy of your device's original defconfig file.
# the new defconfig file should follow the format:
# arch/arm64/configs/nethunter_yourdevice_defconfig
#
###################### CONFIG ######################

# default device name (change this!)
DEFAULT_DEVICE=yourdevice

# default target name
DEFAULT_TARGET=nethunter

# directory containing cross-compile arm64 toolchain (change this!)
TOOLCHAIN=/opt/toolchain/gcc-linaro-5.5.0-2017.10-x86_64_aarch64-linux-gnu

############## SCARY NO-TOUCHY STUFF ###############

# root directory of kernel source git repo (default is this script's location)
RDIR=$(pwd)

ABORT() {
[ "$1" ] && echo "Error: $*"
exit 1
}

export ARCH=arm64
export CROSS_COMPILE=$TOOLCHAIN/bin/aarch64-linux-gnu-

[ -x "${CROSS_COMPILE}gcc" ] ||
ABORT "Unable to find gcc cross-compiler at location: ${CROSS_COMPILE}gcc"

while [ $# != 0 ]; do
if [ ! "$DEVICE" ]; then
DEVICE=$1
elif [ ! "$TARGET" ]; then
TARGET=$1
else
echo "Too many arguments!"
echo "Usage: ./menuconfig.sh [device] [target defconfig]"
ABORT
fi
shift
done

[ "$DEVICE" ] || DEVICE=$DEFAULT_DEVICE
[ "$TARGET" ] || TARGET=$DEFAULT_TARGET
DEFCONFIG=${TARGET}_${DEVICE}_defconfig
DEFCONFIG_FILE=$RDIR/arch/$ARCH/configs/$DEFCONFIG

[ -f "$DEFCONFIG_FILE" ] ||
ABORT "Device config $DEFCONFIG not found in $ARCH configs!"

cd "$RDIR" || ABORT "Failed to enter $RDIR!"

echo "Cleaning build..."
rm -rf build
mkdir build
make -s -i -C "$RDIR" O=build "$DEFCONFIG" menuconfig
echo "Showing differences between old config and new config"
echo "-----------------------------------------------------"
if command -v colordiff >/dev/null 2>&1; then
diff -Bwu --label "old config" "$DEFCONFIG_FILE" --label "new config" build/.config | colordiff
else
diff -Bwu --label "old config" "$DEFCONFIG_FILE" --label "new config" build/.config
echo "-----------------------------------------------------"
echo "Consider installing the colordiff package to make diffs easier to read"
fi
echo "-----------------------------------------------------"
echo -n "Are you satisfied with these changes? y/N: "
read -r option
case $option in
y|Y)
cp build/.config "$DEFCONFIG_FILE"
echo "Copied new config to $DEFCONFIG_FILE"
;;
*)
echo "That's unfortunate"
;;
esac
echo "Cleaning build..."
rm -rf build
echo "Done."
@@ -108,6 +108,9 @@ If you wish to add a kernel/new device, leave a link to source here and feel fre
# LineageOS 14.X
# git clone https://github.com/nethunteros/android_kernel_oneplus_msm8998 -b boeffla_cm14 oneplus5

# - Planet Computers Gemini PDA 4G
# git clone https://github.com/Re4son/gemini-kali-linux-kernel-3.18 -b nethunter

# - LG G5 & LG V20
# LG Stock
# git clone https://github.com/jcadduono/android_kernel_lge_msm8996.git -b nethunter-7.0
@@ -171,6 +174,9 @@ If you wish to add a kernel/new device, leave a link to source here and feel fre
# - LeEco Le 2
# git clone https://github.com/nethunter-s2/android_kernel_leeco_s2.git -b cm-14.1

# - Moto X2 (2014)
# git clone https://github.com/xchwarze/nethunter-motorola-x2-kernel -b cm-14.1

# - Motorola Moto G5
# Lineage OS 15.1 Based ROM's
# git clone https://github.com/rajeshdubey293/al-ice_cedric.git -b working
@@ -211,3 +217,5 @@ If you wish to add a kernel/new device, leave a link to source here and feel fre
# Linaro ARM optimized
# ARMv7: wget https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/arm-linux-gnueabihf/gcc-linaro-4.9-2016.02-x86_64_arm-linux-gnueabihf.tar.xz
# ARMv8: wget https://releases.linaro.org/components/toolchain/binaries/4.9-2016.02/aarch64-linux-gnu/gcc-linaro-4.9-2016.02-x86_64_aarch64-linux-gnu.tar.xz
# Uber Linaro
# git clone https://bitbucket.org/UBERTC/arm-eabi-4.9.git
Binary file not shown.
Oops, something went wrong.

0 comments on commit 57a956a

Please sign in to comment.
You can’t perform that action at this time.