victhor has quit [Remote host closed the connection]
<wens>
paulliu: sounds weird
tonispax_ has quit [Remote host closed the connection]
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 240 seconds]
JohnDoe_71Rus has joined #linux-sunxi
dddddd has quit [Remote host closed the connection]
[7] has quit [Ping timeout: 255 seconds]
TheSeven has joined #linux-sunxi
anarsoul has quit [Ping timeout: 240 seconds]
jbrown has quit [Ping timeout: 276 seconds]
anarsoul has joined #linux-sunxi
fkluknav has joined #linux-sunxi
TEKrantz has quit [Ping timeout: 264 seconds]
fkluknav has quit [Ping timeout: 264 seconds]
focus_ has quit [Ping timeout: 240 seconds]
xyntrix has quit [Quit: Leaving]
qeed has quit [Quit: Leaving]
focus_ has joined #linux-sunxi
TEKrantz has joined #linux-sunxi
fkluknav has joined #linux-sunxi
IgorPec has joined #linux-sunxi
montjoie has joined #linux-sunxi
anarsoul has quit [Ping timeout: 264 seconds]
<wens>
f11f12_: which mixer? G2D? DE 2.0?
dlan has quit [Ping timeout: 240 seconds]
f0xx has joined #linux-sunxi
netlynx has joined #linux-sunxi
anarsoul has joined #linux-sunxi
nuuuciano_ has quit [Ping timeout: 240 seconds]
dlan has joined #linux-sunxi
<f11f12_>
wens: R40 mixer0/1. I have TCON0->LVDS (single channel) out running (test pattern generator) but can't seem to get the R40 mixer to run. The DE2.0 datasheet does not describe the R40 so I peek at the others to see what could make sense.
nOOb__ has quit [Ping timeout: 248 seconds]
dlan has quit [Remote host closed the connection]
dlan has joined #linux-sunxi
dlan has joined #linux-sunxi
dlan has quit [Remote host closed the connection]
dlan has joined #linux-sunxi
dlan has quit [Ping timeout: 240 seconds]
dlan has joined #linux-sunxi
Putti has joined #linux-sunxi
dlan has quit [Ping timeout: 268 seconds]
dlan has joined #linux-sunxi
<f11f12_>
wens: I'm on mainline/git 4.17, I'm using icenowy[m] 's sun8i_mixer and clocking/reset infrastructure. Does the allwinner mixer ip run continuously when started? Or is it on a frame by frame basis?
dlan has quit [Remote host closed the connection]
dlan has joined #linux-sunxi
focus_ has quit [Ping timeout: 268 seconds]
dlan has quit [Remote host closed the connection]
dlan has joined #linux-sunxi
dlan has joined #linux-sunxi
hitech95_ROG has joined #linux-sunxi
TheSeven has quit [Disconnected by services]
[7] has joined #linux-sunxi
focus_ has joined #linux-sunxi
jaganteki has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
mavkhimenia has quit [Ping timeout: 256 seconds]
msimpson has joined #linux-sunxi
mavkhimenia has joined #linux-sunxi
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein
f0xx has quit [Ping timeout: 248 seconds]
fkluknav has quit [Ping timeout: 248 seconds]
mavkhimenia has quit [Remote host closed the connection]
ganbold has quit [Quit: This computer has gone to sleep]
elros has joined #linux-sunxi
jaganteki has quit [Ping timeout: 260 seconds]
<wens>
do you have all the necessary clocks up and running? the ones described in DE TOP
fkluknav has joined #linux-sunxi
<wens>
and there's also routing from the mixer to one of the encoder outputs
<oliv3r>
hey all, is there a way to force the kernel to probe for devices (built-in not module) before running init? I currently have an initramfs but the USB storage devices only come available 1 - 2 seconds after init is started. I can add a 2s sleep to the init, which 'fixes' it but that's kinda hacky
<gnarface>
i think what you want is to just move it earlier in init
<smaeul>
there's rootdelay/rootwait, but I don't think they apply if you have an initramfs
leviathan has quit [Ping timeout: 248 seconds]
<pmpp>
they apply
<pmpp>
sometime aoe is slow to discover devices and rootwait fixes it
victhor has joined #linux-sunxi
<smaeul>
otherwise you'll need to run some program (e.g. mdev or udev) to process all of the kernel's uevents to know when it's finished probing hardware
<pmpp>
let me correct they apply when initramfs respect *that* parameter ;) so +1 with smaeul
<pmpp>
oliv3r: if grep -q rootwait /proc/cmdline => busy loop, your sleep 2s is the "rootdelay" implementation :D
<smaeul>
oliv3r: for this specific situation, findmnt is probably what you want
<smaeul>
while ! $(findmnt -q ${ROOT}); do sleep 1; done
<pmpp>
yeah that's the rootwait
<smaeul>
er, sorry, I meant `findfs`
<smaeul>
busuybox also has an implementation
<pmpp>
( for aoe you may add echo > /dev/etherd/discover in the loop )
<pmpp>
must cut root= for findfs iirc it does LABEL= or UUID= only
<pmpp>
i wonder if daughter board is strapped with adhesive
<oliv3r>
yeah, but rootwait is for when a device absolutly exists
<oliv3r>
a USB device may or may not be inserted
<oliv3r>
so need to wait until USB probing is finished
<pmpp>
oliv3r: yeah usb probing is async, you busywait
<oliv3r>
i was hoping that all probing would be done by the time init is started, and I don't think there's some trigger that I can wait for that lets me know all probing is done
<oliv3r>
busywait for what?
<pmpp>
for device to be found
<oliv3r>
in the case for when I know for certain a USB stick is inserted, easy
<oliv3r>
but what if there is no stick? wait until it appears?
<oliv3r>
thats kind of a long time to wait to continue booting :)
<pmpp>
then you need a fallback root device
<oliv3r>
e.g. right now, i just loop over a list of devices that exist in /dev/ (sd* and mmc*) and if none exist, continue with a regular root
<oliv3r>
regular boot
<oliv3r>
this is not the root device i'm waiting for, it is 'A' device which _may_ contain a file i'm looking for
<_bielski_>
beeble: thanks, I have found also similar patches for the SPL switchover, anyway, my code looks fine but the execution gives 'undefined instruction', can it be a compiler issue?
<oliv3r>
if it exists, i need to do something with the file, if it does not exist, i continue as usual
<pmpp>
so you're ok with rootdelay= => sleep
<oliv3r>
no
<oliv3r>
:)
<oliv3r>
rootdelay will wait until root is available
<oliv3r>
root is _always_ available
<oliv3r>
i need to check for some file on some device
<oliv3r>
and continue normal boot if it does not exist
<oliv3r>
think of a 'debug' parameter in a file
<pmpp>
if you have built initrd yourself it is up to you to implement the rootdelay
<oliv3r>
if i insert a usb stick, with a file on it named 'debug' i want a rescue shell or a led to turn on or whatever
<oliv3r>
if not, continue normal boot
<oliv3r>
so in my initramfs, in my init script, I need some way to figure out wether usb probing has finished
<oliv3r>
as now, probing continues until AFTER the init script has already started
<pmpp>
so you want root=maybe_root1_if_usb, may_beroot2_ifwhatever, normalroot
<oliv3r>
not root
<oliv3r>
root=/dev/mmcblk1p1
<pmpp>
ok i get it
<oliv3r>
and i want to: for device in sda* mmc*; do mount $device; if /mnt/debug; echo "hello"; done
<pmpp>
you want to delay normal boot until you can seek for a file on a specific path and device
<oliv3r>
yes, but, sda may never appear
<oliv3r>
(if there is no usb device inserted)
<oliv3r>
so i need to know when the kenrel thinks probing is done
<pmpp>
check dmesg with grep
<oliv3r>
(ignoring the fact that if a device is inserted later, probing will of course be later)
<oliv3r>
that would be unsupported :)
<oliv3r>
check for what? when do I know it is done
<oliv3r>
while grep 'sda'; sleep 1; done; will wait forever
<pmpp>
just get the line *after* usb job is done
<oliv3r>
anyway, if that's the only way, i'll just sleep for x seconds and wait to see
<pmpp>
if device is not there at this time, then continue
<oliv3r>
so dmesg is the _only_ way to find out that the kernel is done
<oliv3r>
yeah but i already know the probing takes 1 - 2 seconds after init is started
<oliv3r>
so i then may as well sleep for 2s and try
<oliv3r>
but i want something more reliable :)
<oliv3r>
ideally, that the kenrel informs me that it is busy probing and when it is done probing
<oliv3r>
or force init to not start until probing has finished
<oliv3r>
(i'm happy to wait for probing to finish, if i know when that is)
<oliv3r>
now i have to hand-tune the 'sleep' basically
<oliv3r>
e.g. 2 second seems to be okay, but there's no way to know if it is okay
<smaeul>
oliv3r: the kernel informs you via uevents
<pmpp>
that loooks like a problem systemd can solve
<oliv3r>
i'm not gonna gonna put systemd in my initramfs :p
<oliv3r>
smaeul: that sounds interesting, but i think those uevents are per device right?
<pmpp>
then you are doomed to reimplement it in sh :p
<oliv3r>
the point of initramfs to prepare the system :p on my /root it allready will start systemd :)
<oliv3r>
also, there's not enough space in my initramfs for systemd :p
<oliv3r>
smaeul: is there a generic uevent from the kernel to let us know 'im done probing with all that i can discover'?
<oliv3r>
would have been so much easier if init would only be started after the kernel was done probing :S
<smaeul>
oliv3r: yes, the kernel generates one for each device found, so once you've read them all, you know it's done (I think)
xerpi has quit [Quit: Leaving]
<oliv3r>
hmm
<oliv3r>
but lets say, usb starts probing, there is no /sys/bus/usb/uevent is there?
<oliv3r>
hmm maybe it is :)
<oliv3r>
ok then i could detect all this
<oliv3r>
i'll dig deeper into this in the future, for now i'll just do a sleep ${rootdelay}
<elros>
hm every time I modprobe 8189es it use different mac and create wlan1 device
JohnDoe6 has joined #linux-sunxi
JohnDoe_71Rus has quit [Ping timeout: 260 seconds]
leviathan has joined #linux-sunxi
leviathan has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
fkluknav has quit [Ping timeout: 248 seconds]
<buZz>
was i dreaming , or is there seriously talk about making a opensource Mali driver again?
<jernej>
f11f12_: Not specifically for R40/V40, but since AW engineer said that 40nm SoCs have same HDMI/HDMI PHY combination, it should be exactly the same as H3
tonispax has joined #linux-sunxi
ninolein has joined #linux-sunxi
<jernej>
and H3 driver has already working HPD IRQ in mainline kernel since 4.17-rc1
<jernej>
so, what do you want to know specifically?
<jernej>
icenowy[m]: What needs to be done to speed up SDIO for SD card on H6?
ninolein has quit [Remote host closed the connection]
lkcl has quit [Ping timeout: 240 seconds]
f0xx has quit [Ping timeout: 248 seconds]
aib has joined #linux-sunxi
IgorPec has quit [Ping timeout: 260 seconds]
giomba has quit [Remote host closed the connection]
lkcl has joined #linux-sunxi
anarsoul|2 has quit [Remote host closed the connection]
anarsoul|2 has joined #linux-sunxi
anarsoul|2 has quit [Quit: Leaving]
dddddd has quit [Remote host closed the connection]
hanni76 has quit [Ping timeout: 248 seconds]
tonispax has quit [Remote host closed the connection]
xyntrix has quit [Quit: Leaving]
LargePrime has joined #linux-sunxi
xes has quit [Quit: bye..]
xes has joined #linux-sunxi
Putti has quit [Ping timeout: 263 seconds]
rexxster has quit [Remote host closed the connection]
swiftgeek has quit [Read error: Connection reset by peer]
swiftgeek has joined #linux-sunxi
scream has quit [Read error: Connection reset by peer]
fkluknav has quit [Ping timeout: 248 seconds]
AneoX has quit [Ping timeout: 264 seconds]
AneoX has joined #linux-sunxi
elros has joined #linux-sunxi
hitech95_ROG has quit [Ping timeout: 248 seconds]
nuuuciano_ has quit [Ping timeout: 256 seconds]
netlynx has quit [Quit: Ex-Chat]
nuuuciano_ has joined #linux-sunxi
focus_ has quit [Remote host closed the connection]
jstein has quit [Quit: quit]
Mr__Anderson has quit [Remote host closed the connection]
aalm has quit [Ping timeout: 260 seconds]
aalm has joined #linux-sunxi
reinforce has quit [Quit: Leaving.]
Harrier_ has quit [Remote host closed the connection]