Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Created December 7, 2015 01:21
Show Gist options
  • Select an option

  • Save RobertCNelson/051660ebbb5bfa784d25 to your computer and use it in GitHub Desktop.

Select an option

Save RobertCNelson/051660ebbb5bfa784d25 to your computer and use it in GitHub Desktop.
imx6rex
http://www.imx6rex.com/
= Factory microSD Image =
== microSD Setup ==
touch /uEnv.txt
cp /uImage /uImage_original
== Kernel ==
git clone https://github.com/RobertCNelson/imx-devel.git
cd imx-devel/
git checkout origin/v3.0.x-rex -b v3.0.x-rex
./build_kernel.sh
./tools/install_kernel.sh
= Debian Image =
== Image ==
wget -c https://rcn-ee.net/deb/minfs/wheezy/debian-7.5-minimal-armhf-2014-05-07.tar.xz
tar xf debian-7.5-minimal-armhf-2014-05-07.tar.xz
== microSD ==
Blank out microSD, use 'lsblk' to figure out what device node...
export DISK=/dev/sdd
sudo dd if=/dev/zero of=${DISK} bs=1M count=50
Partition microSD, kernel is hard coded for /dev/mmcblk0p1, so don't modify this
sudo sfdisk --in-order --Linux --unit M ${DISK} <<-__EOF__
1,,,-
__EOF__
Format
sudo mkfs.ext3 ${DISK}1 -L rootfs
Mount Partition
sudo mount ${DISK}1 /media/rootfs/
Copy Rootfs
sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/
This is needed for the ./tools/install_kernel.sh script
sudo touch /media/rootfs/uEnv.txt
Setup /etc/fstab
sudo nano /media/rootfs/etc/fstab
With:
/dev/mmcblk0p1 / auto errors=remount-ro 0 1
Setup /etc/inittab (serial)
sudo nano /media/rootfs/etc/inittab
With (at bottom)
T0:23:respawn:/sbin/getty -L ttymxc0 115200 vt102
== Kernel ==
=== Repo ===
git clone https://github.com/RobertCNelson/imx-devel.git
cd imx-devel/
=== v3.15.x ===
Working video (minus edid parsing)
git checkout origin/v3.15.x-rex -b v3.15.x-rex
=== v3.16.x ===
git checkout origin/v3.16.x-rex -b v3.16.x-rex
=== Build ===
./build_kernel.sh
=== Quad ===
./tools/install_kernel_quad.sh
=== Dual ===
./tools/install_kernel_dl.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment