LoginSignup
13
12

More than 5 years have passed since last update.

Dockerを使ってXilinx FPGA用Linuxブートイメージ生成環境を作る

Last updated at Posted at 2018-01-19

はじめに

自分のUbuntuホストに、GPUを使った開発環境とXilinx FPGA開発環境が同居してしまったため、XilinxのEmbedded SW開発ツール、特にPetaLinux関係のツールがまれに動かなくなってしまいました。
おそらくPythonのバージョンを適切に分けていないためと思いますが、そこまで考えるともう大変です。
Xilinx FPGAの場合、PetaLinux以外にもYoctoを使用したLinuxブートイメージ生成手段もあります。こちらはこちらで多数のファイルが必要だったり生成されたりするので、こっちはこっちで環境作るのに大変手間がかかります。
Yoctoの環境をDockerのイメージに移すことができれば手間を削減できるのではないかと試してみました。これはそのメモです。

Ubuntuホストのバージョンは16.04です。

YoctoとDocker

YoctoとDocker、この組み合わせは既に誰か考えているだろうと調べてみると、GitHubにリポジトリがありました。

easy-build

この方の成果物をベースに作っていきます。

Dockerのインストール

ご存じの方もいるかもしれませんが、Dockerは商用版(EE)と無償版(CE)に分かれました。ここではCEをインストールします。

$ sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
$ sudo apt-get update
$ sudo apt-get -y install docker-ce

Dockerfileの作成からDockerコンテナのログインまで

easy-buildをcloneします。

$ git clone https://github.com/gmacario/easy-build

「build-yocto-fsl-arm」というディレクトリを「build-yocto-xilinx」という名前でコピーします。

$ cd easy-build
$ cp -pr build-yocto-fsl-arm build-yocto-xilinx
$ cd build-yocto-xilinx

Dockerfileの編集

Dockerファイルの内容を下記に書き換えます。
インストールするツールとしてエディタ(nano, vim)の追加、Xilinx FPGA Linuxブートに必要なYoctoのメタファイルを入手します。

Dockerfile
FROM tethys/build-yocto

USER root

# Install the following utilities (required later)
RUN apt-get -y install nano vim

# Get Yocto project for xilinx
RUN git clone -b rocko git://git.yoctoproject.org/poky.git \
   && cd poky \
   && git clone -b master git://git.yoctoproject.org/meta-xilinx.git

# Define container entry point
ENTRYPOINT ["/bin/bash"]

# Expose sshd port
EXPOSE 22

# EOF

Dockerイメージの作成

タグ名を任意の名前に編集します。

build.sh
#!/bin/sh

set -x

cd $(dirname $0)

docker build --no-cache --rm -t tethys/build-yocto-xilinx .

exit $?

build.shを実行すると、Yocto関連のツールが入ったUbuntuのDockerイメージが生成されます。

$ ./build.sh
+ dirname ./build.sh
+ cd .
+ docker build --no-cache --rm -t tethys/build-yocto-xilinx .
Sending build context to Docker daemon  8.192kB
Step 1/7 : FROM tethys/build-yocto
...
...
...
Step 7/7 : EXPOSE 22
 ---> Running in dcf34c8469b0
Removing intermediate container dcf34c8469b0
 ---> 61f50027d4c9
Successfully built 61f50027d4c9
Successfully tagged tethys/build-yocto-xilinx:latest
+ exit 0

Dockerコンテナの起動とログイン

IMAGEを修正したタグ名に合わせ、CONTAINERを任意の名前に修正します。

run.sh
#!/bin/bash

#set -x

cd $(dirname $0)

SHAREDDIR=$PWD/shared
CONTAINER=build-yocto-xilinx
IMAGE=tethys/build-yocto-xilinx

# Create a shared folder which will be used as working directory.
mkdir -p $SHAREDDIR

# Try to start an existing/stopped container with the given name $CONTAINER.
# Otherwise, run a new one.
if docker inspect $CONTAINER >/dev/null 2>&1; then
    echo -e "\nINFO: Reattaching to running container $CONTAINER\n"
    docker start -i $CONTAINER
else
    echo -e "\nINFO: Creating a new container from image $IMAGE\n"
    docker run -t -i \
    --volume=$SHAREDDIR:/shared \
    --name=$CONTAINER \
    $IMAGE
fi

# /bin/sh -c "screen -s /bin/bash"

exit $?

以下のように、INFO: Creating...なメッセージが出たらログイン成功です。

 ./run.sh

INFO: Creating a new container from image tethys/build-yocto-xilinx

root@6448e893b697:/home/build#

コンテナログイン後の作業

以降は、Docker上で生成されたコンテナで起動しているOS(Ubuntu 16.04)の作業です。

環境変数の設定

以下のコマンドで、Yoctoの環境変数をsourceします。コマンド実行後、カレントディレクトリが一つ下の「build」ディレクトリに移動します。

root@6448e893b697:/home/build# cd poky/
root@6448e893b697:/home/build/poky# source oe-init-build-env
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'

Yoctoではrootでのbitbakeを禁止しているので、暫定処置として以下のコマンドを実行します。

root@6448e893b697:/home/build/poky/build# touch conf/sanity.conf

bitbakeの設定追加

Xilinxが提供しているメタファイルを追加するため、以下のコマンドを実施します。

root@6448e893b697:/home/build/poky/build# bitbake-layers add-layer ../poky/meta-xilinx/meta-xilinx-bsp
root@6448e893b697:/home/build/poky/build# bitbake-layers add-layer ../poky/meta-xilinx/meta-xilinx-contrib/

コマンドを実行後、conf/bblayers.confに下記の通りメタファイルが追加されます。

bblayers.conf
POKY_BBLAYERS_CONF_VERSION = "2"

BBPATH = "${TOPDIR}"
BBFILES ?= ""

BLAYERS ?= " \
  /home/build/poky/meta \
  /home/build/poky/meta-poky \
  /home/build/poky/meta-yocto-bsp \
  /home/build/poky/meta-xilinx/meta-xilinx-bsp \
  /home/build/poky/meta-xilinx/meta-xilinx-contrib \
  "

"

bitbakeによるビルド

対象デバイスがZynq-7000の場合は以下のコマンドでビルドをおこないます。

root@6448e893b697:/home/build/poky/build# MACHINE=zybo-zynq7 bitbake core-image-minimal

core-image-minimalでもビルドするタスク数は2,000を超えるので、終了まで数時間かかります。

Loading cache: 100% |######################################################################| Time: 0:00:17
Loaded 1327 entries from dependency cache.
Parsing recipes: 100% |####################################################################| Time: 0:00:00
Parsing of 856 .bb files complete (855 cached, 1 parsed). 1328 targets, 80 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-18.04"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "zybo-zynq7"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.3"
TUNE_FEATURES        = "arm armv7a vfp thumb neon callconvention-hard cortexa9"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-yocto-bsp       = "rocko:7e7ee662f5dea4d090293045f7498093322802cc"
meta-xilinx-bsp      
meta-xilinx-contrib  = "master:1e5fda195b960687e9414ba125cf4f3499cd6052"

Initialising tasks: 100% |#################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2429 tasks of which 2429 didn't need to be rerun and all succeeded.

bitbake以降の作業

bitbake以降の作業は、こちらに詳しい記事がありますので参照下さい。

コンテナログインから抜ける

ログイン中のコンテナから抜けてホストに戻るには、Controlキーを押した状態でp、qキーを順番に押して下さい。
この方法はbitbake実行中でも有効で、ホストに戻ってもコンテナ上でbitbakeがによるビルドが進行します。
ログアウト感覚でexitコマンドをコンテナ上で実行すると、コンテナが停止してしまいます。再びコンテナにログインする必要がある場合は、exitコマンドで抜けないで下さい。
なお、誤って停止させたコンテナに再びログインしたい場合はをrun.shを実行して下さい。

再びコンテナにログインする

再びコンテナにログインするには、ホスト上で以下のコマンドを実行します。

$ docker attach build-yocto-xilinx

bitbakeが実行中の場合は、実行中のコンソール画面に遷移します。

コンテナとホスト間のファイルの授受

ホスト側はコンテナを起動(run.sh)したディレクトリに「shared」というディレクトリが生成されています。
このディレクトリは、コンテナ上で「/shared」というディレクトリに接続されています。このディレクトリを通じて、Linuxブートに必要なファイル群をコンテナから取りだして下さい。

後片付け:Dockerコンテナ、イメージの削除

Yoctoを使用したLinuxブートイメージの作成には多くのファイルが生成されるので、用が済んだ環境をサクッと削除できるDockerは便利です。

Dockerコンテナの停止

exitコマンドでログアウトとコンテナの停止をおこないます。

root@6448e893b697:/home/build/poky/build# exit
exit
$

なお、繰り返しになりますが停止したコンテナに再びログインしたい場合はをrun.shを実行すればOKです。

Dockerコンテナの削除

以下のコマンドで、コンテナが削除されます。コンテナ上で作成したLinuxブートイメージも含め、ビルド時にダウンロードおよび生成した全てのファイルが削除されます。若干時間がかかるのでご注意下さい。

$ docker system prune
WARNING! This will remove:
        - all stopped containers
        - all networks not used by at least one container
        - all dangling images
        - all build cache
Are you sure you want to continue? [y/N] y
Deleted Containers:
b76ae5a3ca72d4926012813c6ee3b1ecf87884d887c14cc2d7a18f17881a1079

Total reclaimed space: 23.44GB

Dockerイメージの削除

以下のコマンドで、Linuxブートイメージ生成環境のベースとなるイメージ(yocto環境)も含めて全て削除されます。

$ for iid in $(docker images | awk '{print $3}' | tail -n +2); do docker rmi $iid; done

以下のように、Dockerイメージ「build-yocto-xilinx:latest」が、ベースとなるイメージ「tethys/build-yocto:latest」と共に削除されます。

Untagged: tethys/build-yocto-xilinx:latest
Deleted: sha256:30f372097a4c6c1d0b750222a4a1ad001c6b89a4e3c289ebdcc7708892407642
Deleted: sha256:e5a78ca0e1585fcae5fea6a5c0dffdec1526e68a95078c73d45e95b3851ddd29
...
...
...
Deleted: sha256:5dbcba77ec582d05e2821c452618b208e04992cf77943dd18e4f642ff95d0a06
Untagged: tethys/build-yocto:latest
Untagged: tethys/build-yocto@sha256:8d95f7e5187e9327a7eeb860e8dbfaee7b46ef51cf6d71ecc98d44714dda1404
Deleted: sha256:ce10b74d6fb379cad3496df5ecf82cdf7bb9f5c1d85716fe82912514d697c47d
...
...
...
Deleted: sha256:833649a3e04c96faf218d8082b3533fa0674664f4b361c93cad91cf97222b733

おわりに

DockerをインストールできればホストOSをあまり問われず、かつ短時間で環境を構築できるため、とても便利です。
今回を通じてできたDockerfileを、YoctoやXilinxのバージョンアップに追随しつつ整備して、個人的に使いやすい環境を立ち上げられるようにしておきたいです。

https://github.com/hiiaka/easy_build
https://hub.docker.com/r/tethys/build-yocto-xilinx/

参考資料

おまけ:ZYBOのSDブート作業

bitbake完了後、tmp/deploy/images/zybo-zynq7にLinuxブートに必要なファイルが生成される。これらをコンテナ上の/sharedディレクトリにコピーして、ホストOSへ取り出す。

Ubuntu等で、gparted等にてSDカードをfat32, ext4をそれぞれパーティションに分割する。
fat32でフォーマットした第1パーティションに、以下のファイルをコピーする

boot.bin
u-boot.img
uEnv.txt
uImage
uImage-zynq-zybo.dtb

ext4でフォーマットした第2パーティションには、下記のようにrootfsをコピーする。
(/mnt/usb2 に第2パーティションをマウントした場合)

$ sudo tar xfp core-image-minimal-zybo-zynq7-20180522115643.rootfs.tar.gz -C /mnt/usb2

シリアルコンソールのログ(ZYBOのジャンパにて、SDブート設定を忘れないこと)

U-Boot SPL 2017.09 (May 26 2018 - 00:20:12)
mmc boot
Trying to boot from MMC1
reading system.dtb
spl_load_image_fat_os: error reading image system.dtb, err - -1
reading u-boot.img
reading u-boot.img


U-Boot 2017.09 (May 26 2018 - 00:20:12 +0000)

Model: Zynq ZYBO Development Board
Board: Xilinx Zynq
I2C:   ready
DRAM:  ECC disabled 512 MiB
MMC:   sdhci@e0100000: 0
SF: Detected s25fl128s_64k with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Model: Zynq ZYBO Development Board
Board: Xilinx Zynq
Net:   ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
I2C EEPROM MAC address read failed

Warning: ethernet@e000b000 (eth0) using random MAC address - 1e:6b:4a:fe:d5:78
eth0: ethernet@e000b000
reading uEnv.txt
479 bytes read in 9 ms (51.8 KiB/s)
Importing environment from mmc ...
Checking if uenvcmd is set ...
Running uenvcmd ...
reading uImage
3956784 bytes read in 257 ms (14.7 MiB/s)
reading uImage-zynq-zybo.dtb
9222 bytes read in 17 ms (529.3 KiB/s)
## Booting kernel from Legacy Image at 02080000 ...
   Image Name:   Linux-4.14.0-xilinx-v2018.1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3956720 Bytes = 3.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
   Booting using the fdt blob at 0x2000000
   Loading Kernel Image ... OK
   Loading Device Tree to 1eb25000, end 1eb2a405 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.14.0-xilinx-v2018.1 (oe-user@oe-host) (gcc version 7.3.0 (GCC)) #1 SMP PREEMPT Fri May 25 23:58:55 UTC 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Zynq ZYBO Development Board
Memory policy: Data cache writealloc
cma: Reserved 16 MiB at 0x1f000000
random: fast init done
percpu: Embedded 16 pages/cpu @debc8000 s34764 r8192 d22580 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 130048
Kernel command line: earlyprintk console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 493068K/524288K available (6144K kernel code, 238K rwdata, 1560K rodata, 1024K init, 153K bss, 14836K reserved, 16384K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a3b8c0   ( 239 kB)
       .bss : 0xc0a3b8c0 - 0xc0a61f84   ( 154 kB)
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
        Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
efuse mapped to e0800000
slcr mapped to e0802000
L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46460001
zynq_clock_init: clkc starts at e0802100
Zynq clock init
sched_clock: 64 bits at 325MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4af477f6aa, max_idle_ns: 440795207830 ns
Switching to timer-based delay loop, resolution 3ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 551318127 ns
timer #0 at e080a000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 650.00 BogoMIPS (lpj=3250000)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x100000 - 0x100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 2 CPUs
SMP: Total of 2 processors activated (1300.00 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xe0840000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 25, base_baud = 6250000) is a xuartps
console [ttyPS0] enabled
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
usb_phy_generic phy0: phy0 supply vcc not found, using dummy regulator
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
fpga-region fpga-full: FPGA Region probed
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
workingset: timestamp_bits=30 max_order=17 bucket_order=0
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
brd: module loaded
loop: module loaded
zynq-qspi e000d000.spi: couldn't determine configuration info
zynq-qspi e000d000.spi: about dual memories. defaulting to single memory
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 27 (1e:6b:4a:fe:d5:78)
RTL8211E Gigabit Ethernet e000b000.ethernet-ffffffff:00: attached PHY driver [RTL8211E Gigabit Ethernet] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
chipidea-usb2 e0002000.usb: e0002000.usb supply vbus not found, using dummy regulator
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
i2c /dev entries driver
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at e0944000 with timeout 10s
EDAC MC: ECC not enabled
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
hctosys: unable to open rtc device (rtc0)
of_cfs_init
of_cfs_init: OK
ALSA device list:
  No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDHC card at address 59b4
mmcblk0: mmc0:59b4 USDU1 14.9 GiB
 mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p2): recovery complete
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Starting udev
udevd[708]: starting version 3.2.1
udevd[709]: starting eudev-3.2.1
EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
Tue May 22 13:04:45 UTC 2018
INIT: Entering runlevel: 5
Configuring network interfaces... IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
udhcpc (v1.24.1) started
Sending discover...
Sending discover...
macb e000b000.ethernet eth0: link up (1000/Full)
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending discover...
Sending select for 192.168.xxx.xxx...
Lease of 192.168.xxx.xxx obtained, lease time 86400
/etc/udhcpc.d/50default: Adding DNS 192.168.xxx.xxx
done.
Starting syslogd/klogd: done

Poky (Yocto Project Reference Distro) 2.3.4 zybo-zynq7 /dev/ttyPS0

zybo-zynq7 login:
13
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
13
12