A2.BuildForHpMini.Tool 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. # Compile the compiler
  2. oc/Fox.Tool
  3. # full build (old object file)
  4. FSTools.DeleteFiles bin/* ~
  5. FSTools.CreateDirectory bin/ ~
  6. Release.Build
  7. -f=Timothee/USB/Release.Tool --path="bin/" --build --zip
  8. --exclude="Oberon OberonGadgets OberonApplications OberonDocumentation OberonVoyager OberonAnts"
  9. A2 ~
  10. # full build (new object file)
  11. FSTools.DeleteFiles bin/* ~
  12. FSTools.CreateDirectory bin/ ~
  13. Release.Build
  14. -f=Timothee/USB/Release.Tool --path="bin/" --build --zip
  15. A2NewObjectFile ~
  16. # Create image for bootable USB (A2USB.img)
  17. SystemTools.DoCommands
  18. Compiler.Compile --mergeSections -b=AMD --objectFileExtension=.Gox --symbolFileExtension=.Syx --destPath=bin/
  19. UsbDebug.Mod
  20. (* NEW *)
  21. Timothee/USB/UsbBuffers.Mod
  22. Timothee/USB/Usbdi.Mod
  23. Timothee/USB/UsbHcdi.Mod
  24. Timothee/USB/UsbVarTdAlloc.Mod
  25. Timothee/USB/UsbEhci.Mod
  26. UsbEhciPCI.Mod
  27. UsbDriverLoader.Mod
  28. UsbUtilities.Mod
  29. Timothee/USB/Usb.Mod
  30. Timothee/USB/UsbHubDriver.Mod
  31. Timothee/USB/UsbInfo.Mod
  32. ~
  33. PCAAMD64.Assemble OBLUnreal.Asm ~
  34. PartitionsLib.SetBootLoaderFile OBLUnreal.Bin ~
  35. PCAAMD64.Assemble BootManager.Asm ~
  36. BootManager.Split BootManager.Bin ~
  37. SystemTools.Timer start ~
  38. FSTools.DeleteFiles Timothee/USB/A2USB.img ~
  39. VirtualDisks.Create Timothee/USB/A2USB.img 400000 512 ~
  40. VirtualDisks.Install -b=512 VDISK0 Timothee/USB/A2USB.img ~
  41. StaticLinker.Link
  42. --fileName=bin/USB.bin
  43. --extension=Gox
  44. --displacement=0100000H
  45. --path="bin/"
  46. Runtime Trace Machine Heaps Modules Objects Kernel
  47. KernelLog Streams Reflection TrapWriters Traps Plugins
  48. UsbDriverLoader UsbBuffers Locks Usbdi UsbDebug UsbHcdi UsbUtilities Usb UsbHubDriver UsbVarTdAlloc UsbEhci PCI UsbEhciPCI UsbInfo
  49. Disks Commands
  50. UsbStorageBase UsbStorageBot UsbStorageBoot
  51. Reals Clock Dates Strings Caches Files DiskVolumes DiskFS
  52. Diagnostics FoxProfiler BitSets StringPool ObjectFile GenericLinker GenericLoader BootConsole
  53. ~
  54. StaticLinker.Link
  55. --fileName=bin/IDE.Bin
  56. --extension=Gox
  57. --displacement=0100000H
  58. --path="bin/"
  59. Runtime Trace Machine Heaps Modules Objects Kernel
  60. KernelLog Plugins Streams Commands Reals
  61. Reflection TrapWriters Traps Locks PCI Clock MemCache Disks Files
  62. ATADisks DiskVolumes DiskFS
  63. Dates Strings UTF8Strings Caches
  64. Diagnostics BitSets ObjectFile GenericLinker StringPool GenericLoader
  65. Loader BootConsole ~
  66. (* Partitions.WriteMBR VDISK0#0 OBEMBR.Bin ~ *)
  67. Partitions.InstallBootManager VDISK0#0 BootManagerMBR.Bin BootManagerTail.Bin ~
  68. Partitions.Create VDISK0#1 76 200 ~
  69. (* Partitions.Activate VDISK0#1 ~ *)
  70. Partitions.Format VDISK0#1 AosFS -1 bin/IDE.Bin ~ (* -1 makes sure that actual boot file size is taken as offset for AosFS *)
  71. FSTools.Mount TEMP AosFS VDISK0#1 ~
  72. ZipTool.ExtractAll --prefix=TEMP: --sourcePath=bin/ --overwrite --silent
  73. Kernel.zip System.zip Drivers.zip ApplicationsMini.zip Applications.zip Compiler.zip
  74. GuiApplicationsMini.zip GuiApplications.zip Fun.zip Contributions.zip Build.zip
  75. ScreenFonts.zip
  76. CompilerSrc.zip KernelSrc.zip SystemSrc.zip DriversSrc.zip ApplicationsMiniSrc.zip ApplicationsSrc.zip GuiApplicationsMiniSrc.zip GuiApplicationsSrc.zip FunSrc.zip BuildSrc.zip
  77. ~
  78. FSTools.Watch TEMP ~
  79. FSTools.Unmount TEMP ~
  80. Partitions.SetConfig VDISK0#1
  81. TraceMode="5"
  82. TracePort="1"
  83. TraceBPS="115200"
  84. BootVol1="AOS AosFS IDE0#1"
  85. AosFS="DiskVolumes.New DiskFS.NewFS"
  86. CacheSize="1000"
  87. ExtMemSize="512"
  88. MaxProcs="-1"
  89. ATADetect="other"
  90. Init="144"
  91. Boot="DisplayLinear.Install"
  92. Boot1="Keyboard.Install;MousePS2.Install"
  93. Boot2="DriverDatabase.Enable;UsbHubDriver.Install;UsbEhciPCI.Install"
  94. Boot3="UsbMouse.Install"
  95. Boot4="WindowManager.Install"
  96. Boot5="Autostart.Run"
  97. ObjectFileExtension =".Gox"
  98. ~
  99. VirtualDisks.Uninstall VDISK0 ~
  100. SystemTools.Show USB image build time: ~ SystemTools.Timer elapsed ~
  101. FSTools.CloseFiles Timothee/USB/A2USB.img ~
  102. SystemTools.Ln ~
  103. SystemTools.Show "Done!"~
  104. ~
  105. VirtualDisks.Install VDISK0 Timothee/USB/A2USB.img ~
  106. WinDisks.Install E: RW ~
  107. FSTools.Mount EXT AosFS PhysicalDrive1#1 ~
  108. FSTools.Unmount EXT ~
  109. SystemTools.DoCommands
  110. Partitions.FileToPartition PhysicalDrive1#0 Timothee/USB/A2USB.img 0 400000 ~
  111. Partitions.SetConfig PhysicalDrive1#1
  112. TraceMode="1"
  113. TraceMem="0"
  114. TracePort="1"
  115. TraceBPS="115200"
  116. BootVol1="AOS AosFS USB0#1"
  117. AosFS="DiskVolumes.New DiskFS.NewFS"
  118. CacheSize="1000"
  119. ExtMemSize="512"
  120. MaxProcs="-1"
  121. ATADetect="other"
  122. Init="117"
  123. Boot="FileTracer.Install;UsbVideo.Install"
  124. ~
  125. WinDisks.Uninstall "PhysicalDrive1" ~
  126. ~
  127. VirtualDisks.Install -b=512 VDISK0 TL.img ~
  128. FSTools.Mount TEMP AosFS VDISK0#1 ~
  129. FSTools.Unmount TEMP ~
  130. VirtualDisks.Uninstall VDISK0 ~
  131. ================= Default Linker Command 1 =================
  132. Linker.Link \Pbin/ \.Obx bin/USB.Bin 0100000H 100000H Kernel Traps
  133. UsbHubDriver UsbTouchscreen UsbEhci UsbEhciPCI UsbUhci UsbStorageBoot UsbInfo
  134. DiskVolumes DiskFS
  135. Loader BootConsole ~
  136. ================= Default Partition Config ====================
  137. Partitions.SetConfig PhysicalDrive1#1
  138. TraceMode="1"
  139. TraceMem="0"
  140. TracePort="1"
  141. TraceBPS="115200"
  142. BootVol1="AOS AosFS USB0#1"
  143. AosFS="DiskVolumes.New DiskFS.NewFS"
  144. CacheSize="1000"
  145. ExtMemSize="512"
  146. MaxProcs="-1"
  147. ATADetect="other"
  148. Init="161"
  149. Boot="DisplayLinear.Install"
  150. Boot1="Keyboard.Install"
  151. Boot2="DriverDatabase.Enable;UsbHubDriver.Install;UsbEhciPCI.Install;UsbUhci.Install;UsbOhci.Install"
  152. Boot3="UsbMouse.Install;UsbHid.Install"
  153. ~
  154. Boot4="WindowManager.Install"
  155. Boot5="Autostart.Run"
  156. ~
  157. === Test Configuration to get tracing on screen at boot time ===
  158. WinDisks.Install F: RW ~
  159. Partitions.SetConfig PhysicalDrive1#1
  160. TraceMode="1"
  161. TraceMem="0"
  162. TracePort="1"
  163. TraceBPS="115200"
  164. BootVol1="AOS AosFS USB0#1"
  165. AosFS="DiskVolumes.New DiskFS.NewFS"
  166. CacheSize="1000"
  167. ExtMemSize="512"
  168. MaxProcs="-1"
  169. ATADetect="other"
  170. Init="117"
  171. Boot="FileTracer.Install;UsbVideo.Install"
  172. ~
  173. WinDisks.Uninstall "PhysicalDrive1" ~
  174. TraceDelay="10000"
  175. Partitions.SetConfig PhysicalDrive1#1
  176. TraceMode="0"
  177. TracePort="1"
  178. TraceBPS="115200"
  179. BootVol1="AOS AosFS USB0#1"
  180. AosFS="DiskVolumes.New DiskFS.NewFS"
  181. CacheSize="1000"
  182. ExtMemSize="512"
  183. MaxProcs="-1"
  184. ATADetect="other"
  185. Init="161"
  186. Boot="DisplayLinear.Install"
  187. Boot1="Keyboard.Install"
  188. Boot2="DriverDatabase.Enable;UsbHubDriver.Install;UsbEhciPCI.Install;UsbUhci.Install;UsbOhci.Install"
  189. Boot3="UsbMouse.Install;UsbVideo.Install"
  190. Boot4="WindowManager.Install"
  191. Boot5="Autostart.Run"
  192. ~