Git Product home page Git Product logo

halium-boot's Introduction

Halium-boot

bootimg generator for Halium ports

Build

mka halium-boot

Build with a local initramfs

Sometimes you might want to make changes to the initramfs locally, such as to fix a device-specific quirk. To do this, follow these instructions:

  1. Download the current initramfs from initramfs-tools-halium releases
  2. Create a working directory for the files: mkdir halium-initramfs
  3. Extract the image: zcat initrd.img-touch-armhf | cpio -D halium-initramfs -idmv
  4. Make your edits to the files in halium-initramfs/. The file that you will probably want to edit is scripts/halium
  5. Repack the image: cd halium-initramfs/ && find . | cpio -H newc -o | gzip -9 > ../initramfs.gz && cd ..
  6. Place the initramfs.gz file you just created in your device tree. This is the directory in device/[manufacturer]/[board] for your device.
  7. Add BOARD_USE_LOCAL_INITRD := true to the end of your BoardConfig.mk.
  8. Set up your environment and build with mka halium-boot

Don't forget to remove the initramfs.gz file and remove BOARD_USE_LOCAL_INITRD := true after you have proposed your changes to initramfs-tools-halium. This ensures that your port is in line with other Halium ports.

If you'd prefer to rebuild a whole initramfs from source, see the build instructions in initramfs-tools-halium. Once you've built the image, rename it to initramfs.gz and follow the instructions from step 6 above.

Initrd debugging:

sudo fastboot boot halium-boot.img -c break=[level]

Levels

  • modules
  • premount
  • mount
  • mountroot
  • bottom

example:

sudo fastboot boot halium-boot.img -c break=premount

And use telnet to login:

telnet 192.168.2.15

halium-boot's People

Contributors

erfanoabdi avatar jamikettunen avatar jbruechert avatar mariogrip avatar universalsuperbox avatar zeropointenergy avatar

Watchers

 avatar

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.