Coder Social home page Coder Social logo

artik710-yocto-bsp-repo's Introduction

YOCTO BSP for Samsung Artik

Build Packages

$ sudo apt install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping

To get the BSP you need to have repo installed and use it as:

Install the repo utility:

$ sudo apt install repo

or

$ mkdir ~/bin
$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ PATH=${PATH}:~/bin

Download the BSP source:

$ mkdir yocto-artik && cd $_
$ repo init -u https://github.com/eunchurn/artik710-yocto-bsp-repo -b morty
$ repo sync

At the end of the commands you have every metadata you need to start work with.

To start a simple image build:

$ MACHINE=artik710 DISTRO=poky source setup-environment build
$ bitbake core-image-minimal

It takes 2 or 3 hours. You can use any directory to host your build.

In the meantime create two partitions on your microSD. You can use gparted on your Ubuntu PC.

path file system
boot ext4
rootfs ext4

At the end you will get the following files, copy tem into the microSD:

$ cd ~/yocto-artik/poky/build/tmp/deploy/images/artik710
$ sudo cp Image /media/boot/
$ sudo cp Image-s5p6818-artik710-raptor-rev00.dtb /media/boot/s5p6818-artik710-raptor-rev00.dtb
$ sudo cp Image-s5p6818-artik710-raptor-rev01.dtb /media/boot/s5p6818-artik710-raptor-rev01.dtb
$ sudo cp Image-s5p6818-artik710-raptor-rev03.dtb /media/boot/s5p6818-artik710-raptor-rev03.dtb
$ cp ../../../../../sources/meta-artik710/recipes-bsp/u-bootu-boot.bin /media/boot/
$ cp u-boot-artik710.bin /media/boot/

Copying image to SD-card

  • Format SD Card and mount it. (SD-card device find /dev/sd[X]1/ with running $ sudo fdisk -l)
$ sudo mkfs.ext4 /dev/sd[X]1
$ sudo mount /dev/sd[X]1 /mnt
  • Copy compiled binaries(fip-nonsecure.img, params.bin) into a micro sd card.
$ sudo cp fip-nonsecure.img params.bin /mnt
$ sudo cp ../boot-firmwares-artik710/partmap_emmc.txt /mnt
$ sudo umount /mnt
  • Insert the microSD card into your board and enter u-boot shell during boot countdown
# sd_recovery mmc 1:1 48000000 partmap_emmc.txt

artik710-yocto-bsp-repo's People

Contributors

eunchurn avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.