我用的spi flash是m25p80,配置内核时这个文件也编译了。spi的信息也都添加了。- static struct mtd_partition imx233_spiflash_partitions[] = {
- {
- .name = "BootKernel(spi)",
- .offset = 0,
- .size = SZ_1M,
- },
- {
- .name = "Rootfs(spi)",
- .offset = MTDPART_OFS_APPEND,
- .size = MTDPART_SIZ_FULL,
- },
- };
- static struct flash_platform_data spi_flash_data = {
- .name = "m25p80",
- .parts = imx233_spiflash_partitions,
- .nr_parts = ARRAY_SIZE(imx233_spiflash_partitions),
- .type = "m25p64",
- };
- static struct spi_board_info spi_board_info[] __initdata = {
- {
- .modalias = "m25p80",
- .platform_data = &spi_flash_data,
- .mode = SPI_MODE_3,
- .max_speed_hz = 2000000,
- .chip_select = 0,
- .bus_num = 1,
- },
- }
我把生成的zImage 上传到内存直接启动,但一直启动不了。出现kernel panic
请哪位使用过imx233的大侠能指点一下。
|