Replies: 3 comments 22 replies
-
Hey @x86ed! If you want to make changes to the kernel, use a modified version of https://github.com/gokrazy/kernel/, like you would swap out any other Go package: https://gokrazy.org/development/modules/#building-local-code-the-replace-directive The kernel build we use stores its kernel config in cmd/gokr-build-kernel/build.go. It might be more convenient to use In general, we accept changes to the kernel repository, as long as they don’t have adverse affects for other users (e.g. require hard-to-maintain patches, or disable other features that people rely on). UART is already enabled, and hopefully SPI and I2C should be quick and uncontroversial, I think…? Hope this helps |
Beta Was this translation helpful? Give feedback.
-
Hey, those configs must be set in the Linux kernel configuration we define for gokrazy, unless they are already. Here, for example, we have the configuration to enable the I2C and the SPI support in the kernel: To my knowledge, the UART serial console is also enabled (if that's what you are looking for), see: https://github.com/gokrazy/tools/blob/231dea4b57042ff090c0a94fa03abe1dab9e3a3f/internal/packer/write.go#L76 |
Beta Was this translation helpful? Give feedback.
-
I cloned the kernel, added it to my gokrazy install and added the following lines to the
ran breakglass and did a
lsmod yields:
there don't appear to be any spi entries. anything i can do to troubleshoot that? |
Beta Was this translation helpful? Give feedback.
-
I want to enable SPI, UART and I2C on my raspberry pi but it's not clear what commands/config I need to do to enable it on my board through gok
Beta Was this translation helpful? Give feedback.
All reactions