Openrisc Toolchain Development Factory
Home
Copyleft Rich D'Addio 2007
uClibc-0.9.28.3
uClibc pronounced "you-see-lib-see" is what is known as a "C" library, uClibc is the product
of the crew at: uClibc they are also the folks
that do BusyBox BusyBox and Buildroot Buildroot.
Like the Opencores crew they have donated mightly to embedded software and hardware
engineering. (BTW it is often from their own pockets!!)
If you cannot donate time or money yourself make damn sure you hound your company
(who may be benefitting from this work) to either donate or send business to these excellent
organizations.
Ok so the philosopy is out of the way --let's get started.
First unpack uClibc-0.9.28 that we downloaded long ago:
ralphie:/video/new_or32# bunzip2 uClibc-0.9.28.3.tar.bz2
ralphie:/video/new_or32# tar -xvf uClibc-0.9.28.3.tar
Ok so now patch it:
ralphie:/video/new_or32# cd uClibc-0.9.28.3
ralphie:/video/new_or32/uClibc-0.9.28.3# bzip2 -dc ../uClibc-0.9.28-or32-unified.bz2 |patch -p1
Next then cd to uClibc-0.9.28.3/libc
ralphie:/video/new_or32/uClibc-0.9.28.3/libc# bzip2 -dc ../../uClibc-0.9.28-or32-libc-support.bz2 |patch -p1
Alright so now we have to muck with some internals same as they do on the Opencores page Opencores Projects
ralphie:/video/new_or32/uClibc-0.9.28.3# ln -s extra/Configs/Config.or32 Config
Now we need to set the CC environment variable since we to use the cross to build uClibc
ralphie:/video/new_or32/uClibc-0.9.28.3# export CC=or32-uclinux-gcc
Next we also need to set the KERNEL_SOURCE and DEVEL_PREFIX so we will use make menuconfig to do so:
ralphie:/video/new_or32/uClibc-0.9.28.3# make menuconfig
Under Target Features and options set the your kernel (e.g /video/new_or32/linux-2.6.19)
Under Library Installation Options set the path to your toolchain in the development directory.
Please start with this sample .config: sampledotconfig
Let's let it rip
ralphie:/video/new_or32/uClibc-0.9.28.3# make all install
If you happen to get some header errors in asm just go to those files
and remove the "#include linux/config.h" since it is depracated.
Finish the voodoo ? Yes? Next No?Previous Start
Top