Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 09 Oct 2007 05:33 PM by  paulc@logicpd.com
linux MTD NOR support
 0 Replies
Sort:
You are not authorized to post a reply.
Author Messages
paulc@logicpd.com
New Member
New Member
Posts:


--
09 Oct 2007 05:33 PM
    FYI: NOR support requires enabling Intel/Sharp flash in the kernel configuration and the following adjustments to the following file:

    rpm/BUILD/linux-2.6.19.2/arch/arm/mach-mx3/mx31lpd.c

    "Kernel" .size = 512 * 1024 * 3

    and

    mxc_flash_resource .end = 0xa0000000 + 0x00200000 -1

    The lpd board has 2MB of NOR flash, the first 512kB dedicated to LoLo, and the remainder available for use.

    The boot message will look like:

    MXC MTD nor Driver 2.0
    mxc_nor_flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
    Intel/Sharp Extended Query Table at 0x0035
    cfi_cmdset_0001: Erase suspend on write enabled
    Searching for RedBoot partition table in mxc_nor_flash.0 at offset 0x1f0000
    No RedBoot partition table detected in mxc_nor_flash.0
    Creating 2 MTD partitions on "mxc_nor_flash.0":
    0x00000000-0x00080000 : "Bootloader"
    0x00080000-0x00200000 : "Kernel"

    and /proc/mtd might look like:

    dev: size erasesize name
    mtd0: 00080000 00010000 "Bootloader"
    mtd1: 00180000 00010000 "Kernel"
    mtd2: 00200000 00004000 "nand.kernel"
    mtd3: 03e00000 00004000 "nand.rootfs"
    mtd4: 04000000 00004000 "<NULL>"
    mtd5: 04000000 00004000 "<NULL>"
    You are not authorized to post a reply.