IRC #olimex 2016-07-20

[10:30:50] <leon-anavi> morning
[15:33:40] <kr_eten> Hi People, I have made a20 olinuxino micro boot from sata (after sd card boot) few months ago
[15:34:01] <kr_eten> however I am changing the card now with smaller one and can not recall what I did
[15:34:29] <kr_eten> at the moment I just changed uEnv.txt to root=/dev/sda1
[15:34:36] <kr_eten> however this did not help at all :)
[15:35:36] <kr_eten> ah, I also updated to latest image from r11 to r12 (debian)
[15:37:24] <leon-anavi> hi kr_eten :)
[15:39:08] <kr_eten> Hi Leon, btw I think i will need to recompile the kernel, cant recall if I did it last time
[15:39:12] <kr_eten> to embed SATA support in it
[15:39:46] <leon-anavi> yes, if your current kernel does not support SATA
[15:39:54] <leon-anavi> also double check U-Boot configurations
[15:40:31] <kr_eten> root@A20-OLinuXino:~# zcat /proc/config.gz | grep -i sata
[15:40:31] <kr_eten> # CONFIG_SATA_PMP is not set
[15:40:31] <kr_eten> # CONFIG_SATA_AHCI_PLATFORM is not set
[15:40:31] <kr_eten> CONFIG_SW_SATA_AHCI_PLATFORM=y
[15:41:12] <kr_eten> it supports it, not sure however if it is with module or not
[15:41:39] <kr_eten> from config.gz it seems it is embeded and not module
[15:41:41] <leon-anavi> are you using mainline U-Boot/Kernel or still the ones from linux-sunxi (aka version 3.4 of the kernel)?
[15:42:50] <kr_eten> Linux A20-OLinuXino 3.4.103-00033-g9a1cd03-dirty #29 SMP PREEMPT Tue Apr 5 08:21:20 EEST 2016 armv7l GNU/Linux
[15:42:52] <kr_eten> 3.4
[15:44:18] <leon-anavi> ok
[15:47:49] <leon-anavi> kr_eten, https://wiki.debian.org/InstallingDebianOn/Allwinner#Booting_the_installed_system
[15:48:17] <leon-anavi> there is a section describing how to configure U-Boot sunxi to boot from SATA
[15:49:30] <leon-anavi> kr_eten, btw have you seen this new sunxi device for old gamers :) https://getchip.com/pages/pocketchip
[15:50:36] <kr_eten> checking
[15:54:48] <leon-anavi> I pre-ordered in May 2015 and I got it a few weeks ago
[15:55:14] <leon-anavi> I got some classical arcade video games running on it with XMAME :) https://www.youtube.com/watch?v=7uxNpYThIIY
[15:55:39] <leon-anavi> Doom is also available but I haven't check it personally yet
[15:55:47] <kr_eten> sounds like fun
[15:55:55] <kr_eten> what about game rights? :)
[15:56:00] <kr_eten> expired?
[15:56:29] <leon-anavi> there are a few games that are available for free
[15:56:49] <kr_eten> I recently got rpi3 - basically the reason I am again changing settings for the olinuxino
[15:57:08] <kr_eten> as I put 16g card in it which is not used, and will be better suited in the rpi
[15:57:11] <leon-anavi> and... you can download thousands of games from some obscure websites
[15:58:39] <leon-anavi> Yesterday I got Open Arena working on PocketC.H.I.P. Do you remember this game? I believe we used to play it in the office a decade ago and you were the best player (with Dmitry) :)
[15:59:53] <leon-anavi> anyway, open arena lags as hell because PocketC.H.I.P. comes with mainline Linux kernel but there are no proper Mali drivers for it.
[16:00:22] <leon-anavi> I guess better experience can be achieved with linux-sunxi 3.4 in this case.
[16:02:07] <kr_eten> I could not play the open arena - it was kind of different from the q3 original game
[16:02:27] <kr_eten> but I don't think this kind of games are good for handheld devices at all :)
[16:02:38] <kr_eten> only for the sake of geekiness :)
[16:03:55] <leon-anavi> I saw quake (probably ioquake3) running very well on Orange Pi which is also with Allwiiner SoC: https://www.youtube.com/watch?v=r8cBs8JJr4k
[16:04:10] <leon-anavi> but with linux-sunxi 3.4 and Mali drivers :)
[16:04:16] <kr_eten> why did I not write down the damn steps I did last time.. :(
[16:04:28] <kr_eten> mali was some opengl port or something?
[16:04:33] <leon-anavi> yes, I totally agree with you about the sake of geekiness :)
[16:04:41] <kr_eten> hm it was mesa I think or something else
[16:04:50] <kr_eten> mali is some video hardware then? :)
[16:05:04] <leon-anavi> mali has a proprietary that can working on X11 and linux-sunxi 3.4
[16:05:20] <leon-anavi> there is an open source port but it is not being developed nowadays
[16:05:29] <leon-anavi> limadriver
[16:05:50] <kr_eten> i failed to understand what you mean :)
[16:06:03] <leon-anavi> btw next time you get the SATA working share the notes to the other geeks :)
[16:06:26] <kr_eten> I was planning to, however you know how things are
[16:06:36] <kr_eten> it gets working, then you just screw it :)
[16:06:37] <leon-anavi> never mind about Mali, long shorty about it: the drivers sucks :)
[16:06:43] <leon-anavi> hehe :D
[16:07:27] <kr_eten> btw I have problems with the uart - it keeps freezing
[16:07:34] <kr_eten> I got it on lan already
[16:07:41] <kr_eten> but I cant see the boot process through lan
[16:08:17] <leon-anavi> yes, you need uart to monitor the boot process
[16:08:41] <leon-anavi> is the freezing cause by hardware issue or there is something wrong with the kernel?
[16:13:45] <kr_eten> well on my laptop where the USB is connected I get: [ 1795.221255] pl2303 ttyUSB0: usb_serial_generic_read_bulk_callback - urb stopped: -32
[16:14:15] <kr_eten> I checked it briefly, but the only suggestion I could understand was that it was some kernel issue for some version
[16:14:24] <kr_eten> I updated my kernel on the laptop just in case
[16:14:27] <leon-anavi> hm...
[16:14:34] <kr_eten> but this did not help much
[16:14:47] <kr_eten> as long as there is more than 2-3 lines of data the serial hangs
[16:14:59] <leon-anavi> can you try on another pc?
[16:16:11] <kr_eten> I may, but it will be with same kernel
[16:16:17] <kr_eten> I tried few USB ports on the laptop
[16:16:24] <kr_eten> in case any is faulty
[16:18:25] <leon-anavi> I had some issues with faulty USB to UART cables in the past
[16:18:37] <kr_eten> I also suspect the cable
[16:18:43] <kr_eten> it is got from olimex
[16:18:56] <kr_eten> but stuff fails from time to time
[16:19:03] <leon-anavi> but in this case it was not freezing, I was getting some crappy symbols from time to time
[16:19:18] <leon-anavi> everything fails sooner or later ;)
[16:19:29] <kr_eten> well I suspect the cable, mostly because I have no idea :)
[16:20:17] <kr_eten> got it working
[16:25:09] <kr_eten> what I did is set boot in uEnv.txt, and in boot.cmd
[16:25:29] <kr_eten> I got the files from my old sd card
[16:25:49] <kr_eten> but if not - you need to compile boot.scr from boot.cmd
[16:26:03] <kr_eten> not sure where to write this as en example
[16:26:12] <kr_eten> not sure where to write this as an example
[16:31:20] <kr_eten> any suggestion on that matter?
[16:38:30] <leon-anavi> don't know...
[16:39:10] <leon-anavi> olimex forums, linux-sunxi.org, elinux.org ... instructables could be an option too or just gist.github.com
[16:42:21] <kr_eten> this gist... is somewhat like pastebin?
[17:12:34] <leon-anavi> yes
[17:13:29] <kr_eten> https://www.olimex.com/forum/index.php?topic=5414.0
[17:13:34] <kr_eten> done
[17:13:41] <kr_eten> useful or not ;)
[17:16:23] <kr_eten> Regarding this topic: https://olimex.wordpress.com/2014/01/22/bevare-non-grounded-tv-monitors-can-damage-your-olinuxino/ , my TV does not have the grounding, but from the comments it seems that this is not a criteria meaning 100% chance to burn your board
[17:19:02] <kr_eten> I do not understand the "filtering capacitors" comment, so checking the voltage between board ground and hdmi cable ground should prove good criteria for the TV safety?
[17:19:12] <kr_eten> btw I am not going to use the uart along with hdmi anyway
[17:33:46] <opensurf> good mornig
[17:33:50] <opensurf> good morning
[17:36:53] <opensurf> I'd like to organize a training week for my company about olimex boards, can somebody point me to the right direction? It's very urgent
[17:44:22] <opensurf> good morning
[18:47:06] <leon-anavi> opensurf, which boards are you interested in? Olimex have hundred of boards in their market.
[18:47:42] <lukas2511> the red ones!
[18:48:10] <leon-anavi> hehe :)
[18:49:28] <opensurf> a13
[18:49:42] <opensurf> or a10
[18:50:13] <opensurf> we'd like before tomorrow eveing to have a course about it (how much is and how much time)
[18:50:28] <leon-anavi> ok, cool we are talking about embedded Linux and the boards with Allwinner SoC.
[18:50:44] <opensurf> for sure
[18:50:45] <leon-anavi> what would you like to learn about these boards?
[18:51:21] <opensurf> encoding/decoding (h264) for very cheap solutions
[18:54:10] <leon-anavi> like gstreamer (h264) or something else? what requirements for U-Boot/Linux kernel versions do you have?
[18:54:21] <opensurf> I'd like a mail to send you some information
[18:56:47] <opensurf> no requirement, the chepaest
[18:57:07] <opensurf> I'm going but I need an email
[18:58:03] <leon-anavi> I sent you my email as a personal message