How to install BareMetal on OS X?

130 views
Skip to first unread message

Johnnie Deer

unread,
May 31, 2015, 6:27:57 AM5/31/15
to bareme...@googlegroups.com
Hi-

I'm very interested in BareMetal and exokernels in general. However, I'm having some trouble installing BareMetal on my Mac. When I clone the baremetal repository and run ./setup.sh, these are my results: 








Cloning into 'BMFS'...


remote: Counting objects: 174, done.


remote: Total 174 (delta 0), reused 0 (delta 0), pack-reused 174


Receiving objects: 100% (174/174), 52.44 KiB | 0 bytes/s, done.


Resolving deltas: 100% (78/78), done.


Checking connectivity... done.


Cloning into 'Pure64'...


remote: Counting objects: 448, done.


remote: Total 448 (delta 0), reused 0 (delta 0), pack-reused 448


Receiving objects: 100% (448/448), 178.53 KiB | 0 bytes/s, done.


Resolving deltas: 100% (250/250), done.


Checking connectivity... done.


Cloning into 'BareMetal-OS'...


remote: Counting objects: 2076, done.


remote: Total 2076 (delta 0), reused 0 (delta 0), pack-reused 2076


Receiving objects: 100% (2076/2076), 1.12 MiB | 499.00 KiB/s, done.


Resolving deltas: 100% (1056/1056), done.


Checking connectivity... done.


128+0 records in


128+0 records out


134217728 bytes transferred in 2.211452 secs (60692128 bytes/sec)


configure.ac:7: installing './compile'


configure.ac:3: installing './install-sh'


configure.ac:3: installing './missing'


src/Makefile.am: installing './depcomp'


checking for a BSD-compatible install... /usr/local/bin/ginstall -c


checking whether build environment is sane... yes


checking for a thread-safe mkdir -p... /usr/local/bin/gmkdir -p


checking for gawk... no


checking for mawk... no


checking for nawk... no


checking for awk... awk


checking whether make sets $(MAKE)... yes


checking whether make supports nested variables... yes


checking for style of include used by make... GNU


checking for gcc... gcc


checking whether the C compiler works... yes


checking for C compiler default output file name... a.out


checking for suffix of executables...


checking whether we are cross compiling... no


checking for suffix of object files... o


checking whether we are using the GNU C compiler... yes


checking whether gcc accepts -g... yes


checking for gcc option to accept ISO C89... none needed


checking whether gcc understands -c and -o together... yes


checking dependency style of gcc... gcc3


checking for gcc option to accept ISO C99... none needed


checking how to run the C preprocessor... gcc -E


checking for grep that handles long lines and -e... /usr/bin/grep


checking for egrep... /usr/bin/grep -E


checking for ANSI C header files... yes


checking for sys/types.h... yes


checking for sys/stat.h... yes


checking for stdlib.h... yes


checking for string.h... yes


checking for memory.h... yes


checking for strings.h... yes


checking for inttypes.h... yes


checking for stdint.h... yes


checking for unistd.h... yes


checking for stdlib.h... (cached) yes


checking for string.h... (cached) yes


checking for strings.h... (cached) yes


checking for size_t... yes


checking for stdlib.h... (cached) yes


checking for GNU libc compatible malloc... yes


checking for memset... yes


checking for strcasecmp... yes


checking that generated files are newer than configure... done


configure: creating ./config.status


config.status: creating Makefile


config.status: creating src/Makefile


config.status: creating config.h


config.status: executing depfiles commands


/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive


Making all in src


gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -MT bmfs.o -MD -MP -MF .deps/bmfs.Tpo -c -o bmfs.o bmfs.c


mv -f .deps/bmfs.Tpo .deps/bmfs.Po


gcc  -g -O2   -o bmfs bmfs.o  


make[2]: Nothing to be done for `all-am'.


Formatting Disk Image


Writing Master Boot Record


1+0 records in


1+0 records out


512 bytes transferred in 0.000017 secs (29826162 bytes/sec)


Writing Pure64+Software


44+0 records in


44+0 records out


22528 bytes transferred in 0.000092 secs (244790882 bytes/sec)


However, I'm not 100% sure if I have Newlib installed. When I run ./run.sh I just get a black qemu window with a white flashing cursor. Any ideas?

Regards,

Mats 

Ian Seyler

unread,
Jun 1, 2015, 9:07:41 AM6/1/15
to bareme...@googlegroups.com, matsmat...@gmail.com
Mac OS X has not been tested as a build environment so I'm not sure what the problem might be. I know that the version of NASM that comes with the OS X dev tools does not support 64-bit code so Pure64 and BareMetal were probably not compiled properly.

Please run 'asm -v' from a terminal window and let me know what version you have.

-Ian

Johnnie Deer

unread,
Jun 1, 2015, 2:50:56 PM6/1/15
to bareme...@googlegroups.com
I read about that, and I updated. My version is 2.11.06, but I guess I can set it up on Linux.
...
Reply all
Reply to author
Forward
0 new messages