Albrecht Dreß | 19 Nov 20:55 2015

[maybe ot] PPC e500v2 floating-point in eldk 5.4

Hi all,

I use ELDK 5.4 to develop software for a PowerPC e500v2 (QorIQ P2020) system, and have a (hopefully not too
off-topic) question regarding the floating-point implementation in glibc.

Although I did not enable any of the C99 floating-point exceptions, one of my applications throws SIGFPE,
according to the backtrace in exp() (__exp_finite).  Unfortunately, I do not have a core image, so I cannot
check which input value triggered the signal (which is wrong anyway, IMHO, as no exception is enabled).

When I tried to reproduce the effect with a stripped-down version of the code (which didn't work, i.e. I
could /not/ provoke the signal), I noticed that exp(NAN) returns 1.79769e+308.  If I understand IEEE-754
correctly, this is wrong, as any operation involving NAN shall result in NAN.  Actually, running exp(NAN)
on a PC (Ubuntu 14.04 w/ libc 2.19) correctly returns NAN.

I'm not sure if these two effects are linked, but might this be an indication that the exp() implementation
is somehow broken for the e500v2?

Thanks in advance for any insight,
eldk mailing list
Nick Leverton | 17 Nov 10:26 2015

What's loaded in the FPGA on an MCVEVK ?

I'm trying to understand what is loaded in the FPGA on the MCVEVK as it comes 
out-of-the-box.  It doesn't seem to be documented what if any functionality 
this provides to my evaluation kit.

I think that something must be loaded into it because 
/sys/class/fpga/fpga0/status returns "user mode" but what, and at which of the 
several boot stages is it loaded and where from, and where does it fit into 
ELDK and the RFS image generation ?

Hope someone can clarify this,

KwangMin Kim | 20 Oct 13:18 2015

Compile error in eldk(ppc_6xx-g++)

Hi. I'm elementary developer in korea.

I was ever good use "eldk". 

During this time, it was replaced with a new computer, it was supposed to be transferred to the "/ opt" 
        folder of the existing installation that has been "eldk" is also a new computer.

Problems arising By trying to compile transferred to the source code is also new computer programs that 
        are developed using "eldk" from the old computer.

c compiler (ppc_6xx-gcc), which have a normal operation, it is possible to see that compile error occurs in
cpp compiler.

please What I missed part? (need a package, and etc...)

Compile error is here.

/* ...ellipsis...

.rebased /opt/eldk/usr/bin/ppc_6xx-g++ -DHAVE_CONFIG_H -I.
-I../../../../../tools/shared/linux -I ../../..  -I../../../../../tools/shared/linux/../
-I../../../../../wireless/shared -I../../../../../wireless/shared/linux
-I../../../../../tools/shared/3rd_party/iniparser -I../../../../../tools/mttools/shared
-DMTLK_PACKAGE_VERSION="\"\"" -include
-Wall -Wno-multichar -include
(Continue reading)

Tremblay, Eric | 6 Jul 15:19 2015

ELDK 4.1 priority inversion question.

Hi there,

I know, this is old stuff but the product was developed with that at the time.

I have looked all over the web but can't seem to find an answer to my questions, so I'm trying you directly.

We are using ELDK 4.1 with Linux kernel  I'm trying to figure out if priority inversion(in the user
space) is supported and if yes, how to enable it.

I have found on the web that priority inversion was introduce in Linux kernel 2.6.18.

I have found that in "pthread.h" in ELDK, the interface to set the protocol is there but when I try to use it,
the compiler says it doesn't know about it.

The architecture is the PowerPC(Power Quick II) ppc_82xx.

There compiler error is:

/home/Fremen/vdriveDEV/app/common/src/app_diagmgr.cpp: In function 'void DiagMgr_InitializeDataMembers()':

/home/Fremen/vdriveDEV/app/common/src/app_diagmgr.cpp:1322: error:
'pthread_mutexattr_getprotocol' was not declared in this scope

I know that the error mean it cannot find the function declaration.  What I don't know is why since it is
declare in the pthread.h that I have included And the compiler can find the header file because it would
complain if not.

The other thing I saw on the web was about a compiler & linker option to add "-pthread".  I did add it just to try
but it did not make any difference.
(Continue reading)

Vijay Shrivastav | 4 Jul 02:28 2015

device tree bindings for cascaded i2c switches


looking for some help in creating the device tree file. I have a chain of
9548 i2c mux/switch. On boot Linux is creating /dev/i2c* device files for
all the channels of the first level 9548, but the no i2c bus device files
area created for second level 9548 channels. Also other devices such as
EEPROM and temperature sensors are ignored.

Attached here is the section of the dts file, for PPC. Is this is a
restriction in how i2c busses are traversed  or there is something wrong in
the declaration? Linux kernel is 2.6.27.


--dts file--

IIC0: i2c <at> ef600700 {

compatible = "ibm,iic-460ex", "ibm,iic";

reg = <0xef600700 0x00000014>;

interrupt-parent = <&UIC0>;

interrupts = <0x2 0x4>; 

#address-cells = <1>;

#size-cells = <0>;

(Continue reading)

ibragimov | 1 Jul 17:05 2015

MCV hardware

Hello, I use sysroot

and DENX_MCV_reference C2

I try to get access to PIO IOB5A through /dev/mem

#define MAP_PIO_BASE_ADDR       (0xFF200000)    ///< lwAxiMaster Base 
#define MAP_PIO_SIZE            (0x00100000)
#define IOB5A_OFFS              (0x000800C0)    // GPIO IOB5A offset 
from lwAxiMaster Base Address

int fd = open("/dev/mem", O_RDWR|O_SYNC);
unsigned int * mem_ptr = (unsigned int*)mmap(NULL, MAP_PIO_SIZE, 
io_val = mem_ptr[IOB5A_OFFS/sizeof(unsigned int)];

And here I've got Bus error with
Unhandled fault: external abort on non-linefetch (0x018) at 0xb6c590c0

Do core-image-lsb-sdk-mcvevk.tar.bz2 supports HPS PIO of 
DENX_MCV_reference C2 ?
ibragimov | 24 Jun 15:15 2015

MCVEVK manual questions
Page references to resistors RefDes. But where can I find schematic or 
position of this components?

    3. Installation of U-Boot and U-Boot SPL to eMMC

The default boot media for MCVEVK is eMMC, but this setup can be 
overriden by followingdocumentation 

link is incorrect. It is link to the page with M53EVK
Where can I find information on booting from SD-card?

    2. Build recovery Quartus II project

*$ git clone

link is incorrect
Where can I find Recovery-C2 project?

  7.3.6 Pin Header

Three 40 pin pin header provide IO Pins of MCV.
(Continue reading)

ibragimov | 23 Jun 10:53 2015

Building kernel module - recordmcount: not found

I am trying to compile kernel module for qemuarm with ELDK.
I used manual to build 
system. And system runs.
But I can not to build kernel module.

to build module I use next steps:
cd ~/.../git/eldk
BUILD_NAME=$(git branch | sed -ne '/(detached from /d' -e 's/$/-/' -e 
's/^\* //p')$(git log --format="%ad-%h" --date=short HEAD^\!)
TEMPLATECONF=meta-eldk/conf source oe-init-build-env 

cd tmp/workspace/Kernel_hello/    # here is my module source
make -C $SDKTARGETSYSROOT"/usr/src/kernel" M=$PWD modules

system says
/bin/sh: 1:

not found

in the sysroots/qemuarm/usr/src/kernel/scripts/recordmcount directory - exists
recordmcount - absent

Where can I found correct builders, sources or manual to build kernel 
modules with ELDK?
K Richard Pixley | 3 Jun 00:56 2015

u-boot tftp on second network interface?

Can I configure u-boot to tftp from the second network interface?

And if so, how?

belatronix | 29 May 14:48 2015

ELDK 5.6 Xenomai Build stops when choosing MACHINE=mpc5200

i failed to build the ELDK 5.6 with Xenomai support ( MACHINE=mpc5200 bitbake
core-image-minimal-xenomai )

I got an Error in Task 194:
git/eldk/meta-eldk/recipes-kernel/xenomai/, do_configure) failed
with exit code '1'

Why does it try to patch the Kernel Version 3.14.43 instead of the 3.14.22 which is selected in  

The Log Output:

| Hunk #12 succeeded at 2740 (offset 4 lines).
| Hunk #13 succeeded at 2750 (offset 4 lines).
| Hunk #14 succeeded at 2824 (offset 4 lines).
| Hunk #15 succeeded at 3519 (offset 6 lines).
| Hunk #16 succeeded at 4614 (offset 7 lines).
| Hunk #17 succeeded at 8058 (offset 13 lines).
| checking file kernel/sched/core.c.orig
| checking file kernel/sched/wait.c
| checking file kernel/signal.c
Hunk #8 succeeded at 2535 (offset 4 lines).
Hunk #9 succeeded at 2582 (offset 4 lines).
Hunk #10 succeeded at 2669 (offset 4 lines).
Hunk #11 succeeded at 2683 (offset 4 lines).
Hunk #12 succeeded at 2740 (offset 4 lines).
Hunk #13 succeeded at 2750 (offset 4 lines).
Hunk #14 succeeded at 2824 (offset 4 lines).
Hunk #15 succeeded at 3519 (offset 6 lines).
(Continue reading)

Panagiotis Tamtamis | 23 May 11:40 2015

QA Issue: python3 modules ELF binary has relocations in .text


After build I have the following warnings:

#bitbake python3

WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text
WARNING: QA Issue: ELF binary
'/home/tamis/straus/opt/eldk/build/p2020-v5.6_20150512-2015-03-03-3449f10-e500v2/tmp/work/ppce500v2-linux-gnuspe/python3/3.3.3-r0.0/packages-split/python3-misc/usr/lib/python3.3/lib-dynload/_' has relocations in .text

I gone to build log and I saw the following:
(Continue reading)