<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!]