Ubuntu on OMAP FAQ

From OMAPpedia

Jump to: navigation, search

Ubuntu on OMAP FAQs


[edit] What are the supported highlevel features for Ubuntu on OMAP?

The features enabled on Ubuntu on PandaBoard.

The below are current as of:

Ubuntu on OMAP: 10.10 (Maverick Meerkat)
TI Addon packages (ubuntu-omap4-extras) : 15-Oct-2010

[edit] Feature Highlights

[edit] How do I file a bug against a Ubuntu package?

All bugs for Ubuntu on OMAP are logged and tracked via launchpad.net. Below are the steps you can follow to report bugs:

Other tips:


where PACKAGENAME is the name of the source package about which you want to file the bug report.

[edit] I cannot login and/or want to skip the login screen. What should I do?

Create a file /etc/gdm/custom.conf as follow:

$ sudo chown -R gdm:gdm /var/lib/gdm/
$ sudo vi /etc/gdm/custom.conf

[edit] USB OTG port on PandaBoard does not as host under Ubuntu

By default the USB OTG capable port is configured as 'device'. Using it as host requires kernel re-configuration and re-build.

[edit] I have installed TI OMAP publc PPA packages (ubuntu-omap4-extras)on my platform - I did a update and they dont work?

ubuntu-omap4-extras package updates usually follow after Ubuntu community updates are published. As there is usually work needed to migrate to new baseline. You should try to update the ubuntu-omap4-extras after a few days.

[edit] My network does not work, what should I do?

If you are behind a proxy server you will need to configure the proxy first with the Ubuntu Network Proxy configuration tool.

[edit] How do I switch between UNE & standard desktop ?

At the login screen, you can choose (in the bottom menu bar) between the Ubuntu Netbook Edition(UNE) UI, and the Ubuntu Standard Desktop UI. The UNE is supposed to be optimized for netbook screen size, the standard desktop is exactly what you would get on a laptop.

[edit] Where can I get some HD clips to play ?

You can go to http://trailers.apple.com/ right from the Firefox webbrowser on PandaBoard over WLAN. And start to play some HD clips there. It should use the Gstreamer accelerated firefox plugin and start decoding.

[edit] I just want to install only a few addons and not the whole ubuntu-omap4-extras. Can I do it?

Yes. Search for the package you want to install 'ubuntu-omap4-extras-multimedia', 'ubuntu-omap4-extras-graphics', 'ubuntu-omap4-extras-connectivity'and get/install them manual from command prompt.

[edit] I have HD videos on my SD card and they are not being decoded correctly?

Try moving the videos onto a USB flash drive and play them.

[edit] I want to install Ubuntu on external USB hard disk instead of sluggish SD card

When running Ubuntu on PandaBoard from the SD Card, the system is quite slow. This is somewhat a known issue, under investigation. If you want to get the maximum out of your PandaBoard, it is recommended to install the Ubuntu file system on an external USB drive.

The instructions below will help you for this setup. Note that you will still need the SD card since the SD card is the only memory device you can boot from. So your bootloaders and kernel uImage will still be on the SD card, however the complete OS will then be on the USB drive.

sudo umount /dev/sdXY
sudo mkfs.ext3 -L ubuntu1 /dev/sdXY
sudo fsck -a /dev/sdXY
sudo umount /dev/sdX*
#unplug the usb hd and plug back in

Ubuntu will mount its root file system from the initramfs, after the kernel has booted. The initramfs will parse the bootargs to find where the root file system is. By default the bootargs have something like this:

root=UUID=<your SD Card partition UUID>

If you want to use the root FS on the USB drive, you just need to change the 'root' arguments in the bootargs and the initramfs will mount the correct partition. The bootargs are read from the file boot.scr which is stored on the SD card FAT32 partition, the easiest way to update this file is to use Ubuntu built-in tool: flash-kernel:


Where ubuntu1 is the label of the partition you want to use on the USB drive. Should you not have a /boot/boot.script you may find a boot.txt in the root of your FAT32 boot partition which can be copied to /boot/boot.script of your Linux partition and edited as required.

sudo flash-kernel

it will generate boot.scr using mkimage tool by reading your new version of /boot/boot.script. flash-kernel will directly write the file boot.scr in the FAT32 partition.

Now we just need to transfer the SD card content onto the USB drive:

cd /mnt/<your USB drive>
sudo cp -a /mnt/<your SD>/* .
sudo sync

Now if you boot your PandaBoard, it will take the bootloaders/kernel from the SD card, uboot will read the boot.scr on the SD card, and the initramfs will search for the partition with label 'ubuntu1' and mount it.

You are now running from the USB host.

[edit] I want to see the kernel debug traces and connect through a serial connection

By default Ubuntu will be in 'quiet' mode, e.g. the kernel debug traces are not sent on the serial console. This is done on purpose in the default Ubuntu release from Canonical. Similarly since there is no output on the serial console, there is no login prompt on the serial console.

If you want to get those, follow these instructions:

sudo vi /boot/boot.script
sudo flash-kernel

[edit] I want to a console on serial connection, how do I do it?

By default Ubuntu Netbook images do not provide a console on serial connection. Note: The headless images do provide this.

If you want to get serial console but dont really care about debug traces,here are some simple changes you can make to enable it:

# ttyO2 - getty
# This service maintains a getty on ttyO2 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

exec /sbin/getty -L 115200 ttyO2

Use the SD card as normal and boot the system.

[edit] installation went wrong, I need to restart set-up and account creation

mkdir /var/lib/oem-config
touch /var/lib/oem-config/run

[edit] how do I know if an ARM binary is built for soft-float or hard-float

For more information about hard-float, please check this http://wiki.debian.org/ArmHardFloatPort.

Hard float and Soft float ABIs are not compatible each other. So a root FS must be entirely built against either one or the other. When you have a ARM binary , you can check if it is built for hard float or soft float like this:

readelf -A <program> 

will show

 Tag_ABI_VFP_args: VFP registers

for hard-float binaries only.

ldd <program>

and it will show you the loader path.

Personal tools