MQuy / mos

A hobby operating system developed from scratch
MIT License
370 stars 27 forks source link

Installing MOS in linux 20.04 Focal Fossa #3

Closed parth-27 closed 3 years ago

parth-27 commented 3 years ago

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 3 years ago

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 https://github.com/MQuy/mos/commit/1ea2517e30fa7755df3a106f53167e6af81b221b#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?

parth-27 commented 3 years ago

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 3 years ago

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

parth-27 commented 3 years ago

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 3 years ago

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

parth-27 commented 3 years ago

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

MQuy commented 3 years ago

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

Mithilesh1609 commented 3 years ago

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 3 years ago

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

manasvi89 commented 3 years ago

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 3 years ago

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

manasvi89 commented 3 years ago

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 3 years ago

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

manasvi89 commented 3 years ago

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

MQuy commented 3 years ago

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

manasvi89 commented 3 years ago

Ok Thank You