From: soumyasr <Soumya.R@kpitcummins.com>
To: linux-mips@linux-mips.org
Subject: How to start with OpenEmbedded for MiPS32 Au1300
Date: Tue, 18 May 2010 02:09:21 -0700 (PDT) [thread overview]
Message-ID: <28593348.post@talk.nabble.com> (raw)
Hi All,
I am new to open embedded build..
I followed the steps which is given in
http://wiki.openembedded.net/index.php/Getting_started
$ mkdir -p /home/soumya/project/oe/build/conf
$ cd /home/soumya/project/oe/
Getting the working bitbake
wget http://download.berlios.de/bitbake/bitbake-1.8.18.tar.gz
To obtain openembedded
install git
$ git clone http://repo.or.cz/r/openembedded.git
updating OpenEmbedded using git pull
Create local configuration file
$ cd /home/soumya/project/oe/
$ cp openembedded/conf/local.conf.sample build/conf/local.conf
$ vi build/conf/local.conf
i edited in local.conf
BBFILES = "/home/soumya/project/oe/openembedded/recipes/*/*.bb"
DISTRO = "avn01"
MACHINE = "au1300"
I created new distribution and machine as shown below
/*****************au1300.conf*************************/
# Alchemy au1300
TARGET_ARCH = "mipsel"
PREFERRED_PROVIDERS += "
virtual/${TARGET_PREFIX}depmod:module-init-tools-cross"
PREFERRED_PROVIDER_virtual/kernel = "linux"
KERNEL_IMAGETYPE = "vmlinux.srec"
SERIAL_CONSOLE="/dev/ttyS0 115200 vt100"
USE_VT="0"
TARGET_CC_ARCH="-march=mips32"
FLASH_OFFSET="0xBC000000"
# The NAND has an eraseblock of 0x4000 (16kB) and NOR with 0x20000 (128kB)
ERASEBLOCK_SIZE = "0x20000"
EXTRA_IMAGECMD_jffs2 = "--little-endian --no-cleanmarkers
--eraseblock=${ERASEBLOCK_SIZE}"
MACHINE_FEATURES = "kernel26 pcmcia usbhost"
/*********************************End of
au1300.conf***********************************/
/************************************avn01*****************************************************/
DISTRO
#@TYPE: Distribution
#@NAME: MIPSEL Linux
#@DESCRIPTION: Distribution configuration for the MIPS Linux
DISTRO_NAME = "AVN01"
DISTRO_VERSION = "0.1-alpha"
TARGET_OS = "linux"
PREFERRED_PROVIDERS +=
"virtual/${TARGET_PREFIX}gcc-initial:gcc-cross-initial"
PREFERRED_PROVIDERS +=
"virtual/${TARGET_PREFIX}gcc-intermediate:gcc-cross-intermediate"
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}gcc:gcc-cross"
PREFERRED_PROVIDERS += "virtual/${TARGET_PREFIX}g++:gcc-cross"
PREFERRED_PROVIDER_dbus-glib = "dbus-glib"
PREFERRED_PROVIDER_virtual/libsdl ?= "libsdl-x11"
PREFERRED_PROVIDER_virtual/libxine ?= "libxine-x11"
PREFERRED_PROVIDER_esound ?= "pulseaudio"
# glibc:
PREFERRED_PROVIDER_virtual/libiconv ?= "glibc"
PREFERRED_PROVIDER_virtual/libintl ?= "glibc"
PREFERRED_PROVIDER_virtual/libc ?= "glibc"
PREFERRED_PROVIDER_virtual/${TARGET_PREFIX}libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/arm-oplinux-linux-gnueabi-libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/armeb-oplinux-linux-gnueabi-libc-for-gcc =
"glibc"
PREFERRED_PROVIDER_virtual/arm-linux-libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/armeb-linux-libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/powerpc-oplinux-linux-libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/mipsel-oplinux-linux-libc-for-gcc = "glibc"
PREFERRED_PROVIDER_virtual/sparc-oplinux-linux-libc-for-gcc = "glibc"
# Virtuals:
PREFERRED_PROVIDER_virtual/db ?= "db"
PREFERRED_PROVIDER_virtual/db-native ?= "db-native"
PREFERRED_PROVIDER_virtual/xserver ?= "xserver-kdrive"
# Others:
PREFERRED_PROVIDER_virtual/libx11 ?= "diet-x11"
PREFERRED_PROVIDER_gconf ?= "gconf-dbus"
PREFERRED_PROVIDER_gnome-vfs ?= "gnome-vfs"
PREFERRED_PROVIDER_gnome-vfs-plugin-file ?= "gnome-vfs"
PREFERRED_PROVIDER_tslib ?= "tslib"
PREFERRED_PROVIDER_tslib-conf ?= "tslib"
PREFERRED_PROVIDER_libgpewidget ?= "libgpewidget"
PREFERRED_PROVIDER_ntp = "ntp"
PREFERRED_PROVIDER_hotplug = "udev"
PREFERRED_PROVIDER_libxss = "libxss"
PREFERRED_VERSION_gcc ?= "4.1.1"
PREFERRED_VERSION_gcc-cross ?= "4.1.1"
PREFERRED_VERSION_gcc-cross-sdk ?= "4.1.1"
PREFERRED_VERSION_gcc-cross-initial ?= "4.1.1"
PREFERRED_VERSION_gcc-cross-intermediate ?= "4.1.1"
PREFERRED_VERSION_binutils ?= "2.17.50.0.5"
PREFERRED_VERSION_binutils-cross ?= "2.17.50.0.5"
PREFERRED_VERSION_binutils-cross-sdk ?= "2.17.50.0.5"
PREFERRED_VERSION_linux-libc-headers_i486 ?= "2.6.18"
PREFERRED_VERSION_linux-libc-headers_i586 ?= "2.6.18"
PREFERRED_VERSION_linux-libc-headers_i686 ?= "2.6.18"
PREFERRED_VERSION_linux-libc-headers_powerpc ?= "2.6.18"
PREFERRED_VERSION_linux-libc-headers ?= "2.6.18"
PREFERRED_VERSION_glibc-initial ?= "2.5"
PREFERRED_VERSION_glibc ?= "2.5"
PCMCIA_MANAGER = "pcmciautils"
PREFERRED_VERSION_dbus ?= "1.0.2"
PREFERRED_VERSION_dbus-glib ?= "0.71"
#
# Kernel
#
KERNEL = "kernel26"
MACHINE_KERNEL_VERSION = "2.6"
#Other packages we need
#try to keep it minimal :)
DISTRO_EXTRA_RDEPENDS += "\
nano pciutils"
FEED_URIS += " \
no-arch##${OPLINUX_URI}/unstable/feed/all \
base##${OPLINUX_URI}/unstable/feed/${FEED_ARCH}/base \
perl##${OPLINUX_URI}/unstable/feed/${FEED_ARCH}/perl \
python##${OPLINUX_URI}/unstable/feed/${FEED_ARCH}/python \
debug##${OPLINUX_URI}/unstable/feed/${FEED_ARCH}/debug \
${MACHINE}##${OPLINUX_URI}/unstable/feed/${FEED_ARCH}/machine/${MACHINE}"
/**************************************END OF
avn01(DISTRO)*************************************************************/
Then i set the environment variable
$ export BBPATH=/home/soumya/project/oe/build:/stuff/openembedded
$ export PATH=/home/soumya/project/oe/bitbake/bin:$PATH
To start building i just typed bitbake in the command prompt
cd /build
$ bitbake
ERROR: Openembedded's config sanity checker detected a potential
misconfiguration.
Either fix the cause of this error or at your own risk disable the checker
(see sanity.conf).
Following is the list of potential problems / advisories:
Please install following missing utilities: help2man,texi2html
Error, TMPDIR has changed ABI (4 to 2) and you need to either rebuild,
revert or adjust it at your own risk.
Error, DISTRO_PR has changed (.5 to ) which means all packages need to
rebuild. Please remove your TMPDIR so this can happen. For autobuilder
setups you can avoid this by using a TMPDIR that include DISTRO_PR in the
path.
Anybody can help me out to resolve this error..
If I am doing anything wrong in by build please suggest me.
Thanks in advance :-)
Regards,
Soumya
--
View this message in context: http://old.nabble.com/How-to-start-with-OpenEmbedded-for-MiPS32-Au1300-tp28593348p28593348.html
Sent from the linux-mips main mailing list archive at Nabble.com.
reply other threads:[~2010-05-18 9:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=28593348.post@talk.nabble.com \
--to=soumya.r@kpitcummins.com \
--cc=linux-mips@linux-mips.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.