ts-7000
[Top] [All Lists]

[ts-7000] Re: config file for TS7200 and linux kernel 2.6.29 ?

To:
Subject: [ts-7000] Re: config file for TS7200 and linux kernel 2.6.29 ?
From: "j.chitte" <>
Date: Tue, 18 May 2010 06:45:34 -0000

--- In  Balaji Ravindran <> wrote:
>
> Hi,
>
> Thanks for the clarification.
>
> Yes, actually, i didn't mean to say 30 MB of bloated kernel is fine in terms 
> of running other applications, i just meant to say, it should still fit in 
> the SD RAM.
>
> Anyways, figured out the problem(s).
>
> 1. for the 32 MB vmlinux image ---> it was because of "Compile debug Kernel 
> option = y" :) disabled that first, and now i have a somewhat OK size kernel 
> 4.2 MB uncompressed. I can still reduce it if i modularize some more stuffs
>


a sufficient zImage is about 1.6MB.

> 2. Dunno if this exactly is a problem, but i was using gparted to create and 
> format my partitions, and maybe thats one of the things. I switched to the 
> good old fdisk and mkfs, and it worked immediately,
>

gparted is a excellent tool but as you have seen you need to know exactly what 
is happening when doing this sort of work. Avoid any GUI tools and stick to 
command line.


> 3. Another weird thing i faced was, when i simply mount my CF card, and 
> without replacing any other components in the file syste, i just copied the 
> new kernel modules and vmlinux image, and it was __not__working that way. 
> Maybe i'm wrong, but i copied the entire rootfile system fresh on the CF 
> drive, it works charming. Is anyone else having this weird problem?
>


Some advice when seeking help:

If you want other to help they need to know _exactly_ what you did , not some 
kind of narrative. Give actual commands and any relevant output , not chat.


regards

> Anyways...Thanks all for helping me with all this. I have my linux working 
> from my CF card now.
>
> --- On Mon, 5/17/10, Jim Jackson <> wrote:
>
> From: Jim Jackson <>
> Subject: Re: [ts-7000] Re: config file for TS7200 and linux kernel 2.6.29 ?
> To: 
> Date: Monday, May 17, 2010, 9:50 PM
>
>
>
>
>
>
>
>  
>
>
>
>  
>
>
>    
>      
>      
>      
>
>
>
> On Mon, 17 May 2010, Balaji Ravindran wrote:
>
>
>
> > Hi
>
> >
>
> > This is where I get confused actually. My compressed vmlinux is 1.7 MB, and
>
> > uncompressed is about 30 MB,
>
>
>
> I doubt it!
>
>
>
> > so basically when I load the compressed one,
>
> > kernel gets uncompressed to 30 MB, so that should be fine given the fact
>
> > that I have 32 MB SDRAM on my TS7200.
>
>
>
> "that should be fine" you have got to be joking. If your kernel takes 30M
>
> of 32M that would only leave 2M for any programs to run in!
>
>
>
> > Now, when it comes to compact flash. I have formatted my CF to ext2 (using
>
> > gparted), and I mount it, and copy the debian rootfs to my mounted
>
> > partition.
>
>
>
> Please see jamil comments below. It could be that it couldn't be mounted
>
> because of some incompatibility. To test it, boot your board using the
>
> onboard flash kernel and root filesystem (the default setup). Login
>
> as root and
>
>
>
> # mkdir /mnt
>
>   # mount -t ext2 /dev/hda1 /mnt
>
>
>
> If the mount fails, there should be an error message that might provide
>
> more information. If the mount succeeds... then there's something else
>
> wrong.
>
>
>
> >
>
> > Yesterday a weird error happened, if I copy paste, my mail goes to sppam, so
>
> > I will just type here.
>
> >
>
> > It said, Kernel Panic ? failed to mount root file system using ext3, ext2,
>
> > mtdblock1
>
> >
>
> > Before this line, I saw the log saying it identified my SanDisk CF, and
>
> > found hda1.
>
> >
>
> > Now, the question is, in my Host(where I compile my kernel), my CF is
>
> > mounted as sdb1. And in my target(ts-7200) is it sdb1 ? Or hda1 ? Whats the
>
> > difference basically? Why does it use different block device file system
>
> > names.
>
>
>
> Different version of the kernel. In recent kernels, late 2.6 versions,
>
> there has been a move to making all mass storage devices appear as if they
>
> were SCSI devices - hence sdb1 - "s"csi "d"evice "b" partition 1
>
>
>
> In the older 2.4 kernel ide disk partitions where hdxn, I presume "h"ard
>
> "d"isk "x" partition "n".
>
>
>
> >
>
> > Thanks
>
> >
>
> > Balaji R
>
> >
>
> >
>
> > On 5/17/10 7:32 AM, "jamil_fawad" <> wrote:
>
> >
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >> Hi Balaji,
>
> >>
>
> >> What is your vmlinux size ? I suppose it should be less than 2mb because
>
> >> otherwise it doesn't boot perhaps because it takes more space after
>
> >> uncompressing than is available. Secondly check that you have setup your 
> >> root
>
> >> filesystem properly ? I used compact flash partitioned into a boot
>
> >> partition(mkfs.ext2 -I 128 /dev/sda1) and the rest for root file system
>
> >> (mkfs.ext3 /dev/sda2). What is your filesystem on CF.
>
> >>
>
> >> Regards,
>
> >> Jamil Haider
>
> >>
>
> >> --- In  <ts-7000%40yahoogroups.com> , Balaji
>
> >> Ravindran <dev4bala@> wrote:
>
> >>>>
>
> >>>> Hi Jamil,
>
> >>>>
>
> >>>> Weird, i tried your config file. It compiled successfully. No errors. I
>
> >>> copied the vmlinux in arch...arm....boot..compressed and tftp copied it 
> >>> to my
>
> >>> TS7200, and executed it. It did uncompressing linux, and did not proceed 
> >>> any
>
> >>> further. No error nothing. What could be the problem? Has anyone 
> >>> encountered
>
> >>> this before?
>
> >>>>
>
> >>>> Raw file loaded 0x00218000-0x00406307, assumed entry at 0x00218000
>
> >>>> RedBoot> exec -c "console=ttyAM0,115200 root=/dev/hda1"
>
> >>>> Using base address 0x00218000 and length 0x001ee308
>
> >>>> Uncompressing
>
> >>> Linux........................................................................
>
> >>> ........................
>
> >>>>
>
> >>>> Thanks
>
> >>>>
>
> >>>> Balaji R
>
> >>>>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >>
>
> >
>
> >
>




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

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