Specifications

# cd <elkd_install_dir>
# brandelf -t Linux ./install
Note: The following workaround might be a good alternative for the tedious copying of
the installation CDROM to a writable location and manual branding: you can set a fallback
branding in FreeBSD - when the loader cannot recognise the ELF brand it will switch to the
last resort defined.
# sysctl -w kern.elf32.fallback_brand=3
kern.elf32.fallback_brand: -1 -> 3
With this setting, the normal ELDK CDROM images should work.
Install ELDK normally as described in 3.5.3. Initial Installation3.
Set envrionment variables and PATH as needed for ELDK (in bash); for example:
bash$ export CROSS_COMPILE=ppc_8xx-
bash$ export PATH=${PATH}:/opt/eldk/bin:/opt/eldk/usr/bin
4.
Hints for building U-Boot:
FreeBSD normally uses BSD-style 'make' in base, but in order to compile U-Boot
'gmake' (GNU make) has to be used; this is installed as part of the 'linux_base'
package (see above).
U-Boot should build according to standard ELDK instructions, for example:
bash$ cd /opt/eldk/ppc_8xx/usr/src/u-boot-1.1.2
bash$ gmake TQM823L_config
bash$ gmake all
5.
Hints for building Linux:
There are three issues with the Makefile in the Linux kernel source tree:
GNU make has to be used.
The 'expr' utility in FreeBSD base behaves differently from the version than is
used in Linux so we need to modify the Makefile to explicitly use the Linux version
(which is part of the Linux compatibility package). This is best achieved with
defining "EXPR = /compat/linux/usr/bin/expr" somewhere at
=Makefile='s beginning and replacing all references to 'expr' with the variable
${EXPR).
Some build steps (like when running 'scripts/mkdep' can generate very long
arguments lists (especially is the Linux kernel tree is in a directory with long absolute
filenames). A solution is to use xargs to split such long commands into several with
shorter argument lists.
The Linux kernel can then be built following the standard instructions, for example:
bash$ cd /opt/eldk/ppc_8xx/usr/src/linux-2.4.25/
bash$ gmake mrproper
bash$ gmake TQM823L_config
bash$ gmake oldconfig
bash$ gmake dep
bash$ gmake -j6 uImage
6.
ELDK Installation Hangs
Question:
ELDK Installation Hangs 151