<div dir="ltr">This should be simple. <div><br></div><div>I am building a ucLinux system using kmenuconfig. My hardware supports two SPI devices, one of which is already committed to flash memory. </div><div><br></div><div>
I have built a kernel with SPI enabled, and booted it, and run 'busybox mdev -s', and rebooted, and it finds a SPI device:</div><div><br></div><div><div>spi_m2s spi_m2s.0: registered master spi0</div><div>spi spi0.0: setup mode 3, 8 bits/w, 41500000 Hz max --> 0</div>
<div>m25p80 spi0.0: s25fl129p1 (16384 Kbytes)</div><div>Creating 3 MTD partitions on "s25fl129p1":</div><div>0x000000000000-0x000000010000 : "spi_flash_uboot_env"</div><div>0x000000010000-0x000000410000 : "spi_flash_linux_image"</div>
<div>0x000000410000-0x000001000000 : "spi_flash_jffs2"</div><div>spi_m2s spi_m2s.0: registered child spi0.0</div><div>spi_m2s spi_m2s.0: SPI Controller 0 at 40001000,clk=83000000</div><div><br></div><div><br></div>
<div>I have a SPI-looking device in /sys/devices/platform:</div><div><br></div><div><div>~ # ls -la /sys/devices/platform/</div><div>drwxr-xr-x 9 root root 0 Jan 1 00:07 .</div><div>drwxr-xr-x 5 root root 0 Jan 1 00:07 ..</div>
<div>drwxr-xr-x 6 root root 0 Jan 1 00:07 m2s_eth.0</div><div>drwxr-xr-x 3 root root 0 Jan 1 00:07 musb_hdrc</div><div>drwxr-xr-x 2 root root 0 Jan 1 00:07 nop_usb_xceiv</div>
<div>drwxr-xr-x 2 root root 0 Jan 1 00:07 serial8250</div><div>drwxr-xr-x 3 root root 0 Jan 1 00:07 serial8250.0</div><div>drwxr-xr-x 3 root root 0 Jan 1 00:07 serial8250.1</div>
<div>drwxr-xr-x 4 root root 0 Jan 1 00:07 spi_m2s.0</div><div>-rw-r--r-- 1 root root 4096 Jan 1 00:07 uevent</div></div><div><br></div><div><br></div><div>What I *want* are:</div><div>
/dev/spi0</div><div>/dev/spi1</div><div><br></div><div>Or suchlike. </div><div><br></div><div>How do I get them?</div><div><br></div><div>Enquiring minds want to know. </div><div><br></div><div>Eric</div>-- <br><div dir="ltr">
cc:NSA<br></div>
</div></div>