arm:quartz

This is an old revision of the document!


Quartz is a tiny module produced by Device Solutions

1. Under FreeBSD, checkout latest source

svnlite co http://svn.freebsd.org/base/head ~/src

2. Compile FreeBSD

cd ~/src
make TARGET_ARCH=armv6 kernel-toolchain
make TARGET_ARCH=armv6 KERNCONF=QUARTZ buildkernel
make TARGET_ARCH=armv6 buildworld

3. Create USB image

truncate -s 1024M quartz.img
mdconfig -f quartz.img -u0
newfs /dev/md0
mount /dev/md0 /mnt
cd ~/src
make TARGET_ARCH=armv6 DESTDIR=/mnt installworld distribution
echo "/dev/da0 / ufs rw,noatime 1 1" > /mnt/etc/fstab
umount /mnt
mdconfig -d -u0

4. Write USB image (replace /dev/da0 with your USB stick device)

sysctl kern.geom.debugflags=16
dd if=quartz.img of=/dev/da0 bs=4096k 

5. Create SD card image (replace /dev/da4 with your SD device)

dd if=/dev/zero of=/dev/da4 bs=4096k
gpart create -s MBR da4
gpart add -b 8m -s 32m -t '\!14' da4
newfs_msdos /dev/da4s1
mount_msdosfs /dev/da4s1 /mnt
cd ~/src
make TARGET_ARCH=armv6 DESTDIR=/mnt installkernel
umount /mnt

1. Connect to serial console on speed 115200

cu -l /dev/ttyu0 -s 115200

2. Power on the board and boot

fatload mmc 0:1 0x80100000 kernel.bin
go 0x80100000
  • arm/quartz.1394933067.txt.gz
  • Last modified: 2014/03/16 01:24
  • by RuslanBukin