Toolchain new

From - Hack X300T / X301T
Jump to: navigation, search
  • Prerequisites:

gcc3.4 (it doesn't matter if you also have gcc4.x, as long as you have 3.4)
zlib-dev (zlib1g-dev on Ubuntu - possibly others)

Run this before you start (if you close the terminal you were working in you'll have to run this again):

export CC=gcc-3.4
make menuconfig && make

You'll get the Buildroot configuration page, don't change anything, just exit. When it asks if you want to save choose yes, then wait...
Once it's done (the last line should be 'creating toolchain-path.env...') run:

source /path/to/smp86xx_toolchain_2.8.0.1/toolchain-path.env
make menuconfig && make

Same as before, just exit and save the config, then some more waiting...
If it claims you don't have zlib-dev but /usr/include/zlib.h exists, then change /path/to/rootfs_2.7.127.0/ to:

#! /bin/sh
echo yes

Only do this if /usr/include/zlib.h exists!

Once it's compiled run:

source /path/to/rootfs_2.7.127.0/rootfs-path.env

Use my nfsroot kernel .config file if you are not sure about the settings <<rename this file to .config, it is not compressed>>
Recommended settings (Machine Selection screen)
Tango2 machine sel.JPG
If you are using a nfsroot : Just create an empty directory, ie mkdir ../initramfs, then edit the kernel .config and set CONFIG_INITRAMFS_SOURCE to "../initramfs", if you do not do this the kernel will use the initramfs as root and willl never mount the nfsroot
You have to tell te kernel not to use the whole ram in dram0, i.e. via mem=32M, this is required, otherwise it will crash ! The use MakeNK create a lx.bin compatible with the wince bootloader (uncheck romfs).

  • Get mrua- from "somewhere" works only for wince based stbs !
export UCLINUX_KERNEL=/path/to/kernel_source_2.7.127.0/linux-2.6.15/

copy /modules, bin/ and /lib to your rootfs, nfsroot, ..

cd mrua- && patch -p1 < ../Dbgmonodram1.gz
for more debug output and to be able to play videos from dram1 with mono (the command line option should be "-dram 1 -ve1" or something like that)
Personal tools