--- In Jim Jackson <> wrote:
>
> On Mon, 18 Apr 2005, vocemanago wrote:
>
> > Ok, I decided to attempt to pull out the crossbuild tools en force to
> > try a Kernel build.
> > I dropped in the Linux24 directory from the CD and ...moved into the
> > directory and hit Make, then I started getting pelted with a bunch of
> > questions, and it was at that point I realized I didn't really know
> > the answers.
> > Is there a standard build list I missed somewhere?
> > Tony
> >
> >
>
> Here are my notes I compiled while kernel building......
>
>
> Subject: ts-7200: compiling a kernel (fwd)
>
> uncompress and untar the latest linux24.tgz from the web site
>
> Then edit the linux24/Makefile....
>
> ....
> HOSTCC = gcc
> HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
> CROSS_COMPILE =
/usr/local/opt/crosstool/arm-linux/gcc-3.3.2-glibc-2.3.2/bin/arm-linux-
> ....
>
> HOSTCC is what to use to compile the programs needed on the
development host.
>
> HOSTCFLAGS are the flags to use when compiling host executables.
>
> CROSS_COMPILE variable is used as a prefix to the cross compiler tools
> when actually building the kernel.
>
> Then these.......
>
> make ts7200_config
> make oldconfig
> make menuconfig
> make dep
> make zImage
>
> new kernel in linux24/arch/arm/boot/compressed/vmlinux
>
> make modules
> INSTALL_MOD_PATH=`pwd`/modules make modules_install
>
> installs kernel into linux24/modules
>
>
> From a new kernel build you will end up with the new kernel image,
and a
> new set of modules.
>
> Copy the modules into /lib/modules/_KERNEL_VERSION_NAME_/
>
> Each Kernel build has a specific version name - the Technologics builds
> have names like
>
> 2.4.26-vrs1-cirrus-1-2-1-ts5
>
> For testing copy the new kernel (e.g. vmlinux.bin) to a tftp server area
>
> Reboot the TS-7200 and press ^C to get to the RedBoot prompt.
>
> Check that RedBoot is configured for the your network.
>
> fconfig -l
>
> and check the IP details.
>
> Then load the new kernel from the tftpserver
>
> RedBoot> load -r -b 0x00218000 -h 192.168.10.80 sc_vmlinux_ts5.bin
> Raw file loaded 0x00218000-0x003735cb, assumed entry at 0x00218000
> RedBoot> exec -c "console=ttyAM0,115200 root=/dev/hda1"
> ......
>
>
> Test it then when ready install into onboard flash or cfdisk or
whatever.
This is the kind of thing I was looking for, a little more detail is
always helpful, thanks again (and having it here makes it accessible
to the whole).
So using the CROSS_COMPILE variable, you generally have to be specific
, the environment variable won't do it.
Ok then... Its time to fire up VNC and play (I mean work, yeah ..Im
working boss).
Tony
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|