IRC #olimex 2015-08-26

[10:16:58] **************** Logging Ended ****************
[10:17:08] **************** Logging Started ****************
[13:47:00] <vlad____> hi
[13:48:08] <adj_> hi
[13:48:16] <tbr> moo
[13:51:43] <vlad____> do you know how can a custom HDMI resolution be set on an A20-OLINUXINO-LIME2? I have been stuggling with this problem for a hole week now
[13:55:04] <vlad____> I need to set it to 1920x720. I tried with change_*.sh, by editing the fex file, with xrandr...
[13:55:35] <vlad____> but with no success. I just ran out of ideas
[14:00:23] <tbr> odd resolution
[14:00:33] <lukas2511> i don't think that resolution is supported by the SoC
[14:01:48] <lukas2511> i don't think that resolution is supported by the SoC
[14:02:08] <lukas2511> http://linux-sunxi.org/Fex_Guide here under screen1_output_mode is the list of supported resolutions
[14:03:52] <vlad____> on RPi2 it works by editing /boot/config.txt
[14:04:17] <lukas2511> and this isn't a raspberry pi 2.
[14:04:35] <lukas2511> this board works in a completely different way, completely different SoC with a completely different gpu
[14:05:00] <lukas2511> on this board you define your resolutions in a script.bin file, which is a compiled fex-file
[14:11:14] <leon-anavi> vlad____ instead of editing FEX file and generating script.bin you should be also able to achieve by editing uEnv.txt file
[14:12:12] <leon-anavi> this approach is similar to editing config.txt on RPi2. You just set u-boot environmental variables through the file.
[14:12:44] <lukas2511> huh, how does one do this uboot magic?
[14:12:52] <lukas2511> never heard of that before
[14:13:36] <lukas2511> ah i see. interesting
[14:15:59] <vlad____> hmm... from my research that file should be in /boot but that folder is empty and the 'find' command can't find it
[14:44:52] <vlad____> just found this https://linux-sunxi.org/UEnv.txt
[14:44:54] <vlad____> i have b
[14:46:14] <vlad____> i have been trying to create the file but it doesn't seem to make a difference
[15:09:33] <lukas2511> make sure that you have /boot mounted if it's a different partition
[15:12:21] <leon-anavi> vlad____ lukas2511 uEnv.txt is very convenient, its content is loaded by U-Boot and that's how the magic works.
[15:15:11] <leon-anavi> btw I used to load environmental variable through uEnv.txt for u-boot-sunxi.
[15:15:31] <leon-anavi> are you using the mainstream U-Boot or u-boot-sunxi?
[15:19:26] <vlad____> i don't know... anyway using this http://www.lemaker.org/thread-13352-1-1.html and https://linux-sunxi.org/UEnv.txt
[15:20:21] <vlad____> i have fount that the uEnv.txt should be in /dev/mmcblk0p1
[15:20:44] <vlad____> where uImage is located
[15:21:42] <vlad____> so mount /dev/mmcb1k0p1 anywhere
[15:21:58] <vlad____> nano <mount_point>/uEnv.txt
[15:22:10] <vlad____> paste:
[15:22:10] <vlad____> console=tty0
[15:22:14] <vlad____> extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10
[15:22:21] <vlad____> save
[15:22:29] <vlad____> reboot
[15:22:36] <vlad____> the new resolution is 1280x720
[15:39:41] <leon-anavi> vlad____ if you are using a microSD card uEnv.txt should be on the FAT partition, aka the first partition where you also should place the kernel and the bootloader.
[15:44:13] <vlad____> isn't mmcb1k0p1 on sdcard?
[15:49:41] <leon-anavi> most probably
[15:59:23] <vlad_____> do you know how can I change hdmi timings?
[16:00:08] <leon-anavi> no, I suggest to have a look at the FEX guides.