I.MX6 Slackware

From embeddedTS Manuals
Revision as of 14:27, 4 June 2014 by Mark (talk | contribs)

Slackware offers a mini rootfs which is simple to install and use our kernel.

These instructions have been tested with Slackware 14.1, but later releases also may work with these same instructions. First, use gparted, or other partition managers to create a single ext4 partition. Follow these instructions to install slackware to this partition.

# Assuming your SD card is /dev/sdd.  Check your distribution to be sure.
wget ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots/slack-14.1-miniroot_04Nov13.tar.xz

sudo mkdir /mnt/sd/
sudo mount /dev/sdd1 /mnt/sd
wget ftp://ftp.arm.slackware.com/slackwarearm/slackwarearm-devtools/minirootfs/roots/slack-14.1-miniroot_04Nov13.tar.xz

sudo tar -xf slack-14.1-miniroot_04Nov13.tar.xz -C /mnt/sd/

# Update the inittab to start getty on the right port
sed --in-place 's/ttyS0/ttymxc0/' /mnt/sd/etc/inittab

## Next you have to modify the fstab for emmc or sd.
#For SD:
echo "/dev/mmcblk0p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab
#For eMMC:
echo "/dev/mmcblk1p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab