履歴: 電気回路/zynq/Petalinux のビルド

各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 18 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます

日時タイトル文字数追加削除内容差分基準
2022/10/25 15:21:26電気回路/zynq/Petalinux のビルド 最新版47,023+1 -42表示差分—
2022/10/25 15:21:26電気回路/zynq/Petalinux のビルド 49,525+2 -1表示差分選択
2017/5/23 0:07:40電気回路/zynq/Petalinux のビルド 49,524+2 -1表示差分選択
2017/5/23 0:07:40電気回路/zynq/Petalinux のビルド 49,519+3 -0表示差分選択
2017/5/23 0:07:40電気回路/zynq/Petalinux のビルド 49,468+1 -0表示差分選択
2017/5/21 12:57:13電気回路/zynq/Petalinux のビルド 49,365+23 -0表示差分選択
2017/5/19 11:03:54電気回路/zynq/Petalinux のビルド 47,852+16 -0表示差分選択
2017/3/22 17:38:55電気回路/zynq/Petalinux のビルド 46,973+6 -2表示差分選択
2017/3/22 17:38:55電気回路/zynq/Petalinux のビルド 46,845+17 -9表示差分選択
2017/3/22 17:38:55電気回路/zynq/Petalinux のビルド 46,650+5 -0表示差分選択
2017/2/20 3:18:11電気回路/zynq/Petalinux のビルド 46,517+3 -2表示差分選択
2017/2/20 3:18:11電気回路/zynq/Petalinux のビルド 46,475+17 -0表示差分選択
2017/2/16 13:27:46電気回路/zynq/Petalinux のビルド 46,042+21 -2表示差分選択
2017/2/16 13:27:46電気回路/zynq/Petalinux のビルド 45,719+308 -23表示差分選択
2017/2/16 4:45:46電気回路/zynq/Petalinux のビルド 35,848+326 -2表示表示中選択
2017/2/15 17:01:09電気回路/zynq/Petalinux のビルド 23,410+141 -9表示差分基準
2017/2/15 13:18:34電気回路/zynq/Petalinux のビルド 17,838+202 -322表示差分選択
2017/2/15 6:25:02電気回路/zynq/Petalinux のビルド 24,450— —表示—選択

基準: 電気回路/zynq/Petalinux のビルド (2017/2/15 17:01:09) → 比較: 電気回路/zynq/Petalinux のビルド (2017/2/16 4:45:46)

@@ -540,6 +540,24 @@
image.ub と rootfs.tar.gz ができた。
+* ビルドの概要 [#m53ad53f]
+
+make を使っていないので、どのようにビルドが進んでいるのか全然わからない。
+
+気づいたことをここにまとめる。
+
+- 成果は image/ にできる
+- image/linux の内容は build/tmp/deploy/images/plnx_arm/ に作成したのをコピーしたもの
+- build/sstate-cache を見る限り、かなり非人間的なことをしている
+- build/tmp/work-shared/plnx_arm/kernel-source にカーネルソースがある
+-
+
+ LANG:console
+ $ ls build/sstate-cache/00/
+ sstate:device-tree-generation:cortexa9hf-neon-xilinx-linux-gnueabi:xilinx+gitAUTOINC+11f81055d1:r0:cortexa9hf-neon:3:0011197a4f6f3b9759bbaeb0fa81dcbd_compile.tgz.siginfo
+sstate:petalinux-user-image:plnx_arm-xilinx-linux-gnueabi:1.0:r0:plnx_arm:3:008af769240be40f1a713d1995b36264_image_complete.tgz.siginfo
+
+
* uImage の作成 [#g1057dbd]
LANG:console
@@ -575,7 +593,313 @@
あれ、二度手間とかじゃ無くて、すでにビルドが済んでいる状態でもう一度同じビルドを指示するだけで
ものすごく時間がかかるのか。何もやることは無いはずなのに、裏で何をやっているのだろう???
-* BOOT.BIN の作成 [#w888792f]
+* BOOT.bin の作成 [#w888792f]
+マニュアルにミスタイプがあるけれど、Zynq UltraScale+ MPSoC 用の記述と比べて考えると、
+正しいのはこう
-* 動作テスト [#pc45d846]
+ LANG:console
+ $ petalinux-package --boot --fsbl images/linux/zynq_fsbl.elf --fpga images/linux/design_1_wrapper.bit --u-boot --force
+ INFO: File in BOOT BIN: "/home/osamu/z-turn/zturn-v2016.4/images/linux/zynq_fsbl.elf"
+ INFO: File in BOOT BIN: "/home/osamu/z-turn/zturn-v2016.4/images/linux/design_1_wrapper.bit"
+ INFO: File in BOOT BIN: "/home/osamu/z-turn/zturn-v2016.4/images/linux/u-boot.elf"
+ INFO: Generating zynq binary package BOOT.BIN...
+ INFO: Binary is ready.
+ WARNING: Unable to access the TFTPBOOT folder /tftpboot!!!
+ WARNING: Skip file copy to TFTPBOOT folder!!!
+ $ ls
+ BOOT.BIN build components config.project images project-spec
+
+カレントフォルダにできちゃうのか orz
+
+でも一応できた。
+
+(オプションに --force を渡しておかないと、すでにファイルがあるときに上書きできません)
+
+* 途中で止まる [#ybd92c28]
+
+起動メッセージを見てみよう。
+
+まずメッセージを出すのが fsbl
+
+ LANG:console
+ Xilinx First Stage Boot Loader
+ Release 2014.4 Aug 11 2015-18:06:38
+ Devcfg driver initialized
+ Silicon Version 3.1
+ Boot mode is SD
+ SD: rc= 0
+ SD Init Done
+ Flash Base Address: 0xE0100000
+ Reboot status register: 0x60600000
+ Multiboot Register: 0x0000C000
+ Image Start Address: 0x00000000
+ Partition Header Offset:0x00000C80
+ Partition Count: 3
+ Partition Number: 1
+ Header Dump
+ Image Word Len: 0x000F6EC0
+ Data Word Len: 0x000F6EC0
+ Partition Word Len:0x000F6EC0
+ Load Addr: 0x00000000
+ Exec Addr: 0x00000000
+ Partition Start: 0x000065D0
+ Partition Attr: 0x00000020
+ Partition Checksum Offset: 0x00000000
+ Section Count: 0x00000001
+ Checksum: 0xFFD14B7E
+ Bitstream
+ In FsblHookBeforeBitstreamDload function
+ PCAP:StatusReg = 0x40000A30
+ PCAP:device ready
+ PCAP:Clear done
+ Level Shifter Value = 0xA
+ Devcfg Status register = 0x40000A30
+ PCAP:Fabric is Initialized done
+ PCAP register dump:
+ PCAP CTRL 0xF8007000: 0x4C00E07F
+ PCAP LOCK 0xF8007004: 0x0000001A
+ PCAP CONFIG 0xF8007008: 0x00000508
+ PCAP ISR 0xF800700C: 0x0802000B
+ PCAP IMR 0xF8007010: 0xFFFFFFFF
+ PCAP STATUS 0xF8007014: 0x00002A30
+ PCAP DMA SRC ADDR 0xF8007018: 0x00100001
+ PCAP DMA DEST ADDR 0xF800701C: 0xFFFFFFFF
+ PCAP DMA SRC LEN 0xF8007020: 0x000F6EC0
+ PCAP DMA DEST LEN 0xF8007024: 0x000F6EC0
+ PCAP ROM SHADOW CTRL 0xF8007028: 0xFFFFFFFF
+ PCAP MBOOT 0xF800702C: 0x0000C000
+ PCAP SW ID 0xF8007030: 0x00000000
+ PCAP UNLOCK 0xF8007034: 0x757BDF0D
+ PCAP MCTRL 0xF8007080: 0x30800100
+
+ DMA Done !
+
+ FPGA Done !
+ In FsblHookAfterBitstreamDload function
+ Partition Number: 2
+ Header Dump
+ Image Word Len: 0x000182C0
+ Data Word Len: 0x000182C0
+ Partition Word Len:0x000182C0
+ Load Addr: 0x00400000
+ Exec Addr: 0x00400000
+ Partition Start: 0x000FD490
+ Partition Attr: 0x00000010
+ Partition Checksum Offset: 0x00000000
+ Section Count: 0x00000001
+ Checksum: 0xFF6BA0BE
+ Application
+ Handoff Address: 0x00400000
+ In FsblHookBeforeHandoff function
+ SUCCESSFUL_HANDOFF
+ FSBL Status = 0x1
+
+ここから U-Boot が起動しています。
+
+ LANG:console
+ U-Boot 2016.07 (Feb 15 2017 - 19:04:54 +0900)
+
+ DRAM: ECC disabled 1 GiB
+ MMC: sdhci@e0100000: 0
+ SF: Detected W25Q128BV with page size 256 Bytes, erase size 4 KiB, total 16 MiB
+ *** Warning - bad CRC, using default environment
+
+ ## Error: flags type check failure for "serverip" <= "AUTO" (type: i)
+ himport_r: can't insert "serverip=AUTO" into hash table
+ In: serial
+ Out: serial
+ Err: serial
+ Net: ZYNQ GEM: e000b000, phyaddr -1, interface rgmii-id
+ eth0: ethernet@e000b000
+ U-BOOT for
+
+ ethernet@e000b000 Waiting for PHY auto negotiation to complete......... TIMEOUT !
+ Hit any key to stop autoboot: 0
+
+ここでキー入力を待ち、
+
+ LANG:console
+ Device: sdhci@e0100000
+ Manufacturer ID: 27
+ OEM: 5048
+ Name: SD8GB
+ Tran Speed: 50000000
+ Rd Block Len: 512
+ SD version 3.0
+ High Capacity: Yes
+ Capacity: 7.4 GiB
+ Bus Width: 4-bit
+ Erase Group Size: 512 Bytes
+ reading image.ub
+ 9056008 bytes read in 504 ms (17.1 MiB/s)
+ ## Loading kernel from FIT Image at 10000000 ...
+ Using 'conf@1' configuration
+ Verifying Hash Integrity ... OK
+ Trying 'kernel@0' kernel subimage
+ Description: Linux Kernel
+ Type: Kernel Image
+ Compression: uncompressed
+ Data Start: 0x100000d4
+ Data Size: 3828576 Bytes = 3.7 MiB
+ Architecture: ARM
+ OS: Linux
+ Load Address: 0x00008000
+ Entry Point: 0x00008000
+ Hash algo: sha1
+ Hash value: d64f030b600f0f9b4719b9aec3abb54d250dba3b
+ Verifying Hash Integrity ... sha1+ OK
+ ## Loading ramdisk from FIT Image at 10000000 ...
+ Using 'conf@1' configuration
+ Trying 'ramdisk@0' ramdisk subimage
+ Description: ramdisk
+ Type: RAMDisk Image
+ Compression: uncompressed
+ Data Start: 0x103aa360
+ Data Size: 5212087 Bytes = 5 MiB
+ Architecture: ARM
+ OS: Linux
+ Load Address: unavailable
+ Entry Point: unavailable
+ Hash algo: sha1
+ Hash value: 893afc6ebe8b4e92eefa09fbb10d6536a6ab5a05
+ Verifying Hash Integrity ... sha1+ OK
+ ## Loading fdt from FIT Image at 10000000 ...
+ Using 'conf@1' configuration
+ Trying 'fdt@0' fdt subimage
+ Description: Flattened Device Tree blob
+ Type: Flat Device Tree
+ Compression: uncompressed
+ Data Start: 0x103a6d28
+ Data Size: 13702 Bytes = 13.4 KiB
+ Architecture: ARM
+ Hash algo: sha1
+ Hash value: 93252290614dcfbbc551b6db5362ae326e816674
+ Verifying Hash Integrity ... sha1+ OK
+ Booting using the fdt blob at 0x103a6d28
+ Loading Kernel Image ... OK
+ Loading Ramdisk to 07b07000, end 07fff7b7 ... OK
+ Loading Device Tree to 07b00000, end 07b06585 ... OK
+
+RAM ディスクやら何やらを設定しています。
+
+ここからカーネルです。
+
+ LANG:console
+ Starting kernel ...
+
+ Uncompressing Linux... done, booting the kernel.
+ Booting Linux on physical CPU 0x0
+ Linux version 4.6.0-xilinx (osamu@ubuntu16lts) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 SMP PREEMPT Wed Feb 15 18:59:55 JST 2017
+ CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
+ CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
+ Machine model: zturn-v2016.4
+ bootconsole [earlycon0] enabled
+ cma: Reserved 16 MiB at 0x3f000000
+ Memory policy: Data cache writealloc
+ percpu: Embedded 12 pages/cpu @ef7d3000 s19776 r8192 d21184 u49152
+ Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
+ Kernel command line: console=ttyPS0,115200 earlyprintk
+ PID hash table entries: 4096 (order: 2, 16384 bytes)
+ Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
+ Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
+ Memory: 1009252K/1048576K available (5286K kernel code, 230K rwdata, 1848K rodata, 1024K init, 222K bss, 22940K reserved, 16384K cma-reserved, 245760K highmem)
+ Virtual kernel memory layout:
+ vector : 0xffff0000 - 0xffff1000 ( 4 kB)
+ fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
+ vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
+ lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
+ pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
+ modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
+ .text : 0xc0008000 - 0xc07f793c (8127 kB)
+ .init : 0xc0800000 - 0xc0900000 (1024 kB)
+ .data : 0xc0900000 - 0xc0939ba0 ( 231 kB)
+ .bss : 0xc0939ba0 - 0xc09713a4 ( 223 kB)
+ Preemptible hierarchical RCU implementation.
+ Build-time adjustment of leaf fanout to 32.
+ RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
+ RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
+ NR_IRQS:16 nr_irqs:16 16
+ efuse mapped to f0802000
+ slcr mapped to f0804000
+ L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
+ L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
+ 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 ID prefetch enabled, offset 1 lines
+ 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 0x76760001
+ zynq_clock_init: clkc starts at f0804100
+ Zynq clock init
+ sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
+ clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025, max_idle_ns: 440795209040 ns
+ Switching to timer-based delay loop, resolution 3ns
+ clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 537538477 ns
+ timer #0 at f080c000, irq=17
+ Console: colour dummy device 80x30
+ Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 BogoMIPS (lpj=3333333)
+ pid_max: default: 32768 minimum: 301
+ Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
+ Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
+ CPU: Testing write buffer coherency: ok
+ CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
+ Setting up static identity map for 0x100000 - 0x100058
+ CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
+ Brought up 2 CPUs
+ SMP: Total of 2 processors activated (1333.33 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
+ 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 @ 0xf0880000
+ zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
+ vgaarb: loaded
+ SCSI subsystem initialized
+ usbcore: registered new interface driver usbfs
+ usbcore: registered new interface driver hub
+ usbcore: registered new device driver usb
+ 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
+ Advanced Linux Sound Architecture Driver Initialized.
+ clocksource: Switched to clocksource arm_global_timer
+ NET: Registered protocol family 2
+ TCP established hash table entries: 8192 (order: 3, 32768 bytes)
+ TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
+ TCP: Hash tables configured (established 8192 bind 8192)
+ UDP hash table entries: 512 (order: 2, 16384 bytes)
+ UDP-Lite hash table entries: 512 (order: 2, 16384 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.
+ Trying to unpack rootfs image as initramfs...
+ Freeing initrd memory: 5092K (c7b07000 - c8000000)
+ hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
+ futex hash table entries: 512 (order: 3, 32768 bytes)
+ workingset: timestamp_bits=28 max_order=18 bucket_order=0
+ jffs2: version 2.2. (NAND) (SUMMARY) c 2001-2006 Red Hat, Inc.
+ bounce: pool size: 64 pages
+ io scheduler noop registered
+ io scheduler deadline registered
+ io scheduler cfq registered (default)
+ 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
+ e0000000.serial: ttyPS0 at MMIO 0xe0000000 (irq = 146, base_baud = 6249999) is a xuartps
+ console [ttyPS0] enabled
+ bootconsole [earlycon0] disabled
+
+この感じ、そうとううまく行っているので、
+RAM ディスクも置いてみます。