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
Forty-Bot has joined #u-boot
apritzel has quit [Ping timeout: 256 seconds]
samekh_ has joined #u-boot
samekh has quit [Ping timeout: 245 seconds]
GNUtoo has quit [Ping timeout: 276 seconds]
mmu_man has quit [Ping timeout: 250 seconds]
sdfgsdfg has joined #u-boot
GNUtoo has joined #u-boot
parabyte has quit [Quit: Leaving]
vagrantc has joined #u-boot
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
sdfgsdfg has quit [Quit: ayo yoyo ayo yoyo hololo, hololo.]
thopiekar has quit [Ping timeout: 240 seconds]
thopiekar has joined #u-boot
vagrantc has quit [Ping timeout: 240 seconds]
coldspark29 has quit [Ping timeout: 260 seconds]
coldspark29 has joined #u-boot
vagrantc has joined #u-boot
vagrantc has quit [Quit: leaving]
sdfgsdfg has joined #u-boot
crb__ has joined #u-boot
jimpo_ has joined #u-boot
tchebb_ has joined #u-boot
mps_ has joined #u-boot
pattop_ has joined #u-boot
cyrozap-ZNC has joined #u-boot
crb_ has quit [*.net *.split]
mps has quit [*.net *.split]
pattop has quit [*.net *.split]
jimpo has quit [*.net *.split]
SheriF has quit [*.net *.split]
tchebb has quit [*.net *.split]
swiftgeek has quit [*.net *.split]
kveremitz has quit [*.net *.split]
dvergatal has quit [*.net *.split]
cyrozap has quit [*.net *.split]
EdSwarthout has quit [*.net *.split]
MWelchUK has quit [*.net *.split]
fdanis_away has quit [*.net *.split]
sbach has quit [Read error: Connection reset by peer]
cyrozap-ZNC has quit [Client Quit]
sdfgsdfg has quit [Quit: ayo yoyo ayo yoyo hololo, hololo.]
cyrozap has joined #u-boot
sbach has joined #u-boot
dvergatal has joined #u-boot
SheriF has joined #u-boot
kveremitz has joined #u-boot
MWelchUK has joined #u-boot
fdanis_away has joined #u-boot
swiftgeek has joined #u-boot
EdSwarthout has joined #u-boot
fdanis_away is now known as fdanis
guillaume_g has joined #u-boot
lucaceresoli_ has joined #u-boot
mckoan|away is now known as mckoan
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 250 seconds]
<baltazar> welp, it still doesn't seem to work
lucaceresoli_ has quit [Quit: Leaving]
zibolo has joined #u-boot
<baltazar> however, I can see an ethaddr environment variable now
<baltazar> do I need to do something extra to pass it to linux?
<baltazar> (this environment variable doesn't exist if I build u-boot without apritzel's suggested change)
sszy has joined #u-boot
sdfgsdfg has joined #u-boot
matthias_bgg has joined #u-boot
sdfgsdfg has quit [Quit: ayo yoyo ayo yoyo hololo, hololo.]
tnovotny has joined #u-boot
apritzel has joined #u-boot
sdfgsdfg has joined #u-boot
lucaceresoli has joined #u-boot
<kernelspace> hi, on "usb start" on am572x i get a "data abort" on second controlloer devices detection.
<kernelspace> could this be due to connected stuff ?
apritzel_ has joined #u-boot
mmu_man has joined #u-boot
<baltazar> apritzel: I recompiled u-boot, now I have an ethaddr environment variable. what do I need to do with it to have linux recognise it?
<apritzel_> baltazar: nothing, really. There is generic code to take that address and write that into the DT-in-memory copy, when booting the kernel
<baltazar> hmm
<baltazar> well, it doesn't quite seem to work on its own, at least dmesg still shows random addresses in every boot
<apritzel_> baltazar: if you have the kernel booted up, check: /sys/firmware/devicetree/base/soc*/ethernet*
<apritzel_> baltazar: there should be a "local-mac-address" property in there
<baltazar> apritzel_: there doesn't seem to be anything address-related in there
<kettenis> you need an ethernet0 alias in the device tree for that to work
<baltazar> kettenis: that's what I just did
<baltazar> this is all I see in there: http://ix.io/3NLy
<apritzel_> baltazar: ah, can you try to use bootz ... $fdtcontroladdr
<apritzel_> instead of using the DTB you load
<apritzel_> because I *think* you would need an ethernet0 alias in this loaded DTB as well
<baltazar> apritzel_: hmm, yes, `fdt print /aliases` doesn't show the ethernet0 alias after loading it
<apritzel_> baltazar: ($fdtcontroladdr is pointing to the DT that U-Boot is using itself)
<baltazar> apritzel_: so I shouldn't even load the fdt?
<apritzel_> baltazar: you wouldn't need to, necessarily
<milkylainen> It's not that u-boot needs an option to begin modifying the parameters when loading?
<apritzel_> baltazar: the DT we have in U-Boot is a bit older, but updating that has some issues (long and sad story ...)
<apritzel_> baltazar: alternatively you could edit the DT you load from your partition, an add the ethernet0 alias in there as well
<milkylainen> OF_BOARD_SETUP and OF_SYSTEM_SETUP?
<baltazar> apritzel_: hmm. can't I add it dynamically? with `fdt somecommand` in my boot.scr?
<apritzel_> milkylainen: that's all set for all Allwinner boards, but if there is no alias in the DT, nothing will happen: check fdt_fixup_ethernet() in common/fdt_support.c
<apritzel_> baltazar: yeah, you could, if that's easier for you
<baltazar> apritzel_: well, since the dtb file is provided by a package and might be updated (although I assume not very often), I don't really want to change it
<apritzel_> baltazar: just keep in mind that "&emac" is a DT source only feature, so you have to resolve this yourself and give the DT path
<baltazar> apritzel_: I thought so
<baltazar> hmm, running `fdt set /aliases ethernet0 /soc/ethernet@1c30000` gives me `libfdt fdt_setprop(): FDT_ERR_NOSPACE`
<apritzel_> fdt resize
<baltazar> ah
sdfgsdfg has quit [Quit: ayo yoyo ayo yoyo hololo, hololo.]
sdfgsdfg has joined #u-boot
<baltazar> nice! it seems to be working
<baltazar> do I even need to change it in the source then?
<apritzel_> baltazar: you mean in U-Boot? I think so, because otherwise the sunxi code won't generate the MAC address from the SID in the first place
<apritzel_> baltazar: or maybe not, give it a try ...
<baltazar> nope, it's required
<milkylainen> apritzel: Ah. It was just an idea, didn't know. :)
matthias_bgg has quit [Read error: Connection reset by peer]
matthias_bgg has joined #u-boot
stefanro has quit [Ping timeout: 240 seconds]
stefanro has joined #u-boot
matthias_bgg has quit [Quit: Leaving]
Tooniis[m] has joined #u-boot
<baltazar> btw, is there a chance for this change to get into mainline?
coldspark29 has quit [Ping timeout: 268 seconds]
sdfgsdfg has quit [Quit: ayo yoyo ayo yoyo hololo, hololo.]
sakman has joined #u-boot
mckoan is now known as mckoan|away
<apritzel_> baltazar: sure, make a patch and send it ;-) (but to Linux first)
zibolo has quit [Ping timeout: 256 seconds]
vagrantc has joined #u-boot
guillaume_g has quit [Quit: Konversation terminated!]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
tnovotny has quit [Quit: Leaving]
mps_ is now known as mps
fdanis is now known as fdanis_away
<mps> how to buid u-boot with clang and binutils-gold (I don't have much experience with clang)
<mps> should I edit Makefile or set clang in .config
<mps> hm, `HOSTCC = cc` in makefile
apritzel_ has quit [Ping timeout: 252 seconds]
<cambrian_invader> make CC=clang
<mps> cambrian_invader: and LD=ld.gold?
<Tartarus> Note that using LD=lld doesn't work last time I tried, I don't know about ld.gold
tlwoerner_ has joined #u-boot
Zapy_ has joined #u-boot
Zapy has quit [Ping timeout: 256 seconds]
Rahix has quit [Ping timeout: 256 seconds]
Zapy_ is now known as Zapy
tlwoerner has quit [Ping timeout: 256 seconds]
cbmuser_ has quit [Ping timeout: 256 seconds]
zkrx has quit [Ping timeout: 256 seconds]
rfried has quit [Ping timeout: 256 seconds]
sicelo has quit [Ping timeout: 256 seconds]
rfried has joined #u-boot
jeeebz has quit [Ping timeout: 256 seconds]
zkrx has joined #u-boot
Rahix has joined #u-boot
cbmuser_ has joined #u-boot
sicelo has joined #u-boot
sicelo has joined #u-boot
sicelo has quit [Changing host]
jybz has joined #u-boot
<mps> it works with `make HOSTCC=clang LD=lld`
<mps> also with `make HOSTCC=clang LD=ld.gold`
<mps> trying to look in problem sjg1 posted on mailing list about 'wchar_size' on musl
<Tartarus> Ah nice
<Tartarus> But, sandbox or arm, or arm64? I think I was poking arm/arm64 at the time
coldspark29 has joined #u-boot
lucaceresoli has quit [Ping timeout: 250 seconds]
vagrantc has quit [Ping timeout: 240 seconds]
vagrantc has joined #u-boot
lucaceresoli has joined #u-boot
kernelspace is now known as ad__
sdfgsdfg has joined #u-boot