ts-7000
[Top] [All Lists]

[ts-7000] Re: 2.6.29-ts on TS-7260

To:
Subject: [ts-7000] Re: 2.6.29-ts on TS-7260
From: "Clark" <>
Date: Fri, 11 Feb 2011 20:48:25 -0000
Good Don, I am glad.

I made a snapshot, and put up an image of my card here:

http://www.quakefinder.com/smf/index.php/topic,1144.msg1680.html#msg1680

Cautionary disclaimer:

This SD image has much on it that you won't want for a production image:  gcc & 
kernel build; kernel tree; TS sample code, etc.  And it is given with 
absolutely no warranty by a newbie.  You have been warned.  Anyway I hope it 
helps.  Root password is:

h0m3r$1mps0n

'su qf' gets you to the kernel tree.

I hope it helps

- Clark

--- In   wrote:
>
> Clark et al, I was able to get a bootable image-kernel combination by
> using
> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/sources/tskernel-2.6.29-ts-src.tar.gz
> together with
> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/binaries/ts-images/512mbsd-7400-linux2629-lenny-eabi.dd.bz2,
> as I had originally attempted.  The only difference was I used the
> arch/arm/configs/ts7400_defconfig config file, rather than my 2.6.21-ts
> config file for the TS-7260.  I was hesitant to use this config file,
> since I am using a TS-7260, not a TS-7400, but it boots!
> 
> Clark, do you use any of TS's peripheral boards with yours?
> 
> Don
> > Sorry Don, Shoot!
> > The root fs is on the SD card is how.
> >
> > This may be your problem:
> >
> > I noticed that the previous modules were in
> >> /lib/modules/2.6.29-ts/, and the new modules were put into
> >> /lib/modules/2.6.29.1-m/.
> >
> > Yes, you are building a different kernel than the one on the card.  I have
> > switched back and forth, looks like I went back to the old TS tree last
> > week to try and get as close to factory configuration as possible to push
> > the parallel port project through.
> >
> > I know that if the kernel loads modules during boot from a different
> > kernel tree, there can be problems and if it is a different ABI, there
> > will be helltoupee.
> >
> > Here is my kernel command line:
> >
> > Kernel command line: root=/dev/ram0 rw init=/linuxrc lpj=498688
> > console=null
> >
> > I had terrible luck with nfs root, it just wasn't stable.  Our IT person
> > bought me a 100BaseT switch claiming that the auto-negotation of the host
> > was Gigy and this does not work well with a target at 100BaseT.  My
> > reaction to this was "BS!", but the switch proved he was right somehow.
> > Gave me the creeps.
> >
> >
> > --- In  dtucker@ wrote:
> >>
> >> > You should have exactly
> >> > FIVE
> >> > steps:
> >> >
> >> > 1. Create and verify bootable 2GB copy of that 512MB 2.6.29 dd image.
> >> DONE. Checked the command line used by "cat /proc/cmdline" and found
> >> that
> >> it used "root=/dev/ram0 rw init=/linuxrc lpj=498688 console=null"
> >> > 2. Download/Patch kernel source, edit top-level kernel Makefile to
> >> > point CROSS_COMPILE at your toolchain
> >> DONE.
> >> > 3. Build kernel 'make ts72xx_def', 'make' and 'make
> >> > modules_install' (syntax below)
> >> DONE.  Used the file 'ts72xx_eabi_full_defconfig' during the first step,
> >> as that was provided with the patches.
> >> > 4. Insert 2GB SD card into reader and dd kernel to partition two
> >> DONE.
> >> > 5. cp modules directory to partition four, replacing the prior
> >> > modules dir, unmount, remove card
> >> DONE.  Although, I noticed that the previous modules were in
> >> /lib/modules/2.6.29-ts/, and the new modules were put into
> >> /lib/modules/2.6.29.1-m/.
> >> >
> >> > That's it, nothing else.
> >>
> >> Upon booting, I get rolling reboots, with the boot messages ending in:
> >>
> >> IP-Config: Guessing netmask 255.255.255.0
> >> IP-Config: Complete:
> >>      device=eth0, addr=192.168.1.50, mask=255.255.255.0,
> >> gw=255.255.255.255,
> >>      host=192.168.1.50, domain=, nis-domain=(none),
> >>      bootserver=255.255.255.255, rootserver=192.168.1.48, rootpath=
> >> Looking up port of RPC 100003/2 on 192.168.1.48
> >> PHY: 0:01 - Link is Up - 100/Full
> >>
> >>
> >> >> TS-SDBOOT - built Aug 10 2009
> >> >> Copyright (c) 2007, Technologic Systems
> >>
> >> It seems to me it is looking for the rootserver, which of course is not
> >> there, and then it craps out and reboots.  I don't understand how you
> >> were
> >> able to follow that procedure and have things work unless you also set
> >> up
> >> a root file system via NFS.  If you are the author of the Quakefinder
> >> HOWTO, that you ARE using NFS, which is why it is able to work for you.
> >> Even when I change the root command line to what it was in the
> >> 512mbsd-7400-linux2629-lenny-eabi.dd, I still get rolling reboots.
> >>
> >> Don
> >> >
> >> >
> >> > On Feb 10, 2011, at 4:09 PM, Don Tucker wrote:
> >> >
> >> >> Thanks, Clark. I am using the crosstool-linux-gnueabi-2005q3-2.tar.gz
> >> >> for my crosstool chain. It extracts to
> >> >> |arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-
> >> >>
> >> >> Well, I retried with the ts7200_eabi_full_defconfig, but had the same
> >> >> problem. I've ran into this problem many times trying to boot without
> >> >> using an NFS root file system, but I don't know what to change to
> >> make
> >> >> it work.
> >> >>
> >> >> Don
> >> >> |
> >> >> On 2/10/2011 5:44 PM, Clark wrote:
> >> >>>
> >> >>> Err, one more point. I have built both of these kernels many times,
> >> >>> never had your problem. One thing that did give me the rolling
> >> >>> re-boots was when I used the wrong gcc (4.x.x.). I settled on TS'
> >> >>> toolchain, 3.3.4 eabi.
> >> >>>
> >> >>> --- In  <ts-7000%40yahoogroups.com>,
> >> >>> Clark Dunson <cdunson@> wrote:
> >> >>>>
> >> >>>> Good luck. I've never seen that rolling reboot you describe
> >> >>>> with any kind of kernel panic, maybe I am just lucky. That is
> >> >>>> why I focussed on the disc particulars in my last post. If you
> >> >>>> want my default image, tell me where I can copy a 2GB image
> >> >>>> to and it's yours.
> >> >>>>
> >> >>>> 
> >> >>>>
> >> >>>>
> >> >>>> On Feb 10, 2011, at 3:22 PM, Don Tucker wrote:
> >> >>>>
> >> >>>>> Thanks, Clark. I was using TS's 2.6.290-ts kernel source, but
> >> >>>>> I'll try
> >> >>>>> the mainline 2.6.29 kernel with Matthieu's patchset to see if that
> >> >>>>> works
> >> >>>>> any better. My main fear in using non-TS stuff is that I will need
> >> >>>>> drivers for the PC/104 bus to use COM ports on that for the
> >> TS-GSM1
> >> >>>>> and
> >> >>>>> drivers for the TS-ETH2 as well. Hopefully, those will be in
> >> there.
> >> >>>>>
> >> >>>>> Don
> >> >>>>>
> >> >>>>> On 2/10/2011 5:15 PM, Clark Dunson wrote:
> >> >>>>>>
> >> >>>>>> Hi Don. I used the 512mbsd-7400-linux2629-lenny-eabi.dd image,
> >> >>>>>> and the first thing I did was transfer that image to a 2GB card
> >> >>>>>> and
> >> >>>>>> make sure it works with dd & bs=2048. Then I enlarged the fourth
> >> >>>>>> partition to fill the card. That gave me: my2GB-linux2629-lenny-
> >> >>>>>> eabi.dd,
> >> >>>>>> which I used as an image from then on.
> >> >>>>>>
> >> >>>>>> Then I took the 2.6.29 kernel source from www.kernel.org, and
> >> >>>>>> applied
> >> >>>>>> Matthieu's patchset to it. Then I used the default
> >> >>>>>> configuration for
> >> >>>>>> TS-7260
> >> >>>>>> as a starting point.
> >> >>>>>>
> >> >>>>>> You'll have to look into arch/arm/config to see the ones Matthieu
> >> >>>>>> added, think
> >> >>>>>> it was 'make ts7260_def_config' but I could be off a few
> >> >>>>>> letters on
> >> >>>>>> spelling the
> >> >>>>>> make target.
> >> >>>>>>
> >> >>>>>> The whole thing is tricky.
> >> >>>>>> I use standard a USB card reader.
> >> >>>>>>
> >> >>>>>> The kernel insertion:
> >> >>>>>>
> >> >>>>>> dd if=/arch/arm/boot/zImage of=/dev/sde2 bs=2048
> >> >>>>>>
> >> >>>>>> is safe. But you must make darn sure to unmount the
> >> >>>>>> auto-mounted /dev/sde1 /cdv/sde2, and /dev/sd4 BEFORE
> >> >>>>>> using dd on these other partitions! Running fsck on them
> >> >>>>>> occasionally
> >> >>>>>> from the host machine is not a bad idea!
> >> >>>>>>
> >> >>>>>> I finally resorted to using the make modules_install target in
> >> the
> >> >>>>>> kernel and directing
> >> >>>>>> the build to copy the modules to a neutral location:
> >> >>>>>>
> >> >>>>>> sudo -E make modules_install
> >> INSTALL_MOD_PATH=/home/qf/Desktop/bbb
> >> >>>>>>
> >> >>>>>> and then
> >> >>>>>>
> >> >>>>>> sudo cp -r /home/qf/Desktop/bbb/lib/modules/ /media/disk-2/lib/
> >> >>>>>>
> >> >>>>>> Then each of the three mounted partitions must be manually
> >> >>>>>> unmounted,
> >> >>>>>> or you
> >> >>>>>> are asking for trouble: sudo umount /dev/sde1, etc. (sde4 takes
> >> >>>>>> ~30
> >> >>>>>> seconds
> >> >>>>>> to unmount)
> >> >>>>>>
> >> >>>>>> Best.
> >> >>>>>>
> >> >>>>>> On Feb 10, 2011, at 2:45 PM, Don Tucker wrote:
> >> >>>>>>
> >> >>>>>>> Thanks, Clark. Yes, it is a 2GB SD card, and yes, I do use the
> >> >>>>>>> bs=2048
> >> >>>>>>> option. I can get the 512mbsd-7400-linux2629-lenny-eabi.dd
> >> >>>>>>> <ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/binaries/ts-
> >> >>>>>>> images/512mbsd-7400-linux2629-lenny-eabi.dd.bz2>
> >> >>>>>>> image to boot, but not after rebuilding the kernel. Do you have
> >> a
> >> >>>>>>> default config file for the TS-7260 with the 2.6.29-ts kernel
> >> >>>>>>> that you
> >> >>>>>>> can point me toward?
> >> >>>>>>>
> >> >>>>>>> Don
> >> >>>>>>>
> >> >>>>>>> On 2/10/2011 3:59 PM, Clark Dunson wrote:
> >> >>>>>>>>
> >> >>>>>>>> Yes Don,
> >> >>>>>>>>
> >> >>>>>>>> Are you on a 2GB SD card?
> >> >>>>>>>> Be sure you include the bs=2048 option to dd every single
> >> >>>>>>>> time you
> >> >>>>>>>> write to a 2GB SD card.
> >> >>>>>>>> I have replaced the kernel many times without trouble using
> >> >>>>>>>> dd in
> >> >>>>>>>> this
> >> >>>>>>>> manner.
> >> >>>>>>>> That rolling reboot you describe happens here when I don't do
> >> it
> >> >>>>>>>> right.
> >> >>>>>>>>
> >> >>>>>>>> On Feb 10, 2011, at 1:48 PM, Rekcut_Nod wrote:
> >> >>>>>>>>
> >> >>>>>>>>> Has anyone managed to get this combination running? I tried
> >> >>>>>>>>> to get
> >> >>>>>>>>> this image
> >> >>>>>>>>>
> >> >>>>>>>>> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/binaries/ts-
> >> >>>>>>>>> images/512mbsd-7400-linux2629-lenny-eabi.dd.bz2
> >> >>>>>>>>>
> >> >>>>>>>>> to boot with a rebuilt kernel using this source
> >> >>>>>>>>>
> >> >>>>>>>>> ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-linux/sources/
> >> >>>>>>>>> tskernel-2.6.29-ts-src.tar.gz
> >> >>>>>>>>> <ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7260-li%21%0A%20nux/
> >> >>>>>>>>> sources/tskernel-2.6.29-ts-src.tar.gz>
> >> >>>>>>>>>
> >> >>>>>>>>> and a config file that I used with a 2.6.21-ts kernel, but
> >> >>>>>>>>> the the
> >> >>>>>>>>> resulting SD card just keeps rebooting after the second '.'
> >> >>>>>>>>> following
> >> >>>>>>>>> the "TS-BOOT" message.
> >> >>>>>>>>>
> >> >>>>>>>>> I am only considering doing this because the 2.6.21-ts
> >> >>>>>>>>> driver for
> >> >>>>>>>>> the
> >> >>>>>>>>> TS-ETH2 card (ax88796b) seems to have issues. :(
> >> >>>>>>>>>
> >> >>>>>>>>> Don
> >> >>>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>>
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>> ------------------------------------
> >> >>>>>>>
> >> >>>>>>> Yahoo! Groups Links
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>>
> >> >>>>>>
> >> >>>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>> ------------------------------------
> >> >>>>>
> >> >>>>> Yahoo! Groups Links
> >> >>>>>
> >> >>>>>
> >> >>>>>
> >> >>>>
> >> >>>
> >> >>>
> >> >>
> >> >>
> >> >> ------------------------------------
> >> >>
> >> >> Yahoo! Groups Links
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >>
> >
> >
> >
>




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

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