ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: Recompiling kernel for TS-7260
From: sean <>
Date: Fri, 26 Sep 2008 09:43:08 -0700
Hi Charles,

On Fri, Sep 26, 2008 at 6:17 AM, charliem_1216 <> wrote:

    Hi Sean --


    --- In m("yahoogroups.com","ts-7000");">, sean <> 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 <>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.
 
    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?

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:

>> 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.
zone(2): 0 pages.
On node 1 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 2 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 3 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 4 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 5 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 6 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 7 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 16 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 17 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 18 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 19 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 20 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 21 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 22 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
On node 23 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/mtdblock1 console=ttyAM0,115200
Console: colour dummy device 80x30
Calibrating delay loop... 99.94 BogoMIPS
Memory: 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB 8MB = 128MB
total
Memory: 121724KB available (1208K code, 336K data, 72K init)
Dentry cache hash table entries: 16384 (order: 5, 131072 bytes)
Inode cache hash table entries: 8192 (order: 4, 65536 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 8192 (order: 3, 32768 bytes)
Page-cache hash table entries: 32768 (order: 5, 131072 bytes)
CPU: Testing write buffer: pass
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
devfs: v1.12c (20020818) Richard Gooch
devfs: boot_options: 0x1
ttyAM0 at MMIO 0x808c0000 (irq = 52) is a AMBA
ttyAM1 at MMIO 0x808d0000 (irq = 54) is a AMBA
ttyAM2 at MMIO 0x808e0000 (irq = 55) is a AMBA
pty: 1024 Unix98 ptys configured
Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ enabled
Real Time Clock Driver v1.10f
ep93xx_eth() version: ep93xx_eth.c: V1.0 09/04/2003 Cirrus Logic
RAMDISK driver initialized: 16 RAM disks of 12288K size 1024 blocksize
Searching for NAND flash...
NAND device: Manufacturer ID: 0xec, Chip ID: 0x75 (Samsung NAND 32MiB 3,3V 8-bit
)
Scanning device for bad blocks
Bad eraseblock 1992 at 0x01f20000
Using static partition definition
Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
0x00000000-0x00004000 : "TS-BOOTROM"
0x00004000-0x01d04000 : "Linux"
0x01d04000-0x02000000 : "RedBoot"
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.97 (double precision)
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 1024 blocks [1 disk] into ram disk... done.
Freeing initrd memory: 4096K
VFS: Mounted root (ext2 filesystem).
Mounted devfs on /dev
sdcard0: Technologic Systems SD card controller, address 0x13000000
sdcard0: card size 1984000 sectors
Partition check:
 sdcard0a: p1 p2 p3
>> Booting Linux...
Usage: initï



Thanks for the help so far, I'm not sure what to try next.




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

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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