Thursday, 21 April 2016

Odroid Android

 

https://packages.debian.org/sid/utils/dvb-tools

 root@odroid-jessie:~# dvb-fe-tool
Device Sony CXD2820R (/dev/dvb/adapter0/frontend0) capabilities:
     CAN_2G_MODULATION
     CAN_FEC_1_2
     CAN_FEC_2_3
     CAN_FEC_3_4
     CAN_FEC_5_6
     CAN_FEC_7_8
     CAN_FEC_AUTO
     CAN_GUARD_INTERVAL_AUTO
     CAN_HIERARCHY_AUTO
     CAN_INVERSION_AUTO
     CAN_MULTISTREAM
     CAN_MUTE_TS
     CAN_QAM_16
     CAN_QAM_32
     CAN_QAM_64
     CAN_QAM_128
     CAN_QAM_256
     CAN_QAM_AUTO
     CAN_QPSK
     CAN_TRANSMISSION_MODE_AUTO
DVB API Version 5.10, Current v5 delivery system: DVBT
Supported delivery systems:
    [DVBT]
     DVBT2
     DVBC/ANNEX_A

Source

CM-12.1 Android 5.1.1 Lollipop for ODROID-XU3/XU4 (20151201)
http://dn.odroid.com/5422/ODROID-XU3/Android/4.4.4_Alpha_3.5_Mar-17-2016/

lsblk

 root@odroid-jessie:/mnt/sda1/odroid# lsblk
NAME         MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda            8:0    0 931.5G  0 disk
└─sda1         8:1    0 931.5G  0 part /mnt/sda1
mmcblk0boot0 179:8    0     4M  1 disk
mmcblk0boot1 179:16   0     4M  1 disk
mmcblk0      179:0    0  29.1G  0 disk
├─mmcblk0p1  179:1    0  25.8G  0 part /boot
├─mmcblk0p2  179:2    0     1G  0 part /media/odroid/57f8f4bc-abf4-655f-bf67-946
├─mmcblk0p3  179:3    0     2G  0 part
└─mmcblk0p4  179:4    0   256M  0 part /media/odroid/57f8f4bc-abf4-655f-bf67-946
mmcblk1      179:24   0  14.9G  0 disk
├─mmcblk1p1  179:25   0    71M  0 part /media/odroid/boot
└─mmcblk1p2  179:26   0  14.8G  0 part /

dd bs=1M if=android-4.4.4-alpha-3.5-emmc_installer-odroidxu3-20160317.img of=/dev/mmcblk0
500+0 records in
500+0 records out
524288000 bytes (524 MB) copied, 4.65627 s, 113 MB/s

  root@odroid-jessie:~# lsmod
Module                  Size  Used by
rfcomm                 32804  0
bluetooth             225844  3 rfcomm
rfkill                 12936  1 bluetooth
em28xx_rc               7134  0
cxd2820r               14479  1
em28xx_dvb             17935  12
em28xx                 92301  2 em28xx_dvb,em28xx_rc
tveeprom               11600  1 em28xx
videobuf2_vmalloc       3010  1 em28xx
snd_usb_audio         119694  2
snd_usbmidi_lib        19094  1 snd_usb_audio
snd_hwdep               5913  1 snd_usb_audio
snd_rawmidi            20142  1 snd_usbmidi_lib
snd_seq_device          6169  1 snd_rawmidi
spi_s3c64xx            13713  0
ina231_sensor           8388  0
fuse                   75445  5

 

Linux localhost 3.10.9-g62151c3-dirty #2 SMP PREEMPT Thu Jan 14 20:56:21 AMT 2016 armv7l GNU/Linux

Linux odroid-jessie 3.10.96+ #1 SMP PREEMPT Sun Feb 14 11:47:29 CET 2016 armv7l GNU/Linux

 

Thursday, 31 March 2016

TVheadend processes

Extract mp3 from .ts files

 
ffmpeg -i inputfile -f mp3 -acodec mp3 -ab 128k -ar 44100 -vn outputfile.mp3

http://quartz-net.co.uk/quartzwiki/index.php/TS_convert_using_ffmpeg#Audio_conversion

Down scale video

ffmpeg -i inputfile -s hd720 -c:v libx264 -crf 23 -c:a aac -strict -2 output.mp4
 
http://askubuntu.com/a/99648 

Wednesday, 23 December 2015

Odroid

Switched to Debian. Two images are:

  1.  Odrobian Jessie with MATE & KODI (or headless) for XU3/XU4
  2.  Debian Jessie

Currently using the second.

Mount USB drive.

http://linuxconfig.org/howto-mount-usb-drive-in-linux
 https://help.ubuntu.com/community/Fstab

Syncing data

 http://www.thegeekstuff.com/2011/07/rsync-over-ssh-without-password/

Fan control

http://forum.odroid.com/viewtopic.php?f=52&t=16308

orig: 1 51 71 91 -> 68 73 85
test:1 30 50 95 ->50 70 80
using:  1 30 50 95 -> 65 75 85

also http://forum.odroid.com/viewtopic.php?f=114&t=16520

 cpuctrl -s -g "powersave" -m 300M -M 1G
 cpuctrl -s    -M 1.4G -g performance
 cpuctrl -s -g "conservative"


Installed tvheadend 

 TVheadend Versions:
4.1-1162 not working for me (from odroidian)
4.1-997 works (from jessi)
4.1-1257  using from tvheadend repo

Installed Kodi


http://forum.kodi.tv/showthread.php?tid=214619
 http://forum.kodi.tv/showthread.php?tid=221862&page=2

 https://wiki.debian.org/ffmpeg
http://deb-multimedia.org/dists/sid/main/binary-armhf/package/kodi-pvr-tvheadend-hts
http://www.htpcbeginner.com/install-superrepo-kodi-easy-addon-installation/


Linux - How to build new PVR addons

Sunday, 6 December 2015

Odroid UX4

My Raspberry Pi died so I replaced it with the 8 core Odroid UX4.

ODROID-XU4 is a new generation of computing device with more powerful, more energy-efficient hardware and a smaller form factor.
Offering open source support, the board can run various flavors of Linux, including the latest Ubuntu 15.04 and Android 4.4 KitKat and 5.0 Lollipop.
By implementing the eMMC 5.0, USB 3.0 and Gigabit Ethernet interfaces, the ODROID-XU4 boasts amazing data transfer speeds, a feature that is increasingly required to support advanced processing power on ARM devices.

Set the fan

I was worried about the noise. It is not loud  but audible. After:
change the governor to "interactive" from "performance"
http://forum.odroid.com/viewtopic.php?f=95&t=15737
It is not running apart from startup See Also
 https://github.com/nthx/odroid-xu3-fan-control

Ubuntu

came with  15.04
updated via http://askubuntu.com/a/196777
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04
TODO
Installed Tvheadend, Ubuntu comes with Kobi
 https://tvheadend.org/boards/5/topics/16572?r=16573#message-16573

Sunday, 19 April 2015

Sunday, 1 February 2015

java install no prompt

http://askubuntu.com/questions/190582/installing-java-automatically-with-silent-option

$ echo debconf shared/accepted-oracle-license-v1-1 select true | \
  sudo debconf-set-selections
$ echo debconf shared/accepted-oracle-license-v1-1 seen true | \
  sudo debconf-set-selections

Monday, 29 December 2014

Files

 Music

 69.5 GB (74,638,884,864 bytes) 13,228 Files, 1,093 Folders

Pictures

Pictures: 39.8 GB (42,771,218,432 bytes) 19,274 Files, 1,317 Folders
Database: 226 MB (237,961,216 bytes) 1,318 Files, 174 Folders

Tuesday, 27 May 2014

raspberry pi update

  • Linux raspberrypi 3.12.20+
  • HTS Tvheadend 3.9.748~g789065c

Friday, 2 May 2014

XQDT in Eclipse Kepler

 XQDT provides support for editing, execution, and debugging of XQuery modules in Eclipse.
 It requires DLTK version 3. Certain plugins will install DLTK version 4, e.g. Scala IDE, which prevents XQDT installation.
If that is not installed then version 3 of DLTK can be installed from the indigo update site
 http://download.eclipse.org/releases/indigo
 Then install XQDT



Thursday, 1 May 2014

Raspberry PI updates

  • Linux raspberrypi 3.12.18+ #677
  • HTS Tvheadend 3.9.570~g5fbe7a7
This fixes  https://github.com/Hexxeh/rpi-firmware/issues/38
Also PI now  overclocked to 900 in config.txt


Saturday, 26 April 2014

Updating the Pipo M9

I tried Pipo-M9-Pro-RileyROM-2-7-KitKat 2.7.2 on my Pipo M9. It looks good and is much faster than the Finless Jellybean ROM, but it has a battery problem and more importantly Linuxdeploy fails with permissioning errors. This is a KitKat issue I believe. Other minor issues:
Screen rotation:
It's a problem with occurs mostly when using the stock launcher. If you use another like Nova or Apex, then the problem don't exist.
GPS:
I do sync time with NTPSync before trying the first time, maybe that's the trick.
So back to JellyBean, not with the Finless ROM this time but Pipo-M9-Pro-RileyROM-2-7-Jellybean. Fast and clean, the only gripe is the slow boot time.

A review: http://www.topchinatablets.com/pipo-m9pro-review/

Java and BaseX


Random Android tips

Monday, 14 April 2014

Java on the Raspberry Pi

Since update 40 Oracle's Java 7  JDK supports ARM HF, so I believe offers no great performance advantage over Java 8. My Java 8 seems to have been wiped out, probably by the Wolfram install.

pi@raspberrypi /etc/alternatives $ java -version
java version "1.7.0_40"
Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
Java HotSpot(TM) Client VM (build 24.0-b56, mixed mode)
pi@raspberrypi /etc/alternatives $ sudo update-alternatives --config java
There is only one alternative in link group java (providing /usr/bin/java): /usr/lib/jvm/jdk-7-oracle-armhf/jre/bin/java
Nothing to configure.

Update from http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html

Monday, 7 April 2014

Notes on making readynas the primary media store

Using Picasa from a network share:

pictures

size: 30gb,16000 files

music

size: 69Gb, 13000 files

ReadDLNA

Readynas1 and velvet have 1.1.0
https://www.readynas.com/forum/viewtopic.php?f=76&t=27946 2014/01/16 [1.1.1.2]

Recordings from pi

 Black Narcissus.ts
  5392715328 100%  320.20kB/s    4:34:07 (xfer#2, to-check=28/31)
Cannes Film Festival 2013 Special.ts
   147667984 100%  277.80kB/s    0:08:39 (xfer#3, to-check=27/31)
Citizen Kane.ts
  2810796272 100%  254.46kB/s    2:59:47 (xfer#4, to-check=26/31)
Glastonbury 2013.ts
  6000793056 100%  172.07kB/s    9:27:36 (xfer#5, to-check=25/31)

Saturday, 22 March 2014

A very rough guide to running BaseX on Openshift

Update: 24Apr2014 see openshift-basex-quick-start

I hope to release an Openshift quick start cartridge for BaseX soon. Until then here are some quick notes that completely ignore the right way to do this.

1. Use putty to access your gear: https://www.openshift.com/blogs/access-your-application-gear-using-ssh-with-putty

2. Install BaseX

cd app-root/data
wget http://files.basex.org/releases/BaseX-latest.zip
unzip *.zip


3. In jetty.xml change the host and port settings to use Env values

<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
    <Set name="port"><Env name="OPENSHIFT_DIY_PORT" default="8080" /></Set>
    <Set name="host"><Env name="OPENSHIFT_DIY_IP" default="127.0.0.1" /></Set>
    <Set name="maxIdleTime">60000</Set>
    <Set name="reuseAddress">true</Set>
    <Set name="Acceptors">2</Set>
    <!-- Support for SSL connections . <Set name="confidentialPort">8986</Set> -->
</New>

4. If the default server, (ruby?) is running kill it.

5. Start the BaseX httpserver
 #!/bin/bash

# start basex
cd ${OPENSHIFT_DATA_DIR}basex
nohup bin/basexhttp -X -Dorg.basex.SERVERHOST=$OPENSHIFT_DIY_IP \
                    -X -Dorg.basex.SERVERPORT=$OPENSHIFT_DIY_PORT \
                    -p 15005 -e 15006 -s 15007 -U admin -P admin &


Wednesday, 12 March 2014

Sunday, 23 February 2014

Friday, 7 February 2014

Schematron resources

At the beginning of the week I needed to create a Schematron sample in a hurry. I had done it before, a long time ago, on another machine. It did not help that http://www.schematron.com was, and still is, down. This article is a record of the resources I found at the time and later.

First https://code.google.com/p/schematron/ seems to be the place to get an implementation of ISO Schematron. This comes as a set of XSLT files. The wiki suggests a number of options for running these, which led me to the excellent tutorial at http://www.dpawson.co.uk/schematron/.

 In a hurry and not wanting to set up a batch file  I remembered that Kernow has a Schematron option. Sadly I could not find any documentation for this and the Web start option seems to have become a victim of enhanced security policies.
Another useful tutorial, with example business logic from the Ark, is data2type schematron introduction

XML Database Schematron support

 Other tools

It seems to me it would be nice to have a  http://expath.org/ module that wrapped up the Schematron functionality and made it easy to install. Something like ML-Schematron that could run in BaseX or ExistDb.

Sunday, 2 February 2014

New gadget and updates

Pipo M9Pro

 

Just bought one, looking good so far
Flashed with Pipo-M9-Pro-Finless-1-5-ROM , The KitKat ROM looks a bit rough at the moment.
Installed Linux Deploy and how-to-install-oracle-java-7-in-debian.html

 

 

Other updates

Friday, 19 July 2013

raspberry pi tvheadend

Tvheadend Updates

  • Firmware updated:Linux raspberrypi 3.6.11+ #502
  • tvheadend: old 3.5.201~g2a9ccdd, new 3.5.232~g7ac5542
Seems much better.

Flash drive and SD card Read timing


pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/sda1

/dev/sda1:
 Timing buffered disk reads:  44 MB in  3.02 seconds =  14.59 MB/sec
pi@raspberrypi /media/usbstick/recordings $ sudo hdparm -t /dev/root

/dev/root:
 Timing buffered disk reads:  46 MB in  3.10 seconds =  14.86 MB/sec
pi@raspberrypi /media/usbstick/recordings $ 

Wifi Timings

The Passenger.ts 100% 1873MB 339.5KB/s 1:34:11 The Portrait of a Lady.ts 100% 1759MB 588.4KB/s 51:01 Still requires burstmode off

Thursday, 11 July 2013

Ralink RT5370 chip

To find chipset: lsusb -v
Devices with RT5370 chipset do not work out of the box in Ubuntu 11.10 to 12.04. They work automatically in Ubuntu 12.10. 
https://help.ubuntu.com/community/WifiDocs/Device/Tenda_W311M

 http://ubuntuforums.org/showthread.php?t=1800178&highlight=rt5370sta