Commit Graph
86 Commits
Author SHA1 Message Date
drebrez 175afb81f9 matchbox/matchbox-keyboard: remove (upstreamed) (!441) 2019-06-17 20:42:58 +02:00
drebrez 7bc1750d64 main/libfakekey: remove (upstreamed) (!441) 2019-06-17 20:42:58 +02:00
Daniele Debernardi 7b3702e2dd Add gcc4 and gcc4-armhf packages (!216)
Successfully tested both the gcc4 compiler on x86_64 with a simple
program (fbdebug) and the gcc4-armhf cross-compiler to build a very old
u-boot port for Galaxy Nexus (a MR will follow soon) which failed to
boot with either newer version (6 and 8).

[skip ci]: already went through
2019-02-12 21:03:12 +00:00
Daniele Debernardi ffa2dad8ca device-raspberry-pi3: Remove unnecessary kernel subpackage (!127) 2019-01-06 13:27:58 +01:00
Daniele Debernardi c60f29e974 device-raspberry-pi0: Reduce GPU memory and always install bluetooth package (!127) 2019-01-06 13:27:53 +01:00
Daniele Debernardi 2bc4b640b0 New device: Raspberry Pi Zero with Ethernet over USB enabled (!125)
As mentioned in #151, the Raspberry Pi Zero doesn't have an ethernet
port, so this makes it quite complicated to connect to the device from
a fresh install, because wifi/bluetooth/serial/... are not configured.
With this new package, the device starts with the microUSB configured as
ethernet and the dhcpd is running on the RPI, so you can simply connect
it to a computer and connect with SSH in order to configure it.
2019-01-03 09:48:39 +01:00
Daniele Debernardi 88abc21167 debug-shell: Skip fbsplash properly (!124)
The show_splash function called by the 20-debug-shell.sh script already
skips fbsplash when the device is configured to not use the framebuffer.
But the variable was not defined in the script. This is solved by
including the /etc/deviceinfo file.

Follow-up to !108, where this change got lost in the rebase.
2019-01-03 09:03:37 +01:00
Daniele Debernardi a98b900b65 postmarketos-mkinitfs: skip fbsplash for deviceinfo_no_framebuffer (!108)
Also noticed that the debug-shell hook wasn't sourcing the deviceinfo
and still showing the splashscreen even with
deviceinfo_no_framebuffer="true", now is fixed and tested.

Additionally, fix a typo in the existing
"NOTE: Skipping framebuffer setup..." message.
2018-12-26 20:21:55 +01:00
Daniele Debernardi bde7c3b90b linux-samsung-klte: modernize, update sources (!94)
Use latest sources from LineageOS, instead of the ones from andip71.
The APKBUILD is modernized to use the devicepkg-dev but unfortunately
compiling with gcc8 it doesn't boot.

The kernel config is updated with the required options to start the
lxc-android container and xf86-video-hwcomposer works
(tested with xfce4).

My plan was to add the firmware-samsung-klte with the subpackages for
the wifi blobs and a precompiled android system.img to use with
libhybris, but my device just died and I'm not able to power it on (I've
probably burnt the Power IC 😢)
2018-12-06 07:16:45 +01:00
Daniele Debernardi e090a0a498 msm-fb-refresher: also do ioctl on errors (!89)
I noticed that some times the framebuffer driver gets configured in a
way that the ioctl performed by msm-fb-refresher returns something lower
than zero:

https://github.com/LineageOS/android_kernel_samsung_msm8974/blob/0ed263db093b1fc590589836ee36956c327998c3/drivers/video/fbmem.c#L877-L911

For example when the Xorg starts I noticed it does a ioctl BLANK and
UNBLANK, but if msm-fb-refresher performs a ioctl in that moment it
stops its loop and exit.

For this reason I lost a lot of time trying to understand what was the
problem with Xorg not displaying anything until I noticed that I had
to restart the msm-fb-refresher.

With this change we don't have to care about msm-fb-refresher as it will
continue call ioctl PAN even if the framebuffer returns some negative
error code.
2018-12-03 23:33:03 +01:00
Daniele Debernardi e371209b29 fbdebug: Add options to retrieve the colormap and set the fb mode 2018-11-27 07:47:11 +01:00
Daniele Debernardi 9249bf2122 Add support to different deviceinfo variables in mainline/downstream subpackages 2018-11-27 07:47:11 +01:00
Daniele Debernardi 632dac179d chocolate-doom: Remove package 2018-11-27 07:47:11 +01:00
Daniele Debernardi f1841337e7 apk-file: Remove package 2018-11-27 07:47:11 +01:00
Daniele Debernardi 084663e6cc linux-postmarketos-qcom: Enable serial console 2018-11-27 07:47:11 +01:00
Daniele Debernardi e07a79aa5d Add initfs hook which causes a kernel panic (useful for debugging) 2018-11-27 07:47:11 +01:00
Daniele Debernardi bbc4b6bbfe cross/musl-armhf cross/musl-aarch64 cross/musl-x86_64: Update aports to 1.1.20-r2 2018-09-21 23:00:59 +02:00
Daniele Debernardi 758c056002 devicepkg-dev kernel prepare function 2018-07-02 00:12:49 +00:00
Daniele Debernardi bb9ab3a9b3 device-huawei-y530: Modernize APKBUILD 2018-06-30 18:59:25 +02:00
Daniele Debernardi 047439a66f Add Raspberry Pi device (#1501) 2018-05-29 19:33:40 +00:00
Daniele Debernardi d5a12b1f0f [samsung-klte] Add mainline kernel (linux-postmarketos-qcom) (#1479)
Changes:
* device-samsung-klte with both downstream and mainline kernel
  subpackages
* linux-postmarketos-qcom updated to last commit

What works in mainline kernel:
* internal SD card
* volume and home key buttons
* usb network
2018-05-13 19:47:32 +00:00
Daniele Debernardi 38102885f5 [ui-weston] Set postmarketos artwork as default wallpaper (#1466) 2018-05-05 14:27:13 +00:00
Daniele Debernardi 5f2a577cff [ui-mate] Set postmarketOS artwork as default wallpaper (#1452) 2018-05-05 14:04:12 +00:00
Daniele Debernardi bfce4aae18 apk-file: Update to version 0.3.0 and new repository (#1382) 2018-04-02 00:02:12 +00:00
Daniele Debernardi 5f6afd3b39 Add additional files into initramfs when debug-shell is installed (#1358) 2018-03-26 18:12:58 +00:00
Daniele Debernardi 70d797b6bc postmarketos-ui-xfce: Update to 0.2 (#1326)
* Add default icon theme
* Set pmOS wallpaper
* Add battery icon in top panel
* Use builddir (so --src works)
2018-03-12 19:17:36 +00:00
Daniele Debernardi 2054a4ff14 [nokia-n900] Add swiss german keyboard layout (#1310) 2018-03-10 13:08:33 +00:00
Daniele Debernardi d3b439ae2d deviceinfo: remove external_disk_install and external_disk, use external_storage instead (#1301)
* deviceinfo: remove external_disk_install and external_disk, use external_storage instead
* Complain when external_disk* is used
2018-03-07 22:35:02 +00:00
Daniele Debernardi f614c9df88 Implement charging mode (#1285)
* Add charging-sdl package
* Include charging-sdl into the initramfs-extra
* [initramfs] Detect charging mode and use triggerhappy to start
charging-sdl when the power key is pressed
2018-03-05 22:59:23 +00:00
Daniele Debernardi 19df13804c Remove /etc/network/interfaces and networking service from device packages (#1293)
This is not necessary anymore since there is now NetworkManager.
2018-03-05 21:18:13 +00:00
Daniele Debernardi 7cb729cbe3 Include fbdebug tool in debug-shell hook (#1266) 2018-02-26 20:32:01 +00:00
Daniele Debernardi 4c91a72ff1 [fbdebug] Add panning functionality (#1207) 2018-02-06 21:21:25 +00:00
Daniele Debernardi c818f9f054 fbdebug: Add initial framebuffer debug tool (#1196) 2018-02-03 19:09:59 +00:00
Daniele Debernardi 3237f58244 Add device Samsung Galaxy S5 (samsung-klte) (#1163) 2018-02-02 19:59:14 +00:00
Daniele Debernardi 1eb6b7cbd7 Allow to build musl/binutils/gcc for x86 architecture (#1150) 2018-01-23 00:26:33 +00:00
Daniele Debernardi de21e03333 Add qemu-user-static-repack all architectures (#1136)
Also don't build "-repack" packages in native chroot anymore.
This was a legacy hack, which has no use anymore, and it prevented
the package from being built for different architectures.
2018-01-19 21:30:16 +00:00
Daniele Debernardi efc7fc9c57 Add musl/binutils/gcc for cross-compiling to x86_64 (#1130) 2018-01-18 21:48:04 +00:00
Daniele Debernardi 8396a60cf3 abootimg: arch=all (#1131) 2018-01-18 00:58:50 +00:00
Daniele Debernardi 0b9acf52a4 [samsung-i9070] Add proper fix for framebuffer (#1106)
- Removed the framebuffer configuration in the initramfs hook
- Added patch for fixing the framebuffer mode in the kernel source
- Cleanup linux-samsung-i9070 APKBUILD
2018-01-09 19:42:52 +00:00
drebrez a4dc750a3d Add initial packaging of MATE Desktop Environment (#1012)
Notably it has a loading delay (~30s) issue with marco (MATE window manager).
2018-01-03 18:43:13 +00:00
drebrez 5c2e83f051 [initramfs] Set framebuffer mode earlier in the script (before hooks) (#1070) 2018-01-03 00:38:32 +00:00
drebrez 1c71d748f5 [dtbTool] Fix version detection and find dtb in subfolders (#1057)
Fixes #1055.
2017-12-30 19:00:48 +00:00
drebrez 0c63ff041c Feature debug-shell (#1028)
* Changed usb-shell behavior, it wait for some user action before continue booting
* Rename usb-shell to debug-shell and changed port to 23
* Add `20-debug-shell.sh` script to static code analysis
* Enable eth0 interface in initramfs (qemu)
* Add additional script to run a shell in order to be able to kill it from a telnet session
2017-12-23 19:22:28 +00:00
drebrez db25689dfd apk-file: Command line front end for pkgs.alpinelinux.org (#1011) 2017-12-15 23:41:14 +00:00
drebrez cbb31df5a6 [samsung-maguro] Use devicepkg-dev, enable FIQ debugger (#1009)
* [samsung-maguro] Enable FIQ debugger console mode
* [samsung-maguro] Use devicepkg-dev and install mesa-dri-swrast
2017-12-15 22:51:51 +00:00
drebrez 4782ffd01f Add devicepkg-dev which generate the touchscreen udev rule based on the deviceinfo (#995)
* Use devicepkg-dev by default in new device wizard
* Add link to reference wiki page
2017-12-14 21:17:18 +00:00
drebrez fd7b2bb9ba aports: packaged matchbox-keyboard (#1001) 2017-12-12 19:40:12 +00:00
drebrez ae4e10441d [i9070] Install mesa-dri-swrast when mesa package is present (#989) 2017-12-08 21:40:49 +00:00
drebrez 47f8f5fa53 Add Wiko Lenny3 device (#939) 2017-11-26 10:16:50 +00:00
drebrez d5e494ddc2 [samsung-maguro] Add firmware-samsung-maguro package (#849) 2017-11-06 22:03:35 +00:00
drebrez c33e5d823e Add PMOS_FORCE_PARTITION_RESIZE kernel boot parameter (#874) 2017-11-04 22:54:42 +00:00
drebrez 1ef326fb4c [huawei-y530] Cleanup kernel APK, fix compilation issue, remove unnecessary DTBs (#872) 2017-11-04 22:05:57 +00:00
drebrez a95ce42a81 Update musl-* to upstream (1.1.18-r0) (#873) 2017-11-04 19:50:48 +01:00
drebrez e5543e368b Some kernel APKBUILD cleanup (#833)
* Cleanup linux-htc-bravo APKBUILD
* Cleanup linux-samsung-tuna APKBUILD and rename the package to
  linux-samsung-maguro
* Cleanup linux-sony-aries APKBUILD
2017-10-28 19:43:28 +00:00
drebrez 0587f1cd8a Cleanup linux-lg-mako APKBUILD (#825) 2017-10-26 18:11:31 +00:00
drebrez a88c8c918c Fix #808: Add SYSVIPC kernel config check (#809)
* Add SYSVIPC kernel config check
* Add SYSVIPC kernel config option to all linux-device packages
2017-10-23 19:25:40 +00:00
drebrez 95b694bda3 Implement cache for initramfs-extra (#796)
Partially implements:
<https://github.com/postmarketOS/pmbootstrap/issues/411>
2017-10-22 21:00:39 +00:00
drebrez 106f5808ee Firmware packages: fix checksums, use commit in distfiles, general refactoring (#788) 2017-10-19 22:40:14 +00:00
drebrez 1ff598acd8 [huawei-y530] Add firmware-huawei-y530 package with wifi required files (#781) 2017-10-17 16:25:38 +00:00
drebrez 50d682901e [android-recovery-zip] Add missing apk keys (#747) 2017-10-14 15:41:12 +00:00
drebrez b3a9087977 [htc-desire] Add configuration for osk-sdl (#765) 2017-10-14 09:51:47 +00:00
drebrez d4df6dc96b Add mkfs.ext2 and mkfs.ext4 binaries to the android-recovery-installer (#684) 2017-10-07 18:36:23 +00:00
drebrez d82e8f7199 Fix #199: Run weston with user instead of root (#707) 2017-10-07 16:14:49 +00:00
drebrez 84466cd0b6 Fix postmarketos-splash version detection during generation of splash screens (#668) 2017-10-02 22:39:09 +00:00
drebrez 9705ba8b5d [huawei-y530] Add dev_touchscreen variable in deviceinfo (#667) 2017-10-02 22:37:38 +00:00
drebrez e303ea7cf0 Set framebuffer mode in initramfs for all devices (#652) 2017-09-29 15:22:20 +00:00
drebrez fbc909b7f4 Implement cache for generated splash screens (#620) 2017-09-24 14:24:56 +00:00
drebrez 3fc5efe33a [htc-bravo] Reduce kernel size & remove touchscreen calibration (#605)
* [htc-bravo] Reduce kernel size
* [htc-bravo] Remove unnecessary touchscreen calibration
* [htc-bravo] Bump linux-htc-bravo version
2017-09-21 17:13:25 +00:00
drebrez 3c988d76af Add LG G Watch (dory) support (#595)
* Add LG G Watch (dory) support

* Use github.com mirror instead of googlesource.com to have fixed checksum

* Fix kernel compilation and remove unnecessary initfs-hook for framebuffer settings
2017-09-19 01:15:04 +02:00
drebrez 8c3353e93e [huawei-y530] Add kernel modules (#579) 2017-09-14 18:24:33 +00:00
drebrez 7007e2eb63 Fix checksums (GitHub generates different archives now) (#577) 2017-09-14 18:16:16 +00:00
drebrez 12cbff0ba5 Strip kernel modules for all kernels except for linux-postmarketos (#561)
Adding INSTALL_MOD_STRIP will cause modules to be stripped after
they are installed (option --strip-debug will be used)
In case someone isn't happy with it, please open a PR that reverts
it for your device, or start a discussion as a new issue.
2017-09-13 17:47:53 +00:00
drebrez a1b840bb71 [huawei-y530] Fix touchscreen (#552)
- Add patch to fix synaptics rmi touchscreen driver
- Disable not needed touchscreen drivers in kernel config
- Add udev rule to detect touchscreen device
2017-09-10 11:35:20 +00:00
drebrez 0ede5ab353 Fix #533: postmarketos-demos: Add missing dbus dependency (#538) 2017-09-08 22:44:41 +00:00
drebrez fe8e0b3fa7 Update/fix Huawey y530 kernel, framebuffer works (#534) 2017-09-08 15:18:11 +00:00
drebrez 9271425c1a Initial Huawei Ascend Y530 support (#462) 2017-08-25 15:47:32 +00:00
drebrez 8b420832df Add samsung-i9070 firmware package (#455)
Also change the arch of firmware-mozilla-flame's APKBUILD to "noarch".
2017-08-24 17:26:40 +00:00
drebrez b6ceef5138 Detect and resize root partition on QEMU (#414)
To increase the size of the partition you simply increase the size of the image using `truncate -s +200M /path/to/qemu.img` for example and then start QEMU.

More information:
https://github.com/postmarketOS/pmbootstrap/wiki/Common-Qemu-Notes#increase-partition-size
2017-08-18 22:39:32 +00:00
drebrez 7c42663436 Rename wrong deviceinfo_flash_cmdline to deviceinfo_kernel_cmdline (#369) 2017-08-14 14:22:38 +00:00
drebrez 4a3a02c60a Automatically compute the minimum size for the partition and resize it during the boot process (#127)
* Automatically compute the minimum size for the partitions
* Automatically resize the pmOS_root partition during the boot process
* Resize root partition only if there is unallocated space at the end of the device.
* Added more echos to make debugging easier while looking at the pmOS_init.log.
* Updated static_code_analysis.sh script to run shellcheck with `-x` option.
2017-08-03 16:01:00 +00:00
drebrez cade409208 Split up initramfs to make it smaller (Close #211) (#257)
Huge thank you to @drebrez for his amazing work on this PR!

* Add generation of initramfs-extra with additional binaries
Extract both initramfs with `pmbootstrap initfs extract`
Add new splashscreens for missing partitions/files errors
Changes in init script:
 - use busybox findfs applet to find boot partition
 - mount boot partion
 - extract initramfs-extra
 - show error splashscreens accordingly and loop forever
 - start usb unlock directly from unlock_root_partition (hook removed)

* Print out a text message for serial debugging in case of errors
Add initramfs-extra files to `pmbootstrap initfs ls` output

* Fix trailing whitespace in comment...

* ls: Indicate which initramfs we're looking at / add wiki link

I've rewritten the initramfs-development article to reflect the
changes made in this PR. It will be a good read for someone who
extracted the initramfs and wants to know why we have two files.
2017-07-28 18:51:21 +00:00
drebrez 1919b37f3a Add device HTC Desire (Bravo) support (#202)
* Add HTC Desire (Bravo) device-specific and kernel package

* Enable kernel virtual terminal support

* Add framebuffer and usb configuration in initfs-hook script

* Add udev required kernel options and set correct framebuffer resolution

* Add touchscreen device rules and enabled kernel logs (dmesg)

* Add deviceinfo_flash_offset_base in deviceinfo and update other offsets
2017-07-20 17:52:09 +00:00
drebrez 8a7255ef27 Update heimdall script to flash both (kernel+initramfs) at once 2017-07-14 22:35:59 +02:00
drebrez 9dbcc5d00c [i9070] Use kernel modules / Wifi support (!)
* Add kernel module compilation
* Add wifi firmware from vendor files (to `/lib/firmware/postmarketos`) and fix modules install path
* Add patch to change hardcoded dhd firmware/nvram paths
* Add wifi module (dhd) to the list of kernel modules that should be loaded at boot time

Details:
https://github.com/postmarketOS/pmbootstrap/pull/138

Thanks you very much, drebrez \o/
2017-07-08 05:30:00 +00:00
drebrez 6e1e4c5cfc Device samsung i9070 (#123)
* Add Samsung Galaxy S Advance (i9070) device-specific package

* Add Samsung Galaxy S Advance (i9070) kernel package

* Add initfs-hook script to set framebuffer settings

* Enable adb root access in recovery mode (TWRP)

* Add usb configuration in initfs-hook script
Add weston calibration values
Update description of kernel changes

* Remove TMRP recovery and change init script to boot directly postmarketOS
2017-06-29 20:04:16 +00:00
drebrez 6485278d95 Change initialization order, execute hooks before the usb network setup 2017-06-29 18:51:24 +02:00