Code Sourcery Ver for compilation

Hi

I want to modify u-boot and kernel and compile it to generate the
images for my Angstrom linux on beagle board Xm Ver B. I am confused
to what toolchain i have to download from the code sourcery website.
Please can anyone tell me specifically tell me the toolchain to use.
my host PC is ubuntu linux on which i would be compiling the code. Any
link would be appreciated.

Thanks in advance

Anuj.

hi

I am using Code Sourcery_G++_Lite_for_ARM_GNU_Linux from
http://www.codesourcery.com/sgpp/lite/arm/portal/release1802

Is this the correct toolchain. It seems to be correct. I set the path
for cross compile and write command as 'make CROSS_COMPILE=arm-
angstrom-linux-gnueabi- omap3_beagle_defconfig'

it is giving me error as

make[1]: *** No rule to make target `omap3_beagle_deconfig'. Stop.
make: *** [omap3_beagle_deconfig] Error 2

what is the problem.

Thanks

Anuj.

'make omap3_beagle_config' is the right command.

why don't you just follow the instructions on the angstrom website?

I think you should also include ARCH=arm to your make command.
make ARCH=arm omap3_beagle_defconfig

Also, it would be better as Koen suggested to go through the steps
provided in Angstrom website.

Hi

I followed the steps from the angstrom website but i get lot of parse
errors. The output is as below

ERROR: EOL while scanning string literal (MACHINE_ARCH, line 1) while
parsing /angstrom-setup-scripts/openembedded/recipes/opie-qcop/opie-
qcop_1.2.5.bb
NOTE: Handling BitBake files: | (0107/7083) [ 1 %]ERROR: EOL while
scanning string literal (MACHINE_ARCH, line 1) while parsing /angstrom-
setup-scripts/openembedded/recipes/opie-mail/opie-mail_cvs.bb
NOTE: <type 'exceptions.SyntaxError'>:EOL while scanning string
literal (MACHINE_ARCH, line 1) while evaluating:
${@oe.utils.ifelse(bool(d.getVar('MACHINE', True)), '${MACHINE}',
'BASE_PACKAGE_ARCH')}
ERROR: EOL while scanning string literal (MACHINE_ARCH, line 1) while
parsing /angstrom-setup-scripts/openembedded/recipes/opie-mail/opie-
mail_cvs.bb
NOTE: Handling BitBake files: / (0107/7083) [ 1 %]ERROR: EOL while
scanning string literal (MACHINE_ARCH, line 1) while parsing /angstrom-
setup-scripts/openembedded/recipes/conntrack-tools/conntrack-
tools_0.9.14.bb
NOTE: <type 'exceptions.SyntaxError'>:EOL while scanning string
literal (MACHINE_ARCH, line 1) while evaluating:
${@oe.utils.ifelse(bool(d.getVar('MACHINE', True)), '${MACHINE}',
'BASE_PACKAGE_ARCH')}
ERROR: EOL while scanning string literal (MACHINE_ARCH, line 1) while
parsing /angstrom-setup-scripts/openembedded/recipes/conntrack-tools/
conntrack-tools_0.9.14.bb
NOTE: Handling BitBake files: - (0107/7083) [ 1 %]NOTE: Cache is
clean, not saving.
Command execution failed: Traceback (most recent call last):
  File "/angstrom-setup-scripts/bitbake/lib/bb/command.py", line 85,
in runAsyncCommand
    self.cooker.updateCache()
  File "/angstrom-setup-scripts/bitbake/lib/bb/cooker.py", line 829,
in updateCache
    if not self.parser.parse_next():
  File "/angstrom-setup-scripts/bitbake/lib/bb/cooker.py", line 1022,
in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound

i think my configuration is wrong. my local.conf file contains only
the 3 lines.

MACHINE = "beagleboard"
TARGET_ARCH = "arm"
DISTRO = "angstrom-2011.3"

what is the problem?

Thanks

Anuj.

Hi

Can anybody please tel me the solution to the problem.

Thanks

Anuj.

Your local.conf doesn't seem to be the one generate by Angstrom setup
scripts. Ideally you shouldn't have to be worried about local.conf as
the scripts take care of everything.

Why don't you start from scratch?

Following the instructions here, carefully and slowly:
http://www.angstrom-distribution.org/building-angstrom

Regards,
Joel

Hi

Even if i do not change anything in local.conf and follow the
procedure on the site then also i am getting errors. The errors are
different this time but related to parse errors only.

classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /home/accel/
angstrom-setup-scripts/openembedded/recipes/images/minimal-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/minimal-image.bb
NOTE: Handling BitBake files: / (6844/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/micro-
image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/micro-image.bb
NOTE: Handling BitBake files: / (6873/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/nas-
server-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/nas-server-image.bb
NOTE: Handling BitBake files: - (7073/7193) [98 %]Command execution
failed: Traceback (most recent call last):
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
command.py", line 85, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 829, in updateCache
    if not self.parser.parse_next():
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 1022, in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound

Thanks

Anuj.

Hi

Even if i do not change anything in local.conf and follow the
procedure on the site then also i am getting errors. The errors are
different this time but related to parse errors only.

classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /home/accel/
angstrom-setup-scripts/openembedded/recipes/images/minimal-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/minimal-image.bb
NOTE: Handling BitBake files: / (6844/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/micro-
image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/micro-image.bb
NOTE: Handling BitBake files: / (6873/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/nas-
server-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/nas-server-image.bb
NOTE: Handling BitBake files: - (7073/7193) [98 %]Command execution
failed: Traceback (most recent call last):
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
command.py", line 85, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 829, in updateCache
    if not self.parser.parse_next():
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 1022, in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound

Thanks

Anuj.

Hi

Even if i do not change anything in local.conf and follow the
procedure on the site then also i am getting errors. The errors are
different this time but related to parse errors only.

classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /home/accel/
angstrom-setup-scripts/openembedded/recipes/images/minimal-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/minimal-image.bb
NOTE: Handling BitBake files: / (6844/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/micro-
image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/micro-image.bb
NOTE: Handling BitBake files: / (6873/7193) [95 %]ERROR: Could not
inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass while parsing /
home/accel/angstrom-setup-scripts/openembedded/recipes/images/nas-
server-image.bb
ERROR: Could not inherit file classes/rootfs_${IMAGE_PKGTYPE}.bbclass
while parsing /home/accel/angstrom-setup-scripts/openembedded/recipes/
images/nas-server-image.bb
NOTE: Handling BitBake files: - (7073/7193) [98 %]Command execution
failed: Traceback (most recent call last):
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
command.py", line 85, in runAsyncCommand
    self.cooker.updateCache()
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 829, in updateCache
    if not self.parser.parse_next():
  File "/home/accel/angstrom-setup-scripts/sources/bitbake/lib/bb/
cooker.py", line 1022, in parse_next
    raise ParsingErrorsFound
ParsingErrorsFound

Thanks

Anuj.

Hi

I started from scratch got bitbake and openembedded from git and
followed the instructions from http://www.angstrom-distribution.org/building-angstrom
but i got errors

Parsing recipes: 100% |#########################################|
Time: 00:00:14
Parsing of 7340 .bb files complete (6583 cached, 757 parsed). 7985
targets, 316 skipped, 0 masked, 0 errors.
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:

  Do not use Bitbake as root.
ERROR: Command execution failed: Exited with 1

can anybody tell me what is the problem

Hi

I started from scratch got bitbake and openembedded from git and
followed the instructions from http://www.angstrom-distribution.org/building-angstrom
but i got errors

Parsing recipes: 100% |#########################################|
Time: 00:00:14
Parsing of 7340 .bb files complete (6583 cached, 757 parsed). 7985
targets, 316 skipped, 0 masked, 0 errors.
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:

  Do not use Bitbake as root.
ERROR: Command execution failed: Exited with 1

can anybody tell me what is the problem

How much clearer can the error message be?
   DO NOT USE BITBAKE AS ROOT

You're logged in as 'root' - this is considered very unsafe and BitBake
is not willing to help you kill your system.
   DO NOT USE BITBAKE AS ROOT

Parsing recipes: 100% |#########################################|
Time: 00:00:14
Parsing of 7340 .bb files complete (6583 cached, 757 parsed). 7985
targets, 316 skipped, 0 masked, 0 errors.
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:

   Do not use Bitbake as root\.

ERROR: Command execution failed: Exited with 1

can anybody tell me what is the problem

The problem is clearly stated 4 lines above: "Do not use Bitbake as root." .
Sometimes it worth to read output messages before asking in mail list :wink:

Hi

I actually read the problem but did not understand the problem. please
elaborate.

Thanks

Anuj.

Hi

I understood the problem now am running as normal user and i run the
commands as sudo and then the command

sudo MACHINE=beagleboard ./oebb.sh config beagleboard
sudo MACHINE=beagleboard ./oebb.sh update
sudo MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel

i get error
/var/lib/python-support/python2.6/bb/COW.py:29: DeprecationWarning:
the sets module is deprecated
  import types, sets
ERROR: Please set the 'PERSISTENT_DIR' or 'CACHE' variable.

I am facing a lot of problems here. can anybody give certain procedure
step by step
i am doing as on site

http://www.angstrom-distribution.org/building-angstrom

but still am getting lot of errors.

Thanks

Anuj.

Hi

I understood the problem now am running as normal user and i run the
commands as sudo and then the command

sudo MACHINE=beagleboard ./oebb.sh config beagleboard
sudo MACHINE=beagleboard ./oebb.sh update
sudo MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel

i get error
/var/lib/python-support/python2.6/bb/COW.py:29: DeprecationWarning:
the sets module is deprecated
  import types, sets
ERROR: Please set the 'PERSISTENT_DIR' or 'CACHE' variable.

I am facing a lot of problems here. can anybody give certain procedure
step by step
i am doing as on site

http://www.angstrom-distribution.org/building-angstrom

but still am getting lot of errors.

Thanks

Anuj.

Hi

I understood the problem now am running as normal user and i run the
commands as sudo and then the command

sudo MACHINE=beagleboard ./oebb.sh config beagleboard
sudo MACHINE=beagleboard ./oebb.sh update
sudo MACHINE=beagleboard ./oebb.sh bitbake virtual/kernel

i get error
/var/lib/python-support/python2.6/bb/COW.py:29: DeprecationWarning:
the sets module is deprecated
   import types, sets
ERROR: Please set the 'PERSISTENT_DIR' or 'CACHE' variable.

I am facing a lot of problems here. can anybody give certain procedure
step by step
i am doing as on site

http://www.angstrom-distribution.org/building-angstrom

but still am getting lot of errors.

Why are you using sudo to run the commands? There is no need and indeed
running via sudo is just as dangerous as being logged in as root.

Buddy, do not use as root means you should be executing it as a normal
user not as a root user or you should not be using "sudo" to execute
your commands.