Building ipk natively on DS408/508

All discussions/development regarding the Freescale MPC8543 Chip can be placed here.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:

https://account.synology.com/support/support_form.php?lang=enu



2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.
bzhou
Knowledgeable
Knowledgeable
Posts: 344
Joined: Sat Jan 12, 2008 1:57 am

Building ipk natively on DS408/508

Postby bzhou » Wed Jul 09, 2008 3:46 am

The native toolchain gcc/g++ 3.4.6 + binutils 2.17 + glibc 2.3.4 is now available in optware/syno-e500 feed

Now you can even do some optware development on syno-x07 device. Here are the steps:

1)

Code: Select all

ipkg update
ipkg install optware-devel


2) [optional, but recommended] login as non-root user

3) (you can use any directory, change the following accordingly)

Code: Select all

cd $HOME; svn co http://svn.nslu2-linux.org/svnroot/optware/trunk optware
cd $HOME/optware; make syno-e500-target
cd $HOME/optware/syno-e500; make directories ipkg-utils


4)

Code: Select all

make hello-dirclean hello-check
now replace hello with other package you want to build.

Please note that most optware packages are cross built. We tried to accommodate both native build and cross build, but there can be some packages that are only buildable in cross compilation environment. Native build is significantly slower than cross build. It's possible to speed up C/C++ packages with distcc.

For ocaml based packages like unison and mldonkey, you'll also need to

Code: Select all

ipkg install ocaml
.

Cheers,

-Brian Zhou

See also
[1] http://www.nslu2-linux.org/wiki/Optware ... eToOptware
[2] http://www.nslu2-linux.org/wiki/Optware/Distcc

Return to “Freescale MPC8543 Development Room”

Who is online

Users browsing this forum: No registered users and 1 guest