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

(WIP) Kgpe d16 current working #472

Closed
wants to merge 30 commits into from

Conversation

tlaurion
Copy link
Collaborator

Trying to get back QubesOS GUI installer to install QubesOS on a preflashed Heads system (Mitigation of "LUKS volume creation error from QubesOS text-based installer WON'T FIX error")

@zifxify
Copy link

zifxify commented Nov 23, 2018

/heads/config/coreboot-kgpe-d16_server

CONFIG_PAYLOAD_FILE="../../build/kgpe-d16_server/bzImage"
CONFIG_LINUX_INITRD="../../build/kgpe-d16_server/initrd.cpio.xz"

/heads/config/coreboot-kgpe-d16_workstation

CONFIG_PAYLOAD_FILE="../../build/kgpe-d16_workstation/bzImage"
CONFIG_LINUX_INITRD="../../build/kgpe-d16_workstation/initrd.cpio.xz"

@tlaurion
Copy link
Collaborator Author

tlaurion commented Nov 23, 2018

Thanks @zifxify. There is now AST support in linux. I'm doing some tests and mods to whiptail (gui-init) so that the server/laptops with/without TPM/Nitrokeys work as intended (#493)

I'm not sure there is really a need to seperate such boards if options are clearly defined in board config. If they are, i'll include your fixes!

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 1, 2020

Separated the boards properly (untested)

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 5, 2020

#712 followup.

  • kgpe-d16_server board works with ASMBv4 baord receiving all terminal output, whcih should be controlled by ssh. (See commit messages)
  • kgpe-d16_workstation is in WIP stage. Lost track of what was required, playing slowly with it. In current commit, AST was activated, while standard FB was deactivated. We try here to have AST_DRM so that FBwhiptail can fireup the gui-init instead of the generic-init.

@ghost
Copy link

ghost commented Jun 6, 2020

@tlaurion need to enable onboard USB (doesn't work for previous versions). thanks for commit.

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 6, 2020

Why not PS2?

Having USB on by default for keyboards opens up a lot et attack vectors and is not recommended.

On workstation? Server?
That would also require to punch holes under qubesos.

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

Why not PS2?
Having USB on by default for keyboards opens up a lot et attack vectors and is not recommended.
On workstation? Server?
That would also require to punch holes under qubesos.

Only Workstation.
Sys-usb on Qubes - specially made for this?

https://www.qubes-os.org/doc/usb-devices/#using-usb-keyboards-and-other-input-devices

Edited. New Build. Everything works. Pike too.

@ 0rb677 I'm confused now. :P
USB keyboard works in Heads?

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

@0rb677 @Tonux599 @zifxify : Please let me know the current state of this PR at this point (and let me know if you know more people with boards in this issue.

You can find flashable artifacts for 46b9c79 by clicking the green check mark on the commit which will bring you to those roms from the artifacts tab:
kgpe-d16_workstation
kgpe-d16_server

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

@flammit : any objection on the server config? That was basically an upgrade of what was upstream with (plymouth fix for QubesOS) in board config and USB_COMPANION added.

@pkubaj
Copy link

pkubaj commented Jun 8, 2020

I actually do not use heads, but pure coreboot 4.11 with SeaBIOS. I would be happy to test heads, but will I be able to boot FreeBSD with it? This is my primary operating system.

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

I actually do not use heads, but pure coreboot 4.11 with SeaBIOS. I would be happy to test heads, but will I be able to boot FreeBSD with it? This is my primary operating system.

Since its kexec based from a linux payload, I do not think so in current situation but if things involved in that area.. I'll remove you from the list of kgpe-d16 testers under heads for the moment then.

@ghost
Copy link

ghost commented Jun 8, 2020

@tlaurion remove my comment. KGPE-D16 heads now works only with PS/2 keyboard.
I'm just really in a hurry all the time

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

@0rb677 pike support added in both boards following #712 (comment)

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

As said previously, once yellow dot will turn into green check, you can download build there (without USB keyboard support: PR welcome)

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

@0rb677 : board addition for kgpe-d16_workstation-usb_keyboard with Pike support.

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 8, 2020

@0rb677 b22d913 built successfully while save_cache for cache failed (got lost in commits it seems).

Artifact is there and downloadable for new board config. Let me know how it goes.

@tlaurion
Copy link
Collaborator Author

tlaurion commented Jun 9, 2020

@0rb677 please test 2e4f046 build's artifacts above when build is finished and report in original ticket I tagged you in so that it can be merged in master.

@ghost
Copy link

ghost commented Jun 9, 2020

I will do it tomorrow.

@ghost
Copy link

ghost commented Jun 11, 2020

@tlaurion

DSC_0200

@tlaurion
Copy link
Collaborator Author

@0rb677 I would like you to launch said script from recovery shell.
/bin/oem-factory-reset

And screenshot what happened out of whiptail, from shell output.

@ghost
Copy link

ghost commented Jun 11, 2020

@0rb677 I would like you to launch said script from recovery shell.
/bin/oem-factory-reset

And screenshot what happened out of whiptail, from shell output.

@tlaurion

I dont understand it works with couple of bugs.
Now i attached gpg-card and external USB to PC when heads initialized. Then quit to shell and lauch oem-reset script.

  1. It access to gpg-card
  2. It generates oem-key
  3. It changes Admin/Pin
  4. Exporting key to USB
  5. Reading Firmware
  6. Adding gerenerate key to current firmware and re-flashing
  7. Signed boot files and generate checksums

So it works?

… in whiptail (console mode, not FbWhiptail based
…nts (linux version defined under board config)
@tlaurion
Copy link
Collaborator Author

tlaurion commented Sep 19, 2020

Now par with master. Comments welcome, build happening on PR, as always (green arrow on latest commit: e9895eb)

Leading to https://circleci.com/gh/tlaurion/heads/432?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

When build is ready, you can download roms per artifacts for all roms not requiring blobs outside of repos.

…m out of ideas. Next step, ask CircleCI for support
@tlaurion
Copy link
Collaborator Author

Effort continues here: #867

@tlaurion tlaurion closed this Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants