-
Notifications
You must be signed in to change notification settings - Fork 53
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
library/rpi #2083
Comments
Hi @bobmorane83! There is a separate make target for building an RPI disk. Try running 'make ARCH=arm64 build build-os build-rpi-disk' and it should build the toolkit, green OS container image and finally a raw image that can be written to an sd-card and booted! Let us know how it goes! 👍 |
Thanks @frelon, Building arm64 disk Removing the --unprivileged flag I got : docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /home/pi/Developement/elemental/elemental-toolkit/examples:/examples -v /home/pi/Developement/elemental/elemental-toolkit/build:/build I also tried with tag v2.1.0 but same errors. Any comment ? |
Ok, if i use FLAVOR to green-rpi, remove --unprivileged and add --system, and make build-rpi-disk, I got a raw file, flashed on SD card and get the following ; -Boot 2021.10 (Aug 04 2022 - 12:00:00 +0000) DRAM: 2 GiB U-Boot 2021.10 (Aug 04 2022 - 12:00:00 +0000) DRAM: 2 GiB error: ../../grub-core/commands/search.c:296:no such device: COS_STATE. Press any key to continue... Falling back to `Elemental' error: ../../grub-core/commands/search.c:296:no such device: COS_STATE. Press any key to continue... Falling back to `Elemental recovery' EFI stub: Booting Linux Kernel... Any doc to read to understand the next steps ? Thanks, |
Good catch! If you want to put up a PR with the changes I would be happy to review! From the logs it looks like it's trying to boot the linux kernel from recovery, which is sort of the expected behavior.. when building expandable images we boot into the recovery partition to expand the partition table correctly and then we reboot into the active system. This might take a while, do you get any more output after the |
Good news : ssh 192.168.2.194 -l pi But what password ? elemental ? nop ...
But what kind of hash ? |
Awesome! The default login for the examples is |
Was : https://rancher.github.io/elemental-toolkit/docs/customizing/login/
|
Nice find! Yea we recently switched from cos to elemental as the example password.. Glad you got it working! 👍 |
Very nice work!
So you could probably copy that file and put it in |
Effectively putting back the original password in |
You can put it in |
Adding
to |
Okay, if you could post the entire file contents here that would help.. It looks like just adding it there as is will only run when booted to recovery because of this conditional: |
I simply copy/past the part of
Another option I was thinking of is to add :
|
Could you post the output of |
|
Hmm, looks like the default configuration on the recovery.. does it look the same when booted to the active snapshot? |
Sound the same ...
|
Can you post result of
|
Applying the workaround, can't see real difference and still the same pb with
|
At end here is my working conf :
|
I will dust off my raspberry and try to debug this today! You might be hitting a bug with loading the config.. Also the |
@bobmorane83 I was able to boot my RPi4 and get a persistent path for
But used the tumbleweed changes as well.. Let me know if you are still having trouble! |
I'll try that. |
Hi all,
(BTW I'am totally newbee to elemental ...)
elemental-toolkit version:
❯ docker run -it --rm ghcr.io/rancher/elemental-toolkit/elemental-cli:latest version
v1.3.0+g56b2723
CPU architecture, OS, and Version:
On my RPi : Linux pi 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux
Same on my Mac M1
Describe the bug
❯ docker run -it --rm ghcr.io/rancher/elemental-toolkit/elemental-cli:latest build-iso --config-dir=./ rpi
INFO[2024-05-16T13:49:52Z] Starting elemental version v1.3.0
INFO[2024-05-16T13:49:52Z] Reading configuration from './'
INFO[2024-05-16T13:49:52Z] Preparing squashfs root (1 source)...
INFO[2024-05-16T13:49:52Z] Copying rpi:latest source...
ERRO[2024-05-16T13:50:05Z] Failed installing OS packages: GET https://index.docker.io/v2/library/rpi/manifests/latest: UNAUTHORIZED: authentication required; [map[Action:pull Class: Name:library/rpi Type:repository]]
To Reproduce
❯ docker run -it --rm ghcr.io/rancher/elemental-toolkit/elemental-cli:latest build-iso --config-dir=./ rpi
I'am trying to generate a Raspberry Pi 4 image to boot on, but seems that the repositoty is not available anymore.
Did I missed something ?
"docker build --build-arg TOOLKIT_REPO=ghcr.io/rancher/elemental-toolkit/elemental-cli --build-arg VERSION=latest -t rpi ." was ok.
Any clue ?
Thanks,
BR,
The text was updated successfully, but these errors were encountered: