ts-7000
[Top] [All Lists]

[ts-7000] Re: Where do I install a new kernel?

To:
Subject: [ts-7000] Re: Where do I install a new kernel?
From: "basement_mobile2004" <>
Date: Thu, 06 Mar 2008 15:04:15 -0000
Hi Ray,

        I'm starting using the TS-7400 now and I'm having the same
problems that you got into when you started this thread. Do you have
any documentation for doing what you did?

Thank you.

--- In  "Ray" <> wrote:
>
> Thanks for the reply, 
> 
> I now have everything running nicely, I just commented out the sdcard
> stuff when I compiled the kernel. and manually copied the sdcard.o
> into /lib/modules, So after 4 days(!) now have rtai/lxrt up and going.
> I am just running a 500us clock task that drives 20 channels of pwm
> on the DIO lines. pwm period is slow (20ms) but more than adequate 
> for my application. No jitter, rock solid. cpu 80% idle. lovely
> 
> Everything now boots off the sdcard, which means I distribute a bit 
> easier. Changed to ext3, had to compile ext3 into kernel. Cuts down
> on fsck's
> 
> the project is an artwork that will be installed in october this
> year see...  http://www.oribotics.net
> 
> Being new to the TS7400, I have to say it's a beautiful thing to 
> be able to have a full development system running on such a small
> target. Everything was compiled on target, no cross compiles.
> 
> Very Happy.... now sleep...
> 
> Regards
> Ray
> 
> --- In  Eddie Dawydiuk <eddie@> wrote:
> >
> > Hello,
> > 
> > > It appears that the sdcard.o won't load with my kernel
> > > on /dev/sda1, swap back to the default ts7400 kernel on
> > > /dev/sda1 and hey presto. it boots!  :-) 
> > 
> > Whats the error when you try to load sdcard.o? It may be as simple as 
> > adding the -f option to the insmod command if insmod is complaining 
> > sdcard.o was compiled for a different kernel.
> > 
> > > Now, how do I compile sdcard.o for my kernel, or better
> > > make it compiled into the kernel, not as a module.
> > 
> > The SD card driver is only available as a binary module. The reason 
> > being is Technologic Systems had to sign an NDA to join the SD 
> > association which gave them access to the SD card specs. Part of the
> NDA 
> > stated no source code can be shared that is used to access the SD
card. 
> > Due to these constraints Technologic Systems can only provide binary 
> > drivers for the SD card. Although keep in mind there is a sdcore.o 
> > library(OS independent driver) available that has the read, write,
and 
> > initialization routines for the SD 
> > card(ftp://oz.embeddedarm.com/sd/sdcore/). The sdcore.h provides the 
> > signatures for these 
> > functions(ftp://oz.embeddedarm.com/sd/sdcore/sdcore.h). There are .o 
> > files for gcc(ftp://oz.embeddedarm.com/sd/sdcore/gcc/sdcore.o) as
well 
> > as IAR(ftp://oz.embeddedarm.com/sd/sdcore/iar/sdcore.o).
> > 
> > > Any suggestions for which direction next...
> > 
> > Add the -f option to the insmod command when you load the SD driver.
> > 
> > -- 
> > Best Regards,
> > ________________________________________________________________
> >   Eddie Dawydiuk, Technologic Systems | voice:  (480) 837-5200
> >   16610 East Laser Drive Suite 10     | fax:    (480) 837-5300
> >   Fountain Hills, AZ 85268            | web: www.embeddedARM.com
> > 
> > > 
> > > --- In  "Ray" <etheira@> wrote:
> > >> At last I think I get it.
> > >>
> > >> What I think is happening is the initrd on the sd image
> > >> is actually for the 7300 ( I have 7400 ) doh!
> > >>
> > >> If I just dd the default ts7400 initrd to the sd 
> > >>          dd if=ts7400-initrd.dd of=/dev/sda2
> > >>
> > >> I get past the hanging TS-SDBOOT, but still no boot..
> > >> It doesn't appear to be mounting /dev/sdcard0/disc0/part3
> > >>
> > >> Ah well, one step closer.....
> > >>
> > >>
> > >>
> > >>
> > >> --- In  "Ray" <etheira@> wrote:
> > >>> Hi Frank, 
> > >>> You are correct, the bootrom just kicks things off, the
> following link
> > >>> explains a bit more what I am trying to get working.
> > >>>
> > >>> http://www.embeddedarm.com/epc/fastboot.htm
> > >>>
> > >>> The issue I have boiled it down to is that after doing a bootrom
> > >>> update using the -s option as described in the above docs, the 
> > >>> board fails to boot. Just hangs after the 3 dots. I am still
working
> > >>> through how to use the bootload (actually bootload_static).
> > >>>
> > >>> Ray
> > >>>
> > >>> --- In  "Frank Pagliughi" <fpagliughi@>
> wrote:
> > >>>> Actually, I don't believe that the TS-BOOTROM is sophisticated
> > > enough
> > >>>> to load and run the kernel. Is it? Normally the TS-BOOTROM just
> > >>>> initializes a few things, runs RedBoot, and RedBoot then
loads and
> > >>>> runs the kernel.
> > >>>>
> > >>>> So I thinks you may want to see if you can get RedBoot to
load the
> > >>>> kernel from the SD Card, and then execute it. 
> > >>>>
> > >>>> I'm not sure if RedBoot recognizes the SD Cards. I know that
on the
> > >>>> 7200 it recognizes the CF card, and can load the kernel from
there.
> > >>>> From the RedBoot command line there is a 'disks' command that
will
> > >>>> give a list of the "drives" it recognizes. 
> > >>>>
> > >>>> Unfortunately, the 'disks' command may not be compiled into the
> > >>>> version of RedBoot that comes pre-installed on the board, so
> you may
> > >>>> need to recompile RedBoot from sources.
> > >>>>
> > >>>> But that seems like an awful lot of work. It might be easier to
> > >>>> compile a new kernel, install it into the flash, then have
RedBoot
> > >>>> load & execute that one using the file system on the SD Card.
> > >>>>
> > >>>>
> > >>>> Frank
> > >>>>
> > >>>> --- In  "Ray" <etheira@> wrote:
> > >>>>> Thanks for the suggestion, I wasn't planning to use redboot.
> > >>>>>
> > >>>>> Ideally I would like the kernel to be on 
> > >>>>> the sd card, the default kernel loads from flash and I thought
> > >>>>> it would look for /vmlinux.bin and bootload that, from what 
> > >>>>> I can glean from the docs the TS7400 has TS-FASTBOOT not
TS_SDBOOT
> > >>>>> firmware. 
> > >>>>>
> > >>>>> When I try to update the TS-BOOTROM using ..
> > >>>>>
> > >>>>>         tsbootrom-update -s -m <mac address> 
> > >>>>>
> > >>>>> Then it hangs on boot after the 3 dots, I have to swap
> > >>>>> back to TS-FASTBOOT using 
> > >>>>>         tsbootrom-update -f 
> > >>>>>
> > >>>>> to get it booting again.
> > >>>>>
> > >>>>> I suspect that the tsbootrom-update is installing a
> > >>>>> TS-SDBOOT for the TS-7300 but I really am flying blind here
> > >>>>>
> > >>>>> I am going to try playing around with bootload for a bit
> > >>>>> to see if I can grab it before it chroot's to the sd, but 
> > >>>>> that means the kernel will be in on-board flash.
> > >>>>>
> > >>>>> Ray 
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>> --- In  "tedapt" <tedapt@> wrote:
> > >>>>>> Haven't done this myself, but I think you want to delete
the old
> > >>>>>> kernal from flash and write the new one.  See p9 or the Linux
> > >>> for ARM
> > >>>>>> on TS-72XX User's Guide.  
> > >>>>>>
> > >>>>>> You'll probably first need to get to the RedBooot shell at
> > > startup
> > >>>>>> (ctrl-c), load the new kernal from an HTTP or NFS server (I
> > >> did that
> > >>>>>> following instructions, not too hard, note the option for HTTP
> > >> port#
> > >>>>>> is -p <portnum>).  Then delete old, write new kernal.
> > >>>>>>
> > >>>>>> --- In  "Ray" <etheira@> wrote:
> > >>>>>>> Apologies for this,
> > >>>>>>>
> > >>>>>>> It seems like a really DUMB question, but I have scoured the 
> > >>>>>>> documentation and failed to find a definitive answer.
> > >>>>>>>
> > >>>>>>> I am running the debian sd card installation. on TS7400 and 
> > >>>>>>> I wish to install a new kernel, where do I install it?
> > >>>>>>>
> > >>>>>>> What I have tried already , is as follows.
> > >>>>>>>
> > >>>>>>> 1. with an sd card reader on another computer...
> > >>>>>>>    dd if=<new kernel> of=/dev/sda1
> > >>>>>>>
> > >>>>>>> 2. copied to /vmlinux.bin on sd card
> > >>>>>>>
> > >>>>>>> I know it's a really stupid question, but I'm afraid I can't
> > >>> unravel
> > >>>>>> the 
> > >>>>>>> different board versions and myriad of boot
> > >>> options...documentation 
> > >>>>>>> keeps moving about on the ftp server... 
> > >>>>>>>
> > >>>>>>> I should qualify the above, in case it sounds critical, I
> > > really
> > >>>> love
> > >>>>>>> the TS7400 and already have my application up and running
> > > after
> > >>>> only 
> > >>>>>>> a week. It really is a very nice little system.
> > >>>>>>>
> > >>>>>>> Now where do I put this kernel...  (be nice)
> > >>>>>>>
> > > 
> > > 
> > > 
> > > 
> > >  
> > > 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>
  • [ts-7000] Re: Where do I install a new kernel?, basement_mobile2004 <=
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