AnsweredAssumed Answered

How can I use the S32V234 Vision SDK1.1.1 together with the S32v234 GPU driver module galcore.ko?

Question asked by weikang zhang on Aug 21, 2018
Latest reply on Sep 6, 2018 by weikang zhang

Hi,expert

    I have a s32v234evb28899 borad in my commpany, and I found that I could use Linux BSP17.0 with the VSDK1.1.1。I used the uboot and linux Image created by the Linux BSP17.0(add patch from VSDK1.1.1)  as uboot and lmage. And I used the dtb and rootfs.tar.gz from VSDK1.1.1 's build_content 'v234_linux_build'. It worked well and I could use the demo elf from the vsdk.

   Unfortunately, I followed the user manual of Auto BSP17.0 to add GPU drivers. It caused that the VSDK drived modules failed to insmod. I just changed the menuconfig and setted CMA size to 32MB as below.

     Then the error log was:

U-Boot 2016.01+g61ddb5d (May 28 2018 - 11:51:10 +0700)

 

CPU:   NXP S32V234 V1.0 at 800 MHz

Reset cause: External reset

Board: s32v234evb28899

I2C:   ready

DRAM:  256 MiB

All (4) cores are up.

MMC:   FSL_SDHC: 0

Setting PCIE Vendor and Device ID

 

Forcing PCIe to Gen1 operation

phy link never came up

DEBUG_R0: 0x0044e700, DEBUG_R1: 0x08200000

In:    serial

Out:   serial

Err:   serial

The security module (CSE3) is disabled.

Net:   

Warning: System is using default MAC address. Please set a new value

FEC

Hit any key to stop autoboot:  0 

=> run nfsboot

Booting from net using tftp and nfs...

Using FEC device

TFTP from server 192.168.1.30; our IP address is 192.168.1.35

Filename 'Image'.

Load address: 0x8007ffc0

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

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

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

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

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

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

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

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

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

509.8 KiB/s

done

Bytes transferred = 7900016 (788b70 hex)

Using FEC device

TFTP from server 192.168.1.30; our IP address is 192.168.1.35

Filename 's32v234-evb28899.dtb'.

Load address: 0x82000000

Loading: ##

301.8 KiB/s

done

Bytes transferred = 21698 (54c2 hex)

## Flattened Device Tree blob at 82000000

   Booting using the fdt blob at 0x82000000

   reserving fdt memory region: addr=80000000 size=10000

   Loading Device Tree to 000000008fd64000, end 000000008fd6c4c1 ... OK

 

Starting kernel ...

 

[    0.000000] Booting Linux on physical CPU 0x0

[    0.000000] Initializing cgroup subsys cpu

[    0.000000] Linux version 4.1.26-rt29-dirty (root@ubuntu) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) ) #3 SMP PREEMPT Tue Aug 21 17:50:05 CST 2018

[    0.000000] CPU: AArch64 Processor [410fd034] revision 4

[    0.000000] Detected VIPT I-cache on CPU0

[    0.000000] alternatives: enabling workaround for ARM erratum 845719

[    0.000000] cma: Reserved 32 MiB at 0x00000000c9000000

[    0.000000] PERCPU: Embedded 16 pages/cpu @ffffffc048f96000 s27352 r8192 d29992 u65536

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 85345

[    0.000000] Kernel command line: console=ttyLF0,115200 root=/dev/nfs rw ip=192.168.1.35:192.168.1.30::255.255.255.0::eth0:off nfsroot=192.168.1.30:/tftpboot/rfs,nolock

[    0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)

[    0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)

[    0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)

[    0.000000] software IO TLB [mem 0x86ffd000-0x8affd000] (64MB) mapped at [ffffffc006ffd000-ffffffc00affcfff]

[    0.000000] Memory: 209396K/346112K available (5308K kernel code, 310K rwdata, 1828K rodata, 244K init, 270K bss, 103948K reserved, 32768K cma-reserved)

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vmalloc : 0xffffff8000000000 - 0xffffffbdffff0000   (   247 GB)

[    0.000000]     vmemmap : 0xffffffbe00000000 - 0xffffffbfc0000000   (     7 GB maximum)

[    0.000000]               0xffffffbe00000000 - 0xffffffbe01068000   (    16 MB actual)

[    0.000000]     fixed   : 0xffffffbffabfd000 - 0xffffffbffac00000   (    12 KB)

[    0.000000]     PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000   (    16 MB)

[    0.000000]     modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)

[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc04b000000   (  1200 MB)

[    0.000000]       .init : 0xffffffc000779000 - 0xffffffc0007b6000   (   244 KB)

[    0.000000]       .text : 0xffffffc000080000 - 0xffffffc000778984   (  7139 KB)

[    0.000000]       .data : 0xffffffc0007bb000 - 0xffffffc000808b70   (   311 KB)

[    0.000000] Preemptible hierarchical RCU implementation.

[    0.000000] RCU dyntick-idle grace-period acceleration is enabled.

[    0.000000] Additional per-CPU info printed with stalls.

[    0.000000] NR_IRQS:64 nr_irqs:64 0

[    0.000000] Architected cp15 timer(s) running at 12.00MHz (virt).

[    0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2c47f4ee7, max_idle_ns: 440795202497 ns

[    0.000005] sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 4398046511096ns

[    0.000394] Console: colour dummy device 80x25

[    0.000408] Calibrating delay loop (skipped), value calculated using timer frequency.. 24.00 BogoMIPS (lpj=120000)

[    0.000419] pid_max: default: 32768 minimum: 301

[    0.000513] Security Framework initialized

[    0.000571] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)

[    0.000580] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)

[    0.001263] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available

[    0.080272] CPU1: Booted secondary processor

[    0.080279] Detected VIPT I-cache on CPU1

[    0.100249] CPU2: Booted secondary processor

[    0.100257] Detected VIPT I-cache on CPU2

[    0.120251] CPU3: Booted secondary processor

[    0.120255] Detected VIPT I-cache on CPU3

[    0.120335] Brought up 4 CPUs

[    0.120361] SMP: Total of 4 processors activated.

[    0.120366] CPU: All CPU(s) started at EL1

[    0.120397] alternatives: patching kernel code

[    0.120925] devtmpfs: initialized

[    0.125207] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

[    0.126655] pinctrl core: initialized pinctrl subsystem

[    0.127430] NET: Registered protocol family 16

[    0.150083] cpuidle: using governor ladder

[    0.190372] cpuidle: using governor menu

[    0.190465] vdso: 2 pages (1 code @ ffffffc0007c1000, 1 data @ ffffffc0007c0000)

[    0.190511] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.

[    0.191857] DMA: preallocated 256 KiB pool for atomic allocations

[    0.207077] ACPI: Interpreter disabled.

[    0.210433] vgaarb: loaded

[    0.210729] SCSI subsystem initialized

[    0.211024] usbcore: registered new interface driver usbfs

[    0.211084] usbcore: registered new interface driver hub

[    0.211170] usbcore: registered new device driver usb

[    0.211441] imx-i2c 40051000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c0grp, deferring probe

[    0.211561] imx-i2c 400b8000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c1grp, deferring probe

[    0.211588] imx-i2c 400ba000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c2grp, deferring probe

[    0.211714] pps_core: LinuxPPS API ver. 1 registered

[    0.211721] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

[    0.211751] PTP clock support registered

[    0.212685] Switched to clocksource arch_sys_counter

[    0.213181] pnp: PnP ACPI: disabled

[    0.221423] NET: Registered protocol family 2

[    0.221949] TCP established hash table entries: 4096 (order: 3, 32768 bytes)

[    0.222003] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)

[    0.222089] TCP: Hash tables configured (established 4096 bind 4096)

[    0.222148] UDP hash table entries: 256 (order: 1, 8192 bytes)

[    0.222171] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)

[    0.222371] NET: Registered protocol family 1

[    0.222649] RPC: Registered named UNIX socket transport module.

[    0.222656] RPC: Registered udp transport module.

[    0.222662] RPC: Registered tcp transport module.

[    0.222667] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    0.224153] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.224791] HugeTLB registered 2 MB page size, pre-allocated 0 pages

[    0.226193] fuse init (API version 7.23)

[    0.227088] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)

[    0.227105] io scheduler noop registered

[    0.227115] io scheduler deadline registered

[    0.227155] io scheduler cfq registered (default)

[    0.227609] s32v234-siul2-pinctrl 4006c240.siul2-pinctrl: initialized s32 pinctrl driver

[    0.230597] fsl_dcu 40028000.dcu: DCU: surface memory space is [0xC0000000, 0xC1000000].

[    0.231300] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb0> : <1920 x 1080>

[    0.231595] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb1> : <1920 x 1080>

[    0.231876] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb2> : <1920 x 1080>

[    0.232152] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb3> : <1920 x 1080>

[    0.232436] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb4> : <1920 x 1080>

[    0.232747] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb5> : <1920 x 1080>

[    0.233167] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb6> : <1920 x 1080>

[    0.233463] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb7> : <1920 x 1080>

[    0.234327] 40053000.serial: ttyLF0 at MMIO 0x40053000 (irq = 24, base_baud = 4166666) is a FSL_LINFLEX

[    0.898964] console [ttyLF0] enabled

[    0.903128] 400bc000.serial: ttyLF1 at MMIO 0x400bc000 (irq = 43, base_baud = 4166666) is a FSL_LINFLEX

[    0.913166] Unable to detect cache hierarcy from DT for CPU 0

[    0.922987] loop: module loaded

[    0.929309] libphy: Fixed MDIO Bus: probed

[    0.933940] tun: Universal TUN/TAP device driver, 1.6

[    0.939028] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

[    0.945455] vcan: Virtual CAN interface driver

[    0.949936] slcan: serial line CAN interface driver

[    0.954936] slcan: 10 dynamic interface channels.

[    0.959680] CAN device driver interface

[    0.964409] flexcan 40055000.flexcan: device registered (reg_base=ffffff800007a000, irq=25)

[    0.973624] flexcan 400be000.flexcan: device registered (reg_base=ffffff800007c000, irq=44)

[    0.982728] pps pps0: new PPS source ptp0

[    0.988455] libphy: fec_enet_mii_bus: probed

[    0.993906] fec 40032000.ethernet eth0: registered PHC device 0

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

[    1.007016] ehci-pci: EHCI PCI platform driver

[    1.011543] ehci-platform: EHCI generic platform driver

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

[    1.023353] ohci-pci: OHCI PCI platform driver

[    1.027889] ohci-platform: OHCI generic platform driver

[    1.033652] usbcore: registered new interface driver usb-storage

[    1.040032] i2c /dev entries driver

[    1.044348] sac58r-wdt 4000a000.swt: SAC58R/S32V234 Watchdog Timer Registered. timeout=30s (nowayout=0)

[    1.054019] sdhci: Secure Digital Host Controller Interface driver

[    1.060244] sdhci: Copyright(c) Pierre Ossman

[    1.064657] sdhci-pltfm: SDHCI platform and OF driver helper

[    1.071152] /soc/aips-bus@40000000/usdhc@4005D000: voltage-ranges unspecified

[    1.078581] sdhci-esdhc-imx 4005d000.usdhc: No vmmc regulator found

[    1.084917] sdhci-esdhc-imx 4005d000.usdhc: No vqmmc regulator found

[    1.132721] mmc0: SDHCI controller on 4005d000.usdhc [4005d000.usdhc] using ADMA

[    1.140602] usbcore: registered new interface driver usbhid

[    1.146237] usbhid: USB HID core driver

[    1.164936] NET: Registered protocol family 10

[    1.170121] sit: IPv6 over IPv4 tunneling driver

[    1.175377] NET: Registered protocol family 17

[    1.179870] can: controller area network core (rev 20120528 abi 9)

[    1.186176] NET: Registered protocol family 29

[    1.190690] can: raw protocol (rev 20120528)

[    1.195021] can: broadcast manager protocol (rev 20120528 t)

[    1.200732] can: netlink gateway (rev 20130117) max_hops=1

[    1.206338] Key type dns_resolver registered

[    1.207553] mmc0: MAN_BKOPS_EN bit is not set

[    1.215592] mmc0: new DDR MMC card at address 0001

[    1.215705] registered taskstats version 1

[    1.216508] i2c i2c-0: IMX I2C adapter registered

[    1.216536] i2c i2c-0: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers

[    1.237147] mmcblk0: mmc0:0001 MMC32G 29.0 GiB 

[    1.241807] mmcblk0boot0: mmc0:0001 MMC32G partition 1 16.0 MiB

[    1.247952] mmcblk0boot1: mmc0:0001 MMC32G partition 2 16.0 MiB

[    1.254032] mmcblk0rpmb: mmc0:0001 MMC32G partition 3 128 KiB

[    1.260598]  mmcblk0: p1 p2

[    1.262738] Sii902x: read id = 0xB0-0x02-0x03-0x00

[    1.303681] i2c i2c-1: IMX I2C adapter registered

[    1.308462] i2c i2c-1: using dma0chan18 (tx) and dma0chan19 (rx) for DMA transfers

[    1.316680] i2c i2c-2: IMX I2C adapter registered

[    1.321446] i2c i2c-2: using dma0chan20 (tx) and dma0chan21 (rx) for DMA transfers

[    1.329135] hctosys: unable to open rtc device (rtc0)

[    1.412799] fec 40032000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=40032000.etherne:07, irq=-1)

[    1.425998] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

[    5.413383] fec 40032000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

[    5.422715] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

[    5.442833] IP-Config: Complete:

[    5.446090]      device=eth0, hwaddr=00:1b:c3:12:34:22, ipaddr=192.168.1.35, mask=255.255.255.0, gw=255.255.255.255

[    5.456639]      host=192.168.1.35, domain=, nis-domain=(none)

[    5.462515]      bootserver=192.168.1.30, rootserver=192.168.1.30, rootpath=

[    5.661373] VFS: Mounted root (nfs filesystem) on device 0:15.

[    5.681579] devtmpfs: mounted

[    5.684382] Freeing unused kernel memory: 244K (ffffffc000779000 - ffffffc0007b6000)

[    5.691897] Freeing alternatives memory: 12K (ffffffc0007b6000 - ffffffc0007b9000)

INIT: version 2.88 booting

Starting udev

[    7.928417] udevd[634]: starting version 3.2.2

[    8.063109] random: udevd urandom read with 25 bits of entropy available

[    8.482798] udevd[635]: starting eudev-3.2.2

Tue Mar  6 12:40:16 UTC 2018

INIT: Entering runlevel: 5

Configuring network interfaces... RTNETLINK answers: File exists

ifup skipped for nfsroot interface eth0

run-parts: /etc/network/if-pre-up.d/nfsroot: exit status 1

Starting OpenBSD Secure Shell server: sshd

done.

Starting rpcbind daemon...done.

starting statd: done

Starting network benchmark server: netserver.

exportfs: can't open /etc/exports for reading

NFS daemon support not enabled in kernel

Starting syslogd/klogd: done

Starting internet superserver: xinetd.

[   16.007162] loading NXP PHY driver: [autonomous mode]

 

Auto Linux BSP 1.0 s32v234evb /dev/ttyLF0

 

s32v234evb login: [   55.412757] random: nonblocking pool is initialized

 

Auto Linux BSP 1.0 s32v234evb /dev/ttyLF0

 

s32v234evb login: root

root@s32v234evb:~# cd /s32v234/

root@s32v234evb:/s32v234# ls

apex.ko  cam.ko  csi.ko  fdma.ko  galcore.ko  h264dcd.ko  h264enc.ko  jpegdcd.ko  oal_cma.ko  seq.ko  sm_drv.ko  viulite.ko

root@s32v234evb:/s32v234# insmod apex.ko 

[  250.228863] Unable to handle kernel NULL pointer dereference at virtual address 00000003

[  250.236627] pgd = ffffffc046397000

[  250.239958] [00000003] *pgd=00000000c5ce2003, *pud=00000000c5ce2003, *pmd=0000000000000000

[  250.248185] Internal error: Oops: 96000006 [#1] PREEMPT SMP

[  250.253719] Modules linked in: apex(O+) nxp sja1105pqrs(O)

[  250.259176] CPU: 1 PID: 881 Comm: insmod Tainted: G           O    4.1.26-rt29-dirty #3

[  250.267132] Hardware name: Freescale S32V234 (DT)

[  250.271808] task: ffffffc0462be3c0 ti: ffffffc045a60000 task.ti: ffffffc045a60000

[  250.279260] PC is at apex_probe+0x24/0x280 [apex]

[  250.283928] LR is at apex_probe+0x24/0x280 [apex]

[  250.288596] pc : [<ffffffbffc0382dc>] lr : [<ffffffbffc0382dc>] pstate: 20000145

[  250.295950] sp : ffffffc045a63ac0

[  250.299239] x29: ffffffc045a63ac0 x28: 0000000000000124 

[  250.304517] x27: ffffffc045b8fc00 x26: ffffffc0000f91d0 

[  250.309796] x25: ffffffc0464ac5c0 x24: ffffffbffc038bf0 

[  250.315075] x23: 0000000000000006 x22: ffffffc04623d400 

[  250.320354] x21: ffffffbffc038b18 x20: ffffffbffc038af0 

[  250.325633] x19: ffffffc04623d410 x18: 0000000000000000 

[  250.330912] x17: ffffffc000611200 x16: 0000000000000000 

[  250.336190] x15: 0000000000000001 x14: ffffffc0451a890a 

[  250.341469] x13: ffffffc0451a8909 x12: 0000000000000030 

[  250.346749] x11: 0000000000000004 x10: 0101010101010101 

[  250.352028] x9 : fffffffffffffff9 x8 : 7f7f7f7f7f7f7f7f 

[  250.357308] x7 : fefefeff646c606d x6 : 0f121e0ce7eee5e4 

[  250.362587] x5 : 64656e670c1e120f x4 : 0000000000000000 

[  250.367867] x3 : 0000000000000140 x2 : 00000000000035b2 

[  250.373146] x1 : ffffffc045a60000 x0 : 0000000000000000 

[  250.378424] 

[  250.379899] Process insmod (pid: 881, stack limit = 0xffffffc045a60028)

[  250.386476] Stack: (0xffffffc045a63ac0 to 0xffffffc045a64000)

[  250.392192] 3ac0: 45a63b00 ffffffc0 0039c80c ffffffc0 4623d410 ffffffc0 fc038af0 ffffffbf

[  250.400326] 3ae0: fc038b18 ffffffbf 00832000 ffffffc0 45a63b00 ffffffc0 0039c7f4 ffffffc0

[  250.408460] 3b00: 45a63b30 ffffffc0 0039b044 ffffffc0 4623d410 ffffffc0 00000000 00000000

[  250.416595] 3b20: fc038b18 ffffffbf 00832000 ffffffc0 45a63b70 ffffffc0 0039b27c ffffffc0

[  250.424730] 3b40: 4623d410 ffffffc0 fc038b18 ffffffbf 4623d470 ffffffc0 007e6670 ffffffc0

[  250.432865] 3b60: 007e6000 ffffffc0 003993ac ffffffc0 45a63ba0 ffffffc0 003993a0 ffffffc0

[  250.440999] 3b80: 00000000 00000000 fc038b18 ffffffbf 0039b1e0 ffffffc0 fc038bf0 ffffffbf

[  250.449134] 3ba0: 45a63be0 ffffffc0 0039aa68 ffffffc0 fc038b18 ffffffbf 466957c0 ffffffc0

[  250.457268] 3bc0: 00000000 00000000 0059d690 ffffffc0 0fd202a8 ffffffc0 461ab168 ffffffc0

[  250.465403] 3be0: 45a63bf0 ffffffc0 0039a6d8 ffffffc0 45a63c30 ffffffc0 0039b6a8 ffffffc0

[  250.473538] 3c00: fc038b18 ffffffbf 007c8e20 ffffffc0 451a8180 ffffffc0 fc03b000 ffffffbf

[  250.481672] 3c20: 00000000 00000000 45a63c70 ffffffc0 45a63c50 ffffffc0 0039c73c ffffffc0

[  250.489806] 3c40: 007c8e20 ffffffc0 007c8e20 ffffffc0 45a63c60 ffffffc0 fc03b018 ffffffbf

[  250.497941] 3c60: 45a63c70 ffffffc0 00081024 ffffffc0 45a63cf0 ffffffc0 005a05f4 ffffffc0

[  250.506076] 3c80: fc038ba0 ffffffbf 007d0000 ffffffc0 464ac5d0 ffffffc0 45eecd80 ffffffc0

[  250.514210] 3ca0: fc038ba0 ffffffbf 45eecd80 ffffffc0 00000001 00000000 00000001 00000000

[  250.522346] 3cc0: 45a63cf0 ffffffc0 005a05c0 ffffffc0 fc038ba0 ffffffbf 007d0000 ffffffc0

[  250.530480] 3ce0: 464ac5d0 ffffffc0 00000001 00000000 45a63d20 ffffffc0 000fc1c4 ffffffc0

[  250.538615] 3d00: 45a63e68 ffffffc0 00000001 00000000 464ac5d0 ffffffc0 00000001 00000000

[  250.546749] 3d20: 45a63e30 ffffffc0 000fc8b8 ffffffc0 00000000 00000000 00000003 00000000

[  250.554883] 3d40: 00419550 00000000 9485b9c4 0000007f 80000000 00000000 00000015 00000000

[  250.563018] 3d60: 0000011a 00000000 00000111 00000000 005ac000 ffffffc0 45a60000 ffffffc0

[  250.571153] 3d80: 45a63e30 ffffffc0 45a63de8 ffffffc0 006e8280 ffffffc0 00000003 0000006e

[  250.579287] 3da0: 0000003f ffffffbf 0000feff ffffff80 0000fff1 ffffff80 005b5368 ffffffc0

[  250.587422] 3dc0: fc03b048 ffffffbf 45a63e28 ffffffc0 0000000f 000081a4 00000001 000003e8

[  250.595556] 3de0: 000003e8 00000000 0004d118 00000000 5b7b88ba 00000000 00000000 00000000

[  250.603690] 3e00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

[  250.611825] 3e20: 00000000 00000000 00000000 00000000 e5a2cc30 0000007f 00084470 ffffffc0

[  250.619960] 3e40: 00000000 00000000 1bcba780 00000000 ffffffff ffffffff 00000000 00000000

[  250.628095] 3e60: 45a63ec0 ffffffc0 01312000 ffffff80 0004d118 00000000 0135e818 ffffff80

[  250.636230] 3e80: 0135e6c8 ffffff80 0133b2c8 ffffff80 00000e58 00000000 00001230 00000000

[  250.644364] 3ea0: 00000000 00000000 00000000 00000000 00001050 00000000 00000022 00000023

[  250.652499] 3ec0: 0000000e 00000000 0000000a 00000000 00000003 00000000 00419550 00000000

[  250.660633] 3ee0: 00000000 00000000 00000003 00000000 00000000 00000000 ffffffff 60ceffff

[  250.668768] 3f00: ffffffff ffffffff ffffffff ffffffff 00000111 00000000 00000005 00000000

[  250.676902] 3f20: 01010101 01010101 00000001 00000000 00000000 00000000 00000000 00000000

[  250.685038] 3f40: 94928700 0000007f 0000073f 00000000 9485b9a0 0000007f 0042a618 00000000

[  250.693173] 3f60: 00000000 00000000 00419550 00000000 1bcba780 00000000 00000000 00000000

[  250.701307] 3f80: 00000000 00000000 00000000 00000000 00000000 00000000 00000002 00000000

[  250.709442] 3fa0: 00000000 00000000 00000000 00000000 00000000 00000000 e5a2cc30 0000007f

[  250.717577] 3fc0: 004108c4 00000000 e5a2cc30 0000007f 9485b9c4 0000007f 80000000 00000000

[  250.725712] 3fe0: 00000003 00000000 00000111 00000000 00000000 00000000 00000000 00000000

[  250.733840] Call trace:

[  250.736273] [<ffffffbffc0382dc>] apex_probe+0x24/0x280 [apex]

[  250.741984] [<ffffffc00039c80c>] platform_drv_probe+0x4c/0xb8

[  250.747692] [<ffffffc00039b044>] driver_probe_device+0x16c/0x2b0

[  250.753660] [<ffffffc00039b27c>] __driver_attach+0x9c/0xa0

[  250.759112] [<ffffffc0003993a0>] bus_for_each_dev+0x60/0xa0

[  250.764650] [<ffffffc00039aa68>] driver_attach+0x20/0x28

[  250.769928] [<ffffffc00039a6d8>] bus_add_driver+0x150/0x208

[  250.775467] [<ffffffc00039b6a8>] driver_register+0x60/0x120

[  250.781006] [<ffffffc00039c73c>] __platform_driver_register+0x5c/0x68

[  250.787414] [<ffffffbffc03b018>] ApexInit+0x18/0x48 [apex]

[  250.792864] [<ffffffc000081024>] do_one_initcall+0x8c/0x1a8

[  250.798401] [<ffffffc0005a05f4>] do_init_module+0x5c/0x1a4

[  250.803854] [<ffffffc0000fc1c4>] load_module+0x17f4/0x1c88

[  250.809304] [<ffffffc0000fc8b8>] SyS_finit_module+0xc8/0xd8

[  250.814843] Code: 9100f3a2 58001041 f940fc00 9510dcd0 (39c00c15) 

[  250.820984] ---[ end trace fee402510e2c9983 ]---

Segmentation fault

root@s32v234evb:/s32v234# 

 

In addition, if I didn't set the CMA size, the right log was as below:

 

U-Boot 2016.01+g61ddb5d (May 28 2018 - 11:51:10 +0700)

CPU: NXP S32V234 V1.0 at 800 MHz
Reset cause: External reset
Board: s32v234evb28899
I2C: ready
DRAM: 256 MiB
All (4) cores are up.
MMC: FSL_SDHC: 0
Setting PCIE Vendor and Device ID

Forcing PCIe to Gen1 operation
phy link never came up
DEBUG_R0: 0x0071d600, DEBUG_R1: 0x08200000
In: serial
Out: serial
Err: serial
The security module (CSE3) is disabled.
Net:
Warning: System is using default MAC address. Please set a new value
FEC
Hit any key to stop autoboot: 0
=> run nfsboot
Booting from net using tftp and nfs...
Using FEC device
TFTP from server 192.168.1.30; our IP address is 192.168.1.35
Filename 'Image'.
Load address: 0x8007ffc0
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############
531.3 KiB/s
done
Bytes transferred = 7833088 (778600 hex)
Using FEC device
TFTP from server 192.168.1.30; our IP address is 192.168.1.35
Filename 's32v234-evb28899.dtb'.
Load address: 0x82000000
Loading: ##
470.7 KiB/s
done
Bytes transferred = 21698 (54c2 hex)
## Flattened Device Tree blob at 82000000
Booting using the fdt blob at 0x82000000
reserving fdt memory region: addr=80000000 size=10000
Loading Device Tree to 000000008fd64000, end 000000008fd6c4c1 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 4.1.26-rt29-dirty (b46809@ulm) (gcc version 6.3.1 20170404 (Linaro GCC 6.3-2017.05) ) #1 SMP PREEMPT Tue Jun 5 21:02:32 CEST 2018
[ 0.000000] CPU: AArch64 Processor [410fd034] revision 4
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] alternatives: enabling workaround for ARM erratum 845719
[ 0.000000] PERCPU: Embedded 16 pages/cpu @ffffffc04af96000 s27288 r8192 d30056 u65536
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 85345
[ 0.000000] Kernel command line: console=ttyLF0,115200 root=/dev/nfs rw ip=192.168.1.35:192.168.1.30::255.255.255.0::eth0:off nfsroot=192.168.1.30:/tftpboot/rfs,nolock
[ 0.000000] PID hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes)
[ 0.000000] software IO TLB [mem 0xc5000000-0xc9000000] (64MB) mapped at [ffffffc045000000-ffffffc048ffffff]
[ 0.000000] Memory: 242228K/346112K available (5260K kernel code, 317K rwdata, 1812K rodata, 240K init, 272K bss, 103884K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffffff8000000000 - 0xffffffbdffff0000 ( 247 GB)
[ 0.000000] vmemmap : 0xffffffbe00000000 - 0xffffffbfc0000000 ( 7 GB maximum)
[ 0.000000] 0xffffffbe00000000 - 0xffffffbe01068000 ( 16 MB actual)
[ 0.000000] fixed : 0xffffffbffabfd000 - 0xffffffbffac00000 ( 12 KB)
[ 0.000000] PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
[ 0.000000] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc04b000000 ( 1200 MB)
[ 0.000000] .init : 0xffffffc000769000 - 0xffffffc0007a5000 ( 240 KB)
[ 0.000000] .text : 0xffffffc000080000 - 0xffffffc000768874 ( 7075 KB)
[ 0.000000] .data : 0xffffffc0007a9000 - 0xffffffc0007f8600 ( 318 KB)
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU dyntick-idle grace-period acceleration is enabled.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] Architected cp15 timer(s) running at 12.00MHz (virt).
[ 0.000000] clocksource arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2c47f4ee7, max_idle_ns: 440795202497 ns
[ 0.000005] sched_clock: 56 bits at 12MHz, resolution 83ns, wraps every 4398046511096ns
[ 0.000388] Console: colour dummy device 80x25
[ 0.000402] Calibrating delay loop (skipped), value calculated using timer frequency.. 24.00 BogoMIPS (lpj=120000)
[ 0.000413] pid_max: default: 32768 minimum: 301
[ 0.000507] Security Framework initialized
[ 0.000564] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.000572] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.001252] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[ 0.080274] CPU1: Booted secondary processor
[ 0.080281] Detected VIPT I-cache on CPU1
[ 0.100252] CPU2: Booted secondary processor
[ 0.100260] Detected VIPT I-cache on CPU2
[ 0.120255] CPU3: Booted secondary processor
[ 0.120260] Detected VIPT I-cache on CPU3
[ 0.120340] Brought up 4 CPUs
[ 0.120367] SMP: Total of 4 processors activated.
[ 0.120373] CPU: All CPU(s) started at EL1
[ 0.120404] alternatives: patching kernel code
[ 0.120918] devtmpfs: initialized
[ 0.125090] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.125512] pinctrl core: initialized pinctrl subsystem
[ 0.126256] NET: Registered protocol family 16
[ 0.150087] cpuidle: using governor ladder
[ 0.190374] cpuidle: using governor menu
[ 0.190466] vdso: 2 pages (1 code @ ffffffc0007b1000, 1 data @ ffffffc0007b0000)
[ 0.190514] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.190691] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.205748] ACPI: Interpreter disabled.
[ 0.209010] vgaarb: loaded
[ 0.209288] SCSI subsystem initialized
[ 0.209583] usbcore: registered new interface driver usbfs
[ 0.209639] usbcore: registered new interface driver hub
[ 0.209726] usbcore: registered new device driver usb
[ 0.209952] imx-i2c 40051000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c0grp, deferring probe
[ 0.210062] imx-i2c 400b8000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c1grp, deferring probe
[ 0.210088] imx-i2c 400ba000.i2c: could not find pctldev for node /soc/aips-bus@40000000/siul2/siul2-pinctrl@4006C000/s32v234-evb/i2c2grp, deferring probe
[ 0.210250] pps_core: LinuxPPS API ver. 1 registered
[ 0.210256] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.210289] PTP clock support registered
[ 0.211195] Switched to clocksource arch_sys_counter
[ 0.211710] pnp: PnP ACPI: disabled
[ 0.219128] NET: Registered protocol family 2
[ 0.219714] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.219768] TCP bind hash table entries: 4096 (order: 4, 65536 bytes)
[ 0.219855] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.219916] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.219938] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.220135] NET: Registered protocol family 1
[ 0.220432] RPC: Registered named UNIX socket transport module.
[ 0.220439] RPC: Registered udp transport module.
[ 0.220444] RPC: Registered tcp transport module.
[ 0.220450] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.222060] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.222671] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[ 0.224031] fuse init (API version 7.23)
[ 0.224873] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.224889] io scheduler noop registered
[ 0.224900] io scheduler deadline registered
[ 0.224941] io scheduler cfq registered (default)
[ 0.225393] s32v234-siul2-pinctrl 4006c240.siul2-pinctrl: initialized s32 pinctrl driver
[ 0.228236] fsl_dcu 40028000.dcu: DCU: surface memory space is [0xC0000000, 0xC1000000].
[ 0.228937] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb0> : <1920 x 1080>
[ 0.229218] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb1> : <1920 x 1080>
[ 0.229485] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb2> : <1920 x 1080>
[ 0.229775] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb3> : <1920 x 1080>
[ 0.230048] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb4> : <1920 x 1080>
[ 0.230319] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb5> : <1920 x 1080>
[ 0.230593] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb6> : <1920 x 1080>
[ 0.230865] fsl_dcu 40028000.dcu: Selected video mode on </dev/fb7> : <1920 x 1080>
[ 0.231928] 40053000.serial: ttyLF0 at MMIO 0x40053000 (irq = 24, base_baud = 4166666) is a FSL_LINFLEX
[ 0.954720] console [ttyLF0] enabled
[ 0.959209] 400bc000.serial: ttyLF1 at MMIO 0x400bc000 (irq = 43, base_baud = 4166666) is a FSL_LINFLEX
[ 0.970138] Unable to detect cache hierarcy from DT for CPU 0
[ 0.980390] loop: module loaded
[ 0.986774] libphy: Fixed MDIO Bus: probed
[ 0.991774] tun: Universal TUN/TAP device driver, 1.6
[ 0.997357] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.004380] vcan: Virtual CAN interface driver
[ 1.009295] slcan: serial line CAN interface driver
[ 1.014708] slcan: 10 dynamic interface channels.
[ 1.019912] CAN device driver interface
[ 1.024980] flexcan 40055000.flexcan: device registered (reg_base=ffffff800007a000, irq=25)
[ 1.035000] flexcan 400be000.flexcan: device registered (reg_base=ffffff800007c000, irq=44)
[ 1.044886] pps pps0: new PPS source ptp0
[ 1.050194] libphy: fec_enet_mii_bus: probed
[ 1.056003] fec 40032000.ethernet eth0: registered PHC device 0
[ 1.063097] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.070320] ehci-pci: EHCI PCI platform driver
[ 1.075424] ehci-platform: EHCI generic platform driver
[ 1.081429] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.088291] ohci-pci: OHCI PCI platform driver
[ 1.093261] ohci-platform: OHCI generic platform driver
[ 1.099453] usbcore: registered new interface driver usb-storage
[ 1.106407] i2c /dev entries driver
[ 1.110860] sac58r-wdt 4000a000.swt: SAC58R/S32V234 Watchdog Timer Registered. timeout=30s (nowayout=0)
[ 1.121440] sdhci: Secure Digital Host Controller Interface driver
[ 1.128272] sdhci: Copyright(c) Pierre Ossman
[ 1.133121] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.140158] /soc/aips-bus@40000000/usdhc@4005D000: voltage-ranges unspecified
[ 1.148132] sdhci-esdhc-imx 4005d000.usdhc: No vmmc regulator found
[ 1.155081] sdhci-esdhc-imx 4005d000.usdhc: No vqmmc regulator found
[ 1.201210] mmc0: SDHCI controller on 4005d000.usdhc [4005d000.usdhc] using ADMA
[ 1.209777] usbcore: registered new interface driver usbhid
[ 1.215969] usbhid: USB HID core driver
[ 1.233500] NET: Registered protocol family 10
[ 1.239102] sit: IPv6 over IPv4 tunneling driver
[ 1.244823] NET: Registered protocol family 17
[ 1.249750] can: controller area network core (rev 20120528 abi 9)
[ 1.256657] NET: Registered protocol family 29
[ 1.261621] can: raw protocol (rev 20120528)
[ 1.266113] mmc0: MAN_BKOPS_EN bit is not set
[ 1.271153] can: broadcast manager protocol (rev 20120528 t)
[ 1.274207] mmc0: new DDR MMC card at address 0001
[ 1.274535] mmcblk0: mmc0:0001 MMC32G 29.0 GiB
[ 1.274625] mmcblk0boot0: mmc0:0001 MMC32G partition 1 16.0 MiB
[ 1.274715] mmcblk0boot1: mmc0:0001 MMC32G partition 2 16.0 MiB
[ 1.274798] mmcblk0rpmb: mmc0:0001 MMC32G partition 3 128 KiB
[ 1.291777] mmcblk0: p1 p2
[ 1.310300] can: netlink gateway (rev 20130117) max_hops=1
[ 1.316472] Key type dns_resolver registered
[ 1.321854] registered taskstats version 1
[ 1.327173] i2c i2c-0: IMX I2C adapter registered
[ 1.332442] i2c i2c-0: using dma0chan2 (tx) and dma0chan3 (rx) for DMA transfers
[ 1.344013] Sii902x: read id = 0xB0-0x02-0x03-0x00
[ 1.392155] i2c i2c-1: IMX I2C adapter registered
[ 1.397391] i2c i2c-1: using dma0chan18 (tx) and dma0chan19 (rx) for DMA transfers
[ 1.406321] i2c i2c-2: IMX I2C adapter registered
[ 1.411580] i2c i2c-2: using dma0chan20 (tx) and dma0chan21 (rx) for DMA transfers
[ 1.501295] fec 40032000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=40032000.etherne:07, irq=-1)
[ 1.515727] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 5.501891] fec 40032000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 5.521218] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5.541329] IP-Config: Complete:
[ 5.544901] device=eth0, hwaddr=00:1b:c3:12:34:22, ipaddr=192.168.1.35, mask=255.255.255.0, gw=255.255.255.255
[ 5.556480] host=192.168.1.35, domain=, nis-domain=(none)
[ 5.562949] bootserver=192.168.1.30, rootserver=192.168.1.30, rootpath=
[ 5.613165] VFS: Mounted root (nfs filesystem) on device 0:15.
[ 5.623156] devtmpfs: mounted
[ 5.626189] Freeing unused kernel memory: 240K (ffffffc000769000 - ffffffc0007a5000)
[ 5.634530] Freeing alternatives memory: 8K (ffffffc0007a5000 - ffffffc0007a7000)
INIT: version 2.88 booting
Starting udev
[ 7.521473] udevd[629]: starting version 3.2.2
[ 7.606987] random: udevd urandom read with 26 bits of entropy available
[ 7.995568] udevd[630]: starting eudev-3.2.2
Tue Mar 6 12:40:16 UTC 2018
INIT: Entering runlevel: 5
Configuring network interfaces... RTNETLINK answers: File exists
ifup skipped for nfsroot interface eth0
run-parts: /etc/network/if-pre-up.d/nfsroot: exit status 1
Starting OpenBSD Secure Shell server: sshd
done.
Starting rpcbind daemon...done.
starting statd: done
Starting network benchmark server: netserver.
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting syslogd/klogd: done
Starting internet superserver: xinetd.
[ 15.184016] loading NXP PHY driver: [autonomous mode]

Auto Linux BSP 1.0 s32v234evb /dev/ttyLF0

s32v234evb login:
Auto Linux BSP 1.0 s32v234evb /dev/ttyLF0

s32v234evb login: root
root@s32v234evb:~# cd /s32v234/
root@s32v234evb:/s32v234# insmo[ 45.681286] random: nonblocking pool is initialized
root@s32v234evb:/s32v234#
root@s32v234evb:/s32v234#
root@s32v234evb:/s32v234# insmod apex.ko
[ 55.212495] APEX kernel module - IRQ 32, ID 0, 1 devices loaded.
[ 55.218816] APEX kernel module - IRQ 33, ID 1, 2 devices loaded.
root@s32v234evb:/s32v234#

Outcomes