Compare commits

...

3 Commits

Author SHA1 Message Date
Valentine Rymskiy
cfdf2ac6c1 Update README.md 2025-04-15 07:08:37 +07:00
Valentine Rymskiy
968efa3aa1 Update README.md 2025-04-15 07:05:29 +07:00
Valentine Rymskiy
6c8c3d3499 Add image 2025-04-15 07:02:58 +07:00
2 changed files with 8 additions and 5 deletions

BIN
Image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

View File

@@ -1,6 +1,8 @@
Первая рабочая версия драйвера заряда батареи на основе ina226
![schematic](./Image.png)
```
First working version of the driver for charging battery based on ina226
```bash
mkdir driver
cd driver
nano Makefile // paste code
@@ -11,9 +13,10 @@ nano /etc/rc.local
// paste in end
// insmod /lib/modules/6.1.43-rockchip-rk3588/ina226-battery
```
Для включения драйвера в автозагрузку выполните следующие шаги:
```
To enable the driver to start up, follow these steps:
```bash
echo ina226_battery >> /etc/modules-load.d/modules.conf
cp ina226-battery.ko /lib/modules/6.1.43-rockchip-rk3588/extra/
depmod -a
```
```