User:Mrunge/Wandboard quad

From FedoraProject

< User:Mrunge(Difference between revisions)
Jump to: navigation, search
Line 37: Line 37:
 
  #totaltimeout 9000
 
  #totaltimeout 9000
 
   
 
   
  label Fedora (3.11.0-3.fc20.armv7hl) 20 (Null)
+
  label Fedora (3.11.0-300.fc20.armv7hl) 20 (Null)
  kernel /vmlinuz-3.11.0-3.fc20.armv7hl
+
  kernel /vmlinuz-3.11.0-300.fc20.armv7hl
 
  append console=ttymxc0,115200 root=UUID=b7ae4e8a-6f2a-4c11-8af2-d5abeabcf955 ro rhgb quiet LANG=en_US.UTF-8
 
  append console=ttymxc0,115200 root=UUID=b7ae4e8a-6f2a-4c11-8af2-d5abeabcf955 ro rhgb quiet LANG=en_US.UTF-8
 
  fdt /dtb/imx6q-wandboard.dtb
 
  fdt /dtb/imx6q-wandboard.dtb
  initrd /initramfs-3.11.0-3.fc20.armv7hl.img
+
  initrd /initramfs-3.11.0-300.fc20.armv7hl.img
  
  

Revision as of 10:07, 13 September 2013

Wandboard Quad, and it's "enabled hardware" on Fedora 20. Take the RC2 build from http://dl.fedoraproject.org/pub/alt/stage/20-Alpha-RC2/Images/armhfp/Fedora-Minimal-armhfp-20-Alpha-2-sda.raw.xz


wget http://kojipkgs.fedoraproject.org//work/tasks/6895/5896895/Fedora-Minimal-armhfp-20-Alpha-TC4-sda.raw.xz \
     http://dl.fedoraproject.org/pub/alt/stage/20-Alpha-RC2/Images/armhfp/Fedora-Images-armhfp-20-Alpha-CHECKSUM
sha256sum -c Fedora-Images-armhfp-20-Alpha-CHECKSUM
...
xzcat Fedora-Minimal-armhfp-20-Alpha-TC4-sda.raw.xz | sudo dd of=/dev/mmcblk0 bs=4M conv=fsync
sudo sync

Sadly, it's not bootable by default, we need to write a bootblock. From the package uboot-wandboard_quad, we'll take the file /usr/share/uboot-imx6quad/u-boot.imx

and dd it to the sdcard:

sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1
sudo sync

Place the flattened Device Tree Blob in the correct location from the boot filesystem:

mkdir dtb
cp dtb-3.11.0-300.fc20.armv7hl/imx6q-wandboard.dtb   dtb/.

Currently, the image creation has a known bug: extlinux.conf is missing, though we create one by hand and write it to /boot/extlinux/extlinux.conf on the sdcard: :

# extlinux.conf generated by anaconda

#ui menu.c32

menu autoboot Welcome to Fedora. Automatic boot in # second{,s}. Press a key for options.
#menu title Fedora Boot Options.
#menu hidden

timeout 60
#totaltimeout 9000

label Fedora (3.11.0-300.fc20.armv7hl) 20 (Null)
	kernel /vmlinuz-3.11.0-300.fc20.armv7hl
	append console=ttymxc0,115200 root=UUID=b7ae4e8a-6f2a-4c11-8af2-d5abeabcf955 ro rhgb quiet LANG=en_US.UTF-8
	fdt /dtb/imx6q-wandboard.dtb
	initrd /initramfs-3.11.0-300.fc20.armv7hl.img


Finally, we'd need to update the UUID of the root partition:

sudo blkid -ovalue -sUUID /dev/mmcblk0p3

The above will report the name of the partition and the UUID, which we'd need to insert to the kernel append line in extlinux.conf Also ensure the same UUID is in the /etc/fstab of the rootfs.


Now you are ready to boot, follow these steps

  • Insert the micro SDCard to the card reader on the EDM system module (directly below the heat sink).
    • There are two micro SDcard slots, the Freescale EDM system-on-module board, and the carrier board.
  • connect the serial cable (DB9 female).
  • Connect the power supply (5 volt, 3 amp).

Maybe you'd need to type boot, when you're dropped to the uboot prompt.

run bootcmd