Commit Graph

116 Commits

Author SHA1 Message Date
Oliver Smith b4c9f93f0d
[mako] Use red screen workaround 2017-07-09 11:53:21 +02:00
Oliver Smith f0486326f1
This fixes the following error:
mkbootimg: error: argument --base: invalid parse_int value: ''

So now postmarketos-mkinitfs can really generate boot.img files.
2017-07-09 11:19:29 +02:00
Oliver Smith 37640e724a
Close #137: Remove "deviceinfo_modules" / minor deviceinfo changes
Minor changes:
* device-lg-hammerhead: remove left-over comment
* device-samsung-i9100: remove fastboot section
2017-07-08 08:46:27 +02:00
Oliver Smith 2670c3a031
Update busybox-static-* to 1.27.0-r1 2017-07-08 07:48:35 +02:00
Oliver Smith 405a0d7ab8
Fix #139: Update musl-armhf to 1.1.16-r15 2017-07-08 07:44:33 +02:00
drebrez 2fe8eb0fdf [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
Oliver Smith b675f65f7d
deviceinfo: Add link to reference and reword comments 2017-07-06 18:58:14 +02:00
Oliver Smith 6b08d31652 Merge pull request #136 from postmarketOS/build-all-kernels-natively
[i9070][i9100] Build kernels natively
2017-07-06 16:03:48 +00:00
Oliver Smith 9470a6ce46
Close #92: pmOS-specific /etc/motd, /etc/issue 2017-07-05 20:52:37 +02:00
Oliver Smith dede11657d
Get rid of the _pmb_build_in_native_chroot hack 2017-07-05 18:40:00 +02:00
Oliver Smith a7beb4a1f7
Generate aports for busybox-static-armhf and -aarch64
...and add generating both aports to the testsuite.
2017-07-05 18:24:47 +02:00
Oliver Smith 48ffe79051
Fix #128: Remove obsolete 'deviceinfo_flash_offset_base' 2017-07-04 23:25:31 +02:00
Oliver Smith d96c6951b7 Merge pull request #130 from PabloCastellano/develop
Small changes
2017-07-04 20:37:19 +00:00
Oliver Smith 2b209a121e
i9100: remove recovery/download mode instructions txt file
This info belongs in the wiki instead.
2017-07-04 18:19:05 +02:00
Pablo Castellano 6dfdf82429 [titan] Removed duplicate deviceinfo_generate_bootimg in deviceinfo 2017-07-03 23:49:05 +02:00
Oliver Smith 5d62a36bb8 Merge pull request #125 from postmarketOS/mkinitfs-bootimg
Create boot.img file in mkinitfs
2017-06-30 15:21:56 +00:00
Attila Szöllősi ee3db8fc1f Device sony amami (#100)
* Add device: sony-amami
* Add kernel package for sony-amami
2017-06-30 15:19:46 +00:00
drebrez 5118fcf060 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
Oliver Smith 630d38e856
Activate boot.img generation in all fastboot-compatible devices 2017-06-29 21:26:55 +02:00
Oliver Smith 71f4308fc9
Generate boot.img files in mkinitfs
* Only, when deviceinfo_generate_bootimg="true" in the deviceinfo
* It respects a new deviceinfo_kernel_cmdline parameter from the deviceinfo
2017-06-29 21:20:20 +02:00
drebrez 8446bde53a Change initialization order, execute hooks before the usb network setup 2017-06-29 18:51:24 +02:00
Martijn Braam f75006aa3c Bumped version on hammerhead packages 2017-06-29 00:22:17 +02:00
Martijn Braam 18389d0b39 Added dependency on linux-firmware 2017-06-29 00:19:59 +02:00
Martijn Braam 9c926697f0 Reverted accidental menuconfig change 2017-06-29 00:18:55 +02:00
Martijn Braam 3400d989b3 Added bcmdhd calibration from google git 2017-06-29 00:16:22 +02:00
Martijn Braam 44bb1a3e33 Changed broadcom config for hammerhead 2017-06-29 00:07:57 +02:00
Oliver Smith 49dfc5a7c7 Merge pull request #117 from PabloCastellano/device-motorola-titan
Moto G 2014 (titan)
2017-06-28 22:06:11 +00:00
Oliver Smith 528cda5776 Merge pull request #119 from postmarketOS/optional-fde
Optional Full Disk Encryption (Close #86)
2017-06-28 22:03:08 +00:00
Pablo Castellano 81b8df0633 Changes done after code review 2017-06-28 20:10:18 +02:00
Pablo Castellano fc0be349e8 deviceinfo_generate_bootimg 2017-06-28 20:09:27 +02:00
Pablo Castellano 749ed48f04 udev rule to use touchscreen + calibration 2017-06-28 20:09:27 +02:00
Pablo Castellano 66f23e77cd Added deviceinfo_weston_pixman_type variable to fix red screen bug 2017-06-28 20:09:27 +02:00
Pablo Castellano 8ba6db98af 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 1dff03e42d Use dtb image. It finally boots! 2017-06-28 20:09:27 +02:00
Pablo Castellano 85304cacc3 Disable CONFIG_KERNEL_XZ 2017-06-28 20:09:27 +02:00
Pablo Castellano 882133ad36 Enable CONFIG_DEVTMPFS=y 2017-06-28 20:09:27 +02:00
Pablo Castellano 4e2a68bc44 Removed some unnecessary changes from gcc5 big patch 2017-06-28 20:09:27 +02:00
Pablo Castellano fd1090574e Flash time! 2017-06-28 20:09:27 +02:00
Pablo Castellano 848da0a068 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 fcd73caf4c After menuconfig and accept all default values 2017-06-28 20:09:27 +02:00
Pablo Castellano 2e7a414f90 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 4f8531f39a 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 bbf3913428 Porting to Moto G 2014 "titan"
- Use samsung-i9100 as template
2017-06-28 20:09:27 +02:00
Nutcake b129beb18f Adjust defconfig path 2017-06-28 18:55:15 +02:00
Oliver Smith 5b00843301
Fix /proc/cmdline grepping: /proc must be mounted first 2017-06-28 18:13:02 +02:00
Oliver Smith c6214c05e0
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 86cb9f5ec8
Merge branch 'optional_full_disk_encryption' of https://github.com/PabloCastellano/pmbootstrap into optional-fde 2017-06-28 17:16:56 +02:00
Nutcake 6de9025230 Add new device lg-d855 2017-06-28 00:31:22 +02:00
Pablo Castellano 81cd2d8df4 Added extract-dtb tool 2017-06-25 21:40:49 +02:00
Pablo Castellano 7e79d20a0b aportgen: Added end of file newline 2017-06-25 21:40:49 +02:00