Skip to content

Instantly share code, notes, and snippets.

@nrmmota
nrmmota / line_parser.c
Created June 20, 2016 22:40
File line parsing
#include <stdio.h> /* required for file operations */
#include <string.h>
#include <assert.h>
#include <stdlib.h>
FILE *fr; /* declare the file pointer */
main()
{
int n;
@nrmmota
nrmmota / hls.pl
Created April 15, 2016 13:54
HLS fetcher
#!/usr/bin/perl
#
# HLS HTTP2 fetcher
#
# @author nrmmota@gmail.com
#
use strict;
use warnings;
use AnyEvent;
use AnyEvent::Socket;
@nrmmota
nrmmota / 2_0.conf
Created March 18, 2016 13:02
Astra 19 - 11509 V 22000
#Channel Al Jazeera Channel
239.192.1.102:1234/udp/epg 0 7009
#Channel Al Jazeera English
239.192.1.121:1234/udp/epg 0 7012
#Channel Arirang TV
239.192.1.107:1234/udp/epg 0 7011
#Channel Cubavision Internacional
239.192.1.63:1234/udp/epg 0 7008
#Channel NHK World TV
239.192.1.118:1234/udp/epg 0 7014
@nrmmota
nrmmota / cheatsheet
Last active March 17, 2016 13:21
Cheat sheet for i.MX6 YOCTO with gstreamer-imx plugins
# Setup uboot environment with Yocto image from SD card
setenv bootcmd_sd "load mmc 1:1 0x10800000 zImage; load mmc 1:1 0x11800000 imx6q-sabresd.dtb; setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait; bootz 0x10800000 - 0x11800000"
imxvpu: imxvpudec: Freescale VPU video decoder
imxvpu: imxvpuenc_h263: Freescale VPU h.263 video encoder
imxvpu: imxvpuenc_h264: Freescale VPU h.264 video encoder
imxvpu: imxvpuenc_mpeg4: Freescale VPU MPEG-4 video encoder
imxvpu: imxvpuenc_mjpeg: Freescale VPU motion JPEG video encoder
imxv4l2videosrc: imxv4l2videosrc: V4L2 CSI Video Source
imxipu: imxipuvideotransform: Freescale IPU video transform
@nrmmota
nrmmota / local.conf
Last active March 17, 2016 00:54
imx6 tbs2910 yocto config (bitbake core-image-base to get imx stuff)
MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
CORE_IMAGE_EXTRA_INSTALL += " firmware-imx imx-vpu gstreamer1.0-plugins-imx gstreamer1.0-plugins-base gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly dropbear"
LICENSE_FLAGS_WHITELIST = "commercial"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
@nrmmota
nrmmota / 754000_tdt.log
Last active June 21, 2016 18:02
DVB-T Portugal
debug: tuning DVB-T frontend to f=754000000 bandwidth=8 inversion=-1 fec_hp=999 fec_lp=999 hierarchy=-1 modulation=qam_auto guard=-1 transmission=-1
debug: - desc 5a dvb-t frequency=754000000 Hz bandwidth=8 MHz priority=HP timeslicing=0 mpefec=0 constellation=64-qam hierarchy=none coderatehp=2/3 coderatelp=not_applicable guard=1/4 transmission=8k otherfrequency=0
@nrmmota
nrmmota / TBS2910.h
Created February 23, 2015 22:55
TBS2910 u-boot changes
diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h
index c097b98..c3694a3 100644
--- a/include/configs/tbs2910.h
+++ b/include/configs/tbs2910.h
@@ -62,6 +62,7 @@
#define CONFIG_SYS_TEXT_BASE 0x80000000
#define CONFIG_SYS_BOOTMAPSZ 0x6C000000
+#define CONFIG_SYS_BOOTM_LEN (16 << 20)
#define CONFIG_SYS_LOAD_ADDR 0x10800000
@nrmmota
nrmmota / TBS2910 u-boot kernel 3.19
Last active August 29, 2015 14:16
TBS2910 booting 3.19 kernel with buildroot ramfs
Matrix U-Boot>
Matrix U-Boot> tftpboot uImage 0x10800000
Using FEC device
TFTP from server 192.168.1.247; our IP address is 192.168.1.137
Filename 'uImage'.
Load address: 0x10800000
Loading: #################################################################
#################################################################
#################################################################
##############################T ###################################
U-Boot 2015.04-rc1-19966-ge72d344 (Feb 16 2015 - 23:27:14)
CPU: Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
I2C: ready
DRAM: 2 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment
No panel detected: default to HDMI
config file </usr/etc/imx-loader.d/imx_usb.conf>
vid=0x066f pid=0x3780 file_name=mx23_usb_work.conf
vid=0x15a2 pid=0x004f file_name=mx28_usb_work.conf
vid=0x15a2 pid=0x0052 file_name=mx50_usb_work.conf
vid=0x15a2 pid=0x0054 file_name=mx6_usb_work.conf
vid=0x15a2 pid=0x0061 file_name=mx6_usb_work.conf
vid=0x15a2 pid=0x0063 file_name=mx6_usb_work.conf
vid=0x15a2 pid=0x0041 file_name=mx51_usb_work.conf
vid=0x15a2 pid=0x004e file_name=mx53_usb_work.conf
vid=0x15a2 pid=0x006a file_name=vybrid_usb_work.conf