Coder Social home page Coder Social logo

ti-linux-kernel-dev's Introduction

This is just a set of scripts to rebuild a known working kernel for ARM devices.

Script Bugs: "[email protected]"

Note, for older git tag's please use: https://github.com/RobertCNelson/yakbuild

Dependencies: GCC Cross ToolChain

https://mirrors.edge.kernel.org/pub/tools/crosstool/

Dependencies: Linux Kernel Source

This git repo contains just scripts/patches to build a specific kernel for some ARM devices. The kernel source will be downloaded when you run any of the build scripts.

By default this script will clone the linux-stable tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git to: ${DIR}/ignore/linux-src:

If you've already cloned torvalds tree and would like to save some hard drive space, just modify the LINUX_GIT variable in system.sh to point to your current git clone directory.

Build Kernel Image:

./build_kernel.sh

Optional: Build Debian Package:

./build_deb.sh

Development/Hacking:

first run (to setup baseline tree):

./build_kernel.sh

then modify files under KERNEL directory then run (to rebuild with your changes):

./tools/rebuild.sh

ti-linux-kernel-dev's People

Contributors

john3909 avatar mvduin avatar pdp7 avatar robert-budde avatar robertcnelson avatar sebkuzminsky avatar stashlukj avatar thess 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

Watchers

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

ti-linux-kernel-dev's Issues

fatal: reference is not a tree: 4993d845b9af8a51255aa2978e25715f0207162e

While trying to build ti-linux-xenomai-4.4.y with build_kernel.sh, I get error

fatal: reference is not a tree: 4993d845b9af8a51255aa2978e25715f0207162e

I fixed this as follows:
first let it fail, then do this:

cd ignore/xenomai
git remote add xeno git://git.xenomai.org/xenomai-3.git
git fetch xeno
git checkout 4993d845b9af8a51255aa2978e25715f0207162e

then run build_kernel.sh again

Build specific kernel version

Hi, I am trying to build a specific kernel version (e.g. 4.4.9). Somehow, I only manage to build the version at the HEAD of the linux-stable repo (4.4.19 now). Is it possible to do that ?

Thanks and best.

P9.19-P9.20.patch and PRU vs HW UART

In reference to af15b78 which you helpfully pointed out when I was asking on dtb-rebuilder, I am having a bit of trouble.

To achieve flow control on UART1, you suggested I simply claim them:

config-pin P9_19 uart
config-pin P9_20 uart

However, I got the same old response when I attempt this

$ config-pin P9_19 uart
Invalid mode: uart

Upon closer inspection of your patch, I realized that the most relevant added pinctrl-name is in fact pru_uart. This is new to me but it looks like it's software UART via the PRU peripheral. That would be fine for my application, but there is no device file yet (/dev/ttySU0) for this kind of UART. I'm going to see how to make that happen, but I am wondering, was hardware UART intentionall omitted in this patch?

ti-linux-xenomai-4.19.y doesn't build

I get

  MODPOST vmlinux.o
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: arch/arm/xenomai/machine.o: in function `mach_arm_calibrate':
machine.c:(.text+0x44): undefined reference to `__ipipe_mach_get_tsc'
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: machine.c:(.text+0x4c): undefined reference to `__ipipe_mach_get_tsc'
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: machine.c:(.text+0x78): undefined reference to `__ipipe_mach_get_tsc'
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: machine.c:(.text+0x8c): undefined reference to `__ipipe_mach_get_tsc'
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: kernel/xenomai/clock.o: in function `xnclock_core_read_monotonic':
(.text+0x2dc): undefined reference to `__ipipe_mach_get_tsc'
/home/giulio/bela-image-builder-stretch/downloads/ti-linux-kernel-dev/dl/gcc-8.4.0-nolibc/arm-linux-gnueabi/bin/arm-linux-gnueabi-ld: kernel/xenomai/clock.o:clock.c:(.text+0x414): more undefined references to `__ipipe_mach_get_tsc' follow
Makefile:1033: recipe for target 'vmlinux' failed
make[3]: *** [vmlinux] Error 1
debian/rules:6: recipe for target 'build' failed
make[2]: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
scripts/package/Makefile:79: recipe for target 'bindeb-pkg' failed
make[1]: *** [bindeb-pkg] Error 2
Makefile:1365: recipe for target 'bindeb-pkg' failed
make: *** [bindeb-pkg] Error 2

.config file attached defconfig.zip

capemgr not working on 4.14.108-ti-r135.1

On 4.14.108-ti-r135.1 :

echo BB-UART4 > /sys/devices/platform/bone_capemgr/slots

gives

[   58.322660] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[   58.332744] pgd = db380000
[   58.335937] [0000000c] *pgd=9b5e8831, *pte=00000000, *ppte=00000000
[   58.344373] Internal error: Oops: 17 [#1] PREEMPT SMP ARM
[   58.349819] Modules linked in:
[   58.352901] CPU: 0 PID: 392 Comm: bash Not tainted 4.14.108-ti-r135.1 #1xross
[   58.360067] Hardware name: Generic AM33XX (Flattened Device Tree)
[   58.366188] task: dc3ede00 task.stack: db218000
[   58.370751] PC is at __of_overlay_create+0x39c/0xac8
[   58.375736] LR is at __of_overlay_create+0x3a8/0xac8
[   58.380721] pc : [<c0a88944>]    lr : [<c0a88950>]    psr: 200f0013
[   58.387014] sp : db219d58  ip : db24ae00  fp : db219dec
[   58.392260] r10: dc5a7851  r9 : 00000000  r8 : 00000004
[   58.397507] r7 : db661c80  r6 : 00000004  r5 : db337ccc  r4 : 00000110
[   58.404062] r3 : c0a87c00  r2 : 00000000  r1 : 0000002f  r0 : 00000000
[   58.410619] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[   58.417785] Control: 10c5387d  Table: 9b380019  DAC: 00000051
[   58.423555] Process bash (pid: 392, stack limit = 0xdb218218)
[   58.429325] Stack: (0xdb219d58 to 0xdb21a000)
[   58.433702] 9d40:                                                       00000000 014000c0
[   58.441920] 9d60: 00000000 c0a87a3c db219d94 db219d78 db661ca0 db661c84 c13c4818 200f0013
[   58.450136] 9d80: db219dac c1305e08 c0a7c158 db661c98 db219dac db219da0 00000000 c1087990
[   58.458354] 9da0: 00000014 dc5a7000 c1011734 c0a87c00 db390010 dc5bba18 000000a1 1cfd5bf3
[   58.466570] 9dc0: 00000002 db390010 dc5bba18 00000000 c1305e08 00000000 dc5bba18 db39025b
[   58.474787] 9de0: db219dfc db219df0 c0a89090 c0a885b4 db219e74 db219e00 c08cb3ac c0a8907c
[   58.483003] 9e00: 00000002 db219e10 c0389368 c08cc410 00000000 db39025b c1305e08 dc5bba20
[   58.491220] 9e20: 00000003 dc242010 00000003 dc5bba10 dc5a7000 dc242010 dc242010 e03b00c8
[   58.499437] 9e40: c0899fa4 1cfd5bf3 db219e70 db225a00 c1305e08 dc5bba10 db225840 dc242010
[   58.507654] 9e60: 00000000 db390010 db219eb4 db219e78 c08cc738 c08cb158 00000000 db292240
[   58.515871] 9e80: c1012fb0 1cfd5bf3 00000000 c08cc5e8 dc5c6700 00000000 00000000 db219f68
[   58.524087] 9ea0: db225840 dc5c6710 db219ecc db219eb8 c0898390 c08cc5f4 c0898368 dc5c6700
[   58.532304] 9ec0: db219ee4 db219ed0 c0387f5c c0898374 00000009 dc5c6700 db219f1c db219ee8
[   58.540521] 9ee0: c0387648 c0387f20 00000000 00000000 dc68d988 c0387550 db292240 020d0408
[   58.548738] 9f00: db219f68 00000000 020d0408 00000009 db219f34 db219f20 c02fcfc8 c038755c
[   58.556955] 9f20: 00000009 db292240 db219f64 db219f38 c02fd1d0 c02fcfac db292240 c031fd18
[   58.565171] 9f40: c1305e08 db292240 00000000 00000000 db292240 020d0408 db219fa4 db219f68
[   58.573388] 9f60: c02fd44c c02fd128 00000000 00000000 c031fbd8 1cfd5bf3 00000000 00000009
[   58.581604] 9f80: 020d0408 b6f81d60 00000004 c01090a4 db218000 00000004 00000000 db219fa8
[   58.589821] 9fa0: c0108ea0 c02fd3fc 00000009 020d0408 00000001 020d0408 00000009 00000000
[   58.598038] 9fc0: 00000009 020d0408 b6f81d60 00000004 020d0408 00000009 00000000 00000000
[   58.606254] 9fe0: 00000000 bee7291c b6ee41bb b6f20cf6 00000030 00000001 00000000 00000000
[   58.614487] [<c0a88944>] (__of_overlay_create) from [<c0a89090>] (of_overlay_create+0x20/0x24)
[   58.623155] [<c0a89090>] (of_overlay_create) from [<c08cb3ac>] (capemgr_load_slot+0x260/0x5d4)
[   58.631812] [<c08cb3ac>] (capemgr_load_slot) from [<c08cc738>] (slots_store+0x150/0x328)
[   58.639949] [<c08cc738>] (slots_store) from [<c0898390>] (dev_attr_store+0x28/0x34)
[   58.647653] [<c0898390>] (dev_attr_store) from [<c0387f5c>] (sysfs_kf_write+0x48/0x54)
[   58.655611] [<c0387f5c>] (sysfs_kf_write) from [<c0387648>] (kernfs_fop_write+0xf8/0x1dc)
[   58.663837] [<c0387648>] (kernfs_fop_write) from [<c02fcfc8>] (__vfs_write+0x28/0x48)
[   58.671709] [<c02fcfc8>] (__vfs_write) from [<c02fd1d0>] (vfs_write+0xb4/0x1c4)
[   58.679054] [<c02fd1d0>] (vfs_write) from [<c02fd44c>] (SyS_write+0x5c/0xbc)
[   58.686147] [<c02fd44c>] (SyS_write) from [<c0108ea0>] (ret_fast_syscall+0x0/0x54)
[   58.693757] Code: e5859038 e585503c e5853034 e5859028 (e590a00c)
[   58.708080] ---[ end trace a1d58a886c119ce5 ]---

Is this expected? Has the capemgr reached EOL?

pinmux file not found , pin has no cape

Hello.
I have encountered a problem when configuring a pin. I want to use u-boot overlays.
I need to configure pins to use eQEP. Running following command:

config-pin P8.33 qep

results in:

P8_33 pinmux file not found!
Pin has no cape: P8_33

Here is the output of sudo /opt/scripts/tools/version.sh:

git:/opt/scripts/:[ad016da40de5805f1a6f981cbb6c454b1a7f244b]
eeprom:[A335BNLT00C02017BBBK373E]
model:[TI_AM335x_BeagleBone_Black]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2018.01-dirty]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2016.01-00001-g4eb802e]
kernel:[4.4.110-ti-r144]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~xenial+20180126]
WARNING:pkg:[bb-wl18xx-firmware]:[NOT_INSTALLED]
WARNING:pkg:[firmware-ti-connectivity]:[NOT_INSTALLED]
groups: 'debian': no such user
groups:[]
dmesg | grep pinctrl-single
[    0.751547] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
[    0.752359] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0
[    0.752513] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1
[    0.752525] gpio-of-helper ocp:cape-universal: ready
END

Here is my uEnv.txt:

uname_r=4.4.110-ti-r144
enable_uboot_overlays=1
disable_uboot_overlay_video=1
enable_uboot_cape_universal=1

I cannot figure out what the problem is. It would be very nice if someone could help.

Patrick

Network issue

Goodmorning to all,
I've just installed the kernel version:
Linux arm 4.14.108-ti-xenomai-r120 #1 SMP PREEMPT Thu Oct 10 09:31:35 CEST 2019 armv7l GNU/Linux
and root file system:
debian-9.8-minimal-armhf-2019-02-16
following the steps explained here:
https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black

I've got some difficulties implementing an Ethercat master using SOEM repository on my beaglebone black. Reason why I've opened an issue here:
OpenEtherCATsociety/SOEM#344
For information if I install the same repository in my PC Ubuntu 16.04, it works like a charm.

They suggest possible problems:
There has been a bug in the network stack last year that prevented outputting the correct frames. It can also be there are some firewall rules active that prevent frames returning to SOEM.

Do you have any information/ideas about that?
Thank you in advanced.

rcu_preempt detected stalls on CPUs/tasks

I build 4.14.108-ti-xenomai-r143 and Ubuntu18.04 on Beaglebone AI. and i compiled IGH,when i start ethercat and scan slaves,it works well.but when i using the xenomai example in IGH .system will get stuck.i have no idea about it
图片

kernel 4.4 can't boot on beaglebone ai

kernel 4.14-xenomai boot ok, 4.4 failed to boot.
can any modification to boot 4.4 kernel?
because of some reason, i want to use 4.4 kernel. why it can't boot?
Thanks very much and regards

DMTimer user questions

kernel = linux-rt-4.14.114

cross compiler = arm-linux-gnueabihf-gcc


Hi

I want to use the dmtimer library:

header file: /include/clocksource/timer-ti-dm.h
C FIle: /drivers/clocksource/timer-ti-dm.c

in a kernel modul: https://github.com/ddrown/pps-gmtimer/blob/ti_4_9_x/pps-gmtimer.c

(this is an old version of the module to use it now, i changed the header:
#include <plat/dmtimer.h> to: #include <clocksource/timer-ti-dm.h>)

the modul use a hw-timer for a pps device.

if im compiling the module i get the following compiler-warnings:

WARNING: "omap_dm_timer_get_fclk" [/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_enable" [/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_request_by_node" [/gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_read_status" /gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_free" [/gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_stop" /gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_set_int_disable" [/gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_set_source" [/gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!
WARNING: "omap_dm_timer_read_counter" [/gps_cape/pps-gmtimer/kernel/pps-gmtimer/pps-gmtimer.ko] undefined!

and if im trying to load the compiled module with:

sudo insmod pps-gmtimer.ko

i get the following errors:

[ 228.063538] pps_gmtimer: Unknown symbol omap_dm_timer_request_by_node (err 0)
[ 3330.286407] pps_gmtimer: Unknown symbol omap_dm_timer_stop (err 0)
[ 3330.286431] pps_gmtimer: Unknown symbol omap_dm_timer_set_source (err 0)
[ 3330.286446] pps_gmtimer: Unknown symbol omap_dm_timer_get_fclk (err 0)
[ 3330.286460] pps_gmtimer: Unknown symbol omap_dm_timer_free (err 0)
[ 3330.286471] pps_gmtimer: Unknown symbol omap_dm_timer_request_by_node (err 0)
[ 3330.286517] pps_gmtimer: Unknown symbol omap_dm_timer_set_int_disable (err 0)
[ 3330.286540] pps_gmtimer: Unknown symbol omap_dm_timer_enable (err 0)
[ 3330.289645] pps_gmtimer: Unknown symbol omap_dm_timer_read_counter (err 0)
[ 3330.289676] pps_gmtimer: Unknown symbol omap_dm_timer_read_status (err 0)

In the thread: https://e2e.ti.com/support/processors/f/791/t/821652 the problem was solved by editing timer-ti-dm.c and adding the EXPORT_SYMBOL-macro to the missing functions.

But if i use this solution i have to manipulate and rebuild the kernel... and this not a user friendly way to use the dmtimer library.

So my question: Is there way to use the dmtimer library in an kernel modul without rebuilding the kernel? or Do i have to take another way to use the timers - which one?

When using 'sudo apt-get update", "Writing more data than expected (631844 > 631714)" error happens!

debian@beaglebone:~$ sudo apt-get update
Hit:1 http://security.debian.org stretch/updates InRelease
Hit:2 http://ftp.debian.org/debian stretch-backports InRelease
Get:3 http://repos.rcn-ee.com/debian stretch InRelease [3,058 B]
Ign:4 http://ftp.us.debian.org/debian stretch InRelease
Hit:5 http://ftp.us.debian.org/debian stretch-updates InRelease
Hit:6 http://ftp.us.debian.org/debian stretch Release
Get:7 http://124.202.164.13/files/211600000C58CC15/httpredir.debian.org/debian stretch/main armhf Packages [632 kB]
Err:7 http://124.202.164.13/files/211600000C58CC15/httpredir.debian.org/debian stretch/main armhf Packages
Writing more data than expected (631844 > 631714)
Hashes of expected file:

  • Filesize:631714 [weak]
  • SHA256:315e3dc6686d1f9c4386348f402b9729fcd4d8aed8f8895bcaebf759ade0766f
  • SHA1:1701a3a49ecdb66a4d3cbb9e24eda4d5f6a96f48 [weak]
  • MD5Sum:98137548a7dfd88b9a6549829356c030 [weak]
    Release file created at: Fri, 17 Aug 2018 03:06:00 +0000
    Fetched 3,058 B in 35s (85 B/s)
    Reading package lists... Done
    E: Failed to fetch http://124.202.164.13/files/211600000C58CC15/httpredir.debian.org/debian/dists/stretch/main/binary-armhf/Packages.gz Writing more data than expected (631844 > 631714)
    Hashes of expected file:
    - Filesize:631714 [weak]
    - SHA256:315e3dc6686d1f9c4386348f402b9729fcd4d8aed8f8895bcaebf759ade0766f
    - SHA1:1701a3a49ecdb66a4d3cbb9e24eda4d5f6a96f48 [weak]
    - MD5Sum:98137548a7dfd88b9a6549829356c030 [weak]
    Release file created at: Fri, 17 Aug 2018 03:06:00 +0000
    E: Some index files failed to download. They have been ignored, or old ones used instead.

Using rpmsg crashes the drive

As an example of using the rpmsg feature, this application (https://github.com/RoSchmi/Beaglebone-PRU-RPMsg-HelloWorld ) demonstrates what I'm seeing when I'm trying to use rpmsg.

Once I build main0.c for the pru, I copy am335x-pru0-fw into /lib/firmware, and start it with echo start >> /sys/class/remoteproc/remoteproc1/state I get the following error in dmesg (then the system becomes unstable until I reboot).

[ 2215.373274] remoteproc remoteproc1: powering up 4a334000.pru
[ 2215.390174] remoteproc remoteproc1: Booting fw image am335x-pru0-fw, size 74304
[ 2215.390416] remoteproc remoteproc1: unsupported resource 5
[ 2215.394040] pru-rproc 4a334000.pru: Allocated carveout doesn't fit device address request
[ 2215.394208] pru-rproc 4a334000.pru: Allocated carveout doesn't fit device address request
[ 2215.399406]  remoteproc1#vdev0buffer: registered virtio0 (type 7)
[ 2215.399438] remoteproc remoteproc1: remote processor 4a334000.pru is now up
[ 2215.474222] 8<--- cut here ---
[ 2215.483349] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 2215.502608] pgd = f4da8766
[ 2215.506508] [00000000] *pgd=00000000
[ 2215.511369] Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[ 2215.516922] Modules linked in: virtio_rpmsg_bus(+) rpmsg_core ip6t_REJECT nf_reject_ipv6 ipt_REJECT nf_reject_ipv4 ip6table_filter ip6_tables xt_MASQUERADE nf_conntrack_netlink nfnetlink xfrm_user xfrm_algo br_netfilter wl18xx wlcore mac80211 cfg80211 xt_owner libarc4 hci_uart btqca btrtl btbcm btintel rfcomm bluetooth pru_rproc irq_pruss_intc pm33xx pruss ti_eqep counter c_can_platform c_can can_dev spidev evdev wkup_m3_ipc uio_pdrv_genirq uio cpufreq_dt sch_fq_codel
[ 2215.560312] CPU: 0 PID: 3094 Comm: systemd-udevd Not tainted 5.10.162+ #1
[ 2215.567384] Hardware name: Generic AM33XX (Flattened Device Tree)
[ 2215.573750] PC is at pru_rproc_kick+0x54/0x100 [pru_rproc]
[ 2215.579478] LR is at rproc_virtio_notify+0x2c/0x54
[ 2215.584469] pc : [<bf062584>]    lr : [<c0c305b0>]    psr: 20030013
[ 2215.590999] sp : d009dcf0  ip : d009dcf8  fp : dc909e00
[ 2215.596436] r10: 00004000  r9 : dc908000  r8 : 00000cc0
[ 2215.601877] r7 : 00000000  r6 : d00b3c00  r5 : c4017420  r4 : c40176f0
[ 2215.608675] r3 : 00000000  r2 : 00000001  r1 : 00000000  r0 : bf064770
[ 2215.615474] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[ 2215.622901] Control: 10c5387d  Table: 9000c019  DAC: 00000051
[ 2215.628888] Process systemd-udevd (pid: 3094, stack limit = 0x2cfb087a)
[ 2215.635778] Stack: (0xd009dcf0 to 0xd009e000)
[ 2215.640320] dce0:                                     00000cc0 bf33418c bf064770 bf064774
[ 2215.648841] dd00: bf064778 c9168545 00000cc0 c4017400 00000000 c0c305b0 d0235d80 00000001
[ 2215.657363] dd20: d00b3c00 c08804a0 d0235180 bf334a28 00000035 00000000 00000000 c03f7ae4
[ 2215.665881] dd40: d0282ec8 bf3360f8 00000000 dfd65546 00000e00 00000200 00000000 bf334c94
[ 2215.674400] dd60: bf334028 d0235d80 d0235300 c9168545 d0282cb8 d00b3c10 d00b3c00 d00b3e00
[ 2215.682921] dd80: bf338000 00000000 00000000 00000001 00000000 c0880368 d00b3c10 00000000
[ 2215.691441] dda0: 00000000 d00b3c10 c298a82c 00000000 00000000 c298a834 bf338000 00000023
[ 2215.699958] ddc0: 02352cb8 c09753d0 d00b3c10 c9168545 02352cb8 d00b3c10 bf338000 d00b3c54
[ 2215.708480] dde0: bf338000 d0235938 d009c000 0000017b 02352cb8 c0975bf8 00000000 c9168545
[ 2215.716998] de00: d009c000 d00b3c10 00000000 d00b3c54 bf338000 d0235938 d009c000 c0975fa8
[ 2215.725519] de20: 00000000 bf338000 d00b3c10 c28b1fe4 d0235938 c097605c bf338000 bf338000
[ 2215.734038] de40: c0975fb0 c28b1fe4 d0235938 c0972fc4 c309716c c3097158 d02354b4 c9168545
[ 2215.742558] de60: bf338000 d0235900 00000000 c0974600 bf336530 c08072a8 bf338000 00000000
[ 2215.751077] de80: 0000000f 00000000 c01002c4 c0976be8 bf33b000 d0130bc0 0000000f bf33b010
[ 2215.759600] dea0: bf33b000 c0102170 00000cc0 c280cd78 c01f43f4 00000008 00000000 b03f185d
[ 2215.768118] dec0: d009dec8 c0336fc8 d009dee0 00000000 80270d0d b03f185d 00000cc0 c01f43f4
[ 2215.776642] dee0: d0130bc0 c9168545 00000000 bf3381c0 b6ccb620 c9168545 0000017b bf3381c0
[ 2215.785162] df00: d0130bc0 0000000f 0000017b c01f4414 0000017b c01002c4 00000000 b6ccb620
[ 2215.793685] df20: 0000000f c01f7558 d009df3c 7fffffff 00000000 00000002 00000000 e24d6000
[ 2215.802205] df40: e24d8081 e24d77c0 e24d6000 00005b68 e24db4d8 e24db338 e24d9de4 00005000
[ 2215.810726] df60: 000052e0 000036fc 00005523 bf338090 00000008 00000000 000036ec 00000027
[ 2215.819245] df80: 00000028 0000000f 00000021 00000020 00000000 c9168545 00000000 00000000
[ 2215.827762] dfa0: 00000000 c01002a0 00000000 00000000 0000000f b6ccb620 00000000 00020000
[ 2215.836283] dfc0: 00000000 00000000 00000000 0000017b 00000000 b6e8137b 00000000 02352cb8
[ 2215.844802] dfe0: be90a790 be90a780 b6cc65b3 b6bfaf22 40010030 0000000f 00000000 00000000
[ 2215.853346] [<bf062584>] (pru_rproc_kick [pru_rproc]) from [<c0c305b0>] (rproc_virtio_notify+0x2c/0x54)
[ 2215.863150] [<c0c305b0>] (rproc_virtio_notify) from [<c08804a0>] (virtqueue_notify+0x1c/0x34)
[ 2215.872064] [<c08804a0>] (virtqueue_notify) from [<bf334a28>] (rpmsg_probe+0x2a8/0x380 [virtio_rpmsg_bus])
[ 2215.882147] [<bf334a28>] (rpmsg_probe [virtio_rpmsg_bus]) from [<c0880368>] (virtio_dev_probe+0x220/0x2e0)
[ 2215.892211] [<c0880368>] (virtio_dev_probe) from [<c09753d0>] (really_probe+0xf8/0x4e4)
[ 2215.900553] [<c09753d0>] (really_probe) from [<c0975bf8>] (driver_probe_device+0xf4/0x1c8)
[ 2215.909163] [<c0975bf8>] (driver_probe_device) from [<c0975fa8>] (device_driver_attach+0xa8/0xb0)
[ 2215.918409] [<c0975fa8>] (device_driver_attach) from [<c097605c>] (__driver_attach+0xac/0x144)
[ 2215.927379] [<c097605c>] (__driver_attach) from [<c0972fc4>] (bus_for_each_dev+0x74/0xc0)
[ 2215.935899] [<c0972fc4>] (bus_for_each_dev) from [<c0974600>] (bus_add_driver+0x114/0x208)
[ 2215.944511] [<c0974600>] (bus_add_driver) from [<c0976be8>] (driver_register+0x88/0x118)
[ 2215.952948] [<c0976be8>] (driver_register) from [<bf33b010>] (rpmsg_init+0x10/0x1000 [virtio_rpmsg_bus])
[ 2215.962843] [<bf33b010>] (rpmsg_init [virtio_rpmsg_bus]) from [<c0102170>] (do_one_initcall+0x40/0x2cc)
[ 2215.972642] [<c0102170>] (do_one_initcall) from [<c01f4414>] (do_init_module+0x44/0x254)
[ 2215.981074] [<c01f4414>] (do_init_module) from [<c01f7558>] (sys_finit_module+0xbc/0x120)
[ 2215.989596] [<c01f7558>] (sys_finit_module) from [<c01002a0>] (__sys_trace_return+0x0/0x20)
[ 2215.998293] Exception stack(0xd009dfa8 to 0xd009dff0)
[ 2216.003555] dfa0:                   00000000 00000000 0000000f b6ccb620 00000000 00020000
[ 2216.012075] dfc0: 00000000 00000000 00000000 0000017b 00000000 b6e8137b 00000000 02352cb8
[ 2216.020591] dfe0: be90a790 be90a780 b6cc65b3 b6bfaf22
[ 2216.025856] Code: e320f000 e5943054 e3a02001 e3a01000 (e5930000)
[ 2216.039295] ---[ end trace fd9f2024eca60239 ]---

Output from uname
Linux 22018b9 5.10.162+ #1 SMP PREEMPT Fri Apr 7 00:25:14 UTC 2023 armv7l armv7l armv7l GNU/Linux

Kernel tag: 5.10.162-ti-r59

uEnv.txt (the overlays are put into a different location).

enable_uboot_overlays=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
disable_uboot_overlay_wireless=1
disable_uboot_overlay_adc=1
uboot_overlay_pru=/boot/overlays/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo
cmdline=coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet

cpu freq scaling.

On the xenomai branch at least, you have CPU freq scaling disabled.
Will the BB default to max clock rate? Does this depend on U-boot?

tools/rebuild_deb.sh rebuilds the whole kernel

I noticed that, unlike tools/rebuild.sh, tools/rebuild_deb.sh invokes at one point make clean and consequently rebuilds the whole kernel, even if there were no or small changes.

This is because in the kernel source tree, in scripts/package/Makefile, the deb-pkg target invokes make clean, and you are using that target in (re)build_deb.sh. Maybe you could use the bindeb-pkg target, which does not build a source tarball, and does not clean the whole tree before compiling, but rather does an incremental build.

(I asked this on the linux-kbuild mailing list here and they gave me that advice).

BeagleBone Black Bluetooth can't be loaded

I'm having a lot of trouble with the bluetooth adapter. Tried everything I can find, but nothing works. Basically the issue is the system doesn't seem to have rfcomm module.

root@arm:/# lsmod
Module                  Size  Used by
usb_f_acm               7424  1
u_serial               11932  1 usb_f_acm
usb_f_ecm              10331  1
g_multi                 5530  0
usb_f_mass_storage     47646  2 g_multi
usb_f_rndis            24678  2 g_multi
u_ether                13544  3 usb_f_ecm,usb_f_rndis,g_multi
libcomposite           48784  5 usb_f_acm,usb_f_ecm,usb_f_rndis,g_multi,usb_f_mass_storage
bluetooth             393081  6
6lowpan_iphc           12804  1 bluetooth
musb_dsps              10128  0
snd_soc_evm             6677  0
musb_hdrc              91195  1 musb_dsps
pvrsrvkm              179428  0
tda998x                 8803  1
c_can_platform          5470  0
tilcdc                 29670  0
c_can                  10812  1 c_can_platform
can_dev                10371  1 c_can
drm_kms_helper         42324  2 tilcdc
snd_soc_davinci_mcasp    12383  2
snd_soc_edma            1009  1 snd_soc_davinci_mcasp
snd_soc_omap            2583  1 snd_soc_davinci_mcasp
snd_soc_hdmi_codec      2147  1
musb_am335x             1267  0
snd_soc_core          196827  5 snd_soc_hdmi_codec,snd_soc_davinci_mcasp,snd_soc_edma,snd_soc_omap,snd_soc_evm
snd_compress           13386  1 snd_soc_core
snd_pcm_dmaengine       5173  2 snd_soc_core,snd_soc_omap
snd_pcm                86609  4 snd_soc_core,snd_soc_omap,snd_soc_evm,snd_pcm_dmaengine
snd_timer              20294  1 snd_pcm
snd                    65615  4 snd_soc_core,snd_timer,snd_pcm,snd_compress
soundcore               7455  1 snd
regmap_spi              1847  1 snd_soc_core
mt7601Usta            820785  0
root@arm:/# insmod rfcomm
insmod: ERROR: could not load module rfcomm: No such file or directory
root@arm:/# /etc/init.d/bluetooth restart
 * Stopping bluetooth
Can't open RFCOMM control socket: Protocol not supported                  [ OK ]
 * Starting bluetooth
Can't open RFCOMM control socket: Protocol not supported                  [ OK ]
root@arm:/#

I searched everywhere and the only possible solution I can find that might work is just to recompile the kernel with the module, which I didn't have the time to try yet. But I'd like to make sure that is the case here.

beaglebone AI errors in kernel and no wlan0

Hello, I am running through the (BeagleBone AI) https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone-AI tutorial.
When I follow the tutorial I get errors in the kernel and also wlan0 doesn't seem to work at all.

Just hoping you might happen to know the reason or how I can fix this. I am relatively new to linux and this is my first attempt at embedded linux.

these are the errors I get in dmesg.
omapdss error: HDMI I2C Master Error
dwc3 488d0000.usb: failed to initialize core

sdhci-omap 4809c000.mmc: Got CD GPIO
[ 1.646216] sdhci-omap 4809c000.mmc: failed to set system capabilities
[ 1.653377] sdhci-omap 480b4000.mmc: allocated mmc-pwrseq
[ 1.658910] sdhci-omap 480b4000.mmc: failed to set system capabilities
[ 1.665819] sdhci-omap 480d1000.mmc: allocated mmc-pwrseq
[ 1.671348] sdhci-omap 480d1000.mmc: 480d1000.mmc supply vqmmc not found, using dummy regulator

[ 7.883142] omap-rproc 58820000.ipu: assigned reserved memory node ipu1-memory@9d000000
[ 7.927523] remoteproc remoteproc0: 58820000.ipu is available
[ 7.944032] omap-rproc 55020000.ipu: assigned reserved memory node ipu2-memory@95800000
[ 7.954090] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.965249] remoteproc remoteproc1: 55020000.ipu is available
[ 7.967424] remoteproc remoteproc0: powering up 58820000.ipu
[ 7.973785] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 7.978024] remoteproc remoteproc0: Direct firmware load for dra7-ipu1-fw.xem4 failed with error -2
[ 7.990656] omap-rproc 40800000.dsp: assigned reserved memory node dsp1-memory@99000000
[ 8.003994] remoteproc remoteproc1: powering up 55020000.ipu
[ 8.004113] remoteproc remoteproc0: request_firmware failed: -2
[ 8.009861] remoteproc remoteproc1: Direct firmware load for dra7-ipu2-fw.xem4 failed with error -2
[ 8.027659] remoteproc remoteproc1: request_firmware failed: -2
[ 8.045054] remoteproc remoteproc2: 40800000.dsp is available
[ 8.070195] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
[ 8.079970] omap-rproc 41000000.dsp: assigned reserved memory node dsp2-memory@9f000000
[ 8.090153] remoteproc remoteproc2: powering up 40800000.dsp
[ 8.096739] remoteproc remoteproc2: Direct firmware load for dra7-dsp1-fw.xe66 failed with error -2
[ 8.106702] remoteproc remoteproc2: request_firmware failed: -2
[ 8.122029] remoteproc remoteproc3: 41000000.dsp is available
[ 8.140667] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
[ 8.152653] remoteproc remoteproc3: powering up 41000000.dsp
[ 8.158449] remoteproc remoteproc3: Direct firmware load for dra7-dsp2-fw.xe66 failed with error -2
[ 8.175428] remoteproc remoteproc3: request_firmware failed: -2

[ 10.712218] vpe 489d0000.vpe: Direct firmware load for vpdma-1b8.bin failed with error -2
[ 10.725145] vpe 489d0000.vpe: couldn't get firmware

[ 11.787482] cpu cpu0: _get_optimal_vdd_voltage: Failed optimized voltage match for 860000
[ 11.811472] cpu cpu0: _get_optimal_vdd_voltage: Failed optimized voltage match for 860000

devices/system/cpu/cpufreq/ is empty on 4.19.73-ti-rt-r29

I'm using this repo to compile the kernel version mentioned in the title for a beaglebone green.

I suspect that the cpu frequency is set to a low value because my app is consuming a lot more cpu than before, when I was running 4.4.x-bone-rt.

The directory /sys/devices/system/cpu/cpufreq is empty so I don't know how to verify or set the cpu frequency.

Below are the relevant options from kernel defconfig.

Perhaps I am missing some kernel configs?

dmesg does not show any message regarding cpufreq.

Please help. How can I make sure my cpu is running at full freq?

# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_GOV_ATTR_SET=y
CONFIG_CPU_FREQ_GOV_COMMON=y
CONFIG_CPU_FREQ_STAT=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
# CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y

#
# CPU frequency scaling drivers
#
CONFIG_CPUFREQ_DT=y
CONFIG_CPUFREQ_DT_PLATDEV=y
CONFIG_ARM_BIG_LITTLE_CPUFREQ=y
CONFIG_ARM_DT_BL_CPUFREQ=y
CONFIG_ARM_OMAP2PLUS_CPUFREQ=y
CONFIG_ARM_TI_CPUFREQ=y
CONFIG_QORIQ_CPUFREQ=y

SGX BeagleBone/BeagleBone Black

Hi,
I have installed the latest kernel form ti-linux-kernel-dev
4.4.108-bone-rt-r21
The followed for sgx this link:
https://elinux.org/BeagleBoardUbuntu section SGX Drivers
I have a usb 2 HDMI cable which leads to /dfev/fb0
I Have a 320x240 ili9342 display /dev/fb1

The procedure described there just does not work.

1997  sudo tar xfv GFX_5.01.01.02_es8.x.tar.gz -C /
 1998  cd /opt/gfxinstall/
 1999  sudo ./sgx-install.sh
 2000  sudo reboot
 2001  lsmod | grep omaplfb
lsmod
fb_ili9341              3507  0
snd_soc_simple_card     8529  0
uio_pruss               4309  0
tilcdc                 28087  0
snd_soc_davinci_mcasp    16406  0
snd_soc_edma            1482  1 snd_soc_davinci_mcasp
snd_soc_omap            3677  1 snd_soc_davinci_mcasp
snd_soc_core          157988  4 snd_soc_davinci_mcasp,snd_soc_edma,snd_soc_omap,snd_soc_simple_card
snd_pcm_dmaengine       5401  2 snd_soc_core,snd_soc_omap
snd_pcm                81882  4 snd_soc_davinci_mcasp,snd_soc_core,snd_soc_omap,snd_pcm_dmaengine
snd_timer              19405  1 snd_pcm
snd                    60280  3 snd_soc_core,snd_timer,snd_pcm
soundcore               7620  1 snd
evdev                  11092  1
tda998x                11320  0
fbtft_device           39334  0
8021q                  18957  0
garp                    6435  1 8021q
mrp                     7739  1 8021q
stp                     2280  1 garp
llc                     5497  2 stp,garp
usb_f_mass_storage     42605  2
usb_f_acm               7513  2
u_serial               11100  3 usb_f_acm
usb_f_ecm               9870  2
usb_f_rndis            22809  4
u_ether                12271  2 usb_f_ecm,usb_f_rndis
uio_pdrv_genirq         3981  0
uio                     9016  2 uio_pruss,uio_pdrv_genirq
libcomposite           43976  18 usb_f_acm,usb_f_ecm,usb_f_rndis,usb_f_mass_storage
iptable_nat             2125  0
nf_conntrack_ipv4      14832  1
nf_defrag_ipv4          1786  1 nf_conntrack_ipv4
nf_nat_ipv4             5648  1 iptable_nat
nf_nat                 15453  1 nf_nat_ipv4
nf_conntrack          113181  3 nf_nat,nf_nat_ipv4,nf_conntrack_ipv4
iptable_mangle          1849  0
iptable_filter          1914  0
spidev                  7865  0
tieqep                  9123  0
flexfb                 13314  0
fbtft                  32491  3 fb_ili9341,flexfb,fbtft_device
ip_tables              12312  3 iptable_filter,iptable_mangle,iptable_nat
x_tables               17737  3 ip_tables,iptable_filter,iptable_mangle
hid_cp2112             14545  8
debian@beaglebone:~$ eglinfo
Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)
debian@beaglebone:~$ 

other info
debian@beaglebone:/sys/class/drm/card0/card0-HDMI-A-1$ cat modes 
1280x1024
1280x800
1152x864
1280x720
1280x720
1280x720
1024x768
1024x768
800x600
800x600
720x576
720x480
720x480
640x480
640x480
640x480
720x400
debian@beaglebone:/sys/class/drm/card0/card0-HDMI-A-1$ fbset

mode "1280x1024"
    geometry 1280 1024 1280 3072 16
    timings 0 0 0 0 0 0 0
    accel true
    rgba 5/11,6/5,5/0,0/0
endmode

debian@beaglebone:/sys/class/drm/card0/card0-HDMI-A-1$ eglinfo 
Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)
debian@beaglebone:/sys/class/drm/card0/card0-HDMI-A-1$ glxgears 
Error: couldn't open display :0
debian@beaglebone:/sys/class/drm/card0/card0-HDMI-A-1$ 

xorg cause high cpu usage with kernel 4.14

I use the kernel 4.14 on beaglebone black and ai, both xorg cause high cpu usage. for example, i move the curse on the terminal, the terminal and xorg will cause high cpu usage showed in commant top.
when i use 4.9 or 3.8 kernel in beaglebone balck, it not.
anyone know why? how to fix or config to solve the problem?
thanks

Can't find the output files ZImage and dtb

Hi,
I'm trying to build the kernel from this repository. After executing the build_kernel.sh the compilation get finished but the deploy folder is empty. Do I need to set a configuration during configuration of kernel?
Thanks.

no MDIO, no PHY, no Ethernet on BeagleBoneBlack with Kernel >5 (tested on 5.4 and 5.10)

Sorry if already there. Google could not really help me. Everything was out of date.
On my BeagleBoneBlack Board Rev. B6 with AM3358BZCZ100 the MDIO does not come up with kernel 5.4 and 5.10.

dmesg says following
mdio_bus 4a101000.mdio: MDIO device at address 0 is missing
phy "/ocp/interconnect@4a0000/segment@0/target-module@100000/ethernet@0/mdio@1000/ethernet-phy@0" not found on slave 0

I changed in /arch/arm/boot/dts/am335x-bone-common.dtsi under "ethphy0: ethernet-phy@0" reg = <0> to reg = <2>. After that everything was ok. I am not sure if I have fixed it correctly. Maybe it is better to overlay it in am335x-boneblack.dts because the am335x-bone-common.dtsi is included by several boards.

It took me a while to find it.

Again the correct section am335x-bone-common.dtsi
&davinci_mdio {
pinctrl-names = "default", "sleep";
pinctrl-0 = <&davinci_mdio_default>;
pinctrl-1 = <&davinci_mdio_sleep>;
status = "okay";

ethphy0: ethernet-phy@0 {
	reg = <2>;
};

How to update to latest 4.19.y ?

I'm dealing with an issue in my application and would like to test it with the latest 4.19.y kernel (currently, 4.19.142).
Can you tell me how can I build a kernel based on the latest mainline 4.19.y and with the BeagleBone's specific patches?
The naife approach of replacing in version.sh KERNEL_TAG=${KERNEL_REL}.94 with KERNEL_TAG=${KERNEL_REL}.142 does not work, as it generates a lot of patches conflicts.

Beaglebone X15: kernel 4.14.25-ti-r38 doen't boot

Hello,
4.14.25-ti-r38 fails to boot on the BB X15, the eMMC /dev/mmcblk1 isn't created.
4.1413-ti-r25 was fine.
Here is the log:

U-Boot SPL 2017.01-00360-gc604741cb3 (Aug 11 2017 - 15:47:09)
DRA752-GP ES2.0
Trying to boot from MMC2_2
Card did not respond to voltage select!
** Bad device mmc 0 **
Using default environment

U-Boot 2017.01-00360-gc604741cb3 (Aug 11 2017 - 15:47:09 -0500), Build: jenkins-github_Bootloader-Builder-592

CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: BeagleBoard X15 REV C.00
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
MMC: no card present
** Bad device mmc 0 **
Using default environment

setup_board_eeprom_env: beagle_x15_revc
SCSI: SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net: not set. Validating first E-fuse MAC
cpsw
Press SPACE to abort autoboot in 2 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
MMC: no card present
MMC: no card present
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc device 1
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
541 bytes read in 5 ms (105.5 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt ...
debug: [uname_r=4.14.25-ti-r38] ...
loading /boot/vmlinuz-4.14.25-ti-r38 ...
11751936 bytes read in 152 ms (73.7 MiB/s)
loading /boot/dtbs/4.14.25-ti-r38/am57xx-beagle-x15-revc.dtb ...
144288 bytes read in 25 ms (5.5 MiB/s)
loading /boot/initrd.img-4.14.25-ti-r38 ...
4139418 bytes read in 60 ms (65.8 MiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quie
t kgdboc=tty02,115200] ...
debug: [bootz 0x82000000 0x88080000:3f299a 0x88000000] ...

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8fc0d000, end 8ffff99a ... OK
Starting kernel ...

[ 0.002714] /cpus/cpu@0 missing clock-frequency property
[ 0.002733] /cpus/cpu@1 missing clock-frequency property
[ 0.669559] dmi: Firmware registration failed.
[ 1.195529] omap_voltage_late_init: Voltage driver support not added
Gave up waiting for root file system device. Common problems:

  • Boot args (cat /proc/cmdline)

    • Check rootdelay= (did the system wait long enough?)
  • Missing modules (cat /proc/modules; ls /dev)
    ALERT! /dev/mmcblk1p1 does not exist. Dropping to a shell!
    (initramfs)

How to bring up-to-date a branch on this repo?

Hi there,
I am interested in reviving the ti-linux-xenomai-4.4.y branch (and possible other more recent Xenomai branches later on), bringing it up to date with the latest ti-linux-4.4.y (or whatever a suitable upstream branch is)?. Could you please explain what is the suggested workflow to do so? I looked at the scripts in repo_maintenance, but I could not make sense of those.
Thanks

multible definitions yylloc

Branch: ti-linux-4.14.y
release: r135

failure while linking scripts/lex/__
seems to have been fixed upstream?
I belive the problem is exclusive to gcc10/clang10 or higher.

relevant logs:

HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTLD scripts/dtc/fdtoverlay
HOSTLD scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: *** [scripts/Makefile.host:111: scripts/dtc/dtc] Error 1
make[2]: *** [scripts/Makefile.build:585: scripts/dtc] Error 2
make[2]: *** Waiting for unfinished jobs....

beagleboard x15 boot from ESATA

Hi
beagleboard x15 software seems didnt support esata yet. I have a ssd connect the board. I didnt find any sda* device

U-Boot 2017.01-00360-gc604741cb3 (Aug 11 2017 - 15:47:09 -0500), Build: jenkins-github_Bootloader-Builder-592

CPU : DRA752-GP ES1.1
Model: TI AM5728 BeagleBoard-X15
Board: AM572x EVM REV A.20
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1

** Unable to use mmc 0:1 for loading the env **
Using default environment

setup_board_eeprom_env: am57xx_evm
SCSI: SATA link 0 timeout.
AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: 64bit ncq stag pm led clo only pmp pio slum part ccc apst
scanning bus for devices...
Found 0 device(s).
Net: not set. Validating first E-fuse MAC
cpsw
Press SPACE to abort autoboot in 2 seconds
usb_boot is currently disabled
scsi_boot is currently disabled
switch to partitions #0, OK
mmc0 is current device
Scanning mmc device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
466 bytes read in 15 ms (30.3 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am57xx-beagle-x15.dtb] ...
Checking if uname_r is set in /boot/uEnv.txt ...
debug: [uname_r=4.4.83-ti-r119] ...
loading /boot/vmlinuz-4.4.83-ti-r119 ...
8664392 bytes read in 388 ms (21.3 MiB/s)
loading /boot/dtbs/4.4.83-ti-r119/am57xx-beagle-x15.dtb ...
142980 bytes read in 42 ms (3.2 MiB/s)
loading /boot/initrd.img-4.4.83-ti-r119 ...
5926369 bytes read in 275 ms (20.6 MiB/s)

root@BeagleBoard-X15:# dmesg | grep sata
[ 2.185818] ahci 4a140000.sata: SSS flag set, parallel bus scan disabled
[ 2.185847] ahci 4a140000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 2.185861] ahci 4a140000.sata: flags: 64bit ncq sntf stag pm led clo only pmp pio slum part ccc apst
root@BeagleBoard-X15:
#

Xenomai Kernel Image for 4.19?

Will there be a 4.19 Xenomai image?

As a side note. What is the 4.14 Xenomai kernel compatible with Debian buster? because I have not been able to get it working.

BBB dts for KEY_POWER

I installed the kernel and such using the Debian packages.
I have the new 108 kernel and The gpio_keys looks is builtin. I need to disable the power KEY_POWER button. Which dts I should go in and commented out.
Thank you.

Serial configuration in 4.14.49-ti-r54 kernel

Hello

I'm currently trying to use all the 10 uarts on my platform however the kernel configuration has only 6 available (ttyS0, ttyS1, ttyS2, ttyS3, ttyS4, ttyS5). I have tried doing the change manually in the lines

CONFIG_SERIAL_8250_NR_UARTS =6 --> CONFIG_SERIAL_8250_NR_UARTS=10
CONFIG_SERIAL_8250_RUNTIME_UARTS=6 --> CONFIG_SERIAL_8250_RUNTIME_UARTS=10

of my config-4.14.49-ti-r54.txt file but with no sucess. I saw your files and tried to do it as the README however I still have 6 ports instead of 10, what am I missing?

Hardware
Beagleboard x15
TI AM5729

OS version, kernel and DTB
Debian 9 Stretch
kernel version 4.14.49
am57xx-beagle-x15-revc

User can't shutdown after device tree overlay bug

I'm using a device tree overlay to load an fpga-region to an FPGA from my beagle X15 via Altera Passive Serial. The serial transfer works, but there is an error message, and the processor will never complete shutdown -t now afterwards. Am I missing a setting or step?

Someone else has had this as well:
https://archlinuxarm.org/forum/viewtopic.php?f=48&t=11416

Commands:

$ mkdir -p /sys/kernel/config/device-tree/overlays/cyclone
$ dd if=/lib/firmware/cyclone.dtbo of=/sys/kernel/config/device-tree/overlays/cyclone/dtbo

dmesg output:

[    0.000000] Linux version 4.14.56-ti-r64 (stashlukj@ee-ubuntu-jts) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #10 SMP PREEMPT Tue Jul 24 10:55:11 EDT 2018

...

[  172.767743] fpga_manager fpga0: writing RTS200-RAW.rbf to altera-ps-spi spi1.0
[  173.606113] ------------[ cut here ]------------
[  173.610762] kernel BUG at fs/sysfs/group.c:113!
[  173.615315] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[  173.621178] Modules linked in: 8021q garp mrp stp llc bnep uio_pruss fpga_region fpga_bridge pruss_soc_bus hci_uart btqca evdev iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack usb_f_acm iptable_mangle u_se
rial usb_f_ecm bluetooth iptable_filter usb_f_rndis u_ether libcomposite ecdh_generic uio_pdrv_genirq uio altera_ps_spi fpga_mgr ip_tables x_tables
[  173.655024] CPU: 1 PID: 1424 Comm: dd Not tainted 4.14.56-ti-r64 #10
[  173.661408] Hardware name: Generic DRA74X (Flattened Device Tree)
[  173.667532] task: ec001680 task.stack: ed486000
[  173.672091] PC is at internal_create_group+0x2e4/0x30c
[  173.677256] LR is at sysfs_create_groups+0x54/0x90
[  173.682071] pc : [<c0395920>]    lr : [<c0395d88>]    psr: 600b0013
[  173.688364] sp : ed487da0  ip : ed487de8  fp : ed487de4
[  173.693612] r10: ed1de0f5  r9 : 00000000  r8 : ec1735a0
[  173.698860] r7 : 00000001  r6 : ed71fa90  r5 : 00000000  r4 : 00000000
[  173.705418] r3 : 46839c87  r2 : ed71fa90  r1 : 00000000  r0 : ec1735a0
[  173.711977] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[  173.719146] Control: 10c5387d  Table: ad7b006a  DAC: 00000051
[  173.724917] Process dd (pid: 1424, stack limit = 0xed486218)
[  173.730601] Stack: (0xed487da0 to 0xed488000)
[  173.734981] 7da0: ed487dbc ed487db0 c0dc75c0 c0dc6e84 ed487dcc 00000000 c0dc7614 00000000
[  173.743202] 7dc0: ec06df00 ec1735a0 00000001 ec06df00 00000000 ed1de0f5 ed487e0c ed487de8
[  173.751421] 7de0: c0395d88 c0395648 ec173580 eeda0640 00000044 00000001 00000001 00000000
[  173.759637] 7e00: ed487ea4 ed487e10 c0ba455c c0395d40 00000000 014000c0 00000000 c0ba3124
[  173.767855] 7e20: c07c7db4 c110d43c ec173584 c15d9b70 ec1735a0 ed487e40 eeda0640 c1504dc8
[  173.776074] 7e40: 00000000 ec173598 c0ba2ee0 c0b9d3c0 00000000 c11c5d54 00000008 ed1de000
[  173.784290] 7e60: c1141570 c0ba32e8 ec06df00 00000253 00000253 46839c87 00000008 ec2f1000
[  173.792509] 7e80: 00000000 ec2f0000 00000000 ecb6f200 00000008 ecb6f200 ed487eb4 ed487ea8
[  173.800727] 7ea0: c0ba47b4 c0ba3c9c ed487ecc ed487eb8 c0b9cfd4 c0ba47a0 000000f6 ec2f1000
[  173.808946] 7ec0: ed487eec ed487ed0 c0b9d0d4 c0b9cf78 ec235ac0 ecb6f200 00000000 ed71f3c0
[  173.817163] 7ee0: ed487f14 ed487ef0 c03969a0 c0b9d078 ed71f3c0 ecb6f200 ecd51cc0 ed59fa10
[  173.825380] 7f00: 00000000 00000008 ed487f54 ed487f18 c0308d60 c0396948 00000000 00000000
[  173.833600] 7f20: ed487f4c ed71f3c8 c016eb88 00000000 ec001bc8 ec001680 c163027c ec001bec
[  173.841819] 7f40: ed71f3c0 00000000 ed487f64 ed487f58 c0308f88 c0308cd0 ed487f8c ed487f68
[  173.850036] 7f60: c01634c0 c0308f7c ffffe000 c0109224 ed487fb0 00000006 c0109224 ed486000
[  173.858254] 7f80: ed487fac ed487f90 c010d4dc c0163428 0042d258 0042d258 00000000 00000006
[  173.866470] 7fa0: 00000000 ed487fb0 c01090ac c010d414 00000000 ffffffff ffffffff 00000000
[  173.874688] 7fc0: 0042d258 0042d258 00000000 00000006 00000001 00000000 00000200 0042d1b0
[  173.882908] 7fe0: 00000000 be8984cc 00413c4b b6f32026 20080030 00000001 affae861 affaec61
[  173.891134] [<c0395920>] (internal_create_group) from [<c0395d88>] (sysfs_create_groups+0x54/0x90)
[  173.900141] [<c0395d88>] (sysfs_create_groups) from [<c0ba455c>] (__of_overlay_create+0x8cc/0xb04)
[  173.909147] [<c0ba455c>] (__of_overlay_create) from [<c0ba47b4>] (of_overlay_create+0x20/0x24)
[  173.917806] [<c0ba47b4>] (of_overlay_create) from [<c0b9cfd4>] (create_overlay+0x68/0x100)
[  173.926118] [<c0b9cfd4>] (create_overlay) from [<c0b9d0d4>] (cfs_overlay_item_dtbo_write+0x68/0xa4)
[  173.935213] [<c0b9d0d4>] (cfs_overlay_item_dtbo_write) from [<c03969a0>] (configfs_release_bin_file+0x64/0xa0)
[  173.945266] [<c03969a0>] (configfs_release_bin_file) from [<c0308d60>] (__fput+0x9c/0x234)
[  173.953575] [<c0308d60>] (__fput) from [<c0308f88>] (____fput+0x18/0x1c)
[  173.960315] [<c0308f88>] (____fput) from [<c01634c0>] (task_work_run+0xa4/0xc4)
[  173.967669] [<c01634c0>] (task_work_run) from [<c010d4dc>] (do_work_pending+0xd4/0xd8)
[  173.975632] [<c010d4dc>] (do_work_pending) from [<c01090ac>] (slow_work_pending+0xc/0x20)
[  173.983853] Code: e5941000 eaffff84 e3550000 1affff55 (e7f001f2)
[  173.989982] ---[ end trace b1fd15cd828d58ef ]---

linux/version.h

I noticed that /usr/include/linux/version.h is not part of the linux-headers*.deb, so that /usr/include/linux/version.h always is the default one that came with the distro. Is this expected behaviour?

Beaglebone AI and I suspect all the BB don't work with etherCat

Hello,
I was unable to get the Simple Open EtherCAT Master software working on the BBAI with 4.14, 4.19 and 5.4. I brought this up with the guys in charge of the SOEM repository and they linked me to this potential issue.

https://patchwork.kernel.org/patch/10697191/

The CPSW ethernet hardware is padding the packets wrong, which is causing issue with some industrial automation protocols.
Such as my experience with a EtherCAT slave not responding to packets sent form the BBAI.

I was able to fix this by changing min packet size to 60 in cpsw.c when rebuilding the kernel

I hope this is the correct location to post this.

Cheers,

Chris

#EDIT
on further analysis looks like TI is aware of this and it needs to stay as is to work with VLAN properly.
I'll close this issue and just implement the work around for my use case.

omapdss error: HDMI I2C timeout reading EDID

Hello, as the title shows, when I use ./build_kernel.sh to compile the kernel for BeagleBoard X15,
and make a SD-Card system following the BB-X15 Getting Started

Then after booting, I got:
omapdss error: HDMI I2C timeout reading EDID
from serial output.

So I can access the board only by SSH/Serial/.. remotely.

How can I fix this problem?

Information:

  • Kernel: 4.9.77-ti-r92
  • Hardware: Beagleboard X15 RevC
  • HDMI: Dell

Kernel 4.4, ethernet get wrong IP

Hi,
I tried the image of image built on May 2017, Debian and Ubuntu, on my BeagleBone Black revC. There is problem with networking:

  • Appear 2 USB network: usb0 and usb1
  • eth0 gets wrong IP from dhcp

Output of ip addr:

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 88:c2:55:53:1c:98 brd ff:ff:ff:ff:ff:ff
    inet 169.254.200.220/16 brd 169.254.255.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::8ac2:55ff:fe53:1c98/64 scope link 
       valid_lft forever preferred_lft forever
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 88:c2:55:53:1c:9a brd ff:ff:ff:ff:ff:ff
    inet 192.168.7.2/30 brd 192.168.7.3 scope global usb0
       valid_lft forever preferred_lft forever
    inet6 fe80::8ac2:55ff:fe53:1c9a/64 scope link 
       valid_lft forever preferred_lft forever
4: usb1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether 88:c2:55:53:1c:9d brd ff:ff:ff:ff:ff:ff
    inet 192.168.6.2/30 brd 192.168.6.3 scope global usb1
       valid_lft forever preferred_lft forever
    inet6 fe80::8ac2:55ff:fe53:1c9d/64 scope link 
       valid_lft forever preferred_lft forever
5: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can 
6: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN group default qlen 10
    link/can 

I expect eth0 to be 192.168.1.x.

unexpected IRQ trap at vector 91

This is on 4.4.87-ti-xenomai-r121 (773261a).
Configured with: https://pastebin.com/nEk12b3y

Procedure:

cd /sys/class/gpio
echo 115 > export
cd gpio115
echo both > edge

then connect P9_27 to ground or 3.3V alternatively. You will get the following the first time it changes state:

[  103.992035] irq 145, desc: df19af00, depth: 0, count: 0, unhandled: 0
[  103.998529] ->handle_irq():  c0092930, handle_edge_irq+0x0/0x1a4
[  104.004587] ->irq_data.chip(): df197f10, 0xdf197f10
[  104.009498] ->action(): de0ab9c0
[  104.012738] ->action->handler(): c0623e00, gpio_sysfs_irq+0x0/0x24
[  104.018964]    IRQ_NOPROBE set
[  104.022031] unexpected IRQ trap at vector 91
[  104.026319] ------------[ cut here ]------------
[  104.030962] WARNING: CPU: 0 PID: 0 at kernel/irq/chip.c:843 __ipipe_ack_bad_irq+0x3c/0x48()
[  104.039348] Modules linked in: usb_f_midi snd_rawmidi snd_seq_device usb_f_acm u_serial usb_f_mass_storage usb_f_rndis u_ether omap_sham omap_aes_driver uio_pruss omap_rng snd_soc_davinci_mcasp rng_core snd_soc_edma snd_soc_omap snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore spi_omap2_mcspi evdev uio_pdrv_genirq uio libcomposite ip_tables x_tables
[  104.071916] CPU: 0 PID: 0 Comm: swapper Not tainted 4.4.87-ti-xenomai-r121 #1
[  104.079082] Hardware name: Generic AM33XX (Flattened Device Tree)
[  104.085202] I-pipe domain: Linux
[  104.088470] [<c0018924>] (unwind_backtrace) from [<c0015fc4>] (show_stack+0x20/0x24)
[  104.096266] [<c0015fc4>] (show_stack) from [<c05de2ac>] (dump_stack+0x24/0x28)
[  104.103542] [<c05de2ac>] (dump_stack) from [<c003d938>] (warn_slowpath_common+0x94/0xc0)
[  104.111678] [<c003d938>] (warn_slowpath_common) from [<c003da68>] (warn_slowpath_null+0x2c/0x34)
[  104.120509] [<c003da68>] (warn_slowpath_null) from [<c0091f84>] (__ipipe_ack_bad_irq+0x3c/0x48)
[  104.129264] [<c0091f84>] (__ipipe_ack_bad_irq) from [<c00e9300>] (__ipipe_dispatch_irq+0x6c/0x210)
[  104.138274] [<c00e9300>] (__ipipe_dispatch_irq) from [<c0627a64>] (omap_gpio_irq_handler+0x19c/0x218)
[  104.147553] [<c0627a64>] (omap_gpio_irq_handler) from [<c008e564>] (handle_irq_event_percpu+0x98/0x2b8)
[  104.156996] [<c008e564>] (handle_irq_event_percpu) from [<c008e7e0>] (handle_irq_event+0x5c/0x94)
[  104.165914] [<c008e7e0>] (handle_irq_event) from [<c00928f0>] (handle_level_irq+0xd0/0x110)
[  104.174308] [<c00928f0>] (handle_level_irq) from [<c008db28>] (generic_handle_irq+0x34/0x44)
[  104.182790] [<c008db28>] (generic_handle_irq) from [<c008ddf0>] (__handle_domain_irq+0x80/0xec)
[  104.191540] [<c008ddf0>] (__handle_domain_irq) from [<c0011c14>] (handle_IRQ+0x28/0x2c)
[  104.199591] [<c0011c14>] (handle_IRQ) from [<c001cdcc>] (__ipipe_do_IRQ+0x1c/0x24)
[  104.207202] [<c001cdcc>] (__ipipe_do_IRQ) from [<c00e8bd8>] (__ipipe_do_sync_stage+0x264/0x274)
[  104.215947] [<c00e8bd8>] (__ipipe_do_sync_stage) from [<c00e8c98>] (__ipipe_do_sync_pipeline+0xb0/0xec)
[  104.225388] [<c00e8c98>] (__ipipe_do_sync_pipeline) from [<c00e9400>] (__ipipe_dispatch_irq+0x16c/0x210)
[  104.234915] [<c00e9400>] (__ipipe_dispatch_irq) from [<c00092c8>] (__ipipe_grab_irq+0x40/0x9c)
[  104.243571] [<c00092c8>] (__ipipe_grab_irq) from [<c0009738>] (omap_intc_handle_irq+0x48/0xa8)
[  104.252220] Exception stack(0xc0f5ded0 to 0xc0f5df18)
[  104.257299] dec0:                                     c00e9070 600f0013 c0f5df44 c0f5dee8
[  104.265517] dee0: c0a87514 c00096fc 00008416 00000000 00000000 c0f78d4c 00000002 c0f5c000
[  104.273733] df00: c0f5f048 c0f5f12c c0f78d4c c101e5ec c0d7c668 c0f5df44
[  104.280390] [<c0009738>] (omap_intc_handle_irq) from [<c0a87514>] (__irq_svc+0x54/0x80)
[  104.288429] Exception stack(0xc0f5dee8 to 0xc0f5df30)
[  104.293506] dee0:                   00008416 00000000 00000000 c0f78d4c 00000002 c0f5c000
[  104.301724] df00: c0f5f048 c0f5f12c c0f78d4c c101e5ec c0d7c668 c0f5df44 c00e80c4 c0f5df38
[  104.309939] df20: c00e904c c00e9070 600f0013 ffffffff
[  104.315022] [<c0a87514>] (__irq_svc) from [<c00e9070>] (ipipe_unstall_root+0x40/0x50)
[  104.322894] [<c00e9070>] (ipipe_unstall_root) from [<c0011d28>] (arch_cpu_idle+0x84/0x90)
[  104.331120] [<c0011d28>] (arch_cpu_idle) from [<c0074f04>] (default_idle_call+0x30/0x3c)
[  104.339254] [<c0074f04>] (default_idle_call) from [<c00750c0>] (cpu_startup_entry+0x1b0/0x29c)
[  104.347909] [<c00750c0>] (cpu_startup_entry) from [<c0a81b70>] (rest_init+0x94/0x98)
[  104.355700] [<c0a81b70>] (rest_init) from [<c0eebd98>] (start_kernel+0x3dc/0x3fc)
[  104.363216] ---[ end trace 403adf2bc0bf9608 ]---
[  104.367853] ------------[ cut here ]------------
[  104.372495] WARNING: CPU: 0 PID: 0 at kernel/ipipe/core.c:584 __ipipe_set_irq_pending+0xec/0x12c()
[  104.381492] Modules linked in: usb_f_midi snd_rawmidi snd_seq_device usb_f_acm u_serial usb_f_mass_storage usb_f_rndis u_ether omap_sham omap_aes_driver uio_pruss omap_rng snd_soc_davinci_mcasp rng_core snd_soc_edma snd_soc_omap snd_soc_core snd_pcm_dmaengine snd_pcm snd_timer snd soundcore spi_omap2_mcspi evdev uio_pdrv_genirq uio libcomposite ip_tables x_tables
[  104.414038] CPU: 0 PID: 0 Comm: swapper Tainted: G        W       4.4.87-ti-xenomai-r121 #1
[  104.422425] Hardware name: Generic AM33XX (Flattened Device Tree)
[  104.428543] I-pipe domain: Linux
[  104.431792] [<c0018924>] (unwind_backtrace) from [<c0015fc4>] (show_stack+0x20/0x24)
[  104.439577] [<c0015fc4>] (show_stack) from [<c05de2ac>] (dump_stack+0x24/0x28)
[  104.446841] [<c05de2ac>] (dump_stack) from [<c003d938>] (warn_slowpath_common+0x94/0xc0)
[  104.454975] [<c003d938>] (warn_slowpath_common) from [<c003da68>] (warn_slowpath_null+0x2c/0x34)
[  104.463806] [<c003da68>] (warn_slowpath_null) from [<c00e7ddc>] (__ipipe_set_irq_pending+0xec/0x12c)
[  104.472987] [<c00e7ddc>] (__ipipe_set_irq_pending) from [<c00e93b8>] (__ipipe_dispatch_irq+0x124/0x210)
[  104.482429] [<c00e93b8>] (__ipipe_dispatch_irq) from [<c0627a64>] (omap_gpio_irq_handler+0x19c/0x218)
[  104.491698] [<c0627a64>] (omap_gpio_irq_handler) from [<c008e564>] (handle_irq_event_percpu+0x98/0x2b8)
[  104.501140] [<c008e564>] (handle_irq_event_percpu) from [<c008e7e0>] (handle_irq_event+0x5c/0x94)
[  104.510057] [<c008e7e0>] (handle_irq_event) from [<c00928f0>] (handle_level_irq+0xd0/0x110)
[  104.518450] [<c00928f0>] (handle_level_irq) from [<c008db28>] (generic_handle_irq+0x34/0x44)
[  104.526933] [<c008db28>] (generic_handle_irq) from [<c008ddf0>] (__handle_domain_irq+0x80/0xec)
[  104.535677] [<c008ddf0>] (__handle_domain_irq) from [<c0011c14>] (handle_IRQ+0x28/0x2c)
[  104.543722] [<c0011c14>] (handle_IRQ) from [<c001cdcc>] (__ipipe_do_IRQ+0x1c/0x24)
[  104.551332] [<c001cdcc>] (__ipipe_do_IRQ) from [<c00e8bd8>] (__ipipe_do_sync_stage+0x264/0x274)
[  104.560076] [<c00e8bd8>] (__ipipe_do_sync_stage) from [<c00e8c98>] (__ipipe_do_sync_pipeline+0xb0/0xec)
[  104.569517] [<c00e8c98>] (__ipipe_do_sync_pipeline) from [<c00e9400>] (__ipipe_dispatch_irq+0x16c/0x210)
[  104.579044] [<c00e9400>] (__ipipe_dispatch_irq) from [<c00092c8>] (__ipipe_grab_irq+0x40/0x9c)
[  104.587699] [<c00092c8>] (__ipipe_grab_irq) from [<c0009738>] (omap_intc_handle_irq+0x48/0xa8)
[  104.596347] Exception stack(0xc0f5ded0 to 0xc0f5df18)
[  104.601424] dec0:                                     c00e9070 600f0013 c0f5df44 c0f5dee8
[  104.609643] dee0: c0a87514 c00096fc 00008416 00000000 00000000 c0f78d4c 00000002 c0f5c000
[  104.617860] df00: c0f5f048 c0f5f12c c0f78d4c c101e5ec c0d7c668 c0f5df44
[  104.624509] [<c0009738>] (omap_intc_handle_irq) from [<c0a87514>] (__irq_svc+0x54/0x80)
[  104.632547] Exception stack(0xc0f5dee8 to 0xc0f5df30)
[  104.637625] dee0:                   00008416 00000000 00000000 c0f78d4c 00000002 c0f5c000
[  104.645843] df00: c0f5f048 c0f5f12c c0f78d4c c101e5ec c0d7c668 c0f5df44 c00e80c4 c0f5df38
[  104.654058] df20: c00e904c c00e9070 600f0013 ffffffff
[  104.659139] [<c0a87514>] (__irq_svc) from [<c00e9070>] (ipipe_unstall_root+0x40/0x50)
[  104.667010] [<c00e9070>] (ipipe_unstall_root) from [<c0011d28>] (arch_cpu_idle+0x84/0x90)
[  104.675231] [<c0011d28>] (arch_cpu_idle) from [<c0074f04>] (default_idle_call+0x30/0x3c)
[  104.683364] [<c0074f04>] (default_idle_call) from [<c00750c0>] (cpu_startup_entry+0x1b0/0x29c)
[  104.692021] [<c00750c0>] (cpu_startup_entry) from [<c0a81b70>] (rest_init+0x94/0x98)
[  104.699805] [<c0a81b70>] (rest_init) from [<c0eebd98>] (start_kernel+0x3dc/0x3fc)
[  104.707321] ---[ end trace 403adf2bc0bf9609 ]---

Subsequent changes to the state of the pin give:

[  220.898500] irq 145, desc: df19af00, depth: 0, count: 1, unhandled: 0
[  220.904995] ->handle_irq():  c0092930, handle_edge_irq+0x0/0x1a4
[  220.911054] ->irq_data.chip(): df197f10, 0xdf197f10
[  220.915964] ->action(): de0ab9c0
[  220.919205] ->action->handler(): c0623e00, gpio_sysfs_irq+0x0/0x24
[  220.925428]    IRQ_NOPROBE set
[  220.928496] unexpected IRQ trap at vector 91

Not sure if this is the right place to post this issue. Please advise if I should post it to the Xenomai list.

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.