Closed sxmxr closed 3 years ago
ah, I forget to note, you have to do following steps
cd src/ports/bash
./package.sh
cd src/ports/coreutils
./package.sh
After running this command, I got this:
After running this command, I got this:
P.S.: I have already activated the cross-compiler
I think you have to rename the cross-compiler in package.sh
to your version
While compiling this: cd src/ports/coreutils
./package.sh
I don't know but somehow I'm getting this error. I think program isn't able to enter in the "if"
While compiling this: cd src/ports/coreutils ./package.sh I don't know but somehow I'm getting this error. I think program isn't able to enter in the "if"
I have renamed the cross-compiler to i386-mos
can you run this echo $HOME
in your terminal to check the output? try removing $HOME/coreutils-8.1
🤔
Here it is.
I think I should change the path of this directory: COREUTILS_DIR to Current working directory?
no, it has to be outside of mos
, can you try removing that folder $HOME/coreutils-8.1
and run ./package
no, it has to be outside of
mos
, can you try removing that folder$HOME/coreutils-8.1
and run./package
I have done the same and got 2 errors :/ -->
seem like you use the wrong cross-compiler tool, can you paste tool name here?
seem like you use the wrong cross-compiler tool, can you paste tool name here?
Sorry, I don't know. How can I find the tool name?
seem like you use the wrong cross-compiler tool, can you paste tool name here?
Sorry, I don't know. How can I find the tool name? Here's the cross-compiler version, I have been using
Here is the SS of package.sh
you have to use i386-mos-gcc
, I think you already installed src/toolchain/build.sh
, right?
you have to use
i386-mos-gcc
, I think you already installedsrc/toolchain/build.sh
, right?
Yes yes, I have already installed but the target variable is i386-mos
you have to use
i386-mos-gcc
, I think you already installedsrc/toolchain/build.sh
, right?Yes yes, I have already installed but the target variable is i386-mos
Here is the SS of package.sh
so, Where should I have to make changes in this package.sh file?
could be the issue with naming of cross compiler in src/toolchain/build.sh
, can you try changing TARGET=i386-mos
-> TARGET=i386-pc-mos
and running it again together without changing anything in package.sh
could be the issue with naming of cross compiler in
src/toolchain/build.sh
, can you try changingTARGET=i386-mos
->TARGET=i386-pc-mos
and running it again together without changing anything inpackage.sh
I have successfully executed both the commands but it's still showing the same error:
could be the issue with naming of cross compiler in
src/toolchain/build.sh
, can you try changingTARGET=i386-mos
->TARGET=i386-pc-mos
and running it again together without changing anything inpackage.sh
I have successfully executed both the commands but it's still showing the same error:
These 2 are successfully executed and also ./build.sh from src folder along with ./create_image.sh cd src/ports/bash ./package.sh cd src/ports/coreutils ./package.sh
can you check
cd src
debugfs hdd.img # enter new flow
cd bin
ls
It is showing this
there is no bash there, something is wrong. when doing cd src/ports/bash && ./package
, is there any error logs
Actually I didn't received any error. If you want to look at the output of the above command: terminal output.txt
Actually I didn't received any error. If you want to look at the output of the above command: terminal output.txt
@MQuy I have installed the cross-compiler using this target variable export TARGET=i686-elf In the toolchain, ./build.sh has a target variable : i386-pc-mos Is this a mistake here? or it's fine?
Looking at your logs, I cannot spot any issues there. They should use different toolchain. What are your variables
PREFIX="$HOME/opt/cross"
TARGET=i386-mos
# SYSROOT cannot locate inside PREFIX
SYSROOT="$HOME/Projects/mos/src/toolchain/sysroot"
JOBCOUNT=$(nproc)
can you try commenting them out and do it again?
@MQuy
These are my variables -->
PREFIX="$HOME/opt/cross"
TARGET=i386-pc-mos
SYSROOT="/home/sxmxr/OS_Project/mos/src/toolchain/sysroot"
JOBCOUNT=$(nproc)
could be the issue with naming of cross compiler in
src/toolchain/build.sh
, can you try changingTARGET=i386-mos
->TARGET=i386-pc-mos
and running it again together without changing anything inpackage.sh
after following this, I had changed the target variable.
let remove those variables and run it again to see what happen 🤔
It is showing this.
no, not compiling toolchain, commenting out only for running for bash and coreutils
no, not compiling toolchain, commenting out only for running for bash and coreutils
Sorry, @MQuy but can you please suggest which line I have to comment and in which file. I'm lit bit confused.
My suggested follow is like below
cd src/ports/bash && ./package.sh
cd src/ports/coreutils && ./package.sh
My suggested follow is like below
- revert env variables back
- compile toolchain
- comment en variables
cd src/ports/bash && ./package.sh
cd src/ports/coreutils && ./package.sh
ohh okayy Got it. I'm on it.
@MQuy I have done the same and didn't get any errors. Should I run ./create_image.sh & ./build.sh?
ah, could be the issue of order
cd src
./create_image.sh
cd src/ports/bash && ./package.sh
cd src/ports/coreutils && ./package.sh
./build.sh qemu iso
Yesss Now, it working completely perfectt.
could you create a pr to update README.md :D
I just had one query that in the older version of the mOS,
Here there were few folders of commands like uname, pwd, ls commands. I'm unable to find the location of the commands in the newer version.
they are part of coreutils, more details https://github.com/coreutils/coreutils
Oh Okayy Thank you. :) Sure I'll create a PR to update README.md by tonight :D
I have installed the recent version of the mOS. It is showing this error. "/bin/bash is not exist". Is it in the development?![image](https://user-images.githubusercontent.com/47913479/100994928-230a6500-357d-11eb-88a7-4d1119907b81.png)