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

How to build actually rpi64 image? #128

Closed
starmacco opened this issue Jan 8, 2022 · 6 comments
Closed

How to build actually rpi64 image? #128

starmacco opened this issue Jan 8, 2022 · 6 comments
Labels
question Further information is requested

Comments

@starmacco
Copy link

Hi,

How actually build rpi64 image? or arm? Is it broken?
I've tried target rpi64.

Getting:

`
make rpi64
./scripts/release-rpi64
++ dirname ./scripts/release-rpi64

cd ./scripts/..
source ./scripts/version
+++ git status --porcelain --untracked-files=no
++ '[' -n '' ']'
+++ git rev-parse --short HEAD
++ COMMIT=0dc7a00e
+++ git tag -l --contains HEAD
+++ head -n 1
++ GIT_TAG=
++ '[' -z '' ']'
++ [[ -z '' ]]
++ [[ -n '' ]]
++ VERSION=0dc7a00e
++ INITRD=initrd-0dc7a00e
++ export VERSION COMMIT INITRD GIT_TAG DIRTY
++ export SUFFIX=
++ SUFFIX=
++ '[' -n '' ']'
++ echo ' Building 0dc7a00 from 0dc7a00 on '
Building 0dc7a00 from 0dc7a00 on
'[' '!' -f ./dist/artifacts/rootfs_arm64.tar.gz ']'
echo 'Please run make first'
Please run make first
exit 0
`
If I run just 'make' only x86 artefacts are build.

I could not find rpi64 binaries on the release page: https://github.com/burmilla/os/releases
Which is a target from another doc: https://burmillaos.org/docs/installation/server/raspberry-pi/

@olljanat
Copy link
Member

olljanat commented Jan 8, 2022

Only 2.0 beta versions include rpi64 support. Latest is https://github.com/burmilla/os/releases/tag/v2.0.0-beta4

If you want build arm binaries on x86 platform you need use command like: ARCH=arm64 make

@starmacco
Copy link
Author

Thanks! will try that. It would be nice to have some section about SDLC in the readme.

@starmacco
Copy link
Author

This is hard. ARM build fails for me on 'master' and 'v2.0.0-beta4'

First fails on 'build constraints exclude all Go files on' selinux:

// +build linux

package github.com/burmilla/os
        imports github.com/burmilla/os/cmd/init
        imports github.com/burmilla/os/pkg/init/selinux
        imports github.com/burmilla/os/pkg/selinux: build constraints exclude all Go files in /go/src/github.com/burmilla/os/pkg/selinux
FATA[1033] exit status 1                                

if I add '-tag linux' https://github.com/burmilla/os/blob/872f1cd6dab4f397e1357b95970f772c03eb5b00/scripts/build-target#L25

I reached

ls: cannot access 'bin/ros': No such file or directory
FATA[0027] exit status 2                                
make: *** [Makefile:11: default] Error 1

Any special preparation is required for arm build?

@olljanat
Copy link
Member

olljanat commented Jan 8, 2022

What you are actually trying to do? v2.0.0-beta4 contains ready made binaries for Raspberry Pi.

I don't remember exactly but it might be that I actually used Raspberry Pi 4 to build those because it is much simpler than cross building.

@starmacco
Copy link
Author

I wanted to make mods and build it on normal linux/i386 quicker the user rpi3 which I have.
If there is not cross-compiling available build scripts should point to it, no confusions, I wouldn't moan :)

@olljanat
Copy link
Member

olljanat commented Jan 9, 2022

In general Golang supports cross building and anything which prevents that are bugs which should be fixed. v2.0 versions are called for beta on purpose as it is known thing that there is bugs.

Also notice that it is currently unknown if v2.0 will be ever released under current architecture or if it will be switched to new one like proposed on #119 or if either of those goes forward as it looks to be that there is no any comments which agree or disagree with that proposal.

@olljanat olljanat added the question Further information is requested label Mar 5, 2024
@olljanat olljanat closed this as completed Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants