Module metadata

Module metadata 

Source
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
IndexFieldExample
0Serial numberNXXXXXXXXXXXXX
1Kernel version4.9.77
2Firmware version4.45.23640
3Kernel version4.9.77
4Kernel version4.9.77
5Model number390 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 IDModel
310, 3200x4163TouchAB, TouchC
3300x4173Glo
3400x4183Mini
3500x4193AuraHD
3600x4203Aura
3700x4213AuraH2O
3710x4223GloHD
3720x4224Touch2
373, 3810x4225AuraONE, AuraONELimEd
3740x4227AuraH2OEd2V1, AuraH2OEd2V2
3750x4226AuraEd2V1, AuraEd2V2
3760x4228ClaraHD
377, 3800x4229Forma, Forma32GB
3780x4227AuraH2OEd2V2 (V2 hardware)
3790x4226AuraEd2V2 (V2 hardware)
3820x4230Nia
3830x4231Sage
3840x4232LibraH2O
3870x4233Elipsa
3860x4235Clara2E
3880x4234Libra2
3890x4236Elipsa2E
3900x4237LibraColour
391, 3950x4239ClaraBW
3930x4238ClaraColour

Structsยง

DeviceMetadata
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 ๐Ÿ”’