ひでみのアイデア帳

くだらないことなんだけど、忘れないために・・・

Linux Kernel 4.8.0正式版をZYBOで動作させてみた。

Linux Kernelの4.8正式版がリリースされていたのでZYBO用にビルドした。

でもhttp://www.kernel.org/を見ると、Linux Kernel のstableは4.8.1となっていた。 まぁ、いいとして4.8.0正式版をビルドしてZYBOで動作させてみた。

そのログ。

U-Boot 2016.05-dirty (Sep 27 2016 - 23:21:11 +0900)

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 1B
*** 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 - ca:3a:e1:44:61:2b
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0
reading ZYBO_wrapper.bit
2083848 bytes read in 196 ms (10.1 MiB/s)
  design filename = "ZYBO_wrapper;UserID=0XFFFFFFFF;Version=2016.2"
  part number = "7z010clg400"
  date = "2016/10/06"
  time = "15:17:12"
  bytes in bitstream = 2083740
zynq_align_dma_buffer: Align buffer at 100006c to 1000000(swap 1)
reading zImage
3953048 bytes read in 355 ms (10.6 MiB/s)
reading zynq-zybo.dtb
8329 bytes read in 21 ms (386.7 KiB/s)
Kernel image @ 0x008000 [ 0x000000 - 0x3c5198 ]
## Flattened Device Tree blob at 00000100
   Booting using the fdt blob at 0x000100
   Loading Device Tree to 1eb18000, end 1eb1d088 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.8.0-xilinx-dirty (hidemi@saturn) (gcc version 5.6
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[    0.000000] OF: fdt:Machine model: Zynq ZYBO Development Board
[    0.000000] OF: reserved mem: OVERLAP DETECTED!
[    0.000000] multimedia@77000000 (0x77000000--0x7b000000) overlaps with frame)
[    0.000000] Reserved memory: created CMA memory pool at 0x1a800000, size 64 B
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id sharl
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 14 pages/cpu @dfbb3000 s25420 r8192 d23732 u5734
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pa8
[    0.000000] Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 ro
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 443780K/524288K available (6144K kernel code, 213K rwdat)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a35640   ( 214 kB)
[    0.000000]        .bss : 0xc0a35640 - 0xc0a6e218   ( 227 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] slcr mapped to e0800000
[    0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x0240
[    0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x0
[    0.000000] L2C-310 erratum 769419 enabled
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x46460001
[    0.000000] zynq_clock_init: clkc starts at e0800100
[    0.000000] Zynq clock init
[    0.000011] sched_clock: 64 bits at 325MHz, resolution 3ns, wraps every 4398s
[    0.000035] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycls
[    0.000065] Switching to timer-based delay loop, resolution 3ns
[    0.000161] clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, ms
[    0.000192] timer #0 at e0808000, irq=17
[    0.000541] Console: colour dummy device 80x30
[    0.000567] Calibrating delay loop (skipped), value calculated using timer f)
[    0.000583] pid_max: default: 32768 minimum: 301
[    0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000741] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001382] CPU: Testing write buffer coherency: ok
[    0.001591] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001652] Setting up static identity map for 0x100000 - 0x100058
[    0.110646] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.110746] Brought up 2 CPUs
[    0.110765] SMP: Total of 2 processors activated (1300.00 BogoMIPS).
[    0.110774] CPU: All CPU(s) started in SVC mode.
[    0.151120] devtmpfs: initialized
[    0.180541] VFP support v0.3: implementor 41 architecture 3 part 30 variant 4
[    0.180840] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[    0.210330] pinctrl core: initialized pinctrl subsystem
[    0.270578] NET: Registered protocol family 16
[    0.272410] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.310304] cpuidle: using governor ladder
[    0.340300] cpuidle: using governor menu
[    0.346556] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint.
[    0.346572] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.346729] zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
[    0.601013] vgaarb: loaded
[    0.640589] SCSI subsystem initialized
[    0.641166] usbcore: registered new interface driver usbfs
[    0.641258] usbcore: registered new interface driver hub
[    0.641364] usbcore: registered new device driver usb
[    0.641709] media: Linux media interface: v0.10
[    0.641789] Linux video capture interface: v2.00
[    0.641902] pps_core: LinuxPPS API ver. 1 registered
[    0.641915] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[    0.641998] PTP clock support registered
[    0.642160] EDAC MC: Ver: 3.0.0
[    0.642953] FPGA manager framework
[    0.643097] Advanced Linux Sound Architecture Driver Initialized.
[    0.644133] clocksource: Switched to clocksource arm_global_timer
[    0.854167] NET: Registered protocol family 2
[    0.934259] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.934323] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.934411] TCP: Hash tables configured (established 4096 bind 4096)
[    0.934463] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.934494] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.934656] NET: Registered protocol family 1
[    0.974162] RPC: Registered named UNIX socket transport module.
[    0.974176] RPC: Registered udp transport module.
[    0.974185] RPC: Registered tcp transport module.
[    0.974194] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.974735] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 countee
[    1.034983] futex hash table entries: 512 (order: 3, 32768 bytes)
[    1.035777] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.654204] ntfs: driver 2.1.32 [Flags: R/W].
[    1.734152] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.854761] io scheduler noop registered
[    1.854775] io scheduler deadline registered
[    1.854801] io scheduler cfq registered (default)
[    1.863525] aqfb: Alloc FrameBuffer(Phys,Logi) = 1a900000:da900000
[    1.863547] aqfb: framebuffer at 0x1a900000, 0x300000 bytes, mapped to 0xda90
[    1.863559] aqfb: format=a8r8g8b8, mode=1024x768x32, linelength=4096
[    1.882734] Console: switching to colour frame buffer device 128x48
[    1.901173] aqfb: Reg Start Address = 40000000
[    1.901184] aqfb: fb0: aqfb registered!
[    1.902720] dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
[    1.902740] dma-pl330 f8003000.dmac:         DBUFF-128x8bytes Num_Chans-8 Nu6
[    1.907823] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.908971] e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 143, base_bauds
[    2.587443] console [ttyPS0] enabled
[    2.591430] [drm] Initialized drm 1.1.0 20060810
[    2.597671] brd: module loaded
[    2.606996] loop: module loaded
[    2.612312] libphy: Fixed MDIO Bus: probed
[    2.617263] CAN device driver interface
[    2.621732] libphy: MACB_mii_bus: probed
[    2.794977] Generic PHY e000b000.etherne:00: attached PHY driver [Generic PH)
[    2.806239] macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe00)
[    2.816291] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    2.822035] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    2.829183] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.835662] ehci-pci: EHCI PCI platform driver
[    2.840227] usbcore: registered new interface driver usb-storage
[    2.847414] mousedev: PS/2 mouse device common for all mice
[    2.863402] i2c /dev entries driver
[    2.867463] cdns-i2c e0004000.i2c: 100 kHz mmio e0004000 irq 141
[    2.875058] Xilinx Zynq CpuIdle Driver started
[    2.879864] sdhci: Secure Digital Host Controller Interface driver
[    2.885991] sdhci: Copyright(c) Pierre Ossman
[    2.890304] Synopsys Designware Multimedia Card Interface Driver
[    2.896433] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.964210] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using A
[    2.976726] ledtrig-cpu: registered to indicate activity on CPUs
[    2.984420] usbcore: registered new interface driver usbhid
[    2.989906] usbhid: USB HID core driver
[    2.996379] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
[    3.003711] oprofile: using arm/armv7-ca9
[    3.033259] mmc0: new high speed SDHC card at address 59b4
[    3.039165] mmcblk0: mmc0:59b4 USD   3.73 GiB
[    3.044633]  mmcblk0: p1 p2 p3
[    3.154188] NET: Registered protocol family 10
[    3.194254] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.200938] NET: Registered protocol family 17
[    3.205355] can: controller area network core (rev 20120528 abi 9)
[    3.211517] NET: Registered protocol family 29
[    3.215921] can: raw protocol (rev 20120528)
[    3.220145] can: broadcast manager protocol (rev 20160617 t)
[    3.225812] can: netlink gateway (rev 20130117) max_hops=1
[    3.264156] 8021q: 802.1Q VLAN Support v1.8
[    3.268503] ThumbEE CPU extension supported.
[    3.272692] Registering SWP/SWPB emulation handler
[    3.278540] hctosys: unable to open rtc device (rtc0)
[    3.283797] ALSA device list:
[    3.286703]   No soundcards found.
[    3.291378] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incoms
[    3.435629] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running ed
[    3.484957] EXT4-fs (mmcblk0p2): recovery complete
[    3.495078] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. )
[    3.503122] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    3.511366] devtmpfs: mounted
[    3.515651] Freeing unused kernel memory: 1024K (c0900000 - c0a00000)
[    3.527662] random: fast init done
[    3.716781] systemd[1]: System time before build time, advancing clock.
[    3.727753] systemd[1]: Failed to insert module 'autofs4': No such file or dy
[    3.784908] systemd[1]: systemd 229 running in system mode. (-PAM -AUDIT -SE)
[    3.803360] systemd[1]: Detected architecture arm.

Welcome to Poky (Yocto Project Reference Distro) 2.1.1 (krogoth)!

[    3.844947] systemd[1]: Set hostname to <xiltera>.
[    6.603604] mmcblk0: error -110 transferring data, sector 7821056, nr 8, cmd0
[    6.939721] systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
[    6.974521] systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[    7.014630] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    7.044618] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    7.076833] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[    7.104319] systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
[    7.134425] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
         Starting Apply Kernel Variables...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Remount Root and Kernel File Systems...
[    7.392767] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
         Starting Setup Virtual Console...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
         Mounting Configuration File System...
         Starting Journal Service...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
         Mounting Temporary Directory...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted Temporary Directory.
[  OK  ] Started Journal Service.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Setup Virtual Console.
         Starting udev Coldplug all Devices...
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Create Static Device Nodes in /dev.
[    8.346596] systemd-journald[702]: Received request to flush runtime journal1
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
         Starting Load/Save Random Seed...
[  OK  ] Found device /dev/ttyPS0.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started Load/Save Random Seed.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Listening on dropbear.socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Kernel Logging Service.
[  OK  ] Started Getty on tty1.
[  OK  ] Started D-Bus System Message Bus.
         Starting Connection service...
[  OK  ] Started Serial Getty on ttyPS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started System Logging Service.
         Starting Telephony service...
         Starting Avahi mDNS/DNS-SD Stack...
         Starting Login Service...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Connection service.
[  OK  ] Started Telephony service.
[  OK  ] Reached target Network.
[  OK  ] Started Login Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Reached target Multi-User System.
         Starting Update UTMP about System Runlevel Changes...
[   10.530526] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started Update UTMP about System Runlevel Changes.
         Starting Hostname Service...
         Starting WPA supplicant...
[  OK  ] Started Hostname Service.
[  OK  ] Started WPA supplicant.

Poky (Yocto Project Reference Distro) 2.1.1 xiltera ttyPS0

xiltera login: root
root@xiltera:~# uname -a
Linux xiltera 4.8.0-xilinx-dirty #2 SMP PREEMPT Sun Oct 9 00:08:04 JST 2016 armx

早くu-bootを2016.10か2016.11辺りにして、全て最新版で突き進みたいなぁ。