User Tools

Site Tools


hw:zynq:linux:petalinux:rootfs

This is an old revision of the document!


Root filesystem

  1. Install required packages:
    qemu-user-static debootstrap binfmt-support 
  2. Setup enviroment:
    export targetdir=rootfs
    export distro=stretch
    mkdir $targetdir
  3. Build the root file system: download the needed .deb packages and unpack it into $targetdir:
    sudo debootstrap --arch=armhf --foreign $distro $targetdir
    sudo cp /usr/bin/qemu-arm-static $targetdir/usr/bin
    sudo cp /etc/resolv.conf $targetdir/etc
    sudo chroot $targetdir
  4. Configure the root filesystem by running the .deb configuration scripts inside the emulated armhf architecture (this is why qemu-arm-static is needed)
    distro=stretch
    export LANG=C
    /debootstrap/debootstrap --second-stage
/services/www/http/wiki/data/attic/hw/zynq/linux/petalinux/rootfs.1553085443.txt.gz · Last modified: 2019/03/20 13:37 by jakub.moron