News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

adding si5338 driver

Started by rawl_dog, June 13, 2018, 02:23:41 AM

Previous topic - Next topic

rawl_dog

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

Hi,

which module did you use?

br
John

rawl_dog

TE0715-04-15-1I3 in a TE0706-02.

Tx,

Brad

JH

#3
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

Antti Lukats

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.

rawl_dog

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

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