Commit graph

2273 commits

Author SHA1 Message Date
Luca Weiss
89f9d48ebb Actually use the PROGNAME variable and change filename to camelCase as in upstream 2017-07-27 19:04:02 +02:00
Martijn Braam
0fc1ef3488 Merge pull request #273 from yuvadm/dtbtool
Add dtbtool package
2017-07-27 17:04:57 +02:00
Yuval Adam
89be60502a Add dtbtool package 2017-07-27 17:57:43 +03:00
Martijn Braam
750a1c8e29 Merge pull request #258 from craftyguy/enable_syslog
Enable syslog on boot
2017-07-27 09:33:09 +02:00
Oliver Smith
416513b5e7 Low hanging fruit basket (Close #220, Close #239) (#253)
* postmarketos-splash: change arch from "all" to "noarch"
* lg-mako: use .tar.gz instead of .zip (because that's the reference
  APKBUILD)
* #220: Allow specifying multiple packages for checksum, build,
  aportgen
* #239: Add chroot shortcuts (--rootfs and --buildroot)
* Show chroot and command before entering chroot
2017-07-26 18:59:11 +00:00
Martijn Braam
c122412932 Added more drivers to the x86_64 kernel (#272)
This adds support for ide, sata, mice, touchscreens,
displays and serial ports in qemu.
2017-07-26 18:33:21 +00:00
Clayton Craft
e32323fb86 Enable syslog on boot
This enables the busybox syslog implementation, which logs to
/var/log/messages, on boot. This is very helpful for debugging
applications which write to syslog (e.g. NetworkManager)

syslog is being set up to log to shared memory (not to disk), so log is
lost 1) on reboot and 2) if the service is restarted. It can be read
with `logread`
2017-07-25 19:52:23 -07:00
Martijn Braam
bed8ab6427 Unified linux-postmarketos kernel for qemu and n900 (#228)
The creates the linux-postmarketos package which for now supports the n900 (and probably the other maemo devices) and qemu with the vexpress-a9 machine simulation.

I've put the generated dtbs in /usr/share/dtb for now and set the dtb field in the deviceinfo for the n900 and my new qemu device.

* Introduced linux-postmarketos-omap
* Unified kernel progress
* Created kernel bootable with qemu
* Updated n900 deviceinfo for generic kernel
* Changed qemu device to vexpress
* Updated APK comments and added linux-postmarketos-dev package
* Append dtb in mkinitfs
* Fixed bootscript on n900 for the generic kernel
* Don't detect double flavors with -dtb appending
* Added graphics drivers for vexpress (qemu)
* Added more drivers for qemu

This adds virtio network support in qemu for the vexpress-a9 machine.
The keyboard and mouse don't work yet.
You can boot into weston if --no-fde is specified
2017-07-25 20:08:35 +00:00
Oliver Smith
900a661cab Close #212: Split heimdall in heimdall-isorec and heimdall-bootimg (#254) 2017-07-25 18:56:10 +00:00
clayton craft
5404a8fd7d De-couple weston from postmarketos-base (#233)
Thanks, craftyguy!

- UI is selectable with `pmbootstrap init`. Currently only 'weston' and 'none' are options. It'll automatically pick up any new `postmarketos-ui-*` packages added at later dates.
- splits off weston packages install from postmarketos-base and puts
them into postmarketos-ui-weston. Also note that NO weston packages are
installed by "pmbootstrap install" by default unless the user selects a ui in the `init`
- configuration of weston is now in postmarketos-ui-weston.
- the demos have been spun off to `postmarketos-demos`, and `postmarketos-ui-weston` lists this package as a dependency.
2017-07-24 20:55:55 +00:00
Martijn Braam
c8e4803913 New splash images in mkinitfs (#240)
Thanks, Martijn Braam!

* Made postmarketos-mkinitfs use postmarketos-splash to generate splash images
* Added screen sizes to all deviceinfo files
* Bumped pkgrel for all device packages
2017-07-23 12:50:40 +00:00
Martijn Braam
7ccbe4e9ec Created splash screen generator (#206)
Nice configurable splash screen generator, thanks Martijn Braam!
2017-07-22 22:39:30 +00:00
Martijn Braam
4c015dee77 Merge pull request #224 from craftyguy/rx51_linux-4.12.3
[RX51] Update to Linux-4.12.3
2017-07-22 12:42:58 +02:00
Oliver Smith
53a76cd768 Fix #219 for real!
100% tested. Assuming that you don't need to test an obvious change,
because it only changes one line is dangerous. I will learn from this,
sorry for the inconvenience.

`gcc-armhf` compiles fine again with that change, and it is able to
cross-compile packages as it used to.
2017-07-22 12:36:00 +02:00
Martijn Braam
aafcac8b09 Merge pull request #184 from craftyguy/rx51_weston_keyboard_layout
[RX51] Set keyboard layout for weston
2017-07-22 11:01:29 +02:00
Oliver Smith
dded463f9a Fix #219: pmbootstrap could not find g++-armhf/g++-aarch64 2017-07-22 09:49:24 +02:00
Clayton Craft
a1d5b99747 [RX51] Update to Linux-4.12.3 2017-07-21 16:00:47 -07:00
Clayton Craft
79c25a3e9e [RX51] Set keyboard layout for weston
This configures the keymap in weston so that the rx51 keyboard behaves
as expected (e.g. shift key, numbers, etc)
2017-07-21 13:47:00 -07:00
clayton craft
85cc4b01da Re-enable XWayland for devices that had it enabled (#221)
This re-enables the XWayland module for devices which did not use the
'dirty hack' that was removed in #201.
2017-07-21 20:25:06 +00:00
clayton craft
3bdeaf0793 Handle generating weston.ini in post-install script (#201)
This PR automatically creates the weston.ini in the
postmarketos-base post-install script based on options set in the
deviceinfo file for a particular device. This replaces #191.
If weston.ini exists, then no modifications are made.

(Optional) options supported in this PR for deviceinfo are:
deviceinfo_weston_core_modules - defaults to NONE if none specified
deviceinfo_weston_core_backend - defaults to 'fbdev-backend.so' if none specified
deviceinfo_weston_keymap_rules - keymap rule, found under /usr/share/X11/xkb/rules/
deviceinfo_weston_keymap_model - keymap model
2017-07-21 19:46:40 +00:00
Oliver Smith
a08c7af492 Update busybox-static-* to upstream 2017-07-21 21:02:31 +02: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
Anton Lazarev
6fb9e0489d Add asus-grouper (#180) 2017-07-20 16:05:33 +00:00
Martijn Braam
a2597d466c Merge pull request #192 from craftyguy/rx51_handle_phys_events
[RX51] Add support for physical events w/ acpid
2017-07-20 11:51:03 +02:00
Clayton Craft
fefb606912 [RX51] Add support for physical events w/ acpid
This adds a way to handle physical events like keypad slide switch,
screen lock, camera lid, and others. This uses acpid from busybox (I was
wrong about the real acpid package), and anl acpi.map file to map events
to 'scripts'. The scripts are symlinked to /etc/acpi/handler.sh,
automatically by the new post-install script, where
they are handled based on which script was called. This allows for
easily adding whatever is necessary for #178.

If this PR is merged, I will create a new wiki page detailing how others
can use this framework on other devices.

There's an issue with Busybox's acpid, where it is unable to detect new
devices added after the daemon loads. This is the case on the N900,
where openrc starts acpid well before the kernel is done modprobing
drivers (e.g. gpio_keys), so it's necessary to restart the acpid daemon
after some time to 'load' the new devices.
2017-07-19 19:17:25 -07:00
Martijn Braam
0fe152da6f Merge pull request #197 from craftyguy/rx51_enable_drm
[RX51] Enable DRM in kernel
2017-07-19 23:37:32 +02:00
Oliver Smith
ae5817534f Adjust gcc-armhf/gcc-aarch64 to upstream 2017-07-19 23:07:34 +02:00
Oliver Smith
cdcc3d81a6 Fix #145: add deviceinfo_flash_offset_base again (#175)
* Fix #145: add deviceinfo_flash_offset_base again

* Add default OFFSET_BASE value in flasher if deviceinfo_flash_offset_base variable is not set
...and set correct default base value in create_bootimg function
2017-07-19 20:44:12 +00:00
Pablo Castellano
ba528b24b8 Two trivial changes (typo + info message) (#179)
Thanks, Pablo Castellano!

* Fixed typo

* Guide user about what are the next steps after flashing kernel and password

* Increased postmarketos-mkinitfs' pkgver and rewording

Changes requested:
https://github.com/postmarketOS/pmbootstrap/pull/179
2017-07-19 18:05:34 +00:00
Clayton Craft
e0f26c949a [RX51] Enable DRM in kernel
This enables DRM (Direct Rendering Manager) support in the kernel for
the RX51. This opens up the possibility of using the Weston DRM backend,
which in turn allows for DPMS (I hope) and other cool tricks.

n900:~# glxinfo|head
name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4

n900:~# glxgears
94 frames in 5.0 seconds = 18.772 FPS
2017-07-19 09:54:46 -07:00
Pablo Castellano
66501ac5fd [weston] Added more patches
- Add support for ABGR (Asus grouper / Nexus 7 2012 tablet)
- Print guessed pixman type
2017-07-18 15:07:47 +02:00
Martijn Braam
43f80e202f Merge pull request #169 from craftyguy/rx51_fix_uImage_filename
[RX51] Export u-boot kernel image with flasher
2017-07-17 23:17:26 +02:00
clayton craft
f50f9fbaa9 Add acpid package (#170)
Thanks craftyguy!

This commit adds the acpid daemon. This requires a kernel with NETLINK
support compiled in before daemon will run. acpid will be extremely
helpful for devices that have external buttons which need event
handling. The nokia-rx51 is full of such devices/switched!

This was heavily leveraged from the Arch Linux PKGBUILD, thank you Arch
maintainers/contributors!
2017-07-17 20:11:53 +00:00
Clayton Craft
df6247b13e [RX51] Export u-boot kernel image with flasher
This properly exports the uImage kernel, which is used by u-boot, when
running 'flasher export'. Note the change to the uImage name to follow
the pattern "uImage-$flavor", which in the case of the RX 51 is
"uImage-nokia-rx51".
2017-07-17 12:14:05 -07:00
Martijn Braam
1757d5f111 Fixed checksums for device-nokia-rx51 after merge 2017-07-16 17:09:12 +02:00
Martijn Braam
0088c2cdd1 Merge pull request #159 from craftyguy/rx51_kernel4.12
[RX51] Update to mainline kernel
2017-07-16 17:02:43 +02:00
Martijn Braam
204e6cf6b8 Merge pull request #155 from craftyguy/master
[RX51] Account for uInitrd filename change in u-boot script
2017-07-16 16:59:29 +02:00
Martijn Braam
626f3c891a Merge branch 'master' into rx51_kernel4.12 2017-07-16 16:58:21 +02:00
Clayton Craft
dc290de4d0 [RX51] Update to mainline kernel
A couple of issues are resolved by moving to the mainline kernel (from Pali's
kernel):

1) 'reboot' command now works as intended
2) boot is *much* faster
3) charging LED seems to be working now
2017-07-15 21:12:16 -07:00
Clayton Craft
ef744e6573 Account for uInitrd filename change in u-boot script (rx-51)
The uInitrd filename is appended with 'flavor' so, for example, with the
rx-51 the generated file is named 'uInitrd-nokia-rx51'. This corrects
the rx51's u-boot script to account for this change in filename.
2017-07-15 16:24:37 -07:00
Clayton Craft
2dddf9e124 [RX51] Add linux-firmware package
This removes the call to `firmware_install` in the APKGBUILD for
linux-nokia-rx51, and adds the `linux-firmware` package as a dependency
for device-nokia-rx51.

There are two immediate benefits for this:
1) wifi now works

2) the FM radio device was causing the boot to take ~2 minutes longer
than it should, now that the firmware is present there's no delay in
initializing this device
2017-07-15 14:30:54 -07:00
Clayton Craft
e8df23bdb6 RX51 - Add touchscreen calibration udev rule 2017-07-15 12:40:17 -07:00
Oliver Smith
e260190f2c Merge pull request #144 from postmarketOS/heimdall-partitions-in-deviceinfo
Close #22: deviceinfo: add heimdall partitions / make flasher variables optional
2017-07-14 20:48:38 +00:00
drebrez
8a7255ef27 Update heimdall script to flash both (kernel+initramfs) at once 2017-07-14 22:35:59 +02:00
Oliver Smith
9d2e384cb4 postmarketos-mkinitfs: Bump pkgver to 0.1.5 2017-07-14 18:10:56 +02:00
Oliver Smith
6f6f3112eb Merge branch 'configfs-usb' of https://github.com/Decatf/pmbootstrap 2017-07-14 18:09:26 +02:00
Oliver Smith
650d3d7e69 Update gcc-* to 6.4.0 2017-07-14 07:09:52 +02:00
ryang
0cf22ffebf Add ConfigFS based usb network configuration
This extends the initramfs init script to setup USB networking on kernels
using USB_CONFIGFS.
2017-07-13 11:17:48 -04:00
Oliver Smith
4e4c1abe8a Add new dependency test package: hello-world-wrapper 2017-07-12 22:19:01 +02:00
Oliver Smith
86e0b019f9 deviceinfo: add heimdall partitions / make flasher variables optional 2017-07-10 20:27:06 +02:00