ts-7000
[Top] [All Lists]

Re: [ts-7000] compiling a kernel

To:
Subject: Re: [ts-7000] compiling a kernel
From: "Eddie Dawydiuk" <>
Date: Tue, 17 Jan 2006 11:18:06 -0700 (MST)
Hello,

> I have used both the toolchain and compiled natively on the ts7260
> using debian (USB microdrives are great!)  I tried making a stock
> kernel using:
>
> make ts7200_config; make oldconfig; make dep; make vmlinux
>
> It compiles without incident, so I redboot it up using tftp.  After a
> few seconds in each case I get a few nonsensical characters just like
> this:
>
> RedBoot> load -r -b 0x00218000 192.168.0.1 vmlinux
> Using default protocol (TFTP)
> Raw file loaded 0x00218000-0x0040fa39, assumed entry at 0x00218000
> RedBoot> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"
> Using base address 0x00218000 and length 0x001f7a3c
> @..
> ÿ

I crosscompile my kernels because it is much faster... Make sure you download
crosstools
http://www.embeddedarm.com/downloads/Linux/ARM/crosstool-linux-0.28rc39.tar.bz2
. Untar crosstools in the root directory(/). Then download the kernel
source code
http://www.embeddedarm.com/downloads/arm_sbc/linux24-ts9-ksrc.tar.gz. Next
edit the Makefile in the root directory of the kernel source code. Edit the
CROSS_COMPILE environment variable, so that $(CROSS_COMPILE)gcc will point
to your arm-linux-gcc. For instance if you're crosscompiler is in
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc
the you would set
CROSS_COMPILE = 
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-

Now you should be able to run make ts7200_config; make oldconfig;
make dep; make vmlinux. Once this process has completed you should see the
file vmlinux.bin in the root directory of the kernel source. You can load
this file via TFTP, HTTP, CF Card... If you load the file via TFTP from
192.168.0.1:/home/eddie/vmlinux.bin you would run the following commands
from redboot.

    RedBoot> load -r -b 0x00218000 -h 192.168.0.1 /home/eddie/vmlinux.bin
    Using default protocol (TFTP)
    Raw file loaded 0x00218000-0x00371487, assumed entry at 0x00218000
    RedBoot> exec -c "console=ttyAM0,115200 root=/dev/mtdblock1"

To load the non-stripped kernel(ie vmlinux), don't use the -r option in the
exec line...

//Eddie


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/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU