No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
sudo sync | 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 | 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 | /usr/share/uboot-imx6quad/u-boot.imx | ||
Line 14: | Line 14: | ||
sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1 | sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=1k seek=1 | ||
sudo sync | sudo sync | ||
Place the flattened Device Tree Blob in the correct location | |||
from the boot filesystem: | |||
mkdir dtb | |||
cp dtb-3.11.0-3.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: : | 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 | # extlinux.conf generated by anaconda | ||
Line 26: | Line 31: | ||
timeout 60 | timeout 60 | ||
#totaltimeout 9000 | #totaltimeout 9000 | ||
label Fedora (3.11.0-3.fc20.armv7hl) 20 ( | label Fedora (3.11.0-3.fc20.armv7hl) 20 (Null) | ||
kernel /vmlinuz-3.11.0-3.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-3.fc20.armv7hl.img | |||
Finally, we'd need to update the UUID of the root partition: | Finally, we'd need to update the UUID of the root partition: | ||
sudo blkid - | sudo blkid -ovalue -sUUID /dev/mmcblk0p3 | ||
will report the name of the partition and the UUID, which we'd need to insert to the kernel append line in extlinux.conf | |||
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. | Maybe you'd need to type boot, when you're dropped to the uboot prompt. | ||
run bootcmd |
Revision as of 18:16, 6 September 2013
Lately, I got a shiny new Wandboard Quad into my fingers, and it's "enabled hardware" on Fedora 20. I took a TC4 test build from http://koji.fedoraproject.org/koji/taskinfo?taskID=5896895:
wget http://kojipkgs.fedoraproject.org//work/tasks/6895/5896895/Fedora-Minimal-armhfp-20-Alpha-TC4-sda.raw.xz xzcat Fedora-Minimal-armhfp-20-Alpha-TC4-sda.raw.xz | sudo dd of=/dev/mmcblk0 bs=4M 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-3.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-3.fc20.armv7hl) 20 (Null) kernel /vmlinuz-3.11.0-3.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-3.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