camekommd

sunlogo

Aug 27th, 2026
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. -- CameronOS Boot Screen
  2. -- Authentic Sun SPARC-5 style BIOS
  3.  
  4. local function bootScreen()
  5. term.setBackgroundColor(colors.white)
  6. term.setTextColor(colors.gray)
  7. term.clear()
  8. term.setCursorPos(1, 1)
  9.  
  10. -- Memory bank probing
  11. print("Probing Memory Bank #2 32 Megabytes")
  12. print("Probing Memory Bank #3 Nothing there")
  13. print("Probing Memory Bank #4 Nothing there")
  14. print("Probing Memory Bank #5 Nothing there")
  15. print("Probing Memory Bank #6 Nothing there")
  16. print("Probing Memory Bank #7 Nothing there")
  17. sleep(0.3)
  18.  
  19. print("Probing CPU FMI,MB86904")
  20. sleep(0.2)
  21. print("Probing /iommu@0,10000000/sbus@0,10001000 at 5,0 espdma esp sd st SUNW,bpp ledm")
  22. print("a le")
  23. sleep(0.2)
  24. print("Probing /iommu@0,10000000/sbus@0,10001000 at 4,0 SUNW,CS4231 power-management")
  25. print("Probing /iommu@0,10000000/sbus@0,10001000 at 1,0 Nothing there")
  26. print("Probing /iommu@0,10000000/sbus@0,10001000 at 2,0 cgthree")
  27. print("Probing /iommu@0,10000000/sbus@0,10001000 at 3,0 Nothing there")
  28. print("Probing /iommu@0,10000000/sbus@0,10001000 at 0,0 Nothing there")
  29. sleep(0.5)
  30.  
  31. print("")
  32.  
  33. -- Sun logo and system info
  34. local logoStartY = 14
  35. term.setCursorPos(1, logoStartY)
  36.  
  37. -- Draw Sun logo
  38. term.setTextColor(colors.gray)
  39. term.setBackgroundColor(colors.white)
  40. term.clear()
  41. local logo = {
  42. " /\\ ",
  43. " / \\ ",
  44. " /\\ \\ \\ ",
  45. " /\\ \\ \\ \\ ",
  46. " /\\ \\ \\ \\/\\ ",
  47. " / /\\ \\ \\/ /\\ ",
  48. " / / /\\ / / /\\",
  49. "/ / / \\/ / / \\",
  50. "\\ / / /\\ / / /",
  51. " \\/ / / \\/ / /",
  52. " \\/ /\\ \\ \\/ /",
  53. " \\/\\ \\ \\ \\/",
  54. " \\ \\ \\ \\/",
  55. " \\ \\ \\/",
  56. " \\ /",
  57. " \\/ "
  58. }
  59.  
  60. for _, line in ipairs(logo) do
  61. sleep(0.02)
  62. print(line)
  63. end
  64.  
  65. sleep(2)
  66. term.setTextColor(colors.gray)
  67. term.setCursorPos(1, logoStartY + 17)
  68. term.setTextColor(colors.gray)
  69. term.setCursorPos(1, logoStartY + 15)
  70.  
  71.  
  72. term.clear()
  73. term.setCursorPos(1,1)
  74.  
  75. print("SPARCstation 5, Keyboard Present")
  76. --term.setCursorPos(1, logoStartY + 18)
  77. print("ROM Rev. 2.15, Some memory installed, Serial #921102.")
  78. --term.setCursorPos(1, logoStartY + 19)
  79. local computer = os.getComputerID()
  80. print("Rednet address unknown, Host ID: " .. computer)
  81. print("")
  82. sleep(0.5)
  83. sleep(1)
  84.  
  85. -- Boot device info
  86. print("Boot device: /iommu/sbus/ledma@5,8400010/le@5,8c00000 File and args:")
  87. sleep(0.3)
  88. print("Checking for rednet modem...")
  89. sleep(1)
  90. local modem = peripheral.find("modem")
  91. print("")
  92. if modem then
  93. print("Modem would be: " .. tostring(modem))
  94. else
  95. print("Timeout waiting for REDNET packet")
  96. end
  97. sleep(1)
  98. print("Lost Carrier (transceiver cable problem?)")
  99. print("Cable problem or twisted pair hub link-test disabled.")
  100. print("Use the PROM command 'help rednet' for more information.")
  101. sleep(0.5)
  102. print("")
  103. print("")
  104. --print("Type help for more information")
  105. write("ok boot disk")
  106.  
  107. -- Cursor simulation
  108. local cursorTimer = os.startTimer(0.5)
  109. local showCursor = true
  110. local waited = 0
  111.  
  112. while waited < 2 do
  113. local event, param = os.pullEvent()
  114. if event == "timer" and param == cursorTimer then
  115. if showCursor then
  116. term.setBackgroundColor(colors.gray)
  117. write(" ")
  118. local x, y = term.getCursorPos()
  119. term.setCursorPos(x - 1, y)
  120. else
  121. write(" ")
  122. local x, y = term.getCursorPos()
  123. term.setCursorPos(x - 1, y)
  124. term.setBackgroundColor(colors.white)
  125. end
  126. showCursor = not showCursor
  127. cursorTimer = os.startTimer(0.5)
  128. waited = waited + 0.5
  129. elseif event == "key" then
  130. break
  131. end
  132. end
  133.  
  134. print("")
  135. print("")
  136. sleep(0.3)
  137.  
  138. -- Transition to kernel boot
  139. term.setBackgroundColor(colors.black)
  140. term.setTextColor(colors.white)
  141. term.clear()
  142. term.setCursorPos(1, 1)
  143. end
  144.  
  145. -- Run boot screen
  146. bootScreen()
  147.  
  148. print("SunOS Release 5.7 Version Generic [UNIX(R) System V Release 4.0]")
  149. print("Copyright (c) 1983-1999, Sun Microsystems, Inc.")
  150. print("")
  151. print("Booting kernel...")
  152. sleep(0.5)
  153. print("")
  154. --print("Boot sequence complete!")
  155. --print("Next: Add kernel initialization and shell...")
  156. term.setBackgroundColor(colors.black)
  157. term.setTextColor(colors.white)
  158. term.clear()
  159.  
Advertisement
Add Comment
Please, Sign In to add comment