วันพฤหัสบดีที่ 18 กันยายน พ.ศ. 2557

SATA HDD on Wandboard Quad with Fedora20

I'm install FC20 into WB-Quad by following URL.

https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29

But it's cannot see any SATA devices on board. I've found solution on following URL.

http://www.swissdutch.ch/sata.php

It's require imx6q-wandboard.dtb but URL on site are loss. But I've found new on URL.

http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/

And I choose imx6q-wandboard-revb1.dtb (My board is rev B1). Put it into __boot/dtb/ on sd-card. Then I'm modify __boot/extlinux/extlinux.conf by changed

"ftd /dtb/imx6q-wandboard.dtb"

to

"fdt /dtb/imx6q-wandboard-revb1.dtb".

Then create /etc/modules-load.d/imx.conf. This is inside it.

# Load ahci imx at boot
ahci_platform
ahci_imx

When I'm create directory /hdd finished i'm put this line to __/etc/fstab

/dev/sda1   /hdd ext4 defaults 0 0

And Then reboot.

Sources.
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
http://www.swissdutch.ch/sata.php
http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/

วันพุธที่ 17 กันยายน พ.ศ. 2557

iMX6-Quad wandboard cannot load fedora linux kernel problem solve.

I've install Fedora20 into Wandboard Quad by following URL.

https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29

But it found problem about cannot load linux. This is my error message.

Wrong Image format for sysboot command
ERROR: can't get kernel image!

I think it cannot find image on SD-Card. But I'm found this page.

https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad

And I'm recheck __/etc/fstab. This result

[root@localhost etc]# cat fstab
UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca  / ext4    defaults,noatime 0 0
UUID=85e29c85-1d3f-4dd2-b0d5-f4a41fe95569  /boot ext3    defaults,noatime 0 0
UUID=a6c693c6-99c1-4e79-b522-7cae47d96d38  swap swap    defaults,noatime 0 0

It's show root is mounted on UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca.

But when I'm cat __boot/extlinux/extlinux.conf it's show result.

# 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.10-301.fc20.armv7hl) 20 (Heisenbug)
        kernel /vmlinuz-3.11.10-301.fc20.armv7hl
        append console=ttymxc0,115200 root=UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97 ro rhgb quiet LANG=en_US.UTF-8
        fdt /dtb/imx6q-wandboard.dtb
        initrd /initramfs-3.11.10-301.fc20.armv7hl.img

It's show root path is UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97. Oh my god UUID is not correct. When i'm change UUID in __boot/extlinux/extlinux.conf to 67fd65e0-63d0-492d-bac9-f1a7702e30ca now it's boot correctly.

Reference Link

https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad