1) is it possible to install another kernel image, and how is this done exactly? Unfortunately I managed to get my image on the sd-card unbootable when installing another kernel (bone-kernel instead of ti-kernel). I guess that uEnv.txt is not correctly updated when switching kernels. Actually I forgot to install the kernel headers in the same pass, and this lead to a series of upgrade errors maybe causing the booting issue. I might be able to restore my image somehow if possible, although I still can use the data by just inserting the SD card in my PC.
I guess that uEnv.txt is not correctly updated when switching kernels.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/e1904f5a-63b2-45fd-985e-2cb96c86fcb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2) The "ti" version seems to be dropped starting the 4.5.0 series kernel, so I guess remoteproc was dropped in the end with newer kernels altogether?
The traditional Debian way, you use APT. Something like . . .
william@beaglebone:~/dev$ apt-cache search linux-image | grep 4.1.15-bone
linux-image-4.1.15-bone-rt-r17 - Linux kernel, version 4.1.15-bone-rt-r17
linux-image-4.1.15-bone-rt-r18 - Linux kernel, version 4.1.15-bone-rt-r18
linux-image-4.1.15-bone17 - Linux kernel, version 4.1.15-bone17
linux-image-4.1.15-bone18 - Linux kernel, version 4.1.15-bone18
william@beaglebone:~/dev$ sudo apt-get install linux-image-4.1.15-bone-rt-r18
By the way, TI's most recent kernels are purportedly supposed to use either remoteproc, or uio_pruss. I say purportedly because I have not personally experimented with that yet, but Robert made a post not long ago about this. So it sounds like right off the bat, all you need to do is load the PRU overlay file to get uio_pruss working. Or a slightly more involved process to get remoteproc working.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CALHSORpdb6XCDeP6-di7cpbFYNtqS3eN_oBSzsGRqCrK4dR8KA%40mail.gmail.com.
Well, I used apt-get install. I traced back the command entered when examining .bash_history:
# sudo apt-get install linux-image-4.1.15-bone-rt-r18
But, you mentioned something else, that got me thinking: after backing up the sd card and writing a new image to the sd-card, it failed first pass (no booting BBG whatsever I tried). Flashed the image again, and then my BBG booted. So now I start to suspect my sd card actually. Time for new sd card to make sure. I'll be watching the power supply as well; I'm using a 6600 mAh Lipoly with an Adafruit 500mA Power charge and adapter (if interested: first glimpse of my project page here). I'm not 100% convinced on the power supply as well with occasional drops during booting. So maybe I'l go for micro-usb power supply for "mission critical" changes to the image to ensure correct upgrades and only use the battery when testing the entire setup with stepper drivers and motors. T
Thanks for your suggestions.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/03ba76ad-1d89-4c0d-877c-23f52b6dcdc7%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/a8f3c97d-28f9-4e0f-8c5f-fb5dbd1503cc%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/8024d3c1-9ce9-41e0-bb82-4bd16a8eb1b8%40googlegroups.com.
/dts-v1/;
/plugin/;
/ { compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "OMNI-ROBOT";
version = "00A0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
pinctrl_generated: RNS_Generated_Pins {
pinctrl-single,pins = <
0x078 0x07 /* P9_12 OUTPUT | MODE7 */
0x048 0x07 /* P9_14 OUTPUT | MODE7 */
0x04c 0x07 /* P9_16 OUTPUT | MODE7 */
0x084 0x07 /* P8_20 OUTPUT | MODE7 */
0x014 0x07 /* P8_22 OUTPUT | MODE7 */
0x004 0x07 /* P8_24 OUTPUT | MODE7 */
0x07c 0x07 /* P8_26 OUTPUT | MODE7 */
0x018 0x37 /* P8_3 INPUT | MODE7 */
0x01c 0x37 /* P8_4 INPUT | MODE7 */
0x008 0x37 /* P8_5 INPUT | MODE7 */
0x00c 0x37 /* P8_6 INPUT | MODE7 */
0x034 0x37 /* P8_11 INPUT | MODE7 */
0x030 0x37 /* P8_12 INPUT | MODE7 */
0x1ac 0x07 /* P9_25 OUTPUT | MODE7 */
0x1a4 0x07 /* P9_27 OUTPUT | MODE7 */
0x19c 0x07 /* P9_28 OUTPUT | MODE7 */
0x194 0x07 /* P9_29 OUTPUT | MODE7 */
0x198 0x07 /* P9_30 OUTPUT | MODE7 */
0x190 0x07 /* P9_31 OUTPUT | MODE7 */
>;
};
pru_pru_pins: pinmux_pru_pru_pins {
pinctrl-single,pins = <
0x0a4 0x25 /* P8_46 OUTPUT | MODE 5 */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
pinctrl_generated_pinmux {
compatible = "bone-pinmux-helper";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_generated>;
status = "okay";
};
};
};
fragment@2 {
target = <&pruss>;
__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&pru_pru_pins>;
};
};
};
prussdrv_init();if (prussdrv_open(PRU_EVTOUT_0) == -1) {printf("prussdrv_open() failed\n");return 1;}
pruss_uio 4a300000.pruss: No children
On Jul 16, 2016 11:57 AM, "Joseph Heller" <joseph.h...@gmail.com> wrote:
>
> Hi William, thanks for the support, some input got me further at least. This is how far I got today: I now have the uio driver more or less enabled on 4.1.5-ti-rt-r10 via my DTS file:
I thought i was very explicit in my email, 4.4.x-ti r34 or later. For that specific kernel you are using, you'll be discovering the uoi patch in r34. 😉
Regards,
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYhcEYd2tgc_s3aD%2Bdvz19y24miWqNCrxpahGsw5vryZuA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c19dc4d6-a86d-4300-aa38-f6ffa3e4385c%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/c19dc4d6-a86d-4300-aa38-f6ffa3e4385c%40googlegroups.com.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYhcEYd2tgc_s3aD%2Bdvz19y24miWqNCrxpahGsw5vryZuA%40mail.gmail.com.
small progress here;4.4.x-ti r34 did not result in any good (only remoteproc as far as I could tell), no uio.Therefore went for the bone version, non -rt:cd /opt/scripts/tools/sudo git pullsudo ./update_kernel.sh --bone-kernel --lts-4_4which gave mekernel 4.4.15-bone11and a new dmesg after loading my dtbo:[Mon Jul 18 19:44:48 2016] pruss_uio 4a300000.pruss: pins are not configured from the driver[Mon Jul 18 19:44:49 2016] bone-pinmux-helper ocp:pinctrl_generated_pinmux: could not find pctdev for node /ocp/interrupt-controller@48200000, deferring probe
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYgfQYcKT89EihmpdnORK%3D7t9M3zG7gG1SozLtQpaTtQJA%40mail.gmail.com.
Finally, that worked William (&John &Robert)! I did a small check with an LED and am able to with it on/off now via the PRU and uio.For your consideration, I wonder how you feel like to document this more structurally so others can benefit from it? I was offset by some older posts on the forum. Next thing I just though about is to make more use of the .deb functionality instead of relying on script or instructions. For instance uio "conflicts" with remoteproc in reality, but both reside on the same sd-card image. Otherwise, I also understood the PRU's are not that much used, so maybe it;s not worth the effort to invest in this.Anyway, thanks again for the help, I'd be glad to inform/post the end result of my project somewhere once my time-critical part of c code as transferred to the PRU.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/1a79bfd0-ddcf-4f32-a6af-95635e067fef%40googlegroups.com.
@Robert, any idea on if TI plans on cleaning up the kernel module mess that now "infests" TI kernels ? using something like 50M + memory needlessly . . .This is really a trivial "fix". Or something that is really easy to remember how to do.Right now, personally I'm still favoring *bone* kernels, and I know I'm not alone.I think it's pretty well documented here. However you could always write up an eLinux or whatever wiki page . . . I do have my own web page http://www.embeddedhobbyist.com/ with stuff on it that is important to me. But this information for using UIO on TI kernels I feel is largely useless. BecauseThe method for enabling either / or will likely change in the future.
a few users wanted to use systemtap:that needs debug_info..
Hi Robert,Well I mean this:
william@beaglebone:~$ lsmod
Module Size Used by
xt_REDIRECT 1885 1
nf_nat_redirect 1790 1 xt_REDIRECT
xt_tcpudp 3091 1
iptable_nat 1997 1
nf_conntrack_ipv4 14735 1
nf_defrag_ipv4 1677 1 nf_conntrack_ipv4
nf_nat_ipv4 5392 1 iptable_nat
nf_nat 15031 2 nf_nat_redirect,nf_nat_ipv4
nf_conntrack 98575 3 nf_nat,nf_nat_ipv4,nf_conntrack_ipv4
ip_tables 11986 1 iptable_nat
x_tables 17435 3 ip_tables,xt_tcpudp,xt_REDIRECT
rpcsec_gss_krb5 23814 0
nfsd 261377 2
spidev 7523 0
omap_aes_driver 19045 0
omap_sham 21340 0
uio_pruss 4928 0
omap_rng 4423 0
rng_core 7703 1 omap_rng
pwm_tiehrpwm 4706 0
pwm_tiecap 3652 0
tieqep 8758 0
c_can_platform 6602 0
c_can 9577 1 c_can_platform
can_dev 11820 1 c_can
snd_soc_davinci_mcasp 17079 0
snd_soc_edma 1290 1 snd_soc_davinci_mcasp
snd_soc_omap 3058 1 snd_soc_davinci_mcasp
snd_soc_core 155549 3 snd_soc_davinci_mcasp,snd_soc_edma,snd_soc_omap
snd_pcm_dmaengine 5209 2 snd_soc_core,snd_soc_omap
snd_pcm 83341 4 snd_soc_davinci_mcasp,snd_soc_core,snd_soc_omap,snd_pcm_dmaengine
snd_timer 19788 1 snd_pcm
snd 59495 3 snd_soc_core,snd_timer,snd_pcm
soundcore 7637 1 snd
spi_omap2_mcspi 11148 0
evdev 10695 0
uio_pdrv_genirq 3539 0
uio 8822 2 uio_pruss,uio_pdrv_genirq
Lots of stuff that really does not need to be loaded. That, and I'm not quite sure how these modules are loaded, and what's the best way to remove them. The fixes I have here: https://github.com/wphermans/bbb-cleanup I feel are hackish, and maybe somehow incomplete . . .
Ah those! most of them come from loading the cape overlay... (cape_universal=enable)
Regards,Seriously ? Wow I had no idea. Is this a requirement, or can it be changed ? Or . . .hmmm how could one modify this behavior so that only what's needed is loaded. Other than my hackish fix. Or, do we need cape_universal=enable to use universal-io ? I honestly have not experimented with disabling cape_universal and temptation to use universal IO.
evdev 10695 0
uio_pdrv_genirq 3539 0
uio 8822 2 uio_pruss,uio_pdrv_genirq
Lots of stuff that really does not need to be loaded. That, and I'm not quite sure how these modules are loaded, and what's the best way to remove them. The fixes I have here: https://github.com/wphermans/bbb-cleanup I feel are hackish, and maybe somehow incomplete . . .
Ah those! most of them come from loading the cape overlay... (cape_universal=enable)Regards,
Ah those! most of them come from loading the cape overlay... (cape_universal=enable)Regards,Seriously ? Wow I had no idea. Is this a requirement, or can it be changed ? Or . . .hmmm how could one modify this behavior so that only what's needed is loaded. Other than my hackish fix. Or, do we need cape_universal=enable to use universal-io ? I honestly have not experimented with disabling cape_universal and temptation to use universal IO.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYiME9UPiBLcQyJ7UnMxK%2Bmz%3DWXVVWZWPBRxqabg%2B--YjA%40mail.gmail.com.
Hi Robert,I was one of those users who uses Systemtap, but I always build my own kernel with debug symbols enabled, so I would recommend a standard kernel version without debug symbols and if you are up to it, add another build with a -dbg.deb kernel/modules version. Regarding the other kernel modules such as pwn, spidev, snd*(no audio on base BBB), c-can, etc, why not add these to the blacklist and have users remove those from the blacklist if they want these drivers available?
Actually, it's just my locally cross built kernel that have the large modules, for the official *.deb, the *.ko objects are separate in the linux-image-`uname -r`-dbg package. ;) (for gcc-4.7 + that is..)
Yeah, just adding a blacklist for users who want to tune things is the easiest way.
Regards,
debian@beaglebone:~$ sudo depmod -ae /* Ignore warning */
debian@beaglebone:~$ sudo update-initramfs -u /* Changes will take effect next boot */
What do these two tools actually do in the context of modules and initrd images ?
I always assumed this had some
effect on what is actually loaded from an initrd, but I've never honestly looked into it. . .
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYi-EJTZ6UVdXOpyKvrjhwksKqd3YFeXjPQsZz9FFUpEZg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/291a26c9-f393-46ea-af07-0df3e2ac99c7%40googlegroups.com.