November 14, 2019, 11:45:19 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


A few beginners questions (Cubieboard 2)

Started by DaMor, March 06, 2014, 03:13:25 am

Previous topic - Next topic

DaMor

Hi all,
I have few questions about Cubieboard 2. My history looks like:
I was looking for universal media player to my livingroom and I found Raspberry PI but my AV receiver does not support audio from HDMI (there is no SPDIF on RPi). I searched further and came across a Cubieboard 2, I was happy because it has everything I expect:
1. HDMI
2. SPDIF
3. IR
4. RJ45
5. etc.
Nowhere can I find information on how to use everything I care about in particular spdif. I tried Android (which was pre installed on CB2) with VLC and MXplayer, in this programs and in android settings isn't options SPDIF passthrough:-(
My question is which OS for CB2 you will recommend for Media Center?
P.S.
openElec and XBMC does not work on CB2 what is my biggest disappointment  :(.
P.S.2
I'm sorry for my English.



con

XBMC 'works' on some aspects, but not completely.

As far as I know there is not SPDIF toslink available for CB2 yet but coax might work if you build it yourself or get an expansion header.

See https://groups.google.com/forum/#!topic/cubieboard/M7SYXdZAPZc for more info but there is not conclusion if it will work.

The CB2 also misses the IR header so you need to install one yourself (e.g. IR diode).

Hopefully it will help you a bit. My advice would be to buy a CubieTruck (CB3) as it does contain the SPDIF and IR connectors.

DaMor

Quote from: con on March 06, 2014, 06:08:41 am

As far as I know there is not SPDIF toslink available for CB2 yet but coax might work if you build it yourself or get an expansion header.
See https://groups.google.com/forum/#!topic/cubieboard/M7SYXdZAPZc for more info but there is not conclusion if it will work.

On the CB2 site is:
"9. 96 extend pin interface, including I2C, SPI, RGB/LVDS, CSI/TS, FM-IN, ADC, CVBS, VGA, SPDIF-OUT, R-TP, and more"

I'm doing something like this:
http://www.edaboard.com/thread244623.html
But I still can't find any information how to turn on the SPDIF in CB2 (Android) and send DTS or AC3 to AV receiver.

Quote from: con on March 06, 2014, 06:08:41 am
The CB2 also misses the IR header so you need to install one yourself (e.g. IR diode).

I don't understand, on the Cubieboart is installed IR diode!?

Quote from: con on March 06, 2014, 06:08:41 am
Hopefully it will help you a bit. My advice would be to buy a CubieTruck (CB3) as it does contain the SPDIF and IR connectors.

I don't want spend more money to another device :(
I regrets very much that I bought the CB2. A better solution would be buy Raspberry Pii (which is cheaper than CB2) and buy a HDMI splitter, now I have a CB2, which I hide in a drawer ;).

con

March 07, 2014, 10:36:53 am #3 Last Edit: March 07, 2014, 10:39:28 am by con
You do need to enable the SPDIF interface in the script.fex (located on the boot partition)

Check for the spdif config here and for how to use fex files (and script.bin/sunxi tools) here

BTW: easiest is for creating the bin and creating the fex.

./fex2bin script.fex > script.bin
./bin2fex script.bin > script.fex

DaMor

March 09, 2014, 10:44:49 am #4 Last Edit: March 09, 2014, 10:56:44 am by DaMor
Quote from: con on March 07, 2014, 10:36:53 am
You do need to enable the SPDIF interface in the script.fex (located on the boot partition)

Check for the spdif config here and for how to use fex files (and script.bin/sunxi tools) here

BTW: easiest is for creating the bin and creating the fex.

./fex2bin script.fex > script.bin
./bin2fex script.bin > script.fex


Very thanks for your help, but now I have another problems ;D:
I tried:

adb shell
mkdir /mnt/tmp
mount -t vfat /dev/block/nanda /mnt/nanda

But in /mnt/nanda  is no file script.bin but is magic.bin.
I copy the magic.bin to PC and tried convert to magic.fex but on Windows (fexc) I get:

cygwin warning:
  MS-DOS style path detected: D:\magic.bin
  Preferred POSIX equivalent is: /cygdrive/d/magic.bin
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
fexc-bin: D:\magic.bin: version: 1264676153.926115172.1664509285
fexc-bin: D:\magic.bin: size: 512 (1886597473 sections)
      3 [main] bin2fex 7068 exception::handle: Exception: STATUS_ACCESS_VIOLATION
   3705 [main] bin2fex 7068 open_stackdumpfile: Dumping stack trace to bin2fex.exe.stackdump

on Debian(sunxi-tools):

m@debian:~/sunxi-tools$ ./bin2fex ../magic.bin > ../magic2.fex
fexc-bin: ../magic.bin: version: 1264676153.926115172.1664509285
fexc-bin: ../magic.bin: size: 512 (1886597473 sections)
Segmentation fault

magic.bin is the same file like script.bin?
Where i must looking for script.bin?


con

Well, I don't know much about the android versions unfortunately. Are there any other files?

The script.bin or equivalent should be around 45000-47000 bytes in size.

DaMor

Quote from: con on March 11, 2014, 06:29:44 am
Well, I don't know much about the android versions unfortunately. Are there any other files?

The script.bin or equivalent should be around 45000-47000 bytes in size.

Hi con
I'm very grateful to you for your interest. I read on the http://docs.cubieboard.org/tutorials/cb2/installation/cubieboard2_android-4.2.2_releases in the Android 4.2_v1.06 section: "Don't support script.bin" then I install Android 4.2_v1.05 on my CB, and:
1. mount -t vfat /dev/block/nanda /mnt/nanda
in the /mnt/nanda is the script.bin file  :)
2. adb pull /mnt/nanda/script.bin
3. chmod 777 script.bin
4. ./bin2fex script.bin > ./script.fex
5. mcedit script.fex
5.1. change the spdif_used from 0 to 1
6. ./fex2bin script.fex > ./script.bin
7. adb push script.bin /mnt/nanda
8. adb shell
9. umount /mnt/nanda
10.reboot

but i still don't see any change. Still on the android audi settings I have Audio Codec and Audio HDMI, XBMC says "No passthrough device"

I looking further, maybe linux distro can be better (Cubian or Cubieez).
P.S.
In post http://www.cubieforums.com/index.php?topic=1511.0 is Cubieez with SPDIF driver. Cubieez is my next target :)

con

Linux would definitely increase the chances of adding SPDIF support. Good luck!