Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] VFS: Cannot open root device "mtd ...
@ 2010-10-14  9:48 Abhishek Ashtekar
  2010-10-14 10:11 ` Yegor Yefremov
  0 siblings, 1 reply; 4+ messages in thread
From: Abhishek Ashtekar @ 2010-10-14  9:48 UTC (permalink / raw)
  To: buildroot

Hello,



I am new to buildroot and this group



I am working with the at91sam9260ek board and NAND Flash



Currently I am able to compile using buildroot kernel - Linux 2.6.34.1

I flashed the uImage at 0x200000 and root.jffs2 at 0x400000
Also the uboot, uboot.env at 0x20000 and 0x60000 from the demo along with the at91bootstrap



When I boot, I get the following erroneous response



rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock

VFS: Cannot open root device "mtdblock0" or unknown-block(0,0)

Please append a correct "root=" boot option; here are the available partitions:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)





I tried with more numbers to mtdblock0/1/4 and mtd 0/1/4 etc

Still I get the same error.



             VFS: Cannot open root device "mtd0" or unknown-block(0,0)


For info:
bootcmd=nand read 0x22200000 0x00200000 0x00168CF8; bootm 0x22200000

I also have made the mentioned changes in the at91sam9260ek_defconfig file for NAND ...

CONFIG_MTD=y
CONFIG_MTD_PARTITIONS=y
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
CONFIG_MTD_NAND=y
CONFIG_MTD_NAND_YOURBOARD=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_NAND=y



And of course --> setenv bootargs 'mem=64M console=ttyS0,115200 root=/dev/name_of_block_device rw rootfstype=jffs2'


I cannot find my way out ....
If any idea, then do let me know

Thanks a lot.
abhiash



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20101014/410e78b7/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] VFS: Cannot open root device "mtd ...
  2010-10-14  9:48 [Buildroot] VFS: Cannot open root device "mtd Abhishek Ashtekar
@ 2010-10-14 10:11 ` Yegor Yefremov
  2010-10-14 10:59   ` Abhishek Ashtekar
  0 siblings, 1 reply; 4+ messages in thread
From: Yegor Yefremov @ 2010-10-14 10:11 UTC (permalink / raw)
  To: buildroot

> I am new to buildroot and this group
> I am working with the at91sam9260ek board and NAND Flash
> 
> Currently I am able to compile using buildroot kernel - Linux 2.6.34.1
> 
> I flashed the uImage at 0x200000 and root.jffs2 at 0x400000
> Also the uboot, uboot.env at 0x20000 and 0x60000 from the demo along with the at91bootstrap
> 
>  
> 
> When I boot, I get the following erroneous response
> 
> rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
> 
> VFS: Cannot open root device "mtdblock0" or unknown-block(0,0)
> 
> Please append a correct "root=" boot option; here are the available partitions:
> 
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
> 
>  
> 
> I tried with more numbers to mtdblock0/1/4 and mtd 0/1/4 etc  
> 
> Still I get the same error.
> 
>  
> 
>              VFS: Cannot open root device "mtd0" or unknown-block(0,0)
> 
> 
> For info:
> bootcmd=nand read 0x22200000 0x00200000 0x00168CF8; bootm 0x22200000
> 
> I also have made the mentioned changes in the at91sam9260ek_defconfig file for NAND ...
> 
> CONFIG_MTD=y
> CONFIG_MTD_PARTITIONS=y
> CONFIG_MTD_CHAR=y
> CONFIG_MTD_BLOCK=y
> CONFIG_MTD_NAND=y
> CONFIG_MTD_NAND_YOURBOARD=y
> CONFIG_JFFS2_FS=y
> CONFIG_JFFS2_FS_DEBUG=0
> CONFIG_JFFS2_FS_NAND=y
> 
>  
> 
> And of course ? setenv bootargs 'mem=64M console=ttyS0,115200 root=/dev/name_of_block_device rw rootfstype=jffs2'
> 
> 
> I cannot find my way out ....
> If any idea, then do let me know
> 
> Thanks a lot.
> abhiash

Please provide your partition table as it is defined in kernel: arch/arm/mach-at91/board-sam9260ek.c
Have you altered this file? Or what board file you're using?

Complete bootlog were also good.

Best regards,
Yegor

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] VFS: Cannot open root device "mtd ...
  2010-10-14 10:11 ` Yegor Yefremov
@ 2010-10-14 10:59   ` Abhishek Ashtekar
  2010-10-14 12:23     ` Yegor Yefremov
  0 siblings, 1 reply; 4+ messages in thread
From: Abhishek Ashtekar @ 2010-10-14 10:59 UTC (permalink / raw)
  To: buildroot

Hallo Yegor,

Thanks for Your reply.

Boardfile that I am using is at91sam9260ek_defconfig.

In the file -->
output/build/linux2.6.34.1/arch/arm/mach-at91/board-sam9260ek.c

The name is mentioned as "Partition 1" and "Partition 2" for the MTD partition.

I have not altered this file

Specifying it as /dev/Partition 1 in the uboot env.... it takes it as Partition

Partition1 gives the same errors.

What should be the next try ?

Thanks and Regards,
abhiash

-----Original Message-----
From: Yegor Yefremov [mailto:yegor_sub1 at visionsystems.de]
Sent: Donnerstag, 14. Oktober 2010 12:11
To: Abhishek Ashtekar
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] VFS: Cannot open root device "mtd ...

> I am new to buildroot and this group
> I am working with the at91sam9260ek board and NAND Flash
>
> Currently I am able to compile using buildroot kernel - Linux 2.6.34.1
>
> I flashed the uImage at 0x200000 and root.jffs2 at 0x400000
> Also the uboot, uboot.env at 0x20000 and 0x60000 from the demo along with the at91bootstrap
>
>
>
> When I boot, I get the following erroneous response
>
> rtc-at91sam9 at91_rtt.0: hctosys: unable to read the hardware clock
>
> VFS: Cannot open root device "mtdblock0" or unknown-block(0,0)
>
> Please append a correct "root=" boot option; here are the available partitions:
>
> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
>
>
>
> I tried with more numbers to mtdblock0/1/4 and mtd 0/1/4 etc
>
> Still I get the same error.
>
>
>
>              VFS: Cannot open root device "mtd0" or unknown-block(0,0)
>
>
> For info:
> bootcmd=nand read 0x22200000 0x00200000 0x00168CF8; bootm 0x22200000
>
> I also have made the mentioned changes in the at91sam9260ek_defconfig file for NAND ...
>
> CONFIG_MTD=y
> CONFIG_MTD_PARTITIONS=y
> CONFIG_MTD_CHAR=y
> CONFIG_MTD_BLOCK=y
> CONFIG_MTD_NAND=y
> CONFIG_MTD_NAND_YOURBOARD=y
> CONFIG_JFFS2_FS=y
> CONFIG_JFFS2_FS_DEBUG=0
> CONFIG_JFFS2_FS_NAND=y
>
>
>
> And of course ? setenv bootargs 'mem=64M console=ttyS0,115200 root=/dev/name_of_block_device rw rootfstype=jffs2'
>
>
> I cannot find my way out ....
> If any idea, then do let me know
>
> Thanks a lot.
> abhiash

Please provide your partition table as it is defined in kernel: arch/arm/mach-at91/board-sam9260ek.c
Have you altered this file? Or what board file you're using?

Complete bootlog were also good.

Best regards,
Yegor

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 5515 (20101008) __________

E-Mail wurde gepr?ft mit ESET NOD32 Antivirus.

http://www.eset.com



__________ Hinweis von ESET NOD32 Antivirus, Signaturdatenbank-Version 5515 (20101008) __________

E-Mail wurde gepr?ft mit ESET NOD32 Antivirus.

http://www.eset.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] VFS: Cannot open root device "mtd ...
  2010-10-14 10:59   ` Abhishek Ashtekar
@ 2010-10-14 12:23     ` Yegor Yefremov
  0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2010-10-14 12:23 UTC (permalink / raw)
  To: buildroot

 Hello abhiash,

> Boardfile that I am using is at91sam9260ek_defconfig.
>
> In the file -->
> output/build/linux2.6.34.1/arch/arm/mach-at91/board-sam9260ek.c
>
> The name is mentioned as "Partition 1" and "Partition 2" for the MTD partition.
>
> I have not altered this file
>
> Specifying it as /dev/Partition 1 in the uboot env.... it takes it as Partition

These partition name will be used for other operations, device names are still the same /dev/mtdblockX

> Partition1 gives the same errors.
>
> What should be the next try ?

You'll have to modify

output/build/linux2.6.34.1/arch/arm/mach-at91/board-sam9260ek.c

/*
 * NAND flash
 */
static struct mtd_partition __initdata ek_nand_partition[] = {
        {
                .name   = "Boot", 		/* /dev/mtdblock0 */
                .offset = 0,
                .size   = SZ_2M,
        },
        {
                .name   = "Kernel",		/* /dev/mtdblock1 */
                .offset = MTDPART_OFS_NXTBLK,
                .size   = SZ_2M,
        },

        {
                .name   = "File System",	/* /dev/mtdblock2 */
                .offset = MTDPART_OFS_NXTBLK,
                .size   = MTDPART_SIZ_FULL,
        },
};

Then your kernel params should look like this:

'mem=64M console=ttyS0,115200 root=/dev/mtdblock2 rw rootfstype=jffs2'

Best regards,
Yegor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-10-14 12:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-14  9:48 [Buildroot] VFS: Cannot open root device "mtd Abhishek Ashtekar
2010-10-14 10:11 ` Yegor Yefremov
2010-10-14 10:59   ` Abhishek Ashtekar
2010-10-14 12:23     ` Yegor Yefremov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox