Blog Moved

Please visit MyJanky.com as the site is now hosted there with all the original content. More to come…

DSP Bridge

This will be an attempt to explain how to build a DSP Bridge for the BeagleBoard.

First we will need to download, extract and install some binaries from TI at from here. After installation you will find the files needed in lib/dsp.

Now we will need to build the kernel drivers:

git clone git://gitorious.org/~felipec/linux-omap/felipec.git
git checkout -b felipec v2.6.32-felipec1
cd linux-omap
make omap3_beagle_defconfig
make

The uImage will be built with the following commands:

make INSTALL_MOD_PATH=/media/rootfs modules_install

Next copy the binaries from the first step from lib/dsp to the root filesystem /lib/dsp on the SD.

modprobe bridgedriver base_img=/lib/dsp/baseimage.dof

If you get an error here then you may need to load the baseimage.dof dynamically. Now lets look at how to make the DSP do something.

gst-OpenMax

git clone git://github.com/felipec/libdspbridge.git
cd libdspbridge
make DESTDIR=rootfs install
git clone git://github.com/felipec/libomxil-ti.git
cd libomxil-ti
make BRIDGE_CFLAGS=-I../libdspbridge/inc BRIDGE_LIBS=-L../libdspbridge/lib DESTDIR=rootfs install

Inside ScratchBox…

git clone git://github.com/felipec/gst-openmax.git
cd gst-openmax
git checkout -b omap origin/omap
./autogen.sh --noconfigure
./configure --prefix=/usr
make DESTDIR=rootfs install

Kernel Boot Argument for the video settings will be changed to:

video=omapfb:vram:2M,vram:4M

Copy an .AVI file to the sd card (or download one over your network) then at the console enter these commands being sure to change the file name to your file:


gst-launch-0.10 filesrc location="your_file_here.avi" ! avidemux ! omx_mpeg4dec ! omapfbsink

BeagleBoard Android

This is not going to be a step by step guide or a resource so use this at your own risk…

Hardware needed: BeagleBoard, SD card (4gb, see partition info below), USB mini A cable, USB 2.o hub self-powered, USB keyboard, USB mouse, Serial cable/null modem (IDC10>DB9) see hacked cable description below, HDMI cable, Host PC, HDMI monitor.

See the BeagleBoard boot up tutorials at BeagleBoard.org

I hacked a serial cable together by just connecting the tx to the rx and vise versa on the host pc mobo and the BB. Make sure to connect the ground also.

SD card format:

First download an android distro pre-compiled for the Beagleboard target. An easy one http://labs.embinux.org/index.php/Main_Page

(Rowboat is a little more refined)

To Format SD do this

Copy MLO ,Uboot.bin, uImage to the FAT partition, then copy the root file system to the Ext3 partition.

Plug the SD into the Beagle and the rest of the supported cables such as Hub, HDMI etc… On the host computer you will need to start a terminal and run minicom, putty, Tera Term or Hyperterminal.  At the terminal prompt after the Beagle powers on and you get to a Uboot prompt. Type the following commands:

setenv bootargs console=ttyS2,115200n8 noinitrd root=/dev/mmcblk0p2 video=omapfb.mode=dvi:1280x720MR-24@50 init=/init rootfstype=ext3 rw rootdelay=1 nohz=off androidboot.console=ttyS2 ( I will explain these environment variables in a later post and also how to save them to make the Beagle boot like you want it to.)

mmc init

fatload mmc 0 0×80300000 uImage

bootm 0×80300000

After this you should see the Uboot terminal with out put. Please be patient as the first boot tends to be slightly longer and could take several minutes. After boot you can drop into the Android root and play with the adb#. You will need to issue a few commands to load market place apps. Next time let us examine the Uboot environment and I will provide pictures.

Android on 720p

Just a quick post to show that I have made an Android compile based on EMBinux work. Thanks to MRU and others on beagle IRC for pointing me in the right direction for keyboard/USB hub support.  Also, be sure to chmod the system directory or there will be errors. Logcat has much data for debugging. Changing to ttyS2 from the uboot terminal killed my minicom session. I hear putty is more stable or maybe I have a hardware/software problem on my development PC.

720p android

Does this look cool or what?

Sorry for the delay on the BeagleTraveler

To everyone that has been following the development of the BeagleTraveler, I apologize for the delay of additional information. I have received a BeagleBoard from the kind people at Texas Instruments ( thanks Cathy and Jason).

First impressions:    The board is a true development platform with many operating systems to support the hardware. Un-boxing the Beagle left me wondering about the design trade offs the engineers had to make. Many peripherals to connect to and make the Beagle usable… I wish that there were more USB ports as well as more support for wireless HIDs (human interface devices).

A powered USB hub is a good investment and requirement for multiple USB peripherals , although I have had problems getting one to work with the Beagle for HID equipment. Any ideas from the community on this would be a great help.

Booting the Angstrom distro was pretty straight forward. If you are new to the BeagleBoard and have downloaded the Angstrom image, be sure to rename the files to MLO, Uboot.bin etc.., removing the rev-c3 gibberish on each of the filenames. Of course many developers in the embedded community realize that bootloaders need specific requirements to load kernels, etc. I really enjoyed playing with the board and the distro. Getting the console to output on a Windows PC through hyperterm is a little cumbersome. What I figured out was to connect the power then the USB cable within a couple of seconds (read- quickly) and then quickly start the saved BeagleBoard config file in Hyperterm. The console sometimes would not connect so I would simply “hang up” the terminal, press the reset button wait a second or two and “call” the Beagle from Hyperterm again.

Until I get my Ubuntu system set up for dev, I will be stuck with Windows for development. This limits what I can do with the Beagle at this time.

If anyone can send some *.img.bz files of Android or other BB builds, I can use a utility such as Self Image to flash my SD with on Windows. Another device I have uses a flash device for Ubuntu and I can flash the entire drive very quickly instead of doing a typical install of 9.0.4… Formating the SD under windows is the biggest problem. Tools such as Paragon Partition Manager and the HP USB formatting tool work well but one is not free and the other is only for FAT32.

Open Source Hardware for the Beagle Traveler

The hardware side of the OBD 2 interface to the BB (BeagleBoard) will be open source. This is a call out to the community on how this should be handled. Attribution-ShareAlike or some other form of open source foundation needs to be finalized before the soldering iron heats up on this project. This way everyone will be able to build one relatively inexpensively and it will be in-line with the BB community. Other options will be available but off the shelf products will cost more. The Beagle Traveler will be an off the shelf product that any competent automotive shop should be able to install. Fleet service vehicles such as public transportation and public works vehicles can be monitored and serviced as data is passed back to the maintenance department.

The other side of the project will focus on in transit entertainment and communication. Once the OBD 2 is incorporated then this secondary project will fall into place. Ideas for this phase are still on the chopping block, so let us hear from the community on what this needs to be.

We are here and waiting for feedback. Comment below on your ideas.

Jason Kridner has started shipping Beagle Boards

Mr. Kridner at TI has started shipping Beagle Boards to approved project participants from the elinux.com beagle board contest. My project for OBD II project, Beagle Traveler, was approved by the contest judges. The Email from Mr. Kridner is as follows:

Hopefully you have all received boards or board shipping notices for
your projects by now.  If not, please contact me and copy.

I’d like for you all to get a bit more visibility on your projects.  I
believe that giving a 5 minute introduction to your project at the TI
eTech Days Community Lightning Talks [1] could give you some really
great exposure.  I hope that you will visit the wiki page [1],
register a time slot, send in a slide or two, and show up on the phone
to present.

Thanks again for being part of BeagleBoard.org!

[1] http://wiki.omap.com/index.php/ETechDays_Community_Lightning_Talks

P.S. I’m very open to giving @beagleboard.org e-mail addresses to
active participants, such as project leaders.

The Beagle Board has not arrived as of this posting and the project will be on hold until I receive one. If anyone has an extra to donate PLEASE contact me. I have access to an automative shop in Longview Texas with many qualified technicians interested in this project.

Follow

Get every new post delivered to your Inbox.