powerpc NPTL port
Rob Landley
rob at landley.net
Sat May 8 22:36:54 UTC 2010
On Thursday 06 May 2010 01:00:46 Khem Raj wrote:
> Hi
>
> Based on the powerpc patch that Bernhard had, I have refreshed it with
> current master
> I am able to build a uclibc with nptl for powerpc but I have no
> hardware to test it on
> If someone with ppc hardware could try this out would be a great help
>
> The patch is
>
> http://uclibc.org/~kraj/0001-powerpc-Add-TLS-and-NPTL-support.patch
>
> and the .config I used is here
>
> http://uclibc.org/~kraj/config.nptl.ppc
Alright, I'll give it a whirl:
# Grab my build system
mkdir temp
cd temp
hg clone http://impactlinux.com/hg/aboriginal
cd aboriginal
# Grab your patch
wget http://uclibc.org/~kraj/0001-powerpc-Add-TLS-and-NPTL-support.patch \
-O sources/patches/alt-uClibc-powerpc-nptl.patch
# Grab the source code
./download.sh
(cd ~/uclibc/git; git archive --prefix=uClibc/ master) | bzip2 \
> packages/alt-uClibc-0.tar.bz2
# Make sure your patch applies cleanly to current -git...
USE_UNSTABLE=uClibc EXTRACT_ALL=1 ./download.sh
# Plug in your .config
wget http://uclibc.org/~kraj/config.nptl.ppc \
-O sources/targets/powerpc/miniconfig-alt-uClibc
And it went:
--2010-05-08 17:32:07-- http://uclibc.org/~kraj/config.nptl.ppc
Resolving uclibc.org... 140.211.167.224
Connecting to uclibc.org|140.211.167.224|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2010-05-08 17:32:07 ERROR 403: Forbidden.
Wanna fix that?
In theory the next steps would be:
USE_UNSTABLE=uClibc ./build.sh powerpc
cd build/system-image-powerpc
./run-emulator.sh
And that should boot up a virtual powerpc system under QEMU using the snapshot
of the current -git version, with your patches. And there would be a native
development toolchain in there that builds stuff against current -git, too.
Yes, I plan to make a cron job automate this and upload nightly builds to
impactlinux.com, so anybody who wants to can test 'em under QEMU, I just
haven't made it that far down my todo list yet. Largely because I'm not going
to get excited about when the last release version is still broken.
Rob
--
Latency is more important than throughput. It's that simple. - Linus Torvalds
More information about the uClibc
mailing list