Expand description
Device metadata from the Kobo version file.
ยงVersion File
The version file at /mnt/onboard/.kobo/version is a single
comma-separated line:
NXXXXXXXXXXXXX,4.9.77,4.45.23640,4.9.77,4.9.77,00000000-0000-0000-0000-000000000390| Index | Field | Example |
|---|---|---|
| 0 | Serial number | NXXXXXXXXXXXXX |
| 1 | Kernel version | 4.9.77 |
| 2 | Firmware version | 4.45.23640 |
| 3 | Kernel version | 4.9.77 |
| 4 | Kernel version | 4.9.77 |
| 5 | Model number | 390 or 00000000-0000-0000-0000-000000000390 |
ยงModel Number to Product ID Mapping
The model number from field 5 maps to a USB Product ID and a
Model variant:
| Model number(s) | Product ID | Model |
|---|---|---|
| 310, 320 | 0x4163 | TouchAB, TouchC |
| 330 | 0x4173 | Glo |
| 340 | 0x4183 | Mini |
| 350 | 0x4193 | AuraHD |
| 360 | 0x4203 | Aura |
| 370 | 0x4213 | AuraH2O |
| 371 | 0x4223 | GloHD |
| 372 | 0x4224 | Touch2 |
| 373, 381 | 0x4225 | AuraONE, AuraONELimEd |
| 374 | 0x4227 | AuraH2OEd2V1, AuraH2OEd2V2 |
| 375 | 0x4226 | AuraEd2V1, AuraEd2V2 |
| 376 | 0x4228 | ClaraHD |
| 377, 380 | 0x4229 | Forma, Forma32GB |
| 378 | 0x4227 | AuraH2OEd2V2 (V2 hardware) |
| 379 | 0x4226 | AuraEd2V2 (V2 hardware) |
| 382 | 0x4230 | Nia |
| 383 | 0x4231 | Sage |
| 384 | 0x4232 | LibraH2O |
| 387 | 0x4233 | Elipsa |
| 386 | 0x4235 | Clara2E |
| 388 | 0x4234 | Libra2 |
| 389 | 0x4236 | Elipsa2E |
| 390 | 0x4237 | LibraColour |
| 391, 395 | 0x4239 | ClaraBW |
| 393 | 0x4238 | ClaraColour |
Structsยง
- Device
Metadata - Device metadata read from Kobo version file.
Enumsยง
- Platform ๐
- Represents the hardware platform of the device.
Constantsยง
- VENDOR_
ID ๐ - VERSION_
PATH ๐
Functionsยง
- detect_
platform ๐ - Detects the platform type from the PLATFORM environment variable.
- model_
to_ ๐product_ id - Maps a Kobo model number to its USB Product ID.
- platform_
to_ ๐partition