DarkNeutrino has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
vagrantc has joined #linux-sunxi
NekoMay has quit [Ping timeout: 480 seconds]
<montjoie>
smaeul: initrd is a uboot image
<montjoie>
with $fdtcontroladdr, I got TFTP error: trying to overwrite reserved memory...
<jernej>
montjoie: $fdtcontroladdr already contains DTB, modified by firmware, so you shouldn't overwrite it
<montjoie>
does modifying dtb will be available in the future ?
<montjoie>
anyway with fdtcontroladdr, no bootlog:'(
<montjoie>
probably because fdtcontroladdr does not have earlycon
<jernej>
you should be able to set custom bootargs
<jernej>
you can modify DT via overlays
<jernej>
or patch U-Boot DT files and rebuild whole U-Boot
Esmil_ has left #linux-sunxi [#linux-sunxi]
Esmil has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
JohnDoe_71Rus has quit []
swedishhat has joined #linux-sunxi
bauen1 has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
swedishhat has quit [Quit: Page closed]
grming has joined #linux-sunxi
ftg has joined #linux-sunxi
<smaeul>
you call booti after finishing all of the TFTP transfers, so I don't see how changing the booti argument to $fdtcontroladdr could cause a TFTP error
<smaeul>
you can also add earlycon with the bootargs environment variable, regardless of where the DT comes from
<smaeul>
*modifying* the DTB, via an overlay or the `fdt` command, is supported. *replacing* it is not supported
<apritzel>
smaeul: did you try applying overlays or changing with the fdt command at the original $fdtcontroladdr location?
<apritzel>
I remember this worked a few years back, but doesn't work anymore, I guess U-Boot puts some data behind the image (and thus DTB)
<apritzel>
at least on arm, don't know if this is different on D1
<smaeul>
I think it's more that the DM holds offsets into the controll FDT if you don't have OF_LIVE enabled
<smaeul>
and modifying the FDT can change these offsets
<apritzel>
mmmh, possible, might check this
<smaeul>
so trivial changes work, but not something like adding new nodes
<apritzel>
anyway, a workaround seems to be to copy the DTB first
<smaeul>
> However a flat tree does not support modification from within U-Boot since it can invalidate driver-model device tree offsets. This option enables a live tree which is available after relocation, and can be adjusted as needed.
<apritzel>
ah, nice
<apritzel>
so do those modifications affect U-Boot's operation then?
<apritzel>
I guess this is probably not what most people want, instead they want to apply overlays or change nodes for the kernel
<apritzel>
for that I use: "fdt move $fdtcontroladdr $fdt_addr_r"
<apritzel>
then work on that address
<smaeul>
right, $fdtcontroladdr is what U-Boot is actively using, if OF_LIVE=n
<apritzel>
ah, so with OF_LIVE=y any changes to the DTB at $fdtcontroladdr wouldn't affect U-Boot anymore, because it's using a unflattened tree, somewhere else in memory
ftg has quit [Read error: Connection reset by peer]
grming has quit [Quit: Konversation terminated!]
DarkNeutrino has quit [Read error: Connection reset by peer]
DarkNeutrino has joined #linux-sunxi
DarkNeutrino has quit [Read error: Connection reset by peer]