0%

Setup TFTPboot and NFS for u-boot-2010.06

boot.cmd
1
2
3
4
5
6
7
8
9
setenv bootdelay 4
setenv baudrate 115200
setenv autoload no
setenv bootfile uImage
setenv serverip 192.168.0.1
setenv ipaddr 192.168.0.2
setenv bootargs console=ttyO0,115200n8 rootdelay=3 rootwait rw mem=364M@0x80000000 mem=324M@0x9F900000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=${serverip}:/development/ti-ezsdk_dm814x-evm_5_04_00_11/targetfs ip=${ipaddr}
setenv bootcmd 'tftpboot;bootm'
boot

After that, run mkimage to build boot.scr from boot.cmd on your host machine:

1
mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n 'Execute Boot Script' -d boot.cmd boot.scr

mkimage is an executable that is built with u-boot (./your_u-boot_dir/tools/mkimage)

Disable Guest Session on Ubuntu 12.04

1
gksu gedit /etc/lightdm/lightdm.conf

Add allow-guest=false to the end so your final result should look like:

/etc/lightdm/lightdm.conf
1
2
3
4
[SeatDefaults]
greeter-session=unity-greeter
user-session=ubuntu
allow-guest=false

Restart the display manager:

1
sudo restart lightdm

Reference:
http://askubuntu.com/questions/62564/how-do-i-disable-the-guest-session

Setup Pulseaudio on BeagleBoard

How to install pauseaudio to beagleboard?

What is Pauseaudio ?

http://en.wikipedia.org/wiki/PulseAudio
http://www.pulseaudio.org
https://wiki.archlinux.org/index.php/PulseAudio

What is ALSA (Advanced Linux Sound Architecture) ?

http://en.wikipedia.org/wiki/Advanced_Linux_Sound_Architecture

Repositories:

Beagleboard

Assuming that you use Angstrom distribution

  1. Add an Angstrom repository to /etc/opkg/opkg.conf
    src/gz base http://feeds.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/
    option cache /home/root/opkg

  2. Issue following commands:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    sync
    opkg update
    opkg remove --force-depends libpulsecommon

    sync
    opkg install pulseaudio
    opkg install pulseaudio-server
    opkg install libasound-module-pcm-pulse
    opkg install libasound-module-ctl-pulse

    ln -s /usr/lib/libpulsecommon-0.9.22.so /usr/lib/libpulsecommon-0.9.15.so
    ln -s /usr/lib/libpulsecommon-0.9.22.so /usr/lib/libpulsecommon-1.1.so
    sync
  3. Setup configuration files:
    /etc/asound.conf
    http://lists.freedesktop.org/archives/pulseaudio-discuss/2011-July/010671.html
    /etc/pulse/dae
    /etc/group

  4. Run

    1
    sudo pulseaudio --daemon --system
  5. Test:

    1
    2
    aplay /usr/share/sounds/alsa/Noise.wav
    aplay -Dpulse /usr/share/sounds/alsa/Rear_Center.wav

Troubleshooting

http://superuser.com/questions/53957/what-do-alsa-devices-like-hw0-0-mean-how-do-i-figure-out-which-to-use

References