Coder Social home page Coder Social logo

ubports-boot's People

Contributors

apokorny avatar mariogrip avatar universalsuperbox avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ubports-boot's Issues

hybris-boot won't boot when ubports-boot is in the source tree.

If you build a hybris-boot image while the ubports-boot source is in the Halium tree, the hybris-boot.img does not work as expected. It simply bootloops uselessly.

This does not seem to be related to the workaround for #2 and #1, since @vanyasem has not modified his device's fstab and instead changes the cmdline of built ubports-boot images to point them to the right data partition.

Allow rootfs to provide "I am writable" configuration

Currently we check for the file /data/.writable_image when deciding whether to remount the rootfs image as read-only or not. We should also check the rootfs itself for this image, so that OS developers may always have their rootfs read-write.

Block device nodes with friendly names should be in `/dev/block` rather than `/dev` itself

In our initramfs, block devices' friendly-named nodes (like mmcblk0p53) are placed in /dev/. In most other systems (Including Android and Halium proper), these nodes are located in /dev/block instead. If possible, we should change our behavior to be more like the others'. This would help us use scripts like Halium's fixup-mountpoints to solve issues with finding the userdata partition.

Find and use a better way to embed the userdata partition

Currently we only check a device's default fstab to find the userdata partition. This causes problems since we don't have the appropriate drivers or config in place to have device nodes at /dev/block/by-name where most Android devices place them. Halium has a similar issue and solves it with the fixup-mountpoints script. We could just reuse that, except for #1 being an issue.

Don't step on Halium

A Halium build tree should, in theory, be able to make Halium images even though ubports-boot is present. This is not currently possible in the current implementation.

These are the issues that must be fixed to coexist in a Halium tree:

  • #1 Block device nodes with friendly names should be in /dev/block rather than /dev itself
  • #2 Write a better way to embed the /data partition
  • #3 hybris-boot won't boot when ubports-boot is in the source tree

This issue should be closed when it is possible to build working ubports-boot and hybris-boot images from the same Halium source tree without modifying any device sources.

Build (or provide instructions to build) everything from source

Halium developers have expressed concern that ubports-boot is shipped as binary blobs which are built into the initramfs. This is desirable so the initrd will be predictable between build configurations, however it makes sense to allow builds from source as well. Either change the configuration of ubports-boot so that it builds its binaries from source, or provide instructions so that other developers can do this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.