https://github.com/throwaway96/webos-kernel-drivers
Linux kernel modules for webOS
https://github.com/throwaway96/webos-kernel-drivers
drivers linux-kernel webos
Last synced: about 1 year ago
JSON representation
Linux kernel modules for webOS
- Host: GitHub
- URL: https://github.com/throwaway96/webos-kernel-drivers
- Owner: throwaway96
- Created: 2023-06-17T23:30:17.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-04-23T02:48:57.000Z (about 2 years ago)
- Last Synced: 2025-04-06T06:58:40.679Z (about 1 year ago)
- Topics: drivers, linux-kernel, webos
- Homepage:
- Size: 20.7 MB
- Stars: 10
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# About
Kernel modules for various webOS versions/SoCs. Mostly serial drivers. Let me know if you need any other ones built.
# Donations
Donate via [Ko-fi](https://ko-fi.com/throwaway96) or [GitHub](https://github.com/sponsors/throwaway96)
if you appreciate my work or want your request bumped to the top of my to-do list.
# Source
Download kernel source and toolchain packages from the [LG Open Source](https://opensource.lge.com/) site.
# Automatically loading at boot
While you can manually load these drivers with `insmod`, people usually prefer to have them loaded automatically on each boot.
The following is an example of using the Homebrew Channel init system to load the `ch341.ko` driver, assuming it is located in `/home/root`:
```sh
cat >/home/root/insmod_serial.sh <<'__EOF__'
#!/bin/sh
insmod /home/root/ch341.ko
__EOF__
chmod +x /home/root/insmod_serial.sh
ln -s /home/root/insmod_serial.sh /var/lib/webosbrew/init.d/10-insmod_serial
```
*If you are using a different driver, just replace `ch341.ko` with its
filename.*
This will create a script named `/home/root/insmod_serial.sh` and a symbolic link to it in `/var/lib/webosbrew/init.d`.
If you want to temporarily stop the module from being loaded, you can delete the link:
```sh
rm /var/lib/webosbrew/init.d/10-insmod_serial
```
To re-enable it, create the link again:
```sh
ln -s /home/root/insmod_serial.sh /var/lib/webosbrew/init.d/10-insmod_serial
```