ts-7000
[Top] [All Lists]

[ts-7000] Re: Recompiling kernel for TS-7260

To:
Subject: [ts-7000] Re: Recompiling kernel for TS-7260
From: "charliem_1216" <>
Date: Fri, 26 Sep 2008 17:54:40 -0000
--- In  sean <> wrote:
>
> Hi Charles,
>
> On Fri, Sep 26, 2008 at 6:17 AM, charliem_1216 <>
> wrote:
>
>     Hi Sean --
>
>
>     --- In  sean <smachin1000@> wrote:
>     >
>     > I repeated the kernel recompilation steps as listed in my original
>     message,
>     > but
>     > used the "zImage" target instead of "bzImage". Findings are inline
>     below:
>     > I used the kernel src. from
>     >
>
>
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/sources/tskernel-2.4.26-ts11-src.tar.gz
>     > The cross compiler I'm using is
>     >
>
>
/usr/local/opt/crosstool/arm-linux/gcc-3.3.4-glibc-2.3.2/bin/arm-linux-gcc.
>     > I was advised by Technologic that that's the one they use to
compile
>     their
>     > 2.4 kernels.
>     >
>     > On Wed, Sep 24, 2008 at 9:35 PM, charliem_1216 <charliem_1216@
> ...>wrote:
>     >
>     > > Hi Sean --
>     > >
>     > >
>     > > --- In  <ts-7000%40yahoogroups.com>, sean
>
>     machin
>     > > <smachin1000@> wrote:
>     > > >
>     > > > Hi All,
>     > > >
>     > > > Has anyone successfully recompiled the 2.4.26-ts11 kernel
for the
>     > > > TS-7260? The kernels I compile crash out when booted.
>     > >
>     > > What is crash out? Better description may get better
suggestions.
>     > >
>     >
>     >
>     >
>     > This is what I get on the serial console after installing the
newly
>     built
>     > kernel:
>     >
>     > >> TS-SDBOOT - built Jan 26 2007
>     > >> Copyright (c) 2007, Technologic Systems
>     > It will display these chars for about 20 seconds, then reboot and
>     repeat the
>     > process
>
>     OK, looks like you have converted to the fastboot method as
described
>     here, right?
>     http://www.embeddedarm.com/software/arm-linux-fastboot-ts7300.php
>
> Yes, correct.

Did fastboot ever work for you with the stock kernel?

>
>     Standard TS-7260 boards use RedBoot AFAIK, but you are trying to
boot
>     from the SD. There are no kernel messages displayed, so it seems to
>     be a problem even finding or reading the new kernel image. Did you
>     first write the TS fastboot SD image to the card?
>
>
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7200-linux/binaries/ts-images/sdimage.dd.bz2
>
> Yes.
>
>     Also, is this a standard SD card (less than 2G) or a SDHC card? I
>     don't believe the TS-SDBOOT ROM code can read SDHC cards.
>
> It's a standard 1GB SD card.
>
>     > .
>
>     > .
>     > >
>     > > > Following section 6.1 in Technologic's Linux for ARM
user's guide,
>     > > these
>     > > > are the steps I used:
>
>     Look over the fastboot page linked to above. There seems to be lots
>     of 7260 info that would apply to your case. For example, looks like
>     you have to have different kernel versions depending on flash
size of
>     your 7260 (ie, nand-2k or not).
>
> My board has 32MB of Flash.  Looking at the config files in
> arch/arm/def-configs/,
> there's only one file for the TS7260.  The only relevant settings I
could
> find in that file was these lines:
> # Memory Technology Devices (MTD) for 2k NAND flash
> #
> # CONFIG_MTD2K is not set
>
> So that seems to imply that the 2K Flash setting is not enabled,
which is
> what
> I want in my 32MB case?

Yep.

>
> I actually got a different result when booting this time, instead of
pure
> garbage characters I get this kernel output, then the system stops
> when trying to run init:
>

Well, that's quite a bit further than before.  Something must have
changed to allow you to get further ... any idea what?

> >> TS-SDBOOT - built Jan 26 2007
> >> Copyright (c) 2007, Technologic Systems
> .
> .
> .
> Linux version 2.4.26-ts11  (gcc version 3.3.4) #1
Fri Sep 26
> 09:
> 20:30 PDT 2008
> CPU: Arm920Tid(wb) revision 0
> Machine: ep9301
> On node 0 totalpages: 2048
> zone(0): 2048 pages.
> zone(1): 0 pages.

 ... snip

> Kernel command line: root=/dev/mtdblock1 console=ttyAM0,115200

Is that the right location for your rootfs?  I'm not sure what the
device is supposed to be (I'm not using SD or 2.4), but didn't you
copy your kernel image to partition 1 of the SD card?

> Mounted devfs on /dev
> sdcard0: Technologic Systems SD card controller, address 0x13000000
> sdcard0: card size 1984000 sectors

Good, looks like the SD card driver is working and finds the card.  Is
that number of sectors right?

> Partition check:
>  sdcard0a: p1 p2 p3
> >> Booting Linux...
> Usage: init�
>
>
>
> Thanks for the help so far, I'm not sure what to try next.

Can you replace your custom kernel with the stock TS kernel, and boot
using your same methods as above?  If it boots, dump the log somewhere
and compare it to the boot log above.  Also, a diff of the config
files (yours and stock TS-11) may give some clues.

Regards, ...... Charlie

>
>
>
>
>     > > >
>     > > > #using the unzipped kernel from
>     > > >
>     > >
>     > >
>
>
ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/sources/tskernel-2.4.26-ts11-src.tar.gz
>     > >
>     >
>     >
>     > > #edit the Makefile to set CROSS_COMPILE correctly
>     > > > make ts7260_config
>     > > > make oldconfig
>     > > > make dep
>     > > > make bzImage # can't make vmlinux target as it ends up too big
>     > > for
>     > >
>     > > Try just 'make zImage' here. Then the boot image is in
>     > > arch/arm/boot/zImage.
>     > >
>     >
>     >
>     > OK, made the zImage target this time, didn't seem to make any
>     differences.
>     >
>     >
>     > >
>     > >
>     > > Regards, .... Charlie
>     > >
>     > > > partition 1
>     > > > make modules_install INSTALL_MOD_PATH=/home/sean/modules/
>     > > > make modules INSTALL_MOD_PATH=/home/sean/modules/
>     > > > cd /media/disk-1/lib/modules/
>     > > > sudo cp -a /home/sean/modules/lib/modules/2.4.26-ts11/ .
>     > > > sudo dd if=linux24/arch/arm/boot/zImage of=/dev/sdc1 # the SD
>     > > card
>     > > > is /dev/sdc on my host machine
>     > > >
>     > >
>     >
>     > >
>
>     Regards, ........ Charlie
>



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
    
    

<*> 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