Changes

Jump to: navigation, search

Porting to a new device

No change in size, 7 June
m
Changed the order of device and kernel packages, as this is the necessary order to be able to extract relevant information from a boot.img file
$ pmbootstrap log
</syntaxhighlight>
 
=== Device specific package ===
Open the <code>deviceinfo</code> file in an editor (replace <code>wiki-example</code>). In case you have ''not'' cloned <code>pmbootstrap</code> from git, the aports folder will be in <code>cache_git/pmaports</code> inside your work folder (default: <code>~/.local/var/pmbootstrap/cache_git/pmaports</code>).
 
<syntaxhighlight lang="shell-session">
$ nano aports/device/device-wiki-example/deviceinfo
</syntaxhighlight>
 
Now adjust:
 
* <code>deviceinfo_screen_width</code>
* <code>deviceinfo_screen_height</code>
 
In case you were asked for <code>boot.img</code> analyzing, and skipped that section during [[#Flash_method|init]]: You can run <code>pmbootstrap bootimg_analyze path/to/boot.img</code> to get the right values for the <code>deviceinfo_flash_offset_</code> lines now. Filling out manually also works, but that is error-prone and therefore not recommended.
 
See [[deviceinfo reference]] for a listing of all available variables and their meanings. The [[device specific package]] article explains advanced customization of the <code>APKBUILD</code>.
=== Kernel package ===
===== Using GCC4 =====
As GCC4 was recently introduced in Postmarket OS repos, you can follow the procedure for GCC6 above and replace all gcc6 occurrences with gcc4 and add <nowiki>gcc4 (armv7/armhf/...)-gcc4</nowiki> to your list of dependencies.
 
=== Device specific package ===
Open the <code>deviceinfo</code> file in an editor (replace <code>wiki-example</code>). In case you have ''not'' cloned <code>pmbootstrap</code> from git, the aports folder will be in <code>cache_git/pmaports</code> inside your work folder (default: <code>~/.local/var/pmbootstrap/cache_git/pmaports</code>).
 
<syntaxhighlight lang="shell-session">
$ nano aports/device/device-wiki-example/deviceinfo
</syntaxhighlight>
 
Now adjust:
 
* <code>deviceinfo_screen_width</code>
* <code>deviceinfo_screen_height</code>
 
In case you were asked for <code>boot.img</code> analyzing, and skipped that section during [[#Flash_method|init]]: You can run <code>pmbootstrap bootimg_analyze path/to/boot.img</code> to get the right values for the <code>deviceinfo_flash_offset_</code> lines now. Filling out manually also works, but that is error-prone and therefore not recommended.
 
See [[deviceinfo reference]] for a listing of all available variables and their meanings. The [[device specific package]] article explains advanced customization of the <code>APKBUILD</code>.
=== We are happy to help you! ===
19
edits

Navigation menu