Generate a Custom ARM Rootfs Easily with Rootstock

You may need to generate your own rootfs for your ARM target board, but do not want to cross-compile all libraries manually. You can achieve this with rootstock, a utility that generates Ubuntu armel rootfs tarballs and/or qemu image, to be uncompressed onto a root device.

First install roostock:

sudo apt-get install rootstock

Then generate a rootfs with the required libraries:

sudo rootstock –fqdn beagleboard –login cnxsoft –password temppasswd \
–imagesize 3G –seed xfce4,gdm,pkg-config,python,perl,g++,bison,flex,\
gperf,libnss3-dev,libgtk2.0-dev,libnspr4-0d,libasound2-dev,libnspr4-dev,\
libgconf2-dev,libcairo2-dev,libdbus-1-dev,libstdc++6-4.5-dev,libexpat1-dev,\
libxslt1-dev,libxml2-dev,libbz2-dev  –dist natty

Here are the details of the command line parameters:

  • –fqdn: Hostname to be used for the target system
  • –login: Login ID of the admin user created during setup
  • –password: Password of the admin user created during setup
  • –imagesize: Size of the target filesystem to be created (default 1GB)
  • –seed: List of packages to install
  • –dist: Specify Release to build (jaunty, karmic, lucid, maverick or natty)

Alternatively you could also use an existing rootfs, run it in your board or in qemu, install the required libraries (with apt-get) and copy the libs back to your development PC.

List of packages to install

Share this:

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX Rockchip RK3588 mini-ITX motherboard
Subscribe
Notify of
guest
The comment form collects your name, email and content to allow us keep track of the comments placed on the website. Please read and accept our website Terms and Privacy Policy to post a comment.
1 Comment
oldest
newest
Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...