On 6/5/19 11:16 PM, Bruce Ashfield wrote:
On Wed, Jun 5, 2019 at 4:08 AM Zumeng Chen <zc...@windriver.com> wrote:
Hi Bruce,

Forget this party :)


xilinx-zynqmp is arm64 BSP with cortexA53, and it seems stable in mainline
to build and boot, so I add it into linux-yocto-dev and yocto-kernel-cache.
This email is just about scc/cfg, no extra kernel patches is involved. So
I leave it to you for linux-yocto-dev. Anyway, here is just a reminder:
Hi Zumeng,

This looks great! I'll have a closer look at the fragments later
today, but wanted
to follow up to let you know that I've received it.

    $ pwd
      layers/wrlinux/git/linux-yocto-dev
    $ git checkout -b standard/xilinx-zynqmp origin/standard/base
    $ git branch
        master
      * standard/xilinx-zynqmp

This patch is safe for both master and yocto-5.0 branch in
yocto-kernel-cache git repo.
Excellent!

Do you have some bootlogs to share for the 5.0 and -dev boot ? I'd
like to include
them with the fragments.


Yes, absolutely, here it is:


ZynqMP> setenv bootargs console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlycon=cdns,mmio,0xFF000000 clk_ignore_unused ip=dhcp

ZynqMP> setenv ipaddr xxxx; setenv serverip xxxxx
ZynqMP> tftpboot 0x10000000 Image; tftpboot 0x11800000 dtb; booti 0x10000000 - 0x11800000
Using ethernet@ff0e0000 device
TFTP from server 128.224.162.211; our IP address is 128.224.162.99
Filename 'Image'.
Load address: 0x10000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
         #########
         11.7 MiB/s
done
Bytes transferred = 16347648 (f97200 hex)
Using ethernet@ff0e0000 device
TFTP from server 128.224.162.211; our IP address is 128.224.162.99
Filename 'dtb'.
Load address: 0x11800000
Loading: ##
         4.7 MiB/s
done
Bytes transferred = 19746 (4d22 hex)
## Flattened Device Tree blob at 11800000
   Booting using the fdt blob at 0x11800000
   Loading Device Tree to 0000000007ff8000, end 0000000007fffd21 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0000000000 [0x410fd034]
Linux version 5.2.0-rc3-yoctodev-standard (oe-user@oe-host) (gcc version 9.1.0 (GCC)) #1 SMP PREEMPT Wed Jun 5 06:18:52 UTC 2019
Machine model: ZynqMP ZCU102 Rev1.0
earlycon: cdns0 at MMIO 0x00000000ff000000 (options '')
printk: bootconsole [cdns0] enabled
efi: Getting EFI parameters from FDT:
efi: UEFI not found.
cma: Reserved 256 MiB at 0x000000006fc00000
psci: probing for conduit method from DT.
psci: PSCIv1.1 detected in firmware.
psci: Using standard PSCI v0.2 function IDs
psci: MIGRATE_INFO_TYPE not supported.
psci: SMC Calling Convention v1.1
percpu: Embedded 30 pages/cpu s83224 r8192 d31464 u122880
Detected VIPT I-cache on CPU0
CPU features: detected: ARM erratum 845719
Speculative Store Bypass Disable mitigation not required
Built 1 zonelists, mobility grouping on.  Total pages: 1031940
Kernel command line: console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlycon=cdns,mmio,0xFF000000 clk_ignore_unused ip=dhcp
Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
software IO TLB: mapped [mem 0x6bc00000-0x6fc00000] (64MB)
Memory: 3768204K/4193280K available (10748K kernel code, 1180K rwdata, 2764K rodata, 1216K init, 394K bss, 162932K reserved, 262144K cma-reserved)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
ftrace: allocating 36242 entries in 142 pages
rcu: Preemptible hierarchical RCU implementation.
rcu:    RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
        Tasks RCU enabled.
rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
GIC: Adjusting CPU interface base to 0x00000000f902f000
GIC: Using split EOI/Deactivate mode
random: get_random_bytes called from start_kernel+0x324/0x4bc with crng_init=0
arch_timer: cp15 timer(s) running at 99.99MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x170f8de2d3, max_idle_ns: 440795206112 ns
sched_clock: 56 bits at 99MHz, resolution 10ns, wraps every 4398046511101ns
Console: colour dummy device 80x25
Calibrating delay loop (skipped), value calculated using timer frequency.. 199.98 BogoMIPS (lpj=399960)
pid_max: default: 32768 minimum: 301
LSM: Security Framework initializing
Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
*** VALIDATE proc ***
*** VALIDATE cgroup1 ***
*** VALIDATE cgroup2 ***
ASID allocator initialised with 32768 entries
rcu: Hierarchical SRCU implementation.
EFI services will not be available.
smp: Bringing up secondary CPUs ...
Detected VIPT I-cache on CPU1
CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
Detected VIPT I-cache on CPU2
CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
Detected VIPT I-cache on CPU3
CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
smp: Brought up 1 node, 4 CPUs
SMP: Total of 4 processors activated.
CPU features: detected: 32-bit EL0 Support
CPU features: detected: CRC32 instructions
CPU: All CPU(s) started at EL2
alternatives: patching kernel code
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
futex hash table entries: 1024 (order: 4, 65536 bytes)
xor: measuring software checksum speed
   8regs     :  2361.000 MB/sec
   32regs    :  2706.000 MB/sec
   arm64_neon:  2238.000 MB/sec
xor: using function: 32regs (2706.000 MB/sec)
DMI not present or invalid.
NET: Registered protocol family 16
cpuidle: using governor ladder
hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
DMA: preallocated 256 KiB pool for atomic allocations
console [ttyPS0] enabled 0xff000000 (irq = 33, base_baud = 6250000) is a xuartps
printk: console [ttyPS0] enabled
printk: bootconsole [cdns0] disabled
printk: bootconsole [cdns0] disabled
ff010000.serial: ttyPS1 at MMIO 0xff010000 (irq = 34, base_baud = 6250000) is a xuartps
HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
raid6: neonx8   gen()  1545 MB/s
raid6: neonx8   xor()  1458 MB/s
raid6: neonx4   gen()  1482 MB/s
raid6: neonx4   xor()  1424 MB/s
raid6: neonx2   gen()  1132 MB/s
raid6: neonx2   xor()  1186 MB/s
raid6: neonx1   gen()   739 MB/s
raid6: neonx1   xor()   892 MB/s
raid6: int64x8  gen()  1165 MB/s
raid6: int64x8  xor()   763 MB/s
raid6: int64x4  gen()   983 MB/s
raid6: int64x4  xor()   739 MB/s
raid6: int64x2  gen()   683 MB/s
raid6: int64x2  xor()   603 MB/s
raid6: int64x1  gen()   452 MB/s
raid6: int64x1  xor()   461 MB/s
raid6: using algorithm neonx8 gen() 1545 MB/s
raid6: .... xor() 1458 MB/s, rmw enabled
raid6: using neon recovery algorithm
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
videodev: 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 <giome...@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
clocksource: Switched to clocksource arch_sys_counter
*** VALIDATE hugetlbfs ***
NET: Registered protocol family 2
tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes)
TCP established hash table entries: 32768 (order: 6, 262144 bytes)
TCP bind hash table entries: 32768 (order: 7, 524288 bytes)
TCP: Hash tables configured (established 32768 bind 32768)
UDP hash table entries: 2048 (order: 4, 65536 bytes)
UDP-Lite hash table entries: 2048 (order: 4, 65536 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.
PCI: CLS 0 bytes, default 64
hw perfevents: no interrupt-affinity property for /pmu, guessing.
hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
kprobes: failed to populate blacklist: -22
Please take care of using kprobes.
workingset: timestamp_bits=46 max_order=20 bucket_order=0
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. �© 2001-2006 Red Hat, Inc.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
io scheduler mq-deadline registered
io scheduler kyber registered
nwl-pcie fd0e0000.pcie: Link is DOWN
nwl-pcie fd0e0000.pcie: host bridge /amba/pcie@fd0e0000 ranges:
nwl-pcie fd0e0000.pcie:   MEM 0xe0000000..0xefffffff -> 0xe0000000
nwl-pcie fd0e0000.pcie:   MEM 0x600000000..0x7ffffffff -> 0x600000000
nwl-pcie fd0e0000.pcie: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [bus 00-ff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
pci_bus 0000:00: root bus resource [mem 0x600000000-0x7ffffffff pref]
pci 0000:00:00.0: [10ee:d021] type 01 class 0x060400
pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
pci 0000:00:00.0: PCI bridge to [bus 01-0c]
pcieport 0000:00:00.0: PME: Signaling with IRQ 37
xilinx-zynqmp-dma fd500000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd510000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd520000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd530000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd540000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd550000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd560000.dma: ZynqMP DMA driver Probe success
xilinx-zynqmp-dma fd570000.dma: ZynqMP DMA driver Probe success
cacheinfo: Unable to detect cache hierarchy for CPU 0
brd: module loaded
loop: module loaded
ahci-ceva fd0c0000.ahci: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl platform mode ahci-ceva fd0c0000.ahci: flags: 64bit ncq sntf pm clo only pmp fbs pio slum part ccc sds apst
scsi host0: ahci-ceva
scsi host1: ahci-ceva
ata1: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x100 irq 31
ata2: SATA max UDMA/133 mmio [mem 0xfd0c0000-0xfd0c1fff] port 0x180 irq 31
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
Generic PHY ff0e0000.ethernet-ffffffff:0c: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ff0e0000.ethernet-ffffffff:0c, irq=POLL) macb ff0e0000.ethernet eth0: Cadence GEM rev 0x50070106 at 0xff0e0000 irq 20 (00:0a:35:04:9a:86)
dwc3 fe200000.usb: Failed to get clk 'ref': -2
usbcore: registered new interface driver usb-storage
rtc_zynqmp ffa60000.rtc: registered as rtc0
pca953x 0-0020: 0-0020 supply vcc not found, using dummy regulator
GPIO line 322 (sel0) hogged as output/low
GPIO line 323 (sel1) hogged as output/high
GPIO line 324 (sel2) hogged as output/high
GPIO line 325 (sel3) hogged as output/high
pca953x 0-0021: 0-0021 supply vcc not found, using dummy regulator
cdns-i2c ff020000.i2c: 400 kHz mmio ff020000 irq 22
cdns-i2c ff030000.i2c: 400 kHz mmio ff030000 irq 23
i2c i2c-0: Added multiplexed i2c bus 2
i2c i2c-0: Added multiplexed i2c bus 3
i2c i2c-0: Added multiplexed i2c bus 4
i2c i2c-0: Added multiplexed i2c bus 5
pca954x 0-0075: registered 4 multiplexed busses for I2C mux pca9544
at24 6-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
i2c i2c-1: Added multiplexed i2c bus 6
i2c i2c-7: of_i2c: modalias failure on /amba/i2c@ff030000/i2c-mux@74/i2c@1/clock-generator@36 i2c i2c-7: Failed to create I2C device for /amba/i2c@ff030000/i2c-mux@74/i2c@1/clock-generator@36
i2c i2c-1: Added multiplexed i2c bus 7
si570 8-005d: registered, current frequency 300000000 Hz
i2c i2c-1: Added multiplexed i2c bus 8
si570 9-005d: clock registration failed
si570: probe of 9-005d failed with error -17
i2c i2c-1: Added multiplexed i2c bus 9
i2c i2c-10: of_i2c: modalias failure on /amba/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69 i2c i2c-10: Failed to create I2C device for /amba/i2c@ff030000/i2c-mux@74/i2c@4/clock-generator@69
i2c i2c-1: Added multiplexed i2c bus 10
i2c i2c-1: Added multiplexed i2c bus 11
i2c i2c-1: Added multiplexed i2c bus 12
i2c i2c-1: Added multiplexed i2c bus 13
pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
i2c i2c-1: Added multiplexed i2c bus 14
i2c i2c-1: Added multiplexed i2c bus 15
i2c i2c-1: Added multiplexed i2c bus 16
i2c i2c-1: Added multiplexed i2c bus 17
i2c i2c-1: Added multiplexed i2c bus 18
i2c i2c-1: Added multiplexed i2c bus 19
i2c i2c-1: Added multiplexed i2c bus 20
i2c i2c-1: Added multiplexed i2c bus 21
pca954x 1-0075: registered 8 multiplexed busses for I2C switch pca9548
ina2xx 2-0040: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0041: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0042: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0043: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0044: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0045: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0046: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-0047: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-004a: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 2-004b: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 3-0040: power monitor ina226 (Rshunt = 2000 uOhm)
ina2xx 3-0041: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 3-0042: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 3-0043: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 3-0044: power monitor ina226 (Rshunt = 5000 uOhm)
ina2xx 3-0045: power monitor ina226 (Rshunt = 5000 uOhm)
ata1: SATA link down (SStatus 0 SControl 330)
ina2xx 3-0046: power monitor ina226 (Rshunt = 5000 uOhm)
ata2: SATA link down (SStatus 0 SControl 330)
ina2xx 3-0047: power monitor ina226 (Rshunt = 5000 uOhm)
cdns-wdt fd4d0000.watchdog: Xilinx Watchdog Timer at (____ptrval____) with timeout 10s device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-de...@redhat.com
EDAC MC: ECC not enabled
cpu cpu0: failed to get clock: -2
cpufreq-dt: probe of cpufreq-dt failed with error -2
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on ff170000.mmc [ff170000.mmc] using ADMA 64-bit
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
u32 classifier
    Actions configured
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
Key type dns_resolver registered
registered taskstats version 1
Btrfs loaded, crc32c=crc32c-generic
Key type encrypted registered
printk: console [netcon0] enabled
netconsole: network logging started
rtc_zynqmp ffa60000.rtc: setting system clock to 2019-06-05T06:48:00 UTC (1559717280)
macb ff0e0000.ethernet eth0: link up (1000/Full)
pps pps0: new PPS source ptp0
macb ff0e0000.ethernet: gem-ptp-timer ptp clock registered.
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
mmc0: Problem switching card into high-speed mode!
mmc0: new SDHC card at address 0001
Sending DHCP requests .
mmcblk0: mmc0:0001 SD16G 14.5 GiB
,
 mmcblk0: p1 p2 p3
 OK
IP-Config: Got DHCP answer from 128.224.162.1, my address is 128.224.162.216
IP-Config: Complete:
     device=eth0, hwaddr=00:0a:35:04:9a:86, ipaddr=128.224.162.216, mask=255.255.254.0, gw=128.224.162.1
     host=128.224.162.216, domain=corp.ad.wrs.com, nis-domain=swamp
     bootserver=0.0.0.0, rootserver=0.0.0.0, rootpath=
     nameserver0=128.224.160.11, nameserver1=128.224.160.12, nameserver2=147.11.57.128      ntpserver0=147.11.100.50, ntpserver1=147.11.1.11, ntpserver2=147.11.49.4
clk: Not disabling unused clocks
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
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: 1216K
Run /sbin/init as init process
random: fast init done
systemd[1]: systemd 239 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default)
systemd[1]: Detected architecture arm64.

Welcome to Wind River Linux LTS 18.44 Update 7!

systemd[1]: Set hostname to <xilinx-zynqmp>.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Listening on Network Service Netlink Socket.
[  OK  ] Listening on Network Service Netlink Socket.
random: systemd: uninitialized urandom read (16 bytes read)
systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Swap.
         Mounting Temporary Directory (/tmp)...
         Mounting Kernel Debug File System...
[  OK  ] Listening on udev Kernel Socket.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Listening on initctl Compatibility Named PipeEXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
.
         Mounting POSIX Message Queue File System...
         Starting udev Coldplug all Devices...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Starting Journal Service...
[  OK  ] Reached target Slices.
         Starting Load Kernel Modules...
         Mounting Huge Pages File System...
[  OK  ] Mounted Temporary Directory (/tmp).
[  OK  ] Mounted Kernel Debug File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Mounted POSIX Message Queue File System.
[FAILED] Failed to start Load Kernel Modules.
See 'systemctl status systemd-modules-load.service' for details.
[  OK  ] Mounted Huge Pages File System.
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Apply Kernel Variables.
systemd-journald[152]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Containers.
         Mounting /var/volatile...
         Starting udev Kernel Device Manager...
[  OK  ] Mounted /var/volatile.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Network Time Synchronization...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Kernel Device Manager.
         Starting Network Service...
[  OK  ] Found device /dev/ttyPS0.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Network Service.
         Starting Network Name Resolution...
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Reached target System Initialization.
         Starting sshd.socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on RPCbind Server Activation Socket.
         Starting Reboot and dump vmcore via kexec...
[  OK  ] Listening on D-Bus System Message Bus Socket.
         Starting Console System Startup Logging...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Daily rotation of log files.
[  OK  ] Reached target Timers.
[  OK  ] Started Network Name Resolution.
[  OK  ] Listening on sshd.socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Rotate log files...
         Starting RPC Bind Service...
         Starting Login Service...
[  OK  ] Started D-Bus System Message Bus.
[  OK  ] Started Periodic Command Scheduler.
         Starting Telephony service...
         Starting System Logging Service...
[  OK  ] Started irqbalance daemon.
[  OK  ] Started Xserver startup without a display manager.
[  OK  ] Started Dynamic Host Configuration Protocol (DHCP).
[  OK  ] Started Job spooling tools.
[  OK  ] Reached target Network.
         Starting Permit User Sessions...
         Starting Berkeley Internet Name Domain (DNS)...
         Starting Target Communication Framework agent...
         Starting /etc/rc.local Compatibility...
         Starting Postfix Mail Transport Agent...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Reboot and dump vmcore via kexec.
[  OK  ] Started Console System Startup Logging.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Login Service.
[  OK  ] Started System Logging Service.
[  OK  ] Started Rotate log files.
[  OK  ] Started RPC Bind Service.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Telephony service.
[  OK  ] Started Serial Getty on ttyPS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Target Communication Framework agent.
[  OK  ] Started Berkeley Internet Name Domain (DNS).
[  OK  ] Reached target Host and Network Name Lookups.
[  OK  ] Started NFS status monitor for NFSv2/3 locking..
[  OK  ] Started Postfix Mail Transport Agent.

Wind River Linux LTS 18.44 Update 7 xilinx-zynqmp ttyPS0

xilinx-zynqmp login: root
root@xilinx-zynqmp:~# lsmod
Module                  Size  Used by
root@xilinx-zynqmp:~# halt
         Stopping Reboot and dump vmcore via kexec...
                  Stopping User Manager for UID 0...
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Closed Load/Save RF Kill Switch Status /dev/rfkill Watch.
         Stopping irqbalance daemon...
         Stopping D-Bus System Message Bus...
         Stopping Telephony service...
         Stopping Target Communication Framework agent...
         Stopping Periodic Command Scheduler...
         Stopping Getty on tty1...
         Stopping NFS status monitor for NFSv2/3 locking....
[  OK  ] Stopped Daily rotation of log files.
[  OK  ] Stopped target System Time Synchronized.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Periodic Command Scheduler.
[  OK  ] Stopped Telephony service.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped irqbalance daemon.
[  OK  ] Stopped Job spooling tools.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped Target Communication Framework agent.
[  OK  ] Stopped Serial Getty on ttyPS0.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped NFS status monitor for NFSv2/3 locking..
[  OK  ] Stopped User Manager for UID 0.
[  OK  ] Stopped Xserver startup without a display manager.
[  OK  ] Stopped Reboot and dump vmcore via kexec.
[  OK  ] Stopped Postfix Mail Transport Agent.
[  OK  ] Stopped Session c1 of user root.
         Stopping Login Service...
[  OK  ] Removed slice User Slice of UID 0.
         Stopping /run/user/0 mount wrapper...
         Stopping RPC Bind Service...
[  OK  ] Stopped target Host and Network Name Lookups.
         Stopping Berkeley Internet Name Domain (DNS)...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
         Stopping Permit User Sessions...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Unmounted /run/user/0.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped RPC Bind Service.
[  OK  ] Stopped /run/user/0 mount wrapper.
[  OK  ] Stopped Berkeley Internet Name Domain (DNS).
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Network.
         Stopping Network Name Resolution...
         Stopping Dynamic Host Configuration Protocol (DHCP)...
[  OK  ] Removed slice system-user\x2druntime\x2ddir.slice.
[  OK  ] Stopped Network Name Resolution.
[  OK  ] Stopped Dynamic Host Configuration Protocol (DHCP).
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Closed sshd.socket.
[  OK  ] Closed RPCbind Server Activation Socket.
[  OK  ] Closed Syslog Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped target System Initialization.
         Starting Console System Shutdown Logging...
         Stopping Update UTMP about System Boot/Shutdown...
         Stopping Load/Save Random Seed...
         Stopping Network Time Synchronization...
         Stopping Network Service...
[  OK  ] Stopped Network Time Synchronization.
[  OK  ] Stopped Network Service.
[  OK  ] Started Console System Shutdown Logging.
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
[  OK  ] Stopped target Local File Systems.
         Unmounting /var/volatile...
         Unmounting Temporary Directory (/tmp)...
[  OK  ] Unmounted /var/volatile.
[  OK  ] Unmounted Temporary Directory (/tmp).
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Stopped target Swap.
[  OK  ] Reached target Shutdown.
[  OK  ] Reached target Final Step.
         Starting Halt...
printk: systemd-shutdow: 20 output lines suppressed due to ratelimiting
systemd-shutdown[1]: Syncing filesystems and block devices.
systemd-shutdown[1]: Sending SIGTERM to remaining processes...
systemd-journald[152]: Received SIGTERM from PID 1 (systemd-shutdow).
systemd-shutdown[1]: Sending SIGKILL to remaining processes...
systemd-shutdown[1]: Unmounting file systems.
[404]: Remounting '/' read-only in with options '(null)'.
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
systemd-shutdown[1]: All filesystems unmounted.
systemd-shutdown[1]: Deactivating swaps.
systemd-shutdown[1]: All swaps deactivated.
systemd-shutdown[1]: Detaching loop devices.
systemd-shutdown[1]: All loop devices detached.
systemd-shutdown[1]: Detaching DM devices.
reboot: System halted

CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7.1 | VT102 | Offline | ttyUSB1
[zchen@pek-zchen-d2 ~]$
[zchen@pek-zchen-d2 ~]$
[zchen@pek-zchen-d2 ~]$


bitbake core-image-minimal core-image-base core-image-sato with
--template=feature/linux-yocto-dev
all passed. and boot as well.

If you need me to add the bsp template into meta-yocto-bsp since there is no
real arm64 BSP there, just tell me, it's easy and really fast.
This would be a good idea as well. Let me think on it a bit longer and I can
follow up once I have the fragments merged and hopefully some boot
tests completed.


OK, thanks Bruce.


Cheers,

Zumeng


Bruce

Cheers,
Zumeng

On 6/5/19 3:57 PM, Zumeng Chen wrote:
This patch is to add scc/cfg meta to build and boot zcu102 board with the bsp
of xilinx-zynqmp.

Signed-off-by: Zumeng.Chen <zumeng.c...@windriver.com>
---
   bsp/xilinx-zynqmp/xilinx-zynqmp-standard.scc |   8 +
   bsp/xilinx-zynqmp/xilinx-zynqmp.cfg          | 227 
+++++++++++++++++++++++++++
   bsp/xilinx-zynqmp/xilinx-zynqmp.scc          |   7 +
   3 files changed, 242 insertions(+)
   create mode 100644 bsp/xilinx-zynqmp/xilinx-zynqmp-standard.scc
   create mode 100644 bsp/xilinx-zynqmp/xilinx-zynqmp.cfg
   create mode 100644 bsp/xilinx-zynqmp/xilinx-zynqmp.scc

diff --git a/bsp/xilinx-zynqmp/xilinx-zynqmp-standard.scc 
b/bsp/xilinx-zynqmp/xilinx-zynqmp-standard.scc
new file mode 100644
index 0000000..23dd874
--- /dev/null
+++ b/bsp/xilinx-zynqmp/xilinx-zynqmp-standard.scc
@@ -0,0 +1,8 @@
+define KMACHINE xilinx-zynqmp
+define KTYPE standard
+define KARCH arm64
+
+include ktypes/standard/standard.scc
+branch xilinx-zynqmp
+
+include xilinx-zynqmp.scc
diff --git a/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg 
b/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg
new file mode 100644
index 0000000..e292366
--- /dev/null
+++ b/bsp/xilinx-zynqmp/xilinx-zynqmp.cfg
@@ -0,0 +1,227 @@
+#.........................................................................
+#                                WARNING
+#
+# This file is a kernel configuration fragment, and not a full kernel
+# configuration file.  The final kernel configuration is made up of
+# an assembly of processed fragments, each of which is designed to
+# capture a specific part of the final configuration (e.g. platform
+# configuration, feature configuration, and board specific hardware
+# configuration).  For more information on kernel configuration, please
+# consult the product documentation.
+#
+#.........................................................................
+
+
+CONFIG_ARM64=y
+CONFIG_ARCH_ZYNQMP=y
+CONFIG_ARM64_4K_PAGES=y
+CONFIG_SMP=y
+CONFIG_NR_CPUS=8
+CONFIG_HOTPLUG_CPU=y
+
+CONFIG_PCI=y
+CONFIG_PCI_MSI=y
+CONFIG_PCI_MSI_IRQ_DOMAIN=y
+CONFIG_PCIE_XILINX_NWL=y
+CONFIG_PCIEPORTBUS=y
+CONFIG_PCIE_XDMA_PL=y
+
+#CPU ilde and freq
+CONFIG_CPU_IDLE=y
+CONFIG_ARM_CPUIDLE=y
+CONFIG_CPU_FREQ=y
+CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
+CONFIG_CPU_FREQ_GOV_USERSPACE=y
+CONFIG_CPUFREQ_DT=y
+CONFIG_CPUFREQ_DT_PLATDEV=y
+
+# CAN Device Drivers
+#
+CONFIG_CAN=y
+CONFIG_CAN_DEV=y
+CONFIG_CAN_XILINXCAN=y
+
+CONFIG_MTD=y
+CONFIG_MTD_OF_PARTS=y
+CONFIG_MTD_BLKDEVS=y
+CONFIG_MTD_BLOCK=y
+CONFIG_MTD_M25P80=y
+CONFIG_MTD_SPI_NOR=y
+# CONFIG_JFFS2_FS_WRITEBUFFER is not set
+# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
+
+CONFIG_BLK_DEV_SD=y
+CONFIG_ATA=y
+CONFIG_SATA_AHCI=y
+CONFIG_AHCI_CEVA=y
+CONFIG_NETDEVICES=y
+
+CONFIG_OF=y
+CONFIG_OF_MDIO=y
+CONFIG_ETHERNET=y
+CONFIG_NET_CADENCE=y
+CONFIG_MACB=y
+CONFIG_MACB_EXT_BD=y
+
+CONFIG_PHYLIB=y
+CONFIG_XILINX_PHY=y
+
+CONFIG_PHY_XILINX_ZYNQMP=y
+CONFIG_FIXED_PHY=y
+CONFIG_DEVMEM=y
+
+CONFIG_SERIAL_EARLYCON=y
+CONFIG_SERIAL_CORE=y
+CONFIG_SERIAL_CORE_CONSOLE=y
+CONFIG_SERIAL_XILINX_PS_UART=y
+CONFIG_SERIAL_XILINX_PS_UART_CONSOLE=y
+#
+CONFIG_I2C=y
+CONFIG_I2C_MUX=y
+CONFIG_I2C_MUX_PCA954x=y
+CONFIG_I2C_MUX_REG
+CONFIG_I2C_CADENCE=y
+CONFIG_I2C_XILINX=y
+CONFIG_EEPROM_AT24=y
+
+
+CONFIG_SPI=y
+CONFIG_SPI_MASTER=y
+CONFIG_SPI_CADENCE=y
+CONFIG_SPI_XILINX=y
+CONFIG_SPI_ZYNQMP_GQSPI=y
+
+CONFIG_GPIOLIB=y
+CONFIG_GPIO_DEVRES=y
+CONFIG_OF_GPIO=y
+CONFIG_GPIO_SYSFS=y
+CONFIG_GPIO_XILINX=y
+CONFIG_GPIO_PCA953X=y
+CONFIG_GPIO_PCA953X_IRQ=y
+CONFIG_GPIO_ZYNQ=y
+
+CONFIG_POWER_RESET=y
+CONFIG_SENSORS_INA2XX=y
+CONFIG_WATCHDOG=y
+CONFIG_CADENCE_WATCHDOG=y
+CONFIG_XILINX_WATCHDOG=y
+
+CONFIG_USB=y
+CONFIG_USB_XHCI_HCD=y
+CONFIG_USB_DWC3=y
+CONFIG_USB_DWC3_OF_SIMPLE=y
+CONFIG_USB_OTG=y
+CONFIG_USB_OTG_FSM=m
+CONFIG_USB_GADGET=y
+CONFIG_USB_GADGET_XILINX=y
+CONFIG_USB_ETH=m
+CONFIG_USB_MASS_STORAGE=m
+
+CONFIG_MMC=y
+CONFIG_MMC_BLOCK=y
+CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_PLTFM=y
+CONFIG_MMC_SDHCI_OF_ARASAN=y
+
+CONFIG_EDAC=y
+CONFIG_EDAC_MM_EDAC=y
+CONFIG_EDAC_SYNOPSYS=y
+CONFIG_EDAC_ZYNQMP_OCM=y
+
+CONFIG_RTC_CLASS=y
+CONFIG_RTC_HCTOSYS=y
+CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
+CONFIG_RTC_INTF_SYSFS=y
+CONFIG_RTC_DRV_ZYNQMP=y
+
+CONFIG_DMADEVICES=y
+CONFIG_DMA_ENGINE=y
+CONFIG_DMA_OF=y
+CONFIG_CMA=y
+CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=256
+
+CONFIG_XILINX_AXIDMA=y
+CONFIG_XILINX_AXICDMA=y
+CONFIG_XILINX_ZYNQMP_DMA=y
+CONFIG_XILINX_DMA=y
+
+CONFIG_UIO=y
+CONFIG_UIO_XILINX_APM=y
+CONFIG_VIRTIO=y
+CONFIG_COMMON_CLK=y
+CONFIG_COMMON_CLK_SI570=y
+CONFIG_COMMON_CLK_ZYNQMP=y
+CONFIG_CLKSRC_OF=y
+CONFIG_IOMMU_API=y
+CONFIG_IOMMU_SUPPORT=y
+CONFIG_OF_IOMMU=y
+CONFIG_ARM_SMMU=y
+CONFIG_ARM_SMMU_V3=y
+#
+CONFIG_REMOTEPROC=m
+CONFIG_ZYNQMP_R5_REMOTEPROC=m
+
+CONFIG_STAGING=y
+CONFIG_SOC_XILINX_ZYNQMP=y
+CONFIG_ZYNQMP_PM_DOMAINS=y
+CONFIG_PM_GENERIC_DOMAINS=y
+CONFIG_ZYNQMP_PM_API=y
+CONFIG_IRQCHIP=y
+CONFIG_ARM_GIC=y
+CONFIG_ARM_GIC_V3=y
+CONFIG_ARM_GIC_V3_ITS=y
+
+CONFIG_IIO=y
+CONFIG_XILINX_AMS=y
+CONFIG_XILINX_FCLK=y
+
+CONFIG_FPGA=y
+CONFIG_FPGA_MGR_ZYNQMP_FPGA=y
+CONFIG_NVMEM_ZYNQMP=y
+CONFIG_FPGA_REGION=y
+CONFIG_FPGA_BRIDGE=y
+
+CONFIG_RESET_CONTROLLER=y
+CONFIG_ZYNQMP_RESET_CONTROLLER=y
+
+CONFIG_REGULATOR=y
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+CONFIG_REGULATOR_GPIO=y
+
+
+CONFIG_FB=y
+CONFIG_FB_XILINX=y
+CONFIG_MEDIA_SUPPORT=y
+CONFIG_MEDIA_CONTROLLER=y
+CONFIG_MEDIA_CAMERA_SUPPORT=y
+CONFIG_VIDEO_DEV=y
+CONFIG_VIDEO_V4L2_SUBDEV_API=y
+CONFIG_VIDEO_V4L2=y
+CONFIG_V4L_PLATFORM_DRIVERS=y
+CONFIG_VIDEO_XILINX=y
+CONFIG_VIDEO_XILINX_CFA=y
+CONFIG_VIDEO_XILINX_CRESAMPLE=y
+CONFIG_VIDEO_XILINX_HLS=y
+CONFIG_VIDEO_XILINX_REMAPPER=y
+CONFIG_VIDEO_XILINX_RGB2YUV=y
+CONFIG_VIDEO_XILINX_SCALER=y
+CONFIG_VIDEO_XILINX_SWITCH=y
+CONFIG_VIDEO_XILINX_TPG=y
+CONFIG_VIDEO_XILINX_VTC=y
+
+CONFIG_DRM=y
+CONFIG_DRM_KMS_HELPER=y
+CONFIG_DRM_KMS_FB_HELPER=y
+CONFIG_DRM_FBDEV_EMULATION=y
+CONFIG_DRM_BRIDGE=y
+CONFIG_DRM_XILINX=y
+CONFIG_HDMI=y
+CONFIG_XILINX_FRMBUF=y
+CONFIG_XILINX_DPDMA=y
+CONFIG_XILINX_DMA_ENGINES=y
+
+CONFIG_FW_LOADER=y
+
+CONFIG_TIGON3=m
+CONFIG_E1000E=m
diff --git a/bsp/xilinx-zynqmp/xilinx-zynqmp.scc 
b/bsp/xilinx-zynqmp/xilinx-zynqmp.scc
new file mode 100644
index 0000000..81696c2
--- /dev/null
+++ b/bsp/xilinx-zynqmp/xilinx-zynqmp.scc
@@ -0,0 +1,7 @@
+include cfg/usb-mass-storage.scc
+include cfg/fs/flash_fs.cfg
+include features/hugetlb/hugetlb.scc
+# enable the ability to run 32 bit apps
+include arch/arm/32bit-compat.scc
+
+kconf hardware xilinx-zynqmp.cfg


--
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to