mike lee

  • Content count

  • Joined

  • Last visited

  1. Hi Jon, Please keep me posted. Below are the results tested on vivado/petalinux 2014.2 with no success, looks spi number is also changed. Now, I really depend on Digilent's help. Thanks in advance. # cat /sys/kernel/debug/gpio GPIOs 0-117, platform/e000a000.ps7-gpio, zynq_gpio: gpio-55 (OLED VBat ) out lo gpio-56 (OLED VDD ) out lo gpio-57 (OLED_RESET ) out hi gpio-58 (OLED_D/C ) out hi gpio-59 (spi_gpio.2 ) out lo gpio-60 (spi_gpio.2 ) out lo # ls /sys/class/spi_master/ spi2 spi32766 Mike
  2. Hi Joe, Just check back, and still eager waiting Linux guru's resolute. In the meanwhile, I am wondering whether you can provide the PmodOLED IP for vivado-2014.1 (petalinux kernel 3.x). The github version https://github.com/Digilent/vivado-library/tree/master/ip/Pmods/PmodOLED_v1_0 is for vivado-2015 (kernel 4.0). I would like to try with an early kernel version, since OOB package was based on kernel 3.3 . Below is extracted from early version petalinux (with vivado 2014.1), and witnessed xgpiops numbering agreeable. # cat /sys/kernel/debug/gpio GPIOs 0-117, platform/e000a000.ps7-gpio, xgpiops: gpio-55 (OLED VBat ) out lo gpio-56 (OLED VDD ) out lo gpio-57 (OLED_RESET ) out hi gpio-58 (OLED_D/C ) out hi Thanks in advance. Mike
  3. Hi Jon, back to work, here is the status, I have successfully replicated your external_mux.zip project, i.e., generates bitstream from the vivado project, outputs hardware and launchs SDK for both PmodOLED and testoled in your external_mux.zip. OLED displays "PmodOLED" "by Digilent" "Simple Demo" etc. However, petalinux-build still misses the OLED ouputs. I inserted following lines into pl.dtsi, (borrowed from digilent-zed.dts https://gist.github.com/godspeed1989/5523696) zed_oled { compatible = "dglnt,pmodoled-gpio"; /* GPIO Pins */ vbat-gpio = <&gpio0 55 0>; vdd-gpio = <&gpio0 56 0>; res-gpio = <&gpio0 57 0>; dc-gpio = <&gpio0 58 0>; /* SPI-GPIOs */ spi-bus-num = <2>; spi-speed-hz = <4000000>; spi-sclk-gpio = <&gpio0 59 0>; spi-sdin-gpio = <&gpio0 60 0>; }; # insmod pmodoled-gpio.ko ==> which shows /dev/zed_oled # cat /sys/kernel/debug/gpio GPIOs 906-1023, platform/e000a000.gpio, zynq_gpio: gpio-961 (OLED VBat ) out lo gpio-962 (OLED VDD ) out lo gpio-963 (OLED_RESET ) out lo gpio-964 (OLED_D/C ) out lo gpio-965 (spi_gpio.2 ) out lo gpio-966 (spi_gpio.2 ) out lo # cat logo.bin > /dev/zed_oled ==> displays nothing comparing to OOB results zynq> cat /sys/kernel/debug/gpio GPIOs 0-117, platform/e000a000.gpio, xgpio: gpio-55 (OLED VBat ) out lo gpio-56 (OLED VDD ) out lo gpio-57 (OLED_RESET ) out hi gpio-58 (OLED_D/C ) out hi gpio-59 (spi_gpio.2 ) out lo gpio-60 (spi_gpio.2 ) out lo There are differences of gpio numberings, as well as gpio-57 / 58 out hi. Please advise, thanks in advance Mike
  4. Hi Jon, Thank you for the vivado file. The project misses the IP component (guess you put pmodoled_v1_0 in other directory path), and also there is no pin assignment .xdc file. It will take me some time to dig it through locally. Will report after I construct my own vivado project. Best Mike
  5. Hi Jon, Thank you for the quick response. The Avnet weblink http://zedboard.org/content/zedboard-oled still plays with OOB package. The script listed is the exact same file as located in " /usr/bin/load_oled " in OOB package. #!/bin/sh insmod /lib/modules/`uname -r`/pmodoled-gpio.ko; if [ -c /dev/zed_oled ]; then cat /root/logo.bin > /dev/zed_oled; fi; I want to use OLED display in my own project, which requests to involve a vivado IP in block diagram design, and to construct a Petalinux kernel/device module(s) to facilitate OLED outputs. Notice OLED is only provided by zedboard, while zc702/zc706 do not have OLED. Therefore, I am solely depend on Digilent Talents to reach out. Many Thanks Best Mike
  6. Hi Jon, Happen to work on OLED with exact same problem. asked question on this forum as follows, A year has past since your first note, please inform whether this modified PmodOLED module is available for onboard Zedboard-OLED now. Please advise, Thanks in advance Mike
  7. Hi Digilent, zedboard, vivado 2015.4, petalinux 2015.4, /dev/zed_oled, pmodoled-gpio.ko I am working on zedboard to enable onboard-OLED display. First vivado outputs bitstream hardware, then petalinux generates " BOOT.BIN + Image.ub ", finally zedboard bootup by the SD card. " insmod pmodoled-gpio.ko " does bring /dev/zed_oled . However, " cat logo.bin > /dev/zed_oled " has nothing to display. Then I decided to add oled block design in vivado project. I tried two different versions, including tamu https://github.com/ama142/ZedboardOLED-v1.0-IP and Digilent https://github.com/Digilent/vivado-library/tree/master/ip/Pmods/PmodOLED_v1_0 . After making external pin assignment, Vivado / petalinux all functions. However, there is still no outputs on OLED. Please advise how to turn on OLED in petalinux/vivado. Thanks in advance Mike (P.S. OLED by itself works well on OOB package with digilent logo output)