vlang / vinix

Vinix is an effort to write a modern, fast, and useful operating system in the V programming language
https://vlang.io
GNU General Public License v2.0
1.9k stars 120 forks source link

can't build on raspberry pi debian #19

Closed Ccode-lang closed 2 years ago

Ccode-lang commented 3 years ago

The distro will not build on raspberry pi so there is no way to build the kernel.

AnLAdmin commented 3 years ago

Well, you could use the docker file in the pull request #17 from alii.

Ccode-lang commented 3 years ago

Haven't tried to use docker for any project so I don't know how to do that. I will try and report back.

Ccode-lang commented 3 years ago

Used that now, it does not work.

Ccode-lang commented 3 years ago

Looks like it was officially dockerized I'll try again with the official one.

Ccode-lang commented 2 years ago

Still not working

maks commented 2 years ago

I see no evidence that this project supports ARM, there is only a x86 folder (sic) in the kernel source. Likewise Docker is not some sort of magic, its simply a nice wrapper around cgroups on Linux. Unless the Docker container that you are referring to has in it QMEU support to allow running a x86 vinix kernel image on your RPI, that will be of little help.

Given the above, why are you trying to build vinix x86 executable image on a Arm-based RPI?

JalonSolov commented 2 years ago

Well, it supports M1 Macs (which are ARM based), ARM asm statements, an ARM version of TCC, etc., so yeah, I think there's ARM support. However, getting everything to work on a new system can be challenging, as there could be header issues, etc.

@shadowninja55 has some experience with V on a Pi. Maybe he can help.

maks commented 2 years ago

Are we talking about V arm support or Vinix? I did notice that just today https://github.com/vlang/v/issues/9284 was closed but that's not the same thing as this OS supporting ARM.

maks commented 2 years ago

Also if it is the case that it Vinix supports building on M1 macs then this part of the Readme should perhaps be updated.

JalonSolov commented 2 years ago

My apologies - I was commenting on the wrong issue. You are correct that for now, at least, vinix is x86_64 only. I don't know why ARM can't be supported in the future, but as of this moment - no ARM support.

maks commented 2 years ago

@JalonSolov no worries. I'd actually love to see Vinix supporting Arm, especially being able to run on something like the ArmV6 based RPI Zero would be great, as its more like a giant microcontroller then a "mini pc" the way the larger multicore ARMv7 based RPIs are.

Ccode-lang commented 2 years ago

it seems to be working now

Ccode-lang commented 2 years ago

nevermind it crashed

mintsuki commented 2 years ago

I am not even sure any of the Raspberry Pi models even have the resources necessary to build the entire distro.

Please just use a prebuilt ISO (can find the link in the README) if you want to test it on a Raspberry Pi (on an x86_64 emulator).

Ccode-lang commented 2 years ago

Actually already did this but wasn't sure if the link was updated anymore. The workflow was removed.