Trenz Electronic GmbH Support Forum

Trenz Electronic Products => Trenz Electronic FPGA Modules => Topic started by: rawl_dog on June 13, 2018, 02:23:41 AM

Title: adding si5338 driver
Post by: rawl_dog 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
Title: Re: adding si5338 driver
Post by: JH on June 13, 2018, 10:06:11 AM
Hi,

which module did you use?

br
John
Title: Re: adding si5338 driver
Post by: rawl_dog on June 13, 2018, 06:34:13 PM
TE0715-04-15-1I3 in a TE0706-02.

Tx,

Brad
Title: Re: adding si5338 driver
Post by: JH 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
Title: Re: adding si5338 driver
Post by: Antti Lukats on June 14, 2018, 03:06:12 PM
Quote from: rawl_dog 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.
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.
Title: Re: adding si5338 driver
Post by: rawl_dog 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
Title: Re: adding si5338 driver
Post by: JH 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
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: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