mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 04:18:43 +00:00
Updated Syslinux to 6.03, it works!
This commit is contained in:
parent
cd8c98a3b0
commit
2df6fd319e
9 changed files with 30 additions and 23 deletions
Binary file not shown.
BIN
Build/ISO/ldlinux.c32
Normal file
BIN
Build/ISO/ldlinux.c32
Normal file
Binary file not shown.
BIN
Build/ISO/mboot.c32
Normal file
BIN
Build/ISO/mboot.c32
Normal file
Binary file not shown.
|
|
@ -42,7 +42,7 @@ scsi0.pciSlotNumber = "16"
|
|||
vmci0.pciSlotNumber = "32"
|
||||
vmotion.checkpointFBSize = "23920640"
|
||||
vmci0.id = "1821907405"
|
||||
|
||||
monitor.allowLegacyCPU = "TRUE"
|
||||
serial0.present = "TRUE"
|
||||
serial0.yieldOnMsrRead = "TRUE"
|
||||
serial0.fileType = "pipe"
|
||||
|
|
|
|||
BIN
Build/ldlinux.c32
Normal file
BIN
Build/ldlinux.c32
Normal file
Binary file not shown.
BIN
Build/libcom32.c32
Normal file
BIN
Build/libcom32.c32
Normal file
Binary file not shown.
BIN
Build/mboot.c32
BIN
Build/mboot.c32
Binary file not shown.
|
|
@ -24,6 +24,8 @@ namespace Cosmos.Build.Common
|
|||
File.Copy(Path.Combine(buildISO, "isolinux.bin"), Path.Combine(isoDirectory, "isolinux.bin"));
|
||||
File.Copy(Path.Combine(buildISO, "mboot.c32"), Path.Combine(isoDirectory, "mboot.c32"));
|
||||
File.Copy(Path.Combine(buildISO, "syslinux.cfg"), Path.Combine(isoDirectory, "syslinux.cfg"));
|
||||
File.Copy(Path.Combine(buildISO, "ldlinux.c32"), Path.Combine(isoDirectory, "ldlinux.c32"));
|
||||
File.Copy(Path.Combine(buildISO, "libcom32.c32"), Path.Combine(isoDirectory, "libcom32.c32"));
|
||||
File.Copy(imageFile, Path.Combine(isoDirectory, "Cosmos.bin"));
|
||||
|
||||
string arg =
|
||||
|
|
|
|||
|
|
@ -5,29 +5,34 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.IO;
|
||||
|
||||
namespace Cosmos.Build.Common {
|
||||
public class UsbMaker {
|
||||
namespace Cosmos.Build.Common
|
||||
{
|
||||
public class UsbMaker
|
||||
{
|
||||
static public void Generate(string aDrive, string aKernelFile)
|
||||
{
|
||||
string xDrive = aDrive + @":\";
|
||||
string xPathUSB = Path.Combine(CosmosPaths.Build, "USB");
|
||||
|
||||
static public void Generate(string aDrive, string aKernelFile) {
|
||||
string xDrive = aDrive + @":\";
|
||||
string xPathUSB = Path.Combine(CosmosPaths.Build, "USB");
|
||||
// Copy to USB device
|
||||
File.Copy(Path.Combine(xPathUSB, "mboot.c32"), xDrive + "mboot.c32", true);
|
||||
File.Copy(Path.Combine(xPathUSB, "syslinux.cfg"), xDrive + "syslinux.cfg", true);
|
||||
File.Copy(Path.Combine(xPathUSB, "ldlinux.c32"), xDrive + "ldlinux.c32");
|
||||
File.Copy(Path.Combine(xPathUSB, "libcom32.c32"), xDrive + "libcom32.c32");
|
||||
File.Copy(aKernelFile, xDrive + "Cosmos.bin", true);
|
||||
//File.Copy(Path.Combine(xPathUSB, "syslinux-x86.efi"), xDrive + "syslinux-x86.efi", true);
|
||||
//File.Copy(Path.Combine(xPathUSB, "syslinux-x64.efi"), xDrive + "syslinux-x64.efi", true);
|
||||
|
||||
// Copy to USB device
|
||||
File.Copy(Path.Combine(xPathUSB, "mboot.c32"), xDrive + "mboot.c32", true);
|
||||
File.Copy(Path.Combine(xPathUSB, "syslinux.cfg"), xDrive + "syslinux.cfg", true);
|
||||
File.Copy(aKernelFile, xDrive + "Cosmos.bin", true);
|
||||
|
||||
// Set MBR
|
||||
//
|
||||
// In future we might be able to bring this in house to reduce external calls.
|
||||
// - syslinux-4.05\win\syslinux.c - has source we need.
|
||||
// - http://www.fort-awesome.net/blog/2010/03/25/MBR_VBR_and_Raw_Disk
|
||||
//
|
||||
var xPSI = new ProcessStartInfo(Path.Combine(CosmosPaths.Tools, "syslinux.exe"), "-fma " + aDrive + ":");
|
||||
xPSI.UseShellExecute = false;
|
||||
xPSI.CreateNoWindow = true;
|
||||
Process.Start(xPSI);
|
||||
// Set MBR
|
||||
//
|
||||
// In future we might be able to bring this in house to reduce external calls.
|
||||
// - syslinux-4.05\win\syslinux.c - has source we need.
|
||||
// - http://www.fort-awesome.net/blog/2010/03/25/MBR_VBR_and_Raw_Disk
|
||||
//
|
||||
var xPSI = new ProcessStartInfo(Path.Combine(CosmosPaths.Tools, "syslinux.exe"), "-fma " + aDrive + ":");
|
||||
xPSI.UseShellExecute = false;
|
||||
xPSI.CreateNoWindow = true;
|
||||
Process.Start(xPSI);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue