51 Replies Latest reply on May 31, 2014 2:35 PM by mubase

    A newcomer asks about Riotboard HDMI...

    mubase

      Hi all. My name is Steve. I am from London. I am a newbie to the Forum.

      I found out yesterday about the Riotboard through an email from Farnell. I was so turned on I bought one today. I am not an experienced Android programmer but have experience with Processing for Android, Arduino, AVR ATMEGA and XMEGA. I haven't got my board yet but thought I'd ask about HDMI.

      I have a couple of Android tablets with HDMI sockets.

      One is a PIPO M9 and the other a CnM 9" tablet.

      Is it possible to connect the Riotboard to a tablet screen using the HDMI sockets?

      Or does it have to be a monitor?

        • Re: A newcomer asks about Riotboard HDMI...

          LCD8000-97CLCD8000-97C don't be put off by it saying Sabre-Lite / MarS, it works just fine with RIoTboard. It connects to the LVDS connector and leaves the HDMI socket free.

          • Re: A newcomer asks about Riotboard HDMI...
            mubase

            Would an HDMI to VGA converter work???

              • Re: A newcomer asks about Riotboard HDMI...

                Theoretically yes, same problem as you've probably read about with the Raspberry Pi though. You need an active, powered, converter. Not one of the passive ones.

                Something like ELEMENT14 - PIVIEW - ADAPTER, RASPBERRY PI, HDMI TO VGA ELEMENT14 - PIVIEW - ADAPTER, RASPBERRY PI, HDMI TO VGA will likely work

                 

                If your monitor has DVD-D input then it's possible to use a passive HDMI->DVI converter, but that won't work for VGA / DVI-I

                 

                Essentially anything that has an HDMI input should be able to be connected.. While it's not possible to be 100% certain, I suspect your tablets have HDMI outputs in order to be able to connect them to bigger screens.  You most likely can't use these to connect to the RIoTboard as you'd be connecting an output to another output.

                 

                Having said that, I fully expect someone will turn up shortly and give us an example of a tablet that does have an HDMI input

              • Re: A newcomer asks about Riotboard HDMI...
                mubase

                Something like this then.. ?

                1080P HDMI to VGA M/F Active Adapter for Raspberry Pi Model B UK | eBay

                 

                You're right selsinork. My tablets are HDMI out for output to big screens...no input.

                First things first though... the board has to

                1. Arrive.

                2. Be configured.

                3. Be recognised and communicable with Terminal.

                I am quite excited.

                • Re: A newcomer asks about Riotboard HDMI...
                  tushar panda

                  If you looking for something in small screen, we got LCD 8000-97CLCD 8000-97C .

                  Its connected through LVDS terminal.

                  • Re: A newcomer asks about Riotboard HDMI...
                    mubase

                    Hello .

                     

                    Well I got the HDMI to VGA cable today. (As mentioned above..)

                    Plugged it into the HDMI connector of the board and plugged a dell LCD monitor into the VGA end of the adapter...

                    Turned on the board and!!!!!

                    NOTHING!!!

                    I also tried plugging it into my laptop VGA socket. The laptop screen border changes but TIA... hmmm....

                    Anyone have any ideas or experience of what I can do?

                    (apart from spending hundreds of punds on something I don't have the moolah for at the moment...?)

                     

                    Cheers,

                    Steve.

                      • Re: A newcomer asks about Riotboard HDMI...

                        Unfortunately, no idea...  I've never had to use one of these as all my displays have either DVI-D or HDMI.

                         

                        Are you using Android or Linux ?  I've had trouble with Android on mine picking really odd screen settings (640x480 on a 1600x1200 display etc) often resulting in blank or unuseable display.

                        If you're using Linux and can get connected to the board via either serial console or ssh you may be able to examine the ddc and see what mode is being selected based on that data. You can probably also force a mode by changing the bootargs in the u-boot environment.

                        • Re: A newcomer asks about Riotboard HDMI...
                          tushar panda
                          plugged a dell LCD monitor into the VGA end of the adapter

                          HDMI interfaces are highly supported but with vga connectors may not work.

                          apart from spending hundreds of pounds ...

                          serial console is nice and good if there is no display specfic work.

                          I mentioned the software setup here and hardware connection here.

                           

                          Hope that helps for the moment.

                            • Re: A newcomer asks about Riotboard HDMI...
                              mubase

                              tusharp wrote:

                               

                              plugged a dell LCD monitor into the VGA end of the adapter

                              HDMI interfaces are highly supported but with vga connectors may not work.

                               

                              BUT WHyyyyy??

                              There must be a workaround... Its a simple active VGA to HDMI adapter that supposedly works on the R-PI...Is it worth trying???

                                • Re: A newcomer asks about Riotboard HDMI...
                                  radiatortwo

                                  BUT WHyyyyy??

                                  There must be a workaround... Its a simple active VGA to HDMI adapter that supposedly works on the R-PI...Is it worth trying???


                                  The RIoTBoard has some problems with the Android image right now when it comes to HDMI or Audio output.

                                   

                                  I have a philips TV and a Samsung Monitor. Both with HDMI input.

                                   

                                  The Samsung Monitor is working with both. Android and Linux.

                                  But my Philips TV only works with Linux. No matter what resolution I use.

                                   

                                  Try to flash the Linux Image and test it again. If you get an image there, than you at least know if it´s an Android problem. Or the converter just doesn´t work at all.

                                   

                                  Also I´d use an active converter with external power supply. Like this one: HDMI Converter - HDMI to VGA plus + Audio (SPDIF Optical and Phono L/R) | eBay

                                    • Re: A newcomer asks about Riotboard HDMI...
                                      mubase

                                      Hi Otto & thanks for the reply.

                                       

                                      OK. I would like to try Flashing Linux onto my board. I have seen selsinorks' tutorials on upgrading  uboot and flashing a LInux image. He uses a Sabre lite board to do all this. COuld oyu tell me the best way of doing this? I don't have a sabre lite board... I have a windows 7 laptop and the board (running on Teraterm thru a USB to serial board which works fine.)

                                      Thanks again,

                                      Steve.

                                        • Re: A newcomer asks about Riotboard HDMI...
                                          radiatortwo

                                          If you only want to test it then you don´t need to build and compile the newest Kernel.

                                           

                                          You can download the ubuntu image here.

                                          http://downloads.element14.com/linux/Linux.zip?ICID=knode-riotboard-quick&COM=RIoTboard

                                           

                                          You then only have to extract the mfgtools folder.

                                          Then rename the file ucl2.txt to ucl2.xml. It should be somewhere inside the profiles folder.

                                           

                                          Then start MfgTools, turn off the board and put the dip switches to 1 Off and 5 Off. All other switches to On.

                                          Like described here. The specified item was not found.

                                          Then Power the RIoTBoard on and connect it with USB to J11 (next to the Ethernet port not J14).

                                           

                                          Mfgtools then should show you HID Device found. Then just click start.

                                          This takes a while. But when it´s finished the bar turns green. Then click Stop and close.

                                           

                                          Put then the dip switches back to 2 Off and 5 Off. Rest On. And you´re done.

                                          But always remove the power supply if you change switches.

                                          Also what I have after flashing is that I also have to remove the USB connection to turn it completely off. (It´s running only with USB power at that state somehow...)

                                          • Re: A newcomer asks about Riotboard HDMI...
                                            tushar panda

                                            I have a windows 7 laptop and ...

                                            chris mentioned in a blog post on How-To change /flash OS in windows  here.

                                          • Re: A newcomer asks about Riotboard HDMI...
                                            mubase

                                            Thanks Otto. I'm D'loading the Linux image as I type..  May I ask.... Can I assume that when I have installed Linux on the board, if I want to go back to Android I use a similar process to flashing Linux?

                                             

                                            Thanks again,

                                            Steve.

                                              • Re: A newcomer asks about Riotboard HDMI...
                                                radiatortwo

                                                Yes same thing.

                                                 

                                                But instead you´ll need the Android Image and Tools.

                                                http://downloads.element14.com/riotboard/Android/Android%20Image.zip?ICID=knode-riotboard-quick&COM=RIoTboard

                                                http://downloads.element14.com/riotboard/Android/tools.zip?ICID=knode-riotboard-quick&COM=RIoTboard

                                                 

                                                Maybe only the tools. If I remember right there was already an Image inside the zip.

                                                You´ll have to look in the folder "Mfgtools-Rel-4.1.0_130816_MX6DL_UPDATER\Profiles\MX6DL Linux Update\OS Firmware\files\android"

                                                 

                                                If theres an boot.img, recovery.img, system.img and u-boot-mx6solo-riot.bin, then you already have all the files needed.

                                                But also here you have to rename the ucl2.txt to ucl2.xml.

                                                • Re: A newcomer asks about Riotboard HDMI...

                                                  There's a possible alternative - if you have another linux machine to work from.

                                                  I detailed here

                                                  http://www.element14.com/community/community/knode/single-board_computers/riotboard/blog/2014/05/16/riotboard-ubuntu-image-on-sd-card

                                                  how to put the ubuntu image onto an SD card. Doing that would mean you don't have to wipe android and replace it with linux on the eMMC. You can just change the boot switches to boot from SD and boot linux.

                                                  Unfortunately, you really do need a linux machine to be able to setup the card.

                                                  • Re: A newcomer asks about Riotboard HDMI...
                                                    mubase

                                                    OK! I've manaed to flash the image onto the board.

                                                     

                                                    Using terminal again I get a scrawl of bootup data. A couple of things I am concerned about.

                                                     

                                                    Should one of the LEDs be flashing? (the one nearest the power jack)..

                                                     

                                                    I get this message...

                                                     

                                                    modprobe: FATAL: Could not load /lib/modules/3.0.35-02871-ga35ffe3/modules.dep: No such file or directory

                                                     

                                                    Anyone know What it means?

                                                    Also this:

                                                    ERROR: HDMI is not ready!

                                                    asoc: can't open platform imx-hdmi-soc-audio.0

                                                     

                                                    So now I have "root@linaro-ubuntu-desktop:~#"

                                                    Where can I go from here?

                                                    Can I install Python? Or how do I go about starting the exciting journey of programming on the Riotboard??

                                                    (I did say I was a noob with some Android, Arduino & Microcontroller experience..   )

                                                     

                                                    Cheers,

                                                    Steve.

                                                     

                                                    oh, p.s. did I tell you I was interested in mainly Audio, synthesis and control..

                                                      • Re: A newcomer asks about Riotboard HDMI...
                                                        radiatortwo

                                                        That modprobe error means that the modules.dep file is missing.

                                                        That´s only a problem if you want to use some external hardware like USB-Wifi or similar.

                                                        The Linux Image isn´t the best and is rather old. That´s why selsinork put that much effort into creating patches for the mainline Kernel.

                                                         

                                                        The HDMI Error is something I also get, when I don´t have a HDMI device connected. So I assume the HDMI to VGA adapter isn´t recognized.

                                                         

                                                        When you´re on the console you´re now able to do everything you could do in ubuntu Linux. (Except start the GUI because you don´t have a picture...)

                                                         

                                                        If you want to install python you could go like this.

                                                        (This is for python 3.3 for example)

                                                         

                                                        sudo apt-get build-dep python3.2
                                                        sudo apt-get install build-essential libreadline-dev libncurses5-dev libssl1.0.0 tk8.5-dev zlib1g-dev liblzma-dev
                                                        
                                                        wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz
                                                        
                                                        tar xvfz Python-3.3.0.tgz
                                                        
                                                        cd Python-3.3.0
                                                        ./configure --prefix=/opt/python3.3
                                                        make  
                                                        sudo make install
                                                        

                                                         

                                                        And to test if it´s really installed

                                                         

                                                        /opt/python3.3/bin/python3
                                                        

                                                         

                                                        After that you can google for python tutorials. There is a lot of stuff for this.

                                                          • Re: A newcomer asks about Riotboard HDMI...
                                                            mubase

                                                            I've just found out that Python 2.7 is installed already!   (i typed python and it started..)

                                                            There seems to be a heap of stuff in the distribution which I will thouroughly enjoy looking through...

                                                            Just one more tiny tiiiiny question??? 

                                                            Is it possible the peripherals (GPIO, USART, Audio etc...) can be programmed using Python?? Ir even a C/C++ extension?? Or will I have to write them ?? 

                                                             

                                                             

                                                            I haven't had any luck with the HDMI. After some digging around I found out about there existing a problem with the R-pi and HDMI to VGA converters due to there not being enough current..:   

                                                            http://creativityslashdesign.blogspot.it/2013/06/hdmi-current-booster-for-raspberrypi-by.html

                                                            is it possible it could be this??

                                                            If not I'll just have to get a monitor or save up for the LVDS monitor selsinork & tusharp suggested.

                                                             

                                                            Thanks again again. I owe you guys a few pints.

                                                            Cheers,

                                                            Steve.

                                                              • Re: A newcomer asks about Riotboard HDMI...
                                                                radiatortwo

                                                                I can´t tell you much about the GPIO ports. I´m more of a software guy and don´t use them.

                                                                I don´t think that there´s already a python class or similar for this.

                                                                 

                                                                Here´s been a discussion about them. Don´t know if it´ll help you though.

                                                                GPIO Ports on RIoT Board

                                                                 

                                                                The HDMI problem could be because of the current. That´s why I suggested a converter with external power supply.

                                                                But no guarantee that it´s then working. I don´t have VGA devices anymore and couldn´t even test it...

                                                                • Re: A newcomer asks about Riotboard HDMI...

                                                                  GPIO can, theoretically, be programmed using any language you like. /sys/class/gpio being the starting point. However some folks had problems with that on the ubuntu image early on.  There's a thread around here somewhere where I tried to show how to decipher the gpios, but unfortunately used the addresses from the i.MX6 Quad instead of the Solo. The method works, you just need to use the right datasheet.

                                                                  Unfortunately the setup in the default 3.0.35 kernel appears to be less than useful for using gpio.

                                                                  Hopefully I'll get time to do another blog post or two soon that will finish off setting up Debian, at which point things like gpios basically just work on the 3.15-rc* kernel. Even so, you will need some sort of linux machine in order to build all the pieces. Ideally I'll try to produce an image that can be easily written to an SD card so that people who don't have the confidence to do it themselves can just write the image and go..  Right now I don't have anywhere to host a large image, so how to make it available is still a problem

                                                                • Re: A newcomer asks about Riotboard HDMI...
                                                                  mubase

                                                                  I'm installing python 3.3.0 as per Otto's instructions above.

                                                                  I've got to running "make"

                                                                   

                                                                  1. sudo apt-get build-dep python3.2 
                                                                  2. sudo apt-get install build-essential libreadline-dev libncurses5-dev libssl1.0.0 tk8.5-dev zlib1g-dev liblzma-dev 
                                                                  3.  
                                                                  4. wget http://python.org/ftp/python/3.3.0/Python-3.3.0.tgz 
                                                                  5.  
                                                                  6. tar xvfz Python-3.3.0.tgz 
                                                                  7.  
                                                                  8. cd Python-3.3.0 
                                                                  9. ./configure --prefix=/opt/python3.3 
                                                                  10. make   


                                                                  its been running for about 45 minutes now... should it be taking this long????


                                                                    • Re: A newcomer asks about Riotboard HDMI...
                                                                      radiatortwo

                                                                      45 minutes is a bit long...

                                                                      What is he showing right now?

                                                                       

                                                                      By the way you can cancel it with Ctrl + C.

                                                                        • Re: A newcomer asks about Riotboard HDMI...
                                                                          mubase

                                                                          it was going through something like this:

                                                                           

                                                                          By default, distutils will build C++ extension modules with "g++".

                                                                           

                                                                           

                                                                            If this is not intended, then set CXX on the configure command line.

                                                                           

                                                                           

                                                                           

                                                                           

                                                                           

                                                                           

                                                                          checking for -Wl,--no-as-needed... yes

                                                                           

                                                                           

                                                                          checking how to run the C preprocessor... gcc -E

                                                                           

                                                                           

                                                                          checking for grep that handles long lines and -e... /bin/grep

                                                                           

                                                                           

                                                                          checking for egrep... /bin/grep -E

                                                                           

                                                                           

                                                                          checking for ANSI C header files... yes

                                                                           

                                                                           

                                                                          checking for sys/types.h... yes

                                                                           

                                                                           

                                                                          checking for sys/stat.h... yes

                                                                           

                                                                           

                                                                          checking for stdlib.h... yes

                                                                           

                                                                           

                                                                          checking for string.h... yes

                                                                           

                                                                           

                                                                          checking for memory.h... yes

                                                                           

                                                                           

                                                                          checking for strings.h... yes

                                                                           

                                                                           

                                                                          checking for inttypes.h... yes

                                                                           

                                                                           

                                                                          checking for stdint.h... yes

                                                                           

                                                                           

                                                                          checking for unistd.h... yes

                                                                           

                                                                           

                                                                          checking minix/config.h usability... no

                                                                           

                                                                           

                                                                          checking minix/config.h presence... no

                                                                           

                                                                           

                                                                          checking for minix/config.h... no

                                                                           

                                                                           

                                                                          checking whether it is safe to define __EXTENSIONS__... yes

                                                                           

                                                                           

                                                                          checking for --with-suffix...

                                                                           

                                                                           

                                                                          checking for case-insensitive build directory... no

                                                                           

                                                                           

                                                                          checking LIBRARY... libpython$(VERSION)$(ABIFLAGS).a

                                                                           

                                                                           

                                                                          checking LINKCC... $(PURIFY) $(MAINCC)

                                                                           

                                                                           

                                                                          checking for GNU ld... yes

                                                                           

                                                                           

                                                                          checking for inline... inline

                                                                           

                                                                           

                                                                          checking for --enable-shared... no

                                                                           

                                                                           

                                                                          checking for --enable-profiling... no

                                                                           

                                                                           

                                                                          checking LDLIBRARY... libpython$(VERSION)$(ABIFLAGS).a

                                                                           

                                                                           

                                                                          checking for ranlib... ranlib

                                                                           

                                                                           

                                                                          checking for ar... ar

                                                                           

                                                                           

                                                                          checking for readelf... readelf

                                                                           

                                                                           

                                                                          checking for python... found

                                                                           

                                                                           

                                                                          checking for a BSD-compatible install... /usr/bin/install -c

                                                                           

                                                                           

                                                                          checking for a thread-safe mkdir -p... /bin/mkdir -p

                                                                           

                                                                           

                                                                          checking for --with-pydebug... no

                                                                           

                                                                           

                                                                          checking whether gcc accepts and needs -fno-strict-aliasing... no

                                                                           

                                                                           

                                                                          checking if we can turn off gcc unused result warning... yes

                                                                           

                                                                           

                                                                          checking whether gcc supports ParseTuple __format__... no

                                                                           

                                                                           

                                                                          checking whether pthreads are available without options... no

                                                                           

                                                                           

                                                                          checking whether gcc accepts -Kpthread... no

                                                                           

                                                                           

                                                                          checking whether gcc accepts -Kthread... no

                                                                           

                                                                           

                                                                          checking whether gcc accepts -pthread... yes

                                                                           

                                                                           

                                                                          checking whether g++ also accepts flags for thread support... yes

                                                                           

                                                                           

                                                                          checking for ANSI C header files... (cached) yes

                                                                           

                                                                           

                                                                          checking asm/types.h usability... yes

                                                                           

                                                                           

                                                                          checking asm/types.h presence... yes

                                                                           

                                                                           

                                                                          checking for asm/types.h... yes

                                                                           

                                                                           

                                                                          checking conio.h usability... no

                                                                           

                                                                           

                                                                          checking conio.h presence... no

                                                                           

                                                                           

                                                                          checking for conio.h... no

                                                                           

                                                                           

                                                                          checking curses.h usability... yes

                                                                           

                                                                           

                                                                          checking curses.h presence... yes

                                                                           

                                                                           

                                                                          checking for curses.h... yes

                                                                           

                                                                           

                                                                           

                                                                          over and over again... I've pressed cntrl c now... ???

                                                                        • Re: A newcomer asks about Riotboard HDMI...
                                                                          tushar panda

                                                                          its been running for about 45 minutes now... should it be taking this long????

                                                                          should take that long, may be it has something to do with the eMMC latency.

                                                                          did you try using apt-get, i guess 2.7 based armel packages will be available.

                                                                      • Re: A newcomer asks about Riotboard HDMI...

                                                                        ERROR: HDMI is not ready!

                                                                        doesn't sound particularly good.

                                                                         

                                                                        asoc: can't open platform imx-hdmi-soc-audio.0

                                                                        don't think I'd worry too much about that... native HDMI can do audio as part of the stream to something like an HDTV. but a DVI monitor doesn't do audio while the video format is essentially identical. So you're likely seeing a message that indicates the driver can't detect that the connected device has audio capabilities - which is probably ok for an HDMI-VGA converter

                                                                        • Re: A newcomer asks about Riotboard HDMI...

                                                                          steven scutt wrote:

                                                                           

                                                                          Should one of the LEDs be flashing? (the one nearest the power jack)..

                                                                          possibly, it's usual to configure one of the leds as 'heartbeat' so that you can tell when the system is running,

                                                                           

                                                                          modprobe: FATAL: Could not load /lib/modules/3.0.35-02871-ga35ffe3/modules.dep: No such file or directory

                                                                          once you get logged in (as root), try running depmod -A and then rebooting. in theory that message should go away. maybe you need to do 'sudo depmod -A'

                                                                           

                                                                          oh, p.s. did I tell you I was interested in mainly Audio, synthesis and control..

                                                                          So android may not be the best idea for you right now, there's a known issue with audio playing slow on the current android image. works fine on the linux image though.

                                                                          if you're not interested in accelerated video, then 3.15-rc* might be the way to go. The downside to 3.15-rc* is that you currently get simple framebuffer video with little or no hardware assist. So while you can get a working desktop it may feel sluggish.  There may be ways to get accelerated video working, but as yet nobody has done it for RIoTboard. We can likely borrow from work done with other i.MX6 based boards like Sabre-Lite and Wandboard though.

                                                                          Ultimately we could do with a few people who are interested in different areas to spend the time on bringing all the pieces together - I'm not overly interested in video so ideally would leave that to someone else.. but may get round to it eventually if nobody else does.

                                                              • Re: A newcomer asks about Riotboard HDMI...
                                                                mubase

                                                                OK after a long and very interesting and helpful thread (thanks guys, you know who you are... ) I can confirm that one of these:

                                                                 

                                                                1080P PC HDMI to VGA + 3.5mm Audio HD Video Converter HDTV SKY DVD PS3 Apple TV | eBay

                                                                 

                                                                Will work with the RIoTboard & a VGA LCD monitor on Linux.

                                                                Probably get one cheaper than the price on the link as well.

                                                                I got mine for £7 in an auction.

                                                                • Re: A newcomer asks about Riotboard HDMI...
                                                                  cliftonm

                                                                  That is a tough one...Most android screens are connected to the actual board for input.  The HDMI is likely to be an output, not an input.

                                                                  • Re: A newcomer asks about Riotboard HDMI...
                                                                    mubase

                                                                    I can confirm HDMI audio works through the converters audio output too if the UBUNTU  audio settings are set up right.

                                                                    Heres a  picture of the monitor running the Firefox Linaro welcome screenphoto.JPG

                                                                    Now to test Android. 

                                                                    • Re: A newcomer asks about Riotboard HDMI...
                                                                      mubase

                                                                      I re-installed Android and it works. The sound works fine through the HDMI adapter BUT the resolution of screen seems really big... Is there a way to change this? I've tried the suggested methods of setting the env to 1280 x 720 but its still big. In fact, setting the screen to 1280x720 or 620 x 480 yields the same result.. I am using an old DELL LCD monitor ... is there a way of getting the android screen a better resolution .?