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: "jamil_fawad" <>
Date: Mon, 17 May 2010 21:04:51 -0000

Hi,

I think may be your root file system is not properly set. You should format the 
compact flash with the command:  mkfs.ext2 -I 128 /dev/sdxx. Here -I 128 switch 
is important because otherwise, new distros set the inode size to 256 by 
default and the redboot can't read that. BTW I read this reason some where on 
this group, I don't remember where, so, sorry I am not giving due credit :). 
You should do the aforementioned steps if red boot can't find the kernel else 
read on :)

You can try specifying the root fs location by having root=/dev/sdaxx iirc.

Another thing, I forgot to mentions is that when you compiled the kernel, did 
you enable the modules for IDE ? CF card is connected by the IDE bus so make 
sure that the relevant module/driver is compiled into kernel. If you used the 
config file I supplied without any change then it should be compiled in by 
default.

I don't know much difference between hda and sda but new kernel use sda whereas 
hda is used by older kernel for the same device. So when specifying the kernel 
location to redboot, use hda and when specifying the root fs, use sda because 
this is where YOUR kernel will look for root fs.

Hope this helps

Regards
Jamil Haider



> Hi
>
> This is where I get confused actually. My compressed vmlinux is 1.7 MB, and
> uncompressed is about 30 MB,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.
>
> 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.
>
> 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.
>
> 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