[BBB linux-am33x-4.10.1] kernel bug loading capes, no boot

This forum is for supported devices using an ARMv7 Texas Instruments (TI) SoC.

[BBB linux-am33x-4.10.1] kernel bug loading capes, no boot

Postby razer » Mon Mar 06, 2017 4:56 pm

Hi,

With the latest version of kernel (linux-am33x 4.10.1-1), I have issues loading capes on my beaglebone black :
If the capes are loaded during boot (as kernel option argument), the boot process blocks at this stage.
If the capes are loaded via /sys, I have a kernel bug when the first cape is loaded (output follows), and the echo command hangs on the second cape, leaving a dead and unkillable shell process.

Code: Select all
[  470.387284] bone_capemgr bone_capemgr: part_number 'BB-UART1', version 'N/A'
[  470.400251] bone_capemgr bone_capemgr: slot #4: override
[  470.405675] bone_capemgr bone_capemgr: Using override eeprom data at slot 4
[  470.412745] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-UART1'
[  470.452534] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 189, base_baud = 3000000) is a 8250
[  470.474139] ------------[ cut here ]------------
[  470.478796] kernel BUG at fs/sysfs/group.c:113!
[  470.483345] Internal error: Oops - BUG: 0 [#1] THUMB2
[  470.488418] Modules linked in: iptable_nat nf_nat_ipv4 xt_recent ip6table_nat nf_nat_ipv6 ipt_REJECT nf_reject_ipv4 xt_comment ip6t_REJECT nf_reject_ipv6 iptable_mangle xt_addrtype bridge stp llc xt_mark ip6table_mangle iptable_raw nf_conntrack_ipv4 nf_defrag_ipv4 xt_tcpudp xt_CT ip6table_raw xt_multiport nf_conntrack_ipv6 nf_defrag_ipv6 xt_conntrack nf_log_ipv4 nf_nat_tftp nf_nat_snmp_basic nf_conntrack_snmp nf_nat_sip nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 xt_NFLOG nfnetlink_log nf_nat_ftp xt_LOG nf_nat_amanda nf_nat nf_log_ipv6 nf_log_common nf_conntrack_tftp nf_conntrack_sip nf_conntrack_sane nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nfnetlink nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_irc nf_conntrack_h323 nf_conntrack_ftp ts_kmp nf_conntrack_amanda
[  470.559992]  nf_conntrack ip6table_filter ip6_tables iptable_filter snd_soc_hdmi_codec usb_f_acm u_serial g_serial libcomposite snd_soc_simple_card snd_soc_simple_card_utils omap_sham omap_aes crypto_engine snd_soc_davinci_mcasp omap_rng snd_soc_omap snd_soc_edma rng_core snd_soc_core tilcdc snd_pcm_dmaengine snd_pcm snd_timer snd soundcore evdev tps65217_charger omap_wdt tda998x sch_fq_codel ip_tables x_tables
[  470.596628] CPU: 0 PID: 605 Comm: zsh Not tainted 4.10.1-1-ARCH #1
[  470.602832] Hardware name: Generic AM33XX (Flattened Device Tree)
[  470.608951] task: d8745800 task.stack: db796000
[  470.613512] PC is at internal_create_group+0x1d6/0x1f8
[  470.618672] LR is at sysfs_create_groups+0x2b/0x58
[  470.623485] pc : [<c0264e0a>]    lr : [<c0265087>]    psr: 600f0133
               sp : db797d48  ip : db79603c  fp : 00000017
[  470.635013] r10: c0df6648  r9 : 00000000  r8 : db366640
[  470.640258] r7 : 00000000  r6 : db366640  r5 : 00000000  r4 : c0a9d9d0
[  470.646811] r3 : 2e00f1a7  r2 : d218c610  r1 : 00000000  r0 : d82e90a0
[  470.653368] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
[  470.660707] Control: 50c5387d  Table: 920d8019  DAC: 00000051
[  470.666475] Process zsh (pid: 605, stack limit = 0xdb796210)
[  470.672157] Stack: (0xdb797d48 to 0xdb798000)
[  470.676536] 7d40:                   2e00f1a7 c0dbb2d0 c0d0404c c07c9513 d82e9098 c0a9d9d0
[  470.684753] 7d60: 00000000 db366640 d82e90a0 db366640 00000000 c0df6648 00000017 c0265087
[  470.692970] 7d80: c0a9d9d0 00000000 d82e9080 e1171207 d82e9080 c06b61b1 00000041 00000000
[  470.701188] 7da0: c0b2ec94 db392000 c0a9d9d0 00000000 db392704 00000000 db392698 d82e9098
[  470.709405] 7dc0: dcb5e510 c0d0404c d82e90a0 c0dbb4a0 d82e9084 c0b2eb3c d217b010 c06af623
[  470.717623] 7de0: e11711f0 2e00f1a7 db797e4c d217b010 00000000 dc57a018 00000000 c0d0404c
[  470.725841] 7e00: dc57a018 d217b010 c0ae4cbc c0573497 00000002 d217b010 00000034 c07c9513
[  470.734058] 7e20: dc1f5a10 d217b25b db392000 dc57a010 00000003 dc1f5a10 00000003 dc57a020
[  470.742275] 7e40: c0d0404c 00000000 dc1f5a10 e11710c8 db797e78 2e00f1a7 db797e50 db366c40
[  470.750493] 7e60: c0d0404c dc57a010 db366b00 dc1f5a10 00000000 d217b010 00000000 c0574133
[  470.758709] 7e80: 00000000 c020169f 00000000 2e00f1a7 db366400 00000009 00000000 db36640c
[  470.766925] 7ea0: db366b00 db797f78 00000009 c0263cab 00000000 00000000 c0d0404c d81e6240
[  470.775142] 7ec0: c0263c01 c081d77c db797f78 00000009 befb69f8 c020e3b7 00000000 00000001
[  470.783359] 7ee0: 000000bd c015905b c0450bf0 200f0033 ffffffff db797f34 d81e6240 c07cb9e5
[  470.791576] 7f00: d81e6240 00000002 00000000 00000000 d81e6240 00000009 000bb9e0 db797f78
[  470.799793] 7f20: d81e6240 2e00f1a7 00000009 d81e6240 00000009 000bb9e0 db797f78 00000000
[  470.808009] 7f40: 000bb9e0 00000009 befb69f8 c020f3cb dc03c000 00000001 00000001 c0d0404c
[  470.816227] 7f60: d81e6240 00000000 00000000 d81e6240 000bb9e0 c0210079 00000000 00000000
[  470.824443] 7f80: c015b4f9 2e00f1a7 00000009 000bb9e0 b6e54d50 00000004 c0106964 db796000
[  470.832660] 7fa0: 00000000 c01067a1 00000009 000bb9e0 00000001 000bb9e0 00000009 00000000
[  470.840877] 7fc0: 00000009 000bb9e0 b6e54d50 00000004 00000009 00000009 b6e54d50 befb69f8
[  470.849093] 7fe0: 00000000 befb66ec b6d80160 b6dd8920 600f0010 00000001 00000000 00000000
[  470.857322] [<c0264e0a>] (internal_create_group) from [<c0265087>] (sysfs_create_groups+0x2b/0x58)
[  470.866331] [<c0265087>] (sysfs_create_groups) from [<c06b61b1>] (__of_overlay_create+0x3f5/0x754)
[  470.875340] [<c06b61b1>] (__of_overlay_create) from [<c0573497>] (capemgr_load_slot+0x33b/0x438)
[  470.884172] [<c0573497>] (capemgr_load_slot) from [<c0574133>] (slots_store+0xef/0x244)
[  470.892224] [<c0574133>] (slots_store) from [<c0263cab>] (kernfs_fop_write+0xab/0x164)
[  470.900186] [<c0263cab>] (kernfs_fop_write) from [<c020e3b7>] (__vfs_write+0x2b/0xd4)
[  470.908055] [<c020e3b7>] (__vfs_write) from [<c020f3cb>] (vfs_write+0x77/0x140)
[  470.915400] [<c020f3cb>] (vfs_write) from [<c0210079>] (SyS_write+0x3d/0x7c)
[  470.922492] [<c0210079>] (SyS_write) from [<c01067a1>] (ret_fast_syscall+0x1/0x4c)
[  470.930101] Code: e7cb 2f00 f47f af25 (de02) f110
[  470.934915] ---[ end trace 805054f94968b72c ]---
razer
 
Posts: 10
Joined: Sat May 30, 2015 9:08 am

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby wouterscm » Tue Mar 07, 2017 8:47 am

Hi!

I have the exact same problem on the BBB. Same symptoms, almost the same output. I used a fresh installation of the latest version of Arch ARM, and only added one line to uEnv.txt:

Code: Select all
cape_enable=bone_capemgr.enable_partno=BB-UART1,BB-SPIDEV0


When I remove that line, the system boots up normally, without all the errors that are below.

Code: Select all
[    1.980559] bone_capemgr bone_capemgr: slot #4: 'Override Board Name,00A0,Override Manuf,BB-UART1'
[    1.989649] bone_capemgr bone_capemgr: slot #5: override
[    1.995005] bone_capemgr bone_capemgr: slot #5: 'Override Board Name,00A0,Override Manuf,BB-SPIDEV0'
[    2.018444] cpu cpu0: dev_pm_opp_set_rate: failed to find current OPP for freq 1000000000 (-34)
[    3.053181] ------------[ cut here ]------------
[    3.057836] kernel BUG at fs/sysfs/group.c:113!
[    3.062386] Internal error: Oops - BUG: 0 [#1] THUMB2
[    3.067459] Modules linked in: ip_tables x_tables
[    3.072198] CPU: 0 PID: 85 Comm: capemgr-loader- Not tainted 4.10.1-1-ARCH #1
[    3.079361] Hardware name: Generic AM33XX (Flattened Device Tree)
[    3.085479] task: dc565200 task.stack: dc59c000
[    3.090041] PC is at internal_create_group+0x1d6/0x1f8
[    3.095202] LR is at sysfs_create_groups+0x2b/0x58
[    3.100013] pc : [<c0264e0a>]    lr : [<c0265087>]    psr: 60040033
[    3.100013] sp : dc59ddf0  ip : 0000003d  fp : 00000017
[    3.111540] r10: c0df6648  r9 : 00000000  r8 : dc5ee680
[    3.116785] r7 : 00000000  r6 : dc5ee680  r5 : 00000000  r4 : c0a9d9d0
[    3.123339] r3 : f9e313a2  r2 : dc590010  r1 : 00000000  r0 : dc5d06a0
[    3.129894] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment none
[    3.137234] Control: 50c5387d  Table: 9c688019  DAC: 00000051
[    3.143002] Process capemgr-loader- (pid: 85, stack limit = 0xdc59c210)
[    3.149643] Stack: (0xdc59ddf0 to 0xdc59e000)
[    3.154021] dde0:                                     f9e313a2 c0dbb2d0 c0d0404c c07c9513
[    3.162238] de00: dc5d0698 c0a9d9d0 00000000 dc5ee680 dc5d06a0 dc5ee680 00000000 c0df6648
[    3.170454] de20: 00000017 c0265087 c0a9d9d0 00000000 dc5d0680 e08f7327 dc5d0680 c06b61b1
[    3.178671] de40: 00000040 00000000 c0b2ec94 dc5a4000 c0a9d9d0 00000000 dc5a4b4c 00000000
[    3.186886] de60: dc5a4ae0 dc5d0698 dcb5e510 c0d0404c dc5d06a0 c0dbb4a0 dc5d0684 c0b2eb3c
[    3.195103] de80: 00000000 c06af623 e08f7310 f9e313a2 dc59def4 dc59b010 00000000 dc51c818
[    3.203320] dea0: 00000000 c0d0404c dc51c818 dc59c000 c0ae4cbc c0573497 00000004 00000200
[    3.211536] dec0: 00000000 fffeddeb dc1f5410 dc59b25b dc5a4000 dc51c810 00000005 dc1f5410
[    3.219752] dee0: 00000005 dc51c820 c0d0404c 00000000 00000000 e08f70d4 00000002 f9e313a2
[    3.227970] df00: dc51c990 00000000 dc59b010 fffffffe dc51c990 dc51c820 00000000 dc59c000
[    3.236185] df20: dc51c818 c05736bb dc45c018 c07cc101 dc45dd88 00000001 dc45dd94 c0d04044
[    3.244403] df40: dc1f5410 c0d0404c 00000000 80000013 dc59c000 dc59c000 dc59c000 f9e313a2
[    3.252620] df60: 00000000 dc57b1c0 dc59c000 00000000 dc57b080 dc59b010 c0573595 dc57b1d8
[    3.260836] df80: dc45dd90 c013a0bd ffffffff dc57b080 c0139ff5 00000000 00000000 00000000
[    3.269052] dfa0: 00000000 00000000 00000000 c0106871 00000000 00000000 00000000 00000000
[    3.277268] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.285485] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 f7f3f7cf cf771edf
[    3.293718] [<c0264e0a>] (internal_create_group) from [<c0265087>] (sysfs_create_groups+0x2b/0x58)
[    3.302728] [<c0265087>] (sysfs_create_groups) from [<c06b61b1>] (__of_overlay_create+0x3f5/0x754)
[    3.311738] [<c06b61b1>] (__of_overlay_create) from [<c0573497>] (capemgr_load_slot+0x33b/0x438)
[    3.320568] [<c0573497>] (capemgr_load_slot) from [<c05736bb>] (capemgr_loader+0x127/0x30c)
[    3.328963] [<c05736bb>] (capemgr_loader) from [<c013a0bd>] (kthread+0xc9/0xf0)
[    3.336318] [<c013a0bd>] (kthread) from [<c0106871>] (ret_from_fork+0x11/0x20)
[    3.343578] Code: e7cb 2f00 f47f af25 (de02) f110
[    3.348392] ---[ end trace 130e6924755a0cc5 ]---
[    3.815714] systemd[1]: Listening on udev Kernel Socket.
[    3.822025] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[    3.829077] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[    3.836478] systemd[1]: Listening on LVM2 metadata daemon socket.
[    3.881140] systemd[1]: Created slice User and Session Slice.
[    3.887485] systemd[1]: Reached target Remote File Systems.
[    3.894709] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.177877] systemd-journald[108]: File /var/log/journal/34bd17e5e59d41d6928874bc68b8aa53/system.journal corrupted or uncleanly shut down, renaming and replacing.
[     *] (3 of 3) A start job is running for dev-ttyS0.device (11s / 1min 30s)
wouterscm
 
Posts: 2
Joined: Tue Mar 07, 2017 8:40 am

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby razer » Tue Mar 07, 2017 9:33 pm

If you need a working kernel, tell me...
razer
 
Posts: 10
Joined: Sat May 30, 2015 9:08 am

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby wouterscm » Wed Mar 08, 2017 9:08 am

I reverted to an old image I still had from end of January (kernel 4.9.6-1). Everything works there. How did you solve it?
wouterscm
 
Posts: 2
Joined: Tue Mar 07, 2017 8:40 am

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby razer » Fri Mar 10, 2017 8:49 pm

Same way you did : downgrading...
razer
 
Posts: 10
Joined: Sat May 30, 2015 9:08 am

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby Matthias » Wed Mar 15, 2017 2:23 pm

Hi guys !

I have the same issue, but unfortunately I've erased the previous working kernel version (4.9.6). If someone could give me a working version I would really appreciate.

Thanks

EDIT: I have just found the archive of the 4.9.6 kernel. I'm still looking for a fix for the 4.10.1 issue though :)
Matthias
 
Posts: 1
Joined: Wed Mar 15, 2017 2:07 pm

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby stemplin » Sun Apr 16, 2017 3:08 pm

Hello *,

can somebody provide such an linux-am33x-4.9.6 archive please? This would be great! Or where can I find such an archive? Google did not help.

I have used an very old one (3.8.13) but because of an WLAN stick I have to upgrade to a newer kernel and the capemgr (SPI, I2C, GPIO without HDMI, eMMC etc.) should work as known.

Thank you in advance,
Sven
stemplin
 
Posts: 1
Joined: Fri Jul 17, 2015 7:51 pm

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby conchyliferous » Sat Apr 22, 2017 7:52 am

Hi,

I can also confirm that 4.10.x does not work as expected. I managed to save a 4.9.x kernel that can be found here: https://github.com/chalmers-revere/open ... kernel/pkg
conchyliferous
 
Posts: 10
Joined: Fri Jul 11, 2014 8:32 pm

Re: [BBB linux-am33x-4.10.1] kernel bug loading capes, no bo

Postby razer » Sat Apr 29, 2017 4:51 am

It's an old ans annoying bug.
Has it to be reported somewhere upstream ?
razer
 
Posts: 10
Joined: Sat May 30, 2015 9:08 am


Return to Texas Instruments (TI)

Who is online

Users browsing this forum: No registered users and 1 guest