Skip to content

MCherifiOSS/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

3.2 Download u-boot and kernel sources

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 release/artik520/artik_os_1.0.0
git clone https://github.com/SamsungARTIK/u-boot-artik.git -b release/artik520/artik_os_1.0.0
git clone https://github.com/SamsungARTIK/build-artik.git -b release/artik520/artik_os_1.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.0.0
git clone https://github.com/SamsungARTIK/u-boot-artik.git -b release/artik1020/artik_os_1.0.0
git clone https://github.com/SamsungARTIK/build-artik.git -b release/artik1020/artik_os_1.0.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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages