02:26
zsun has joined #fedora-riscv
03:07
zsun has quit [Quit: Leaving.]
03:08
tibbs has joined #fedora-riscv
04:01
zsun has joined #fedora-riscv
04:07
zsun has quit [Quit: Leaving.]
04:11
troglodito has quit [Ping timeout: 248 seconds]
04:12
troglodito has joined #fedora-riscv
05:03
<
thefossguy >
Is there a release schedule for OpenSBI?
05:04
<
thefossguy >
No particular reason, just want a tag to clone instead of a mutating master branch
05:10
<
davidlt[m] >
You would need to raise the need for a new tag on the mailing list.
05:11
<
davidlt[m] >
If there is enough positive, it might happen.
05:12
<
davidlt[m] >
I would say right now it's more based on features.
05:18
<
davidlt[m] >
There is SBI v2.0-rc1.
05:18
<
davidlt[m] >
Thus, the new OpenSBI release might happen after that gets ratified.
05:37
<
thefossguy >
Ah, thanks!
05:37
<
thefossguy >
(So much to learn still hehe :D)
05:48
somlo has quit [Remote host closed the connection]
05:48
somlo_ has joined #fedora-riscv
05:52
<
davidlt[m] >
Usually any commit works.
05:53
<
thefossguy >
Thatβs what I did
07:42
zsun has joined #fedora-riscv
09:34
zsun has quit [Quit: Leaving.]
10:30
<
rwmjones >
davidlt[m]: I'm having one more go at reproducing the dnf5 thing today by using a mockbuild
10:30
<
rwmjones >
if that still fails, then I will suggest just stubbing out the test
10:31
<
davidlt[m] >
It's most likely mock environment.
10:31
<
davidlt[m] >
I should probably spend more time and enable bootstrap, systemd-nspawn instead of chroot.
10:36
<
rwmjones >
davidlt[m]: what's the mockbuild command you use? I can't get it to use the riscv koji profile ..
10:37
<
davidlt[m] >
I don't use one. I just boot into a brand new VM (or swap a drive on the board).
10:37
<
davidlt[m] >
You can grab the mock config file from a running job.
10:38
<
davidlt[m] >
There is job on nufive.
10:38
<
davidlt[m] >
That's what I do when I need to use mock.
10:39
<
davidlt[m] >
We should probably most that on wiki, and add to our mock-configs.
10:40
* rwmjones
wonders where it puts the mock config
10:40
<
davidlt[m] >
In temporary work directory :)
10:41
<
davidlt[m] >
It's probably in /var/lib/mock/f38-build-709212-92804
10:41
<
davidlt[m] >
Or something similar.
10:41
<
rwmjones >
yeah I'm looking in there
10:41
<
rwmjones >
what's the file called? not anything obvious
10:41
<
davidlt[m] >
Or it's in /etc/mock/some directory.
10:42
<
rwmjones >
it may not have installed mock yet
10:42
<
davidlt[m] >
it's probably called "f38-build-709212-92804" .cfg or something.
10:42
<
rwmjones >
still doing dnf install
10:42
<
davidlt[m] >
It's running in mock.
10:42
<
rwmjones >
oh I found it
10:43
<
davidlt[m] >
What's the path?
10:43
<
rwmjones >
it's actually in /etc/mock/koji/
10:43
<
rwmjones >
/etc/mock/koji/f38-build-709212-92804.cfg
10:43
<
davidlt[m] >
So you can use that as a template.
10:43
<
davidlt[m] >
Could you fpaste that one?
10:44
<
davidlt[m] >
I might do a smart thing today/tomorrow and that into mock-core-configs so it would work out-of-the-box.
10:45
<
rwmjones >
trying ...
10:45
<
rwmjones >
$ fedpkg --release f38 mockbuild -n --root koji/f38-build-709212-92804.cfg
10:45
<
davidlt[m] >
You might need to modify it a bit.
10:45
<
davidlt[m] >
As it might have paths for existing running job in it.
10:46
<
davidlt[m] >
And you really don't want to mess up existing buildroot as a task is cooking.
10:46
<
rwmjones >
I'm running it on the other machine
10:46
<
rwmjones >
and in fact it seems fine
10:46
<
davidlt[m] >
Could you fpaste cfg?
10:48
<
davidlt[m] >
The only thing you want to change is bareurl.
10:48
<
davidlt[m] >
Well, in general it would point to "latest", not a particular koji internal repo.
10:49
<
rwmjones >
it's running now so I'll leave it alone
10:49
<
davidlt[m] >
Those are garbage collected. So in the future replace 92804 to latest.
10:50
<
davidlt[m] >
The only other two things you might want to do is to switch to systemd-nspawn (i.e. container) instead of chroot.
10:50
<
davidlt[m] >
We used to do that back in 2018 (and it mostly worked), but we switched back to chroot as that's what Fedora used.
10:50
<
davidlt[m] >
Now Fedora is using systemd-nspawn by default (we aren't).
10:51
<
davidlt[m] >
Just incase chroot itself is what causes a problem.
10:51
<
rwmjones >
ok, I'll see if this one fails first
10:51
<
davidlt[m] >
Bootstrapping probably will not cause any issues (at least with DNF5).
10:52
<
rwmjones >
grrr python--
11:31
<
rwmjones >
this is not going well
11:31
<
rwmjones >
what's the setting for changing chroot to systemd-nspawn?
11:33
<
rwmjones >
hmm the manual says the default should be systemd-nspawn
11:33
<
rwmjones >
no it is using chroot according to the messages
11:34
<
rwmjones >
ok let's try ...
11:34
<
rwmjones >
$ fedpkg --release f38 mockbuild -n --root /etc/mock/koji/f38-build-709212-92804.cfg -- --isolation=nspawn
11:39
<
davidlt[m] >
It's in site-defaults.cfg
11:39
<
davidlt[m] >
There is one variable that defines that. Just place that into your config.
11:48
<
rwmjones >
weird, it still uses chroot ...
11:55
<
rwmjones >
I can't get past this one:
11:55
<
rwmjones >
ERROR: Command failed: # /usr/bin/dnf --installroot /var/lib/mock/f38-build-709212-92804-bootstrap/root/ --setopt=install_weak_deps=0 --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock install dnf dnf-plugins-core
11:56
<
rwmjones >
Unable to detect release version (use '--releasever' to specify release version)
11:56
<
rwmjones >
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
11:56
<
rwmjones >
[Errno 2] No such file or directory: '/var/lib/mock/f38-build-709212-92804-bootstrap/root/var/cache/yum/metadata_lock.pid'
11:56
<
rwmjones >
also nothing I seem to do will make it use systemd-nspawn
11:56
<
rwmjones >
unclear if the error is related to chroot, it's plausible it mightbe
11:57
<
rwmjones >
that directory does exist, but maybe if it was already in the chroot then it would not
12:00
<
davidlt[m] >
So it seems that bootstrap is enabled in your configuration.
12:00
<
davidlt[m] >
Or it assumes it's enabled.
12:00
<
rwmjones >
it is enabled
12:00
<
rwmjones >
I'm not sure what that is
12:01
<
rwmjones >
ok it builds a "bootstrap container" with dnf
12:01
<
davidlt[m] >
Basically this is to avoid using host's package manager (DNF).
12:01
<
rwmjones >
that sounds .. good?
12:01
<
rwmjones >
ok I'll try setting it to false
12:01
<
davidlt[m] >
It will create a container with a new DNF. Then use that to create buildroot.
12:02
<
davidlt[m] >
So it's you are running CentOS which has old package manager which doesn't understand new provides/requires it would fail generate buildroot.
12:02
<
davidlt[m] >
So with bootstrap you first get new package manager. One more step.
12:02
<
rwmjones >
this is f37 host so I guess that wouldn't be an issue
12:02
<
rwmjones >
trying a non-bootstrap build now
12:02
<
davidlt[m] >
Yeah, it's more for CentOS as a host thing.
12:03
<
davidlt[m] >
config_opts['use_bootstrap'] = False in your config should disable it.
12:05
<
rwmjones >
similar error again
12:05
<
rwmjones >
[Errno 2] No such file or directory: '/var/lib/mock/f38-build-709212-92804/root/var/cache/yum/metadata_lock.pid'
12:06
<
rwmjones >
oh wait, that dir really doesn't exist, shouldn't it be created by mock?
12:06
<
rwmjones >
anyway let's make it by hand
12:07
<
davidlt[m] >
It might be faster to look at the code to see what needs to happen here.
12:08
<
rwmjones >
ok lunchtime
12:20
<
rwmjones >
failed again
12:20
<
rwmjones >
I think I'm just going to run mock directly
12:20
<
davidlt[m] >
And how are you running it now?
12:20
<
rwmjones >
from fedpkg mockbuild
12:21
<
davidlt[m] >
ah, via fedpkg
12:21
<
davidlt[m] >
Never tried that combo on riscv64.
12:25
<
rwmjones >
well even direct mock fails in the same place
12:26
<
rwmjones >
ERROR: Command failed: # /usr/bin/dnf --installroot /var/lib/mock/f38-build-709212-92804/root/ --setopt=install_weak_deps=0 --disableplugin=local --disableplugin=spacewalk --disableplugin=versionlock groupinstall build
12:26
<
rwmjones >
Unable to detect release version (use '--releasever' to specify release version)
12:26
<
davidlt[m] >
Well it used to work :)
12:26
<
rwmjones >
No matches found for the following disable plugin patterns: local, spacewalk, versionlock
12:26
<
rwmjones >
[Errno 2] No such file or directory: '/var/lib/mock/f38-build-709212-92804/root/var/cache/yum/metadata_lock.pid'
12:26
<
davidlt[m] >
Well it still works (in the builders).
12:26
<
davidlt[m] >
Stupid question. Have you tried using sudo?
12:27
<
rwmjones >
yeah, same thing
12:27
<
davidlt[m] >
Or/and disabling SELinux (just in case).
12:27
<
rwmjones >
is disabled
12:30
<
davidlt[m] >
Does this directory exist /var/lib/mock/f38-build-709212-92804/root/var/cache/yum/?
12:30
<
davidlt[m] >
Is it only lock.pid file that's missing?
12:31
<
davidlt[m] >
You could try to remove existing site-defaults.cfg, and get a brand new one from the RPM. Just don't use new site-defaults.cfg on the builder.
12:32
<
davidlt[m] >
I don't think that would help, but worth a try.
12:32
<
davidlt[m] >
We only change a few things there.
12:53
<
rwmjones >
yeah it all exists beforehand, makes no difference
12:53
<
rwmjones >
I'm going to see if that one test can be disabled and push a fix for that, while bumping the issue upstream
13:02
<
rwmjones >
upstream issue ^
13:02
<
davidlt[m] >
I don't think this is an upstream issue, but just our environment.
13:03
<
rwmjones >
well maybe, but let's see what they say
13:03
<
rwmjones >
hey by the way I am not able to come to devconf.cz owing to budget issues here
13:03
<
rwmjones >
which is annoying but here we are
15:46
<
thefossguy >
That was my first goto
15:46
<
thefossguy >
But its not up-to-date with upstream uboot
15:47
<
thefossguy >
This is also where I started from π
15:47
<
davidlt[m] >
I asked them to open source the tool, so things changed.
15:47
<
davidlt[m] >
There is a patch for U-Boot that explains how to use the existing tool.
15:48
<
davidlt[m] >
Long time ago I asked them to integrate that into U-Boot build process, but that didn't happen.
15:48
<
thefossguy >
The thing is, uboot needs opensbi to build, opensbi needs uboot to build :cry:
15:48
<
thefossguy >
davidlt[m]: Oh there is, I got u-boot working somehow. That was a few days ago, when I posted about the EEPROM thing.
15:49
tg has joined #fedora-riscv
15:49
<
thefossguy >
Whats missing is OpenSBi as payload now :)
15:49
<
davidlt[m] >
The patch got initial review like 5 days ago, so it's not yet landed.
15:49
<
thefossguy >
Not exactly "missing" per se
15:50
<
davidlt[m] >
It contains all instructions from zero to boot screen.
15:51
<
thefossguy >
Well, that's the thing... It (u-boot) works, with upstream documentation :)
15:51
<
thefossguy >
I can build it and even boot the 5.15.0 vendor kernel
15:51
<
davidlt[m] >
At this point it might be better to grab 6.4 + patches from mailing list for the rest.
15:52
<
davidlt[m] >
I think Conor said he had better user experience with upstream vs. vendor kernel.
15:53
<
davidlt[m] >
I think SUSE stuff was written for early stuff.
15:53
<
thefossguy >
davidlt[m]: Again, Linux at least boots fine. That's not the main issue here.
15:53
<
thefossguy >
The problem is building OpenSBI as a payload to u-boot. ;)
15:54
<
davidlt[m] >
What problem?
15:54
<
davidlt[m] >
Just build FW_DYNAMIC variant, you get a binary, point environment variable to it and build U-boot.
15:55
<
davidlt[m] >
U-Boot will place DTB, U-Boot proper and OpenSBI bianry into ITS file (well, DTB).
15:56
<
thefossguy >
Just a sec, I'll remove a few changes and share my build script
15:57
<
davidlt[m] >
Looks Ok.
15:58
<
davidlt[m] >
I don't like FW_TEXT_START
15:58
<
davidlt[m] >
Oh this will be annoying.
15:58
<
thefossguy >
I'm using FW_TEXT_START. Maybe that could be it?
15:58
<
thefossguy >
davidlt[m]: well, this is
15:58
<
thefossguy >
<thefossguy> "But then deviated to other..." <- what I shared here ;)
15:59
<
davidlt[m] >
The problem is that all other boards use default. I only build one OpenSBI for all the targets, that's generic.
16:00
<
davidlt[m] >
Changing FW_TEXT_START might mean I cannot reuse existing binary, and might need to do a board specific OpenSBI build :/
16:00
<
thefossguy >
What value do you use right now?
16:00
<
davidlt[m] >
default is 0x80000000.
16:01
<
davidlt[m] >
We used to build multiple OpenSBI per different platform in "old days".
16:04
<
thefossguy >
<thefossguy> "Just a sec, I'll remove a few..." <- Here is the
**WIP** PKGBUILD
16:07
<
davidlt[m] >
You lack: PLATFORM=generic FW_TEXT_START=0x40000000 FW_OPTIONS=0
16:08
<
davidlt[m] >
Oh, sorry.
16:08
<
davidlt[m] >
Head is not working properly.
16:08
<
thefossguy >
Haha, no problem
16:08
<
davidlt[m] >
You don't set environment variable.
16:08
<
thefossguy >
davidlt[m]: Which one?
16:08
<
davidlt[m] >
Ah you do :D
16:08
<
davidlt[m] >
OPENSBI
16:09
<
thefossguy >
That one I did XD
16:09
<
davidlt[m] >
Looks okay.
16:09
<
thefossguy >
Calm down haha
16:09
<
davidlt[m] >
My head isn't working today, I am way too sleepy :D
16:10
<
thefossguy >
Mind if I ask what your /etc/localtime points to? π
16:10
<
davidlt[m] >
Vilnius, Lithuania, GMT+3
16:11
<
davidlt[m] >
I bet we are on the similar/the same timezone :D
16:11
<
thefossguy >
Ah, I wondered why you were so close to mine lol
16:11
<
thefossguy >
Mine is Kolkata, India, GMT+5:30
16:12
<
davidlt[m] >
Yeah, very similar.
16:12
<
thefossguy >
davidlt[m]: It's only 19:00, how are you sleepy? XD
16:12
<
davidlt[m] >
Well that happens if you go to sleep at midnight or later :)
16:13
<
thefossguy >
Good thing I needed a reminded of it
16:14
<
thefossguy >
Had a bad habit of staying up late, working
16:14
<
thefossguy >
Either way, we're offtopic now XD
16:14
<
thefossguy >
You go sleep well, I'll tinker with this for 15 or so minutes
16:15
<
davidlt[m] >
Nah, it's way too early to sleep :)
16:16
<
thefossguy >
I'm at a point where I remember urls of almost all git repos that I need to visit
16:16
<
thefossguy >
nervous laughter That's good, right? hahahaaaaaaaa
16:17
<
davidlt[m] >
Well, I have a good view of 23'000 packages in Fedora.
16:17
<
davidlt[m] >
That's insane.
18:05
<
davidlt[m] >
Seems Ventana is working on something interesting: [PATCH v2 0/4] SPL NVme support in U-Boot.
20:06
<
rwmjones >
(by cheating and turning off the tests %ifarch riscv64)
20:06
<
rwmjones >
I pushed that change to rawhide
20:06
<
rwmjones >
anyway tomorrow I'll look at another package, hopefully quicker this time ...
23:01
<
drewfustini >
anyone have experience running docker on a riscv target?