Apr 30, 2010

Poky troubleshooting

If you get an error about mmap_min_addr, do this:

sudo sysctl -w vm.mmap_min_addr=0

If you get bash-dash shell related error, do this:

sudo dpkg-reconfigure dash

For Debug build, do this:

DEBUG_BUILD = "1"

Problem with external toolchain path:

vim /poky/meta-texasinstruments/conf/distro/include/poky-external-csl2008q3.inc
Set the following variable to the right path
EXTERNAL_TOOLCHAIN = "/media/hdd/arm-2008q3"

If you get tmpdir error, rename the tmp in build folder to something else and try:

mov tmp/ tmp_old
bitbake coreutils





Mar 22, 2010

My .vimrc file

se nu
se ic
syn off
se tabstop=4
se expandtab
se shiftwidth=4
se autoindent
se incsearch
filetype plugin on

Mar 19, 2010

Installing the newly downloaded ".bin" file

Many a times, you download the installable ".bin" file and wonder how to install it, for the GUI doesn't open the ".bin" files.

You try ./xxxxxx.bin from command prompt but still it fails.

The problem is with permission of the downloaded file, do this to fix that and install:

sudo chmod 777 xxxxxx.bin
sudo ./xxxxxx.bin

Mar 15, 2010

sudo apt-get update fails

Fix for:

Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)

ps -e | grep apt : shows if any apt processes are running

sudo kill : kill the apt process if running.

Example:
-ubuntu:~$ ps -e | grep apt
5502 ? 00:00:00 apt
5548 ? 00:00:14 apt-get
ubuntu:~$ sudo kill 5502
ubuntu:~$ sudo kill 5548
ubuntu:~$ sudo apt-get update

Mar 2, 2010

No manual entry for ...

After a long gap, you open you vim for coding and forget what argument in the source and what is the destination for strcpy or what params to pass for doing some geeky ioctl calls. So ask your good old man, by "man strcpy" or "man ioctl" and your man says "No manual entry for whatver you ask".

Type this one your Ubuntu terminal:
sudo apt-get install manpages-posix manpages-posix-dev gcc-4.4-doc c-cpp-reference