Author Topic: adding si5338 driver  (Read 271 times)

rawl_dog

  • Active Member
  • *
  • Posts: 5
adding si5338 driver
« on: June 13, 2018, 02:23:41 AM »
I'm trying to re-compile the test_board project; however, I don't know how to include the si5338 driver into PetaLinux.

Furthermore, I don't know how to create and install a "hello world" program.

Forgive me... I'm a long-time ISE user trying to get up to quickly get up to speed on SoC FPGAs...

Tx,

Brad

JH

  • Hero Member
  • *****
  • Posts: 556
Re: adding si5338 driver
« Reply #1 on: June 13, 2018, 10:06:11 AM »
Hi,

which module did you use?

br
John

rawl_dog

  • Active Member
  • *
  • Posts: 5
Re: adding si5338 driver
« Reply #2 on: June 13, 2018, 06:34:13 PM »
TE0715-04-15-1I3 in a TE0706-02.

Tx,

Brad

JH

  • Hero Member
  • *****
  • Posts: 556
Re: adding si5338 driver
« Reply #3 on: June 14, 2018, 09:35:56 AM »
Hi,

at the moment we have only a example to modify FSBL to reconfigure SI5338:

This C code extension procedure from FSBL to reconfigure SI5338 can also used on linux over I2C. Or would need to install Si5338 drivers  on petalinux? We never tried out if this works on petalinux.

br
John
« Last Edit: June 14, 2018, 09:51:32 AM by JH »

Antti Lukats

  • Sr. Member
  • ****
  • Posts: 482
    • Trioflex
Re: adding si5338 driver
« Reply #4 on: June 14, 2018, 03:06:12 PM »
I'm trying to re-compile the test_board project; however, I don't know how to include the si5338 driver into PetaLinux.
Brad

si5338 has no driver in the mainstream kernel, so there is no way to just include it. There is a 3rd party driver, but we have not tested it, so I can not say if it works or not.

rawl_dog

  • Active Member
  • *
  • Posts: 5
Re: adding si5338 driver
« Reply #5 on: June 16, 2018, 02:03:13 AM »
So, the RTC driver is not loaded into PetaLinux, but rather configured in the FSBL using the I2C driver?

Now my question is: How do I configure the FSBL to do so? I've definitely missed a step...

BTW, here are my error messages from the test_board console output:
hctosys: unable to open rtc device (rtc0)
hwclock: can't open '/dev/misc/rtc': No such file or directory

Thanks to everyone for the help,

Brad

JH

  • Hero Member
  • *****
  • Posts: 556
Re: adding si5338 driver
« Reply #6 on: June 18, 2018, 08:57:57 AM »
Hi,
can you try out our prebuillt boot.bin and image.ub at first?
RTC should work with this files, for your TE0715-04-15-1I3
  • test_board\prebuilt\boot_images\04_15_1i\u-boot\BOOT.bin
  • test_board\prebuilt\os\petalinux\default\image.ub
RTC is connected to I2C1, you must add I2C  device tree entry and add driver to kernel:For FSBL, there is a template with all sources included:
  • test_board\sw_lib\sw_apps\zynq_fsbl
Changed and add files:You can include this as template into SDK (this can be used like default FSBL application), how you add local repository to SDK is described here:brJohn