ts-7000
[Top] [All Lists]

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

To:
Subject: Re: [ts-7000] Re: config file for TS7200 and linux kernel 2.6.29 ?
From: Balaji Ravindran <>
Date: Mon, 17 May 2010 17:11:40 -0700 (PDT)


Hi Jamil,

Yea, Got it working :). Thanks, -I128 switch was the key i guess, since i was using gparted, i guess by default it used the 256 switch, and so my flash card was not mounting properly i suppose, i did this, and it worked charming.

Thanks again.


Thanks

Balaji R

--- On Mon, 5/17/10, jamil_fawad <> wrote:

From: jamil_fawad <>
Subject: [ts-7000] Re: config file for TS7200 and linux kernel 2.6.29 ?
To:
Date: Monday, May 17, 2010, 9:04 PM

 



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 <mailto: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
> >> >
> >
> >
> >
> >
> >
>




__._,_.___


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