[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: [microblaze-uclinux] uclinux boots using the image stored in





hi jozsef , erwin

 thanks for your clarification...

well.. as of now..we are hardcoding the address of the /dev/mtd6 partition in the bootloader code...I guess thats what you wanted to know...the bootloader code just starts copying whatever is stored at this address(..onwards) into RAM..

Cheers

V.Anand
(www.tenet.res.in)












On Thu, 12 Aug 2004, anand_12 wrote:
>
>>   Thanks once again to all help from these two lists,we crossed another
>> milestone today.Our board(uclinux+microblaze(spartan 2E)) now is fully
>> and completely a self booting machine on the network..we have the
>good news.. :) it never as good as the first time...
>
>
>> /bin> cat /proc/mtd
>> dev:    size   erasesize  name
>> mtd0: 0003d000 00001000 "RAM"
>> mtd1: 00020000 00004000 "Bootloader"
>> mtd2: 00020000 00020000 "Bootargs"
>> mtd3: 00020000 00020000 "MAC"
>> mtd4: 00080000 00020000 "Config"
>> mtd5: 00020000 00020000 "Spare"
>> mtd6: 00200000 00020000 "Image"
>> mtd7: 00500000 00020000 "JFFS2"
>> mtd8: 00800000 00020000 "Flash"
>> mtd9: 0003d000 00001000 "Romfs"
>> /bin>
>>
>> we have 8MB flash -> mtd1+....mtd7
>>         mtd0,mtd9 -> ??
>>        mtd8 -> i suppose gives the possibility of erasing
>>                the entire chip in one single shot..contents
>>                i mean..:-)..??
>you are right about mtd8.  mtd0 and mtd9 occupies the same area, i guess
>this mtd partition resides in the ram, and as it says it contains the
>romfs.
>
>the romfs is bundeled with the kerenel image in flash, and gots copied
>at boot time to a separate place. if you modifiy the filesystem the
>size of the mtd[09] partition might change.
>
>>  moreover..we were going wrong here...as you might have seen in my earlier postings..we were computing the starting address of /dev/mtd6 by simply adding to the FLASH BASE ADDR
>> the sizes of the first five(0-5) partitions..but we figured out today that mtd0 does not contribute to the size actually....so in our case to we just had to add sizeof(mtd[1-5]) to the base address and things worked well...i might be getting the logic entirely wrong..please
>> clarify if this is the case...!!...
>yes, i think you should only add up the mtd[1..5] partitions.
>
>but actualy where does your bootloader look for the kernel image?
>
>
>-- 
>mazsi
>
>----------------------------------------------------------------
>strawberry fields forever!  jozsef.imrek@strawberry.dnsalias.org
>----------------------------------------------------------------
>___________________________
>microblaze-uclinux mailing list
>microblaze-uclinux@itee.uq.edu.au
>Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
>Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
>
>
****************************************


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/