ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
<smaeul> if you still don't get any UART output, CONFIG_DEBUG_UART is your fallback. you'll need 0x5000000 / 24000000 / 2 / Y / Y / N / N for the options, and define a board_debug_uart_init function that sets the pinmux and enables the gate/reset using a couple of writel's.
<smaeul> you should then get at least "<debug_uart>" on the UART. if so, you can printf() your way through SPL to see where the normal driver is failing to come up
<apritzel> machinehum: changing the DTS will not do anything for the SPL, that's all hardcoded
<apritzel> machinehum: do you have sunxi-fel working? typically I try to enable the UART there first
apritzel has quit [Ping timeout: 480 seconds]
ftg has quit [Ping timeout: 480 seconds]
<machinehum> sunxi-fel?
<machinehum> Also what version of uboot did you use? Getting some compiling errors
<machinehum> [machinehum@whitebox u-boot-apritzel]$ git diff
<machinehum> diff --git a/configs/lindenis_v5_defconfig b/configs/lindenis_v5_defconfig
<machinehum> index 77b108f0c3..9b885aeed0 100644
<machinehum> --- a/configs/lindenis_v5_defconfig
<machinehum> +++ b/configs/lindenis_v5_defconfig
<machinehum> @@ -5,9 +5,6 @@ CONFIG_SPL=y
<machinehum> CONFIG_MACH_SUN8I_V5=y
<machinehum> CONFIG_SUNXI_DRAM_H6_LPDDR3=y
<machinehum> CONFIG_MMC0_CD_PIN="PF6"
<machinehum> -CONFIG_SPL_SPI_SUNXI=y
<machinehum> -# CONFIG_PSCI_RESET is not set
<machinehum> # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
<machinehum> -CONFIG_SUN8I_EMAC=y
<machinehum> CONFIG_USB_EHCI_HCD=y
<machinehum> CONFIG_USB_OHCI_HCD=y
<machinehum> Y
<machinehum> Builds fine now
<machinehum> Wait why did CONFIG_SPL_SPI_SUNXI get turned off I was just trying to disable the ethernet stuff...
<machinehum> aperezdc: You patch plus a few mods
evgeny_boger has joined #linux-sunxi
JohnDoe_71Rus has joined #linux-sunxi
pmp-p_ has joined #linux-sunxi
pmp-p is now known as Guest2535
pmp-p_ is now known as pmp-p
pmp-p has quit []
pmp-p has joined #linux-sunxi
apritzel has joined #linux-sunxi
Guest2535 has quit [Ping timeout: 480 seconds]
apritzel has quit [Ping timeout: 480 seconds]
pmp-p has quit [Ping timeout: 480 seconds]
evgeny_boger has quit [Ping timeout: 480 seconds]
pmp-p has joined #linux-sunxi
apritzel has joined #linux-sunxi
<apritzel> machinehum: I was using latest mainline U-Boot, of course, and you should do the same
<apritzel> machinehum: there is little point in developing against an older version, plus you help testing new patches on the way
<apritzel> for instance the whole pinctrl code was reworked, so this would need adoption
<apritzel> machinehum: you would still need to adjust the pinmux for your serial in arch/arm/mach-sunxi/board.c, in the way you did it in your version
<apritzel> machinehum: what I posted was still running on an H6, though in 32-bit mode, because this is the only thing I could test
Daanct12 has joined #linux-sunxi
Daanct12 has quit [Quit: Leaving]
Daanct12 has joined #linux-sunxi
ftg has joined #linux-sunxi
<MoeIcenowy> smaeul: how to handle cyclic dependency between rtc ccu and r-ccu?
<adjtm> smaeul, the last code you have for rv 86 panel is riscv/d1-wip, right?
<adjtm> do you have any documentation or notes somewhere, in addition of what's available in linux-sunxi?
<MoeIcenowy> smaeul: oh ignore me it's not a problem
<MoeIcenowy> my problem is just rtc-sun6i didn't probe for r329 at all w/o a compatible string added to it
<MoeIcenowy> even if there's match in ccu-sun6i-rtc
<MoeIcenowy> (because rtc-sun6i calls ccu-sun6i-rtc, the latter is not a independent driver
denemeler has joined #linux-sunxi
Hypfer is now known as Guest2557
Hypfer has joined #linux-sunxi
Guest2557 has quit [Ping timeout: 480 seconds]
Daanct12 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
denemeler has quit []
jemk_ has joined #linux-sunxi
jemk_ has quit []
JohnDoe_71Rus has joined #linux-sunxi
mps_ has joined #linux-sunxi
mps has quit [Ping timeout: 480 seconds]
cnxsoft has joined #linux-sunxi
<smaeul> adjtm: yes, that's the latest I have. no, I don't have documentation. that's just a 1:1 translation of the driver from Sipeed's BSP dump. it doesn't work, and I haven't tried to investigate.
<adjtm> smaeul, thanks, I finally received the device after shenzhen's lockdown
enick_200 has quit []
pg12 has quit [Ping timeout: 480 seconds]
pg12 has joined #linux-sunxi
<machinehum> I'm using 2022.04-rc5
<machinehum> Which is pretty much the latest
<apritzel> machinehum: not really, we merged Samuel's DM pinctrl driver two weeks ago, and that should be tagged as v2022.07-rc1 next week
<machinehum> Oh
<apritzel> yes, it's still within the merge window, but this requires some changes, so better hop on it now
vagrantc has joined #linux-sunxi
<machinehum> How come in board.c CONFIG_CONS_INDEX == 1, but they all seem to be using uart0? Also what it this change for? https://gist.github.com/Machine-Hum/02fed051784a362a3ce98d323206f78d#file-v5-patch-L136 Also I changed board.c still nothin :/
<machinehum> I'm also thinking SUN50I_H6_GPH_UART0 is find, SUN50I_H6_GPB_UART0 should be 2 as well
<apritzel> the change was because I don't have a V5, but just a H6 in 32-bit mode, mimicking a V5
<apritzel> so for me I need to use the H6 pinctrl, even when defining (the fake) CONFIG_MACH_SUN8I_V5 symbol
<machinehum> Gotcha
<apritzel> those defines are just distractions, and just there because there have been there forever. I don't really see the point of this indirection, honestly, one could just write "2" in there
<machinehum> Yeah, it's not like "SUN50I_H6_GPH_UART0" make any more sense than the number 2
<apritzel> exactly
<apritzel> and CONS_INDEX_x is 1-based, because U-Boot defines it that way (it's a generic symbol)
<apritzel> consider it job security, we can't make it too easy to understand ;-)
<machinehum> lol
<machinehum> Thanks guys :D
<apritzel> it seems to be commonly accepted to hide every magic number behind a symbol, but I think that: "the H6 GPH UART uses the H6 GPH UART mux" does not convey much information
<jernej> apritzel: using macros for magic numbers is preferred in most areas of my work, but that assumes that you use descriptive macro name
<jernej> consider it replacement for comments
<apritzel> yeah, I understand the idea, but sometimes it doesn't really help, I think, and just requires me to look up that symbol to get the actual information
<apritzel> and in this case SUN50I_H616_GPH_UART0 doesn't really provide that comment functionality, since it misses the term "MUX" somewhere in there
<jernej> well, if you use IDE, it should give you exact number just by hoovering mouse over symbol. if not, it's just short search away
<apritzel> yes, ctags solves that problem, given that your index is up-to-date (which is often not true if you often jump between branches)
<apritzel> jernej: and I don't understand what an old hard disk interface has to do with that :-D
<jakllsch> heh
<jernej> :P
<apritzel> jernej: don't disappoint me and say you are using VS Code ;-)
<jernej> no, I use Krusader file manager and it has pretty good text editor integrated, which in turn uses standard KDE component for that...
<jernej> resolving symbols is basically the only thing that's missing
<jernej> well, that editor can be compared to trimmed version of Kate
<jernej> when I really need an IDE (for all that fancy GDB integration), I use Eclipse. But that's at work for MCU firmware development.
<apritzel> jernej: no need to apologise, I am cool with people not using vi ...
<jakllsch> heh.
<jernej> I could never use vi, but vim on the other hand, I use pretty often, just not for coding
cnxsoft has quit [Remote host closed the connection]
apritzel has quit [Ping timeout: 480 seconds]
apritzel has joined #linux-sunxi
apritzel has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
JohnDoe_71Rus has quit []
evgeny_boger has quit [Read error: Connection reset by peer]
Daanct12 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
apritzel has joined #linux-sunxi
gnarface has quit [Read error: Connection reset by peer]
gnarface has joined #linux-sunxi
dliviu has quit [Ping timeout: 480 seconds]
dliviu has joined #linux-sunxi
evgeny_boger has joined #linux-sunxi
Daanct12 has quit [Remote host closed the connection]
gnarface has quit [Quit: Leaving]
gnarface has joined #linux-sunxi
vagrantc has joined #linux-sunxi