ltib
[Top][All Lists]
Advanced

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

RE: [Ltib] Cannot boot rootfs from SD card LPC 3131


From: Kevin Wells
Subject: RE: [Ltib] Cannot boot rootfs from SD card LPC 3131
Date: Sun, 7 Mar 2010 16:17:27 +0100

 

Hi Gianluca,

 

Sorry about the long delay on this. The patch your interested in is the R3 kernel patch.

I'm not in the office right now, but will merge this patch in LTIB in about 2 weeks for the 313x 2.6.28 release.

You can get the patch directly from NXP's website too.

 

thanks,

Kevin

 

 

From: Gianluca Valentino [mailto:address@hidden
Sent: Tuesday, March 02, 2010 11:59 PM
To: Kevin Wells; address@hidden; address@hidden
Subject: RE: [Ltib] Cannot boot rootfs from SD card LPC 3131

 

Dear Mr Wells,
 
Thanks for your reply. What is the file exactly called? I found nothing related to it in the files section.
 
I tried different SD card jumper configurations and rootdelay as you said, but without success. Exactly the same output results.
 
I am trying this configuration with root=/dev/mmcblk0p1 because I would like that any changes to files I make while running linux on the board
are then saved permanently somewhere. I've already tried using NAND flash but although I could write apex, kernel image and rootfs to NAND, I could not
boot using root=/dev/mtdblock0 or root=/dev/mtdblock1. This is strange since these devices are actually showing up during boot as shown in my output from
the console.
 
Thanks and regards,
 
Gianluca
 


From: address@hidden
To: address@hidden; address@hidden; address@hidden
Date: Wed, 3 Mar 2010 00:26:58 +0100
Subject: RE: [Ltib] Cannot boot rootfs from SD card LPC 3131

 

Hi Gianluca,

 

lpc313x_mmc lpc313x_mmc.0: LPC313x MMC controller at irq 26

It looks like the MMC driver is being loaded correctly, but I don't see the card

insertion messages or the card initialization is delayed.

 

Try swapping the card detect jumper next to the SD card slot to see if it helps.

If it doesn't, there is a patch at the lpc3000 Yahoo news group that improves,

or possibly fixes, SD card detection.

 

You may also have to delay root filesystem mount to allow the SD card a little

time to initialize. Try adding rootdelay=3 to the linux command line and adjust

as necessary if the SD card init is falling behind the mount attempts.

 

Good luck!

Kevin

 

From: address@hidden [mailto:address@hidden On Behalf Of Gianluca Valentino
Sent: Tuesday, March 02, 2010 9:32 AM
To: address@hidden; address@hidden
Subject: RE: [Ltib] Cannot boot rootfs from SD card LPC 3131

 

Many thanks for your reply, I have included support for MMC/SD using the following:

Device Drivers ->
                                 <*> MMC/SD/SDIO Card support ->

                                                                                                 [*] MMC Debugging
                                                                                                 [ ] Allow unsafe resume (DANGEROUS)
                                                                                                 <*> MMC Block device driver
                                                                                                 [*] Use bounce buffer for simple hosts
                                                                                                <*> SDIO UART/GPS class support
                                                                                                 < > MMC host test driver
                                                                                                 <*> NXP LPC313x SD/MMC Card Interface Support
                                                                                                 <*> Secure Digital Host Controller Interface Support
                                                                                                 <*> MMC/SD/SDIO over SPI

elsewhere I have also enabled the Ext2 filesystem support.

SD Card booting is definitely possible in theory since there exists a jumper configuration for it on the development board.

I have partitioned my SD card properly (according to NXP guide), and tried more than one SD Card just in case, but without success.

I am able to access the SD card and copy the rootfs and kernel image to RAM at boot time (I use Apex bootloader) using root=/dev/ram0 rw and then boot Linux. However, since everything is in RAM, any changes I make to the rootfs are lost when I reboot.

I am also able to access the SD card after Linux has booted as explained above, and the partitions show up as mmcblk0 and mmcblk0p1, and I can access them normally.

It seems the problem is at boot time, since only NAND partitions are recognised at boot time.

Thanks and regards,

Gianluca Valentino

> Date: Tue, 2 Mar 2010 09:50:35 -0300
> Subject: Re: [Ltib] Cannot boot rootfs from SD card LPC 3131
> From: address@hidden
> To: address@hidden
> CC: address@hidden
>
> Hi Gianluca,
>
> On 3/2/10, Gianluca Valentino <address@hidden> wrote:
> >
> > Dear All,
> >
> > I wish to boot Linux on my LPC 3131 in the following manner:
> >
> > startup = copy ext2://1/zImage 0x30008000; boot
> > cmdline console=/dev/ttyS0,115200n8 root=/dev/mmcblk0p1 rw rootfstype=ext2
> >
> > However I get the following:
> >
> > VFS: Cannot open root device "mmcblk0p1" or unknown-block(2,0)
> > Please append a correct "root=" boot option; here are the available
> > partitions:
> > 1f00 240896 mtdblock0 (driver?)
> > 1f01 4096 mtdblock1 (driver?)
> > Kernel panic - not syncing: VFS: Unable to mount root fs on
> > unknown-block(2,0)
> >
> > Don't worry about the RAMDISK IMAGE too big part, that's because I used a
> > rootfs of > 64MB, for smaller rootfs.ext2 it still gives me the same errors
> > at the end.
> >
> > Could you please help me out?
> >
>
> Your kernel doesn't have support to MMC/SD or your kernel can't find
> it. Make sure you compiled your kernel with support to MMC/SD
> interface.
>
> xyz_core: MMC/SD card detected in socket 0:1
> mmcblk0: mmc1:b368 SD XYZKiB
> mmcblk0: p1
>
> Best Regards,
>
> Alan
>
>
> > Thanks and regards,
> >
> > Gianluca Valentino
> > _________________________________________________________________
> > Hotmail: Free, trusted and rich email service.
> > https://signup.live.com/signup.aspx?id=60969


Hotmail: Powerful Free email with security by Microsoft. Get it now.

 


Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. Sign up now.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]