I.MX6 Slackware: Difference between revisions

From embeddedTS Manuals
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:


sudo tar -xf slack-14.1-miniroot_04Nov13.tar.xz -C /mnt/sd/
sudo tar -xf slack-14.1-miniroot_04Nov13.tar.xz -C /mnt/sd/
</source>
Edit the file /mnt/sd/etc/inittab


Change:
# Update the inittab to start getty on the right port
  s0:12345:respawn:/sbin/agetty 115200 ttyS0 vt100
sudo sed --in-place 's/ttyS0/ttymxc0/' /mnt/sd/etc/inittab
to
# Update securetty as well to allow root to login over this port
  s0:12345:respawn:/sbin/agetty 115200 ttymxc0 vt100
echo "ttymxc0" | sudo tee -a /mnt/sd/etc/securetty


Next you have to modify the fstab for emmc or sd.
## Next you have to modify the fstab for emmc or sd.
<source lang=bash>
#For SD:
#For SD:
echo "/dev/mmcblk0p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab
echo "/dev/mmcblk0p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab
#For eMMC:
#For eMMC:
echo "/dev/mmcblk1p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab
echo "/dev/mmcblk1p1 / ext4 errors=remount-ro 0 1" | sudo tee -a /mnt/sd/etc/fstab
sudo umount /mnt/sd
</source>
</source>
Before you boot this new image you should also update your u-boot command line arguments to include ro for fsck.  Stop booting at u-boot and run these commands:
<source lang=bash>
env set cmdline_append console=ttymxc0,115200 init=/sbin/init ro
env save
</source>
Once at the boot prompt, the username is "root" and the password is "password".

Latest revision as of 15:14, 4 June 2014

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
sudo sed --in-place 's/ttyS0/ttymxc0/' /mnt/sd/etc/inittab
# Update securetty as well to allow root to login over this port
echo "ttymxc0" | sudo tee -a /mnt/sd/etc/securetty

## 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
sudo umount /mnt/sd

Before you boot this new image you should also update your u-boot command line arguments to include ro for fsck. Stop booting at u-boot and run these commands:

env set cmdline_append console=ttymxc0,115200 init=/sbin/init ro
env save

Once at the boot prompt, the username is "root" and the password is "password".