Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I was able to run xv6-x86 on my m1 mac running ubuntu arm64. Perform the following steps: #198

Open
DRedDevil04 opened this issue Sep 3, 2023 · 2 comments

Comments

@DRedDevil04
Copy link

          I was able to run xv6-x86 on my m1 mac running ubuntu arm64. Perform the following steps:
  1. clone the xv6 from git
  2. Now you need to install a cross compiler: sudo apt install gcc-i686-linux-gnu
  3. Go to the directory and instead of make , type make TOLLPREFIX=i686-linux-gnu-
  4. Now, instead of make qemu-nox, type make TOLLPREFIX=i686-linux-gnu- qemu-nox
  5. Voilà!!

Originally posted by @Mazz84002 in #76 (comment)

@DRedDevil04
Copy link
Author

          I was able to run xv6-x86 on my m1 mac running ubuntu arm64. Perform the following steps:
  1. clone the xv6 from git
  2. Now you need to install a cross compiler: sudo apt install gcc-i686-linux-gnu
  3. Go to the directory and instead of make , type make TOLLPREFIX=i686-linux-gnu-
  4. Now, instead of make qemu-nox, type make TOLLPREFIX=i686-linux-gnu- qemu-nox
  5. Voilà!!

Originally posted by @Mazz84002 in #76 (comment)

This solution leads to an error in the mpconfig file on my m1 mac:
14:
mp.c:83:10: error: array subscript -48806446 is outside array bounds of ‘void[2147483647]’ [-Werror=array-bounds=]
83 | if(conf->version != 1 && conf->version != 4)
| ~~~~^~~~~~~~~
mp.c:78:34: note: at offset -2147483648 into object ‘_119 = PHI <_86(14), _16(4), _63(6)>.physaddr’ of size [0, 2147483647]
78 | if((mp = mpsearch()) == 0 || mp->physaddr == 0)
| ~~^~~~~~~~~~
mp.c:85:28: error: array subscript -48806446 is outside array bounds of ‘void[2147483647]’ [-Werror=array-bounds=]
85 | if(sum((uchar
)conf, conf->length) != 0)
.
.
.
.
.
.
"

Please provide a solution to this

@fengxiaohu
Copy link

it seems your physical memory run out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants