John Williams | 7 Oct 2011 01:45
Favicon

Re: [microblaze-linux] About toolchain built against 2.6.33 or greater kernel headers

Hi Alejandro,

The toolchain is built always against the same kernel that we ship in
the PetaLinux release.  I'd have to check but it may be that the IPC
support was not enabled back around the 1.3 release, but it is
definitely working in 2.1

Please contact us directly and we'll send you the latest release for you to try.

Regards,

John

On Fri, Oct 7, 2011 at 12:13 AM, Alejandro Cabrera
<acabrera@...> wrote:
> Hi John
>
> Indeed, I'm using the Petalinux SDK donation v1.3 (2.6.31) with the
> toolchain inside it. I was working with kernel version 2.6.35 and did all
> posix named semaphore (PNS) tests against it. After your comments I rollback
> the kernel version to the 2.6.31 (sdk v1.3) and after config the kernel and
> mount the filesystem (/dev/shm, as Edgar said)  the problem still happen.
>
> I'm linking a sem_test application with pthread library that contains (at
> least it must) the posix named semaphore implementation. I disassamble this
> library with objdump and look for sem_open code and it has only 21
> instructions, for example the x86 sem_open implementation has 241
> instructions. The rest of PNS functions (sem_close), sem_unlik have a code
> very similar to sem_open. Another clue that tell me that the libpthread.so
> doesn't contain a functional sem_open implementation is the fact that the
> __sem_search function is not implemented, this function is called from
> sem_open to obtain the mount point of shm filesystem (mounted in /dev/shm as
> default).
>
> What I can do ?
> Can I know the kernel version against the toolchain was built ?
>
> Best regards and thanks for your attention
> Alejandro
>
>
>
>
> On 10/5/2011 8:14 PM, John Williams wrote:
>>
>> Hi Alejandro,
>>
>> You are using a PetaLinux SDK donation, correct?  SysV IPC works, but
>> as Edgar said you do have to enable a few kernel options (we have made
>> these defaults for future releases).
>>
>> The main Kconfig options you need are
>>
>> CONFIG_SYSVIPC=y
>> CONFIG_SHMEM=y
>> CONFIG_TMPFS=y
>>
>> About building the toolchain, we are currently working on updating the
>> mainline GCC and binutils projects so that MicroBlaze is properly
>> supported and buildable.  However, the SysV issue you are seeing is
>> not related to your toolchain (at least I am confident that is the
>> case).
>>
>> Regards,
>>
>> John
>>
>>
>> On Thu, Oct 6, 2011 at 5:53 AM, Alejandro Cabrera
>> <acabrera@...>  wrote:
>>>
>>> Hi Edgar
>>>
>>>> IIRC, you need to enable TMPFS in your kernel and mount /dev/shm as
>>>> tmpfs
>>>> before using sysv ipc calls. Otherwise you'll always see ENOSYS.
>>>>
>>>> Check that you have both CONFIG_SHMEM=y CONFIG_TMPFS=y enabled in your
>>>> kernel and /etc/fstab: none /dev/shm tmpfs defaults,noexec,nodev,nosuid
>>>> 0 0
>>>> mounted.
>>>>
>>> I get the same error :(.
>>>
>>> I want to rebuild the toolchain from scratch but I dont have a clue
>>> about how to do it. I notice the usage of crosstool-ng in the web for
>>> others architectures....but, microblaze is not supported by crosstool-ng
>>> yet.
>>>
>>> What is the crosstool-ng located at petalogix git server ??
>>> How I can build the toolchain with it ??
>>>
>>> Best regards
>>> Alejandro
>>>
>>>
>>>
>>> Participe en Universidad 2012, del 13 al 17 de febrero de 2012.
>>> Habana, Cuba: http://www.congresouniversidad.cu
>>> Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
>>>
>>> Participe en el Segundo Congreso Medio Ambiente Construido y
>>> Desarrollo Sustentable (MACDES 2011) del 6 al 9 de diciembre de 2011,
>>> Hotel Nacional, Habana, Cuba: http://macdes.cujae.edu.cu
>>> _______________________________________________
>>> microblaze-linux mailing list
>>> microblaze-linux@...
>>> https://lists.eait.uq.edu.au/mailman/listinfo/microblaze-linux
>>>
>>
>>
>
>
> Participe en Universidad 2012, del 13 al 17 de febrero de 2012.
> Habana, Cuba: http://www.congresouniversidad.cu
> Consulte la enciclopedia colaborativa cubana. http://www.ecured.cu
>
> Participe en el Segundo Congreso Medio Ambiente Construido y Desarrollo
> Sustentable (MACDES 2011) del 6 al 9 de diciembre de 2011, Hotel Nacional,
> Habana, Cuba: http://macdes.cujae.edu.cu
>

--

-- 
John Williams, PhD, B. Eng, B. IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com  p: +61-7-30090663  f: +61-7-30090663
_______________________________________________
microblaze-linux mailing list
microblaze-linux@...
https://lists.eait.uq.edu.au/mailman/listinfo/microblaze-linux


Gmane