Skip to content

Instantly share code, notes, and snippets.

@yawnoc
Last active October 15, 2023 03:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yawnoc/46ff190dbb5151dd0ce9eb1d75cf5c47 to your computer and use it in GitHub Desktop.
Save yawnoc/46ff190dbb5151dd0ce9eb1d75cf5c47 to your computer and use it in GitHub Desktop.
Test 2023-10-15

Test 2023-10-15

Install Tow-Boot onto Pinebook Pro SPI

  1. Get binaries:

    $ wget https://github.com/Tow-Boot/Tow-Boot/releases/download/release-2022.07-006/pine64-pinebookPro-2022.07-006.tar.xz
    
    $ sha256sum pine64-pinebookPro-2022.07-006.tar.xz
    a0832cf8dcc04ac33da20e9f66369e57948b948fd52ffa7ae7d892e18a9421dc  pine64-pinebookPro-2022.07-006.tar.xz
    
    $ 7z x pine64-pinebookPro-2022.07-006.tar.xz
    $ 7z x pine64-pinebookPro-2022.07-006.tar
    
    $ cd pine64-pinebookPro-2022.07-006/binaries/
    
    $ sha256sum Tow-Boot.spi.bin
    0151640029e5e47a43d9c6b559567242555f8d82ee3e0c44c8f53cd89b8619b0  Tow-Boot.spi.bin
    
  2. (Risky) Directly write unto SPI:

    $ sudo dd if=Tow-Boot.spi.bin of=/dev/mtd0
    

Put Debian image onto USB

  1. Download checksum and signature files:

    $ wget https://cdimage.debian.org/cdimage/release/current/arm64/jigdo-cd/SHA256SUMS
    $ wget https://cdimage.debian.org/cdimage/release/current/arm64/jigdo-cd/SHA256SUMS.sign
    
  2. Do a jigdo download,

    $ sudo apt install jigdo-file
    $ jigdo-lite
    

    using the following parameters when prompted:

    This results in debian-12.2.0-arm64-netinst.iso.

  3. Verify the image:

    $ gpg --keyserver hkps://keyserver.ubuntu.com --recv-key DF9B9C49EAA9298432589D76DA87E80D6294BE9B
    gpg: key DA87E80D6294BE9B: public key "Debian CD signing key <debian-cd@lists.debian.org>" imported
    gpg: Total number processed: 1
    gpg:               imported: 1
    
    $ gpg --verify SHA256SUMS.sign SHA256SUMS
    gpg: Signature made Sun 08 Oct 2023 04:24:50 AWST
    gpg:                using RSA key DF9B9C49EAA9298432589D76DA87E80D6294BE9B
    gpg: Good signature from "Debian CD signing key <debian-cd@lists.debian.org>" [unknown]
    gpg: WARNING: This key is not certified with a trusted signature!
    gpg:          There is no indication that the signature belongs to the owner.
    Primary key fingerprint: DF9B 9C49 EAA9 2984 3258  9D76 DA87 E80D 6294 BE9B
    
    $ sha256sum debian-12.2.0-arm64-netinst.iso
    7b8f2ff9bd422fc1cba7d5978bace17ecf48ba23842e7e7e13b0d8ba502a7556  debian-12.2.0-arm64-netinst.iso
    

    All good.

  4. Write to USB:

    $ sudo cp debian-12.2.0-arm64-netinst.iso /dev/sda; sync
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment