Skip to content

Source to create SD Fuse images for Samsung ARTIK 5, 7 and 10 families.

License

Notifications You must be signed in to change notification settings

HiZLabs/build-artik

 
 

Repository files navigation

ARTIK Fedora Root file system

Contents

  1. Introduction
  2. Directory structure
  3. Build guide
  4. Install guide

1. Introduction

This 'build-artik' repository helps to create an ARTIK sd fuse image which can do eMMC recovery from sdcard. Due to long build time of fedora image, the root file system is provided by prebuilt binary and download it from server during build.


2. Directory structure

  • config: Build configurations for artik5 and artik10
    • common.cfg: common configurations for artik5 and artik10
    • artik5.cfg: common.cfg + artik5 specific configurations
    • artik10.cfg: common.cfg + artik10 specific configurations
  • prebuilt : prebuilt binaries for artik5 and artik10
    • artik5: early stage bootloaders of artik5
    • artik10: early stage bootloaders of artik10
    • uInitrd: prebuilt ramdisk(can be generated from initrd-artik)
  • build_uboot.sh: u-boot build script
  • build_kernel.sh: linux kernel build script
  • expand_rootfs.sh: Expand the last rootfs partition of microsd card
  • mkbootimg.sh: generate /boot partition image which contains kernel, dtb and ramdisk
  • mksdboot.sh: generate a sdcard early boot image(from bl1 to u-boot)
  • mksdfuse.sh: build script for generating sd fusing image from binaries
  • release.sh: build u-boot/kernel and generate sd fusing image

3. Build guide

3.1 Install packages

sudo apt-get install kpartx u-boot-tools gcc-arm-linux-gnueabihf libssl-dev device-tree-compiler

3.2 Download BSP sources

1. Download through repo tool

You can download source codes using repo tool. To install the repo tool, https://source.android.com/source/downloading.html

  • Download source
  • ARTIK5>
mkdir artik5
cd artik5
repo init -u https://github.com/SamsungARTIK/manifest.git -m artik520_bsp.xml -b A520_os_2.0.0
repo sync

2. clone by manual

Please ensure u-boot-artik and linux-artik directory on top of the build-artik.

u-boot-artik/ linux-artik/ build-artik/

  • artik5>
mkdir artik5
cd artik5
git clone https://github.com/SamsungARTIK/linux-artik.git -b A520_os_2.0.0
git clone https://github.com/SamsungARTIK/u-boot-artik.git -b A520_os_2.0.0
git clone https://github.com/SamsungARTIK/build-artik.git -b A520_os_2.0.0
git clone https://github.com/SamsungARTIK/boot-firmwares-artik5.git -b A520_os_2.0.0
cd build-artik
  • artik10>
mkdir artik10
cd artik10
git clone https://github.com/SamsungARTIK/linux-artik.git -b release/artik1020/artik_os_1.1.0
git clone https://github.com/SamsungARTIK/u-boot-artik.git -b release/artik1020/artik_os_1.1.0
git clone https://github.com/SamsungARTIK/build-artik.git -b release/artik1020/artik_os_1.1.0
cd build-artik

3.2 Generate a sd fuse image(for eMMC recovery from sd card)

  • artik5>
./release.sh -c config/artik5.cfg
  • artik10>
./release.sh -c config/artik10.cfg

The output will be 'output/images/artik5/YYYYMMDD.HHMMSS/artik5_sdfuse.img'

3.3 Generate a sd bootable image(for SD Card Booting)

  • artik5>
./release.sh -c config/artik5.cfg -m
  • artik10>
./release.sh -c config/artik10.cfg -m

4. Install guide

Please refer https://developer.artik.io/documentation/updating-artik-image.html


5. Full build guide

This will require long time to make a fedora rootfs. You'll require to install fed-artik-tools and set up chroot environment before doing this. https://github.com/SamsungARTIK/fed-artik-tools

1. Clone whole source tree

  • artik5
mkdir artik5_full
cd artik5_full
repo init -u https://github.com/SamsungARTIK/manifest.git -b A520_os_2.0.0 -m artik520.xml
repo sync

2. Build with --full-build option

  • artik5
cd build-artik
./release.sh -c config/artik5.cfg --full-build

About

Source to create SD Fuse images for Samsung ARTIK 5, 7 and 10 families.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%