QEMU - Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QEMU - Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

15,531 Views
hosytan
Contributor III

I build T4240rdb-64b with QorIQ-SDK-V2.0-20160527-yocto on Ubuntu Linux 16. LTS 64bit.

This is my output:

~/QorIQ-SDK-V2.0-20160527-yocto$ source ./fsl-setup-env -m t4240rdb-64b
Configuring for t4240rdb-64b ...
~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b was created before.
Back to build project ~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b.
Nothing is changed.
~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake fsl-image-minimal
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |##########################################################################################################| ETA: 00:00:00
Loaded 6050 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t4240rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e6500 altivec"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1499 tasks of which 1499 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.
~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$

When I run QEMU with this command:

sudo ~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64 \
-cpu e5500 -nographic -m 1028 -M ppce500 \
-kernel ~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/uImage \
-initrd ~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/fsl-image-minimal-t4240rdb-64b.ext2.gz \

-append "root=/dev/ram rw console=ttyS0,115200 \
ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1028M" -serial tcp::4444,server,telnet -net nic,model=e1000 \
-net tap,ifname=tap0,script=no,downscript=no

I cannot boot the system, this is output when it boot:

~/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ telnet 26.26.26.1 4444
Trying 26.26.26.1...
Connected to 26.26.26.1.
Escape character is '^]'.
Using QEMU e500 machine description
MMU: Supported page sizes
4 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
MMU: Book3E HW tablewalk not supported
Found initrd at 0xc000000004000000:0xc000000004423e3b
bootconsole [udbg0] enabled
CPU maps initialized for 1 thread per core
Starting Linux PPC64 #1 SMP Sun Jan 8 12:42:09 ICT 2017
-----------------------------------------------------
ppc64_pft_size = 0x0
phys_mem_size = 0x40000000
dcache_line_size = 0x40
icache_line_size = 0x40
cpu_features = 0x00180400181802c0
possible = 0x00180480581802c8
always = 0x00180400581802c0
cpu_user_features = 0xcc008000 0x08000000
mmu_features = 0x000a0010
firmware_features = 0x0000000000000000
-----------------------------------------------------
<- setup_system()
Linux version 4.1.8-rt8+gbd51baf (hstan@server-06) (gcc version 4.9.2 (GCC) ) #1 SMP Sun Jan 8 12:42:09 ICT 2017
qemu_e500_setup_arch()
Zone ranges:
DMA [mem 0x0000000000000000-0x000000003fffffff]
DMA32 empty
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000003fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
MMU: Allocated 2112 bytes of context maps for 255 contexts
PERCPU: Embedded 17 pages/cpu @c00000003f000000 s28824 r0 d40808 u1048576
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1028M
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Sorting __ex_table...
Memory: 949036K/1048576K available (7856K kernel code, 1132K rwdata, 3008K rodata, 364K init, 764K bss, 99540K reserved, 0K cma-reserved)
Hierarchical RCU implementation.
RCU debugfs-based tracing is enabled.
CONFIG_RCU_FANOUT set to non-default value of 32
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC " version 1.2 at fe0040000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource timebase: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
clocksource: timebase mult[2800000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
e500 family performance monitor hardware support registered
Brought up 1 CPUs
devtmpfs: initialized
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
xor: measuring software checksum speed
8regs : 1289.000 MB/sec
8regs_prefetch: 1079.000 MB/sec
32regs : 1745.000 MB/sec
32regs_prefetch: 1572.000 MB/sec
xor: using function: 32regs (1745.000 MB/sec)
NET: Registered protocol family 16
Found FSL PCI host bridge at 0x0000000fe0008000. Firmware bus number: 0->255
PCI host bridge /pci@fe0008000 (primary) ranges:
MEM 0x0000000c00000000..0x0000000c1fffffff -> 0x00000000e0000000
IO 0x0000000fe1000000..0x0000000fe100ffff -> 0x0000000000000000
/pci@fe0008000: PCICSRBAR @ 0xdff00000
setup_pci_atmu: end of DRAM 40000000
EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV fe0008000.pci (INTERRUPT)
MPC85xx_edac acquired irq 24 for PCI Err
MPC85xx_edac PCI err registered
fsl-pamu: fsl_pamu_init: could not find a PAMU node
PCI: Probing PCI hardware
fsl-pci fe0008000.pci: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc1fffffff] (bus address [0xe0000000-0xffffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
pci 0000:00:00.0: BAR 0: assigned [mem 0xc00000000-0xc000fffff]
pci 0000:00:00.0: BAR 8: assigned [mem 0xc00100000-0xc001fffff]
pci 0000:00:01.0: BAR 6: assigned [mem 0xc00200000-0xc0023ffff pref]
pci 0000:00:01.0: BAR 0: assigned [mem 0xc00240000-0xc0025ffff]
pci 0000:00:01.0: BAR 1: assigned [io 0x11000-0x1103f]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0x10000-0x10fff]
pci 0000:00:00.0: bridge window [mem 0xc00100000-0xc001fffff]
raid6: int64x1 gen() 721 MB/s
raid6: int64x1 xor() 495 MB/s
raid6: int64x2 gen() 1018 MB/s
raid6: int64x2 xor() 370 MB/s
raid6: int64x4 gen() 1334 MB/s
raid6: int64x4 xor() 890 MB/s
raid6: int64x8 gen() 650 MB/s
raid6: int64x8 xor() 440 MB/s
raid6: using algorithm int64x4 gen() 1334 MB/s
raid6: .... xor() 890 MB/s, rmw enabled
raid6: using intx1 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
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
No BMan portals available!
QMan: Allocated lookup table at 8000000000002000, entry count 65537
No QMan portals available!
No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 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...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 4236K (c000000004000000 - c000000004423000)
futex hash table entries: 256 (order: 2, 16384 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.952:1): initialized
HugeTLB registered 4 MB page size, pre-allocated 0 pages
HugeTLB registered 16 MB page size, pre-allocated 0 pages
HugeTLB registered 64 MB page size, pre-allocated 0 pages
HugeTLB registered 256 MB page size, pre-allocated 0 pages
HugeTLB registered 1 GB page size, pre-allocated 0 pages
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xfe0004500 (irq = 42, base_baud = 115200) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [udbg0] disabled
bootconsole [udbg0] disabled
ePAPR hypervisor byte channel driver
brd: module loaded
loop: module loaded
st: Version 20101219, fixed bufsize 32768, s/g segs 256
libphy: Fixed MDIO Bus: probed
Freescale FM module, FMD API version 21.1.0
Freescale FM Ports module
fsl_mac: fsl_mac: FSL FMan MAC API based driver
fsl_dpa: FSL DPAA Ethernet driver
fsl_advanced: FSL DPAA Advanced drivers:
fsl_proxy: FSL DPAA Proxy initialization driver
fsl_dpa_shared: FSL DPAA Shared Ethernet driver
fsl_dpa_macless: FSL DPAA MACless Ethernet driver
fsl_oh: FSL FMan Offline Parsing port driver
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 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
i2c /dev entries driver
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No fsl,qman node
Freescale USDPAA process driver
fsl-usdpaa: no region found
Freescale USDPAA process IRQ driver
dce_sys_init done!
No fsl,dce node
Freescale pme2 db driver
PME2: fsl_pme2_db_init: not on ctrl-plane
Freescale pme2 scan driver
fsl-pme2-scan: device pme_scan registered
Freescale hypervisor management driver
fsl-hv: no hypervisor found
ipip: IPv4 over IPv4 tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
fsl_generic: FSL DPAA Generic Ethernet driver
hctosys: unable to open rtc device (rtc0)
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 364K (c000000000aa3000 - c000000000afe000)
init[1]: unhandled signal 4 at 00003fff90c3c0fc nip 00003fff90c3c0fc lr 00003fff90c1dd94 code 30001
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.8-rt8+gbd51baf #1
Call Trace:
[c0000000390538d0] [c0000000007a34fc] .dump_stack+0x8c/0xb8 (unreliable)
[c000000039053950] [c0000000007a0e34] .panic+0xf0/0x270
[c0000000390539f0] [c00000000003b520] .do_exit+0xa00/0xa04
[c000000039053ae0] [c00000000003c5a4] .do_group_exit+0x54/0xec
[c000000039053b70] [c000000000048640] .get_signal+0x2f8/0x674
[c000000039053c70] [c0000000000092bc] .do_signal+0x44/0x218
[c000000039053db0] [c00000000000959c] .do_notify_resume+0x64/0x78
[c000000039053e30] [c000000000000c4c] .ret_from_except_lite+0x78/0x7c
Rebooting in 180 seconds..

Please help me.

Thanks in advanced.

Tags (2)
20 Replies

8,983 Views
hosytan
Contributor III

Thanhs Yiping Wang,

Now I can boot my T4240RDB device but I have other problems with QEMU/KVM.

I follow the Chapter 11 Virtualization of QorIQ SDK v2.0-1703 Documentation:

1. Setup br0 interface: 

$ brctl addbr br0
$ ifconfig br0 192.168.1.139
$ ifconfig fm1-mac1 up
$ brctl addif br0 mac1-gb1

2. Add a files: /home/root/qemu-ifup

#!/bin/sh
# TAP interface will be passed in $1
bridge=br0
guest_device=$1
ifconfig $guest_device up
brctl addif $bridge $guest_device

3. Add a files: /home/root/qemu-ifdown

#!/bin/sh
# TAP interface will be passed in $1
bridge=br0
guest_device=$1
ifconfig $guest_device down
brctl addif $bridge $guest_device

4. Run QEMU/KVM

qemu-system-ppc -enable-kvm -nographic -m 256 -M ppce500 -kernel uImage -initrd rootfs.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444,server -netdev
tap,id=tap0,script=/root/qemu-ifup,downscript=/home/root/qemu-ifdown,vhost=on -device virtionet-pci,netdev=tap0

When I boot the Guest, I cannot see any ethernet interface.

Please show my what I should do to resolv the problem?

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

I tried to run on QorIQ T4240 QEMU/KVM guest on Ubuntu host for some months but always failed.

If anyone already set up for T4240RDB QEMU ỏ KVM guest running on Linux hosts please help me.

This problem is giving me a headache for months!

0 Kudos
Reply

8,992 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Ho Sy Tan,

There is a known issue to setup qemu on a x86 system, please refer to Bug #1570119 “xenial ppc64le cloud image crashes on nested virt” : Bugs : qemu package : Ubuntu, I have also verfied qemu 2.8 with these patches applied, but this problem remains.

So if you have a real board, I suggest you use  KVM/QEMU solution on the target board.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

8,992 Views
hosytan
Contributor III

II. Deploy U-Boot, Linux Kernel, and Root Filesystem to a Reference Design Board (RDB)
In my case, I want to deploy the build to T4240RDB board with SD card.
I follow the guide of QorIQ SDK v2.0-1701 Documentation.

1. Switch Settings:

SW1 [1:8] = 0010 0000
SW2 [1:8] = 0011 1001
SW3 [1:8] = 1110 0001

2. Setting U-Boot Environment:

# setenv bootfile uImage
# setenv fdtfile uImage.dtb
# setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'
# save

3. Deploy Filesystem to the SD Card

Once the U-Boot network parameters have been set, follow the steps below to deploy the filesystem to the SD card:

Connect the card reader with SD card to the Linux Host PC.
Create the partitions by "fdisk /dev/sdb", one MS-DOS partition(sdb1 and this partition usually for u-boot) and one ext2 partition(sdb2) in the SD card.
#fdisk /dev/sdb
Use the mkfs.ext2 command to create the filesystems.
# mkfs.vfat /dev/sdb1
# mkfs.ext2 /dev/sdb2
Create temp directory in host PC and mount the ext2 partition to the temp.
# mkdir /temp
# mount /dev/sdb2 /temp
# cd /temp
Mount the target board type .iso (eg. QorIQ-SDK-<Version>-PPCE6500-<release date>-yocto.iso) to get the tarball (eg. QorIQ_SDK_<Version>_E6500_<release date>_ROOTFS_Image.tar.gz) on host PC.
# mount -o loop QorIQ-SDK-<Version>-PPCE6500-<release date>-yocto.iso /work
Copy the file system to harddisk by extracing the QorIQ_SDK_<Version>_E6500_<release date>_ROOTFS_Image.tar.gz. Remove the tarball after extracting rootfs.
# cp QorIQ_SDK_<Version>_E6500_<release date>_ROOTFS_Image.tar.gz
# sudo tar -zxvf QorIQ_SDK_<Version>_E6500_<release date>_ROOTFS_Image.tar.gz
# rm QorIQ_SDK_<Version>_E6500_<release date>_ROOTFS_Image.tar.gz
Make sure the kernel image and dtb file are in /temp/boot directory, then umount the /temp.
# cp uImage and uImage.dtb to /temp/boot folder
# umount /temp
Plug in the SD card to the target board and power on.

When I power on to boot the board, I can boot it but I have the same error: Kernel panic above!

0 Kudos
Reply

8,991 Views
hosytan
Contributor III

Hi Wang,

I try QEMU with -enable-kvm, but I think it is not support to run KVM on my host hardware (HP Proliant GEN9 server).

$ /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64 -enable-kvm -nographic -m 1024 -M ppce500 -kernel uImage -initrd fsl-image-minimal-t4240rdb-64b.ext2.gz -append "root=/dev/ram rw console=ttyS0,115200" -serial tcp::4444, server
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libtinfo.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
"kvm" accelerator not found.
No accelerator found!

I think "kvm" accelerator is enabled on my server. Let's check it:

$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

I can build fsl-image-core with some rebuild:

$ bitbake -c clean usdpaa-apps
$ bitbake usdpaa-apps
$ bitbake fsl-image-core

But when I try run QEMU guest with above command, I have same error.

$ sudo ./t4240rdb-64b-core.sh

The boot log:

$ telnet 26.26.26.1 4444
Trying 26.26.26.1...
Connected to 26.26.26.1.
Escape character is '^]'.
Using QEMU e500 machine description
MMU: Supported page sizes
4 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
MMU: Book3E HW tablewalk not supported
Found initrd at 0xc000000004000000:0xc000000005f379b6
bootconsole [udbg0] enabled
CPU maps initialized for 1 thread per core
Starting Linux PPC64 #1 SMP Sun Mar 5 11:47:42 ICT 2017
-----------------------------------------------------
ppc64_pft_size = 0x0
phys_mem_size = 0x40000000
dcache_line_size = 0x40
icache_line_size = 0x40
cpu_features = 0x00180400181802c0
possible = 0x00180480581802c8
always = 0x00180400581802c0
cpu_user_features = 0xcc008000 0x08000000
mmu_features = 0x000a0010
firmware_features = 0x0000000000000000
-----------------------------------------------------
<- setup_system()
Linux version 4.1.30-rt34+g4004071 (hstan@server-06) (gcc version 4.9.2 (GCC) ) #1 SMP Sun Mar 5 11:47:42 ICT 2017
qemu_e500_setup_arch()
Zone ranges:
DMA [mem 0x0000000000000000-0x000000003fffffff]
DMA32 empty
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000003fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
MMU: Allocated 2112 bytes of context maps for 255 contexts
PERCPU: Embedded 17 pages/cpu @c00000003f000000 s29336 r0 d40296 u1048576
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1024M ramdisk_size=512000
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Sorting __ex_table...
Memory: 921084K/1048576K available (8004K kernel code, 1148K rwdata, 3064K rodata, 364K init, 765K bss, 127492K reserved, 0K cma-reserved)
Hierarchical RCU implementation.
RCU debugfs-based tracing is enabled.
CONFIG_RCU_FANOUT set to non-default value of 32
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC " version 1.2 at fe0040000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource timebase: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
clocksource: timebase mult[2800000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
e500 family performance monitor hardware support registered
Brought up 1 CPUs
devtmpfs: initialized
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
xor: measuring software checksum speed
8regs : 1286.000 MB/sec
8regs_prefetch: 1449.000 MB/sec
32regs : 1737.000 MB/sec
32regs_prefetch: 1386.000 MB/sec
xor: using function: 32regs (1737.000 MB/sec)
NET: Registered protocol family 16
Found FSL PCI host bridge at 0x0000000fe0008000. Firmware bus number: 0->255
PCI host bridge /pci@fe0008000 (primary) ranges:
MEM 0x0000000c00000000..0x0000000c1fffffff -> 0x00000000e0000000
IO 0x0000000fe1000000..0x0000000fe100ffff -> 0x0000000000000000
/pci@fe0008000: PCICSRBAR @ 0xdff00000
setup_pci_atmu: end of DRAM 40000000
EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV fe0008000.pci (INTERRUPT)
MPC85xx_edac acquired irq 24 for PCI Err
MPC85xx_edac PCI err registered
fsl-pamu: fsl_pamu_init: could not find a PAMU node
PCI: Probing PCI hardware
fsl-pci fe0008000.pci: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc1fffffff] (bus address [0xe0000000-0xffffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
pci 0000:00:00.0: BAR 0: assigned [mem 0xc00000000-0xc000fffff]
pci 0000:00:00.0: BAR 8: assigned [mem 0xc00100000-0xc001fffff]
pci 0000:00:01.0: BAR 6: assigned [mem 0xc00200000-0xc0023ffff pref]
pci 0000:00:01.0: BAR 0: assigned [mem 0xc00240000-0xc0025ffff]
pci 0000:00:01.0: BAR 1: assigned [io 0x11000-0x1103f]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0x10000-0x10fff]
pci 0000:00:00.0: bridge window [mem 0xc00100000-0xc001fffff]
raid6: int64x1 gen() 761 MB/s
raid6: int64x1 xor() 520 MB/s
raid6: int64x2 gen() 1046 MB/s
raid6: int64x2 xor() 740 MB/s
raid6: int64x4 gen() 1351 MB/s
raid6: int64x4 xor() 887 MB/s
raid6: int64x8 gen() 669 MB/s
raid6: int64x8 xor() 488 MB/s
raid6: using algorithm int64x4 gen() 1351 MB/s
raid6: .... xor() 887 MB/s, rmw enabled
raid6: using intx1 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
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
No BMan portals available!
QMan: Allocated lookup table at 8000000000002000, entry count 65537
No QMan portals available!
No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 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...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 31964K (c000000004000000 - c000000005f37000)
futex hash table entries: 256 (order: 2, 16384 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.992:1): initialized
HugeTLB registered 4 MB page size, pre-allocated 0 pages
HugeTLB registered 16 MB page size, pre-allocated 0 pages
HugeTLB registered 64 MB page size, pre-allocated 0 pages
HugeTLB registered 256 MB page size, pre-allocated 0 pages
HugeTLB registered 1 GB page size, pre-allocated 0 pages
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xfe0004500 (irq = 42, base_baud = 115200) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [udbg0] disabled
bootconsole [udbg0] disabled
ePAPR hypervisor byte channel driver
brd: module loaded
loop: module loaded
st: Version 20101219, fixed bufsize 32768, s/g segs 256
libphy: Fixed MDIO Bus: probed
Freescale FM module, FMD API version 21.1.0
Freescale FM Ports module
fsl_mac: fsl_mac: FSL FMan MAC API based driver
fsl_dpa: FSL DPAA Ethernet driver
fsl_advanced: FSL DPAA Advanced drivers:
fsl_proxy: FSL DPAA Proxy initialization driver
fsl_dpa_shared: FSL DPAA Shared Ethernet driver
fsl_dpa_macless: FSL DPAA MACless Ethernet driver
fsl_oh: FSL FMan Offline Parsing port driver
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 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
i2c /dev entries driver
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No fsl,qman node
Freescale USDPAA process driver
fsl-usdpaa: no region found
Freescale USDPAA process IRQ driver
dce_sys_init done!
No fsl,dce node
Freescale pme2 db driver
PME2: fsl_pme2_db_init: not on ctrl-plane
Freescale pme2 scan driver
fsl-pme2-scan: device pme_scan registered
Freescale hypervisor management driver
fsl-hv: no hypervisor found
ipip: IPv4 over IPv4 tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
fsl_generic: FSL DPAA Generic Ethernet driver
hctosys: unable to open rtc device (rtc0)
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 364K (c000000000ad7000 - c000000000b32000)
init[1]: unhandled signal 4 at 00003fffa8ab30fc nip 00003fffa8ab30fc lr 00003fffa8a94d94 code 30001
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.30-rt34+g4004071 #1
Call Trace:
[c0000000390538c0] [c0000000007c80e0] .dump_stack+0xac/0xec (unreliable)
[c000000039053950] [c0000000007c59dc] .panic+0xf0/0x280
[c0000000390539f0] [c0000000000536ec] .do_exit+0xa0c/0xa10
[c000000039053ae0] [c00000000005478c] .do_group_exit+0x54/0xec
[c000000039053b70] [c00000000006086c] .get_signal+0x2f8/0x674
[c000000039053c70] [c0000000000092bc] .do_signal+0x44/0x218
[c000000039053db0] [c00000000000959c] .do_notify_resume+0x64/0x78
[c000000039053e30] [c000000000000c4c] .ret_from_except_lite+0x78/0x7c
Rebooting in 180 seconds..Connection closed by foreign host.

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

Now, I folow thing that Wang do:

1. Customize Linux Kernel

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake -c cleansstate virtual/kernel
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t4240rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e6500 altivec"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-nxp-npi-1609.old = "master:68e60ceae569d4f1ae898eb1ca2ddada1d0f3bc5"
meta-nxp-npi-1701 = "jethro-sdk-v2.0-ga-1701:11975eebce9096a3567d00ba2067a2dbd2ed4d5c"
meta-nxp-npi-ga.1611 = "jethro-sdk-v2.0-ga-16.11:81df2dc9f9723ff59417e57af1700735770ddff2"

NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake -c cleansstate virtual/kernel
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

...
... I cut some lines
...

NOTE: Preparing RunQueue
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 2 tasks of which 0 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake -c patch virtual/kernel
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

...
... I cut some lines
...

NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 10 tasks of which 7 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

$ bitbake -c menuconfig virtual/kernel

Virtualization
   [*] Detailed exit timing
 [*] KVM support for PowerPC E500MC/E5500/E6500 processors
 [*] KVM in-kernel MPIC emulation
 <*> Host kernel accelerator for virtio net

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake -c compile -f virtual/kernel
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

...
... I cut some lines
...
NOTE: Preparing RunQueue
NOTE: Tainting hash to force rebuild of task /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb, do_compile
WARNING: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb.do_compile is tainted from a forced run
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 285 tasks of which 284 didn't need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake virtual/kernel
ARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

...
... I cut some lines
...

NOTE: Preparing RunQueue
WARNING: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb.do_compile is tainted from a forced run
NOTE: Checking sstate mirror object availability (for 8 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 423 tasks of which 408 didn't need to be rerun and all succeeded.

Summary: There were 2 WARNING messages shown.

2. Build fsl-image-core again with new kernel

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake fsl-image-core

WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

...
... I cut some lines
...

NOTE: Preparing RunQueue
WARNING: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-kernel/linux/linux-qoriq_4.1.bb.do_compile is tainted from a forced run
NOTE: Checking sstate mirror object availability (for 45 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: oe_runmake failed
ERROR: Function failed: do_configure (log file is located at /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/usdpaa-apps/git-r0/temp/log.do_configure.31402)
ERROR: Logfile of failure stored in: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/usdpaa-apps/git-r0/temp/log.do_configure.31402
Log data follows:

...
... I cut some lines
...
| ERROR: oe_runmake failed
| ERROR: Function failed: do_configure (log file is located at /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/usdpaa-apps/git-r0/temp/log.do_configure.31402)
ERROR: Task 1397 (/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3133 tasks of which 3067 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-dpaa/usdpaa-apps/usdpaa-apps_git.bb, do_configure
Summary: There were 2 WARNING messages shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

It is not success, there are some erors...

Any idea, Wang?

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

Now, I tried boot fsl-image-core by run t4240rdb-64b-core.sh like this:

$ nano t4240rdb-64b-core.sh
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64 \
-cpu e5500 -nographic -m 1024 -M ppce500 \
-kernel /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/uImage \
--initrd /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/fsl-image-core-t4240rdb-64b.ext2.gz \
--append "root=/dev/ram rw console=ttyS0,115200 \
ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1024M ramdisk_size=512000" -serial tcp::4444,server,telnet -net nic,model=e1000 \
-net tap,ifname=tap0,script=no,downscript=no

Run QEMU guest again:

$ sudo ./t4240rdb-64b-core.sh
[sudo] password for hstan:
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libtinfo.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
QEMU 2.4.0 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: disconnected:telnet::4444,server


Telnet to it again:

$ telnet 26.26.26.1 4444

Boot message:

Trying 26.26.26.1...
Connected to 26.26.26.1.
Escape character is '^]'.
Using QEMU e500 machine description
MMU: Supported page sizes
4 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
MMU: Book3E HW tablewalk not supported
Found initrd at 0xc000000004000000:0xc000000005f378c4
bootconsole [udbg0] enabled
CPU maps initialized for 1 thread per core
Starting Linux PPC64 #1 SMP Sun Mar 5 10:13:16 ICT 2017
-----------------------------------------------------
ppc64_pft_size = 0x0
phys_mem_size = 0x40000000
dcache_line_size = 0x40
icache_line_size = 0x40
cpu_features = 0x00180400181802c0
possible = 0x00180480581802c8
always = 0x00180400581802c0
cpu_user_features = 0xcc008000 0x08000000
mmu_features = 0x000a0010
firmware_features = 0x0000000000000000
-----------------------------------------------------
<- setup_system()
Linux version 4.1.30-rt34+g4004071 (hstan@server-06) (gcc version 4.9.2 (GCC) ) #1 SMP Sun Mar 5 10:13:16 ICT 2017
qemu_e500_setup_arch()
Zone ranges:
DMA [mem 0x0000000000000000-0x000000003fffffff]
DMA32 empty
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000003fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
MMU: Allocated 2112 bytes of context maps for 255 contexts
PERCPU: Embedded 17 pages/cpu @c00000003f000000 s28824 r0 d40808 u1048576
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1024M ramdisk_size=512000
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Sorting __ex_table...
Memory: 921276K/1048576K available (7872K kernel code, 1144K rwdata, 3016K rodata, 360K init, 764K bss, 127300K reserved, 0K cma-reserved)
Hierarchical RCU implementation.
RCU debugfs-based tracing is enabled.
CONFIG_RCU_FANOUT set to non-default value of 32
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC " version 1.2 at fe0040000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource timebase: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
clocksource: timebase mult[2800000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
e500 family performance monitor hardware support registered
Brought up 1 CPUs
devtmpfs: initialized
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
xor: measuring software checksum speed
8regs : 1052.000 MB/sec
8regs_prefetch: 1081.000 MB/sec
32regs : 1256.000 MB/sec
32regs_prefetch: 873.000 MB/sec
xor: using function: 32regs (1256.000 MB/sec)
NET: Registered protocol family 16
Found FSL PCI host bridge at 0x0000000fe0008000. Firmware bus number: 0->255
PCI host bridge /pci@fe0008000 (primary) ranges:
MEM 0x0000000c00000000..0x0000000c1fffffff -> 0x00000000e0000000
IO 0x0000000fe1000000..0x0000000fe100ffff -> 0x0000000000000000
/pci@fe0008000: PCICSRBAR @ 0xdff00000
setup_pci_atmu: end of DRAM 40000000
EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV fe0008000.pci (INTERRUPT)
MPC85xx_edac acquired irq 24 for PCI Err
MPC85xx_edac PCI err registered
fsl-pamu: fsl_pamu_init: could not find a PAMU node
PCI: Probing PCI hardware
fsl-pci fe0008000.pci: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc1fffffff] (bus address [0xe0000000-0xffffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
pci 0000:00:00.0: BAR 0: assigned [mem 0xc00000000-0xc000fffff]
pci 0000:00:00.0: BAR 8: assigned [mem 0xc00100000-0xc001fffff]
pci 0000:00:01.0: BAR 6: assigned [mem 0xc00200000-0xc0023ffff pref]
pci 0000:00:01.0: BAR 0: assigned [mem 0xc00240000-0xc0025ffff]
pci 0000:00:01.0: BAR 1: assigned [io 0x11000-0x1103f]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0x10000-0x10fff]
pci 0000:00:00.0: bridge window [mem 0xc00100000-0xc001fffff]
raid6: int64x1 gen() 543 MB/s
raid6: int64x1 xor() 382 MB/s
raid6: int64x2 gen() 767 MB/s
raid6: int64x2 xor() 696 MB/s
raid6: int64x4 gen() 1310 MB/s
raid6: int64x4 xor() 850 MB/s
raid6: int64x8 gen() 614 MB/s
raid6: int64x8 xor() 415 MB/s
raid6: using algorithm int64x4 gen() 1310 MB/s
raid6: .... xor() 850 MB/s, rmw enabled
raid6: using intx1 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
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
No BMan portals available!
QMan: Allocated lookup table at 8000000000002000, entry count 65537
No QMan portals available!
No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 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...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 31964K (c000000004000000 - c000000005f37000)
futex hash table entries: 256 (order: 2, 16384 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(1.052:1): initialized
HugeTLB registered 4 MB page size, pre-allocated 0 pages
HugeTLB registered 16 MB page size, pre-allocated 0 pages
HugeTLB registered 64 MB page size, pre-allocated 0 pages
HugeTLB registered 256 MB page size, pre-allocated 0 pages
HugeTLB registered 1 GB page size, pre-allocated 0 pages
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xfe0004500 (irq = 42, base_baud = 115200) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [udbg0] disabled
bootconsole [udbg0] disabled
ePAPR hypervisor byte channel driver
brd: module loaded
loop: module loaded
st: Version 20101219, fixed bufsize 32768, s/g segs 256
libphy: Fixed MDIO Bus: probed
Freescale FM module, FMD API version 21.1.0
Freescale FM Ports module
fsl_mac: fsl_mac: FSL FMan MAC API based driver
fsl_dpa: FSL DPAA Ethernet driver
fsl_advanced: FSL DPAA Advanced drivers:
fsl_proxy: FSL DPAA Proxy initialization driver
fsl_dpa_shared: FSL DPAA Shared Ethernet driver
fsl_dpa_macless: FSL DPAA MACless Ethernet driver
fsl_oh: FSL FMan Offline Parsing port driver
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 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
i2c /dev entries driver
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No fsl,qman node
Freescale USDPAA process driver
fsl-usdpaa: no region found
Freescale USDPAA process IRQ driver
dce_sys_init done!
No fsl,dce node
Freescale pme2 db driver
PME2: fsl_pme2_db_init: not on ctrl-plane
Freescale pme2 scan driver
fsl-pme2-scan: device pme_scan registered
Freescale hypervisor management driver
fsl-hv: no hypervisor found
ipip: IPv4 over IPv4 tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
fsl_generic: FSL DPAA Generic Ethernet driver
hctosys: unable to open rtc device (rtc0)
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 360K (c000000000aa9000 - c000000000b03000)
init[1]: unhandled signal 4 at 00003fffa92a90fc nip 00003fffa92a90fc lr 00003fffa928ad94 code 30001
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.30-rt34+g4004071 #1
Call Trace:
[c0000000390538c0] [c0000000007a77d8] .dump_stack+0xac/0xec (unreliable)
[c000000039053950] [c0000000007a50d4] .panic+0xf0/0x280
[c0000000390539f0] [c00000000003b608] .do_exit+0xa0c/0xa10
[c000000039053ae0] [c00000000003c6a8] .do_group_exit+0x54/0xec
[c000000039053b70] [c000000000048788] .get_signal+0x2f8/0x674
[c000000039053c70] [c0000000000092bc] .do_signal+0x44/0x218
[c000000039053db0] [c00000000000959c] .do_notify_resume+0x64/0x78
[c000000039053e30] [c000000000000c4c] .ret_from_except_lite+0x78/0x7c
Rebooting in 180 seconds..

Nothing better, something went wrong with this?

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

From other Ubuntu host terminal, I telnet to QEMU guest like this:

$ telnet 26.26.26.1 4444


This is my boot logs:

Trying 26.26.26.1...
Connected to 26.26.26.1.
Escape character is '^]'.
Using QEMU e500 machine description
MMU: Supported page sizes
4 KB as direct
4096 KB as direct
16384 KB as direct
65536 KB as direct
262144 KB as direct
1048576 KB as direct
MMU: Book3E HW tablewalk not supported
Found initrd at 0xc000000004000000:0xc000000004423eee
bootconsole [udbg0] enabled
CPU maps initialized for 1 thread per core
Starting Linux PPC64 #1 SMP Sun Mar 5 10:13:16 ICT 2017
-----------------------------------------------------
ppc64_pft_size = 0x0
phys_mem_size = 0x40000000
dcache_line_size = 0x40
icache_line_size = 0x40
cpu_features = 0x00180400181802c0
possible = 0x00180480581802c8
always = 0x00180400581802c0
cpu_user_features = 0xcc008000 0x08000000
mmu_features = 0x000a0010
firmware_features = 0x0000000000000000
-----------------------------------------------------
<- setup_system()
Linux version 4.1.30-rt34+g4004071 (hstan@server-06) (gcc version 4.9.2 (GCC) ) #1 SMP Sun Mar 5 10:13:16 ICT 2017
qemu_e500_setup_arch()
Zone ranges:
DMA [mem 0x0000000000000000-0x000000003fffffff]
DMA32 empty
Normal empty
Movable zone start for each node
Early memory node ranges
node 0: [mem 0x0000000000000000-0x000000003fffffff]
Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
MMU: Allocated 2112 bytes of context maps for 255 contexts
PERCPU: Embedded 17 pages/cpu @c00000003f000000 s28824 r0 d40808 u1048576
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 258560
Kernel command line: root=/dev/ram rw console=ttyS0,115200 ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1024M ramdisk_size=512000
PID hash table entries: 4096 (order: 3, 32768 bytes)
Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
Sorting __ex_table...
Memory: 949004K/1048576K available (7872K kernel code, 1144K rwdata, 3016K rodata, 360K init, 764K bss, 99572K reserved, 0K cma-reserved)
Hierarchical RCU implementation.
RCU debugfs-based tracing is enabled.
CONFIG_RCU_FANOUT set to non-default value of 32
Additional per-CPU info printed with stalls.
RCU restricting CPUs from NR_CPUS=24 to nr_cpu_ids=1.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
NR_IRQS:512 nr_irqs:512 16
mpic: Setting up MPIC " OpenPIC " version 1.2 at fe0040000, max 1 CPUs
mpic: ISU size: 256, shift: 8, mask: ff
mpic: Initializing for 256 sources
clocksource timebase: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
clocksource: timebase mult[2800000] shift[24] registered
Console: colour dummy device 80x25
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
e500 family performance monitor hardware support registered
Brought up 1 CPUs
devtmpfs: initialized
clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
xor: measuring software checksum speed
8regs : 1681.000 MB/sec
8regs_prefetch: 1419.000 MB/sec
32regs : 1713.000 MB/sec
32regs_prefetch: 1331.000 MB/sec
xor: using function: 32regs (1713.000 MB/sec)
NET: Registered protocol family 16
Found FSL PCI host bridge at 0x0000000fe0008000. Firmware bus number: 0->255
PCI host bridge /pci@fe0008000 (primary) ranges:
MEM 0x0000000c00000000..0x0000000c1fffffff -> 0x00000000e0000000
IO 0x0000000fe1000000..0x0000000fe100ffff -> 0x0000000000000000
/pci@fe0008000: PCICSRBAR @ 0xdff00000
setup_pci_atmu: end of DRAM 40000000
EDAC PCI0: Giving out device to module MPC85xx_edac controller mpc85xx_pci_err: DEV fe0008000.pci (INTERRUPT)
MPC85xx_edac acquired irq 24 for PCI Err
MPC85xx_edac PCI err registered
fsl-pamu: fsl_pamu_init: could not find a PAMU node
PCI: Probing PCI hardware
fsl-pci fe0008000.pci: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io 0x10000-0x1ffff] (bus address [0x0000-0xffff])
pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc1fffffff] (bus address [0xe0000000-0xffffffff])
pci_bus 0000:00: root bus resource [bus 00-ff]
pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:00.0: PCI bridge to [bus 01-ff]
PCI: Cannot allocate resource region 0 of device 0000:00:00.0, will remap
pci 0000:00:00.0: BAR 0: assigned [mem 0xc00000000-0xc000fffff]
pci 0000:00:00.0: BAR 8: assigned [mem 0xc00100000-0xc001fffff]
pci 0000:00:01.0: BAR 6: assigned [mem 0xc00200000-0xc0023ffff pref]
pci 0000:00:01.0: BAR 0: assigned [mem 0xc00240000-0xc0025ffff]
pci 0000:00:01.0: BAR 1: assigned [io 0x11000-0x1103f]
pci 0000:00:00.0: PCI bridge to [bus 01]
pci 0000:00:00.0: bridge window [io 0x10000-0x10fff]
pci 0000:00:00.0: bridge window [mem 0xc00100000-0xc001fffff]
raid6: int64x1 gen() 738 MB/s
raid6: int64x1 xor() 497 MB/s
raid6: int64x2 gen() 1021 MB/s
raid6: int64x2 xor() 706 MB/s
raid6: int64x4 gen() 1322 MB/s
raid6: int64x4 xor() 694 MB/s
raid6: int64x8 gen() 502 MB/s
raid6: int64x8 xor() 393 MB/s
raid6: using algorithm int64x4 gen() 1322 MB/s
raid6: .... xor() 694 MB/s, rmw enabled
raid6: using intx1 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
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
No BMan portals available!
QMan: Allocated lookup table at 8000000000002000, entry count 65537
No QMan portals available!
No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
Switched to clocksource timebase
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 5, 131072 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...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 4236K (c000000004000000 - c000000004423000)
futex hash table entries: 256 (order: 2, 16384 bytes)
audit: initializing netlink subsys (disabled)
audit: type=2000 audit(0.968:1): initialized
HugeTLB registered 4 MB page size, pre-allocated 0 pages
HugeTLB registered 16 MB page size, pre-allocated 0 pages
HugeTLB registered 64 MB page size, pre-allocated 0 pages
HugeTLB registered 256 MB page size, pre-allocated 0 pages
HugeTLB registered 1 GB page size, pre-allocated 0 pages
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
ntfs: driver 2.1.32 [Flags: R/O].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
console [ttyS0] disabled
serial8250.0: ttyS0 at MMIO 0xfe0004500 (irq = 42, base_baud = 115200) is a 16550A
console [ttyS0] enabled
console [ttyS0] enabled
bootconsole [udbg0] disabled
bootconsole [udbg0] disabled
ePAPR hypervisor byte channel driver
brd: module loaded
loop: module loaded
st: Version 20101219, fixed bufsize 32768, s/g segs 256
libphy: Fixed MDIO Bus: probed
Freescale FM module, FMD API version 21.1.0
Freescale FM Ports module
fsl_mac: fsl_mac: FSL FMan MAC API based driver
fsl_dpa: FSL DPAA Ethernet driver
fsl_advanced: FSL DPAA Advanced drivers:
fsl_proxy: FSL DPAA Proxy initialization driver
fsl_dpa_shared: FSL DPAA Shared Ethernet driver
fsl_dpa_macless: FSL DPAA MACless Ethernet driver
fsl_oh: FSL FMan Offline Parsing port driver
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2014 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
i2c /dev entries driver
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
No fsl,qman node
Freescale USDPAA process driver
fsl-usdpaa: no region found
Freescale USDPAA process IRQ driver
dce_sys_init done!
No fsl,dce node
Freescale pme2 db driver
PME2: fsl_pme2_db_init: not on ctrl-plane
Freescale pme2 scan driver
fsl-pme2-scan: device pme_scan registered
Freescale hypervisor management driver
fsl-hv: no hypervisor found
ipip: IPv4 over IPv4 tunneling driver
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
fsl_generic: FSL DPAA Generic Ethernet driver
hctosys: unable to open rtc device (rtc0)
md: Skipping autodetection of RAID arrays. (raid=autodetect will force)
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 360K (c000000000aa9000 - c000000000b03000)
init[1]: unhandled signal 4 at 00003fff831690fc nip 00003fff831690fc lr 00003fff8314ad94 code 30001
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.30-rt34+g4004071 #1
Call Trace:
[c0000000390538c0] [c0000000007a77d8] .dump_stack+0xac/0xec (unreliable)
[c000000039053950] [c0000000007a50d4] .panic+0xf0/0x280
[c0000000390539f0] [c00000000003b608] .do_exit+0xa0c/0xa10
[c000000039053ae0] [c00000000003c6a8] .do_group_exit+0x54/0xec
[c000000039053b70] [c000000000048788] .get_signal+0x2f8/0x674
[c000000039053c70] [c0000000000092bc] .do_signal+0x44/0x218
[c000000039053db0] [c00000000000959c] .do_notify_resume+0x64/0x78
[c000000039053e30] [c000000000000c4c] .ret_from_except_lite+0x78/0x7c
Rebooting in 180 seconds..

So sad, it cannot boot....

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

f.2. Run QEMU.


Fistly, I bring up the brigde interface for my Ubuntu host:

$ sudo ./qemu-start.sh
Sun Mar 5 10:44:47 2017 TUN/TAP device tap0 opened
Sun Mar 5 10:44:47 2017 Persist state set to: ON

$ ifconfig
...
... I just cut some lines
...
br1 Link encap:Ethernet HWaddr 1c:98:ec:16:2f:11
inet addr:26.26.26.1 Bcast:26.26.26.255 Mask:255.255.255.0
inet6 addr: fe80::1e98:ecff:fe16:2f11/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:4335 (4.3 KB)

...
... I just cut some lines
...

eno2 Link encap:Ethernet HWaddr 1c:98:ec:16:2f:11
inet6 addr: fe80::3321:f5ee:ad18:f04f/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:91 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:10686 (10.6 KB)
Interrupt:17

...
... I just cut some lines
...

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:253747 errors:0 dropped:0 overruns:0 frame:0
TX packets:253747 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:17563888 (17.5 MB) TX bytes:17563888 (17.5 MB)

tap0 Link encap:Ethernet HWaddr 8a:99:0d:a6:7d:3f
inet6 addr: fe80::8899:dff:fea6:7d3f/64 Scope:Link
UP BROADCAST PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 B) TX bytes:90 (90.0 B)

...
... I just cut some lines
...

vnet0 Link encap:Ethernet HWaddr fe:54:00:34:eb:9b
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:796 errors:0 dropped:0 overruns:0 frame:0
TX packets:33483 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:96210 (96.2 KB) TX bytes:2788417 (2.7 MB)

I think I setup brigded network fine for QEMU, don't I? Because I can ping to br1:

$ ping 26.26.26.1
PING 26.26.26.1 (26.26.26.1) 56(84) bytes of data.
64 bytes from 26.26.26.1: icmp_seq=1 ttl=64 time=0.042 ms
64 bytes from 26.26.26.1: icmp_seq=2 ttl=64 time=0.028 ms
64 bytes from 26.26.26.1: icmp_seq=3 ttl=64 time=0.029 ms
64 bytes from 26.26.26.1: icmp_seq=4 ttl=64 time=0.033 ms
64 bytes from 26.26.26.1: icmp_seq=5 ttl=64 time=0.033 ms

Now, I run QEMU guest:

$ sudo ./t4240rdb-64b.sh
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libncursesw.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/../lib/libtinfo.so.5: no version information available (required by /usr/lib/x86_64-linux-gnu/libcaca.so.0)
QEMU 2.4.0 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: disconnected:telnet::4444,server

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

f. Run t4240rdb-64b QEMU guest on Ubuntu 16.04 host


f.1. Preparing for QEMU.


I want to run QEMU with its network interface brigded to my Ubuntu-16.04 host network interface (eno2, my server have 4 NIC: en1, eno2, eno3, eno4, I just use eno2 for QEMU).

Fistly, I add 2 shell files to start and stop the brigde interface like this:

$ nano qemu-start.sh
#!/bin/bash

#################################
# Set up Ethernet bridge on Linux
# Requires: bridge-utils
#################################
ifconfig eno2 26.26.26.1 netmask 255.255.255.0

# Define Bridge Interface
br="br1"

# Define list of TAP interfaces to be bridged,
# for example tap="tap0 tap1 tap2".
tap="tap0"

# Define physical ethernet interface to be bridged
# with TAP interface(s) above.
eth="eno2"
eth_ip="26.26.26.1"
eth_netmask="255.255.255.0"
eth_broadcast="26.26.26.255"

for t in $tap; do
openvpn --mktun --dev $t
done

brctl addbr $br
brctl addif $br $eth

for t in $tap; do
brctl addif $br $t
done

for t in $tap; do
ifconfig $t 0.0.0.0 promisc up
done

ifconfig $eth 0.0.0.0 promisc up

ifconfig $br $eth_ip netmask $eth_netmask broadcast $eth_broadcast

$ chmod 755 qemu-start.sh

$ nano qemu-stop.sh

#!/bin/bash

####################################
# Tear Down Ethernet bridge on Linux
####################################

# Define Bridge Interface
br="br1"

# Define list of TAP interfaces to be bridged together
tap="tap0"

ifconfig $br down
brctl delbr $br

for t in $tap; do
openvpn --rmtun --dev $t
done

$ chmod 755 qemu-stop.sh

Secondly, I add QEMU command running t4240rdb-64b guest to t4240qds-64b.sh like this:

$ nano t4240rdb-64b.sh
/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/bin/qemu-system-ppc64 \
-cpu e5500 -nographic -m 1024 -M ppce500 \
-kernel /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/uImage \
--initrd /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/deploy/images/t4240rdb-64b/fsl-image-minimal-t4240rdb-64b.ext2.gz \
--append "root=/dev/ram rw console=ttyS0,115200 \
ip=26.26.26.2::26.26.26.1:255.255.255.0 mem=1024M ramdisk_size=512000" -serial tcp::4444,server,telnet -net nic,model=e1000 \
-net tap,ifname=tap0,script=no,downscript=no

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

e.1. Build fsl-image-core.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake fsl-image-core
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |########################################################################################################################################################| ETA: 00:00:00
Loaded 6065 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t4240rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e6500 altivec"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-nxp-npi-1609.old = "master:68e60ceae569d4f1ae898eb1ca2ddada1d0f3bc5"
meta-nxp-npi-1701 = "jethro-sdk-v2.0-ga-1701:11975eebce9096a3567d00ba2067a2dbd2ed4d5c"
meta-nxp-npi-ga.1611 = "jethro-sdk-v2.0-ga-16.11:81df2dc9f9723ff59417e57af1700735770ddff2"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 49 objects)
NOTE: Executing SetScene Tasks
WARNING: sysklogd: useradd command did not succeed. Retrying...
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_configure (log file is located at /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25195)
ERROR: Logfile of failure stored in: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25195
Log data follows:
| DEBUG: Executing python function sysroot_cleansstate
| DEBUG: Python function sysroot_cleansstate finished
| DEBUG: Executing shell function autotools_preconfigure
| DEBUG: Shell function autotools_preconfigure finished
| DEBUG: Executing python function autotools_copy_aclocals
| DEBUG: Python function autotools_copy_aclocals finished
| DEBUG: Executing shell function do_configure
|
| ERROR: User requested feature sdl
| configure was not able to find it.
| Install SDL devel
|
| WARNING: /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/run.do_configure.25195:1 exit 1 from
| /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/qemu-2.4.0/configure --prefix=/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr --sysconfdir=/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/etc --libexecdir=/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/lib/qemu --localstatedir=/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/var --disable-strip --target-list=mips64-softmmu,arm-linux-user,arm-softmmu,aarch64-linux-user,aarch64-softmmu,i386-linux-user,i386-softmmu,mips-linux-user,mips-softmmu,mipsel-linux-user,mipsel-softmmu,ppc-linux-user,ppc-softmmu,x86_64-linux-user,x86_64-softmmu,ppc64-linux-user,ppc64-softmmu --disable-werror --disable-bluez --disable-libiscsi --with-system-pixman --extra-cflags='-isystem/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe' --audio-drv-list=oss,alsa --disable-linux-aio --disable-bzip2 --disable-curses --enable-fdt --disable-opengl --disable-gnutls --disable-gtk --disable-vte --disable-cap-ng --disable-curl --disable-libusb --disable-lzo --disable-smartcard-nss --disable-numa --enable-sdl --disable-libssh2 --enable-uuid --disable-virtfs --disable-vnc-jpeg --disable-vnc-png --disable-vnc-sasl --disable-vnc-tls --disable-xen --disable-xfsctl $KVMOPTS
| ERROR: Function failed: do_configure (log file is located at /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/tmp/work/x86_64-linux/qemu-native/2.4.0-r1/temp/log.do_configure.25195)
ERROR: Task 2845 (virtual:native:/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/qemu/qemu_2.4.0.bb, do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 3135 tasks of which 2934 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sources/poky/meta/recipes-devtools/qemu/qemu_2.4.0.bb, do_configure
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Because the errors, I changed my conf/local.conf by adding a line BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu " at the end of this file at following:

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ nano conf/local.conf
MACHINE ??= 't4240rdb-64b'
DISTRO ?= 'fsl-qoriq'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"

# Parallelism Options
BB_NUMBER_THREADS = "24"
PARALLEL_MAKE = "-j 24"
DL_DIR = "/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/downloads"
SSTATE_DIR = "/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sstate-cache"
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL ?= "http://git.freescale.com/source/"
SSTATE_MIRRORS = "file://.*/(.*)/(.*) file://${SSTATE_DIR}/native/\1/\2 \n"
# use xz to compress sstate
SSTATE_PKG_SUFFIX = "txz"
SSTATE_PKG_TARZIPPROG = "xz"
ACCEPT_FSL_EULA = "1"
BUILD_LDFLAGS_prepend_pn-qemu-native = "-Wl,-rpath-link,/lib/x86_64-linux-gnu "

Trying build again:

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake fsl-image-core
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |######################################################################################################################################################| Time: 00:00:32
Parsing of 2689 .bb files complete (0 cached, 2689 parsed). 6064 targets, 702 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t4240rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e6500 altivec"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-nxp-npi-1609.old = "master:68e60ceae569d4f1ae898eb1ca2ddada1d0f3bc5"
meta-nxp-npi-1701 = "jethro-sdk-v2.0-ga-1701:11975eebce9096a3567d00ba2067a2dbd2ed4d5c"
meta-nxp-npi-ga.1611 = "jethro-sdk-v2.0-ga-16.11:81df2dc9f9723ff59417e57af1700735770ddff2"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 32 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 3215 tasks of which 3154 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

Again, I can see the results:

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ ls -la tmp/deploy/images/t4240rdb-64b/
total 285064
drwxr-xr-x 5 hstan hstan 4096 Mar 5 10:29 .
drwxrwxr-x 3 hstan hstan 4096 Mar 5 10:11 ..
-rwxr-xr-x 2 hstan hstan 1184 Mar 5 10:11 byte_swap.tcl
-rw-r--r-- 2 hstan hstan 133738 Mar 5 10:11 cs4315-cs4340-PHY-ucode.txt
-rw-r--r-- 2 hstan hstan 32604 Mar 5 10:11 fsl_fman_ucode_t4240_r2.0_106_4_18.bin
-rw-r--r-- 2 hstan hstan 35252 Mar 5 10:11 fsl_fman_ucode_t4240_r2.0_108_4_5.bin
-rw-r--r-- 1 hstan hstan 32733380 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.ext2.gz
-rw-r--r-- 1 hstan hstan 32733444 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.ext2.gz.u-boot
-rw-r--r-- 1 hstan hstan 42795008 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.jffs2
-rw-r--r-- 1 hstan hstan 6977 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.manifest
-rw-r--r-- 1 hstan hstan 32482230 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.tar.gz
-rw-r--r-- 1 hstan hstan 54165504 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.ubi
-rw-r--r-- 1 hstan hstan 50749440 Mar 5 10:29 fsl-image-core-t4240rdb-64b-20170305032527.rootfs.ubifs
...

... Just cut some lines because they to long...

...
-rw-r--r-- 1 hstan hstan 4341486 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ext2.gz
-rw-r--r-- 1 hstan hstan 4341550 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ext2.gz.u-boot
-rw-r--r-- 1 hstan hstan 5636096 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.jffs2
-rw-r--r-- 1 hstan hstan 1485 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.manifest
-rw-r--r-- 1 hstan hstan 4322725 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.tar.gz
-rw-r--r-- 1 hstan hstan 7979008 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ubi
-rw-r--r-- 1 hstan hstan 7449600 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ubifs

...

... Just cut some lines because they to long...

...
drwxr-xr-x 2 hstan hstan 4096 Mar 5 10:11 hv
drwxr-xr-x 3 hstan hstan 4096 Mar 5 10:11 hv-cfg
-rw-rw-r-- 2 hstan hstan 5797055 Mar 5 10:13 modules--4.1-r0-t4240rdb-64b-20170305031119.tgz
lrwxrwxrwx 1 hstan hstan 47 Mar 5 10:13 modules-t4240rdb-64b.tgz -> modules--4.1-r0-t4240rdb-64b-20170305031119.tgz
drwxr-xr-x 3 hstan hstan 4096 Mar 5 10:12 rcw
-rw-r--r-- 2 hstan hstan 294 Mar 5 10:28 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
-rw-r--r-- 1 hstan hstan 257 Mar 5 10:29 ubinize.cfg
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot.bin -> u-boot-nor-2016.09+fslgit-r0.bin
-rwxr-xr-x 2 hstan hstan 786432 Mar 5 10:11 u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot-nor.bin -> u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot-t4240rdb-64b.bin -> u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 46 Mar 5 10:13 uImage -> uImage--4.1-r0-t4240rdb-64b-20170305031119.bin
-rw-r--r-- 2 hstan hstan 60756 Mar 5 10:13 uImage--4.1-r0-t4240rdb-20170305031119.dtb
-rw-r--r-- 2 hstan hstan 5105052 Mar 5 10:13 uImage--4.1-r0-t4240rdb-64b-20170305031119.bin
-rw-r--r-- 2 hstan hstan 64230 Mar 5 10:13 uImage--4.1-r0-t4240rdb-usdpaa-20170305031119.dtb
-rw-r--r-- 2 hstan hstan 63665 Mar 5 10:13 uImage--4.1-r0-t4240rdb-usdpaa-shared-interfaces-20170305031119.dtb

...

... Just cut some lines because they to long...

...

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

e. Perform Builds.


e. Build fsl-image-minimal.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ bitbake fsl-image-minimal
WARNING: Host distribution "Ubuntu-16.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Parsing recipes: 100% |######################################################################################################################################################| Time: 00:00:54
Parsing of 2689 .bb files complete (0 cached, 2689 parsed). 6064 targets, 702 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION = "1.28.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "Ubuntu-16.04"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t4240rdb-64b"
DISTRO = "fsl-qoriq"
DISTRO_VERSION = "2.0"
TUNE_FEATURES = "m64 fpu-hard e6500 altivec"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "HEAD:9a211a4a2c1bfcb292dc97d8dcac149bca9e3f1b"
meta-oe
meta-multimedia
meta-gnome
meta-networking
meta-perl
meta-python
meta-ruby
meta-filesystems
meta-webserver
meta-xfce = "HEAD:dc5634968b270dde250690609f0015f881db81f2"
meta-freescale = "HEAD:7facbdb726e2dda0515e084c2066a4b8dd99c6d2"
meta-freescale-internal = "HEAD:4829293f807e35a1111e79763294fc8b98b97810"
meta-freescale-extra = "HEAD:bee911b027e0480b034674d0ddee3fcb06d2e985"
meta-virtualization = "HEAD:042425c1d98bdd7e44a62789bd03b375045266f5"
meta-java = "HEAD:8b776ac68f9af4596be3824152bcf0bc6b67fa1d"
meta-openstack
meta-openstack-aio-deploy
meta-openstack-compute-deploy
meta-openstack-compute-test-config
meta-openstack-controller-deploy
meta-openstack-controller-test-config
meta-openstack-qemu
meta-openstack-swift-deploy
meta-cloud-services = "HEAD:d8bc0d92d0f741e2ea1e6d3d9bc6b7a091d03cfb"
meta-security = "HEAD:f9367e71f923fc7d2fb600208e2b97535ea41777"
meta-nxp-npi-1609.old = "master:68e60ceae569d4f1ae898eb1ca2ddada1d0f3bc5"
meta-nxp-npi-1701 = "jethro-sdk-v2.0-ga-1701:11975eebce9096a3567d00ba2067a2dbd2ed4d5c"
meta-nxp-npi-ga.1611 = "jethro-sdk-v2.0-ga-16.11:81df2dc9f9723ff59417e57af1700735770ddff2"

NOTE: Preparing RunQueue
NOTE: Checking sstate mirror object availability (for 23 objects)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1500 tasks of which 1310 didn't need to be rerun and all succeeded.

Summary: There was 1 WARNING message shown.

OK, I can see the results:

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ ls -la tmp/deploy/images/t4240rdb-64b/
total 45136
drwxr-xr-x 5 hstan hstan 4096 Mar 5 10:16 .
drwxrwxr-x 3 hstan hstan 4096 Mar 5 10:11 ..
-rwxr-xr-x 2 hstan hstan 1184 Mar 5 10:11 byte_swap.tcl
-rw-r--r-- 2 hstan hstan 133738 Mar 5 10:11 cs4315-cs4340-PHY-ucode.txt
-rw-r--r-- 2 hstan hstan 32604 Mar 5 10:11 fsl_fman_ucode_t4240_r2.0_106_4_18.bin
-rw-r--r-- 2 hstan hstan 35252 Mar 5 10:11 fsl_fman_ucode_t4240_r2.0_108_4_5.bin
-rw-r--r-- 1 hstan hstan 4341486 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ext2.gz
-rw-r--r-- 1 hstan hstan 4341550 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ext2.gz.u-boot
-rw-r--r-- 1 hstan hstan 5636096 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.jffs2
-rw-r--r-- 1 hstan hstan 1485 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.manifest
-rw-r--r-- 1 hstan hstan 4322725 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.tar.gz
-rw-r--r-- 1 hstan hstan 7979008 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ubi
-rw-r--r-- 1 hstan hstan 7449600 Mar 5 10:16 fsl-image-minimal-t4240rdb-64b-20170305031119.rootfs.ubifs
...
... I just cut some lines
...
drwxr-xr-x 2 hstan hstan 4096 Mar 5 10:11 hv
drwxr-xr-x 3 hstan hstan 4096 Mar 5 10:11 hv-cfg
-rw-rw-r-- 2 hstan hstan 5797055 Mar 5 10:13 modules--4.1-r0-t4240rdb-64b-20170305031119.tgz
lrwxrwxrwx 1 hstan hstan 47 Mar 5 10:13 modules-t4240rdb-64b.tgz -> modules--4.1-r0-t4240rdb-64b-20170305031119.tgz
drwxr-xr-x 3 hstan hstan 4096 Mar 5 10:12 rcw
-rw-r--r-- 2 hstan hstan 294 Mar 5 10:15 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
-rw-r--r-- 1 hstan hstan 260 Mar 5 10:16 ubinize.cfg
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot.bin -> u-boot-nor-2016.09+fslgit-r0.bin
-rwxr-xr-x 2 hstan hstan 786432 Mar 5 10:11 u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot-nor.bin -> u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 32 Mar 5 10:11 u-boot-t4240rdb-64b.bin -> u-boot-nor-2016.09+fslgit-r0.bin
lrwxrwxrwx 1 hstan hstan 46 Mar 5 10:13 uImage -> uImage--4.1-r0-t4240rdb-64b-20170305031119.bin
-rw-r--r-- 2 hstan hstan 60756 Mar 5 10:13 uImage--4.1-r0-t4240rdb-20170305031119.dtb
-rw-r--r-- 2 hstan hstan 5105052 Mar 5 10:13 uImage--4.1-r0-t4240rdb-64b-20170305031119.bin
-rw-r--r-- 2 hstan hstan 64230 Mar 5 10:13 uImage--4.1-r0-t4240rdb-usdpaa-20170305031119.dtb
-rw-r--r-- 2 hstan hstan 63665 Mar 5 10:13 uImage--4.1-r0-t4240rdb-usdpaa-shared-interfaces-20170305031119.dtb
lrwxrwxrwx 1 hstan hstan 46 Mar 5 10:13 uImage-t4240rdb-64b.bin -> uImage--4.1-r0-t4240rdb-64b-20170305031119.bin
lrwxrwxrwx 1 hstan hstan 42 Mar 5 10:13 uImage-t4240rdb.dtb -> uImage--4.1-r0-t4240rdb-20170305031119.dtb
lrwxrwxrwx 1 hstan hstan 49 Mar 5 10:13 uImage-t4240rdb-usdpaa.dtb -> uImage--4.1-r0-t4240rdb-usdpaa-20170305031119.dtb
lrwxrwxrwx 1 hstan hstan 67 Mar 5 10:13 uImage-t4240rdb-usdpaa-shared-interfaces.dtb -> uImage--4.1-r0-t4240rdb-usdpaa-shared-interfaces-20170305031119.dtb

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

c. Follow the instructions in the "Set Up Host Environment" of "QorIQ SDK v2.0-1701 Documentation".

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev xterm


Everything worked fine!

$ sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 ia32-libs lib32ncurses5-dev

I could install lib32ncurses5 lib32bz2-1.0 ib32ncurses5-dev but not lib32z1 and ia32-libs because Ubuntu 16.04 say that they don't need on version 16.04.

d. Set Up Poky.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto$ source ./fsl-setup-env -m t4240rdb-64b
Do you accept the EULA you just read? (y/n) y
EULA has been accepted.
Welcome to Freescale QorIQ SDK (Reference Distro)

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/

You can now run 'bitbake <target>'

Targets specific to Freescale targets:
fsl-image-core
fsl-image-full
fsl-image-kernelitb
fsl-image-mfgtool
fsl-image-minimal
fsl-image-virt
fsl-toolchain
To return to this build environment later please run:
. /home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b/SOURCE_THIS

This my local.conf file:

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/build_t4240rdb-64b$ cat conf/local.conf
MACHINE ??= 't4240rdb-64b'
DISTRO ?= 'fsl-qoriq'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
ASSUME_PROVIDED += "libsdl-native"
CONF_VERSION = "1"

# Parallelism Options
BB_NUMBER_THREADS = "24"
PARALLEL_MAKE = "-j 24"
DL_DIR = "/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/downloads"
SSTATE_DIR = "/home/hstan/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto/sstate-cache"
INHERIT += "own-mirrors"
SOURCE_MIRROR_URL ?= "http://git.freescale.com/source/"
SSTATE_MIRRORS = "file://.*/(.*)/(.*) file://${SSTATE_DIR}/native/\1/\2 \n"
# use xz to compress sstate
SSTATE_PKG_SUFFIX = "txz"
SSTATE_PKG_TARZIPPROG = "xz"
ACCEPT_FSL_EULA = "1"

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

I. I tried to build and run the emulation QEMUT guest(4240RDB-64b built from QorIQ SDK 2.0) on Ubuntu-16.0.4 host (Hardware: HP Proliant DL380 GEN9).

1. Build Linux kernel and root filesystem,... guided in "QorIQ SDK v2.0-1701 Documentation":

a. Setup the Linux host with Ubuntu-16.0.4 x64 on HP Proliant DL380 GEN9 server.
I think no need to describe this step because it is too basic!

b. Install SDK 2.0 on Linux host above.

$ sudo mount -o loop QorIQ-Linux-SDK-v2.0-SOURCE.iso /mnt/cdrom
$ /mnt/cdrom/install

Everything was OK! My SDK installed in ~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto.

hstan@server-06:~/Build/nxp/QorIQ-SDK-V2.0-20160527-yocto$ ./sources/meta-freescale/scripts/host-prepare.sh
Verifying sudo permission to execute apt-get command.
Now we're going to install all the other development packages needed to build Yocto, please wait
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version (12.1ubuntu2).
diffstat is already the newest version (1.61-1).
gawk is already the newest version (1:4.1.3+dfsg-0.1).
gcc-multilib is already the newest version (4:5.3.1-1ubuntu1).
git-core is already the newest version (1:2.7.4-0ubuntu1).
libsdl1.2-dev is already the newest version (1.2.15+dfsg1-3).
screen is already the newest version (4.3.1-2build1).
unzip is already the newest version (6.0-20ubuntu1).
xterm is already the newest version (322-1ubuntu1).
xz-utils is already the newest version (5.1.1alpha+20120614-2ubuntu2).
chrpath is already the newest version (0.16-1).
libstring-crc32-perl is already the newest version (1.5-1build2).
socat is already the newest version (1.7.3.1-1).
texinfo is already the newest version (6.1.0.dfsg.1-5).
tofrodos is already the newest version (1.7.13+ds-2ubuntu1).
vim-common is already the newest version (2:7.4.1689-3ubuntu1.2).
wget is already the newest version (1.17.1-1ubuntu1.1).
0 upgraded, 0 newly installed, 0 to remove and 339 not upgraded.

Done. You're ready to go with Yocto build now

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

@Yiping Wang: Thanks for you your help.


I can provide more information about the things I've done as follows:
I. I tried to build and run the emulation QEMUT guest(4240RDB-64b built from QorIQ SDK 2.0) on Ubuntu-16.0.4 host (Hardware: HP Proliant DL380 GEN9).
1. Build Linux kernel and root filesystem,... guided in "QorIQ SDK v2.0-1701 Documentation":
a. Setup the Linux host with Ubuntu-16.0.4 x64 on HP Proliant DL380 GEN9 server.
b. Install SDK 2.0 on Linux host above.
c. Follow the instructions in the "Set Up Host Environment" of "QorIQ SDK v2.0-1701 Documentation".
d. Set Up Poky.
e. Perform Builds:
e.1. Build fsl-image-minimal.
e.2. Build fsl-image-minimal.
f. Run t4240rdb-64b QEMU guest on Ubuntu 16.04 host
f.1. Preparing for QEMU.
f.2. Run QEMU.
II. I deploy the 4240RDB-64b built (Linux Kernel and Root Filesystem) to a real Reference Design Board (Device that I bought from NXP).

I'll detail them so you can see something to help me again!

0 Kudos
Reply

8,992 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Ho Sy Tan,

First please build Kernel image with KVM enabled.

1.Enabling KVM
[*] Virtualization --->
    [*] KVM support for PowerPC E6500 processors
    [*] KVM in-kernel MPIC emulation

Please setup qemu with the following commands.

root@t4240rdb:~# qemu-system-ppc64 -enable-kvm -nographic -m 1024 -M ppce500 -kernel uImage -i inimal-t4240qds-64b.ext2.gz  -append "root=/dev/ram rw console=ttyS0,115200"  -serial tcp::4444, server
QEMU 2.4.0 monitor - type 'help' for more information
(qemu) QEMU waiting for connection on: disconnected:tcp::4444,server
 

Then telnet the qemu console:

b25805@star:~$ telnet 192.168.2.73 4444


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

8,992 Views
hosytan
Contributor III

Thanks Wang again, now I trying folow you help at some my following posts.

0 Kudos
Reply

8,992 Views
hosytan
Contributor III

Thanks Yiping Wang Employ&#233;

I think your solution is for qemu emulation, but in the real board the issue still happends...

I don't know why issued the error, but when I deploy the image to SD card and run on T4240RDB board, I have the same problems. It couldn't load the linux kernel with the same messages:

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000004

CPU: 0 PID: 1 Comm: init Not tainted 4.1.8-rt8+gbd51baf #1
Call Trace:
[c0000000390538d0] [c0000000007a34fc] .dump_stack+0x8c/0xb8 (unreliable)
[c000000039053950] [c0000000007a0e34] .panic+0xf0/0x270
[c0000000390539f0] [c00000000003b520] .do_exit+0xa00/0xa04
[c000000039053ae0] [c00000000003c5a4] .do_group_exit+0x54/0xec
[c000000039053b70] [c000000000048640] .get_signal+0x2f8/0x674
[c000000039053c70] [c0000000000092bc] .do_signal+0x44/0x218
[c000000039053db0] [c00000000000959c] .do_notify_resume+0x64/0x78
[c000000039053e30] [c000000000000c4c] .ret_from_except_lite+0x78/0x7c
Rebooting in 180 seconds..

Any idea for my issue?

Thanks in advanced.

0 Kudos
Reply

8,992 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Ho Sy Tan,

I have verified my above procedure on the target board.

Would you please attach the whole log including Kernel booting up and your operations on the target board.


Have a great day,
Yiping

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------