Commit graph

347 commits

Author SHA1 Message Date
Oliver Smith
affe49eaed Merge pull request #117 from PabloCastellano/device-motorola-titan
Moto G 2014 (titan)
2017-06-28 22:06:11 +00:00
Oliver Smith
21128d29d3 Merge pull request #119 from postmarketOS/optional-fde
Optional Full Disk Encryption (Close #86)
2017-06-28 22:03:08 +00:00
Pablo Castellano
ee7e7f067c Changes done after code review 2017-06-28 20:10:18 +02:00
Pablo Castellano
376f8278d5 deviceinfo_generate_bootimg 2017-06-28 20:09:27 +02:00
Pablo Castellano
4390e4fa54 udev rule to use touchscreen + calibration 2017-06-28 20:09:27 +02:00
Pablo Castellano
c24e6eab01 Added deviceinfo_weston_pixman_type variable to fix red screen bug 2017-06-28 20:09:27 +02:00
Pablo Castellano
ae10f17f7d Added profile.sh and initfs-hook hacks
Weston works! (and has red screen bug)

Note: I have to manually ssh and
sh /etc/postmarketos-mkinitfs/hooks/00-device-motorola-titan.sh
2017-06-28 20:09:27 +02:00
Pablo Castellano
a844564629 Use dtb image. It finally boots! 2017-06-28 20:09:27 +02:00
Pablo Castellano
2e369f9379 Disable CONFIG_KERNEL_XZ 2017-06-28 20:09:27 +02:00
Pablo Castellano
714fabe42a Enable CONFIG_DEVTMPFS=y 2017-06-28 20:09:27 +02:00
Pablo Castellano
9dd30614f1 Removed some unnecessary changes from gcc5 big patch 2017-06-28 20:09:27 +02:00
Pablo Castellano
56c4c44b7f Flash time! 2017-06-28 20:09:27 +02:00
Pablo Castellano
54948b6bf6 Kernel compiles!
- Removed -Werror
- Use linux-lg-mako as base
- Split big .diff in .patch files so that they are automatically applied

- Applied patches to kernel
  Previously it was stuck showing this error:
  https://pastebin.com/L7Q01Q7s

  See:
  https://forum.armbian.com/index.php?/topic/545-building-kernel-with-gcc5/
  https://github.com/xapp-le/owl/issues/4

  Other interesting changes to merge:
  5236526cf8
2017-06-28 20:09:27 +02:00
Pablo Castellano
d894d02e02 After menuconfig and accept all default values 2017-06-28 20:09:27 +02:00
Pablo Castellano
21438b4ab2 Use LineageOS kernel
Copied defconfig from
https://github.com/LineageOS/android_kernel_motorola_msm8226/blob/cm-14.1/arch/arm/configs/titan_defconfig
2017-06-28 20:09:27 +02:00
Pablo Castellano
9a98079c5c APKBUILD + deviceinfo (work in progress)
- Removed ACTIVATE_DOWNLOAD_MODE.txt and ACTIVATE_RECOVERY.txt

From lineage-14.1-20170602-nightly-titan-signed.zip

$ unpackbootimg -i boot.img
Android magic found at: 0
BOARD_KERNEL_CMDLINE androidboot.bootdevice=msm_sdcc.1 androidboot.hardware=qcom vmalloc=400M utags.blkdev=/dev/block/platform/msm_sdcc.1/by-name/utags buildvariant=userdebug
BOARD_KERNEL_BASE 00008000
BOARD_RAMDISK_OFFSET 01000000
BOARD_SECOND_OFFSET 00f00000
BOARD_TAGS_OFFSET 00000100
BOARD_PAGE_SIZE 2048
BOARD_SECOND_SIZE 0
BOARD_DT_SIZE 1763328
2017-06-28 20:09:27 +02:00
Pablo Castellano
4ef6ab85d3 Porting to Moto G 2014 "titan"
- Use samsung-i9100 as template
2017-06-28 20:09:27 +02:00
Nutcake
310df10d3c Adjust defconfig path 2017-06-28 18:55:15 +02:00
Oliver Smith
238cc65ad7 Fix /proc/cmdline grepping: /proc must be mounted first 2017-06-28 18:13:02 +02:00
Oliver Smith
fec2e22f49 postmarketos-mkinitfs: Major refactoring
* rewrote find_root_partition to make it compatible with the i9100
  again (and added a big description comment about how it works)
* usb network and dhcp server gets started independent of hooks
  now. this really makes sense for development now, we can disable
  this later (and set up networking via OpenRC, when the usb-shell
  hook is not installed)
* telnet splash + unlock telnetd code only runs, when the rootfs
  is encrypted
* usb_setup_android wrapped with a generic usb_setup function, so
  we can support networking for more device types in a clean way
* the IP of the device is now in init_functions.sh, and init_functions.sh
  gets included in all hooks.
* rewrote logging function. it logs all stdout and stderr to
  /pmOS_init.log, except when PMOS_NO_OUTPUT_REDIRECT is specified
  as kernel command line. This way we can see error output from
  all commands.
* used shfmt to format everything, so it looks consistent again
* added automatic shellchecking for init.sh.in and
  init_functions.sh
* clear naming scheme for initfs functions, they all start with a
  verb now (e.g. setup_usb_network, start_udhcpd, ...)
2017-06-28 17:32:16 +02:00
Oliver Smith
3950fcd2a4 Merge branch 'optional_full_disk_encryption' of https://github.com/PabloCastellano/pmbootstrap into optional-fde 2017-06-28 17:16:56 +02:00
Nutcake
bd2012b51d Add new device lg-d855 2017-06-28 00:31:22 +02:00
Pablo Castellano
46cd14efb3 Added extract-dtb tool 2017-06-25 21:40:49 +02:00
Pablo Castellano
a4a687313d aportgen: Added end of file newline 2017-06-25 21:40:49 +02:00
Pablo Castellano
4154861794 [postmarketos-base][hammerhead] Use weston --pixman-type
Add a new optional variable weston_pixman_type in deviceinfo
This is used to fix the red screen issue (close #54)
2017-06-25 21:25:40 +02:00
Oliver Smith
f218807563 Update musl-* to 1.1.16-r14 2017-06-25 13:38:39 +02:00
Pablo Castellano
3ca1a2b641 Mount unencrypted root partition (close #86)
- Do not decrypt if not necessary
- Do not launch telnetd if partition is unencrypted
- Basic initramfs logging to /tmp/boot.log
2017-06-22 20:14:38 +02:00
Pablo Castellano
7688454be0 Find root partition using labels
For some reason /dev/disk/by-label/pmOS_root symlink is not present and
blkid from busybox doesn't support the -L parameter. We could install
blkid from util-linux but I prefered to use shell commands instead
2017-06-22 19:58:28 +02:00
Pablo Castellano
58b31aee1f Update musl-* to 1.1.16-r13 2017-06-22 00:44:02 +02:00
Martijn Braam
e089f71f3e Fixed module loading for n900 2017-06-19 00:05:37 +02:00
Martijn Braam
94f460ba44 Enabled module installing for the n900 kernel 2017-06-18 21:17:00 +02:00
Oliver Smith
39b6a65c07 gcc-aarch64: remove dependency on bash
This was added by mistake while testing the gcc-aarch64 aport.
2017-06-18 02:00:41 +02:00
Pablo Castellano
fcc1ad6361 [weston] Added compositor-fbdev-Added-parameter-pixman-type patch
It fixes the red screen bug by running weston --pixman-type=2

https://github.com/postmarketOS/pmbootstrap/issues/54
2017-06-16 22:44:48 +02:00
Oliver Smith
88e4768465 Update musl-* to 1.1.16-r12 2017-06-15 03:07:51 +02:00
Oliver Smith
b2bbee1116 Fix #87: weston: Change arch to "all", so it builds on aarch64.
Pull request for the same change in the upstream APKBUILD from Alpine:
https://github.com/alpinelinux/aports/pull/1689
2017-06-15 01:38:28 +02:00
Oliver Smith
4ebf025585 Remove firefox dependency from postmarketos-demos.
firefox-esr is not apackaged on Alpine for aarch64 right now.
As firefox is just a demo in the current state, it will be left to
the user to add it to his installation with the --add flag, so this
will not break the install step anymore.
2017-06-15 00:33:22 +02:00
Oliver Smith
b89fc0826b postmarketos-demos: Depend on firefox-esr instead of firefox
The firefox package is currently broken in armhf Alpine,
and it looks like fixing will take a while (depends on packaging
rust for armhf on Alpine):

https://bugs.alpinelinux.org/issues/7409
https://github.com/alpinelinux/aports/pull/1578#discussion_r119988654
2017-06-14 19:52:40 +02:00
Oliver Smith
925b78ae16 Official support for aarch64 (#84)
* Fix hardcoded `armhf` in pmb/aportgen/binutils.py
* Generate aports: `binutils-aarch64`, `musl-aarch64`, `gcc-aarch64`
* Distccd: Remember the cross-compiler architecture (currently armhf
  or aarch64), that the current distccd is running as, and restart
  distccd with the correct architecture, in case a different arch
  is needed than what it is currently running as. (Depending on the
  cross-compiler arch, the PATH variable gets adjusted before
  starting distccd)
* Testcases: add aport generation for aarch64, add cross-compiling
  to aarch64
* pmb/parse/arch.py: Add aarch64 to the mapping
2017-06-14 19:10:21 +02:00
Oliver Smith
af7c03c959 Fix #76: Rebuild initramfs, when installing a initramfs hook
Also shellcheck all *.trigger files from now on in the static code analysis.
2017-06-13 00:55:49 +02:00
Oliver Smith
5d4f279362 Merge branch 'lazy-reproducible-builds'
We have "lazy reproducible builds" now. What I mean by that is, that
the resulting "apk" archive is not fully reproducible, but all binaries
inside it are. This is necessary to kick-off the binary repo, which is
in turn required to get the testsuite going on Travis. Read #64 for more
information.

Usage:
```
pmbootstrap build hello-world --buildinfo
pmbootstrap challenge /tmp/path/to/hello-world-1-r2.apk
```

The "--buildinfo" parameter generates a "buildinfo.json", which contains
the versions of all dependencies. It is not very optimizied, so this
is a performance bottleneck and takes 10 seconds (which is quite much
considering that the hello-world package builds in less than a second).
This can be improved in the future, and then the buildinfo parameter
may become the default.
2017-06-11 14:19:57 +02:00
Martijn Braam
10ea4f30b3 Bumped version for device-nokia-rx51 2017-06-10 19:49:49 +02:00
Martijn Braam
bf88419982 Added hook to enable backlight on boot for n900 2017-06-10 18:43:33 +02:00
Martijn Braam
c9aaa648ec Nokia branch cleanup 2017-06-10 11:43:24 +02:00
Martijn Braam
8e0e1637b9 Added uboot handeling to mkinitfs 2017-06-10 01:41:01 +02:00
Martijn Braam
af2e7e34f3 Renamed kerneloutput to vmlinuz- to avoid initfs build errors 2017-06-10 01:39:41 +02:00
Martijn Braam
8e9849ecfa Added uboot script to n900 2017-06-10 01:38:46 +02:00
Martijn Braam
531cc1bbaf Added uboot flag to deviceinfo 2017-06-09 23:42:53 +02:00
Martijn Braam
2905dc1ee6 Bootable kernel for Nokia n900 2017-06-09 23:11:29 +02:00
Martijn Braam
e599f28113 Merge branch 'master' of github.com:postmarketOS/pmbootstrap into device-nokia-rx51 2017-06-09 20:27:19 +02:00
Pablo Castellano
fc1f52d5d2 postmarketos-mkinitfs-hook-usb-shell: Fix checksum 2017-06-09 19:32:26 +02:00