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
mripard has quit [Read error: Connection reset by peer]
mripard has joined #linux-sunxi
tuxd3v has quit [Ping timeout: 480 seconds]
vagrantc has quit [Quit: leaving]
<jernej> sorry, I mean machinehum ^
cmeerw has joined #linux-sunxi
choozy has joined #linux-sunxi
choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<warpme_> What xr819 firmware are you using? Mine is quite old downloaded from armbian firmware repo.
<warpme_> jernej: i have issue with getting cw1200 on xr819 working ok in normal usage. All is perfect with connecting to AP and transfering some data at begining (boot of my appliance + download some config files) but this is all. after that wifi connections seems to silently die. I can't connect via telnet to examine dmesg etc. Is cw1200 on xr819 working stable for you? I mean i.e you can you transfer 1GB of data without issue?.
<jernej> warpme_: I didn't test it much
<jernej> I have two FWs, one from karabek repo and one dumped from my TV box Android image (~2 years newer)
<warpme_> sure. just trying to give you some feedback for v.nice work on cw1200.
<jernej> with newer there is one complain when debug info is enabled
<jernej> maybe you can try it?
<warpme_> is android fw. available somwhere?
<jernej> I'll upload it
<warpme_> qll. thx. let me try :-)
<jernej> currently I'm trying to convince wfx driver to work with xr819
<jernej> it's much better maintained
<jernej> but for some reason bootloader upload doesn't work...
<jernej> it will take some time
<jernej> warpme_: if you put #define DEBUG 1 at the very top of drivers/net/wireless/st/cw1200/wsm.c it will produce log, which could be helpful in fixing issues
<warpme_> perfect. let me try this!
diego71_ has joined #linux-sunxi
diego71 has quit [Ping timeout: 480 seconds]
<warpme_> jernej: just done some tests: 1\new fw not helps. 2\issue with died wifi comm. is result of driver trap. here is log: https://pastebin.com/VGBcbWgd
<warpme_> trap happens after some usage. initially all is ok but after transmitting some data - there is oops....
<jernej> ok, thanks, I'll take a look
<jernej> warpme_: is there an easy way to trigger it?
<warpme_> for me it was very easy: i configure my appliance to boot to term. after boot i open remote telnet session; in remote telnet i asked for dmesg and got oops; in local term i copied dmesg to sd card to provide it to you.
<warpme_> but i'm pretty sure any play with wget or netperf will be enough
<jernej> interesting, I did "curl google.com" via serial console and it worked ok
<jernej> maybe it just needs some more data
<warpme_> or i.e. it is mtu like issue?
<warpme_> my appliance uses wget to download config data and those downloads are ok. but starting telnet session and i.e. asking for simple thing like listing hangs. interesting is that i have _exactly the same_ issue on one of s912 boxes with qca9377 chip.
<jernej> I really don't know
<jernej> arnd: wfx driver seems to use a bit different FW API - it doesn't work out of the box with XR819
<jernej> fun fact - each of these ST-Ericsson WIFI descendants have very similar FW API, except that each vendor thought to tweak it a bit to improve (?) certain things
<jernej> so there will be some "if (hw == xr819)" things...
<jernej> warpme_; I see API difference in *_tx_confirm_cb() functions
<warpme_> ah good - this can be good anchor!
<jernej> I'm just not sure how relevant it is
<jernej> warpme_: try with changing 0xff to 0xf in cw1200_queue_get_queue_id() in drivers/net/wireless/st/cw1200/queue.h
<jernej> warpme_: I updated https://github.com/jernejsk/linux-1/commits/h616-test with additional changes which should help with xr819
<jernej> please test
<warpme_> jernej: will do asap. (in the meantime I launched mesa/mythtv rebuild so it will take 20min or so)
<jernej> no hurry :)
<jernej> warpme_: I got few hiccups when downloading ~400 MiB file, but md5 checksum matches
<jernej> and speed was pretty decent, 1.5 - 3 MiB/s from remote server
<jernej> (currently I'm not very near to wifi router)
warpme_ has quit [Quit: Connection closed for inactivity]
<jernej> warpme_: any issues with xr819?
vagrantc has joined #linux-sunxi
warpme_ has joined #linux-sunxi
<warpme_> jernej: i can confirm. current code works very well! So far i played 10min of hd video but all seems to be good. btw: do you have plan to go with cw1200 to mainline or rather your plan is to go with wfx driver?
<jernej> warpme_: good to hear
<jernej> currently plan is with cw1200 since FW API is much closer, basically the same
<jernej> but we'll see
<jernej> warpme_: do you have any feeling if cw1200 driver is any better or worse to karabek driver?
<warpme_> great. only thing i think is worth to somehow address is mac addr. I can't get it constant even with alias. in this context karabek driver has nice feature of declaring mac in dt.
<warpme_> another thing is cw is in-tree - which is HUGE benefit!
<warpme_> btw: on cw driver - after 1h of hd playback dmesg has:
<warpme_> no issues with playback. just above dmesg entries
<jernej> yeah, I got that too, but as you said, no noticable issue
<jernej> I guess it's ok for initial bring up :)
<jernej> but I'll try to track it down
hlauer has joined #linux-sunxi
<jernej> I'll take a look for mac too
<jernej> note that this driver predates OF in Linux
<warpme_> oh for sure it is perfect candidate for initial bringup. I think it is worth to consider to adjust fw to karabek path & filenames. This will make switch from karabek to cw seamless
<jernej> we'll see, ideally, company which produces wifi chip submits FW to linux-firmware repo
<jernej> I'm not sure xradio will have any incentive to do that
<jernej> (that also implies proper names)
<warpme_> exactly. last 5y shows chip producer has zero willingness to have this chip supported by mainline linux. by this i will absolutely ignore any aspect of them....
tuxd3v has joined #linux-sunxi
cmeerw has quit [Ping timeout: 480 seconds]
hlauer has quit [Ping timeout: 480 seconds]
<apritzel> warpme_: the MAC address "feature" is a generic DT feature: U-Boot will put the proper MAC address into "local-mac-addr" property of the device DT node
<apritzel> and a call to of_get_mac_address() from within the MAC driver will parse this
<apritzel> as jernej mentioned, the cw driver is predating DT, so it's missing all those generic DT features
<jernej> yeah, this will be easy to fix
<apritzel> did anyone try SPI booting on the OrangePi Zero 2 (H616)?
<apritzel> I fixed the U-Boot part, but the BROM won't honour my eGON
<apritzel> I hacked sunxi-fel to fake SPI boot, and this part works (the SPL code loads TF-A and U-Boot), but the BROM drops me to FEL
<apritzel> smaeul: do you already have a start address in the H616 BROM where SPI is handled?
warpme_ has quit [Quit: Connection closed for inactivity]
<smaeul> apritzel: I'm travelling atm, so I don't my usual tools. the SPI0 address is at 0x6a74, so I'd start looking at references to there (tbh if you're using ghidra, this should be obvious).
<apritzel> smaeul: yeah, found that place as well, will have a look in there
<apritzel> smaeul: enjoy the fireworks ;-)