Thanks Charles, As you advised, It seems work better, dmesg as follow:
Jul 29 14:14:15 arm rtapi:0: rtapi_app_main(hal_pru_generic): -1 Operation > not permitted > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt prussdrv_init > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt prussdrv_open > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt prussdrv_pruintc_init > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt prussdrv_map_prumem > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt PRU data ram mapped > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt num_pwmgens : 1 > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt num_stepgens: 3 > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt num_encoders: 0 > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt Init pwm > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hpg_pwm_init > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt Init stepgen > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hpg_stepgen_init > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hal_pin_newfv:28 HAL error: > length 49 invalid for name starting > 'hal_pru_generic.stepgen.00.dbg_pos_minus_' > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hpg: stepgen 00: Error adding > pin 'dbg_pos_minus_prev_cmd', aborting > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hal_pru_generic: ERROR: failed > to export stepgen 0: -12 > Jul 29 14:14:15 arm msgd:0: hal_lib:1414:rt hpg: ERROR: stepgen init > failed: -1 > Jul 29 14:14:15 arm msgd:0: rtapi_app:1414:user > rtapi_app_main(hal_pru_generic): -1 Operation not permitted > It seems there is bugs in source code. I will try to figure it out. Just for your update! thanks! -chengxi On Tue, Jul 26, 2016 at 10:37 PM, Charles Steinkuehler < [email protected]> wrote: > On 7/26/2016 9:16 AM, Chen Cheng Xi wrote: > > Dear Charles, > > > > I compile 3.8.13-xenomai kernel branch guided by > > https://eewiki.net/display/linuxonarm/BeagleBone+Black . > > > > I have device tree automatically loaded as below: > > > > ubuntu@arm:~$ cat /sys/devices/bone_capemgr.9/slots > > 0: 54:PF--- > > 1: 55:PF--- > > 2: 56:PF--- > > 3: 57:PF--- > > 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G > > 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI > > > > Then i try to load cape-universal overlay, it will conflict with > Bone-Black-HDMI. > > Either disable the HDMI cape (with audio) or load the cape-universaln > that doesn't use the audio pins: > > machinekit@beaglebone:~$ grep -C1 "^cape_disable" /boot/uEnv.txt > ##Disable HDMI Audio > cape_disable=capemgr.disable_partno=BB-BONELT-HDMI > > machinekit@beaglebone:~$ cat /sys/devices/bone_capemgr.9/slots > 0: 54:PF--- > 1: 55:PF--- > 2: 56:PF--- > 3: 57:PF--- > 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G > 5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI > 6: ff:P-O-L Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN > 7: ff:P-O-L Override Board Name,00A0,Override Manuf,cape-universal > 8: ff:P-O-L Override Board Name,00A0,Override Manuf,cape-bone-iio > > > Then i try to unload 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas > > Instrument,BB-BONELT-HDMI,| > > You generally can't unload device-tree overlays, you have to reboot > and start over. > > -- > Charles Steinkuehler > [email protected] > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to a topic in the > Google Groups "Machinekit" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/machinekit/qncQ_Dh7V9s/unsubscribe. > To unsubscribe from this group and all its topics, 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. > -- Best regards! 陈成细 R&D Engineer (\__/) (='.'=) This is Bunny. Copy and paste bunny into your (")_(") signature to help him gain world domination. -- 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.
