December 08, 2019, 07:22:35 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


How to build Fedora 20 Nand Image

Started by benn, May 14, 2014, 04:39:41 am

Previous topic - Next topic

benn

Abstract

A simple way to build Fedora 20 Minimal Nand Image.

Prepare Your Build Environment

We have to build the nand image on Ubuntu 12.04(x86_64), because of the proprietary binary blobs of pack tools from Allwinner.

$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get install build-essential u-boot-tools uboot-mkimage
$sudo apt-get install gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi
$sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev
$sudo apt-get install libncurses5-dev

Getting Source Code

$mkdir /work/my-linux-sdk
$cd /work/my-linux-sdk
$git clone https://github.com/cubieboard/linux-sdk-products.git products
$git clone https://github.com/cubieboard/linux-sdk-tools.git tools
$git clone https://github.com/cubieboard/linux-sdk-binaries.git binaries
$git clone https://github.com/cubieboard/linux-sunxi.git linux-sunxi
$cd linux-sunxi
$git checkout -b cb2-sunxi-3.4 origin/cb2/sunxi-3.4
$cd -
$cd binaries
$wget http://dl.cubieboard.org/software/common/linux-sdk-binaries/fedora-20-minimal.ext4.gz
$gunzip fedora-20-minimal.ext4.gz

Compiling

$source tools/scripts/envsetup.sh
select cb2-f20-minimal
$cb_build_nand_image

If success, we can get a image file named livesuit_cubieboard2.img at build/cb2-f20-minimal/pack/

http://docs.cubieboard.org/tutorials/cb2/development/building_fedora_20_nand_image

actkk2000


mininodes

Been running this for a few weeks now.  Confirmed as working great!  Thanks Benn!
miniNodes -- ARM Dedicated Servers
http://www.mininodes.com

cubieplayer

Quote from: benn on May 14, 2014, 04:39:41 am
Abstract

A simple way to build Fedora 20 Minimal Nand Image.

Prepare Your Build Environment

We have to build the nand image on Ubuntu 12.04(x86_64), because of the proprietary binary blobs of pack tools from Allwinner.

$sudo apt-get update
$sudo apt-get upgrade
$sudo apt-get install build-essential u-boot-tools uboot-mkimage
$sudo apt-get install gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi
$sudo apt-get install libusb-1.0-0 libusb-1.0-0-dev git wget fakeroot kernel-package zlib1g-dev
$sudo apt-get install libncurses5-dev

Getting Source Code

$mkdir /work/my-linux-sdk
$cd /work/my-linux-sdk
$git clone https://github.com/cubieboard/linux-sdk-products.git products
$git clone https://github.com/cubieboard/linux-sdk-tools.git tools
$git clone https://github.com/cubieboard/linux-sdk-binaries.git binaries
$git clone https://github.com/cubieboard/linux-sunxi.git linux-sunxi
$cd linux-sunxi
$git checkout -b cb2-sunxi-3.4 origin/cb2/sunxi-3.4
$cd -
$cd binaries
$wget http://dl.cubieboard.org/software/common/linux-sdk-binaries/fedora-20-minimal.ext4.gz
$gunzip fedora-20-minimal.ext4.gz

Compiling

$source tools/scripts/envsetup.sh
select cb2-f20-minimal
$cb_build_nand_image

If success, we can get a image file named livesuit_cubieboard2.img at build/cb2-f20-minimal/pack/

http://docs.cubieboard.org/tutorials/cb2/development/building_fedora_20_nand_image

Great tutorial

osella.esteban