They just recently released their toolchain for the reMarkable 2 https://github.com/reMarkable/linux/issues/7
The toolchain for the rM1 has been out for a long time. Since it's just a linux device, there is a ton of existing documentation on how to work with it.