Enable W1 with GPIO and therm as kernel modules
This commit is contained in:
parent
0e882297f9
commit
5927c9391f
20 changed files with 59 additions and 2 deletions
|
@ -30,6 +30,8 @@ It will compile the kernel located in `linux-sources` using a [crossbuild docker
|
|||
|
||||
It uses default kernel config (`make bcmrpi_defconfig`), as recommended by the [official documentation](https://www.raspberrypi.com/documentation/computers/linux_kernel.html#cross-compiling-the-kernel), with the addition of the SquashFS module (`CONFIG_SQUASHFS`, which is required for gokrazy) and `CONFIG_IPV6`.
|
||||
|
||||
Further additions include the `CONFIG_W1`, `W1_MASTER_GPIO`, `W1_SLAVE_THERM` and `GPIOLIB`.
|
||||
|
||||
## Update check
|
||||
|
||||
```
|
||||
|
|
|
@ -94,6 +94,16 @@ func run() error {
|
|||
"--set-val", "BT_BCM", "m",
|
||||
"--set-val", "BT_HCIUART", "m",
|
||||
"--set-val", "BT_HCIUART_BCM", "y",
|
||||
"--set-val", "BT_HCIUART_RTL", "y",
|
||||
|
||||
// OneWire
|
||||
"--set-val", "W1", "m",
|
||||
"--set-val", "W1_MASTER_GPIO", "m",
|
||||
"--set-val", "W1_SLAVE_THERM", "m",
|
||||
"--set-val", "GPIOLIB", "y",
|
||||
|
||||
// I2C
|
||||
"--set-val", "I2C_CHARDEV", "y",
|
||||
}
|
||||
|
||||
if err := dockerRun(args...); err != nil {
|
||||
|
|
BIN
dist/lib/modules/6.1.21/kernel/drivers/bluetooth/btrtl.ko
vendored
Normal file
BIN
dist/lib/modules/6.1.21/kernel/drivers/bluetooth/btrtl.ko
vendored
Normal file
Binary file not shown.
Binary file not shown.
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/masters/w1-gpio.ko
vendored
Normal file
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/masters/w1-gpio.ko
vendored
Normal file
Binary file not shown.
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/slaves/w1_therm.ko
vendored
Normal file
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/slaves/w1_therm.ko
vendored
Normal file
Binary file not shown.
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/wire.ko
vendored
Normal file
BIN
dist/lib/modules/6.1.21/kernel/drivers/w1/wire.ko
vendored
Normal file
Binary file not shown.
13
dist/lib/modules/6.1.21/modules.alias
vendored
13
dist/lib/modules/6.1.21/modules.alias
vendored
|
@ -66,6 +66,13 @@ alias sdio:c*v02D0d4330* brcmfmac
|
|||
alias sdio:c*v02D0d4329* brcmfmac
|
||||
alias sdio:c*v02D0d4324* brcmfmac
|
||||
alias sdio:c*v02D0dA887* brcmfmac
|
||||
alias of:N*T*Cw1-gpioC* w1_gpio
|
||||
alias of:N*T*Cw1-gpio w1_gpio
|
||||
alias w1-family-0x42 w1_therm
|
||||
alias w1-family-0x3B w1_therm
|
||||
alias w1-family-0x28 w1_therm
|
||||
alias w1-family-0x22 w1_therm
|
||||
alias w1-family-0x10 w1_therm
|
||||
alias tty-ldisc-15 hci_uart
|
||||
alias of:N*T*Cinfineon,cyw55572-btC* hci_uart
|
||||
alias of:N*T*Cinfineon,cyw55572-bt hci_uart
|
||||
|
@ -93,4 +100,10 @@ alias of:N*T*Cbrcm,bcm4329-btC* hci_uart
|
|||
alias of:N*T*Cbrcm,bcm4329-bt hci_uart
|
||||
alias of:N*T*Cbrcm,bcm20702a1C* hci_uart
|
||||
alias of:N*T*Cbrcm,bcm20702a1 hci_uart
|
||||
alias of:N*T*Crealtek,rtl8723ds-btC* hci_uart
|
||||
alias of:N*T*Crealtek,rtl8723ds-bt hci_uart
|
||||
alias of:N*T*Crealtek,rtl8723bs-btC* hci_uart
|
||||
alias of:N*T*Crealtek,rtl8723bs-bt hci_uart
|
||||
alias of:N*T*Crealtek,rtl8822cs-btC* hci_uart
|
||||
alias of:N*T*Crealtek,rtl8822cs-bt hci_uart
|
||||
alias net-pf-31 bluetooth
|
||||
|
|
BIN
dist/lib/modules/6.1.21/modules.alias.bin
vendored
BIN
dist/lib/modules/6.1.21/modules.alias.bin
vendored
Binary file not shown.
1
dist/lib/modules/6.1.21/modules.builtin
vendored
1
dist/lib/modules/6.1.21/modules.builtin
vendored
|
@ -166,6 +166,7 @@ kernel/drivers/input/input-leds.ko
|
|||
kernel/drivers/input/mousedev.ko
|
||||
kernel/drivers/input/evdev.ko
|
||||
kernel/drivers/i2c/i2c-core.ko
|
||||
kernel/drivers/i2c/i2c-dev.ko
|
||||
kernel/drivers/media/rc/keymaps/rc-adstech-dvb-t-pci.ko
|
||||
kernel/drivers/media/rc/keymaps/rc-alink-dtu-m.ko
|
||||
kernel/drivers/media/rc/keymaps/rc-anysee.ko
|
||||
|
|
BIN
dist/lib/modules/6.1.21/modules.builtin.alias.bin
vendored
BIN
dist/lib/modules/6.1.21/modules.builtin.alias.bin
vendored
Binary file not shown.
BIN
dist/lib/modules/6.1.21/modules.builtin.bin
vendored
BIN
dist/lib/modules/6.1.21/modules.builtin.bin
vendored
Binary file not shown.
BIN
dist/lib/modules/6.1.21/modules.builtin.modinfo
vendored
BIN
dist/lib/modules/6.1.21/modules.builtin.modinfo
vendored
Binary file not shown.
6
dist/lib/modules/6.1.21/modules.dep
vendored
6
dist/lib/modules/6.1.21/modules.dep
vendored
|
@ -9,6 +9,10 @@ kernel/crypto/ecdh_generic.ko: kernel/crypto/ecc.ko
|
|||
kernel/lib/crypto/libaes.ko:
|
||||
kernel/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko:
|
||||
kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko: kernel/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
|
||||
kernel/drivers/bluetooth/hci_uart.ko: kernel/drivers/bluetooth/btbcm.ko kernel/net/bluetooth/bluetooth.ko kernel/lib/crypto/libaes.ko kernel/crypto/ecdh_generic.ko kernel/crypto/ecc.ko
|
||||
kernel/drivers/w1/masters/w1-gpio.ko: kernel/drivers/w1/wire.ko
|
||||
kernel/drivers/w1/slaves/w1_therm.ko: kernel/drivers/w1/wire.ko
|
||||
kernel/drivers/w1/wire.ko:
|
||||
kernel/drivers/bluetooth/hci_uart.ko: kernel/drivers/bluetooth/btrtl.ko kernel/drivers/bluetooth/btbcm.ko kernel/net/bluetooth/bluetooth.ko kernel/lib/crypto/libaes.ko kernel/crypto/ecdh_generic.ko kernel/crypto/ecc.ko
|
||||
kernel/drivers/bluetooth/btbcm.ko: kernel/net/bluetooth/bluetooth.ko kernel/lib/crypto/libaes.ko kernel/crypto/ecdh_generic.ko kernel/crypto/ecc.ko
|
||||
kernel/drivers/bluetooth/btrtl.ko: kernel/net/bluetooth/bluetooth.ko kernel/lib/crypto/libaes.ko kernel/crypto/ecdh_generic.ko kernel/crypto/ecc.ko
|
||||
kernel/net/bluetooth/bluetooth.ko: kernel/lib/crypto/libaes.ko kernel/crypto/ecdh_generic.ko kernel/crypto/ecc.ko
|
||||
|
|
BIN
dist/lib/modules/6.1.21/modules.dep.bin
vendored
BIN
dist/lib/modules/6.1.21/modules.dep.bin
vendored
Binary file not shown.
4
dist/lib/modules/6.1.21/modules.order
vendored
4
dist/lib/modules/6.1.21/modules.order
vendored
|
@ -9,6 +9,10 @@ kernel/crypto/ecdh_generic.ko
|
|||
kernel/lib/crypto/libaes.ko
|
||||
kernel/drivers/net/wireless/broadcom/brcm80211/brcmutil/brcmutil.ko
|
||||
kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko
|
||||
kernel/drivers/w1/masters/w1-gpio.ko
|
||||
kernel/drivers/w1/slaves/w1_therm.ko
|
||||
kernel/drivers/w1/wire.ko
|
||||
kernel/drivers/bluetooth/hci_uart.ko
|
||||
kernel/drivers/bluetooth/btbcm.ko
|
||||
kernel/drivers/bluetooth/btrtl.ko
|
||||
kernel/net/bluetooth/bluetooth.ko
|
||||
|
|
23
dist/lib/modules/6.1.21/modules.symbols
vendored
23
dist/lib/modules/6.1.21/modules.symbols
vendored
|
@ -1,16 +1,23 @@
|
|||
# Aliases for symbols, used by symbol_request().
|
||||
alias symbol:ecc_point_mult_shamir ecc
|
||||
alias symbol:w1_read_block wire
|
||||
alias symbol:__hci_cmd_sync_status bluetooth
|
||||
alias symbol:hci_conn_check_secure bluetooth
|
||||
alias symbol:w1_add_master_device wire
|
||||
alias symbol:crypto_sha512_update sha512_generic
|
||||
alias symbol:w1_remove_master_device wire
|
||||
alias symbol:brcmu_dbg_hex_dump brcmutil
|
||||
alias symbol:l2cap_unregister_user bluetooth
|
||||
alias symbol:crypto_ecdh_decode_key ecdh_generic
|
||||
alias symbol:hci_recv_frame bluetooth
|
||||
alias symbol:w1_triplet wire
|
||||
alias symbol:w1_touch_bit wire
|
||||
alias symbol:l2cap_chan_put bluetooth
|
||||
alias symbol:crypto_aes_sbox libaes
|
||||
alias symbol:bt_procfs_cleanup bluetooth
|
||||
alias symbol:ecc_get_curve25519 ecc
|
||||
alias symbol:w1_next_pullup wire
|
||||
alias symbol:w1_reset_resume_command wire
|
||||
alias symbol:__hci_cmd_sync_sk bluetooth
|
||||
alias symbol:brcmu_pktq_pflush brcmutil
|
||||
alias symbol:bt_err_ratelimited bluetooth
|
||||
|
@ -43,25 +50,32 @@ alias symbol:sha384_zero_message_hash sha512_generic
|
|||
alias symbol:vli_is_zero ecc
|
||||
alias symbol:hci_set_fw_info bluetooth
|
||||
alias symbol:brcmu_dotrev_str brcmutil
|
||||
alias symbol:w1_unregister_family wire
|
||||
alias symbol:l2cap_add_psm bluetooth
|
||||
alias symbol:ecc_free_point ecc
|
||||
alias symbol:aes_decrypt libaes
|
||||
alias symbol:h4_recv_buf hci_uart
|
||||
alias symbol:brcmu_pktq_penq_head brcmutil
|
||||
alias symbol:w1_read_8 wire
|
||||
alias symbol:l2cap_chan_send bluetooth
|
||||
alias symbol:btrtl_shutdown_realtek btrtl
|
||||
alias symbol:vli_sub ecc
|
||||
alias symbol:btrtl_set_quirks btrtl
|
||||
alias symbol:brcmu_pktq_pdeq brcmutil
|
||||
alias symbol:l2cap_chan_set_defaults bluetooth
|
||||
alias symbol:baswap bluetooth
|
||||
alias symbol:w1_touch_block wire
|
||||
alias symbol:hci_conn_switch_role bluetooth
|
||||
alias symbol:hci_resume_dev bluetooth
|
||||
alias symbol:bt_sock_stream_recvmsg bluetooth
|
||||
alias symbol:w1_register_family wire
|
||||
alias symbol:bt_status bluetooth
|
||||
alias symbol:brcmu_pktq_penq brcmutil
|
||||
alias symbol:brcmu_boardrev_str brcmutil
|
||||
alias symbol:ecc_is_pubkey_valid_partial ecc
|
||||
alias symbol:hci_set_hw_info bluetooth
|
||||
alias symbol:btbcm_setup_apple btbcm
|
||||
alias symbol:w1_write_block wire
|
||||
alias symbol:l2cap_chan_create bluetooth
|
||||
alias symbol:brcmu_prpkt brcmutil
|
||||
alias symbol:brcmu_pktq_mdeq brcmutil
|
||||
|
@ -69,9 +83,11 @@ alias symbol:brcmu_pkt_buf_free_skb brcmutil
|
|||
alias symbol:hci_mgmt_chan_unregister bluetooth
|
||||
alias symbol:brcmu_pkt_buf_get_skb brcmutil
|
||||
alias symbol:brcmu_pktq_flush brcmutil
|
||||
alias symbol:btrtl_download_firmware btrtl
|
||||
alias symbol:vli_cmp ecc
|
||||
alias symbol:bt_to_errno bluetooth
|
||||
alias symbol:ecc_alloc_point ecc
|
||||
alias symbol:w1_write_8 wire
|
||||
alias symbol:btbcm_set_bdaddr btbcm
|
||||
alias symbol:l2cap_chan_close bluetooth
|
||||
alias symbol:bt_accept_dequeue bluetooth
|
||||
|
@ -86,6 +102,7 @@ alias symbol:aes_encrypt libaes
|
|||
alias symbol:hci_get_route bluetooth
|
||||
alias symbol:btbcm_write_pcm_int_params btbcm
|
||||
alias symbol:l2cap_chan_list bluetooth
|
||||
alias symbol:w1_calc_crc8 wire
|
||||
alias symbol:btbcm_initialize btbcm
|
||||
alias symbol:ecc_gen_privkey ecc
|
||||
alias symbol:vli_from_le64 ecc
|
||||
|
@ -93,7 +110,10 @@ alias symbol:brcmu_pktq_pdeq_tail brcmutil
|
|||
alias symbol:l2cap_conn_get bluetooth
|
||||
alias symbol:bt_warn bluetooth
|
||||
alias symbol:hci_cmd_sync_cancel bluetooth
|
||||
alias symbol:btrtl_free btrtl
|
||||
alias symbol:w1_reset_select_slave wire
|
||||
alias symbol:hci_register_dev bluetooth
|
||||
alias symbol:btrtl_initialize btrtl
|
||||
alias symbol:ecc_is_key_valid ecc
|
||||
alias symbol:__hci_cmd_sync bluetooth
|
||||
alias symbol:hci_unregister_dev bluetooth
|
||||
|
@ -106,6 +126,9 @@ alias symbol:crypto_ecdh_key_len ecdh_generic
|
|||
alias symbol:__hci_cmd_send bluetooth
|
||||
alias symbol:crypto_ecdh_shared_secret ecc
|
||||
alias symbol:bt_sock_wait_state bluetooth
|
||||
alias symbol:w1_reset_bus wire
|
||||
alias symbol:btrtl_get_uart_settings btrtl
|
||||
alias symbol:btrtl_setup_realtek btrtl
|
||||
alias symbol:ecc_make_pub_key ecc
|
||||
alias symbol:ecc_point_is_zero ecc
|
||||
alias symbol:bt_sock_unlink bluetooth
|
||||
|
|
BIN
dist/lib/modules/6.1.21/modules.symbols.bin
vendored
BIN
dist/lib/modules/6.1.21/modules.symbols.bin
vendored
Binary file not shown.
BIN
dist/vmlinuz
vendored
BIN
dist/vmlinuz
vendored
Binary file not shown.
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/gokrazy-community/kernel-rpi-os-32
|
||||
module git.joco.dk/snr/kernel-rpi-os-32
|
||||
|
||||
go 1.18
|
||||
|
||||
|
|
Loading…
Reference in a new issue