rellla changed the topic of #linux-sunxi to: Allwinner/sunxi /development discussion - did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait! - https://github.com/linux-sunxi/ - Logs at http://irclog.whitequark.org/linux-sunxi - *only registered users can talk*
alexxy has quit [Quit: No Ping reply in 180 seconds.]
alexxy has joined #linux-sunxi
lkcl has quit [Ping timeout: 240 seconds]
chewitt has joined #linux-sunxi
lkcl has joined #linux-sunxi
apritzel has quit [Ping timeout: 246 seconds]
Mangy_Dog has quit [Ping timeout: 240 seconds]
sunshavi has quit [Read error: Connection reset by peer]
sunshavi has joined #linux-sunxi
<wens> apritzel: I'm all for it, but I don't have any ideas # get rid of IPI
cnxsoft has joined #linux-sunxi
cnxsoft1 has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
lurchi_ has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
tuxd3v has quit [Remote host closed the connection]
tuxd3v has joined #linux-sunxi
shailangsa has quit [Read error: Connection reset by peer]
fl_0 has quit [Ping timeout: 265 seconds]
pmp-p has quit [Read error: Connection reset by peer]
Kooda has quit [Ping timeout: 272 seconds]
fl_0 has joined #linux-sunxi
pmp-p has joined #linux-sunxi
Kooda has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
pCactus has quit [Ping timeout: 264 seconds]
cmeerw has joined #linux-sunxi
asdf28 has joined #linux-sunxi
hlauer has joined #linux-sunxi
shailangsa has joined #linux-sunxi
andy25225 has quit [Ping timeout: 240 seconds]
cmeerw has quit [Ping timeout: 260 seconds]
apritzel has joined #linux-sunxi
andy25225 has joined #linux-sunxi
<hlauer> whats the syntax for an echo command in uboots bootcmd variable to get ${kernel} resolved?
prefixcactus has quit [Read error: Connection reset by peer]
pCactus has joined #linux-sunxi
prefixcactus has joined #linux-sunxi
apritzel has quit [Ping timeout: 240 seconds]
mmarc__ has joined #linux-sunxi
matthias_bgg has joined #linux-sunxi
lurchi_ has quit [Read error: Connection reset by peer]
lurchi__ has joined #linux-sunxi
yann has quit [Ping timeout: 256 seconds]
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc___ has joined #linux-sunxi
mmarc__ has quit [Read error: No route to host]
dev1990 has joined #linux-sunxi
mmarc___ has quit [Remote host closed the connection]
ldevulder_ has joined #linux-sunxi
ldevulder has quit [Ping timeout: 246 seconds]
mmarc__ has joined #linux-sunxi
yann has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
apritzel has joined #linux-sunxi
warpme_ has joined #linux-sunxi
mmarc__ has joined #linux-sunxi
ldevulder has joined #linux-sunxi
ldevulder_ has quit [Ping timeout: 272 seconds]
Mangy_Dog has joined #linux-sunxi
iyzsong has quit [Ping timeout: 240 seconds]
elros1 has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
iyzsong has joined #linux-sunxi
yann has quit [Ping timeout: 240 seconds]
mmarc__ has joined #linux-sunxi
chewitt has quit [Read error: Connection reset by peer]
chewitt_ has joined #linux-sunxi
<plaes> echo "variable 'kernel': ${kernel}"
<plaes> but I'm not 100% sure whether I understood the question
lerc_ has quit [Ping timeout: 240 seconds]
<apritzel> yeah, was trying to understand that question as well the whole morning ;-)
lerc has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
<prefixcactus> apritzel: I've loaded/started a kernel (supposedly together with an initrd and rest of distro) via U-Boot on my board. Only problem is I don't get any feedback from it besides "Uncompressing Linux... done, booting the kernel."
<plaes> ah.. you need to enable early console in kernel configuration
<prefixcactus> I dunno if it has to do with u-boot or the kernel itself (or both), and how I should determine the culprit
<prefixcactus> plaes: already did that
<plaes> CONFIG_EARLY_PRINTK ?
<prefixcactus> yes, that
<prefixcactus> (via menuconfig)
<apritzel> prefixcactus: what is your commandline?
smaeul has quit [Ping timeout: 264 seconds]
<prefixcactus> It does print what I posted earlier now, before that the last message was from U-Boot
<apritzel> "done, booting the kernel" is a message from the kernel, more precisely the ARM kernel decompressor
<apritzel> prefixcactus: do you have "console=ttyS0,115200n8" on your command line?
<prefixcactus> Don't think so. I'll check
<apritzel> prefixcactus: also, be careful with your DTB: Linux will mercilessly setup the voltages on the PMIC according to what it finds in the DT, so there is some chance that you could fry your board if that is wrong
<prefixcactus> Yeah, I've already run over the whole thing fixing the voltages
<apritzel> good!
<prefixcactus> I'm recompiling the kernel now with the console string appended via config to make sure it's there
<prefixcactus> oh, by the way
<prefixcactus> is there a way to make u-boot print the boot script as it sees it?
<apritzel> prefixcactus: hardcoding the command line into the kernel build? that's nasty, don't do this
<prefixcactus> not a best practice, but seems like a bulletproof debugging strategy
<prefixcactus> at least I can be sure it's there now
<apritzel> that should be all you need to get some early kernel output: setenv bootargs "console=ttyS0,115200n8"; bootz $kernel_addr_r - $fdt_addr_r
<apritzel> that relies on the DT being accessible, and doesn't include earlyprintk, but should work out of the box
chewitt_ is now known as chewitt
<prefixcactus> apritzel: the commandline you posted seems to do nothing...
<prefixcactus> more specifically, executing bootz yields a debug print of where the current stack ends and a new command prompt
yann has joined #linux-sunxi
<apritzel> prefixcactus: so you are using some image wrapped kernel, not the zImage file directly?
<prefixcactus> yes
<prefixcactus> or no, I'm not sure
<prefixcactus> the kernel is compiled within an image-building script, but there is a zImage in /boot
<prefixcactus> apritzel: (also, boot.cmd _does_ add "console=ttyS0,115200" to the kernel command line)
<apritzel> yeah, it's just hard to reason what exactly goes wrong if everything is wrapped up several times (bootz into a U-Boot image, the whole boot commands into some U-Boot script)
<prefixcactus> Yeah, understandable
<prefixcactus> I could try to set up a minimal environment, but then in addition to U-Boot or the kernel effing up there will be a probable factor of me having set the whole thing up wrong somehow
netlynx has joined #linux-sunxi
<prefixcactus> I enabled the earlycon cmdline flag, now it gets to "[ 0.000000] printk: bootconsole [uart0] enabled" and then stops
<prefixcactus> So I suspect the uart params might be borked somehow..
<apritzel> prefixcactus: have you tried "earlyprintk" on the command line? In addition to the console=... ?
<apritzel> (was a while ago that I debugged some ARM32 kernel boot ...)
<prefixcactus> I added it now (as well as increasing verbosity) and on second 2 it started spewing strcktraces at me
<prefixcactus> dunno what it did in between, but that's definitely something
reinforce has quit [Quit: Leaving.]
andy25225 has quit [Ping timeout: 256 seconds]
JohnDoe_71Rus has joined #linux-sunxi
chewitt has left #linux-sunxi ["Adios!"]
chewitt has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
andy25225 has joined #linux-sunxi
pCactus has quit [Read error: Connection reset by peer]
pCactus has joined #linux-sunxi
<hlauer> plaes, apritzel: setenv bootcmd "echo \"Loading ${kernel}\";..." works, thanks!
mmarc__ has joined #linux-sunxi
uis has joined #linux-sunxi
<uis> Is possible to use hdmi as console in u-boot?
<uis> And how to do it
pCactus has quit [Read error: Connection reset by peer]
pCactus has joined #linux-sunxi
<apritzel> uis: just connect a monitor ;-)
<uis> Mainline uboot
mmarc__ has quit [Remote host closed the connection]
<apritzel> uis: that should work out of the box, given your SoC is supported and your board doesn't disable it
<apritzel> uis: yes, what board/SoC?
<uis> A10
<uis> Noname board. Kernel works and shows it's own consol
<uis> dts based on cubieboard
<apritzel> uis: you might need to add some regulator enables in the U-Boot config
<uis> ?
<apritzel> uis: is HDMI or the display engine have some regulator connected, which needs to be enabled first
<apritzel> there is CONFIG_VIDEO_LCD_POWER for this, for instance
<apritzel> for the current A10 display support in U-Boot
<uis> lcd_power in .fex?
<uis> *from
<prefixcactus> apritzel: I got to an initramfs shell
<apritzel> prefixcactus: great, any nasty messages in dmesg on the way?
<prefixcactus> lots of sun4i-pinctrl complaints about not being able to get pins
<apritzel> error -517?
mmarc__ has joined #linux-sunxi
<prefixcactus> also it can't mount the rootfs
<prefixcactus> apparently no modules got loaded
<prefixcactus> here's the full log: https://pastebin.com/2WusPNbw
<prefixcactus> I think I'm gonna work on the rest tomorrow
prefixcactus has quit [Ping timeout: 265 seconds]
mmarc__ has quit [Read error: Connection reset by peer]
mmarc__ has joined #linux-sunxi
yann has quit [Ping timeout: 260 seconds]
prefixcactus has joined #linux-sunxi
pCactus has quit [Ping timeout: 265 seconds]
mmarc__ has quit [Remote host closed the connection]
<uis> Works! Thank you, aprizel
<uis> *apritzel
<apritzel> uis: so was there a GPIO to enable it?
<uis> It seems yes
cmeerw has joined #linux-sunxi
luke-jr has quit [Read error: Connection reset by peer]
<uis> EHCI failed to shut down host controller.
luke-jr has joined #linux-sunxi
uis has quit [Ping timeout: 256 seconds]
<apritzel> uis: yeah, that's some long standing bug somewhere in the U-Boot code, doesn't seem to cause any harm, though
mmarc__ has joined #linux-sunxi
sunshavi has quit [Remote host closed the connection]
sunshavi has joined #linux-sunxi
yann has joined #linux-sunxi
uis has joined #linux-sunxi
<uis> apritzel: no. Not gpio
<apritzel> uis: a regulator then?
<uis> IDK
<uis> But now it detects monitor
<uis> But monitor doesn't detect it
<apritzel> uis: Full HD (1080p)? or anything more special?
<uis> 4k
<uis> 32 mb of memory reserved for fb
<uis> CPU:   Allwinner A10 (SUN4I)
<uis> Model: Some espada board
<uis> MMC:   mmc@1c0f000: 0
<uis> DRAM:  1 GiB
<uis> I2C:   ready
<uis> Loading Environment from MMC... *** Warning ‑ bad CRC, using default environment
<uis> HDMI connected: Setting up a 3840x2160 hdmi console (overscan 0x0)
<uis> In:    serial
<uis> Out:   vga
<uis> Err:   vga
<uis> starting USB...
<uis> Bus usb@1c14000: USB EHCI 1.00
<uis> Bus usb@1c1c000: USB EHCI 1.00
<uis> scanning bus usb@1c14000 for devices... 3 USB Device(s) found
<uis> Maybe change something in dts?
gaston1980 has joined #linux-sunxi
BenG83 has joined #linux-sunxi
<apritzel> uis: U-Boot doesn't look into the DT for video output
<apritzel> I don't know if the timing setup for the A10 display engine needs some special cases for 4K or something
<uis> sunxi-drm works. But it's in kernel
<uis> Timings? But what about edid?
sunshavi has quit [Read error: Connection reset by peer]
<jernej> drm driver limits modes up to 165 MHz for A10
<apritzel> I am thinking about PLL and display engine register setup
<uis> What purpose of CONFIG_LCD_DCLK_PHASE?
<jernej> A10 is not capable driving 4k screen with native resolution
<apritzel> uis: ^^^ there you have it ;-)
<apritzel> uis: what does your monitor/TV report as a resolution/refresh rate when under Linux?
sunshavi has joined #linux-sunxi
uis has quit [Ping timeout: 265 seconds]
uis has joined #linux-sunxi
<uis> Select CONFIG_LCD_PANEL_PARALLEL?
uis has quit [Ping timeout: 260 seconds]
\\Mr_C\\ has quit [Quit: (Read error: Connection reset by beer)]
uis has joined #linux-sunxi
<uis> Or CONFIG_LCD_PANEL_LVDS?
<libv> uis: to achieve what, exactly?
<libv> hdmi at u-boot?
<libv> at 4k...
mmarc__ has quit [Remote host closed the connection]
<libv> knowing how stable the clocking is in the kernel, i am not sure whether that is handled cleanly
<libv> but LCD or LVDS is just clutching at unrelated straws
BenG83 has quit [Quit: Leaving]
prefixcactus has quit [Read error: Connection reset by peer]
pCactus has joined #linux-sunxi
\\Mr_C\\ has joined #linux-sunxi
elros1 has quit [Remote host closed the connection]
<apritzel> uis: as jernej pointed out, this won't work, you would need to force a lower resolution, at least
<uis> 1080?
<uis> Yes
<uis> 1080 works
mmarc__ has joined #linux-sunxi
<uis> Ok. Is there any way to keep edid enabled, but limit resolution? Or fix without resolution limitation
JohnDoe_71Rus has quit [Quit: KVIrc 5.0.1 Aria http://www.kvirc.net/]
shailangsa has quit [Ping timeout: 240 seconds]
uis has quit [Ping timeout: 264 seconds]
ndufresne has quit [Excess Flood]
ndufresne has joined #linux-sunxi
mmarc__ has quit [Remote host closed the connection]
Shailangsa_ has joined #linux-sunxi
netlynx has quit [Quit: Ex-Chat]
Shailangsa_ has quit []
<apritzel> uis: looks like this would be up to you to introduce
prefixcactus has joined #linux-sunxi
pCactus has quit [Read error: Connection reset by peer]
mmarc__ has joined #linux-sunxi
shailangsa has joined #linux-sunxi
Net147 has quit [Quit: Quit]
Net147 has joined #linux-sunxi
Net147 has quit [Remote host closed the connection]
Net147 has joined #linux-sunxi
jstein has joined #linux-sunxi
gaston1980 has quit [Quit: Konversation terminated!]
shailangsa has quit [Ping timeout: 265 seconds]
hlauer has quit [Ping timeout: 256 seconds]
uis has joined #linux-sunxi
<uis> 8 Feb... Will it be mainlined?
cmeerw has quit [Ping timeout: 265 seconds]
<apritzel> uis: yes, that's the plan, that's why we need people testing it
<apritzel> uis: it switches the older Allwinner SoCs to the new video subsystem, so any changes we do to the existing driver now will be in vain
<uis> AFAIK it depends on EDID lib
<uis> Why not to add "select I2C_EDID" to Kconfig?
gnarface has quit [Remote host closed the connection]
shailangsa has joined #linux-sunxi
<apritzel> uis: that's what DISPLAY does already, which we select
<uis> Found. Ok
matthias_bgg has quit [Quit: Leaving]
random_yanek has quit [Ping timeout: 264 seconds]
mmarc__ has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
mmarc__ has quit [Ping timeout: 260 seconds]
gnarface has joined #linux-sunxi
random_yanek has joined #linux-sunxi
asdf28 has quit [Ping timeout: 240 seconds]
vagrantc has joined #linux-sunxi
qschulz has quit [Remote host closed the connection]
mmarc__ has joined #linux-sunxi
qschulz has joined #linux-sunxi
uis has quit [Ping timeout: 260 seconds]