element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Using Xilinx Tools Forum No spi node found in /dev folder
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 335 subscribers
  • Views 551 views
  • Users 0 members are here
Related

No spi node found in /dev folder

Former Member
Former Member over 9 years ago

Hello everyone

I am using ubuntu 14.04 ,vivado 2015.2 and petalinux.BSP 2015.2 version and working for Xilinx Zedboard 7z020

I want to send /receive data from Spi, I created my project and generate the .hdf and .bit file after that export it to SDK


then I create a project using defined BSP

$petalinux-create -t project -s /Downloads/Avnet-2015.2.BSP


get the hardware

$ petalinux-config --get-hw-description=~/my_program/my_program.sdk


run petalinux configuration

$petalinux-config

subsystem Auto hardware setting->Advance bootable image storage setting and select sd-card for boot image ,kernel image and dtb image setting

in the system-top.dts I add the following lines

&spi0 {
is-decoded-cs = <0>;
num-cs = <3>;
status = "okay";
  spidev@0x01 {
        compatible = "spidev2";
        spi-max-frequency = <20000000>;
        reg = <1>;
    };
};
&spi1 {
is-decoded-cs = <0>;
num-cs = <3>;
status = "okay";
spidev@0x00 {
        compatible = "spidev1";
        spi-max-frequency = <20000000>;
        reg = <1>;
    };
};


build the images

$petalinux-build


generate BOOT.BIN:

$petalinux-package --boot --format BIN --fsbl ~/Avnet-Digilent-ZedBoard-2015.2/images/linux/zynq_fsbl.elf --fpga ~my_program/my_program.sdk/system_wrapper_hw_platform_0/system_wrapper.bit --u-boot

generate rootfs.cpio with the following command because I want to boot the board with sd-card


$petalinux-package --image -c rootfs --format initramfs


IN the sd card copy BOOT.BIN , image.ub and system.dtb into BOOT partition and rootfs.cpio into rootfs partition then run the following command


$sudo pax -rvf rootfs.cpio


In the last boot the board with this sd card

and the result is, I cannot find any /dev/spidev


even whatever changes I made in the sytem-top.dts after running the above commands these changes has been removed and the file name is system.dts, I also checked result is same if i am not adding the above defined lines in the system-top.dts

can anyone help me where i am doing mistake ??/

One more thing I want to check that is this kernel is working or not , I run the following commands

$ cd /sys/class/gpio

/sys/class/gpio$ echo 61>export

but no node generated for GPIO

that means it is also not working

what mistake I am doing??

thanks in advance

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 9 years ago

    Hello Umer,

     

    I see that you received a response to this question that you posted on the Xilinx Community Forums:

     

    https://forums.xilinx.com/t5/Embedded-Linux/petalinux-not-generate-the-required-spidev/td-p/670901

     

    If you do cross post questions on other forums, and get an answer, please pass that along so that others on the forum can benefit as well.

     

    -Gary

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube