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: Jim Jackson <>
Date: Mon, 17 May 2010 22:50:39 +0100 (BST)


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