|
From: | Gianluca Valentino |
Subject: | RE: [Ltib] Cannot boot rootfs from SD card LPC 3131 |
Date: | Tue, 2 Mar 2010 18:32:15 +0100 |
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. |
[Prev in Thread] | Current Thread | [Next in Thread] |