forked from hooklift/xhyve
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds tinycore kernel and initrd for testing
- Loading branch information
Showing
6 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
imgs | ||
xhyve | ||
cmd/xhyve/imgs/stable* | ||
cmd/xhyve/xhyve | ||
vendor |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
These are binaries from | ||
http://tinycorelinux.net | ||
with the following patch applied: | ||
|
||
mkdir initrd | ||
( cd initrd ; zcat ../initrd.gz | sudo cpio -idm ) | ||
sudo sed -i '/^# ttyS0$/s#^..##' initrd/etc/securetty | ||
sudo sed -i '/^tty1:/s#tty1#ttyS0#g' initrd/etc/inittab | ||
( cd initrd ; find | sudo cpio -o -H newc ) | gzip -c > initrd.gz |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
userboot.so is the FreeBSD user-mode bootloader | ||
|
||
So, this is a bit horrible but it works: | ||
|
||
- userboot is compiled on FreeBSD with '-target x86_64-apple-darwin14' CFLAGS | ||
- same for the dependencies of userboot (stand, ficl, zfs) | ||
- you have to use the MachO linker set header (include/xhyve/support/linker_set.h) | ||
- the resulting object files are linked on OS X with 'clang -dead_strip -shared -o userboot.so *.o *.So' |
Binary file not shown.