montjoie has quit [Ping timeout: 256 seconds]
montjoie has joined #linux-amlogic
Daanct12 has joined #linux-amlogic
Danct12 has quit [Ping timeout: 240 seconds]
buzzmarshall has quit [Quit: Konversation terminated!]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
Daanct12 has quit [Quit: Leaving]
anessen976589800 has joined #linux-amlogic
anessen976589800 has quit [Read error: Connection reset by peer]
tdebrouw has joined #linux-amlogic
<
tdebrouw>
I have a board with a S905D3, running mainline uboot v2022.04
<
tdebrouw>
it has an emmc on the pcb
<
tdebrouw>
I can boot the board from the emmc
<
tdebrouw>
so, BL2 & friends can access the emmc without any problem
<
tdebrouw>
but when uboot tries to access the emmc, it fails to do so
<
tdebrouw>
I can also boot the board from sdcard, and boot linux from sdcard
<
tdebrouw>
after linux has booted, I can access the emmc without any issues
<
tdebrouw>
I have a similar board containing an A311D and that works fine - booting from emmc with uboot just works
<
tdebrouw>
any idea what might go wrong?
anessen976589800 has joined #linux-amlogic
anessen976589800 has quit [Read error: Connection reset by peer]
anessen976589800 has joined #linux-amlogic
anessen976589800 has quit [Read error: Connection reset by peer]
anessen976589800 has joined #linux-amlogic
Lila-Kuh has quit [Quit: geht mal an die frische Luft...]
Lila-Kuh has joined #linux-amlogic
anessen976589800 has quit [Read error: Connection reset by peer]
<
narmstrong>
tdebrouw: what's the failure ?
anessen976589800 has joined #linux-amlogic
Lila-Kuh has quit [Remote host closed the connection]
Lila-Kuh has joined #linux-amlogic
anessen976589800 has quit [Read error: Connection reset by peer]
anessen976589800 has joined #linux-amlogic
<
tdebrouw>
nevermind, I found it the problem.
<
tdebrouw>
the clock phase needed to be 270
<
tdebrouw>
I copied my a311d-board-uboot.dtsi to s905-board-uboot.dtsi
<
tdebrouw>
but I didn't update the include
<
tdebrouw>
the a311d uses #include "meson-g12-common-u-boot.dtsi"
<
tdebrouw>
but the s905d3 needs #include "meson-sm1-u-boot.dtsi"
<
tdebrouw>
that last include switches the driver data to MMC_COMPATIBLE_SM1, which changes the phase to CLK_CO_PHASE_270
<
tdebrouw>
that special phase isn't present in mainline?
<
tdebrouw>
*linux mainline
<
tdebrouw>
it seems to be fixed to 180 in linux
<
tdebrouw>
and 'selectable' in uboot
<
narmstrong>
yep it seems 270 is needed for HS mode, but 180 for HS200 mode, and Linux mostly uses HS200 so the problem is less seen
vagrantc has joined #linux-amlogic
Danct12 has joined #linux-amlogic
Lila-Kuh has quit [Remote host closed the connection]
Lila-Kuh has joined #linux-amlogic
LilaKuh has joined #linux-amlogic
Lila-Kuh has quit [Ping timeout: 240 seconds]
tdebrouw has quit [Quit: Leaving.]
LilaKuh is now known as Lila-Kuh
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #linux-amlogic
anessen976589800 has quit [Quit: Ping timeout (120 seconds)]
anessen976589800 has joined #linux-amlogic
Lila-Kuh has quit [Quit: geht mal an die frische Luft...]
anessen976589800 has quit [Read error: Connection reset by peer]
anessen976589800 has joined #linux-amlogic