Skip to content

Commit df811f9

Browse files
committed
Make Raspberry Pi 4 default
Bump up to 3.3.0
1 parent 53066c2 commit df811f9

6 files changed

+11
-11
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,13 @@ rtmouseをインストールして不具合が出た場合のみ以下の設定
5555

5656
* Device Tree機能を「切」にする。
5757

58-
### for Raspberry Pi 4
58+
### for Raspberry Pi 2/3
5959

60-
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'.
60+
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'.
6161

62-
Raspberry Pi 4ではCPUのレジスタがそれまでのRaspberry Piとは異なります[issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。
63-
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`に書き換えてビルドする必要があります。
64-
[`./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)
62+
Raspberry Pi 2/3ではCPUのレジスタがRaspberry Pi 4とは異なります[issues#21](https://github.com/rt-net/RaspberryPiMouse/issues/21))。
63+
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`に書き換えてビルドする必要があります。
64+
[`./utils/build_install.bash`](./utils/build_install.bash)を実行すると、Raspberry Piのモデルに合わせて[`rtmouse.c`](./src/drivers/rtmouse.c)が自動で書き換わります
6565

6666
```c
6767
// define the Raspberry Pi version here

src/drivers/rtmouse.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
// Raspberry Pi 2 B : 2
5252
// Raspberry Pi 3 B/A+/B+ : 2
5353
// Raspberry Pi 4 B : 4
54-
#define RASPBERRYPI 2
54+
#define RASPBERRYPI 4
5555

5656
MODULE_AUTHOR("RT Corporation");
5757
MODULE_LICENSE("GPL");
58-
MODULE_VERSION("3.2.0");
58+
MODULE_VERSION("3.3.0");
5959
MODULE_DESCRIPTION("Raspberry Pi Mouse device driver");
6060

6161
/* --- Device Numbers --- */

utils/build_install_header_from_apt_raspi2.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ cd $SRC_DIR/src/drivers/
1010
rm Makefile
1111
ln -s Makefile.header_from_apt Makefile
1212
make clean
13+
# Update for Raspberry Pi 2/3
14+
sed -i -e "s/#define RASPBERRYPI 4/#define RASPBERRYPI 2/g" rtmouse.c
1315
make
1416
sudo insmod rtmouse.ko
1517

utils/build_install_header_from_apt_raspi4.bash

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ cd $SRC_DIR/src/drivers/
1010
rm Makefile
1111
ln -s Makefile.header_from_apt Makefile
1212
make clean
13-
# Update for Raspberry Pi 4
14-
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c
1513
make
1614
sudo insmod rtmouse.ko
1715

utils/build_install_header_from_source_raspi2.bash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ cd $SRC_DIR/src/drivers/
1010
rm Makefile
1111
ln -s Makefile.header_from_source Makefile
1212
make clean
13+
# Update for Raspberry Pi 2/3
14+
sed -i -e "s/#define RASPBERRYPI 4/#define RASPBERRYPI 2/g" rtmouse.c
1315
make
1416
sudo insmod rtmouse.ko
1517

utils/build_install_header_from_source_raspi4.bash

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ cd $SRC_DIR/src/drivers/
1010
rm Makefile
1111
ln -s Makefile.header_from_source Makefile
1212
make clean
13-
# Update for Raspberry Pi 4
14-
sed -i -e "s/#define RASPBERRYPI 2/#define RASPBERRYPI 4/g" rtmouse.c
1513
make
1614
sudo insmod rtmouse.ko
1715

0 commit comments

Comments
 (0)
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