Turl 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
mic-e[m] has joined #linux-sunxi
phipli has quit [Ping timeout: 240 seconds]
Ntemis has quit [Ping timeout: 260 seconds]
fugitive has joined #linux-sunxi
Ntemis has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9]
terra854 has joined #linux-sunxi
ganbold has joined #linux-sunxi
fugitive has quit [Ping timeout: 240 seconds]
nvz has joined #linux-sunxi
ninolein has quit [Ping timeout: 240 seconds]
ninolein has joined #linux-sunxi
vagrantc has joined #linux-sunxi
TEKrantz has quit [Ping timeout: 240 seconds]
TEKrantz has joined #linux-sunxi
cnxsoft has joined #linux-sunxi
gzamboni has quit [Read error: Connection reset by peer]
LargePrime has joined #linux-sunxi
akaizen has quit [Quit: Textual IRC Client: www.textualapp.com]
akaizen has joined #linux-sunxi
Ntemis has quit [Ping timeout: 260 seconds]
cnxsoft has quit [Quit: cnxsoft]
cnxsoft has joined #linux-sunxi
vagrantc has quit [Quit: leaving]
_whitelogger has joined #linux-sunxi
jemk has quit [Remote host closed the connection]
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Ping timeout: 260 seconds]
SP7RT has joined #linux-sunxi
SP7RT has quit [Ping timeout: 246 seconds]
[7] has quit [Disconnected by services]
jernej has joined #linux-sunxi
TheSeven has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
cnxsoft has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has joined #linux-sunxi
netlynx has quit [Changing host]
<wens> jernej: what dot clock / resolution were you using when you hit the fractional clock issue?
jernej has quit [Ping timeout: 260 seconds]
_whitelogger has joined #linux-sunxi
diego_ has joined #linux-sunxi
diego_ is now known as diego71
GK1wmSU has joined #linux-sunxi
GK1wmSU has left #linux-sunxi [#linux-sunxi]
JohnDoe_71Rus has joined #linux-sunxi
_GK1wmSU has joined #linux-sunxi
_GK1wmSU has left #linux-sunxi [#linux-sunxi]
nvz has quit [Quit: leaving]
reinforce has joined #linux-sunxi
Gerwin_J has joined #linux-sunxi
f0xx has joined #linux-sunxi
<oliv3r> codekipp1r: excellent :D then you can surely help me get mine working on the a20 :)
<oliv3r> here's what i've done so far:
dave0x6d has joined #linux-sunxi
<wens> oliv3r: lgtm
<oliv3r> wens: except for it not working :p
<oliv3r> or i don't understand how it's supposed to work
<oliv3r> i except to have an additional sound card in alsamixer, now i have sun4i-codec, i expect to see sun4i-i2s or similar, or a new toggle
<oliv3r> alas nothing
<oliv3r> unless it all works in secrets :p
<oliv3r> There is a small bug in the i2s driver though
<oliv3r> - if (!IS_ERR(i2s->rst)) {
<oliv3r> + if (!IS_ERR_OR_NULL(i2s->rst)) {
<oliv3r> i think the i2s driver was written for sun5i, but never tested on sun7i
<plaes> this was alreay reported by automatic check
<plaes> return PTR_ERR_OR_ZERO(i2s->field_rxchansel);
<oliv3r> also for rchansel, ok
<oliv3r> i only have the reset one
<oliv3r> i'm on 4.9.39 stable i think
<oliv3r> so it's not backported to there
<oliv3r> plaes: that bit is not in my sun4i-i2s driver :p
<plaes> yeah.. it was from newly submitted patch
<oliv3r> not even in my entire kernel source :p
<oliv3r> since this works on the C.H.I.P. i would expect it to work fairly easily on the sun7i as well
<oliv3r> so far, my debugging found that all registers remain at 0
<oliv3r> whereas the probe code dus complete successfully
<plaes> did you see codekipp1r's patchset, which enables h3 (and IIRC A20)
<oliv3r> plaes: nope
<oliv3r> lmgt
jemk has joined #linux-sunxi
<oliv3r> saturday! wow that's recent :)
<oliv3r> yeah i'll def. look into those patches :)
cnxsoft has quit [Ping timeout: 260 seconds]
cnxsoft has joined #linux-sunxi
<codekipp1r> oliv3r: it's always worked on the A20...just never been any products that required it.
<codekipp1r> if you're targetting A20 then you don't need my patches..although there is an example there for the a20.
<oliv3r> codekipp1r: ok great :D
<oliv3r> codekipp1r: then why doesn't it work :p all my registers stay 0x000000
<oliv3r> (in the i2s0 block)
<codekipp1r> I've only ever seen that on the a31 and H3 and that was due to the reset which the A20 doesn't require
<oliv3r> ever seen what? the reset? yeah
Leepty has joined #linux-sunxi
<oliv3r> the a20 doesn't even have it, so it would be a no-op i guess
<codekipp1r> take my sunxip-wip branch from github as that has some examples and debugging on trigger.
<oliv3r> yeah i saw the debugging patch
<oliv3r> i'll start with that
<wens> I remember having tested it on the A20 before, it should just work
<oliv3r> wens: afaik it can't work in its current state
<oliv3r> the probe aborts due to the missing reset
<codekipp1r> no...that can't be right.
<oliv3r> wens: https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-next/sound/soc/sunxi/sun4i-i2s.c#L719 returns NULL afaik for the A20 (or, it returns NULL because something else is going wrong)
<wens> looks like a regression
<codekipp1r> I tested the a20 on Sat
<oliv3r> which in turn then fails with 'Failed to deassert the reset control'
mhlavink has quit [Ping timeout: 268 seconds]
<oliv3r> unless my understanding of that bit is wrong (which is quite likley :p)
<codekipp1r> then again I've alwats had my patches ontop of main
<wens> oliv3r: looks valid, AFAIK IS_ERR(NULL) is not true
<oliv3r> codekipp1r: exactly :
<oliv3r> wens: i think that's what IS_ERR_OR_NULL is for no?
<wens> yeah
<oliv3r> so IS_ERR(NULL) = 0, which with the ! infront makes it true
<oliv3r> and it then starts to deasesrt the reset
<oliv3r> whereas the IS_ERR_OR_NULL = 1, and with the negation makes it false
<wens> codekipp1r: the code change landed in 4.11
<oliv3r> wens: ah right, i'm on 4.9.39 (stable)
<codekipp1r> have you defined the pins....that was a patch that was rejected last week as no product uses it
<oliv3r> codekipp1r: yeah i have
<oliv3r> btw, that's a stupid rule in a sense
<oliv3r> if you wanna allow overrides, you need the pins to be available at the dtsi level :)
<oliv3r> unless you also want to add the pins in the overlays
<oliv3r> which becomes annoying once the pins do get in the dtsi
<codekipp1r> yeah....I think I can respin the patch to consider that
<oliv3r> codekipp1r: consider what?
<wens> oliv3r: I'm referreing to the patch that added the reset control, landed in 4.11
<oliv3r> wens: hmm, but i have it on my 4.9
<wens> oliv3r: let me recheck
<codekipp1r> I take that back..I was thinking of spdif
fkluknav has joined #linux-sunxi
<wens> oliv3r: yup, 4.11.
<wens> oliv3r: looks like it was backported
<wens> oliv3r: care to do a patch?
<wens> whats funny is that it will not work without it's preceding patch from mainline, as the DMA burst length is not supported on A31/A33
mhlavink has joined #linux-sunxi
<oliv3r> wens: yeah once i can confirm that i2s works and that this fixes it :)
<oliv3r> wens: you mean that i2s gained dma support in 4.11+ with i guess a quirk for sun6i, but that was not backported?
<oliv3r> RX_DMA that is
<oliv3r> as TX (playback) seems to be in 4.9
netlynx has quit [Quit: Ex-Chat]
<oliv3r> wens: what is the reasoning behind for not adding pins to the dtsi? I mean, the SoC has the pins, used or unused, and it hinders overlay useage.
fkluknav has quit [Ping timeout: 240 seconds]
<wens> oliv3r: it's not the RX/TX DMA, but rather the DMA burst length
<oliv3r> ah okay
<wens> oliv3r: On A10/A20, burst sizes of 1/4/8 are supported, and the driver uses 4.
<wens> oliv3r: on A31+, only 1 and 8 are supported. If you ask for 4, the DMA driver will give an error
<wens> so while the i2s driver may probe, playback will not happen
<oliv3r> strange, concidering they are so related
<wens> I'm guessing whoever submitted/picked the patches for stable didn't notice
<wens> oliv3r: as for not adding pins to the dtsi, it's mainly so we only have stuff that is actually referenced somewhere
<wens> with some boards with semi-generic GPIO headers (semi-generic meaning the vendor has assigned recommended usage, much like the RPi)
<oliv3r> yeah I understand that
<wens> we actually have the pinctrls assigned in the dts, but with the peripheral set as disabled explicitly
fugitive has joined #linux-sunxi
<oliv3r> i do understand it, you dont' want unused pin definitions lingering in the dtsi
<oliv3r> oth, the SoC's pin definitions are more or less set in stone :) you can't add pins ever. We do have all of the definitions in the pinctrl header, and the guideline came from a time where overlays where not that common i guess
<oliv3r> so if i want to add a few overlays for our boards (based on some id like chip does), i have to put the pin defs also into the overlay
<oliv3r> so just thinking whether this is something that could be reconsidered, when a peripherial driver is added (even disabled) do add the pin definitions
<wens> I can't speak for mripard, but for me it's about visible test coverage
<wens> 1. someone actually tests the thing, and will continue to test it from time to time (by using it)
<MoeIcenowy> wens: have you seen my patch that rename s_twi pin functions to s_i2c?
<oliv3r> which is a little bit of a melon though; if I make my own board, like an EVB carrier board for example, and make 1 sample, document it on the wiki etc etc, where this board carries all 'missing' pin definitions, I could validly add all those, but it would not see the coverage we'd hope
<wens> MoeIcenowy: I already reviewed it
<MoeIcenowy> oh you just reviewed...
<wens> oliv3r: there's no point in adding a one-off board to the repository is there?
popolon has joined #linux-sunxi
BenG83 has quit [Quit: Leaving]
<oliv3r> wens: but who decides when it will be a one off
<oliv3r> i'm a startup making a board :p
<oliv3r> just playing devils advocate here
<wens> oliv3r: then I'd expect you to add the dts file for the mass produced version, and not the pre-prod eng. samples :)
<oliv3r> oth, the number of mainline users are very limited I would estimate, and once the momentum reaches critical mass, we would have all pin definitions in likley :)
<oliv3r> wens: :D
<oliv3r> wens: tindy shop!
<oliv3r> or OSPark shop or etc etc
<wens> oliv3r: yeah, it's still mostly dev boards
<oliv3r> so are lime's orange pi's, raspberry pi's
<wens> Allwinner's not really visible these days :(
<oliv3r> yeah and all the press they do get is 'allwinner biggest GPL violaters omg'
<wens> and any vendors out there are still using the vendor turnkey solution (like everyone else on any other platform)
<oliv3r> whereas nobody knows that sunxi is the biggest community where sun[457]i are probably the best supported
<oliv3r> yeah :(
diego_r has joined #linux-sunxi
<KotCzarny> maybe allwinner doesnt like/want lowlevel community
<wens> KotCzarny: define lowlevel?
JohnDoe_71Rus has quit [Ping timeout: 260 seconds]
<KotCzarny> anything touching device drivers
<KotCzarny> in opposition to 'users' which just tinker around but not the socs itself
<wens> KotCzarny: I doubt they care
<wens> it's mainly the board vendors' concern :p
<KotCzarny> can 64bit kernel boot 32bit userspace?
<beeble> of course
<KotCzarny> without 64bit glue libs etc?
<beeble> if you only run 32bit applications, yes
<KotCzarny> cool
<KotCzarny> what about drivers?
<oliv3r> allwinner only cares about # of sold chips
<KotCzarny> ie. would 32bit libmali work with 64bit kernel's mali.ko ?
<KotCzarny> oliv3r: no political reasons?
<beeble> should work
<KotCzarny> and subsidies etc
<KotCzarny> beeble: thx, will try
JohnDoe_71Rus has joined #linux-sunxi
<oliv3r> KotCzarny: they don't even care about the small group of people calling them GPL violators, they probably dont' even really know
<oliv3r> KotCzarny: the thing I doubt they realize, or even not care, besides the advantages of properly mainline support, is that the community may help sell chips (community -> engineer -> product)
<KotCzarny> oliv3r: but that's management problem, isnt it?
<KotCzarny> which is why i asked about 'political' reasons
<oliv3r> KotCzarny: of course, i'm sure there's engineers there that care
<KotCzarny> do they care about markets outside of china at all?
<oliv3r> KotCzarny: well wasn't the a10/a20 tablet craze fueled by the chinese gov to help sell as many devices as possible, inc. overseas?
<oliv3r> many many tablets sold/given away a few years ago where all sun[457]i
BenG83 has joined #linux-sunxi
LargePrime has quit [Ping timeout: 260 seconds]
JohnDoe_71Rus has quit [Quit: KVIrc KVIrc Aria 4.9.2, revision: git-7099-gca80ee628, build type: debug, sources date: 20160102, built on: 2017-03-12 14:49:35 UTC git-7099-gca80ee628 http://www.kvirc.net/]
enrico__ has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 246 seconds]
<wens> oliv3r: how things change so quickly :|
LargePrime has joined #linux-sunxi
msimpson has joined #linux-sunxi
<oliv3r> wens: yeah, i sometimes wonder, is allwinner/sunxi (the socs) even still relevant?
matthias_bgg has joined #linux-sunxi
<oliv3r> i.MX6 is quite interesting these days
<oliv3r> they have etnvaviv
<oliv3r> all peripherials are pretty much supported
<oliv3r> i think just the video engine is still a blob
<oliv3r> i think if we had a proper lima driver, display engine and cedarus support 2 years ago in mainline, a20's could have been great kodi players
<oliv3r> though C.H.I.P. is doing quite well i think?
<oliv3r> codekipp1r: ok i got your branch working, i have the 'new codec' with lots of mixer settings
<oliv3r> codekipp1r: how do I use i2s as output
<oliv3r> :)
<wens> just select the 'new codec' as your output from whatever player you're using
<KotCzarny> oliv3r: does it show int aplay -l ?
<KotCzarny> *in
<oliv3r> nop
<KotCzarny> then something is missing
<oliv3r> i know (:
<oliv3r> maybe a driver module?
<oliv3r> devmem 0x01c22400
<oliv3r> oops
<oliv3r> but that's all zero's
<oliv3r> so codekipp1r's code does the same as 'mine'
<oliv3r> i know that the probe successfully finishes
<KotCzarny> might be you didnt enable daudio in sunxi codec
<oliv3r> strange enough, i'm not getting the failed to deassert reset
<BenG83> you'll see an ALSA device
<oliv3r> i have/had
<BenG83> I use codekipper's branch with my Pine64 DAC
mzki has quit [Ping timeout: 255 seconds]
<oliv3r> <M> Allwinner A10 I2S Support
<oliv3r> though i'm a little puzzled what this is: < > Audio support for A20 with UDA1380 codec on I2S DA0
<KotCzarny> maybe specific chip on i2s
<oliv3r> i2s + i2c
<oliv3r> i get that, but isn't that configured via dt these days?
<oliv3r> maybe i'm missing SND_SIMPLE_CARD ...
mzki has joined #linux-sunxi
<oliv3r> anyway, the Kconfig does nothing more then enable a few standard kconfigs
<oliv3r> but it's codekipp1r's playground so who knows :)
<oliv3r> < > ASoC Simple sound card support HAH!
<oliv3r> that's quite a critical component :)
<KotCzarny> then it's a bug when it's not autoselected with i2s option?
<wens> KotCzarny: there are a bunch of simple-card options :p
<wens> oliv3r: not all boards use simple-card
<KotCzarny> then at least suggest in daudio help ? :P
pfeerick has quit [Quit: WeeChat 1.8]
<oliv3r> wens: yeah but i needed it, but didn't enable it; didn't realize it was a driver that needed enabling, so lets see :D
<KotCzarny> wens, and oliv3r is a fine example that such help is needed ;)
<oliv3r> it should be a module in the sunxi-defconfig (maybe it is, i'm using my own config)
<wens> or we could add "implies" options to SPDIF and I2S Kconfig
<wens> (since SPDIF also uses simple-card family)
<oliv3r> i'm unfamiliar with the imples kconfig, what does it do?
<KotCzarny> auto ticks other options
<oliv3r> i thoguht that was 'selects'
<oliv3r> ok, so i now got snd_soc_simple_card, but no go yet :(
<wens> oliv3r: selects does not let you untick an option
<oliv3r> ah, ok
<oliv3r> very good to know
<wens> so it's like "you should probably enable this, but it's really up to you"
<oliv3r> then yeah, i2s does imply simple sound
<oliv3r> so i have sun4i-is, snd-soc-simple-card, and my codec, snd-soc-max98357a, all loaded as the dt demanded it
<oliv3r> ah yeah was looking into the reset thing, why is it not triggering a failure there
pfeerick has joined #linux-sunxi
<KotCzarny> -rwxr-xr-x 1 root root 116M Jul 31 11:28 .tmp_vmlinux1
<KotCzarny> wth?
<wens> KotCzarny: multi_v7_defconfig?
<KotCzarny> pine64 kernel from xunlong's github
<KotCzarny> sun50iw1p1smp_android_defconfig
<BenG83> xunlong has a pine64 kernel?
<KotCzarny> yeah, they stole it for their opi win board
<BenG83> ah yeah that makes sense
<KotCzarny> well, stole is a bad word, 'took' is better
<BenG83> did they update to 107 yet
<KotCzarny> .102
<BenG83> w0t
<BenG83> that is from like last year
<KotCzarny> yeah, the usual. but how to fix that huge kernel thing?
<BenG83> 102 is pre GbE fix
<BenG83> KotCzarny, how did you produce that?
<KotCzarny> if i knew i would know how to fix it
lurchi__ is now known as lurchi_
<KotCzarny> the usual make menuconfig, make all
<KotCzarny> (somehow there is no make zImage)
<BenG83> did the build complete?
<KotCzarny> nope, it ran out of disk space
<KotCzarny> ;)
<BenG83> tmp_vmlinux1 is usually one of the last link stages before you get a kernel image
<KotCzarny> yeah, retrying.
<KotCzarny> -rw-r--r-- 1 root root 309M Jul 31 11:40 vmlinux.o
<KotCzarny> hehe
<KotCzarny> madness
<BenG83> CC init/version.o
<BenG83> LD init/built-in.o
<BenG83> LD .tmp_vmlinux1
<KotCzarny> hrm. it built uImage, how to make zImage ?
<BenG83> arm64?
<KotCzarny> no other way
<KotCzarny> since there is no way to build 32bit kernel for a64
<BenG83> arm64 usually uses Image
<KotCzarny> that's new for me. do i load it in the same way as zImage?
<BenG83> zImage is compressed
dave0x6d has quit [Quit: Connection closed for inactivity]
<BenG83> fatload mmc ${boot_part} ${initrd_addr} ${boot_filename}
<BenG83> boota ${initrd_addr}
<BenG83> for Android
<KotCzarny> does it need to be processed through mkimage ?
<smaeul> the Image? no
<KotCzarny> hmm
<KotCzarny> modules are weirdly big, ntfs.ko is ~4M
IgorPec has joined #linux-sunxi
leviathan_ has joined #linux-sunxi
fl_0 has quit [Ping timeout: 260 seconds]
fl_0 has joined #linux-sunxi
<KotCzarny> hmm, how come some files load VERY slowly and some normal?
<KotCzarny> (in uboot)
<KotCzarny> 14613365 bytes read in 61497 ms (231.4 KiB/s)
<KotCzarny> 10188280 bytes read in 742 ms (13.1 MiB/s)
<KotCzarny> same partition
<pmpp> buffer size ?
<KotCzarny> it's two load mmc commands one after another
afaerber has quit [Quit: Leaving]
<pmpp> is the slow first or second ?
<KotCzarny> first
<pmpp> makes no sense
<KotCzarny> but i assume it's the file not the order
<KotCzarny> i can try reversing load order to confirm
<pmpp> yeah in the extrem weird case of file size determine buffer read size
<pmpp> try to read same files multiple times too eg [A,B,A,B,A,B] and verify speed patterns to see if randomness appears
<lurchi_> KotCzarny: which filesystem?
<KotCzarny> ext4
<lurchi_> Maybe one uses extents, while the other uses block lists
<KotCzarny> i love the reset button on that board
<KotCzarny> saves time and ports
<KotCzarny> yeah, load order doesnt matter
<lurchi_> KotCzarny: you can try the read command directly in u-boot, to verify
<KotCzarny> yup, that's what i did
<KotCzarny> load address also doesnt matter
<KotCzarny> and it's also happening on H3 boards i own
<lurchi_> KotCzarny: can you try "write mmc 0 /h3droid_resc.u_copy 0x47200000 14613365"
<lurchi_> and then read it again
<KotCzarny> i don't remember if i have ext4 write option in that uboot
<KotCzarny> will recompile in a few
<lurchi_> KotCzarny: with dumpe2fs you can get some lowlevel info about the file, e.g. extents
<KotCzarny> magic word to get the info?
leviathan_ has quit [Remote host closed the connection]
<lurchi_> KotCzarny: sorry, meant debugfs
<lurchi_> sudo /sbin/debugfs /dev/mmcXXpN should do
<KotCzarny> then?
<lurchi_> stat should do
<lurchi_> stat <path>
<KotCzarny> => load mmc 0 0x47200000 /h3droid_resc.u.copy
<KotCzarny> 14613365 bytes read in 929 ms (15 MiB/s)
<KotCzarny> is it something in uboot's ext4 handling?
<lurchi_> So, the copy reads at expected speed?
<KotCzarny> yup
<KotCzarny> and original file is still slow
<KotCzarny> and on pc there is no speed difference
<lurchi_> If I understand the debugfs correctly, the "Image" uses extents, while the slow one uses a tree of block lists
<lurchi_> don't remember exactly how the ext4 code is implemented, but possibly it has to walk the tree for each block
<KotCzarny> so clearly missing caching in uboot
<KotCzarny> but since i copy the file in the same way on the card what can be done?
<lurchi_> KotCzarny: in general, there is some block layer caching
<KotCzarny> hmm, it might be mkimage doing things that confuse ext4 into creating file wrongly
<KotCzarny> so i probably have a fix now. but still, would be great to fix uboot too
<lurchi_> KotCzarny: can you create an image of the partition containing the bad file?
lemonzest has joined #linux-sunxi
<lurchi_> KotCzarny: is this an SD card, or eMMC?
mzki has quit [Quit: leaving]
<KotCzarny> sd
<KotCzarny> but i have seen it on emmc too
<lurchi_> So likely I should be able to reproduce this on my Pine
<KotCzarny> you want only partition of mbr too?
<lurchi_> KotCzarny: does you u-boot config have "CONFIG_BLOCK_CACHE" set?
<lurchi_> partition is sufficient
<KotCzarny> # CONFIG_BLOCK_CACHE is not set
<KotCzarny> hrm
<KotCzarny> stupid defconfig
<lurchi_> so its likely a bug in the defconfig
<KotCzarny> would be interesting to grep all of them
<KotCzarny> upping, will htrow you a link in ~5 minutes (only 1mbit uplink here)
afaerber has joined #linux-sunxi
<KotCzarny> pm
<KotCzarny> 14613365 bytes read in 755 ms (18.5 MiB/s)
<KotCzarny> yup
mzki has joined #linux-sunxi
<KotCzarny> that was it, big thanks!
<lurchi_> Hm, link does not work ...
chlorine_ has quit [Remote host closed the connection]
fkluknav has joined #linux-sunxi
<KotCzarny> now the question is why that option isnt enabled by default in uboot/defconfigs
chlorine has joined #linux-sunxi
<KotCzarny> none of the SUNXI defconfigs has it
<KotCzarny> but other boards do enable it
<KotCzarny> at least CONFIG_CMD_CACHE.
terra854 has quit [Quit: Connection closed for inactivity]
aballier has joined #linux-sunxi
mic-e[m] has quit [Ping timeout: 240 seconds]
ch40s[m] has quit [Ping timeout: 240 seconds]
fugitive has quit [Quit: Leaving]
fkluknav has quit [Ping timeout: 240 seconds]
chlorine has quit [Remote host closed the connection]
TEKrantz has quit [Ping timeout: 260 seconds]
kivutar has quit [Ping timeout: 240 seconds]
TEKrantz has joined #linux-sunxi
Wizzup_ has quit [Quit: Reconnecting]
Wizzup has joined #linux-sunxi
kivutar has joined #linux-sunxi
<KotCzarny> hmm, again, what was the reason nothing showing up after "starting kernel.." ? early_printk and SUNXI UART are enabled
<Net147> KotCzarny: are you booting legacy 3.4 kernel?
<KotCzarny> yes
<Net147> KotCzarny: if you aren't using latest sunxi-3.4 with compatibility checks, you need to set CONFIG_OLD_SUNXI_KERNEL_COMPAT=y in U-Boot config
chlorine has joined #linux-sunxi
<Net147> KotCzarny: for mainline U-Boot
<KotCzarny> CONFIG_OLD_SUNXI_KERNEL_COMPAT=y
chlorine has quit [Ping timeout: 240 seconds]
<lurchi_> KotCzarny: CONFIG_CMD_CACHE != CONFIG_CMD_BLOCK_CACHE (the former is CPU i/dcache related)
<oliv3r> OF: /sound/simple-audio-card,codec: could not get #sound-dai-cells for /max98357a progress! will continue in a few days :)
<lurchi_> as far as I can see, only a few marvell boards enable the BLOCK_CACHE
<KotCzarny> lurchi_: then none of the boards enable block_cache, still it helps tremendously. 250kB/s -> 18MB/s
<oliv3r> though it seems like the reset issue is not an issue on newer kernels, as trying to deassert it doesn't do anything
fugitive has joined #linux-sunxi
popolon has quit [Quit: WeeChat 1.9]
terra854 has joined #linux-sunxi
popolon has joined #linux-sunxi
fl_0 has quit [Ping timeout: 240 seconds]
<KotCzarny> BenG83: do you know of pine64's legacy kernel repo? i can only find longsleep's one (.105)
kristina1nossl has quit [Changing host]
kristina1nossl has joined #linux-sunxi
fl_0 has joined #linux-sunxi
<BenG83> KotCzarny, sec
chlorine has joined #linux-sunxi
<KotCzarny> hmm
<KotCzarny> Forked from longsleep/linux-pine64
<KotCzarny> and also .105
<BenG83> we only use ayufan's github atm
<KotCzarny> umkay
lurchi_ is now known as lurchi__
matthias_bgg has quit [Ping timeout: 240 seconds]
indy has quit [Ping timeout: 255 seconds]
<diego_r> mripard: hi. It looks like Jagan didn't reply to this: https://lists.denx.de/pipermail/u-boot/2017-July/297803.html . Can you approve the patch on your own?
lurchi__ is now known as lurchi_
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
indy has joined #linux-sunxi
cnxsoft1 has joined #linux-sunxi
cnxsoft has quit [Ping timeout: 258 seconds]
cnxsoft1 is now known as cnxsoft
lemonzest has quit [Quit: Quitting]
<igraltist> hi
lurchi_ is now known as lurchi__
chlorine_ has quit [Remote host closed the connection]
IgorPec has quit [Ping timeout: 260 seconds]
SP7RT has joined #linux-sunxi
<KotCzarny> hmm, i must be doing something wrong. starting kernel and quiet again with .105
diego_ has joined #linux-sunxi
diego_r has quit [Ping timeout: 260 seconds]
<BenG83> ATF problem?
chlorine has joined #linux-sunxi
longsleep_ has quit [Quit: No Ping reply in 180 seconds.]
Gerwin_J has quit [Ping timeout: 258 seconds]
JohnDoe_71Rus has joined #linux-sunxi
JohnDoe_71Rus has quit [Changing host]
JohnDoe_71Rus has joined #linux-sunxi
longsleep has joined #linux-sunxi
<KotCzarny> BenG83: wouldnt atf problem result in no uboot ?
<ElBarto> u-boot without atf result in spl kinda starting then failing
<ElBarto> and looping all over again
<KotCzarny> then it's not atf problem
<KotCzarny> because it loads files then starts the kernel
<KotCzarny> then nothing
longsleep has quit [Client Quit]
<ElBarto> well that is without atf, atf problem could appear when secondary cores are started
<KotCzarny> wouldnt it show at least initial kernel messages?
<ElBarto> I don't know linux boot sequence so I wouldn't know
f0xx has quit [Ping timeout: 260 seconds]
longsleep has joined #linux-sunxi
<MoeIcenowy> KotCzarny: it may show if you enabled earlycon
<KotCzarny> MoeIcenowy: i did
<KotCzarny> CONFIG_SERIAL_SUNXI=y
<KotCzarny> CONFIG_SERIAL_SUNXI_CONSOLE=y
<KotCzarny> CONFIG_EARLY_PRINTK=y
Gerwin_J has joined #linux-sunxi
longsleep has quit [Quit: No Ping reply in 180 seconds.]
<MoeIcenowy> KotCzarny: I mean earlycon, not earlyprintk
<KotCzarny> hmm
<MoeIcenowy> earlycon is a console specified by kernel cmdline, not by dtb
<KotCzarny> i've tried few
<MoeIcenowy> for AW UART0 the parameter is earlycon=uart,mmio32,0x01c28000
<KotCzarny> earlycon=uart,mmio32,0x01c28000
<KotCzarny> etc
<MoeIcenowy> I think it can print something if the kernel is correctly executed
diego_ has quit [Remote host closed the connection]
<KotCzarny> i'm still not sure if loadi Image is correct
diego_ has joined #linux-sunxi
cnxsoft has quit [Quit: cnxsoft]
lurchi__ is now known as lurchi_
longsleep has joined #linux-sunxi
<KotCzarny> hmm, it didnt boot pine64 kernel
<KotCzarny> anyone got uboot/atf handy?
<ElBarto> for pine64 ?
<KotCzarny> for opi win (a64), but at this point i could use files for any a64 board
<KotCzarny> ty
<KotCzarny> ElBarto: your uboot is without block_cache, which means it hit my slow file
<KotCzarny> anyway, "starting kernel ..." too
<ElBarto> it's just vanilla u-boot with some patches for freebsd
ch40s[m] has joined #linux-sunxi
<ElBarto> so not vanilla :)
<KotCzarny> you might consider adding CONFIG_BLOCK_CACHE=y, it really helps with some cases (250kB/s -> 18MB/s)
<ElBarto> I'll try that, but why it isn't enabled by default if it helps that much ?
<KotCzarny> don't know, but some files on my ext4 boot partition are extremely slow (ext4 driver probably rereading whole tree)
<KotCzarny> and some don't expose that problem
<oliv3r> u-boot seems to also have issues with extents
<ElBarto> I only load a small file with u-boot, then it's all freebsd loader dealing with raw devices/partitions
<oliv3r> we noticed that after mkfs.ext4 u-boot is fast, once you move a file (say the kernel via apt-get update) u-boot becomes very slow. disabeling extents on the boot filesystem fixes that slow down
<oliv3r> not sure if the BLOCK_CACHE option helps there
<KotCzarny> oliv3r: adding that CONFIG_BLOCK_CACHE option also fixes that
<oliv3r> ah nice
<oliv3r> we now format our boot partition without the extents flag
reinforce has quit [Quit: Leaving.]
matthias_bgg has joined #linux-sunxi
mic-e[m] has joined #linux-sunxi
jernej has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
lurchi_ has quit [Read error: Connection reset by peer]
IgorPec has joined #linux-sunxi
dave0x6d has joined #linux-sunxi
msimpson has quit [Quit: Leaving]
yann-kaelig has joined #linux-sunxi
reinforce has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 240 seconds]
<KotCzarny> hmm, loading initrd breaks the booting
matthias_bgg has quit [Quit: Leaving]
yann-kaelig has quit [Remote host closed the connection]
afaerber has quit [Quit: Leaving]
parazyd has quit [Quit: nuked]
parazyd has joined #linux-sunxi
parazyd has joined #linux-sunxi
parazyd has quit [Changing host]
scream has joined #linux-sunxi
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
JohnDoe_71Rus has joined #linux-sunxi
<wens> MoeIcenowy: pinctrl patches were merged (but not pushed yet)
technix has joined #linux-sunxi
<technix> Hello?
fugitive_ has joined #linux-sunxi
<technix> So I get this on U-Boot: musb_init_controller failed with status -22. I am talking about my modified OrangePi Win Plus with SPI Flash and eMMC soldered.
chlorine_ has quit [Ping timeout: 240 seconds]
<technix> I have modified the sun50i-orangepi-win.dts to include code regarding the eMMC and the USB OTG port
chlorine has joined #linux-sunxi
<KotCzarny> technix: what tree are you using to boot it?
<technix> sun50i-a64-orangepi-win
<technix> I have modified it to add usb_phy and mmc2 sections
<technix> The eMMC is largely okay (since I can see it)
<KotCzarny> no no, i'm trying to compile kernel for my opiwin, but it's crashing at regulator_enable/sunxi_internal_codec_probe
<technix> The USB OTG is the problem (I need it to use the UMS command in U-Boot
<technix> Weird…
<KotCzarny> that's why i asked what source are you using
<technix> I am still stuck at U-Boot
chlorine_ has joined #linux-sunxi
<KotCzarny> uboot is fine for me
<KotCzarny> (mainline)
<technix> The source is from https://github.com/linux-sunxi
<wens> github is dead right now :(
<technix> U-Boot can boot
chlorine has quit [Ping timeout: 260 seconds]
<KotCzarny> wnes: github works, slowly but works
<KotCzarny> *wens
chlorine has joined #linux-sunxi
<technix> But I need the USB OTG to work so I can load stuff into the eMMC
<technix> Also, when I copied the U-Boot that worked on the microSD card and can handle the eMMC directly onto the eMMC, it does not go past SPL.
<technix> Strange.
chlorine_ has quit [Ping timeout: 260 seconds]
<technix> Any idea?
<KotCzarny> maybe you need to toggle something to make it into gadget mode?
<technix> USB2: musb_init_controller failed with status -22
<technix> The OTG port does not work regardless of mode
<technix> It appeared to me that a lot of you have decided not to make use of the eMMC footprint?
<technix> Also, where is the SPI support in the sun50i-a64.dtsi? If I can copy code from some other SoC which chip can serve the source? And where to find the addresses?
<KotCzarny> soldering emmc isnt exactly easy task
enrico__ has quit [Quit: Bye]
<technix> Local cell phone repair shops here can do it. I just need to provide the board and the eMMC chip. Pay them $10 and they can colder it for me.
<technix> * solder
<jernej> wens: should I respin all patches with "fixes:" tag?
<technix> SUNXI SD/MMC: 1 (eMMC)
<wens> jernej: I've taken the first 3, the third with a Fixes tag I added (see my reply)
<wens> you're last patch is hard to figure out which commit it fixes
<wens> since the earlier socs don't have the lock bit
<technix> I have upgraded the SO-8 SPI Flash on my opiwin+ myself (that is some easy soldeing job with a good iron) and paid a local cell phone repair shop to add a 16GB Samsung eMMC
<jernej> wens: true, but they also don't have fractional mode, right?
<wens> jernej: sun5i does, so basically all SoCs do
reinforce has quit [Quit: Leaving.]
<jernej> wens: Right. Should I add some logic which decides when to wait for lock?
kivutar has quit [Ping timeout: 246 seconds]
kivutar has joined #linux-sunxi
<wens> jernej: not sure what you mean? does the lock exist? or some other condition?
kivutar has quit [Ping timeout: 240 seconds]
<jernej> wens: I think fixes: 89a3dfb78707 ("clk: sunxi-ng: Add fractional lib") would apply. Function ccu_helper_wait_for_lock() returns without effect if lock number is 0.
<jernej> so I think it is just nop on platforms without lock bit
<wens> yup
<jernej> should I add this info and send a new version?
<wens> just reply and I'll add the tag
<jernej> ok
phipli has joined #linux-sunxi
terra854 has quit [Quit: Connection closed for inactivity]
leviathan_ has joined #linux-sunxi
kivutar has joined #linux-sunxi
chlorine_ has joined #linux-sunxi
chlorine has quit [Ping timeout: 260 seconds]
kivutar has quit [Ping timeout: 260 seconds]
dave0x6d has quit [Quit: Connection closed for inactivity]
Mr__Anderson has joined #linux-sunxi
TEKrantz has quit [Ping timeout: 258 seconds]
TEKrantz has joined #linux-sunxi
kivutar has joined #linux-sunxi
lurchi__ has quit [Ping timeout: 240 seconds]
IgorPec has quit [Quit: Nettalk6 - www.ntalk.de]
IgorPec7 has joined #linux-sunxi
Ntemis has joined #linux-sunxi
IgorPec has joined #linux-sunxi
IgorPec7 has quit [Ping timeout: 240 seconds]
IgorPec has quit [Ping timeout: 240 seconds]
Ntemis has quit [Remote host closed the connection]
jstein_ has joined #linux-sunxi
leviathan_ has quit [Ping timeout: 260 seconds]
leviathan_ has joined #linux-sunxi
jstein_ is now known as jstein
JohnDoe_71Rus has quit [Quit: KVIrc 4.9.2 Aria http://www.kvirc.net/]
yann|work has joined #linux-sunxi
IgorPec has joined #linux-sunxi
Gerwin_J has quit [Quit: Gerwin_J]
f0xx has joined #linux-sunxi
vagrantc has joined #linux-sunxi
scream has quit [Remote host closed the connection]
dave0x6d has joined #linux-sunxi
chlorine has joined #linux-sunxi
chlorine_ has quit [Ping timeout: 240 seconds]
<jernej> MoeIcenowy: Do you have any plans to send updated patches for H3 DE2 & TCON? I would like to send HDMI patches...
IgorPec has quit [Ping timeout: 240 seconds]
LargePrime has quit [Remote host closed the connection]
vagrantc has quit [Quit: leaving]
LargePrime has joined #linux-sunxi
lurchi__ has joined #linux-sunxi
f0xx has quit [Ping timeout: 240 seconds]
leviathan_ has quit [Remote host closed the connection]
libv_ has joined #linux-sunxi
libv has quit [Ping timeout: 255 seconds]
<MoeIcenowy> jernej:L yes ;-)
<jernej> It seems to me that there is a bug in DE2 if high resolution is used like 1080p
<jernej> first vertical line is purple
<jernej> ah, sorry, pink
<jernej> I will take a look tomorrow
<MoeIcenowy> there's no clear border between purple and pink ;-)
<MoeIcenowy> and it seems that I found it several days ago on a 2048x1536 HDMI panel
specing has quit [Ping timeout: 240 seconds]
reinforce has joined #linux-sunxi
lurchi__ has quit [Remote host closed the connection]
lurchi__ has joined #linux-sunxi
jstein has quit [Remote host closed the connection]
popolon has quit [Quit: WeeChat 1.9]
Mr__Anderson has quit [Remote host closed the connection]
mzki has quit [Ping timeout: 260 seconds]
libv_ is now known as libv
SP7RT has quit [Ping timeout: 246 seconds]
reinforce has quit [Quit: Leaving.]
jernej has quit [Ping timeout: 268 seconds]
Pepe has quit [Quit: WeeChat 1.8-dev]
https_GK1wmSU has joined #linux-sunxi
https_GK1wmSU has left #linux-sunxi [#linux-sunxi]
qeed has quit [Read error: Connection reset by peer]
Andy-D__ has joined #linux-sunxi
Andy-D__ is now known as Andy-D
qeed has joined #linux-sunxi
Andy-D_ has joined #linux-sunxi
Andy-D has quit [Ping timeout: 240 seconds]
jstein_ has joined #linux-sunxi
jstein_ is now known as jstein