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

Add documentation for rootfs creation and installation #2

Open
hansemro opened this issue Apr 16, 2021 · 3 comments
Open

Add documentation for rootfs creation and installation #2

hansemro opened this issue Apr 16, 2021 · 3 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@hansemro
Copy link
Owner

It would be nice to have some documentation on building a simple rootfs with busybox. Once more devices become accessible via device tree, I will look into buildroot and postmarketOS.

@hansemro hansemro added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Apr 16, 2021
@hansemro hansemro self-assigned this Apr 16, 2021
@mj-sakellaropoulos
Copy link

mj-sakellaropoulos commented Apr 20, 2021

I have buildroot working on Ubuntu 20.10
Download and untar : https://buildroot.org/downloads/buildroot-2021.02.1.tar.gz

# need to install various dependencies, for xconfig you need qt5
cd buildroot
make xconfig
  • Under Target options, select ARM, cortex-A9, enabled SIMD and VFP, EABIHF, VFPv3
  • Under toolchain, you can specify a custom toolchain or have it build one from scratch
  • Under Kernel, you can pass it your defconfig from out of tree
  • For the devicetree, if it doesn't handle out of tree .dts properly you can manualy put it in output/build/linux-{version}/arch/arm/boot/dts/
  • Under target packages, you can include the packages you want
  • Under Filesystem images, you can choose to cpio the rootfs for convenient loading as ramdisk via fastboot

minimal buildroot config : https://gist.github.com/mj-sakellaropoulos/25342160a6d9b66851c9108624850518

image

@hansemro
Copy link
Owner Author

Neat!

@hansemro
Copy link
Owner Author

398b51c: Added steps to create and install busybox rootfs.

I will look into buildroot next.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants