2011-06-16 03:05:23     uImage file missing in 2010

Document created by Aaronwu Employee on Aug 27, 2013
Version 1Show Document
  • View in full screen mode

2011-06-16 03:05:23     uImage file missing in 2010

Shyam sundar (INDIA)

Message: 101295   

 

Hello world,

 

I am not able to see the uImage file when I enable generic uClinux RAM/ROM filesystem support

 

I am using a 16 MB flash, below is the partition setup I have made for the bf531 board.

 

#if defined(CONFIG_MTD_M25P80) || defined(CONFIG_MTD_M25P80_MODULE)

static struct mtd_partition bfin_spi_flash_partitions[ ] = {

    {

        .name = "bootloader(spi)",

        .size = 0x00040000,

        .offset = 0,

        .mask_flags = MTD_CAP_ROM

    }, {

        .name = "linux kernel(spi)",

        .size = 0x180000,

        .offset = MTDPART_OFS_APPEND,

    }, {

        .name = "file system(spi)",

        .size = 0x700000,

        .offset = MTDPART_OFS_APPEND,

    }, {

        .name = "audio_files(spi)",

        .size = MTDPART_SIZ_FULL,

        .offset = MTDPART_OFS_APPEND,

    }

};

 

static struct flash_platform_data bfin_spi_flash_data = {

    .name = "m25p80",

    .parts = bfin_spi_flash_partitions,

    .nr_parts = ARRAY_SIZE(bfin_spi_flash_partitions),

    .type = "m25p64",

};

 

 

/* SPI flash chip (m25p64) */

static struct bfin5xx_spi_chip spi_flash_chip_info = {

    .enable_dma = 0,         /* use dma transfer with this chip*/

    .bits_per_word = 8,

};

 

#endif

 

 

As per the following documents, I have set the following parameters in kernel.

 

a) https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd

 

b) https://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:jffs

 

Device Drivers  --->

  Memory Technology Devices (MTD)  --->

    <*> Memory Technology Device (MTD) support

    [*]   MTD partitioning support

    <*>   Direct char device access to MTD devices

    <*>   Caching block device access to MTD devices

 

Mapping drivers for chip access  --->

[*] Support non-linear mappings of flash chips

[*] Generic uClinux RAM/ROM filesystem support

 

 

Self-contained MTD device drivers  --->

  <*> Support most SPI Flash chips (AT26DF, M25P, W25X, ...)

 

<*>   Journalling Flash File System v2 (JFFS2) support

                                      (0)     JFFS2 debugging verbosity (0 = quiet, 2 = noisy)

                                      [*]     JFFS2 write-buffering support

 

As per document b) I should load the uImage,but when I see theimage folder I dont see the uImage file. I am using 2010 distribution

QuoteReplyEditDelete

 

 

2011-06-16 04:08:51     Re: uImage file missing in 2010

Aaron Wu (CHINA)

Message: 101319   

 

Do you mean after enabling Generic uClinux RAM/ROM option in MTD driver you can no longer generate the uImage after compiling the  uClinux-dist? I just tried on my side and it's generated.

 

Maybe you have mess up your config, use make distclean to restore it.

QuoteReplyEditDelete

Attachments

    Outcomes