Deviceinfo reference

Most of the variables in  have self-explanatory names and are used both when you are building postmarketOS (edit at   before flashing, and during runtime it is available at  ). if edited before flashing, be sure to rebuild the file with

All variables start with  in the file - this is omitted here to save space.

Case sensitivity
The values of the deviceinfo variables are case sensitive. Most values are lowercase, but there are exceptions such as. See the "possible values" column for the right casing. For example, if it says  then using   or   or   is not valid.

flash
These are used for flashing and booting the device, and most of them are fastboot specific. Here is a guide on how to get these values for a specific Android device (by extracting the )

multiboot involving Android
See U-Boot porting for more information.

usb
Change how the target device shows up when connected with USB to a host PC. added support for these variables in the mkinitfs script, when using the configfs network method.

The correct IDs can be seen in  of Android/TWRP sources for that device (or directly in rootfs, boot into twrp and see) OR plug in device running stock Android/TWRP and watch dmesg for things like [   3.939519] usb 1-2.4: New USB device found, idVendor=2717, idProduct=ff40, bcdDevice= 4.14 [   3.939521] usb 1-2.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [   3.939521] usb 1-2.4: Product: MI 9 [   3.939522] usb 1-2.4: Manufacturer: Xiaomi

cgpt/depthcharge
These variables are used with ChromeOS devices.

weston

 * : used to be a Weston specific workaround for the "red screen bug" : we patched Weston to accept a  argument to override the framebuffer mode that the kernel driver reports. However, this patch was quickly incompatible with future changes in Weston, and it is not as good as patching the kernel to report the right framebuffer mode, so it was removed.
 * Various options from weston.ini used to be duplicated, but this was removed in . If you need to set weston specific options from your device (such as the output backend or the keymap), please add a weston.ini file to your pmaport (example).

device

 * : Components of the device, that only run with closed source firmware. This is now legacy due to nobody uses it.
 * : Originally intended to point osk-sdl to the hardware keyboard, but was never used. (It should detect hardware keyboards automatically...)

flash

 * : fastboot used to have a  option, but this was removed . Since we only had one device using this and nobody to verify if the option is really needed with this device, we decided to remove it. If you are interested in bringing it back, please create a new issue.

usb

 * : renamed to  in.