From df811f970c1e69a5fcb433aca60fbef8a6d7ab11 Mon Sep 17 00:00:00 2001 From: Daisuke Sato Date: Fri, 31 Mar 2023 21:32:24 +0900 Subject: [PATCH] Make Raspberry Pi 4 default Bump up to 3.3.0 --- README.md | 10 +++++----- src/drivers/rtmouse.c | 4 ++-- utils/build_install_header_from_apt_raspi2.bash | 2 ++ utils/build_install_header_from_apt_raspi4.bash | 2 -- utils/build_install_header_from_source_raspi2.bash | 2 ++ utils/build_install_header_from_source_raspi4.bash | 2 -- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index e392ef3..316a013 100644 --- a/README.md +++ b/README.md @@ -55,13 +55,13 @@ rtmouseをインストールして不具合が出た場合のみ以下の設定 * Device Tree機能を「切」にする。 -### for Raspberry Pi 4 +### for Raspberry Pi 2/3 -Edit [`rtmouse.c`](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54) to change the defined value `RASPBERRYPI` from '2' to '4'. +Edit [`rtmouse.c`](https://github.com/rt-net/RaspberryPiMouse/blob/3.2.0/src/drivers/rtmouse.c#L54) to change the defined value `RASPBERRYPI` from '4' to '2'. -Raspberry Pi 4ではCPUのレジスタがそれまでのRaspberry Piとは異なります([issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。 -Raspberry Pi 4で本ドライバを使用する際には`rtmouse.c`の以下の行(2020年4月13日現在の最新版のv2.1.0では[54行目](https://github.com/rt-net/RaspberryPiMouse/blob/dd0343449951a99b067e24aef3c03ae5ed9ab936/src/drivers/rtmouse.c#L54))を`RASPBERRYPI 4`に書き換えてビルドする必要があります。 -※[`./utils/build_install.bash`](./utils/build_install.bash)を実行すると、Raspberry Piのモデルに合わせて[`rtmouse.c`](./src/drivers/rtmouse.c)が[自動で書き換わります](https://github.com/rt-net/RaspberryPiMouse/blob/a9af4fa2b2a8e34c0f93a6ce5cf88ebd50ff39c2/utils/build_install.raspi4ubuntu.bash#L13-L14)。 +Raspberry Pi 2/3ではCPUのレジスタがRaspberry Pi 4とは異なります([issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。 +Raspberry Pi 2/3で本ドライバを使用する際には`rtmouse.c`の以下の行(2022年4月現在の最新版の3.2.0では[54行目](https://github.com/rt-net/RaspberryPiMouse/blob/3.2.0/src/drivers/rtmouse.c#L54))を`RASPBERRYPI 2`に書き換えてビルドする必要があります。 +※[`./utils/build_install.bash`](./utils/build_install.bash)を実行すると、Raspberry Piのモデルに合わせて[`rtmouse.c`](./src/drivers/rtmouse.c)が自動で書き換わります。 ```c // define the Raspberry Pi version here diff --git a/src/drivers/rtmouse.c b/src/drivers/rtmouse.c index db5867e..3a1ece3 100644 --- a/src/drivers/rtmouse.c +++ b/src/drivers/rtmouse.c @@ -51,11 +51,11 @@ // Raspberry Pi 2 B : 2 // Raspberry Pi 3 B/A+/B+ : 2 // Raspberry Pi 4 B : 4 -#define RASPBERRYPI 2 +#define RASPBERRYPI 4 MODULE_AUTHOR("RT Corporation"); MODULE_LICENSE("GPL"); -MODULE_VERSION("3.2.0"); +MODULE_VERSION("3.3.0"); MODULE_DESCRIPTION("Raspberry Pi Mouse device driver"); /* --- Device Numbers --- */ diff --git a/utils/build_install_header_from_apt_raspi2.bash b/utils/build_install_header_from_apt_raspi2.bash index 0826cd3..abe9668 100755 --- a/utils/build_install_header_from_apt_raspi2.bash +++ b/utils/build_install_header_from_apt_raspi2.bash @@ -10,6 +10,8 @@ cd $SRC_DIR/src/drivers/ rm Makefile ln -s Makefile.header_from_apt Makefile make clean +# Update for Raspberry Pi 2/3 +sed -i -e "s/#define RASPBERRYPI 4/#define RASPBERRYPI 2/g" rtmouse.c make sudo insmod rtmouse.ko diff --git a/utils/build_install_header_from_apt_raspi4.bash b/utils/build_install_header_from_apt_raspi4.bash index 482d675..0826cd3 100755 --- a/utils/build_install_header_from_apt_raspi4.bash +++ b/utils/build_install_header_from_apt_raspi4.bash @@ -10,8 +10,6 @@ cd $SRC_DIR/src/drivers/ rm Makefile ln -s Makefile.header_from_apt Makefile make clean -# Update for Raspberry Pi 4 -sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c make sudo insmod rtmouse.ko diff --git a/utils/build_install_header_from_source_raspi2.bash b/utils/build_install_header_from_source_raspi2.bash index 1bf52ba..461ae8f 100755 --- a/utils/build_install_header_from_source_raspi2.bash +++ b/utils/build_install_header_from_source_raspi2.bash @@ -10,6 +10,8 @@ cd $SRC_DIR/src/drivers/ rm Makefile ln -s Makefile.header_from_source Makefile make clean +# Update for Raspberry Pi 2/3 +sed -i -e "s/#define RASPBERRYPI 4/#define RASPBERRYPI 2/g" rtmouse.c make sudo insmod rtmouse.ko diff --git a/utils/build_install_header_from_source_raspi4.bash b/utils/build_install_header_from_source_raspi4.bash index a09aabb..1bf52ba 100755 --- a/utils/build_install_header_from_source_raspi4.bash +++ b/utils/build_install_header_from_source_raspi4.bash @@ -10,8 +10,6 @@ cd $SRC_DIR/src/drivers/ rm Makefile ln -s Makefile.header_from_source Makefile make clean -# Update for Raspberry Pi 4 -sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c make sudo insmod rtmouse.ko pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy