Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.10 is OUT / Merge Window is OPEN until 25 October 2021 / Release v2022.01 is scheduled for 10 January 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
taliho has quit [Ping timeout: 256 seconds]
samekh has joined #u-boot
samekh_ has quit [Ping timeout: 256 seconds]
vagrantc has joined #u-boot
camus has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 240 seconds]
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
camus has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
sdfgsdfg has quit [Quit: ZzzZ]
sdfgsdfg has joined #u-boot
vagrantc has quit [Quit: leaving]
taliho has joined #u-boot
_whitelogger has joined #u-boot
camus1 has joined #u-boot
fdanis_away is now known as fdanis
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
guillaume_g has joined #u-boot
agust has joined #u-boot
Xavier7 has joined #u-boot
mckoan|away is now known as mckoan
<mckoan> good morning
macromorgan has joined #u-boot
macromorgan is now known as Guest5687
apritzel has joined #u-boot
Guest5687 has quit [Ping timeout: 240 seconds]
apritzel has quit [Ping timeout: 256 seconds]
milkylainen has joined #u-boot
milkylainen has quit [Client Quit]
milkylainen has joined #u-boot
camus has quit [*.net *.split]
thopiekar has quit [*.net *.split]
samekh has quit [*.net *.split]
srk has quit [*.net *.split]
haritz has quit [*.net *.split]
bradfa has quit [*.net *.split]
blmaier has quit [*.net *.split]
matthewcroughan has quit [*.net *.split]
mwalle has quit [*.net *.split]
Rahix has quit [*.net *.split]
mckoan has quit [*.net *.split]
manu has quit [*.net *.split]
adeepv has quit [*.net *.split]
GNUtoo has quit [*.net *.split]
Dhruvagole[m] has quit [*.net *.split]
urja has quit [*.net *.split]
davlefou_ has quit [*.net *.split]
akaWolf has quit [*.net *.split]
bq has quit [*.net *.split]
any1 has quit [*.net *.split]
swiftgeek has quit [*.net *.split]
tucanae47_ has quit [*.net *.split]
xypron has quit [*.net *.split]
MartijnBraam[m] has quit [*.net *.split]
[0x4A6F] has quit [*.net *.split]
alone[m] has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
Patater has quit [*.net *.split]
mithro has quit [*.net *.split]
CounterPillow has quit [*.net *.split]
ullbeking_ has quit [*.net *.split]
pratyush has quit [*.net *.split]
lvrp16 has quit [*.net *.split]
taliho has quit [*.net *.split]
qschulz has quit [*.net *.split]
derRichard has quit [*.net *.split]
marc1 has quit [*.net *.split]
mps has quit [*.net *.split]
Net147_ has quit [*.net *.split]
Sout_ has quit [*.net *.split]
rfried has quit [*.net *.split]
jeeebz has quit [*.net *.split]
sicelo has quit [*.net *.split]
fionera has quit [*.net *.split]
dvergata1 has quit [*.net *.split]
clarity has quit [*.net *.split]
zkrx has quit [*.net *.split]
maxim[m] has quit [*.net *.split]
jamestperk has quit [*.net *.split]
neoXite has quit [*.net *.split]
vfazio_ has quit [*.net *.split]
paulbarker has quit [*.net *.split]
g5pw has quit [*.net *.split]
marex has quit [*.net *.split]
LinuxHackerman has quit [*.net *.split]
jurc192[m] has quit [*.net *.split]
georgem has quit [*.net *.split]
Luker has quit [*.net *.split]
tafa has quit [*.net *.split]
cambrian_invader has quit [*.net *.split]
ldts has quit [*.net *.split]
tom42 has quit [*.net *.split]
cengiz_io has quit [*.net *.split]
austriancoder has quit [*.net *.split]
cottsay has quit [*.net *.split]
mmind00 has quit [*.net *.split]
foxtrot has quit [*.net *.split]
Tartarus has quit [*.net *.split]
jimpo has quit [*.net *.split]
jordemort has quit [*.net *.split]
cpackham[m] has quit [*.net *.split]
pavelow has quit [*.net *.split]
BobBeck has quit [*.net *.split]
Crofton has quit [*.net *.split]
iopaniuk has quit [*.net *.split]
nohit has quit [*.net *.split]
sigmaris has quit [*.net *.split]
agraf has quit [*.net *.split]
qsx has quit [*.net *.split]
samueldr has quit [*.net *.split]
mvaittin has quit [*.net *.split]
EdSwarthout has quit [*.net *.split]
stefanct has quit [*.net *.split]
ElementW has quit [*.net *.split]
Rondom has quit [*.net *.split]
alan_o has quit [*.net *.split]
heijligen has quit [*.net *.split]
j`ey has quit [*.net *.split]
kallisti5[m] has quit [*.net *.split]
hays has quit [*.net *.split]
drewfustini has quit [*.net *.split]
mkstr has quit [*.net *.split]
ad__ has quit [*.net *.split]
dgilmore has quit [*.net *.split]
smurray has quit [*.net *.split]
cengiz_io has joined #u-boot
vfazio_ has joined #u-boot
ldts has joined #u-boot
heijligen has joined #u-boot
Sout_ has joined #u-boot
taliho has joined #u-boot
camus has joined #u-boot
samekh has joined #u-boot
thopiekar has joined #u-boot
srk has joined #u-boot
derRichard has joined #u-boot
qschulz has joined #u-boot
mps has joined #u-boot
hays has joined #u-boot
haritz has joined #u-boot
bradfa has joined #u-boot
blmaier has joined #u-boot
zkrx has joined #u-boot
maxim[m] has joined #u-boot
samueldr has joined #u-boot
Tartarus has joined #u-boot
GNUtoo has joined #u-boot
jimpo has joined #u-boot
BobBeck has joined #u-boot
Dhruvagole[m] has joined #u-boot
MartijnBraam[m] has joined #u-boot
mvaittin has joined #u-boot
LinuxHackerman has joined #u-boot
jordemort has joined #u-boot
kallisti5[m] has joined #u-boot
[0x4A6F] has joined #u-boot
cpackham[m] has joined #u-boot
jurc192[m] has joined #u-boot
matthewcroughan has joined #u-boot
clarity has joined #u-boot
alone[m] has joined #u-boot
dvergata1 has joined #u-boot
fionera has joined #u-boot
jeeebz has joined #u-boot
sicelo has joined #u-boot
rfried has joined #u-boot
Net147_ has joined #u-boot
marc1 has joined #u-boot
xypron has joined #u-boot
tucanae47_ has joined #u-boot
swiftgeek has joined #u-boot
bq has joined #u-boot
any1 has joined #u-boot
akaWolf has joined #u-boot
urja has joined #u-boot
davlefou_ has joined #u-boot
pratyush has joined #u-boot
mithro has joined #u-boot
lvrp16 has joined #u-boot
ullbeking_ has joined #u-boot
CounterPillow has joined #u-boot
Patater has joined #u-boot
g5pw has joined #u-boot
neoXite has joined #u-boot
paulbarker has joined #u-boot
jamestperk has joined #u-boot
foxtrot has joined #u-boot
mmind00 has joined #u-boot
cottsay has joined #u-boot
kallisti5 has joined #u-boot
tom42 has joined #u-boot
nohit has joined #u-boot
stefanct has joined #u-boot
EdSwarthout has joined #u-boot
cambrian_invader has joined #u-boot
Rondom has joined #u-boot
georgem has joined #u-boot
j`ey has joined #u-boot
austriancoder has joined #u-boot
ElementW has joined #u-boot
tafa has joined #u-boot
Luker has joined #u-boot
iopaniuk has joined #u-boot
alan_o has joined #u-boot
Crofton has joined #u-boot
pavelow has joined #u-boot
agraf has joined #u-boot
sigmaris has joined #u-boot
qsx has joined #u-boot
smurray has joined #u-boot
dgilmore has joined #u-boot
mkstr has joined #u-boot
drewfustini has joined #u-boot
adeepv has joined #u-boot
ad__ has joined #u-boot
mckoan has joined #u-boot
manu has joined #u-boot
mwalle has joined #u-boot
marex has joined #u-boot
Rahix has joined #u-boot
Sout_ has quit [Ping timeout: 256 seconds]
Sout_ has joined #u-boot
Xavier7 has quit [Quit: • IRcap • 8.72 •]
milkylainen has quit [Quit: Connection closed]
sszy has joined #u-boot
___nick___ has joined #u-boot
tre has joined #u-boot
milkylainen has joined #u-boot
camus1 has joined #u-boot
camus has quit [Ping timeout: 240 seconds]
camus1 is now known as camus
mmu_man has joined #u-boot
apritzel has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
gaude has joined #u-boot
<gaude> can u-boot for qemu-riscv64 boot xip kernels? i'm trying something similar to https://alexghiti.github.io/xip/XIP.html but with the "virt" machine and u-boot as boot loader
<gaude> uboot itself works, i can also see the kernel image loaded at the right address; but "go 0x21000000"  only shows starting application and it does not seem to boot
<gaude> any ideas how to debug this? in the u-boot config are some config options for xip but i guess they are only for loading uboot itself
sdfgsdfg has quit [Quit: ZzzZ]
sdfgsdfg has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
monstr has joined #u-boot
<mps> xypron: hi! yesterday I talked with musl author (Rich Felker aka dalias) on #musl channel about loff_t problem
<mps> would you mind if I paste our conversation for you to look
<mps> apritzel: hi! your patch doesn't apply to current master branch and I didn't looked deeply why
<mps> apritzel: waiting for new one
<mps> apritzel: but not in hurry, so when you finish just drop me a note
mmu_man has joined #u-boot
tre has quit [Remote host closed the connection]
torez has joined #u-boot
<apritzel> mps: I posted it already, just a sec ....
<mps> apritzel: hm, I don't see this in backlog here
<mps> apritzel: thanks
ladis has joined #u-boot
sdfgsdfg has quit [Quit: ZzzZ]
torez has quit [Ping timeout: 240 seconds]
torez has joined #u-boot
<xypron> mps: yes I can have a look.
camus1 has joined #u-boot
<mps> xypron: here https://tpaste.us/Or6d
camus has quit [Read error: Connection reset by peer]
camus1 is now known as camus
obicons has joined #u-boot
<obicons> I'm trying to use u-boot on qemu riscv, just for learning. I've prepared a really program (i.e. while (1) { }) that I've compiled using riscv64-unknown-elf-gcc. But when I try to boot the program using bootelf, I get Unhandled exception: Instruction access fault. Any ideas what I could be doing wrong?
monstr has quit [Remote host closed the connection]
<xypron> mps: we cannot get rid of loff_t as we copy a lot of kernel code to U-Boot. Does changing include/linux/types.h line 43 to #ifndef loff_t solve your problem?
<Tartarus> xypron: We don't need to get rid of loff_t, we just need to fixup the sandbox abstraction code to not use it?
<Tartarus> Or mps does the build fail later if you "make -k" and then it's loff_t in some of our internal code?
<xypron> Tartarus: I don't want to get rid of it, but define it on Alpine LInux.
<xypron> Tartarus: The current ifndef removes it on Alpine
<Tartarus> Yes, but that's the wrong direction for dealing with Alpine, the code should be portable instead
<Tartarus> If the problem is only in some exposed to userspace side of things
<xypron> Tartarus: Why should the definition of loff_t depend on __GNUC__?
<xypron> We are using it anyway.
<xypron> Maybe we don't need any #ifdef at all
<Tartarus> Because the first question to answer is are we talking about internal code, or exposed userspace stuff
<Tartarus> The latter needs to be written in a portable manner
<xypron> Tartarus: loff_t is used for internal interfaces here
<xypron> But first let mps check if that line can fix the problem at all.
<Tartarus> xypron: Where? os_get_filesize isn't internal interface exactly
<Tartarus> Show me cmd/bootm.c failing to compile, that's internal
<Tartarus> arch/sandbox/cpu/os.c is special
<xypron> Tartarus: os_get-filesize is sandbox internal.
<Tartarus> Right, so that's fix to not use loff_t
<xypron> Tartaus: OPENSSL_API_COMPAT 0x10101000L is Openssl 1.1.1. So this is what we require with my patch. Ubuntu up to 21.10 uses 1.1.1. ONly in 22.04 we get OpenSSL 3.0.0
macromorgan has quit [Read error: Connection reset by peer]
<Tartarus> So we can't drop the cast because it's only a warning now with 3.0.0 ?
macromorgan has joined #u-boot
<xypron> Tartarus: We should have a solution to build without warning on Ubuntu 22.04. We want to package u-boot 2022.01 with it.
<Tartarus> Yes, I'll take the cast for now
<Tartarus> But what's the best future path? Is that only a warning with openssl 3.0.0 and we can't do something else clean that won't cause a problem with 1.1.1 ?
<apritzel> xypron: does 22.04 ship with 3.0.0 *only*? Is that API compatible to 1.1.x?
<xypron> apritzel: We saw deprecation warnings without OPENSSL_API_COMPAT.
<xypron> Tartarus: I guess we wil have to use the 1.1.0 API for the next 3 years.
<mps> xypron: I'm not in house now, will check when I come back
<xypron> apritzel: https://launchpad.net/ubuntu/+source/openssl shows only 3.0.1. I am not aware of a legacy package.
<xypron> apritzel: End of live for OpenSSL: OpenSSL 1.1.1September 11, 2018
<xypron> Sorry that was release
<mps> apritzel: we tried openssl 3.0.0 on alpine but had to revert back 1.1, a lot of things breaks
<xypron> mps: same experience in Ubuntu. It was a large job.
<xypron> apritzel: ersion 1.1.1 will be supported until 2023-09-11 (LTS).https://www.openssl.org/policies/releasestrat.html
<Tartarus> xypron: So in sum, that cast is the only way forward to support 3.0.0 and 1.1.1 without warnings from either/
<xypron> yes
<Tartarus> OK, thanks. Can you please reply to the email with that as well for the record? I'll push that and the mailmap change shortly
<apritzel> sjg1: Tartarus: I get "OSError: [Errno 24] Too many open files" when buildman tries to build boards.cfg, is that a known issue?
<Tartarus> apritzel: repeatable?
<apritzel> increasing the soft limit from 1024 to 65536 helps, but I wonder if that should be fixed in buildman instead?
<apritzel> everytime
<Tartarus> I'd poke around a bit more to see how you're triggering that, yeah
noise has joined #u-boot
<apritzel> this machine has 256 cores, could that have an effect?
<macromorgan> dumb question, but how does one get an LED to blink in U-Boot?
<macromorgan> trying "led xxx blink" but no matter what I put for xxx I get "LED xxx not found (err=-19)"
<apritzel> Tartarus: ulimit -n 1035 fails, -n 1036 works (and values above, of course)
redbrain has joined #u-boot
<Tartarus> apritzel: Not your ancient slackware machine then? :)
<Tartarus> But yeah, no, not something that we normally see
<Tartarus> So it'd be good to know what's going on
<apritzel> Tartarus: Ubuntu 20.04 on ThunderX2
<Tartarus> I guess yeah it could be that we can't normally open that many files at once on "small" machines
<apritzel> I can debug a little, just wanted to check if that is known already
<Tartarus> i think it just might be the general thing about ulimit actually kicking in
<Tartarus> Because you have so many cores and can do so much
<apritzel> Tartarus: it's really just creating boards.cfg, if that file is already around, everything works fine (even with -T 40 -j4)
<Tartarus> Yeah, but that's only 160 threads
<Tartarus> vs I think making that file opens all Kconfig files
<Tartarus> Another option would be to update buildman to use Kconfiglib more directly and not require parsing that legacy file
noise has quit [Quit: Konversation terminated!]
obicons has quit [Quit: Connection closed]
<apritzel> Tartarus: it's not buildman, really, it's "tools/genboardscfg.py -f -j 255 -o /dev/null" that fails
<apritzel> -j 254 works
<Tartarus> Right
redbrain has quit [Ping timeout: 256 seconds]
guillaume_g has quit [Quit: Konversation terminated!]
<mps> apritzel: forgot to tell you that your video patches are good, terminus fonts look nice on M1 (though somewhat big to my taste)
<apritzel> mps: ah cool, thanks! You could try the sun12x22 font, and there are also smaller versions of Terminus somewhere
<mps> apritzel: only problem is that moving cursor left deletes character on screen but character is not actually deleted
<apritzel> with the arrow key, you mean?
<mps> apritzel: sun fonts are ugly to my taste, but I tested it in sandbox and they are ok for someone who like them
<mps> apritzel: yes, left arrow key
<apritzel> ah, I dimly remember now that this was a problem, thanks for the heads up!
<mps> looks like I use backspace but pressing enter it repeats command
<apritzel> can you reply on the mailing list?
<mps> apritzel: I'm not subscribed to ML
<mps> maybe I should subscribe because I'm current u-boot maintainer for alpine, but I'm subscribed to much MLs
<apritzel> mps: you don't need to be subscribed to reply, check the instructions at the bottom: https://lore.kernel.org/u-boot/20220110121642.36f2f404@donnerap.cambridge.arm.com/#R
torez has quit [Ping timeout: 240 seconds]
<mps> apritzel: ah, missed this. thanks
fdanis is now known as fdanis_away
<xypron> apritzel: couldn't the script itself read and raise the ulimit as needed? The problem also occurs on a machine with 16 cores and -j256.
<xypron> apritzel: .setrlimit(res.RLIMIT_NOFILE,(soft,hard)) resource.setrlimit(resource, limits)
<apritzel> xypron: I wonder if a limit to --jobs is more useful
<apritzel> xypron: or at least the default is min(cpu_count, 128) or so
<xypron> apritzel: ValueError: not allowed to raise maximum limit is what I get when I try raising RLIMIT_FILENO. Lowering works. Urrrgh
<apritzel> xypron: depends on your hard limit, maybe?
mckoan is now known as mckoan|away
<xypron> aprtizel: hard limit cannot be raised relative to what I set with ulimit
<xypron> apritzel: yes hard limit is the one that only can be lowered.
<apritzel> I mean if your soft limit was already on your hard limit, then you cannot raise anymore
<xypron> Same on console with ulimit
torez has joined #u-boot
<xypron> I should have called ulimit with -S -n and not with -n only.
rcn-ee has quit [Remote host closed the connection]
vagrantc has joined #u-boot
<apritzel> mps: the official Terminus font source has various sizes, including 10x20, 11x22, 12x24, 14x28
<apritzel> mps: seems like the Linux git history contains some hints on how to get the .h file from the font source
redbrain has joined #u-boot
apritzel has quit [Ping timeout: 240 seconds]
<mps> few years ago I started to add terminus fonts to kernel and looked this but someone was faster than me
<mps> ah, apritzel left channel
<mps> maybe I have my patches about this somewhere in old archives
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
davlefou_ has quit [Ping timeout: 260 seconds]
redbrain has quit [Quit: leaving]
redbrain has joined #u-boot
taliho has quit [Read error: Connection reset by peer]
taliho has joined #u-boot
kettenis has joined #u-boot
<mps> xypron: are you around? I'm back and have about hour or two to try and test loff_t problem
<xypron> mps:
<mps> what I need to change in include/linux/types.h, not sure I understood
<mps> line 43
<xypron> mps: the include has the typedef for loff_t
<mps> yes
<mps> typedef __kernel_loff_t loff_t;
<xypron> Can you try to change the #ifdef to ensure it is true
<xypron> mps: or just remove it
<mps> `include/vsprintf.h:286:29: error: unknown type name 'loff_t'; did you mean 'off_t'?` this error when removed it
<mps> xypron: like this https://tpaste.us/w1yb
<xypron> mps: You meant: typedef off_t loff_t;?
<xypron> Or better kernel_off _t loff_t;
<xypron> I am only at my phone
<xypron> mps: is there a life image for Alpine?
<mps> xypron: ok, I'm not in a hurry, anywat here is build error log https://tpaste.us/8EY6
<mps> xypron: you mean live image
<xypron> mps: my typo, yes
<mps> no, except docker file
<xypron> mps: docker is fine
<mps> it is in docker repo, I don't know exact name, could ask our infra team
davlefou has joined #u-boot
<mps> xypron: if you prefer qemu I wrote simple guide and script to install and run alpine aarch64 here https://arvanta.net/alpine/install-aarch64-qemu/
apritzel has joined #u-boot
<mps> xypron: on docker it is alpinelinux/build-base and it have alpine-sdk preinstalled and normal user setup
<xypron> mps: I was able to log into Docker image
<mps> xypron: I don't have much experience with docker, prefer to use lxc and qemu
<mps> xypron: this bug appears only when building sandbox, not on other targets I build
<xypron> mps: how did you get over: include/linux/string.h:67:13: error: conflicting types for 'strchrnul'
<mps> xypron: never seen this
<xypron> mps: I just installed: apk add alpine-sdk bison flex git openssl-dev
sdfgsdfg has joined #u-boot
<kettenis> xypron: is that while building the efi capsule tool?
<mps> xypron: also need bc dtc python3-dev swig bison flex openssl1.1-compat-dev py3-setuptools linux-headers
___nick___ has quit [Ping timeout: 240 seconds]
<mps> openssl-dev is maybe openssl 3.0.0, not sure
redbrain has quit [Quit: leaving]
redbrain has joined #u-boot
* vagrantc is always disappointed when trivial spelling fixes don't make it into a released version :/
<vagrantc> i know it's not the most exciting thing :)
<vagrantc> it's half the reason i build ~rc versions :)
<mps> xypron: 'apk version openssl' gives 1.1.1m-r1
<vagrantc> so, a binutils update in debian appears to break building qemu-ppce500_defconfig
<xypron> mps: I am able to reproduce the loff_t issue in Docker
<mps> looks like it is ok, though I prefer explicit openssl1.1-compat-dev
<vagrantc> or at least, i *think* it's a binutils update
<mps> xypron: good, do you have idea what is cause
<xypron> mps: will come back to you
<mps> xypron: ok, no hurries, and thanks for looking on it
<xypron> mps: but there are more issues: arch/sandbox/cpu/eth-raw-os.c:218:41: error: 'struct udphdr' has no member named 'source'
<mps> xypron: yes, I saw these also
<kettenis> xypron: it's not supposed to have a member named 'source' ;)
<mps> and I have some bugs related to samsung peach pi chromebook on list to report but will do when I prepare machine to test
<kettenis> (I guess musl follows BSD here)
<mps> kettenis: I think so
<xypron> kettenis: how do you build sandbox_defconfig on BSD?
<kettenis> glibc defines struct udphdr as a union with both the traditional BSD names and the non-portable Linux names
<kettenis> xypron: I don't, it is non-portable code full of Linux-isms
<mps> xypron: I build it on musl by disabling network options in virtio-net
<mps> s/musl/alpine/
<mps> but I think this should work on other musl based distros
<mps> huh, I must be tired, 'disabling network options and virtio-net'*
Xavier7 has joined #u-boot
ladis has quit [Quit: Leaving]
agust has quit [Quit: Leaving.]
sdfgsdfg has quit [Quit: ZzzZ]
<mps> xypron: will look but can't remember rihgt now I've seen this
redbrain has quit [Ping timeout: 256 seconds]
gaude has quit [Quit: Client closed]
davlefou has quit [Ping timeout: 256 seconds]
hays is now known as h_
davlefou has joined #u-boot
taliho has quit [Read error: Connection reset by peer]
taliho has joined #u-boot