Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Rock/debian

< Rock
Revision as of 10:17, 21 January 2015 by Hipboi (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This page describe how to make a Debian image for radxa rock/pro/lite.

rootfs

We can use debootstrap to create a Debian rootfs.

First install qemu-user-staic if you haven't

sudo apt-get install qemu-user-static

Start the bootstrap

export distro=wheezy
mkdir$distro  && cd  $distro
sudo debootstrap --arch=armhf --foreign $distro .
sudo cp /usr/bin/qemu-arm-static ./usr/bin/
sudo chroot .
/debootstrap/debootstrap --second-stage

Add source.list

export distro=wheezy
cat <<EOF > /etc/apt/sources.list
deb http://http.debian.net/debian $distro main contrib non-free
deb-src http://http.debian.net/debian $distro main contrib non-free
deb http://http.debian.net/debian $distro-updates main contrib non-free
deb-src http://http.debian.net/debian $distro-updates main contrib non-free
deb http://security.debian.org/debian-security $distro/updates main contrib non-free
deb-src http://security.debian.org/debian-security $distro/updates main contrib non-free
EOF
cat <<EOF >> /etc/fstab
none    /tmp    tmpfs   defaults,noatime,mode=1777 0 0
EOF
echo "radxa-debian" > /etc/hostname
export LANG=C
apt-get update
apt-get install locales
dpkg-reconfigure locales
apt-get install wireless-tools usbutils wpasupplicant
echo "T0:2345:respawn:/sbin/getty -L ttyFIQ0 115200 vt100" >> /etc/inittab