No edit summary |
|||
Line 39: | Line 39: | ||
Format SSD into two partitions like below : | Format SSD into two partitions like below : | ||
# fdisk -l /dev/sda | |||
Disk /dev/sda: 128.0 GB, 128035676160 bytes | Disk /dev/sda: 128.0 GB, 128035676160 bytes | ||
Line 70: | Line 70: | ||
=== make directory structure on Extended Storage(ES) === | === make directory structure on Extended Storage(ES) === | ||
# tree /es/ | |||
/es/ | /es/ | ||
├── lost+found | ├── lost+found | ||
└── scratch | └── scratch | ||
└── | └── username | ||
├── arndale | ├── arndale | ||
│ ├── F18 | │ ├── F18 | ||
Line 97: | Line 97: | ||
This kickstart file can make a '''F18''' image in '''F17''' ARM host for Arndale Board. | This kickstart file can make a '''F18''' image in '''F17''' ARM host for Arndale Board. | ||
Put it to /es/scratch/ | Put it to /es/scratch/username/arndale/F18/kickstarts/ | ||
== Building image using livemedia-creator == | == Building image using livemedia-creator == | ||
Line 109: | Line 109: | ||
--no-virt --make-disk \ | --no-virt --make-disk \ | ||
--armplatform=None \ | --armplatform=None \ | ||
--tmp=/es/scratch/ | --tmp=/es/scratch/username/arndale/F18/images/ \ | ||
--image-name=F18-arndale-${BUILD_TIME}.img \ | --image-name=F18-arndale-${BUILD_TIME}.img \ | ||
--ks=/es/scratch/ | --ks=/es/scratch/username/arndale/F18/kickstarts/F18-arndale-console_in_f17.ks | ||
Put it into /es/scratch/ | Put it into /es/scratch/username/scripts, add execute permission and execute it. | ||
Note: If you met any error in build procedure. you had better to reboot the board and execute "anaconda-cleanup", then try again. | Note: If you met any error in build procedure. you had better to reboot the board and execute "anaconda-cleanup", then try again. |
Revision as of 03:39, 2 May 2013
How To Make a Fedora Image on an ARM Host(Arndale)
ARM Host Hardware Requirements
RAM >= 2GB SSD (for swap and storage)
We will use an Arndale board (running F17) with ADATA SP900 128G SSD to make an F18 image in this Wiki.
Deploying Fedora 17 on Arndale
Decompress the file and flash the image to the SD card:
$ sudo dd if=F17-arndale-201304221157.img of=${DEV}
Flash u-boot to SD card:
$ wget http://tekkamanninja.fedorapeople.org/boards/arndale/u-boot/arndale-bl1.bin $ wget http://tekkamanninja.fedorapeople.org/boards/arndale/u-boot/smdk5250-spl.bin $ wget http://tekkamanninja.fedorapeople.org/boards/arndale/u-boot/u-boot.bin $ sudo dd if=arndale-bl1.bin of=${DEV} bs=512 seek=1 $ sudo dd if=smdk5250-spl.bin of=${DEV} bs=512 seek=17 $ sudo dd if=u-boot.bin of=${DEV} bs=512 seek=49 $ sync
where ${DEV} can be /dev/mmcblkN
or /dev/sdN
.
Then insert the SD card into the Arndale board and boot.
Attach a SSD to ARM host
We need a SSD for bigger swap and storage.
Format SSD into two partitions like below :
# fdisk -l /dev/sda Disk /dev/sda: 128.0 GB, 128035676160 bytes 255 heads, 63 sectors/track, 15566 cylinders, total 250069680 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x6fea5476 Device Boot Start End Blocks Id System /dev/sda1 2048 8390655 4194304 83 Linux /dev/sda2 8390656 250069679 120839512 83 Linux
format 4GB swap partition and mount it
# mkswap /dev/sda1 # swapon /dev/sda1 # swapoff /dev/mmcblk1p2 # free total used free shared buffers cached Mem: 2062708 73120 1989588 0 3180 21252 -/+ buffers/cache: 48688 2014020 Swap: 4194300 0 4194300
format another partition and mount it as Extended Storage(ES)
# mkfs.ext4 -L "es" /dev/sda2 # mount /dev/sda2 /es/
make directory structure on Extended Storage(ES)
# tree /es/ /es/ ├── lost+found └── scratch └── username ├── arndale │ ├── F18 │ │ ├── images │ │ └── kickstarts │ └── u-boot └── scripts
Install anaconda and lorax
For making image on ARM host, we need to install the 'patched' versions of anaconda and lorax from xpfa.
# yum --nogpgcheck install http://dmarlin.fedorapeople.org/packages/FedoraArm/RPMS/noarch/xpfa-17-1.2.noarch.rpm # yum --enablerepo=xpfa install anaconda lorax
Get a kickstart file
You can download a example kickstart file from [Fedora 17 kickstart file for Arndale Board]
This kickstart file can make a F18 image in F17 ARM host for Arndale Board.
Put it to /es/scratch/username/arndale/F18/kickstarts/
Building image using livemedia-creator
The shell script for making image is below:
#!/bin/sh
BUILD_TIME=date +%Y%m%d%H%M
livemedia-creator \
--no-virt --make-disk \
--armplatform=None \
--tmp=/es/scratch/username/arndale/F18/images/ \
--image-name=F18-arndale-${BUILD_TIME}.img \
--ks=/es/scratch/username/arndale/F18/kickstarts/F18-arndale-console_in_f17.ks
Put it into /es/scratch/username/scripts, add execute permission and execute it.
Note: If you met any error in build procedure. you had better to reboot the board and execute "anaconda-cleanup", then try again.