Does anyone know of the steps required to install and run Debian Lenny or Squeeze on the AM335x starter kit, or equivalent?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Does anyone know of the steps required to install and run Debian Lenny or Squeeze on the AM335x starter kit, or equivalent?
Yes have checked the web, looks like all those Debian ports are community efforts? I was just wondering if TI supplied any official images? Looks like they do not,
Why do you need a TI supplied image? It is all-purpose operating system with public repository. As soon as you have it running, you can change the system the way you like. The only problem is 3D stuff. I don't know if it is now available for hard floating point flavor (armhf).
Why??? Because there are no clear instructions on HOW to build a debian image... !!!
If you have any idea how to create the image, please do
(step by step, don't link to other pages - spell every step out)
Most of us need something to start with - building from scratch isn't an option (don't have months to learn yocto), and the instructions on 'meta-debian' are about as clear as mud.
You can build your own Debian image using debootstrap. In your host Debian 8 machine execute:
apt-get install debootstrap qemu-system-arm qemu-user-static
Take a look at following script, that would perform the first debootstrap, make chroot and start mydeb.sh, that would perform the second stage:
#!/bin/sh
DROOTFS=rootfs
mkdir -p $DROOTFS
if [ $? -ne 0 ]; then
echo Failed to create rootfs folder
exit 1
fi
# clean DROOTFS
rm -fr $DROOTFS/*
debootstrap --arch armhf --foreign jessie $DROOTFS ftp.de.debian.org/.../
if [ $? -ne 0 ]; then
echo debootstrap first stage failed
exit 1
fi
modprobe binfmt_misc
if [ $? -ne 0 ]; then
echo failed to load binfmt_misc driver
exit 1
fi
cp /usr/bin/qemu-arm-static $DROOTFS/usr/bin/
cp mydeb.sh $DROOTFS/usr/bin/
mkdir -p $DROOTFS/dev/pts
mount devpts $DROOTFS/dev/pts -t devpts
mount -t proc proc $DROOTFS/proc
chroot $DROOTFS /bin/bash -c "/usr/bin/mydeb.sh"
if [ $? -ne 0 ]; then
echo chroot into rootfs failed
exit 1
fi
Possible mydeb.sh:
#!/bin/sh
/debootstrap/debootstrap --second-stage
# setup repositories
cd /root
cat <<END > /etc/apt/sources.list
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie main contrib non-free
END
# prepare fstab
cat <<END > /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mmcblk0p2 / auto errors=remount-ro 0 1
END
export LANG=C
apt-get update
# install core packages
yes "Y" | apt-get install mc dstat lsof whois tmux vim usbutils psmisc policykit-1 bzip2 libconfig9 minicom
That's all.