Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Cluni on May 28, 2018, 04:06:01 AM

Title: Driver SC16IS7xx (UART)
Post by: Cluni on May 28, 2018, 04:06:01 AM
Hello,

I would like to use an self-designed extension board with piCore 9.0.3. On my board I have two SC16IS752 (Dual UART with I²C-bus/SPI interface) configured for use with I²C. On Raspbian I found a dedicated driver for this chip an I could already test my board so I know it is working well. But I can't find any driver for piCore. I also don't know how I could transfer the driver from Raspbian to piCore. Would this be possible?

Thank you in advance for your support!

Regards
Bernd
Title: Re: Driver SC16IS7xx (UART)
Post by: bmarkus on May 28, 2018, 04:51:12 AM
See drivers/tty/serial directory in the kernel module archive

http://tinycorelinux.net/9.x/armv7/releases/RPi/src/kernel/4.9.22-piCore-v7_modules.tar.xz

or

http://tinycorelinux.net/9.x/armv6/releases/RPi/src/kernel/4.9.22-piCore_modules.tar.xz

depending on your architecture.
Title: Re: Driver SC16IS7xx (UART)
Post by: Cluni on June 08, 2018, 05:10:19 AM
Hello Bélla,

thank you very much! Everything works fine now!

Best regards
Bernd
Title: Re: Driver SC16IS7xx (UART)
Post by: patrikg on June 08, 2018, 07:54:39 AM
Here you have some example of how to make your own TCZ module to load linux module.

http://forum.tinycorelinux.net/index.php/topic,18858.msg129216.html#msg129216
Title: Re: Driver SC16IS7xx (UART)
Post by: Cluni on June 08, 2018, 08:36:57 AM
Thanks!

At the moment it is already fully working without a TCZ module. But I have a problem how to create a dtbo-overlay on PiCore. I solved this problem for me by taking my previously made dtbo-overlays from Raspbian. On PiCore I'm missing the file "dtc" (device tree compiler?) to generate these dtbo-overlays out of my config files. Can you tell me where I can find/download this and how to install?