Hi All,
I'm new to ISAR and was told it's an efficient project for building embedded OS images.
I'm currently trying to create an Ubuntu Noble (24.04) image for the RISC-V architecture.
I gave it a quick try, but ran into some issues:
Step 1: KAS_ALLOW_ROOT=yes ./kas/kas-container menu
Step 2: KAS_ALLOW_ROOT=yes ./kas/kas-container build (or use the "Build" option from the menu)
I've attached my configuration files (generated by kas-container) along with the error log dumped by ISAR during the build process.
Another question I have is about the concepts of "target" and "host".
After reading as much documentation on ISAR as I could find, I'm still a bit confused:
Why do we need a "host" rootfs/distro, given that ISAR runs inside the kas-isar Docker container, which I assume already acts as the host environment?
What I’m aiming for with this project is to generate an image that can be run in QEMU or flashed to a disk — that would be the target distro, right?
Any guidance or suggestions would be greatly appreciated!
Thanks
--Sun, Yi
Hello.
This looks like a temporary bug, when `ubuntu-ports` repo is temporary
not synchronized with `ubuntu` one. We periodicaly face it and can't do
anything with it.
I also this issue now when crossbuilding riscv64 and arm64 ubuntu-noble
targets. It was not reproduced week ago.
There are two options to get a successfull build:
1. Disable cross-compile option - but it is relatively slow.
2. Use some snapshot that is known to work.
For example, this additional configuration (I used one-week-ago
snapshot) works for me:
```
Mirror selection
- [*] Use the distros snapshot mirror
- (*) Custom date
- (20250410T000000Z) Custom snapshot date
```
I'm attaching kas configuration I can get working build with.
--
Best regards,
Uladzimir.
Yes, we have plans to add architectures supported by ubuntu-ports after
isar-0.11 release.
>
> 2. Regarding the distro snapshot, do you know if there’s a stable
> version available?
> My goal is to ensure the project remains stable and maintainable in
> the long term.
It was buildable for me week ago and has become unbuildable, that's why
I tried this snapshot - and it was OK. Ubuntu keeps snapshots for about
2 years.
In you want follow upstream, there is always chanse that ubuntu and
ubuntu ports are not in sync. You might want to use Debian instead -
they moved riscv64 from sid-ports to sid not so much time ago. Since
trixie it should be rathe stable, I guess.
>
> 3. Regarding the change I made to remove -p parameter in the cp
> command — what are your thoughts?
> Should I just maintain the patch locally, or would it make sense to
> adjust it in a way that's more broadly applicable for others as well?
>
You should maintain it locally, since we don't want to make a local
fork of bitbake we completely borrow (and periodically sync to new
version) from OE/Yocto as is.
I still think there is something wrong in your filesystem/permissions,
if such a trivial thing as "cp -p" doesn't work.
Yes, it happend at least previous week (not only for riscv64, but also
for e.g. arm64) and using snapshot was a working solution.
You can see this issue in e.g. CrossTest.test_cross in our Gitlab CI
https://gitlab.isar-build.org/ilbers/isar/-/jobs/2159
Today it seems to be fixed by ubuntu upstream just works with main
ubuntu/ubuntu-ports repos.
> 2, So I tried disabling cross-build working aroud above issue. As you
> mentioned, the performance is quite poor.
> Would you mind explaining a bit more about why that happens? And is
> there anything I can do to improve it?
Sometimes such problems can happen in upstream (ubuntu and debian)
repos. We can't do anything with it except to using snapshots known to
be working/stable.
>
> 3, Do you have an estimated timeline for the v0.10 release?
>
> Thanks
> --Sun, Yi
0.11 is going to be released soon, maybe even by the end of this week
or. After that riscv64/noble patches will be sent to the maillist and
merged soon. For now, you can recheck my 'ubely/riscv64' branch I tend
to keep updated and thus force-pushed sometimes.
--
Best regards,
Uladzimir.