OSELAS Toolchain

bluscape
I'm trying to compile the latest OSELAS toolchain (2011.11.2) but I get
stuck at the following error:

--------------------------
target: glibc.extract.post
--------------------------

pkg_patch_autogen:
'OSELAS.Toolchain-2011.11.2/patches/glibc-2.14.1/autogen.sh'

/home/mc/local/OSELAS.Toolchain-2011.11.2/patches/glibc-2.14.1/autogen.sh:
line 7: configure: Permission denied
make: ***
[/home/mc/local/OSELAS.Toolchain-2011.11.2/platform-arm-v4t-linux-gnueabi-gcc-4.
6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized/state/glibc.extract.po
st]
Error 1
mc@ubuntu:~/local/OSELAS.Toolchain-2011.11.2$ 

Any ideas how to resolve this?

Juergen Beisert
Can send the whole log to our OSEALS mailling list please?

Juergen Beisert
This line 7 contains "autoconf configure.in > configure". Do you have any
strange user/group settings on your host or is the owner of your
OSELAS.Toolchain-2011.11.2 directory different than the current user of the
'ptxdist' command?

bluscape
I should read the documentation thoroughly!

Although I'm having a problem getting my frame buffer to work.

I will post again once I've done everything I can do to try and resolve it.

Currently my boot logo is not displaying although all the required settings
are checked (CONFIG_VT=y, CONFIG_FRAMEBUFFER_CONSOLE=y and
CONFIG_LOGO=y). Also when I try to launch an application for example
ts_calibrate I get a message "open fbdevice: No such file or directory"

Juergen Beisert
You are using the last Mini2440 BSP? There is a bug in the framebuffer
kernel driver. You need the patch from our Mini2440 website to fix it.

sebastian
I am having this problem as well - permission denied.

I have made sure that the OSELAS.Toolchain-2011.11.2 directory and all
contents are owned/grouped by my standard user:

drwxr-xr-x 10 lina lina   21 Sep  7 09:46 OSELAS.Toolchain-2011.11.2

Both the symlink and actual ptxdist program have been given the same
user/group: 

lrwxrwxrwx 1 lina lina 44 Sep  7 08:53 /usr/local/bin/ptxdist ->
/usr/local/lib/ptxdist-2012.07.0/bin/ptxdist
-rwxrwxr-x 1 lina lina 58292 Jul  9 19:21
/usr/local/lib/ptxdist-2012.07.0/bin/ptxdist


...yet I still get permission denied error like bluscape. Any ideas would
be appreciated.

Juergen Beisert
The build has to be happend in your $HOME. Only the installation of the
results will happen to "/opt" and "/usr/local". There is no need to make
yourself the owner of the PTXdist files in "/usr/local/". Whenever you
extract an archive in your $HOME you will be automatically the owner of all
files extracted from the archive.
bluescape didn't say what was wrong at his side and what exactly fixes it.
I have no idea what's wrong at your side.
PTXdist will create a logfile of its work. You could send it to our
mailinglist.

bluscape
Hi Sebastian,

I resolved my problem by creating the folder for the toolchain myself and
then giving myself rights to that folder:

mkdir /opt/OSELAS.Toolchain-2011.11.2
chown <username> /opt/OSELAS.Toolchain-2011.11.2
chmod a+rwx /opt/OSELAS.Toolchain-2011.11.2

Juergen,

Thanks, the patch fixed the problem, however, no matter what I do, the
default boot logo is displayed. I've compiled my own boot logo into the
kernel but it still displays the default (penguin).

This is what I do to compile my own logo (maybe I'm missing something):

1.) pngtopnm logo.png | ppmquant -fs223| pnmtoplainpnm >
logo_linux_clut224.ppm
2.) cp logo_linux_clut224.ppm
/home/jdoe/local/OSELAS.BSP-Pengutronix-Mini2440-2012.06.0/platform-mini2440/bui
ld-target/linux-3.4/drivers/video/logo
3.) ptxdist drop kernel.compile
4.) ptxdist go
5.) update kernel to Mini2440

Juergen Beisert
bluescape, seems the kernel's build system simply does not recognize your
own logo file. No idea why it ignores it. Take a look into the Makefile of
this folder.

Ojas
I am trying to use OSELAS toolchain 2016.06.1 with PTXdist 2017.03.0 and I
couldn't able to build toolchain. Below is the error message that I am
getting,

-----------------------------
target: glibc-headers.prepare
-----------------------------

configure: error: unrecognized options: --without-cvs, --with-tls,
--with-__thread, --enable-hacker-mode
/usr/local/lib/ptxdist-2017.03.0/rules/post/ptxd_make_world_prepare.make:12:
recipe for target
'/home/user/Downloads/OSELAS.Toolchain-2016.06.1/platform-x86_64-unknown-linux-g
nu-gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/state/glibc-headers.p
repare'
failed
make: ***
[/home/user/Downloads/OSELAS.Toolchain-2016.06.1/platform-x86_64-unknown-linux-g
nu-gcc-5.4.0-glibc-2.23-binutils-2.26-kernel-4.6-sanitized/state/glibc-headers.p
repare]
Error 1

Any idea why glib package is causing error?

davef
The rules for doing this appeared to be quite complex.

The date of the toolchain and PTXdist I think had to be the same to
guarantee success.

Are you building this for the mini2440?

Ojas
Thanks davef. I am not building it for mini 2440.

As you suggested, I think best thing to build toolchain with the same
version of PTXdist.

davef
Seeing as it is not for the mini2440 possibly using the latest PTXdist
version and latest toolchain should be successful.

I think it was OK to to use, for example, toolchain 2016.x and PTXdist
2016.y  In other words, minor releases.

I noticed the the gmane PTXdist website seems to have disappeared as well
as the gmane mini2440 website.  Possibly moved to new locations.

Good luck!

davef
For PTXdist
https://www.mail-archive.com/ptxdist@pengutronix.de/

For the mini2440
https://www.mail-archive.com/oselas@community.pengutronix.de/