I've been using ArchLinux ARM on my BBB, but created a script awhile back 
to initialize the eMMC that may be helpful.

# This script is used to create a new (clean) install of ArchLinux to the 
BeagleBoneBlack's
# onboard eMMC memory.  This script assumes you have booted the 
BeagleBoneBlack (not using
# the onboard eMMC) and now want to install ArchLinux in the onboard eMMC 
memory.

BOOTLOADER=BeagleBone-bootloader.tar.gz
ARCHLINUX=ArchLinuxARM-am33x-latest.tar.gz
WORKINGDIR=/tmp
BOOTDEV=/dev/mmcblk1p1
BOOTTMP=$WORKINGDIR/boot
ROOTDEV=/dev/mmcblk1p2
ROOTTMP=$WORKINGDIR/root
BOOTIMAGE=$ROOTTMP/boot/zImage

clear
while true
do
echo "You need the mkfs.vfat format and wget commands."
echo "Use pacman -Sy wget AND pacman -Sy dosfstools (for vfat format)."
echo 
read -p "Are these two commands installed (answer yes or no)? " ANSWER
case $ANSWER in
yes) break;;
no) exit;;
*) echo "ERROR: Please answer yes or no.";;
esac
done

mkfs.vfat -F 16 -n "bootloader" $BOOTDEV
sleep 1
mkfs.ext4 -L "rootfs" $ROOTDEV
sleep 1

mkdir $BOOTTMP
mkdir $ROOTTMP
mount $BOOTDEV $BOOTTMP
mount $ROOTDEV $ROOTTMP

wget http://archlinuxarm.org/os/omap/$BOOTLOADER -O $WORKINGDIR/$BOOTLOADER
sleep 1
wget http://archlinuxarm.org/os/$ARCHLINUX -O $WORKINGDIR/$ARCHLINUX
sleep 1

if which pv &> /dev/null
 then
  pv $WORKINGDIR/$BOOTLOADER | tar xzf - -C $BOOTTMP
  pv $WORKINGDIR/$ARCHLINUX | tar xzf - -C $ROOTTMP
 else
  tar xvf $WORKINGDIR/$BOOTLOADER -C $BOOTTMP
  tar xvf $WORKINGDIR/$ARCHLINUX -C $ROOTTMP
fi

echo "Copying Boot Image"
cp $BOOTIMAGE $BOOTTMP

echo "Synching"
sync

umount $BOOTTMP
umount $ROOTTMP
rmdir $BOOTTMP
rmdir $ROOTTMP

clear
while true
do
read -p "Delete downloaded files (answer yes or no)? " ANSWER
case $ANSWER in
yes)
rm $WORKINGDIR/$BOOTLOADER
rm $WORKINGDIR/$ARCHLINUX
exit
;;
no) exit;;
*) echo "ERROR: Please answer yes or no.";;
esac
done


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to