Add basic support for Nokia N9
Compare changes
Files
22
aports/device/device-nokia-n9/APKBUILD
0 → 100644
+ 45
− 0
Created by: pavelmachek
Filip Matijević did all the work here, I'm just attempting to merge it (with his permission).
N9 has pretty good mainline support, and it is being improved, so it is good target. OTOH it does not have a u-SD card slot, and battery is not removable, which makes it tricky. Currently, it is usable with root mounted over NFS over USB, including working xfce4.
Created by: ollieparanoid
Could you package the firmware in its own package in the firmware folder (e.g
firmware-atmel-ts
, ideally with a more exact name of the screen)?If it's proprietary, please don't ship it with the package (even if it is just a small file), but download it from somewhere on the web - just look at how it's done in the other firmware packages.
I'm just curious why the file gets renamed to
maxtouch.cfg
btw, has this any special meaning?Finally we put postmarketOS firmware into
/lib/firmware/postmarketos
, so it never conflicts with thelinux-firmware
package from Alpine. Our firmware loading script looks in that path, too.By * postmarketOS Bot on 2017-12-28T19:57:34
Created by: filippz
Well, this is a strange one. The "firmware" is in fact configuration file that can be dumped from running hw by using https://github.com/atmel-maxtouch/mxt-app, or simply c/p over from previous versions etc. The thing is that is simply has to be called
maxtouch.cfg
(kernel drivers can't be told the file name by using dts property or something like that) and since we expect using N950 that has the same TS controller but slightly different screen orientation that has to be matched by TS controller we also need a bit different (just 2 bytes)maxtouch.cfg
for it but it must be named the same. I'm targeting for using the same kernel package for N950 by means of subpackages so the names in the package should be more meaningful thatmaxtouch.cfg
(ieRM-696_Pyrenees_SMD_V1_6.raw
)By * postmarketOS Bot on 2017-12-29T06:43:05
Created by: ollieparanoid
Would it make sense to rewrite the driver to get the config file from somewhere in
/etc/
then?I think you don't even need a subpackage - you could make one
device-...
package for the N9 and one for the N950, and let each one ship their own config file, but depend on the same kernel package.By * postmarketOS Bot on 2017-12-29T14:58:03
Created by: filippz
There was a discussion at LKML where Atmel guys were trying to push some changes but the whole thing stalled when maintainers requested to rewrite driver to use regmap - the discussion wasn't productive after that (keywords: proprietary, custom, NDA, ...) One idea in there was to use DT entry instead of special file - which would be great for our usercase, but I'm reluctant to bring this up on LKML once more :)
Actually, putting
maxtouch.cfg
in device- package seems to be a good idea. Maybe we can do that once we decide to introduce support for N950 (CC @pavelmachek)By * postmarketOS Bot on 2017-12-29T17:23:07