You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

petr.msg 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. From netboot-owner@baghira.han.de Thu Sep 16 12:08:44 1999
  2. Return-Path: <netboot-owner@baghira.han.de>
  3. Received: (from factotum@localhost)
  4. by baghira.han.de (8.9.3/8.9.3) id NAA23838
  5. for netboot-outgoing; Wed, 15 Sep 1999 13:12:44 +0200
  6. X-Authentication-Warning: baghira.han.de: factotum set sender to owner-netboot using -f
  7. Received: from hathi.han.de (root@hathi.han.de [192.109.225.1])
  8. by baghira.han.de (8.9.3/8.9.3) with ESMTP id NAA23785
  9. for <netboot@baghira.han.de>; Wed, 15 Sep 1999 13:11:02 +0200
  10. Received: from vsb.cz (root@decsys.vsb.cz [158.196.149.9])
  11. by hathi.han.de (8.9.3/8.9.3) with ESMTP id NAA04707
  12. for <netboot@baghira.han.de>; Wed, 15 Sep 1999 13:11:00 +0200
  13. Received: from nwfei1.vsb.cz (nwfei1.vsb.cz [158.196.146.13])
  14. by vsb.cz (8.9.3/8.9.1) with ESMTP id NAA22363
  15. for <netboot@baghira.han.de>; Wed, 15 Sep 1999 13:10:52 +0200 (MET DST)
  16. Received: from FEI1/SpoolDir by nwfei1.vsb.cz (Mercury 1.44);
  17. 15 Sep 99 13:10:50 +0100
  18. Received: from SpoolDir by FEI1 (Mercury 1.44); 15 Sep 99 13:10:27 +0100
  19. Received: from pcd403z.vsb.cz (158.196.146.9) by nwfei1.vsb.cz (Mercury 1.44) with ESMTP;
  20. 15 Sep 99 13:10:25 +0100
  21. Received: from oli10 by pcd403z.vsb.cz with local-esmtp (Exim 2.05 #1 (Debian))
  22. id 11RCxI-0000oT-00; Wed, 15 Sep 1999 13:10:28 +0200
  23. Date: Wed, 15 Sep 1999 13:10:28 +0200 (CEST)
  24. From: Petr Olivka <Petr.Olivka@vsb.cz>
  25. To: netboot@baghira.han.de
  26. Subject: netboot image on hard disk - it is easy
  27. In-Reply-To: <37DF4BD4.E8FFF8FC@gsmbox.com>
  28. Message-ID: <Pine.LNX.4.10.9909151247430.2936-100000@pcd403z.vsb.cz>
  29. MIME-Version: 1.0
  30. Content-Type: TEXT/PLAIN; charset=US-ASCII
  31. Sender: owner-netboot@baghira.han.de
  32. Precedence: bulk
  33. Reply-To: netboot@baghira.han.de
  34. X-Moderator: netboot-owner@baghira.han.de
  35. It is good joke, at this moment I have only simple version of MBR to load
  36. image from HD, but only from track 0. HD have to have enough sectors per
  37. track for rom image.
  38. And small program in turbo-pascal to download image to HD.
  39. below is assembler code for MBR. Is writen for tasm and tlink.
  40. If you have 512 bytes binary file with MBR code, then concat it with
  41. rom-image and download to hda. BUT NOT DIRECTLY !!!! You have to copy
  42. partition table ( and NT signature ) to MBR and then download. BUT ONLY tO
  43. TRACK 0.
  44. Everything in your own risk.
  45. If I will have some free time, I will write some code directly to netboot.
  46. poli
  47. .model large, pascal
  48. .code
  49. .386
  50. public mbrasm, mbrend
  51. ROMLOAD equ 5000h
  52. org 600h
  53. mbrasm proc
  54. cli
  55. xor ax, ax
  56. mov ss, ax
  57. mov sp, 7C00h
  58. mov si, sp
  59. mov es, ax
  60. mov ds, ax
  61. sti
  62. cld
  63. mov di, 600h
  64. mov cx, 100h
  65. rep movsw
  66. db 0EAh
  67. dw offset @@jump
  68. dw 0
  69. @@jump:
  70. mov si, offset Hlaska
  71. call @@print
  72. ; rozmery prvniho HD
  73. mov ah, 8
  74. mov dl, 80h
  75. int 13h
  76. jc @@chyba
  77. ; dh - H, cx - CS
  78. ; prvi stopa obsahuje bootrom, tak ji natahneme do RAM
  79. mov ah, 2
  80. mov al, cl
  81. and al, 3Fh
  82. dec al
  83. mov dx, 80h
  84. mov cx, 2
  85. mov bx, ROMLOAD
  86. mov es, bx
  87. xor bx, bx
  88. int 13h
  89. jc @@chyba
  90. ; hromada kodu podle zdrojaku netboot
  91. xor di, di
  92. mov es, di
  93. mov di, 380h
  94. push di
  95. mov cx, 10
  96. cld
  97. rep stosw
  98. pop di
  99. mov word ptr [ di ], 5a5ah
  100. mov byte ptr [ di + 2 ], 50h
  101. mov word ptr [ di + 10h ], 0FFFFh
  102. mov word ptr [ di + 12h ], 0FFFFh
  103. ; navratova adresa, kdyby nezabrala ROM
  104. mov OfsErr, offset RomErr
  105. push cs
  106. push offset @@chyba
  107. mov ax, ROMLOAD
  108. mov es, ax
  109. push es
  110. ; kouzelny jump....
  111. mov si, es:[ 1ah ]
  112. push word ptr es:[ si + 1ah ] ; ...do bootrom v RAM
  113. retf
  114. @@chyba:
  115. mov si, OfsErr
  116. call @@print
  117. mov si, offset CRLF
  118. call @@print
  119. jmp @@chyba
  120. @@print:
  121. lodsb
  122. cmp al,0
  123. je @@navrat
  124. push si
  125. mov bx,7
  126. mov ah,0Eh
  127. int 10h
  128. pop si
  129. jmp @@print
  130. @@navrat:
  131. retn
  132. Hlaska db 13, 10, 'HD Net Loader v1.0 (c) poli 1999', 13, 10, 0
  133. CRLF db 13, 10, 0
  134. OfsErr dw offset Error
  135. Error db 'Error load from HD !', 0
  136. RomErr db 'ROM Error !', 0
  137. mbrasm endp
  138. mbrend proc
  139. ret
  140. mbrend endp
  141. org 800h - 2
  142. dw 0AA55h
  143. end
  144. ===========================================================================
  145. This Mail was sent to netboot mailing list by:
  146. Petr Olivka <Petr.Olivka@vsb.cz>
  147. To get help about this list, send a mail with 'help' as the only string in
  148. it's body to majordomo@baghira.han.de. If you have problems with this list,
  149. send a mail to netboot-owner@baghira.han.de.