<rmilecki>
Gitiles doesn't have friendly UI, it took me a moment to find it
<Ansuel>
wow they add lots of stuff for simple fw download
<rmilecki>
I was surprised with your small implementation of fw upload after looking at Mediatek's code ;)
<Ansuel>
robimarko that provisioning thing looks interesting wonder if qcom implementation didn't had it
<Ansuel>
(btw on a side note been 2 days i'm investigating a dtb corruption with the arm decompressor... it's either a bug in how the dtb is getting compiled or a bug in how it's parsed by the fdt functions... resulting in only one of the memory node getting detected if the dtb is big enough)
<Ansuel>
(EXTREME SUFFERING)
<Ansuel>
(all of that to permit use of AUTO_ZRELADDR on ipq806x -.-)
cmonroe has joined #openwrt-devel
goliath has joined #openwrt-devel
<rmilecki>
Ansuel: robimarko: so before firmware load devad=MDIO_MMD_PMAPMD regnum=PMAPMD_RSVD_VEND_PROV is 0x0000
<rmilecki>
after firmware load it's 0x0007
<rmilecki>
to make PHY work on my board I need it 0x0006
<Ansuel>
are you sure it's the correct fw?
<Ansuel>
the fw have the bit set to one in the provision data (the fw can set phy regs)
<Ansuel>
so your fw set the mdi reverse but the phy actually isn't... aka a broken fw for the installed phy
<Ansuel>
OK WTF NOW? THE APPENDED DTB TO THE ZIMAGE IS GETTING CORRUPTED??????
<robimarko>
Ansuel: It seems that MTK copy/pasted half of the standalone AQR API to load the FW
<robimarko>
I based the implementation on the upstream U-Boot
<robimarko>
rmilecki: That register is provisioned by the FW, it was set to that value by the vendor FW configuration
<Ansuel>
I discovered something wonderful.... the sp register makes the appended dtb to the zimage corrupt
<Ansuel>
that is actually good since i had lots of fear bootm was corrupting stuff while relocating the loaded image...
Forst has quit [Quit: Quitting]
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
mentalow has quit [Quit: :]]
mentalow has joined #openwrt-devel
Forst has joined #openwrt-devel
goliath has quit [Quit: SIGSEGV]
vincejv has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
vincejv has quit [Quit: Bye bye! Leaving for now...]
<robimarko>
Ansuel: Is the DTB properly aligned?
<Ansuel>
it was a problem with moving the stack pointer and calling C functions (assembly is always fun) i'm making progress on this and I think I'm very near on having a final patch to propose
<Ansuel>
The only thing is that it does patch the arm compressor code so it will affect every target that makes use of those flags
<Ansuel>
(but my idea is that it was broken from the start and things had to disable AUTO_Z... config to make the thing bootable)
<Ansuel>
lovely r7800 uboot atags
<Ansuel>
they pass 0x41500000 as starting
<Ansuel>
and 0x60000000 as size
<Ansuel>
415 is more or less O.K. problem is the gigantic wrong ram size ahahahah
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
vincejv has joined #openwrt-devel
fakuivan has quit [Remote host closed the connection]
fakuivan has joined #openwrt-devel
jeff___m has joined #openwrt-devel
jeff___m has quit [Ping timeout: 480 seconds]
<Ansuel>
sent the patch upstream... really curious what they will think of it...