-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Introduction of Raspberry Pi OS #931
Conversation
2af4344
to
05f6c39
Compare
RFC: Do we want to consider renaming the project, or do we keep our name and move on? |
cbd77fd
to
20adbbf
Compare
4a8cebe
to
339aac3
Compare
I'm currently enjoying the "offline installation" Will upload a PR when I'm back online. Meanwhile below the relevant code for you to include. That should pre-load the code versions that are current at the time of image build. Our current java and my new ZRAM code should work to install these from storage instead of Inet if Inet is down.
|
@mstormi .
Noticed some problems with during install, webif did not work and zulu8 64bit did not work. Trying the next build... |
Yes but I want to avoid that. Just like the original zram author I'm no expert at building packages. And the compilation is not even for the ZRAM code itself but for a single tool (overlayfstools) which is in turn YET another upstream. That I don't want to mess with. PS: back in action with faster Internet |
did you set the number of tryUntil() attempts on "ping 9.9.9.9|| wget ...." to 60 from 10 ? |
Also remember to replace names in the docs |
339aac3
to
76d0f74
Compare
@mstormi @ecdye willing to play around with the new 64bit image? @mstormi yes, more retries on slow WLAN APs.... |
An alternative approach to cross compiling is cache the two git repos, and start compilation on the PI during installer run (first-boot.bash). Any special compile flags derived from the HW platform you compile on (e.g. optimizations only suitable for Pi3)? |
Yes that's what I'm out for. Check out #950 and try to integrate that with your code...can you call install_zram_code() during build to have the repo "cached", and include /opt/zram with the image ?
no, dead simple |
where is it ? Link in #946 is still the old one I believe, at least boots into desktop |
I just interrupted install but on reboot it fails to continue on "apt-get --yes upgrade" |
BTW I have added #950 (offline install enhancements) to the "testbuild" branch, so why not test that with Internet blocked. Just did and it does not work because /boot/first-boot.bash (which is run) is different from /opt/openhabian/build-image/first-boot.bash (which is newer with my changes). |
@mstormi yes, build.bash is patching the file - but for RPi it is only adding the content of helpers.bash: Regarding the offline install: I would prefer to do things separately. Currently, I already merge 3 PRs + fixes to my master branch to build the image. I think we could start merging #890, for me the new installation worked fine in all of my tests. It will anyway only be rolled out when we release the new image. |
Then why is /boot/first-boot.bash so different from build-image/first-boot.bash ? Re: offline install: ok, finish image build first, then we'll review what's left missing for offline install Did you mean to say #890 is ready to be reviewed and merged ? |
Did you also apply the changes from this PR? It is mainly changing build.bash...? |
No. As far as I can see it does not change first-boot.bash or anything related to copying or creating that. I admit I've never built an image or changed anything about build.bash so am unaware of how it works. But /boot/first-boot.bash applies BEFORE git retrieves the current openhabian repo during the installation process. So it is as it is because it was built like that on image creation. Changes to repo such as mine cannot change that (they change the copy inside build-image but not the one in /boot). Could you apply all of your image-build related changes (you spoke of 3 PRs but I don't know what these are) to the testbuild branch ? That's nothing other than today's master plus #950 . Thanks! |
FWIW, I tried the 64 bit image on my brand new RPi4. Note the last two lines of the output.
|
By the way, many of your commits have an invalid signature, please correct it |
ZRAM (or overlayfs-tools actually) does not compile both, online and offline, because of |
@mstormi do you still have your 32bit RasPiOS system available?
Will try to build a rebased image tomorrow. |
debian = no (1), raspbian= yes (0) |
76d0f74
to
25037de
Compare
I saw this results in the first TWO lines to start with #!. |
We also need these packages to be there offline: |
Hi Holger, |
25037de
to
4814fb0
Compare
* Replace raspbian by raspios due to renaming of the OS * (beta) Added initial support for building 64-bit images * Set default runlevel to multi-user.target, disable auto-login * Update documentation Signed-off-by: Holger Friedrich <[email protected]>
4814fb0
to
0a31499
Compare
@mstormi I think we should go step by step. This changes basically only the download loacation and adds basic support for the 64bit beta image. The introduction of 64bit image will cause more issues (especially in external components) and should be handled in a separate issue. WDYT? |
@mstormi @ecdye new images with latest commits from today are available, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
# Java architecture mode | ||
# Valid arguments: "Adopt11", "Zulu8-32", "Zulu8-64", "Zulu11-32", or "Zulu11-64" | ||
java_opt=Zulu11-64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java 11 default? Are you planning on this being the openHAB 3 recommended setup for a RPi3+?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above, zulu8-64 did not work in my last test. This might have changed in the meantime, since java installation improved since then. Not tested yet.
elif [ "$hw_platform" == "pi-raspios32" ] || [ "$hw_platform" == "pi-raspios64beta" ]; then | ||
if [ "$hw_platform" == "pi-raspios64beta" ]; then | ||
zipfile=raspios_lite_arm64_latest.zip | ||
baseurl="https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2020-05-28/2020-05-27-raspios-buster-arm64.zip" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should add a note to change the link to a permanent redirect to the latest version when it becomes available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. just the one beta image available as of now.
I'm fine to start with the 32bit image only. |
I would out it into the code base but not explicitly mention it in the documentation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
feel free to merge yourself, I had my share of merges for today yesterday.
baseurl="https://downloads.raspberrypi.org/raspios_lite_armhf_latest" | ||
bits=32 | ||
fi | ||
|
||
# Prerequisites | ||
echo_process "Checking prerequisites... " | ||
REQ_COMMANDS="git wget unzip crc32 dos2unix xz" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is that my hook for offline? If so add libattr1-dev
Resolves: #946
Signed-off-by: Holger Friedrich [email protected]