ts-7000
[Top] [All Lists]

Re: [ts-7000] /dev/mtdblock partion order

To:
Subject: Re: [ts-7000] /dev/mtdblock partion order
From: Per Öberg <>
Date: Thu, 19 Oct 2006 18:54:02 +0200
Thank You Michael for your answer.

Ok, I think i understand what "fis list" does. I am still a little
confused however about the ordering of the partitions in /dev/mtdblock.
 The 30Mb Linux partition is /dev/mdtblock/1 but it's the second in the
list the kernel gives me. (just after the message "Creating 3 MTD
partitions ..."). It would be natural to assume that the partition named
"TS-BOOTROM" was /dev/mtdblock/1 and "Linux" mtdblock/2 while Reedboot
is /dev/mtdblock/3 but that does not seem to be the case.

What are on the other 2 partitions and is it safe to modify them (with
something appropriate of course, basically: how screwed  am I if i mess
those up?)



Regards
Per Öberg


Michael Schmidt wrote:
>
>
>
>
>> Hi, everyone!
>>
>> I'm a bit confused about the flash chip and the partitions on it so i'm
>> hoping than someone out there knows what is what.
>>
>> During normal boot '/dev/mtdblock1' is used as boot device. After a
>> NFS-boot I can mount /dev/mtdblock/1 which is then equal to the content
>> of the '/dev/mtdblock1' partiton. This indicates that the ~30Mb linux
>> device is actuallt partition1 of the flash device.
>>
>> In the documentation and from the boot messages from the kernel the
>> following information is given.
>>>> Creating 3 MTD partitions on "NAND 32MiB 3,3V 8-bit":
>>>> 0x00000000-0x00004000 : "TS-BOOTROM"
>>>> 0x00004000-0x01d04000 : "Linux"
>>>> 0x01d04000-0x02000000 : "RedBoot"
>> This indicates that 256Kb is "TS-BOOTROM", ~30Mb is for "Linux" and ~2Mb
>> is RedBoot.
>>
>> From "fis list" i get the following:
>>>> (reserved) 0x60000000 0x60000000 0x01D04000 0x00000000
>>>> RedBoot 0x61D04000 0x61D04000 0x00040000 0x00000000
>>>> vmlinux 0x61D44000 0x00218000 0x000A8000 0x00218000
>>>> RedBoot config 0x61FF8000 0x61FF8000 0x00001000 0x00000000
>>>> FIS directory 0x61FFC000 0x61FFC000 0x00004000 0x00000000
>> Which indicates that, flash adress space starts at 1.5Gb, first we
>> have ~30Mb reserved space, then 256Kb RedBoot followed by 670Kb vmlinux
>> and the 4Kb of RedBoot config and 16Kb of FIS directory.
>>
>> I'm confused, how are all these figures connected?
>
> The fis list basically is a breakdown of files stored the "RedBoot"
> partition relative to the MTD partition list. However the fis list has some
> knowledge of the entire flash, hence the "(reserved)" space in "fis list",
> which specifies the area of flash outside of RedBoot. Because of the way
> RedBoot addresses flash memory, 0x60000000 is the start of the flash, so
> you
> will notice that "RedBoot" in the "fis list" starts at the same offset
> as it
> does in the MTD partition list when you take this into account.
>
>> Regards Per Öberg
>
> Regards,
> Michael
>

--
Per Öberg, Ph.D. Student
Address: Division of Vehicular Systems
Department of Electrical Engineering
Linköpings universitet
581 83 Linköping, SWEDEN
Phone: +46 (0)13-28 23 69
e-mail: 




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