Busybox error

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

Busybox error

5,030 Views
masasi
Contributor II

Hi,

I am booting my P1012 microprocessor using Freescale SDK 1.6 but kernel hangs when trying to read /linuxrc file with the following error:

Freeing unused kernel memory: 248K (c0861000 - c089f000)
Failed to execute /init (error -8)
Bad trap at PC: 101063d0, SR: 2d000, vector=2020
linuxrc[1]: unhandled signal 5 at 00000000 nip 101063d0 lr 101066b0 code 0
Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005

CPU: 0 PID: 1 Comm: linuxrc Not tainted 3.18.10 #294
Call Trace:
[ef03fd60] [c06d0cc4] panic+0xcc/0x1fc (unreliable)
[ef03fdc0] [c003258c] complete_and_exit+0x0/0x28
[ef03fe10] [c003260c] do_group_exit+0x44/0x98
[ef03fe20] [c003b73c] get_signal+0x138/0x478
[ef03fe70] [c00061e0] do_signal+0x34/0x190
[ef03ff30] [c000640c] do_notify_resume+0x5c/0x74
[ef03ff40] [c000c74c] do_user_signal+0x74/0xc4
--- interrupt: 2020 at 0x101063d0
    LR = 0x101066b0
Rebooting in 180 seconds..

I have used rootfs provided by SDK 1.6 at build_p1021rdb_release/tmp/deploy/images/p1021rdb/fsl-image-minimal-p1021rdb-20150428080427.rootfs.cpio.gz, then I have decompressed fsl-image-minimal-p1021rdb-20150428080427.rootfs and created a ramfs file system (My bootargs are console=ttyS0,115200 root=/dev/ram rw init=/linuxrc rootfstype=ramfs) and rootfs :

drwxrwxrwx 17 root  root  4096 Apr 28 15:10 .

drwxrwxrwx  2 root  root  4096 Apr 28 14:40 bin

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 boot

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 dev

drwxrwxrwx 18 root  root  4096 Apr 28 14:40 etc

drwxrwsrwx  3 root  root  4096 Apr 28 14:40 home

-rwxrwxrwx  1 root  root     0 Apr 28 10:05 init

drwxrwxrwx  4 root  root  4096 Apr 28 14:40 lib

lrwxrwxrwx  1 root  root    12 Apr 28 14:40 linuxrc -> /bin/busybox

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 media

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 mnt

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 proc

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 run

drwxrwxrwx  2 root  root  4096 Apr 28 14:40 sbin

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 sys

drwxrwxrwx  2 root  root  4096 Jan 23 12:38 tmp

drwxrwxrwx  9 root  root  4096 Apr 28 14:40 usr

drwxrwxrwx  7 root  root  4096 Apr 28 14:40 var

I have tried to recompile busybox as described in QorIQ-SDK-1.6-IC-RevB.pdf page 1769 but I always get the same error message. Shall I use a different rootfs from fsl-image-minimal-p1021rdb-20150428080427.rootfs.cpio.gz?

Thanks in advance,

Regards,

Maria

0 Kudos
Reply
8 Replies

2,871 Views
marvinzhao
Contributor I

The problem has  been solved by turning on CONFIG_SPE in .config file

0 Kudos
Reply

2,871 Views
marvinzhao
Contributor I

Does this problem has been solved? I just have exactly the same problem on P1020. I am wondering how to solve this issue?

0 Kudos
Reply

2,871 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Maria Saiz,

Please add "cpio.gz.u-boot" in variable "IMAGE_FSTYPES" in the recipe meta-fsl-networking/images/fsl-image-minimal.bb, then use "bitbake fsl-image-minimal" to generate the ramdisk filesystem fsl-image-minimal-<target>.cpio.gz.u-boot. The following is the boot log.

=> pri ramboot

ramboot=setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs;tftp $ramdiskaddr $ramdiskfile;tftp $loadaddr $bootfile;tftp $fdtaddr $fdtfile;bootm $loadaddr $ramdiskaddr $fdtaddr

=> setenv ramdiskfile wyp/t1040rdb/fsl-image-minimal-t1040rdb.cpio.gz.u-boot

=> setenv bootfile wyp/t1040rdb/uImage-t1040rdb.bin

=> setenv fdtfile wyp/t1040qds.dtb

=> save

Saving Environment to Flash...

Un-Protected 1 sectors

Erasing Flash...

. done

Erased 1 sectors

Writing to Flash... 9....8....7....6....5....4....3....2....1....9....8....7....6....5....4....3....2....1....done

Protected 1 sectors

=> run ramboot

Using e1000#0 device

TFTP from server 192.168.2.1; our IP address is 192.168.2.89

Filename 'wyp/t1040rdb/fsl-image-minimal-t1040rdb.cpio.gz.u-boot'.

Load address: 0x2000000

Loading: #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        ################################################

        5.6 MiB/s

done

Bytes transferred = 3240598 (317296 hex)

Using e1000#0 device

TFTP from server 192.168.2.1; our IP address is 192.168.2.89

Filename 'wyp/t1040rdb/uImage-t1040rdb.bin'.

Load address: 0x1000000

Loading: #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #################################################################

        #####

        4.8 MiB/s

done

Bytes transferred = 4351678 (4266be hex)

Using e1000#0 device

TFTP from server 192.168.2.1; our IP address is 192.168.2.89

Filename 'wyp/t1040qds.dtb'.

Load address: 0xc00000

Loading: ########

        1.3 MiB/s

done

Bytes transferred = 38654 (96fe hex)

WARNING: adjusting available memory to 30000000

## Booting kernel from Legacy Image at 01000000 ...

  Image Name:  Linux-3.12.19-rt30-QorIQ-SDK-V1.

  Created:      2014-12-13  10:02:10 UTC

  Image Type:  PowerPC Linux Kernel Image (gzip compressed)

  Data Size:    4351614 Bytes = 4.2 MiB

  Load Address: 00000000

  Entry Point:  00000000

  Verifying Checksum ... OK

## Loading init Ramdisk from Legacy Image at 02000000 ...

  Image Name:  fsl-image-minimal-t1040rdb-20150

  Created:      2015-05-10  8:13:52 UTC

  Image Type:  PowerPC Linux RAMDisk Image (gzip compressed)

  Data Size:    3240534 Bytes = 3.1 MiB

  Load Address: 00000000

  Entry Point:  00000000

  Verifying Checksum ... OK

## Flattened Device Tree blob at 00c00000

  Booting using the fdt blob at 0xc00000

  Uncompressing Kernel Image ... OK

  Loading Ramdisk to 2fce8000, end 2ffff256 ... OK

  Loading Device Tree to 03fe3000, end 03fff6fd ... OK

Warning: MAC address for l2switch not found

Using CoreNet Generic machine description

Memory CAM mapping: 256/256/256 Mb, residual: 3328Mb

Linux version 3.12.19-rt30-QorIQ-SDK-V1.7+g6619b8b (jenkins@neptune) (gcc version 4.8.1 (GCC) ) #1 SMP Sat Dec 13 18:01:59 CST 2014

Found initrd at 0xefce8000:0xeffff256

No /soc@ffe000000/qman@318000 property 'fsl,qman-fqd', using memblock_alloc(0000000000400000)

No /soc@ffe000000/qman@318000 property 'fsl,qman-pfdr', using memblock_alloc(0000000002000000)

Qman ver:0a01,03,01,03

No /soc@ffe000000/bman@31a000 property 'fsl,bman-fbpr', using memblock_alloc(0000000001000000)

Bman ver:0a02,02,01

pme: No /soc@ffe000000/pme@316000 property 'fsl,pme-pdsr', using memblock_alloc(0x0000000001000000)

pme: No /soc@ffe000000/pme@316000 property 'fsl,pme-sre', using memblock_alloc(0x0000000000a00000)

No USDPAA memory, no 'usdpaa_mem' bootarg

CPU maps initialized for 1 thread per core

bootconsole [udbg0] enabled

setup_arch: bootmem

CoreNet Generic board from Freescale Semiconductor

arch: exit

Zone ranges:

  DMA      [mem 0x00000000-0x2fffffff]

  Normal  empty

  HighMem  [mem 0x30000000-0xffffffff]

Movable zone start for each node

Early memory node ranges

  node  0: [mem 0x00000000-0xffffffff]

MMU: Allocated 1088 bytes of context maps for 255 contexts

PERCPU: Embedded 8 pages/cpu @c2993000 s9792 r8192 d14784 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 1047040

Kernel command line: root=/dev/ram rw console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Sorting __ex_table...

Memory: 3996456K/4194304K available (6820K kernel code, 332K rwdata, 1808K rodata, 284K init, 460K bss, 197848K reserved, 3402676K highmem)

Kernel virtual memory layout:

  * 0xfff5f000..0xfffff000  : fixmap

  * 0xffc00000..0xffe00000  : highmem PTEs

  * 0xffbfa000..0xffc00000  : early ioremap

  * 0xf1000000..0xffbfa000  : vmalloc & ioremap

Hierarchical RCU implementation.

        RCU debugfs-based tracing is enabled.

        RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=2.

NR_IRQS:512 nr_irqs:512 16

mpic: Setting up MPIC " OpenPIC  " version 1.2 at ffe040000, max 2 CPUs

mpic: ISU size: 512, shift: 9, mask: 1ff

mpic: Initializing for 512 sources

clocksource: timebase mult[1aaaaaab] shift[24] registered

Console: colour dummy device 80x25

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

mpic: requesting IPIs...

e500 family performance monitor hardware support registered

Brought up 2 CPUs

devtmpfs: initialized

NET: Registered protocol family 16

Found FSL PCI host bridge at 0x0000000ffe240000. Firmware bus number: 0->1

PCI host bridge /pcie@ffe240000  ranges:

MEM 0x0000000c00000000..0x0000000c0fffffff -> 0x00000000e0000000

  IO 0x0000000ff8000000..0x0000000ff800ffff -> 0x0000000000000000

/pcie@ffe240000: PCICSRBAR @ 0xff000000

/pcie@ffe240000: Setup 64-bit PCI DMA window

/pcie@ffe240000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.

/pcie@ffe240000: DMA window size is 0xe0000000

EDAC PCI0: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffe240000.pcie' (INTERRUPT)

MPC85xx_edac acquired irq 20 for PCI Err

MPC85xx_edac PCI err registered

Found FSL PCI host bridge at 0x0000000ffe250000. Firmware bus number: 0->1

PCI host bridge /pcie@ffe250000  ranges:

MEM 0x0000000c10000000..0x0000000c1fffffff -> 0x00000000e0000000

  IO 0x0000000ff8010000..0x0000000ff801ffff -> 0x0000000000000000

/pcie@ffe250000: PCICSRBAR @ 0xff000000

/pcie@ffe250000: Setup 64-bit PCI DMA window

/pcie@ffe250000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.

/pcie@ffe250000: DMA window size is 0xe0000000

EDAC PCI1: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffe250000.pcie' (INTERRUPT)

MPC85xx_edac acquired irq 21 for PCI Err

MPC85xx_edac PCI err registered

Found FSL PCI host bridge at 0x0000000ffe260000. Firmware bus number: 0->0

PCI host bridge /pcie@ffe260000  ranges:

MEM 0x0000000c20000000..0x0000000c2fffffff -> 0x00000000e0000000

  IO 0x0000000ff8020000..0x0000000ff802ffff -> 0x0000000000000000

/pcie@ffe260000: PCICSRBAR @ 0xff000000

/pcie@ffe260000: Setup 64-bit PCI DMA window

/pcie@ffe260000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.

/pcie@ffe260000: DMA window size is 0xe0000000

EDAC PCI2: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffe260000.pcie' (INTERRUPT)

MPC85xx_edac acquired irq 22 for PCI Err

MPC85xx_edac PCI err registered

Found FSL PCI host bridge at 0x0000000ffe270000. Firmware bus number: 0->0

PCI host bridge /pcie@ffe270000  ranges:

MEM 0x0000000c30000000..0x0000000c3fffffff -> 0x00000000e0000000

  IO 0x0000000ff8030000..0x0000000ff803ffff -> 0x0000000000000000

/pcie@ffe270000: PCICSRBAR @ 0xff000000

/pcie@ffe270000: Setup 64-bit PCI DMA window

/pcie@ffe270000: WARNING: Outbound window cfg leaves gaps in memory map. Adjusting the memory map could reduce unnecessary bounce buffering.

/pcie@ffe270000: DMA window size is 0xe0000000

EDAC PCI3: Giving out device to module 'MPC85xx_edac' controller 'mpc85xx_pci_err': DEV 'ffe270000.pcie' (INTERRUPT)

MPC85xx_edac acquired irq 23 for PCI Err

MPC85xx_edac PCI err registered

software IO TLB [mem 0x03ff7000-0x07ff7000] (64MB) mapped at [c3ff7000-c7ff6fff]

PCI: Probing PCI hardware

fsl-pci ffe240000.pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [io  0xf1040000-0xf104ffff] (bus address [0x0000-0xffff])

pci_bus 0000:00: root bus resource [mem 0xc00000000-0xc0fffffff] (bus address [0xe0000000-0xefffffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

pci 0000:00:00.0: ignoring class 0x0b2000 (doesn't match header type 01)

pci 0000:00:00.0: PCI bridge to [bus 01-ff]

fsl-pci ffe250000.pcie: PCI host bridge to bus 0001:02

pci_bus 0001:02: root bus resource [io  0xf10a0000-0xf10affff] (bus address [0x0000-0xffff])

pci_bus 0001:02: root bus resource [mem 0xc10000000-0xc1fffffff] (bus address [0xe0000000-0xefffffff])

pci_bus 0001:02: root bus resource [bus 02-ff]

pci 0001:02:00.0: ignoring class 0x0b2000 (doesn't match header type 01)

pci 0001:02:00.0: Primary bus is hard wired to 0

pci 0001:02:00.0: bridge configuration invalid ([bus 01-01]), reconfiguring

pci 0001:02:00.0: PCI bridge to [bus 03-ff]

fsl-pci ffe260000.pcie: PCI host bridge to bus 0002:04

pci_bus 0002:04: root bus resource [io  0xf1100000-0xf110ffff] (bus address [0x0000-0xffff])

pci_bus 0002:04: root bus resource [mem 0xc20000000-0xc2fffffff] (bus address [0xe0000000-0xefffffff])

pci_bus 0002:04: root bus resource [bus 04-ff]

pci 0002:04:00.0: ignoring class 0x0b2000 (doesn't match header type 01)

pci 0002:04:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring

pci 0002:04:00.0: PCI bridge to [bus 05-ff]

fsl-pci ffe270000.pcie: PCI host bridge to bus 0003:06

pci_bus 0003:06: root bus resource [io  0xf1160000-0xf116ffff] (bus address [0x0000-0xffff])

pci_bus 0003:06: root bus resource [mem 0xc30000000-0xc3fffffff] (bus address [0xe0000000-0xefffffff])

pci_bus 0003:06: root bus resource [bus 06-ff]

pci 0003:06:00.0: ignoring class 0x0b2000 (doesn't match header type 01)

pci 0003:06:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring

pci 0003:06:00.0: PCI bridge to [bus 07-ff]

pci 0000:00:00.0: BAR 9: can't assign mem pref (size 0x100000)

pci 0000:01:00.0: BAR 6: assigned [mem 0xc00040000-0xc0005ffff pref]

pci 0000:00:00.0: PCI bridge to [bus 01]

pci 0000:00:00.0:  bridge window [io  0xf1040000-0xf104ffff]

pci 0000:00:00.0:  bridge window [mem 0xc00000000-0xc0fffffff]

pci_bus 0000:00: Some PCI device resources are unassigned, try booting with pci=realloc

pci 0001:02:00.0: PCI bridge to [bus 03]

pci 0001:02:00.0:  bridge window [io  0xf10a0000-0xf10affff]

pci 0001:02:00.0:  bridge window [mem 0xc10000000-0xc1fffffff]

pci 0002:04:00.0: PCI bridge to [bus 05]

pci 0002:04:00.0:  bridge window [io  0xf1100000-0xf110ffff]

pci 0002:04:00.0:  bridge window [mem 0xc20000000-0xc2fffffff]

pci 0003:06:00.0: PCI bridge to [bus 07]

pci 0003:06:00.0:  bridge window [io  0xf1160000-0xf116ffff]

pci 0003:06:00.0:  bridge window [mem 0xc30000000-0xc3fffffff]

bio: create slab <bio-0> at 0

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

Bman err interrupt handler present

Bman portal initialised, cpu 0

Bman portal initialised, cpu 1

Bman portals initialised

Qman err interrupt handler present

Qman portal initialised, cpu 0

Qman portal initialised, cpu 1

Qman portals initialised

Bman: BPID allocator includes range 32:32

Qman: FQID allocator includes range 256:512

Qman: FQID allocator includes range 32768:32768

Qman: CGRID allocator includes range 0:256

Qman: pool channel allocator includes range 1025:15

fsl-ifc ffe124000.localbus: Freescale Integrated Flash Controller

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: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

Trying to unpack rootfs image as initramfs...

Freeing initrd memory: 3164K (efce8000 - effff000)

audit: initializing netlink socket (disabled)

type=2000 audit(0.692:1): initialized

bounce pool size: 64 pages

HugeTLB registered 1 MB page size, pre-allocated 0 pages

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.30 [Flags: R/O].

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

msgmni has been set to 1165

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

Freescale Display Interface Unit (DIU) framebuffer driver

fsl_diu_perpare: Borad not support DIU. Can't dispaly video.

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

serial8250.0: ttyS0 at MMIO 0xffe11c500 (irq = 36, base_baud = 18750000) is a 16550A_FSL64

console [ttyS0] enabled, bootconsole disabled

console [ttyS0] enabled, bootconsole disabled

serial8250.0: ttyS1 at MMIO 0xffe11c600 (irq = 36, base_baud = 18750000) is a 16550A_FSL64

serial8250.0: ttyS2 at MMIO 0xffe11d500 (irq = 37, base_baud = 18750000) is a 16550A_FSL64

serial8250.0: ttyS3 at MMIO 0xffe11d600 (irq = 37, base_baud = 18750000) is a 16550A_FSL64

ePAPR hypervisor byte channel driver

Generic non-volatile memory driver v1.1

brd: module loaded

loop: module loaded

st: Version 20101219, fixed bufsize 32768, s/g segs 256

fsl-sata ffe220000.sata: Sata FSL Platform/CSB Driver init

scsi0 : sata_fsl

ata1: SATA max UDMA/133 irq 68

fsl-sata ffe221000.sata: Sata FSL Platform/CSB Driver init

scsi1 : sata_fsl

ata2: SATA max UDMA/133 irq 69

fe8000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

number of CFI chips: 1

ONFI param page 0 valid

ONFI flash detected

NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron MT29F4G08ABBDAH4), 512MiB, page size: 2048, OOB size: 64

Bad block table found at page 262080, version 0x01

Bad block table found at page 262016, version 0x01

4 ofpart partitions found on MTD device fff800000.flash

Creating 4 MTD partitions on "fff800000.flash":

0x000000000000-0x000000100000 : "NAND U-Boot Image"

0x000000100000-0x000000200000 : "NAND DTB Image"

0x000000200000-0x000000c00000 : "NAND Linux Kernel Image"

0x000000c00000-0x000020000000 : "NAND RFS Image"

fsl,ifc-nand fff800000.nand: IFC NAND device at 0xfff800000, bank 2

fsl_espi ffe110000.spi: master is unqueued, this is deprecated

m25p80 spi32766.0: found n25q128a11, expected n25q512a

m25p80 spi32766.0: n25q128a11 (16384 Kbytes)

fsl_espi ffe110000.spi: at 0xf1154000 (irq = 53)

libphy: Fixed MDIO Bus: probed

mdio-mux-mmioreg fffdf0054.mdio-mux-emi1: failed to register mdio-mux bus /localbus@ffe124000/board-control@3,0/mdio-mux-emi1

platform fffdf0054.mdio-mux-emi1: Driver mdio-mux-mmioreg requests probe deferral

libphy: Freescale XGMAC MDIO Bus: probed

Freescale FM module (Dec 13 2014:18:01:42), FMD API version 21.1.0

cpu0/0: ! MAJOR FM Error [CPU00, drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c:275 ReadFmPortDevTreeNode]: Invalid Value;

cpu0/0: of_get_property(/soc@ffe000000/fman@400000/port@86000, cell-index) failedcpu0/0:

fsl-fman-port: probe of ffe486000.port failed with error -5

cpu0/0: ! MAJOR FM Error [CPU00, drivers/net/ethernet/freescale/fman/src/wrapper/lnxwrp_fm_port.c:275 ReadFmPortDevTreeNode]: Invalid Value;

cpu0/0: of_get_property(/soc@ffe000000/fman@400000/port@87000, cell-index) failedcpu0/0:

fsl-fman-port: probe of ffe487000.port failed with error -5

Freescale FM Ports module (Dec 13 2014:18:01:42)

dpaa_debugfs: FSL DPAA Ethernet debugfs entries ()

dpaa_generic_debugfs: FSL DPAA Ethernet debugfs entries ()

fsl_mac: fsl_mac: FSL FMan MAC API based driver ()

fsl_mac ffe4e0000.ethernet: FMan MEMAC

fsl_mac ffe4e0000.ethernet: FMan MAC address: 00:e0:0c:00:45:00

fsl_mac ffe4e2000.ethernet: FMan MEMAC

fsl_mac ffe4e2000.ethernet: FMan MAC address: 00:e0:0c:00:45:01

fsl_mac ffe4e4000.ethernet: FMan MEMAC

fsl_mac ffe4e4000.ethernet: FMan MAC address: 00:04:9f:03:05:e6

fsl_mac ffe4e6000.ethernet: FMan MEMAC

fsl_mac ffe4e6000.ethernet: FMan MAC address: 00:04:9f:03:05:e7

fsl_mac ffe4e8000.ethernet: FMan MEMAC

fsl_mac ffe4e8000.ethernet: FMan MAC address: 00:04:9f:03:05:e8

fsl_dpa: FSL DPAA Ethernet driver ()

fsl_dpa: fsl_dpa: Probed interface eth0

fsl_dpa: fsl_dpa: Probed interface eth1

fsl_dpa: fsl_dpa: Probed interface eth2

fsl_dpa: fsl_dpa: Probed interface eth3

fsl_dpa: fsl_dpa: Probed interface eth4

fsl_dpa_shared: FSL DPAA Shared Ethernet driver ()

fsl_dpa_proxy: FSL DPAA Proxy initialization driver ()

fsl_oh: FSL FMan Offline Parsing port driver ()

fsl_oh dpa-fman0-oh.18: Found OH node handle compatible with fsl,dpa-oh.

fsl_oh dpa-fman0-oh.18: Allocating 0 ingress frame queues duples

fsl_oh dpa-fman0-oh.18: NULL drvdata from fm port dev /soc@ffe000000/fman@400000/port@86000!

fsl_oh: probe of dpa-fman0-oh.18 failed with error -22

e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI

e1000: Copyright (c) 1999-2006 Intel Corporation.

e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k

e1000e: Copyright(c) 1999 - 2013 Intel Corporation.

e1000e 0000:01:00.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode

ata1: No Device OR PHYRDY change,Hstatus = 0xa0000000

ata1: SATA link down (SStatus 10 SControl 300)

ata2: No Device OR PHYRDY change,Hstatus = 0x80000000

ata2: SATA link down (SStatus 10 SControl 300)

e1000e 0000:01:00.0 eth5: (PCI Express:2.5GT/s:Width x1) 00:15:17:8a:30:ab

e1000e 0000:01:00.0 eth5: Intel(R) PRO/1000 Network Connection

e1000e 0000:01:00.0 eth5: MAC: 1, PHY: 4, PBA No: D50858-004

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

ehci-pci: EHCI PCI platform driver

ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

ohci-pci: OHCI PCI platform driver

fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1

fsl-ehci fsl-ehci.0: irq 44, io mem 0xffe210000

fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller

fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2

fsl-ehci fsl-ehci.1: irq 45, io mem 0xffe211000

fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

i2c /dev entries driver

mpc-i2c ffe118000.i2c: timeout 1000000 us

rtc-ds3232 0-0068: rtc core: registered ds3232 as rtc0

mpc-i2c ffe118100.i2c: timeout 1000000 us

mpc-i2c ffe119000.i2c: timeout 1000000 us

mpc-i2c ffe119100.i2c: timeout 1000000 us

i2c i2c-0: Added multiplexed i2c bus 4

i2c i2c-0: Added multiplexed i2c bus 5

i2c i2c-0: Added multiplexed i2c bus 6

i2c i2c-0: Added multiplexed i2c bus 7

i2c i2c-0: Added multiplexed i2c bus 8

i2c i2c-0: Added multiplexed i2c bus 9

i2c i2c-0: Added multiplexed i2c bus 10

i2c i2c-0: Added multiplexed i2c bus 11

pca954x 0-0077: registered 8 multiplexed busses for I2C mux pca9547

ina2xx 6-0040: power monitor ina220 (Rshunt = 1000 uOhm)

ina2xx 6-0041: power monitor ina220 (Rshunt = 1000 uOhm)

Freescale(R) MPC85xx EDAC driver, (C) 2006 Montavista Software

EDAC MC0: Giving out device to 'MPC85xx_edac' 'mpc85xx_mc_err': DEV mpc85xx_mc_err

MPC85xx_edac acquired irq 490 for MC

MPC85xx_edac MC err registered

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

/soc@ffe000000/sdhc@114000: voltage-ranges unspecified

mmc0: SDHCI controller on ffe114000.sdhc [ffe114000.sdhc] using ADMA

platform caam_qi.0: Linux CAAM Queue I/F driver initialised

caam ffe300000.crypto: Entropy delay = 3200

caam ffe300000.crypto: Instantiated RNG4 SH0

caam ffe300000.crypto: Instantiated RNG4 SH1

caam ffe300000.crypto: device ID = 0x0a12040000000000 (Era 6)

caam ffe300000.crypto: job rings = 4, qi = 1

caam algorithms registered in /proc/crypto

caam_jr ffe301000.jr: registering rng-caam

caam ffe300000.crypto: fsl,sec-v5.0 algorithms registered in /proc/crypto

platform caam_qi.0: fsl,sec-v5.0 algorithms registered in /proc/crypto

Freescale USDPAA process driver

fsl-usdpaa: no region found

Freescale USDPAA process IRQ driver

fsl-pme ffe316000.pme: ver: 0x00100202

Freescale pme2 db driver

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

TCP: cubic registered

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

libphy: mdio_mux: probed

libphy: mdio_mux: probed

libphy: mdio_mux: probed

mdio_bus 0.a0: cannot get PHY at address 20

mdio_bus 0.a0: cannot get PHY at address 21

mdio_bus 0.a0: cannot get PHY at address 22

mdio_bus 0.a0: cannot get PHY at address 23

libphy: mdio_mux: probed

mdio_bus 0.c0: cannot get PHY at address 24

mdio_bus 0.c0: cannot get PHY at address 25

mdio_bus 0.c0: cannot get PHY at address 26

mdio_bus 0.c0: cannot get PHY at address 27

libphy: mdio_mux: probed

mdio-mux-mmioreg fffdf0054.mdio-mux-emi1: Version 1.0

fsl_dpa_macless: FSL DPAA MACless Ethernet driver ()

fsl_dpa_generic: FSL DPAA Generic Ethernet driver ()

rtc-ds3232 0-0068: hctosys: unable to read the hardware clock

Freeing unused kernel memory: 284K (c0871000 - c08b8000)

Failed to execute /init

INIT: version 2.88 booting

Starting udev

udevd[1068]: starting version 182

Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory

bootlogd.

Populating dev cache

hwclock: RTC_RD_TIME: Input/output error

Sun May 10 08:13:00 UTC 2015

hwclock: RTC_SET_TIME: Input/output error

Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...

INIT: Entering runlevel: 5un-postinsts exists during rc.d purge

Configuring network interfaces... done.

hwclock: RTC_RD_TIME: Input/output error

Starting syslogd/klogd: done

Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.6.1 t1040qds /dev/ttyS0

t1040qds login: root

root@t1040qds:~#


Have a great day,
Yiping

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

0 Kudos
Reply

2,871 Views
masasi
Contributor II

Thanks for your help Yiping!! I have modified the recipe but unfortunately the problem persists with the same error(I am not able to paste here the console output but error is the same as in my previous message).

I have used fsl-image-minimal-p1021rdb-201505110904.rootfs.cpio.gz.u-boot and my current bootargs variable is  console=ttyS0,115200 root=/dev/ram rw init=/linuxrc.

I have uploaded the rootfs image as it comes from /deploy/images and I always get the same error. Could you please give me a on how to solve the problem?

Thanks in advance.

Maria

0 Kudos
Reply

2,871 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Maria,

Please use the bootargs as the following, I have highlighted in the above log.

root=/dev/ram rw console=ttyS0,115200


Have a great day,
Yiping

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

0 Kudos
Reply

2,871 Views
masasi
Contributor II

Thanks for the quick response! I still get the same error:

=> boot

WARNING: adjusting available memory to 30000000

## Booting kernel from Legacy Image at 02000000 ...  

Image Name:   WTMKII PM Linux kernel318_pm2_0a  

Created:      2015-05-05  14:14:22 UTC  

Image Type:   PowerPC Linux Kernel Image (gzip compressed)  

Data Size:    4660569 Bytes = 4.4 MiB  

Load Address: 00000000  

Entry Point:  00000000  

Verifying Checksum ... OK

## Loading init Ramdisk from Legacy Image at 10000000 ...  

Image Name:   fsl-image-minimal-p1021rdb-20150  

Created:      2015-05-11   9:12:33 UTC  

Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)  

Data Size:    2945693 Bytes = 2.8 MiB  

Load Address: 00000000  

Entry Point:  00000000  

Verifying Checksum ... OK

## Flattened Device Tree from Legacy Image at 03000000  

Image Name:   dtb_pm2_0a  

Created:      2015-05-06   5:47:26 UTC  

Image Type:   PowerPC Linux Flat Device Tree (uncompressed)  

Data Size:    13072 Bytes = 12.8 KiB  

Load Address: 06000000  

Entry Point:  00000000  

Verifying Checksum ... OK  

Booting using the fdt blob at 0x6000000  

Uncompressing Kernel Image ... OK  

Loading Ramdisk to 2fd30000, end 2ffff29d ... OK  

Loading Device Tree to 03ff9000, end 03fff30f ... OK

WARNING: could not find compatible node fsl-usb2-dr: FDT_ERR_NOTFOUND.

## Transferring control to Linux (at address 00000000) ...  

Booting using OF flat tree...

Using P1021 MDS machine description

Memory CAM mapping: 256/256/256 Mb, residual: 256Mb

Found initrd at 0xefd30000:0xeffff29d

bootconsole [udbg0] enabled

setup_arch: bootmem mpc85xx_mds_setup_arch()

arch: exit

Zone ranges: 

DMA      [mem 0x00000000-0x2fffffff] 

Normal   empty 

HighMem  [mem 0x30000000-0x3fffffff]

Movable zone start for each node

Early memory node ranges   node   0: [mem 0x00000000-0x3fffffff]

Initmem setup node 0 [mem 0x00000000-0x3fffffff]

MMU: Allocated 1088 bytes of context maps for 255 contexts

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608

Kernel command line: root=/dev/ram rw console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Sorting __ex_table...

Memory: 961272K/1048576K available (7004K kernel code, 292K rwdata, 1560K rodata, 248K init, 335K bss, 87304K reserved, 262136K highmem)

Kernel virtual memory layout: 

* 0xfffcf000..0xfffff000  : fixmap 

* 0xff800000..0xffc00000  : highmem PTEs 

* 0xff7fe000..0xff800000  : early ioremap 

* 0xf1000000..0xff7fe000  : vmalloc & ioremap

SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

NR_IRQS:512 nr_irqs:512 16

mpic: Setting up MPIC " OpenPIC  " version 1.2 at ff740000, max 1 CPUs

mpic: ISU size: 256, shift: 8, mask: ff

mpic: Initializing for 256 sources

clocksource: timebase mult[14000000] shift[24] registered

Console: colour dummy device 80x25

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)

Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)

devtmpfs: initialized xor: measuring software checksum speed  

8regs     :  1021.000 MB/sec    8regs_prefetch:   817.000 MB/sec 

32regs    :  1017.000 MB/sec    32regs_prefetch:   900.000 MB/sec

xor: using function: 8regs (1021.000 MB/sec)

NET: Registered protocol family 16

OF: no ranges; cannot translate OF: no ranges; cannot translate

OF: no ranges; cannot translate OF: no ranges; cannot translate

OF: no ranges; cannot translate OF: no ranges; cannot translate

OF: no ranges; cannot translate OF: no ranges; cannot translate

Found FSL PCI host bridge at 0x00000000ff709000.

Firmware bus number: 0->1 PCI host bridge /pcie@ff709000  ranges:

MEM 0x00000000b0000000..0x00000000b00fffff -> 0x00000000db000000

MEM 0x00000000b0100000..0x00000000b01fffff -> 0x00000000ab000000

/pcie@ff709000: PCICSRBAR @ 0xfff00000

Found FSL PCI host bridge at 0x00000000ff70a000.

Firmware bus number: 0->0 PCI host bridge

/pcie@ff70a000  ranges:

MEM 0x00000000a0100000..0x00000000a01fffff -> 0x00000000ba000000

MEM 0x00000000a0000000..0x00000000a00fffff -> 0x00000000da000000

/pcie@ff70a000: PCICSRBAR @ 0xfff00000

irq: no irq domain found for /qe@ff780000/interrupt-controller@80 !

irq: no irq domain found for /qe@ff780000/interrupt-controller@80 !

irq: no irq domain found for /qe@ff780000/interrupt-controller@80 !

irq: no irq domain found for /qe@ff780000/interrupt-controller@80 !

PCI: Probing PCI hardware

PCI: I/O resource not set for host bridge

/pcie@ff709000 (domain 0) fsl-pci ff709000.

pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [mem 0xb0000000-0xb00fffff] (bus address [0xdb000000-0xdb0fffff])

pci_bus 0000:00: root bus resource [mem 0xb0100000-0xb01fffff] (bus address [0xab000000-0xab0fffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

pci 0000:01:00.0: reg 0x18: can't handle BAR above 4G (bus address 0xfffffffffff00000)

pci 0000:01:00.0: reg 0x20: can't handle BAR above 4G (bus address 0xfffffffffff00000)

pci 0000:00:00.0: PCI bridge to [bus 01-ff]

PCI: I/O resource not set for host bridge /pcie@ff70a000 (domain 1)

fsl-pci ff70a000.pcie: PCI host bridge to bus 0001:02

pci_bus 0001:02:

[....]

ALSA device list: 

No soundcards found.

Freeing unused kernel memory: 248K (c0861000 - c089f000)

Failed to execute /init (error -13)

Bad trap at PC: ffdb5b0, SR: 2d000, vector=2020

init[1]: unhandled signal 5 at 00000000 nip 0ffdb5b0 lr 0ffc2b48 code 0

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000005 CPU: 0 PID: 1 Comm: init Not tainted 3.18.10 #7

Call Trace:

[ef03fd60] [c06d0ab4] panic+0xcc/0x1fc (unreliable)

[ef03fdc0] [c0032380] complete_and_exit+0x0/0x28

[ef03fe10] [c0032400] do_group_exit+0x44/0x98

[ef03fe20] [c003b530] get_signal+0x138/0x478

[ef03fe70] [c00061e0] do_signal+0x34/0x190

[ef03ff30] [c000640c] do_notify_resume+0x5c/0x74

[ef03ff40] [c000c74c] do_user_signal+0x74/0xc4

--- interrupt: 2020 at 0xffdb5b0   

LR = 0xffc2b48

Rebooting in 180 seconds..

0 Kudos
Reply

2,871 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Maria Saiz,

Please try to use the attached minimal ramdisk image built in SDK 1.6, I have verified it on P1021 target board.


Have a great day,
Yiping

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

0 Kudos
Reply

2,871 Views
adeel
Contributor III

Hi,

The Kernel crashed while loading the init binary because it is of 0 size:

-rwxrwxrwx  1 root  root 0 Apr 28 10:05 init

-Adeel

0 Kudos
Reply