난 당신이 보드에 대한 DTS 설명을 사용해야합니다 이해합니다. 당신의 DTS 파일에서, 당신은 선 아래에 추가하여 SPI 컨트롤러 노드에서이 플래시에 대한 지원을 포함 할 수 있습니다 :
[email protected] {
/* your SPI Controller Node settings here */
/* Add/Modify/ delete below settings as per your HW */
compatible = "your compatible string";
reg = <0x1000d000 0x1000>;
num-cs = <0x4>;
clocks = <0x2>;
interrupt-parent = <&intc>;
interrupts = <0x0 0x86 0x4>;
#address-cells = <0x1>;
#size-cells = <0x0>;
[email protected] {
compatible = "n25q00";
reg = <0x0>;
spi-max-frequency = <25000000>;
spi-rx-bus-width = <0x4>;
spi-tx-bus-width = <0x4>;
#address-cells = <0x1>;
#size-cells = <0x1>;
[email protected] {
label = "part1";
reg = <0x0 0x000c0000>;
};
[email protected] {
label = "part2";
reg = <0x000c0000 0x00020000>;
};
};
};
은 또한이 같은 모든 관련 커널 설정을 활성화해야합니다. like :
CONFIG_MTD_M25P80=y
CONFIG_MTD_SPI_NOR=y
CONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y (if required)
CONFIG_SPI=y
CONFIG_SPI_DEBUG=y
CONFIG_SPI_MASTER=y
또한 SPI 컨트롤러를 활성화하십시오. 모든 설정이 정확하면 검사되어 파티션이 나열된 것을 볼 수 있습니다.
시도해 보겠습니다. 또한 QEMU가 n25q00을 에뮬레이션 할 수있는 문제도 있습니다. QEMU가 n25p80 카드를 지원한다는 것을 알고 있습니다. QEMU 에뮬레이션 내에서이 모든 작업을 수행하려고합니다. –