Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lg-hammerhead: init #144

Open
wants to merge 2 commits into
base: master
from
Open

Conversation

@thefloweringash
Copy link
Member

thefloweringash commented May 6, 2020

This is a minimal configuration that allows booting and should serve as a starting point for anyone looking to work on this device. There are a few problems that still need resolving, but I don't believe that anything here is incorrect.

The display sometimes freezes with msm fd900000.mdss: pp done time out, lm=0. There was a proposed patch but applying it only seemed to help a little. See also postmarketOS/pmaports#51.

I did not add any peripheral firmwares.

@thefloweringash
Copy link
Member Author

thefloweringash commented May 6, 2020

I only just noticed #24

@samueldr samueldr added the type: port label May 6, 2020
@samueldr
Copy link
Member

samueldr commented May 6, 2020

How was all-modules.nix generated?

@thefloweringash
Copy link
Member Author

thefloweringash commented May 7, 2020

How was all-modules.nix generated?

I made a quick python script to parse a device tree for “compatible” strings and turn them into required modules. Putting all the hardware support into the initrd is a bit of a blunt method, but it does mean no difficult debugging if critical peripherals don’t work. I‘m assuming there’s enough free space here that precision isn’t important.

@samueldr
Copy link
Member

samueldr commented May 7, 2020

Putting all the hardware support into the initrd is a bit of a blunt method

And pretty much required if you were to set yourself up with a pre-built generic system image.


I believe this is a tool that is going to be helpful, as even if it doesn't end up required for end-users in the future, it's pretty good to be able to detect the modules and do something. I'm thinking e.g. automatically enabling kernel options.

Can you package it up either in Nixpkgs or in this overlay? I guess this overlay is fine for now if you don't think it's Nixpkgs material. I don't know if it should be part of the default shell.nix, but maybe. There's already stuff pulling in python in there.

Copy link
Member

samueldr left a comment

With #152 merged, this PR needs some changes. They should be rather trivial to implement. Tell me if there is anything non-obvious or broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.