
#Building u boot install
Wget -O /lib/firmware/brcm/brcmfmac43362-sdio.txt Īpt-get install console-setup keyboard-configuration systemd systemd-sysv openssh-server ntpĪt this point, debian should have generated a kernel image /boot/vmlinuz-? and an initrd /boot/initrd.img-? for you. Install non-free firmware and add one currently missing file to the wifi-firmware:Īpt-get install firmware-linux firmware-brcm80211 sunxi-tools flash-kernel Or, if you want simple frame-buffer support (on some cards) go with kernel >3.19:Īpt-get -t experimental install linux-image-3.19.0-trunk-armmp-lpae u-boot u-boot-tools Install the kernel and u-boot (u-boot from debian is not used, but it does no harm and i'll include it for future reference)Īpt-get -t experimental install linux-image-3.16-rc6-armmp-lpae u-boot u-boot-tools The next steps are executed inside the chroot:Īpt-get install locales & dpkg-reconfigure locales Mount -t devtmpfs chdev /mnt/dev || mount -bind /dev /mnt/devĮcho -e '#!/bin/sh\nexit 101' > /mnt/usr/sbin/policy-rc.dĭEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C chroot /mnt dpkg -configure -a Now chroot in to the new system, install kernel and set everything up. Umask 077 mkdir /mnt/root/.ssh/ cat ~/.ssh/id_rsa.pub > /mnt/root/.ssh/authorized_keys Sed -i "s/^PermitRootLogin without-password/PermitRootLogin yes/" /mnt/etc/ssh/sshd_config

Since debian disabled root password-login in jessie, re-enable it: Remember: We won't have any display output, so we can eiter:Įcho "T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100" > /mnt/etc/inittabĪnd/or use ssh. # This file describes the network interfaces available on your system # testing-updates, previously known as 'volatile'ĭeb testing-updates main contrib non-freeĭeb-src testing-updates main contrib non-freeĮOF cat /mnt/etc/apt//experimental.listĭeb-src experimental main non-free contribĮOF cat /mnt/etc/apt/preferences.d/experimental Hint: Please consider using your favorite debian-mirror instead of .ĭeb testing/updates main contrib non-freeĭeb-src testing/updates main contrib non-free Write extra modules that should be loaded at boot time to /mnt/etc/modules.Įcho "rtc_sunxi" > /etc/initramfs-tools/modulesīase configuration files echo "/dev/mmcblk0p1 / ext4 relatime,errors=remount-ro 0 1" > /mnt/etc/fstab (Also refer to Mainline_U-boot#Compile U-Boot)Įnter an interactive superuser sudo shell Sudo bash -c 'cat > /etc/apt//armhf-ports.list _defconfig Create source list for the port architecture(s) (this adds the armhf port sources to apt).all i386 and amd64 package sources are prefixed as "deb ") The following instructions built the image and were run on a Debian Sqeeze host. Modify existing sources, restricting to appropriate architectures (i.e. Building U-Boot Note: this stub is to help with the LEON3 Qemu tutorial.Sudo apt-get install u-boot-tools sunxi-tools Useful for building or troubleshooting older builds: Reference: Ubuntu 15.04 Vivid Vervet Build Pre-requisites sudo apt-get install build-essential git
