Thanks for the info it was useful I've spotted a few things below ## Bone-rt kernel
#To try out the bone-rt kernel: su cd /opt/scripts/tools/ git pull ./update_kernel.sh --bone-rt-channel --lts-4_14 ## To Remove old kernels: # To list installed kernels: dpkg --list | grep linux-image # To remove an old kernel apt-get purge linux-image-4.9.69-ti-rt-r84 If removing a kernel image earlier than 4.14 # List installed packages dpkg --list | grep linux-firmware-image # Remove the old one apt-get purge linux-firmware-image-4.9.69-ti-rt-r84 # Get rid of anything left over under /lib/modules/ rm -Rf /lib/modules/4.9.69-ti-rt-r84 ## 4.14.6-ti-rt-r17 crash Something I noticed, I think 4.14.6-ti-rt-r17 might have an issue when downloading a large amount over the network using usb0 hooked up to a laptop (network over usb) I was using 4.14.6-ti-rt-r17, and tried to switch over to bone-rt using the update script The end result was this: 1% [1 linux-image-4.14.6-bone-rt-r10 389 kB/27.3 MB 1%][ 333.493428] Unable to handle kernel NULL pointer dereference at virtual address 00000000 [ 333.493436] pgd = c0004000 [ 333.493441] [00000000] *pgd=00000000 [ 333.493464] Internal error: Oops: 80000005 [#1] PREEMPT SMP ARM [ 333.493471] Modules linked in: uio_pruss evdev uio_pdrv_genirq uio usb_f_mass_storage usb_f_acm u_serial usb_f_ecm usb_f_rndis u_ether iptable_nat nf_conntrack_ipv4 libcomposite nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_filter spidev ip_tables x_tables [ 333.493531] CPU: 0 PID: 8 Comm: ktimersoftd/0 Not tainted 4.14.6-ti-rt-r17 #1 [ 333.493534] Hardware name: Generic AM33XX (Flattened Device Tree) [ 333.493539] task: dc138880 task.stack: dc158000 [ 333.493551] PC is at 0x0 [ 333.493568] LR is at smp_cross_call+0x48/0x15c [ 333.493572] pc : [<00000000>] lr : [<c0110450>] psr: 600c0093 [ 333.493576] sp : dc159c88 ip : dc159cb0 fp : dc159cac [ 333.493579] r10: c0e06fd0 r9 : 00000031 r8 : c1507608 [ 333.493583] r7 : a00c0093 r6 : 00000003 r5 : c0e04450 r4 : c15f4868 [ 333.493588] r3 : 00000000 r2 : 00000001 r1 : 00000003 r0 : c0e04450 [ 333.493595] Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none [ 333.493599] Control: 10c5387d Table: 9b3e0019 DAC: 00000051 [ 333.493604] Process ktimersoftd/0 (pid: 8, stack limit = 0xdc158218) [ 333.493609] Stack: (0xdc159c88 to 0xdc15a000) [ 333.493618] 9c80: 00000000 dc0b9850 00000000 a00c0093 c1507608 00000031 [ 333.493627] 9ca0: dc159cbc dc159cb0 c0110c8c c0110414 dc159cd4 dc159cc0 c0261780 c0110c5c [ 333.493636] 9cc0: 00000000 df901ac0 dc159d1c dc159cd8 c0187668 c02616dc c161a560 c018a04c [ 333.493644] 9ce0: dc138880 c0d92c98 df901ac0 00000000 df901ac0 00000000 df901ac0 00000000 [ 333.493653] 9d00: a00c0093 c1507608 00000031 c0e06fd0 dc159d3c dc159d20 c016d638 c0187254 [ 333.493661] 9d20: dc138880 00000062 df901ac0 00000000 dc159d8c dc159d40 c0176bc8 c016d5fc [ 333.493670] 9d40: c14d567c 0000001e 00000001 dc138880 dc159d6c c0d92d60 00000004 9f90f3e4 [ 333.493678] 9d60: dc159d8c da0d3e50 00000001 da0da010 dc159dbc dc159dc4 da0d3e5c c0a96450 [ 333.493687] 9d80: dc159db4 dc159d90 c019d854 c0176804 dc159dbc dc159dc4 c1507608 da0da010 [ 333.493695] 9da0: 800c0013 da0da010 dc159df4 dc159db8 c0d90ca8 c019d7c0 c1187b70 00000001 [ 333.493704] 9dc0: dc159dbc 00000001 dc159dc4 9f90f3e4 da084800 00000000 da0ad31c da0ad31c [ 333.493712] 9de0: da0ad358 da0ad328 dc159e04 dc159df8 c0d931a4 c0d90c48 dc159e34 dc159e08 [ 333.493721] 9e00: c0a96514 c0d93140 dc159e34 dc159e18 da0ad328 df8fdc00 dc158000 c1507638 [ 333.493730] 9e20: df8fdb00 c1507c74 dc159e9c dc159e38 c01cf390 c0a9645c c1507608 ffffe000 [ 333.493738] 9e40: a5e87d8d 0000004d dc159e5c c15f4c8c c15f4ca0 c15f4cb4 dc159e84 00000060 [ 333.493747] 9e60: a5e87d8d 0000004d 912cb3d6 9f90f3e4 df8fdc70 df8fdb00 600c0013 df8fdc70 [ 333.493755] 9e80: 00000020 00000000 c1507c74 dc158000 dc159ec4 dc159ea0 c01cf670 c01cf1f8 [ 333.493764] 9ea0: 600c0013 000000f0 dc159ec4 c14cc4c8 00000008 c15f4908 dc159f1c dc159ec8 [ 333.493772] 9ec0: c0148b60 c01cf5ec c0d8f248 c01709ac dc159ec8 c15030a0 04208140 00000000 [ 333.493781] 9ee0: c1503080 c14cc3a8 c14cc510 c1618d80 00000001 ffffe000 dc10e480 00000000 [ 333.493789] 9f00: 00000001 00000000 c1525f98 ffffe000 dc159f34 dc159f20 c0149180 c014893c [ 333.493798] 9f20: dc158000 dc10e480 dc159f74 dc159f38 c016b9a0 c0149150 dc159f5c c1507608 [ 333.493806] 9f40: c0d8eba4 9f90f3e4 dc10e7c0 dc10e7c0 00000000 dc10ed80 dc158000 dc10e480 [ 333.493815] 9f60: dc10e7dc dc141de4 dc159fac dc159f78 c0166e44 c016b828 00000000 c016b81c [ 333.493823] 9f80: 00000000 dc10ed80 c0166d00 00000000 00000000 00000000 00000000 00000000 [ 333.493831] 9fa0: 00000000 dc159fb0 c0108f90 c0166d0c 00000000 00000000 00000000 00000000 [ 333.493839] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 333.493847] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000 9be1e1b9 55eb9bfd [ 333.493881] [<c0110450>] (smp_cross_call) from [<c0110c8c>] (arch_send_call_function_single_ipi+0x3c/0x40) [ 333.493901] [<c0110c8c>] (arch_send_call_function_single_ipi) from [<c0261780>] (irq_work_queue_on+0xb0/0x11c) [ 333.493914] [<c0261780>] (irq_work_queue_on) from [<c0187668>] (pull_rt_task+0x420/0x4d8) [ 333.493933] [<c0187668>] (pull_rt_task) from [<c016d638>] (__balance_callback+0x48/0x60) [ 333.493947] [<c016d638>] (__balance_callback) from [<c0176bc8>] (rt_mutex_setprio+0x3d0/0x4b4) [ 333.493959] [<c0176bc8>] (rt_mutex_setprio) from [<c019d854>] (mark_wakeup_next_waiter+0xa0/0x13c) [ 333.493976] [<c019d854>] (mark_wakeup_next_waiter) from [<c0d90ca8>] (rt_spin_lock_slowunlock+0x6c/0xb4) [ 333.493991] [<c0d90ca8>] (rt_spin_lock_slowunlock) from [<c0d931a4>] (rt_spin_unlock+0x70/0x78) [ 333.494010] [<c0d931a4>] (rt_spin_unlock) from [<c0a96514>] (cppi41_recheck_tx_req+0xc4/0x100) [ 333.494031] [<c0a96514>] (cppi41_recheck_tx_req) from [<c01cf390>] (__hrtimer_run_queues+0x1a4/0x3f4) [ 333.494042] [<c01cf390>] (__hrtimer_run_queues) from [<c01cf670>] (hrtimer_run_softirq+0x90/0xd0) [ 333.494060] [<c01cf670>] (hrtimer_run_softirq) from [<c0148b60>] (do_current_softirqs+0x230/0x438) [ 333.494070] [<c0148b60>] (do_current_softirqs) from [<c0149180>] (run_ksoftirqd+0x3c/0x7c) [ 333.494080] [<c0149180>] (run_ksoftirqd) from [<c016b9a0>] (smpboot_thread_fn+0x184/0x300) [ 333.494098] [<c016b9a0>] (smpboot_thread_fn) from [<c0166e44>] (kthread+0x144/0x174) [ 333.494115] [<c0166e44>] (kthread) from [<c0108f90>] (ret_from_fork+0x14/0x24) [ 333.494126] Code: bad PC value I tried downloading a large amount using bone-rt and that seems to work okay It's not a big issue since the fixes you've mentioned may sort it out and it's only over usb not ethernet. ## Usb Networking If your using windows and have trouble getting the RNDIS working after the update, just see below: https://developer.toradex.com/knowledge-base/how-to-install-microsoft-rndis-driver-for-windows-7 Many Thanks Richard On Sunday, December 17, 2017 at 10:13:51 PM UTC, Robert Nelson wrote: > > On Sun, Dec 17, 2017 at 2:41 PM, 'Ric W' via Machinekit > <[email protected] <javascript:>> wrote: > > Hi, > > not wanting to hijack the thread or anything, but I've also been looking > at > > updating the kernel to the latest version for machinekit > > I'm currently in the process of figuring out how to setup a new > machinekit > > setup > > I'm using a BeagleBone Green (v1) With the latest debian stretch image > from > > the beaglebone site > > using the guide from > > https://machinekoder.com/machinekit-debian-stretch-beaglebone-black/ > > > > I've been using the commands you've mentioned to test out some of the > newer > > kernel releases > > (also doing a git pull in that directory to update /opt/scripts/tools/) > > > > For version 4.4 > > I think this works okay so far, but I'd prefer to use a later version. > > > > For version 4.9 > > I think there's a glitch in the kernel when I tested it with realtime > > ``` > > realtime start > > halcmd show pin > > realtime stop > > ``` > > > > This resulted in dmesg > > ``` > > [ 160.328837] IPv6: ADDRCONF(NETDEV_UP): usb1: link is not ready > > [ 163.498868] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready > > [ 168.193722] random: crng init done > > [ 290.635798] ------------[ cut here ]------------ > > [ 290.635849] WARNING: CPU: 0 PID: 816 at fs/sysfs/dir.c:31 > > sysfs_warn_dup+0x78/0x88 > > [ 290.635857] sysfs: cannot create duplicate filename > > '/bus/platform/devices/4a300000.pruss' > > With v4.9.x-ti you only get ti's remote_proc, ^ this error occrus when > > uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo > > is set.. > > (i haven't been able to isolate it like i did in v4.4.x-ti where we > swap between ti's and communities pruss driver..) > > > > [ 290.635863] Modules linked in: pruss_soc_bus(+) evdev uio_pdrv_genirq > uio > > usb_f_mass_storage usb_f_acm u_serial usb_f_ecm usb_f_rndis u_ether > > libcomposite iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 > nf_nat > > nf_conntrack iptable_mangle iptable_filter spidev pru_rproc pruss_intc > pruss > > tieqep ip_tables x_tables > > [ 290.635938] CPU: 0 PID: 816 Comm: systemd-udevd Not tainted > > 4.9.69-ti-rt-r84 #1 > > [ 290.635942] Hardware name: Generic AM33XX (Flattened Device Tree) > > [ 290.635980] [<c0114500>] (unwind_backtrace) from [<c010ddd0>] > > (show_stack+0x20/0x24) > > [ 290.635993] [<c010ddd0>] (show_stack) from [<c075ef34>] > > (dump_stack+0x80/0x94) > > [ 290.636006] [<c075ef34>] (dump_stack) from [<c013ea20>] > > (__warn+0xf8/0x110) > > [ 290.636016] [<c013ea20>] (__warn) from [<c013ea90>] > > (warn_slowpath_fmt+0x58/0x74) > > [ 290.636026] [<c013ea90>] (warn_slowpath_fmt) from [<c0377a4c>] > > (sysfs_warn_dup+0x78/0x88) > > [ 290.636038] [<c0377a4c>] (sysfs_warn_dup) from [<c0377e24>] > > (sysfs_do_create_link_sd+0xc4/0xcc) > > [ 290.636046] [<c0377e24>] (sysfs_do_create_link_sd) from [<c0377e64>] > > (sysfs_create_link+0x38/0x44) > > [ 290.636063] [<c0377e64>] (sysfs_create_link) from [<c08ef104>] > > (bus_add_device+0x11c/0x1c0) > > [ 290.636074] [<c08ef104>] (bus_add_device) from [<c08ecc3c>] > > (device_add+0x2e0/0x5e0) > > [ 290.636086] [<c08ecc3c>] (device_add) from [<c0b10ab8>] > > (of_device_add+0x44/0x4c) > > [ 290.636097] [<c0b10ab8>] (of_device_add) from [<c0b111d8>] > > (of_platform_device_create_pdata+0x94/0xcc) > > [ 290.636108] [<c0b111d8>] (of_platform_device_create_pdata) from > > [<c0b11518>] (of_platform_bus_create+0x18c/0x33c) > > [ 290.636116] [<c0b11518>] (of_platform_bus_create) from [<c0b118c8>] > > (of_platform_populate+0x9c/0x13c) > > [ 290.636146] [<c0b118c8>] (of_platform_populate) from [<bf11d2d4>] > > (pruss_soc_bus_probe+0x12c/0x290 [pruss_soc_bus]) > > 290.636191] [<bf11d2d4>] (pruss_soc_bus_probe [pruss_soc_bus]) from > > [<c08f2a70>] (platform_drv_probe+0x60/0xc0) > > [ 290.636203] [<c08f2a70>] (platform_drv_probe) from [<c08f032c>] > > (driver_probe_device+0x27c/0x46c) > > [ 290.636213] [<c08f032c>] (driver_probe_device) from [<c08f0628>] > > (__driver_attach+0x10c/0x128) > > [ 290.636222] [<c08f0628>] (__driver_attach) from [<c08eddb8>] > > (bus_for_each_dev+0x8c/0xd0) > > [ 290.636231] [<c08eddb8>] (bus_for_each_dev) from [<c08efb14>] > > (driver_attach+0x2c/0x30) > > [ 290.636241] [<c08efb14>] (driver_attach) from [<c08ef550>] > > (bus_add_driver+0x1b8/0x278) > > [ 290.636250] [<c08ef550>] (bus_add_driver) from [<c08f1470>] > > (driver_register+0x88/0x104) > > [ 290.636261] [<c08f1470>] (driver_register) from [<c08f29bc>] > > (__platform_driver_register+0x50/0x58) > > [ 290.636275] [<c08f29bc>] (__platform_driver_register) from > [<bf120020>] > > (pruss_soc_bus_driver_init+0x20/0xc0 [pruss_soc_bus]) > > [ 290.636293] [<bf120020>] (pruss_soc_bus_driver_init [pruss_soc_bus]) > from > > [<c0101994>] (do_one_initcall+0x64/0x1a0) > > [ 290.636313] [<c0101994>] (do_one_initcall) from [<c027b284>] > > (do_init_module+0x74/0x3d8) > > [ 290.636329] [<c027b284>] (do_init_module) from [<c01e8fa8>] > > (load_module+0x1fd4/0x26d8) > > [ 290.636341] [<c01e8fa8>] (load_module) from [<c01e997c>] > > (SyS_finit_module+0xf0/0x120) > > [ 290.636356] [<c01e997c>] (SyS_finit_module) from [<c0109180>] > > (__sys_trace_return+0x0/0x10) > > [ 290.636362] ---[ end trace 0000000000000002 ]--- > > ``` > > > > With version 4.14 > > I think this works okay (no kernel messages when using testing with > > realtime) > > But I've noticed there's no linux-firmware-image for 4.14.6-ti-rt-r17 > > https://rcn-ee.com/repos/debian/pool/main/l/linux-upstream/ > > I'm not sure if it's missing or perhaps not needed with this kernel > version > > "in-kernel" firmware got nuked in v4.14.x mainline.. So no more > special package with blobs we don't use.. > > > I was going to ask which is better to use bone-rt or ti-rt > > I'm not sure what the differences are, but looking at the thread it > looks > > like ti-rt is preferred > > although bone-rt does have a firmware image for 4.13 > > linux-firmware-image-4.13.16-bone-rt-r3_1stretch_armhf.deb > > (perhaps these are not needed for 4.14 I'm unsure) > > Give "4.14.6-bone-rt-r10" a shot, the RT guys just published a few > fixes last friday and that version has the latest, inluding a fix for > hte bbb... > > (that fix won't get rolled into v4.14.x-ti till tomorrow when i'm at > work..) > > https://patchwork.kernel.org/patch/10115425/ > > Regards, > > -- > Robert Nelson > https://rcn-ee.com/ > -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
