MQuy/mos

Installing MOS in linux 20.04 Focal Fossa

parth-27 opened this issue · 16 comments

I am facing issues during Installation of MOS in Ubuntu 20.04 due to some different commands of shell script in Mac and Linux in creater_image.sh and build.sh
We are unable to make ISO file.
So can you please provide alternative linux commands for building ISO file

MQuy commented

hi @parth-27, mOS is developed in macOS so unfortunately, script is made for macOS.
I tested in linux few months ago, I reused hdd.iso (which was generated from create_image.sh in my macOS) and modified build,sh and kernel/Makefile like this commit 1ea2517#diff-56e96dd96a04965bc16ae7b79379ff8e
I think the fast way is I can upload hdd.iso so you can reuse it, and modify other build scripts like above?

hi @parth-27, mOS is developed in macOS so unfortunately, script is made for macOS.
I tested in linux few months ago, I reused hdd.iso (which was generated from create_image.sh in my macOS) and modified build,sh and kernel/Makefile like this commit 1ea2517#diff-56e96dd96a04965bc16ae7b79379ff8e
I think the fast way is I can upload hdd.iso so you can reuse it, and modify other build scripts like above?

Yess, can you please upload it, it would be very helpful.

MQuy commented

I created new branch ubuntu, already tested in my ubuntu 20. Let me know if everything is not working ./build qemu iso

issue

Hi, we tried to run ./build.sh qemu iso and we got this error, can you please tell us what's wrong?

MQuy commented

the error said that i686-elf-gcc is not found, could you try to install it?

Yes, i installed i686-elf-gcc and tried running the OS

MQuy commented

did you run make install when installing i686-elf-gcc, can you check your PATH to make sure it contains folder which contains i686-elf-gcc

Hi, I have tried to install mos in ubuntu-20..04, but i am getting error like this.
Screenshot from 2020-10-05 22-34-46

MQuy commented

hi @Mithilesh1609, I don't think you can run brew in ubuntu, I will improve the README for ubuntu setup. In the mean time, I think https://wiki.osdev.org/GCC_Cross-Compiler could help

Screenshot from 2020-10-08 14-17-35
Screenshot from 2020-10-08 14-18-25

We have followed all the steps for installation and we are trying to boot iso file in qemu but We are getting an error.

MQuy commented

@manasvi89 did you checkout ubuntu branch and run ./build qemu iso?

Yes I did that and now I am getting an error about missing mos.bin file.
Screenshot from 2020-10-08 20-59-13

MQuy commented

can you screenshot this cd src/kernel && make clean && make?

Yes.Here, It is
Screenshot from 2020-10-08 21-04-03

MQuy commented

you shouldn't use brew in linux, follow the guide here from The build https://wiki.osdev.org/GCC_Cross-Compiler

Ok Thank You