This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
hw:zynq:linux:petalinux:rootfs [2022/02/09 13:47] jakub.moron |
hw:zynq:linux:petalinux:rootfs [2022/03/09 10:30] (current) jakub.moron |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| sudo chroot $targetdir | sudo chroot $targetdir | ||
| </code> | </code> | ||
| - | - Configure and install the root filesystem by running the .deb configuration scripts inside the emulated ''armhf'' architecture (this is why ''qemu-arm-static'' is needed) <code> | + | - Configure and install the root filesystem by running the .deb configuration scripts inside the emulated ''armhf'' architecture (this is why ''qemu-arm-static'' is needed). For Debian 9:<code> |
| - | or Debian 9:<code> | + | |
| export distro=stretch </code>Or for Debian 10:<code> | export distro=stretch </code>Or for Debian 10:<code> | ||
| export distro=buster </code>Or for Debian 11:<code> | export distro=buster </code>Or for Debian 11:<code> | ||
| Line 24: | Line 23: | ||
| /debootstrap/debootstrap --second-stage | /debootstrap/debootstrap --second-stage | ||
| </code> | </code> | ||
| - | - Setup APT: <code> | + | - Setup APT: For Debian 11: <code> |
| + | cat << EOT > /etc/apt/sources.list | ||
| + | deb http://ftp.ch.debian.org/debian/ $distro main contrib non-free | ||
| + | deb-src http://ftp.ch.debian.org/debian/ $distro main contrib non-free | ||
| + | deb http://security.debian.org/debian-security $distro-security main contrib non-free | ||
| + | deb-src http://security.debian.org/debian-security $distro-security main contrib non-free | ||
| + | deb http://ftp.ch.debian.org/debian/ $distro-updates main contrib non-free | ||
| + | deb-src http://ftp.ch.debian.org/debian/ $distro-updates main contrib non-free | ||
| + | EOT | ||
| + | </code> For older Debian: <code> | ||
| cat << EOT > /etc/apt/sources.list | cat << EOT > /etc/apt/sources.list | ||
| deb http://ftp.ch.debian.org/debian/ $distro main contrib non-free | deb http://ftp.ch.debian.org/debian/ $distro main contrib non-free | ||