Skip to content

Software SPI DT Overlay Package doesn't create new SPI device file #92

Closed
@greenbreakfast

Description

What package does this bug affect?

onion-dt-overlay-sw-spi in openwrt-22.03 branch

Describe the bug

After installation of onion-dt-overlay-sw-spi, no new spi device file is created in the Linux OS

To Reproduce

Before installation, only spidev0.1, the hardware SPI CS1 bus is available in the /dev directory

root@Omega-665D:/# ls /dev/
autofs     mtd0       mtd4ro     mtdblock4  shm        ttyS11     ttyS6
bus        mtd0ro     mtd5       mtdblock5  spidev0.1  ttyS12     ttyS7
console    mtd1       mtd5ro     mtdblock6  stderr     ttyS13     ttyS8
full       mtd1ro     mtd6       null       stdin      ttyS14     ttyS9
hwrng      mtd2       mtd6ro     port       stdout     ttyS15     urandom
i2c-0      mtd2ro     mtdblock0  ppp        tty        ttyS2      watchdog
kmsg       mtd3       mtdblock1  ptmx       ttyS0      ttyS3      watchdog0
log        mtd3ro     mtdblock2  pts        ttyS1      ttyS4      zero
mem        mtd4       mtdblock3  random     ttyS10     ttyS5

Steps to reproduce the behavior:

  1. Connect to internet
  2. Install the package
    opkg update
    opkg install onion-dt-overlay-sw-spi
    
  3. reboot device
  4. Check if device tree overlay is applied: cat /sys/kernel/config/device-tree/overlays/sw-spi/status
    root@Omega-665D:/# cat /sys/kernel/config/device-tree/overlays/sw-spi/status
    applied
    
  5. Run ls /dev again:
root@Omega-665D:/# ls /dev/
autofs     mtd0       mtd4ro     mtdblock4  shm        ttyS11     ttyS6
bus        mtd0ro     mtd5       mtdblock5  spidev0.1  ttyS12     ttyS7
console    mtd1       mtd5ro     mtdblock6  stderr     ttyS13     ttyS8
full       mtd1ro     mtd6       null       stdin      ttyS14     ttyS9
hwrng      mtd2       mtd6ro     port       stdout     ttyS15     urandom
i2c-0      mtd2ro     mtdblock0  ppp        tty        ttyS2      watchdog
kmsg       mtd3       mtdblock1  ptmx       ttyS0      ttyS3      watchdog0
log        mtd3ro     mtdblock2  pts        ttyS1      ttyS4      zero
mem        mtd4       mtdblock3  random     ttyS10     ttyS5

No new SPI device

Expected behavior

Expecting to see a new /dev/spidev1.0 device that corresponds to the new software SPI bus

Screenshots or Console output

image

Version Info (please complete the following information):

  • Firmware version: 22.03.5 b20240122
  • Package name onion-dt-overlay-sw-spi
  • Package Version: 1.0-3
  • Repo branch: openwrt-22.03

Additional context

Deliverables

  • Changes as required to the onion-dt-overlay-sw-spi package source
  • Clear instructions/steps needed to enable software spi device on Omega2
  • Screenshots/command line output demonstrating software SPI device enabled on Omega2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions