kernel panic when start udev

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

kernel panic when start udev

1,346 Views
igorbogomolov
Contributor I

I have custom board on imx6q.

When i start udev, kernel failed.

The same thing happens when you run:

ata_id --export /dev/sda

or

scsi_id --whitelisted --device=/dev/sda

 

This happens on the Linux kernel versions 4.1.y.
Version 3.10.15 works fine.

 

How to fix it?

Sorry for my english, it's not my native language.

 

[ 0.000000] Booting Linux on physical CPU 0x0

[ 0.000000] Linux version 4.1.38-01899-g94b0fc5 (igor@asus) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #1 SMP PREEMPT Thu Feb 9 00:24:52 SAMT 2017

[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d

...

[ 1.816035] mmc0: new high speed SDHC card at address e276

[ 1.821914] mmcblk0: mmc0:e276 SU08G 7.40 GiB

[ 1.830927] mmcblk0: p1 p2

[ 1.849094] caam 2100000.caam: Instantiated RNG4 SH0

[ 1.909857] caam 2100000.caam: Instantiated RNG4 SH1

[ 1.914857] caam 2100000.caam: device ID = 0x0a16010000000000 (Era -524)

[ 1.921569] caam 2100000.caam: job rings = 2, qi = 0

[ 1.926571] usb 1-1: new high-speed USB device number 2 using ci_hdrc

[ 1.973038] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)

[ 1.979846] ata1.00: ATA-9: WDC WD5000LPVX-55V0TT0, 01.01A01, max UDMA/133

[ 1.986757] ata1.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)

[ 1.994116] ata1.00: configured for UDMA/133

[ 2.013299] scsi 0:0:0:0: Direct-Access ATA WDC WD5000LPVX-5 1A01 PQ: 0 ANSI: 5

[ 2.018513] caam algorithms registered in /proc/crypto

[ 2.027616] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)

[ 2.035183] caam_jr 2101000.jr0: registering rng-caam

[ 2.035950] platform caam_sm: blkkey_ex: 4 keystore units available

[ 2.046803] sd 0:0:0:0: [sda] 4096-byte physical blocks

[ 2.052144] platform caam_sm: 64-bit clear key:

[ 2.052318] sd 0:0:0:0: [sda] Write Protect is off

[ 2.052426] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

[ 2.070599] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07

[ 2.076594] platform caam_sm: 64-bit black key:

[ 2.081141] platform caam_sm: [0000] 0e 29 1b 2e cc d0 90 8d

[ 2.084215] hub 1-1:1.0: USB hub found

[ 2.084403] hub 1-1:1.0: 3 ports detected

[ 2.094641] platform caam_sm: [0008] cc 6d 2f 51 84 1b 08 27

[ 2.100320] platform caam_sm: 128-bit clear key:

[ 2.104990] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07

[ 2.110662] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f

[ 2.116058] sda: sda1

[ 2.117041] sd 0:0:0:0: [sda] Attached SCSI disk

...

Starting logging: OK

Populating /dev using udev: [ 4.949993] udevd[179]: starting version 3.2

[ 5.036027] random: udevd urandom read with 28 bits of entropy available

[ 5.297456] udevd[181]: starting eudev-3.2

[ 5.612656] Unable to handle kernel paging request at virtual address ef80eda0

[ 5.619900] pgd = d9314000

[ 5.622613] [ef80eda0] *pgd=00000000

[ 5.626214] Internal error: Oops: 5 [#1] PREEMPT SMP ARM

[ 5.631530] Modules linked in:

[ 5.634609] CPU: 0 PID: 193 Comm: ata_id Not tainted 4.1.38-01899-g94b0fc5 #1

[ 5.641749] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)

[ 5.648281] task: d85eaf80 ti: d930c000 task.ti: d930c000

[ 5.653697] PC is at sg_miter_stop+0x50/0x12c

[ 5.658065] LR is at sg_miter_next+0xc/0xa0

...

[ 6.169087] ---[ end trace a034b4b5dc8b6cdd ]---

[ 6.173714] note: ata_id[193] exited with preempt_count 3

[ 6.179964] udevd[183]: 'ata_id --export /dev/sda' [193] terminated by signal 11 (Segmentation fault)

Original Attachment has been moved to: bootlog.txt.zip

Original Attachment has been moved to: ms31_defconfig.zip

Labels (2)
0 Kudos
1 Reply

844 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Igor,

You are trying to use 4.1.38 and toolchain version 5.3, please use the latest offically nxp kernel support 4.1.15, since 4.1.38 apparently change the udev mechanism:

https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.1.38 

Regards

0 Kudos