Giter Site home page Giter Site logo

linux's Introduction

linux

Kernel tree for Boundary Devices platforms.

This repository contains kernel source trees for the following:

Latest kernel releases:

Android (i.MX)

Latest KitKat sources are in branch boundary-imx-kk4.4.3_2.0.1-ga

Latest Lollipop sources are in branch boundary-imx-l5.1.1_2.1.0-ga

Latest Marshmallow sources are in branch boundary-imx-m6.0.1_1.0.0-ga

Latest Nougat sources are in branch boundary-imx-n7.1.1_1.0.0-ga

Latest Oreo sources are in branch boundary-imx-o8.1.0_1.3.0_8m-ga

Latest Pie sources are in branch boundary-imx-p9.0.0_1.0.0-ga

Latest Android 10 sources are in branch boundary-android-10.0.0_2.5.0

Latest Android 11 sources are in branch boundary-android-11.0.0_2.2.0

Latest Android 12 sources are in branch boundary-android-12.1.0_1.0.0

Latest Android 13 sources are in branch boundary-android-13.0.0_1.0.0

Linux (i.MX)

The latest 3.0.35 kernel is in branch boundary-imx_3.0.35_4.1.0

The latest 3.10.x kernel is in branch boundary-imx_3.10.53_1.1.1_ga

The latest 3.14.x kernel is in branch boundary-imx_3.14.52_1.1.0_ga

The latest 4.1.15 kernel is in branch boundary-imx_4.1.15_2.0.0_ga

The latest 4.9.x kernel is in branch boundary-imx_4.9.x_2.0.0_ga

The latest 4.14.x kernel is in branch boundary-imx_4.14.x_2.0.0_ga

The latest 4.19.x kernel is in branch boundary-imx_4.19.x_1.1.0

The latest 5.4.x kernel is in branch boundary-imx_5.4.x_2.3.0

The latest 5.10.x kernel is in branch boundary-imx_5.10.x_2.0.0

The latest 5.15.x kernel is in branch boundary-imx_5.15.y

The latest 6.1.x kernel is in branch boundary-imx_6.1.y

These branches are based on Freescale releases of the same name (minus the 'boundary').

linux's People

Contributors

gibsson avatar telelaci avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

linux's Issues

help

make -C router kernel -jgrep -c '^processor' /proc/cpuinfo
make[1]
Makefile:15: config: No such file or directory
Makefile:57: *** empty variable name. Stop.
make[1]:
Makefile:440: recipe for target 'kernel' failed
make: *** [kernel] Error 2

Error while building the kernel image

Hi,

I need some help with building the kernel image. I am newbie to linux environment. I downloaded the kernel code and when i tried to build i get the following error:

$ make v=3 all
CHK include/linux/version.h
CHK include/generated/utsrelease.h
CC kernel/bounds.s
kernel/bounds.c:1:0: error: code model kernel does not support PIC mode
/*
^
/home/I15255/ganesh/linux-imx6-boundary-imx_3.0.35_4.1.0/./Kbuild:35: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:985: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

This is the exact steps I followed to build.

  1. I built a config file using make menuconfig and just save the config. I dint modify any value there.
  2. I just typed make v=3 all to build kernel image. Should I do anything prior to that ??

Also I tried just 'make', 'make vmlinux'.

Also am using cygwin64 for this process.

imx8mp-a0-nitrogen8mp.dtb not found

Hi I have a nitrogen8mp board, rev 2020-10-08. I am using the Yocto HOWTO here: https://boundarydevices.com/yocto-hardknott-release-for-i-mx8-platforms/

The board does not boot, saying it cannot find "imx8mp-a0-nitrogen8mp.dtb" in the U-boot console. This is nowhere in the yocto build files. Instead, there is a imx8mp-nitrogen8mp.dtb . If I rename the DTB the board continues to boot but pauses after the line

[    2.642292] sdhci: Secure Digital Host Controller Interface driver
[    2.648488] sdhci: Copyright(c) Pierre Ossman
[    2.652974] Synopsys Designware Multimedia Card Interface Driver
[    2.659207] sdhci-pltfm: SDHCI platform and OF driver helper

U-Boot SPL 2020.10-52789-g0d6d735cef (Apr 16 2021 - 05:29:15 -0700)
config to do 4000 1d training.
config to do 400 1d training.

And eventually reboots. Any idea how to get this rev of board working for yocto hardknott?

iptables table 'mangle' does not exist

Hi.

I'm trying to use the Nitrogen6Q_W board as a captive portal hotspot.
I'm using the "Ubuntu Xenial for i.MX boards (August 2016, kernel 4.1.15)" image that I got off of the BoundaryDevices website, and I've installed hostapd, coovachilli, and freeradius.

However, CoovaChilli is spewing this error when it tries to set up it's iptables rules:

iptables: No chain/target/match by that name. iptables v1.6.0: can't initialize iptables table 'mangle': Table does not exist (do you need insmod?) Perhaps iptables or your kernel needs to be upgraded.

I've also noticed that the 'nat' table is missing too.

Do I need to recompile the kernel to enable these?
Are they supported at all?
If so, do you have any hints which flags I should change during config?

Also, is it better if I use the kernel tree from the boundary-imx_4.1.15_2.0.0_ga branch, or should I stick with 1.0.0?

Thanks,

opengl segmentation fault on imx6q-sabresd board

Using the same file system (core-image-minimal + OpenGL support, + direct framebuffer) and Linux kernel 3.0.35 I can use the Vivante examples without any problem.

Examples are from gpu_sdk_v1.00.gz (available on Freescale site).

With this new kernel version (3.10.17_1.0.0 beta branch) I get a segmentation fault with both OpenGL and OpenCL examples.

Building mxc_mipi_csi2 as a module results in incorrect images from mipi

Something seem to be wrong with the mxc_mipi_csi2 driver.
When build as a module instead of built in to the kernel all YUV images fetched over mipi is erroneous. The luma component goes missing.

Re-building in kernel results in no problems.

To reproduce:
Change CONFIG_MXC_MIPI_CSI2=y to CONFIG_MXC_MIPI_CSI2=m

Boot on new kernel and try video from OV5640 for example.

This might need to be reported upstream.

[SOLVED] Problem with video on TW6869

I have problem with video scalling. Kernel 3.8.2 , driver as module. Loading driver without problems:

modprobe videobuf_vmalloc
modprobe v4l2_common
modprobe videobuf_dma_sg
rmmod tw68v
insmod tw68v.ko

but video looks like this:
image

image

Is it hardware issue or driver?
If I scale video to 320 x 288:
image

test1.mp4.zip

missing integer.pm package during make

CALL scripts/checksyscalls.sh
CALL scripts/atomic/check-atomics.sh
CHK include/generated/compile.h
PERLASM arch/arm64/crypto/sha256-core.S
Can't locate integer.pm in @inc (you may need to install the integer module) (@inc contains: /home/eotech/projects/dnvd/kernel/boundary-devices/sdk/boundary-xwayland/3.3/sysroots/x86_64-fslcsdk-linux/usr/bin/../..//usr/lib/perl5/site_perl/5.32.1/x86_64-linux /home/eotech/projects/dnvd/kernel/boundary-devices/sdk/boundary-xwayland/3.3/sysroots/x86_64-fslcsdk-linux/usr/bin/../..//usr/lib/perl5/site_perl/5.32.1 /home/eotech/projects/dnvd/kernel/boundary-devices/sdk/boundary-xwayland/3.3/sysroots/x86_64-fslcsdk-linux/usr/bin/../..//usr/lib/perl5/vendor_perl/5.32.1 /home/eotech/projects/dnvd/kernel/boundary-devices/sdk/boundary-xwayland/3.3/sysroots/x86_64-fslcsdk-linux/usr/bin/../..//usr/lib/perl5/5.32.1/x86_64-linux /home/eotech/projects/dnvd/kernel/boundary-devices/sdk/boundary-xwayland/3.3/sysroots/x86_64-fslcsdk-linux/usr/bin/../..//usr/lib/perl5/5.32.1 /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/site_perl/5.32.1/x86_64-linux /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/site_perl/5.32.1 /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/vendor_perl/5.32.1/x86_64-linux /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/vendor_perl/5.32.1 /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/5.32.1/x86_64-linux /usr/local/oe-sdk-hardcoded-buildpath/sysroots/x86_64-fslcsdk-linux/usr/lib/perl5/5.32.1) at arch/arm64/crypto/sha512-armv8.pl line 478.
BEGIN failed--compilation aborted at arch/arm64/crypto/sha512-armv8.pl line 478.
make[2]: *** [arch/arm64/crypto/Makefile:78: arch/arm64/crypto/sha256-core.S] Error 2
make[1]: *** [scripts/Makefile.build:540: arch/arm64/crypto] Error 2
make: *** [Makefile:1868: arch/arm64] Error 2

DMA Allocation Issue with TW6865 Chip

With the new patches of tw686x applied to the kernel 4.1.15.2, following error (or warning) appears when running gstreamer-1.0 with tw6865 chip.

v4l2bufferpool gstv4l2bufferpool.c:748:gst_v4l2_buffer_pool_start:v4l2src0:pool:src Uncertain or not enough buffers, enabling copy threshold

Moreover in dmesg, I can see following error being repeated when streaming starts :
unexpected p-b buffer

I can clearly see the images in eglvivsink window. But image capturing is pretty slow and in certain occasions, the whole system hangs. I also tried increasing cma and coherent_pool sizes, but issue remains same ! Also set the gpumem=67108864 ! what could cause this "not enough buffers" issue ?

Issue while playing audio on kernel 5.4

Hello,

With BuildRoot mainline (nitrogen8mm_defconfig + alsa + tinyalsa, kernel 5.4 boundary devices, boundary_defconfig), I tried to play audio on my nitrogen8m-mini board with aplay (alsa) and tinyplay (tinyalsa) and I am facing an error.

The audio device seems to be listed by the kernel (ALSA device list: #0: wm8960-audio), but with aplay and tinyplay are exiting on error after about 10s (and no audio played).

# aplay /ring_sound.wav
Playing WAVE '/ring_sound.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: pcm_write:2058: write error: Input/output error

# tinyplay /ring_sound.wav
playing '/ring_sound.wav': 2 ch, 48000 hz, 16 bit
error playing sample

With the same board (but different kernel version) I am able to play sound with Android (with UI, not tested with aplay nor tinyplay).

I think I am missing something on BR,
Could you please help me? (I need to play audio to verify that my driver integration is OK on mainline)

Thanks,

boundary-imx-n7.1.1_1.0.0-ga - No hardware perf events supported by kernel

I am using i.MX6Q (ARM Cortex A9) based Nitrogen6x board running Android 7.1.1. Kernel (boundary-imx-n7.1.1_1.0.0-ga)

The issue I am facing is with hardware performance events support. Below is the kernel configuration.

dtsi changes --
pmu {
compatible = "arm,cortex-a9-pmu";
interrupts = <0 94 IRQ_TYPE_LEVEL_HIGH>;
}
Kernel macro enabled --
CONFIG_HW_PERF_EVENTS=y
CONFIG_DEBUG_KERNEL=n
CONFIG_TRACE=y
CONFIG_TRACING=y
CONFIG_DEBUG_FS=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y

and with these changes "armv7_a9_pmu_init" probe call succeeds and I am getting "hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available" kernel log message.
But with 'simpleperf list' it's displaying no 'events' for hw-cache and hardware.

simpleperf list
List of hw-cache events:
List of hardware events:

My question is, how to enable support of hardware events and specifically "cpu-cycle" in kernel?

Basically, I need to enabled hw perf events because we are getting a below failure while executing CTS_R13 on our device running Nougat 7.1.1.

armeabi-v7a CtsSimpleperfTestCases

record_cmd#event_modifier | fail | CtsSimpleperfTestCases E 11402 11402 event_selection_set.cpp:64] Event type 'cpu-cycles:u' is not supported by the kernel

stat_cmd#event_modifier | fail | CtsSimpleperfTestCases E 11402 11402 event_selection_set.cpp:64] Event type 'cpu-cycles:u' is not supported by the kernel

Thanks,
saiyam

v4l2-compliance command get error for ov5640 mipi camera

Hi expert,
As I want to integrate v4l2rtspserver to imx8m board, I try to build boundary-imx_6.1.y-pass2 branch and test v4l2-compliance firstly, but get bellow error:

Is it means our ov5640 mipi driver is not compliance with v4l2? how to fix these errors?
1.
[ 1161.060218] unknown pixelformat:' ' [ 1161.063995] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.

  1. vb2_core_reqbufs crash

Thanks in advance.

kernel version and test command/result as below:
`# uname -a

Linux buildroot 6.1.22 #1 SMP PREEMPT Tue Jul 4 18:41:13 CST 2023 aarch64 GNU/Linux
# v4l2-compliance
v4l2-compliance 1.24.1, 64 bits, 64-bit time_t

[ 1157.875247] ov5640_power_down: powerdown=0
[ 1159.174671] ov5640_mipi: initialized AF successufully
Compliance test for mx6s-csi device /dev/video0:

Driver Info:
Driver name : mx6s-csi
Card type : mxc-mipi-csi2.0
Bus info : platform:30a90000.csi1_bridge
Driver version : 6.1.22
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format

Required ioctls:
test VIDIOC_QUERYCAP: OK
test invalid ioctls: OK

Allow for multiple opens:
test second /dev/video0 open: OK
test VIDIOC_QUERYCAP: OK
fail: v4l2-compliance.cpp(764): prio != match
test VIDIOC_G/S_PRIORITY: FAIL
test for unlimited opens: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
fail: v4l2-test-input-output.cpp(426): std == 0
fail: v4l2-test-input-output.cpp(546): invalid attributes for input 0
test VIDIOC_G/S/ENUMINPUT: FAIL
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
test VIDIOC_QUERYCTRL: OK
[ 1160.755798] ov5640_set_wb: error -22
fail: v4l2-test-controls.cpp(493): s_ctrl returned an error (22)
test VIDIOC_G/S_CTRL: FAIL
[ 1160.779815] ov5640_set_wb: error -22
fail: v4l2-test-cont[ 1160.784029] unknown pixelformat:' '
[ 1160.790720] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
rols.cpp(962): s_ext_ctrls return[ 1160.797994] unknown pixelformat:'▒▒▒▒'
[ 1160.804582] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0xffffffff) invalid.
[ 1160.811812] unknown pixelformat:'▒▒▒▒'
[ 1160.815585] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0xffffffff) invalid.
[ 1160.822858] unknown pixelformat:' '
[ 1160.826633] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1160.833863] unknown pixelformat:' '
[ 1160.837635] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1160.844976] unknown pixelformat:' '
[ 1160.848751] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1160.855981] unknown pixelformat:' '
[ 1160.859753] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1160.867254] ------------[ cut here ]------------
[ 1160.871873] WARNING: CPU: 1 PID: 337 at drivers/media/common/videobuf2/videobuf2-core.c:841 vb2_core_reqbufs+0x170/0x460
[ 1160.882762] Modules linked in: cdc_acm crct10dif_ce ov5640_camera_mipi_v2 fsl_jr_uio
[ 1160.890528] CPU: 1 PID: 337 Comm: v4l2-compliance Tainted: G W 6.1.22 #1
[ 1160.898620] Hardware name: NXP i.MX8MQ EVK (DT)
[ 1160.903150] pstate: 80000005 (Nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 1160.910114] pc : vb2_core_reqbufs+0x170/0x460
[ 1160.914472] lr : vb2_core_reqbufs+0x138/0x460
[ 1160.918832] sp : ffff80000a18bae0
[ 1160.922144] x29: ffff80000a18bae0 x28: ffff0000037cd080 x27: ffff0000037cd430
[ 1160.929285] x26: 0000000000000000 x25: ffff0000037cd178 x24: 0000000000000000
[ 1160.936426] x23: 0000000000000001 x22: ffff80000a18bd28 x21: ffff0000037cd1b8
[ 1160.943566] x20: 0000000000000000 x19: ffff0000037cd110 x18: 0000000000000000
[ 1160.950707] x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffecbbf2e0
[ 1160.957847] x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
[ 1160.964987] x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
[ 1160.972128] x8 : ffff0000037cd1b8 x7 : 0000000000000000 x6 : 0000000000000000
[ 1160.979269] x5 : ffff800008cf0680 x4 : ffff0000037cd178 x3 : 0000000000000001
[ 1160.986409] x2 : 0000000000000000 x1 : ffff80000a18bb3c x0 : ffff80000a18bb38
[ 1160.993550] Call trace:
[ 1160.995997] vb2_core_reqbufs+0x170/0x460
[ 1161.000010] vb2_reqbufs+0x80/0xa0
[ 1161.003418] mx6s_vidioc_reqbufs+0x40/0x80
[ 1161.007518] v4l_reqbufs+0x50/0x70
[ 1161.010924] __video_do_ioctl+0x188/0x3e0
[ 1161.014934] video_usercopy+0x214/0x780
[ 1161.018771] video_ioctl2+0x18/0x30
[ 1161.022261] v4l2_ioctl+0x40/0x60
[ 1161.025583] _arm64_sys_ioctl+0xa8/0xf0
[ 1161.029514] invoke_syscall+0x48/0x120
[ 1161.033271] el0_svc_common.constprop.0+0x44/0x100
[ 1161.038065] do_el0_svc+0x30/0xd0
[ 1161.041384] el0_svc+0x2c/0x90
[ 1161.044448] el0t_64_sync_handler+0xbc/0x140
ed an error (22)
test VIDIOC_G/[ 1161.048719] el0t_64_sync+0x18c/0x190
[ 1161.055241] ---[ end trace 0000000000000000 ]---
[ 1161.060218] unknown pixelformat:' '
[ 1161.063995] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1161.071250] unknown pixelformat:' '
[ 1161.074999] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1161.082321] unknown pixelformat:' '
[ 1161.086083] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
[ 1161.093332] unknown pixelformat:' '
[ 1161.097093] mx6s-csi 30a90000.csi1_bridge: Fourcc format (0x00000000) invalid.
S/TRY_EXT_CTRLS: FAIL
fail: v4l2-test-controls.cpp(1108): subscribe event for control 'User Controls' failed
test VIDIOC
(UN)SUBSCRIBE_EVENT/DQEVENT: FAIL
test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
Standard Controls: 15 Private Controls: 0

Format ioctls:
fail: v4l2-test-formats.cpp(305): duplicate format 56595559 (YUYV)
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL
fail: v4l2-test-formats.cpp(1362): ret && node->has_frmintervals
test VIDIOC_G/S_PARM: FAIL
test VIDIOC_G_FBUF: OK (Not Supported)
fail: v4l2-test-formats.cpp(468): !pix.width || !pix.height
test VIDIOC_G_FMT: FAIL
fail: v4l2-test-formats.cpp(738): Video Capture is valid, but no TRY_FMT was implemented
test VIDIOC_TRY_FMT: FAIL
warn: v4l2-test-formats.cpp(1157): S_FMT cannot handle an invalid pixelformat.
warn: v4l2-test-formats.cpp(1158): This may or may not be a problem. For more information see:
warn: v4l2-test-formats.cpp(1159): http://www.mail-archive.com/[email protected]/msg56550.html
fail: v4l2-test-formats.cpp(1173): S_FMT cannot handle an invalid format
test VIDIOC_S_FMT: FAIL
test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
fail: v4l2-test-formats.cpp(1539): doioctl(node, VIDIOC_G_SELECTION, &sel) != EINVAL
test Cropping: FAIL
fail: v4l2-test-formats.cpp(1539): doioctl(node, VIDIOC_G_SELECTION, &sel) != EINVAL
test Composing: FAIL
fail: v4l2-test-formats.cpp(1824): doioctl(node, VIDIOC_S_FMT, &fmt)
fail: v4l2-test-formats.cpp(1972): testBasicScaling(node, fmt)
test Scaling: FAIL

Codec ioctls:
test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
test VIDIOC_G_ENC_INDEX: OK (Not Supported)
test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
fail: v4l2-test-buffers.cpp(607): q.reqbufs(node, 1)
test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: FAIL
fail: v4l2-test-buffers.cpp(783): VIDIOC_EXPBUF is supported, but the V4L2_MEMORY_MMAP support is missing or malfunctioning.
fail: v4l2-test-buffers.cpp(784): VIDIOC_EXPBUF is supported, but the V4L2_MEMORY_MMAP support is missing, probably due to earlier failing format tests.
test VIDIOC_EXPBUF: OK (Not Supported)
test Requests: OK (Not Supported)

Total for mx6s-csi device /dev/video0: 45, Succeeded: 31, Failed: 14, Warnings: 3
[ 1166.279804] ov5640_power_down: powerdown=1
=====================================================================================`

Build a new Kernel

Hi,

I'm going to build a new Kernel for Ubuntu. I followd these steps:
I have downloaded the Kernel source file from https://github.com/boundarydevices/linux-imx6.git
Then coppied the nitrogen6x_defconfig to the main root of the source code as .config.
Then I run make.
After a while I get this error:

  CC      lib/percpu_ida.o
make[1]: stat: lib/hash.c: File name too long
make[1]: *** No rule to make target `lib/hash.c', needed by `lib/hash.o'.  Stop.
make: *** [lib] Error 2

Can anyone help me to solve that and build my own image?

Can't sync time using hardware stamps

Hi, I wish to use PTP to sync device using the fec driver with kernel 2.10.17. 10.0.2_ga.
To do it, I'm using ptp version 1.8.
I'm using the following simple command 👍

  • For the master : ptp4l -i eth0 -l 7 -m
  • For the slave: ptp4l -i eth0 -s -l 7 -m
    Below a trace of my slave one :
    # ptp4l -i eth0 -l 7 -m -s
    ptp4l[55950.439]: config item (null).assume_two_step is 0
    ptp4l[55950.440]: config item (null).check_fup_sync is 0
    ptp4l[55950.440]: config item (null).tx_timestamp_timeout is 1
    ptp4l[55950.440]: config item (null).clock_servo is 0
    ptp4l[55950.440]: config item (null).time_stamping is 1
    ptp4l[55950.441]: config item (null).clock_servo is 0
    ptp4l[55950.441]: config item (null).clockClass is 248
    ptp4l[55950.441]: config item (null).clockAccuracy is 254
    ptp4l[55950.441]: config item (null).offsetScaledLogVariance is 65535
    ptp4l[55950.441]: config item (null).productDescription is ';;'
    ptp4l[55950.442]: config item (null).revisionData is ';;'
    ptp4l[55950.442]: config item (null).userDescription is ''
    ptp4l[55950.442]: config item (null).manufacturerIdentity is '00:00:00'
    ptp4l[55950.442]: config item (null).domainNumber is 0
    ptp4l[55950.443]: config item (null).slaveOnly is 1
    ptp4l[55950.443]: config item (null).twoStepFlag is 1
    ptp4l[55950.443]: config item (null).priority1 is 128
    ptp4l[55950.443]: config item (null).priority2 is 128
    ptp4l[55950.443]: config item (null).gmCapable is 1
    ptp4l[55950.443]: config item (null).gmCapable is 1
    ptp4l[55950.444]: config item (null).free_running is 0
    ptp4l[55950.444]: selected /dev/ptp0 as PTP clock
    ptp4l[55950.444]: config item (null).uds_address is '/var/run/ptp4l'
    ptp4l[55950.444]: section item /var/run/ptp4l.announceReceiptTimeout now 0
    ptp4l[55950.444]: section item /var/run/ptp4l.delay_mechanism now 0
    ptp4l[55950.445]: section item /var/run/ptp4l.network_transport now 0
    ptp4l[55950.445]: section item /var/run/ptp4l.delay_filter_length now 1
    ptp4l[55950.445]: config item (null).free_running is 0
    ptp4l[55950.445]: config item (null).freq_est_interval is 1
    ptp4l[55950.445]: config item (null).gmCapable is 1
    ptp4l[55950.446]: config item (null).kernel_leap is 1
    ptp4l[55950.446]: config item (null).utc_offset is 37
    ptp4l[55950.446]: config item (null).timeSource is 160
    ptp4l[55950.446]: config item (null).pi_proportional_const is 0.000000
    ptp4l[55950.447]: config item (null).pi_integral_const is 0.000000
    ptp4l[55950.447]: config item (null).pi_proportional_scale is 0.000000
    ptp4l[55950.447]: config item (null).pi_proportional_exponent is -0.300000
    ptp4l[55950.447]: config item (null).pi_proportional_norm_max is 0.700000
    ptp4l[55950.447]: config item (null).pi_integral_scale is 0.000000
    ptp4l[55950.448]: config item (null).pi_integral_exponent is 0.400000
    ptp4l[55950.448]: config item (null).pi_integral_norm_max is 0.300000
    ptp4l[55950.448]: config item (null).step_threshold is 0.000000
    ptp4l[55950.448]: config item (null).first_step_threshold is 0.000020
    ptp4l[55950.448]: config item (null).max_frequency is 900000000
    ptp4l[55950.449]: config item (null).tsproc_mode is 0
    ptp4l[55950.449]: config item (null).delay_filter is 1
    ptp4l[55950.449]: config item (null).delay_filter_length is 10
    ptp4l[55950.449]: config item (null).summary_interval is 0
    ptp4l[55950.449]: config item (null).sanity_freq_limit is 200000000
    ptp4l[55950.450]: PI servo: sync interval 1.000 kp 0.700 ki 0.300000
    ptp4l[55950.450]: config item /var/run/ptp4l.boundary_clock_jbod is 0
    ptp4l[55950.450]: config item /var/run/ptp4l.network_transport is 0
    ptp4l[55950.451]: config item /var/run/ptp4l.delayAsymmetry is 0
    ptp4l[55950.451]: config item /var/run/ptp4l.follow_up_info is 0
    ptp4l[55950.451]: config item /var/run/ptp4l.freq_est_interval is 1
    ptp4l[55950.451]: config item /var/run/ptp4l.hybrid_e2e is 0
    ptp4l[55950.451]: config item /var/run/ptp4l.path_trace_enabled is 0
    ptp4l[55950.452]: config item /var/run/ptp4l.ingressLatency is 0
    ptp4l[55950.452]: config item /var/run/ptp4l.egressLatency is 0
    ptp4l[55950.452]: config item /var/run/ptp4l.delay_mechanism is 0
    ptp4l[55950.452]: config item /var/run/ptp4l.fault_badpeernet_interval is 16
    ptp4l[55950.452]: config item /var/run/ptp4l.fault_reset_interval is 4
    ptp4l[55950.452]: config item /var/run/ptp4l.tsproc_mode is 0
    ptp4l[55950.453]: config item /var/run/ptp4l.delay_filter is 1
    ptp4l[55950.453]: config item /var/run/ptp4l.delay_filter_length is 1
    ptp4l[55950.453]: config item eth0.boundary_clock_jbod is 0
    ptp4l[55950.453]: config item eth0.network_transport is 1
    ptp4l[55950.453]: config item eth0.delayAsymmetry is 0
    ptp4l[55950.787]: config item eth0.follow_up_info is 0
    ptp4l[55950.787]: config item eth0.freq_est_interval is 1
    ptp4l[55950.787]: config item eth0.hybrid_e2e is 0
    ptp4l[55950.787]: config item eth0.path_trace_enabled is 0
    ptp4l[55950.787]: config item eth0.ingressLatency is 0
    ptp4l[55950.787]: config item eth0.egressLatency is 0
    ptp4l[55950.787]: config item eth0.delay_mechanism is 1
    ptp4l[55950.787]: config item eth0.fault_badpeernet_interval is 16
    ptp4l[55950.788]: config item eth0.fault_reset_interval is 4
    ptp4l[55950.788]: config item eth0.tsproc_mode is 0
    ptp4l[55950.788]: config item eth0.delay_filter is 1
    ptp4l[55950.788]: config item eth0.delay_filter_length is 10
    ptp4l[55950.788]: config item eth0.logMinDelayReqInterval is 0
    ptp4l[55950.788]: config item eth0.logAnnounceInterval is 1
    ptp4l[55950.788]: config item eth0.announceReceiptTimeout is 3
    ptp4l[55950.788]: config item eth0.syncReceiptTimeout is 0
    ptp4l[55950.789]: config item eth0.transportSpecific is 0
    ptp4l[55950.789]: config item eth0.logSyncInterval is 0
    ptp4l[55950.789]: config item eth0.logMinPdelayReqInterval is 0
    ptp4l[55950.789]: config item eth0.neighborPropDelayThresh is 20000000
    ptp4l[55950.789]: config item eth0.min_neighbor_prop_delay is -20000000
    ptp4l[55950.789]: config item eth0.udp_ttl is 1
    ptp4l[55950.790]: driver changed our HWTSTAMP options
    ptp4l[55950.791]: tx_type 1 not 1
    ptp4l[55950.791]: rx_filter 1 not 12
    ptp4l[55950.791]: config item (null).dscp_event is 0
    ptp4l[55950.791]: config item (null).dscp_general is 0
    ptp4l[55950.791]: port 1: INITIALIZING to LISTENING on INIT_COMPLETE
    ptp4l[55950.791]: config item /var/run/ptp4l.logMinDelayReqInterval is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.logAnnounceInterval is 1
    ptp4l[55950.792]: config item /var/run/ptp4l.announceReceiptTimeout is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.syncReceiptTimeout is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.transportSpecific is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.logSyncInterval is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.logMinPdelayReqInterval is 0
    ptp4l[55950.792]: config item /var/run/ptp4l.neighborPropDelayThresh is 20000000
    ptp4l[55950.793]: config item /var/run/ptp4l.min_neighbor_prop_delay is -20000000
    ptp4l[55950.793]: config item (null).uds_address is '/var/run/ptp4l'
    ptp4l[55950.793]: port 0: INITIALIZING to LISTENING on INIT_COMPLETE
    ptp4l[55950.793]: interface index 1 is up
    ptp4l[55950.794]: interface index 2 is up
    ptp4l[55950.794]: port 1: link up
    ptp4l[55950.794]: interface index 3 is down
    ptp4l[55951.019]: port 0: setting asCapable
    ptp4l[55954.357]: port 1: setting asCapable
    ptp4l[55954.357]: port 1: new foreign master 0019b8.fffe.02774a-1
    ptp4l[55958.121]: port 1: announce timeout
    ptp4l[55958.122]: config item eth0.udp_ttl is 1
    ptp4l[55958.123]: driver changed our HWTSTAMP options
    ptp4l[55958.123]: tx_type 1 not 1
    ptp4l[55958.123]: rx_filter 1 not 12
    ptp4l[55958.123]: config item (null).dscp_event is 0
    ptp4l[55958.123]: config item (null).dscp_general is 0
    ptp4l[55958.123]: selected best master clock 0019b8.fffe.0277c1
    ptp4l[55958.357]: selected best master clock 0019b8.fffe.02774a
    ptp4l[55958.357]: port 1: LISTENING to UNCALIBRATED on RS_SLAVE
    ptp4l[55959.398]: port 1: delay timeout
    ptp4l[55959.399]: delay filtered 0 raw 0
    ptp4l[55960.357]: master offset 10668909788 s0 freq +0 path delay 0
    ptp4l[55960.603]: port 1: delay timeout
    ptp4l[55960.604]: delay filtered 0 raw 0
    ptp4l[55961.358]: master offset 10668909788 s0 freq +0 path delay 0
    ptp4l[55962.358]: master offset 10668909788 s0 freq +0 path delay 0
    ptp4l[55962.495]: port 1: delay timeout
    ptp4l[55962.496]: delay filtered 0 raw 0

When I add -S to ptp (SOFTWARE STAMP), every things work right. But when I remove -S, I can see raw and path delay not equal to zero.
Sep 1 02:27:20 ptp4l: [3959.206] port 1: delay timeout
Sep 1 02:27:20 ptp4l: [3959.207] delay filtered 73190 raw 73999
Sep 1 02:27:20 ptp4l: [3959.827] master offset 4211 s2 freq +6490 path delay 73190
Sep 1 02:27:20 ptp4l: [3959.880] port 1: delay timeout
Sep 1 02:27:20 ptp4l: [3959.881] delay filtered 73190 raw 74690
ptp4l[3960.828]: master offset 14026 s2 freq +7485 path delay 73190

In the packet capture, we can see precisionOriginTime is always the same with HARDWARE mode when it changes in SOFTWARE mode (See attached).
I have tried to merge commit to this driver using patches from other branch, but I never succeed to fix it.
Can you help me ?
Thanks in advance.
ptp_18.zip

Sabre Lite / imx6q underclocking?

Hi,

I'm doing some tests on a Sabre Lite eval board, I'd like to assess wifi performance related to the CPU clock.
The kernel (v4.1 but I've upgraded to v4.10 too) dts files contain 396 MHz, 792 MHz, etc. but I'd like to go down to 200 MHz, and a simple modification to the dts file (I added 198000 to imx6q.dtsi) didn't yield the expected results (while the scaling and cpuinfo sysfs files contain the new values, cpuinfo_cur_freq stays at 398000 and no measurable performance changes observed).

I was wondering if I could get some pointers.

Regards,

Get code for kernel.

Hi,

I have downloaded Image for Nitrogen Max board for Ubuntu, it works fine.
kernel version for it is as below.
root@nitrogen:~# uname -a
Linux nitrogen 3.10.53-15-boundary-7t5 #15 SMP PREEMPT Tue Jul 21 14:07:28 MST 2015 armv7l armv7l armv7l GNU/Linux
r

From where i can get source code for this kernel version.

Thanks in advance.

Set MMC device index via devicetree alias

About commit 6e9e049, "mmc: Allow setting slot index via devicetree alias" (branch boundary-imx_4.9.x_1.0.0_ga):

I have set up aliases mmc0 = &usdhc3 (eMMC) and mmc1 = &usdhc1 (microSD) in my device tree, but mmc_blk_alloc_req() assigns devidx=1 to mmcblk0boot0 instead of reserving it for mmcblk1 ... The following fix works for me:

diff -Naur linux-4.9.74-orig/drivers/mmc/card/block.c linux-4.9.74/drivers/mmc/card/block.c
--- linux-4.9.74-orig/drivers/mmc/card/block.c  2018-03-21 19:05:25.412964135 +0000
+++ linux-4.9.74/drivers/mmc/card/block.c       2018-03-26 09:55:50.644060529 +0000
@@ -2246,7 +2246,7 @@
                return ERR_PTR(-ENOMEM);

        spin_lock(&mmc_blk_lock);
-       devidx = mmc_get_reserved_index(card->host);
+       devidx = (subname)? -ENODEV: mmc_get_reserved_index(card->host);
        if (devidx >= 0)
                devidx = ida_simple_get(&mmc_blk_ida, devidx, devidx,
                                        GFP_NOWAIT);

Best regards,
Thomas Betker

Slab leak in Android Kernel

Hi,

When trying Android 8 on a Sabrelite, I encounter an issue (located in the kernel (4.9.88 - commit 2324d06)).

The "Slab memory" is leaking when the graphics system (SurfaceFlinger) does composition.

For example, I wrote an application that pop a Toast as fast as possible.

Before running the test, cat /proc/meminfo gives:
Slab: 42092 kB
SReclaimable: 15076 kB
SUnreclaim: 27016 kB

After Running the application for 10-15 minutes:
Slab: 78960 kB
SReclaimable: 14828 kB
SUnreclaim: 64132 kB

After killing the application:
Slab: 80956 kB
SReclaimable: 14960 kB
SUnreclaim: 65996 kB

The "SUnreclaim" is not freed.

Could you please help me to fix this issue.

Thanks,

Errors when building the kernel

Hello, I met some error messages when I was trying to build the kernel. The error messages are:
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:106:12: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_callback’
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:120:10: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_callback’
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:602:15: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_inited’; did you mean ‘lcd_panel’?
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:616:17: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_callback’
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:622:11: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_inited’; did you mean ‘lcd_panel’?
drivers/video/fbdev/mxc/mipi_dsi_samsung.c:658:11: error: ‘struct mipi_dsi_info’ has no member named ‘lcd_inited’; did you mean ‘lcd_panel’?

Any suggestions?

Thanks.

TW686x driver crash at VIDIOC_REQBUFS.

platform: imx6q
kernel version: 4.1.15

I have write a v4l2 program to get frame from tw6865, but sometimes the kernel will crash at
ioctl(fd_cap_v4l, VIDIOC_REQBUFS, &rq_buf))

full code is below:

memset(&rq_buf, 0, sizeof(rq_buf));
    rq_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
    rq_buf.memory = V4L2_MEMORY_MMAP;
    rq_buf.count = V4L2_BUFFER_NUM;
    if(ioctl(fd_cap_v4l, VIDIOC_REQBUFS, &rq_buf)) {
        printf("this device dose not support mmap\n");
        goto error;
    }

The dmesg is here:

[   22.820372] gfp: 4
[   22.821124] ------------[ cut here ]------------
[   22.824444] Kernel BUG at 800e5490 [verbose debug info unavailable]
[   22.829414] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[   22.833949] Modules linked in: mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still v4l2_int_device ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc mxc_dcic
[   22.845752] CPU: 3 PID: 870 Comm: gles-surround-v Tainted: G        W  O    4.1.15-2.0.1+gb63f3f5 #7
[   22.853584] Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)
[   22.858811] task: a87f6d40 ti: a9ade000 task.ti: a9ade000
[   22.862925] PC is at new_slab+0x1f0/0x210
[   22.865636] LR is at new_slab+0x1f0/0x210
[   22.868350] pc : [<800e5490>]    lr : [<800e5490>]    psr: 600d0093
               sp : a9adfcc0  ip : 00000000  fp : 00000000
[   22.877223] r10: 00000000  r9 : a8001f00  r8 : 2ab74000
[   22.881148] r7 : a9ade000  r6 : ab731230  r5 : 80400040  r4 : 80bbd230
[   22.886377] r3 : 00000000  r2 : 00000000  r1 : 80a67c40  r0 : 00000006
[   22.891606] Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
[   22.897528] Control: 10c53c7d  Table: 399b004a  DAC: 00000015
[   22.901974] Process gles-surround-v (pid: 870, stack limit = 0xa9ade210)
[   22.907375] Stack: (0xa9adfcc0 to 0xa9ae0000)
[   22.910439] fcc0: 80bbd230 80400040 ab731230 a9ade000 2ab74000 a8001f00 00000000 800e6408
[   22.917321] fce0: 80bbe4d4 600d0013 000080d4 ab731230 a9b5a500 000082d2 ffffffff 00400040
[   22.924202] fd00: 00000010 a9a9e800 00000000 800db4b0 00000010 a9a9e800 00000000 00400040
[   22.931082] fd20: ff000000 ffffffff 000080d2 80557dd0 80c781e8 0000c3fb a8001f00 80bbe6bc
[   22.937963] fd40: 000080d4 a9ade000 a9adfd58 00000000 00000000 800e670c a9a9ec00 000a9000
[   22.944843] fd60: 00000002 a8856444 a9a9ec00 a9a9ec00 80557d88 80557db8 a9a9ec00 a8856444
[   22.951724] fd80: 00000002 80552cf4 00000000 00130012 00000001 00000001 00000003 00000002
[   22.958616] fda0: 00000000 a8856560 a8856540 a8856444 805701e8 00000000 a9adfe78 a8856478
[   22.965508] fdc0: a9b5a200 80553888 a8856560 a8856540 00000003 00000001 a87e7c08 a9adfe78
[   22.972401] fde0: a87e7c00 a9204000 805434f4 00000000 a9204000 a9b5a200 a9b5a200 8055425c
[   22.979294] fe00: 00000003 c0145608 a87e7c00 80542818 00000000 00000002 a9adfef0 a9adfe78
[   22.986187] fe20: 80c018c8 00000000 00000020 00000080 a91b0000 80bbd260 abc5fce0 a8467400
[   22.993080] fe40: a9adfe48 800e5958 810725b8 c0145608 00000014 00000000 00000003 7ef8d8c0
[   22.999973] fe60: a9adfe78 80542568 00000014 80542294 a9204000 00000000 00000003 00000001
[   23.006866] fe80: 00000001 00000000 00000000 800f80d8 a9adfeac a91b0000 140400fb 800d449c
[   23.013759] fea0: a8dc9898 800d4514 a8dc9908 00000002 a88e26d0 a6068dd0 a8dc9900 00000000
[   23.020652] fec0: a9204f00 a9adff74 00000001 ffffff9c a91b0000 8000f604 a9ade000 00000000
[   23.027545] fee0: 810725b8 800f9448 00000041 000a9000 a88e26d0 a6068dd0 9087e795 a87e7c00
[   23.034438] ff00: a9204000 c0145608 7ef8d8c0 a8856608 a9ade000 00000000 810725b8 8053ec8c
[   23.041331] ff20: 7ef8d8c0 a88ca1a0 a9204000 0000000a 7ef8d8c0 800fb844 a9adff40 800e50d0
[   23.048224] ff40: 80bbe728 0000000a a9204000 a91b0000 a88ca1a0 a9204008 00000020 00000000
[   23.055116] ff60: 810725b8 800ea90c 00000000 00000000 a9204001 0000000a a9204000 c0145608
[   23.062009] ff80: 7ef8d8c0 a9ade000 00000000 800fba98 7ef8db60 00000001 7ef8d8c0 00000036
[   23.068901] ffa0: 8000f604 8000f480 7ef8db60 00000001 0000000a c0145608 7ef8d8c0 00000003
[   23.075794] ffc0: 7ef8db60 00000001 7ef8d8c0 00000036 00000002 7ef8d9e0 7ef8dbb4 810725b8
[   23.082687] ffe0: 00029694 7ef8d89c 000157fc 75cea2bc 600d0010 0000000a 00000000 00000000
[   23.089605] [<800e5490>] (new_slab) from [<800e6408>] (__slab_alloc.constprop.1+0x2dc/0x344)
[   23.096770] [<800e6408>] (__slab_alloc.constprop.1) from [<800e670c>] (kmem_cache_alloc+0x11c/0x15c)
[   23.104639] [<800e670c>] (kmem_cache_alloc) from [<80557db8>] (vb2_vmalloc_alloc+0x30/0xb8)
[   23.111718] [<80557db8>] (vb2_vmalloc_alloc) from [<80552cf4>] (__vb2_queue_alloc+0x134/0x4d0)
[   23.119051] [<80552cf4>] (__vb2_queue_alloc) from [<80553888>] (__reqbufs+0x138/0x348)
[   23.125690] [<80553888>] (__reqbufs) from [<8055425c>] (vb2_ioctl_reqbufs+0x58/0x80)
[   23.132160] [<8055425c>] (vb2_ioctl_reqbufs) from [<80542818>] (__video_do_ioctl+0x2b0/0x324)
[   23.139408] [<80542818>] (__video_do_ioctl) from [<80542294>] (video_usercopy+0x1b8/0x480)
[   23.146393] [<80542294>] (video_usercopy) from [<8053ec8c>] (v4l2_ioctl+0x118/0x150)
[   23.152860] [<8053ec8c>] (v4l2_ioctl) from [<800fb844>] (do_vfs_ioctl+0x3e8/0x608)
[   23.159150] [<800fb844>] (do_vfs_ioctl) from [<800fba98>] (SyS_ioctl+0x34/0x5c)
[   23.165187] [<800fba98>] (SyS_ioctl) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
[   23.171474] Code: e30f0d38 e1a01003 e34800a1 eb1cd375 (e7f001f2) 
[   23.176282] ---[ end trace 4b2544b1c6bf4015 ]---

imx6_pcie_link_up: scheduling while atomic

usleep_range is called in atomic context at imx6_pcie_link_up.
(branch: boundary-imx_3.10.17_1.0.0_ga)

=== kernel message ===
PCI: enabling device 0000:01:00.0 (0140 -> 0142)
BUG: scheduling while atomic: udevd/163/0x00000002
Modules linked in: ath9k(+) ath9k_common ath9k_hw ath
CPU: 0 PID: 163 Comm: udevd Not tainted 3.10.17-1.0.0-wandboard-02558-g41aacad #13
[<80014600>] (unwind_backtrace+0x0/0xf8) from [<80011460>] (show_stack+0x10/0x14)
[<80011460>] (show_stack+0x10/0x14) from [<8065d720>] (__schedule_bug+0x44/0x5c)
[<8065d720>] (__schedule_bug+0x44/0x5c) from [<80663340>] (__schedule+0x4e4/0x58c)
[<80663340>] (__schedule+0x4e4/0x58c) from [<80662780>] (schedule_hrtimeout_range_clock+0xd8/0x144)
[<80662780>] (schedule_hrtimeout_range_clock+0xd8/0x144) from [<80033d84>] (usleep_range+0x48/0x50)
[<80033d84>] (usleep_range+0x48/0x50) from [<802a24d8>] (imx6_pcie_link_up+0x38/0x150)
[<802a24d8>] (imx6_pcie_link_up+0x38/0x150) from [<802a1898>] (dw_pcie_valid_config.isra.3+0x3c/0x8c)
[<802a1898>] (dw_pcie_valid_config.isra.3+0x3c/0x8c) from [<802a1bc0>] (dw_pcie_wr_conf+0x3c/0xf8)
[<802a1bc0>] (dw_pcie_wr_conf+0x3c/0xf8) from [<80291fdc>] (pci_bus_write_config_word+0x60/0x78)
[<80291fdc>] (pci_bus_write_config_word+0x60/0x78) from [<802950c4>] (__pci_set_master+0x50/0x64)
[<802950c4>] (__pci_set_master+0x50/0x64) from [<80298380>] (pci_set_master+0x10/0x1c)
[<80298380>] (pci_set_master+0x10/0x1c) from [<7f081bfc>] (ath_pci_probe+0xe4/0x2b4 [ath9k])
[<7f081bfc>] (ath_pci_probe+0xe4/0x2b4 [ath9k]) from [<80299750>] (pci_device_probe+0x74/0xac)
[<80299750>] (pci_device_probe+0x74/0xac) from [<8031b56c>] (driver_probe_device+0x104/0x214)
[<8031b56c>] (driver_probe_device+0x104/0x214) from [<8031b708>] (__driver_attach+0x8c/0x90)
[<8031b708>] (__driver_attach+0x8c/0x90) from [<80319da4>] (bus_for_each_dev+0x54/0x88)
[<80319da4>] (bus_for_each_dev+0x54/0x88) from [<8031ac90>] (bus_add_driver+0xd8/0x228)
[<8031ac90>] (bus_add_driver+0xd8/0x228) from [<8031bbbc>] (driver_register+0x78/0x144)
[<8031bbbc>] (driver_register+0x78/0x144) from [<7f088008>] (ath9k_init+0x8/0x2c [ath9k])
[<7f088008>] (ath9k_init+0x8/0x2c [ath9k]) from [<8000862c>] (do_one_initcall+0x34/0x15c)
[<8000862c>] (do_one_initcall+0x34/0x15c) from [<8006b8b0>] (load_module+0x1a44/0x1e5c)
[<8006b8b0>] (load_module+0x1a44/0x1e5c) from [<8006be10>] (SyS_finit_module+0x68/0x6c)
[<8006be10>] (SyS_finit_module+0x68/0x6c) from [<8000e080>] (ret_fast_syscall+0x0/0x30)
ieee80211 phy0: Atheros AR9462 Rev:2 mem=0xc0c00000, irq=155
=======================

Lock held at pci_bus_write_config_word.

=== drivers/pci/access.c ===
43 #define PCI_OP_WRITE(size,type,len) \
44 int pci_bus_write_config_##size \
45     (struct pci_bus *bus, unsigned int devfn, int pos, type value)  \
46 {                                   \
47     int res;                            \
48     unsigned long flags;                        \
49     if (PCI_##size##_BAD) return PCIBIOS_BAD_REGISTER_NUMBER;   \
50     raw_spin_lock_irqsave(&pci_lock, flags);            \
51     res = bus->ops->write(bus, devfn, pos, len, value);     \
52     raw_spin_unlock_irqrestore(&pci_lock, flags);       \
53     return res;                         \
54 }
============================

Build of drivers/video/fbdev is broken

A commit of include/dt-bindings/display/simple_panel_mipi_cmds.h_ on about 9th May 2020 has removed the definition of S_DCS_READ. This symbol is used in drivers/video/fbdev/mxc/mipi_dsi.c which will no longer compile.

4.15

4.9 is a bit old for us, any chance for at least 4.15?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.