Re: HELP : pocketbeagle UART issue using node js

35 views
Skip to first unread message

Dennis Lee Bieber

unread,
Feb 24, 2021, 10:47:11 AM2/24/21
to Beagleboard
On Wed, 24 Feb 2021 06:33:30 -0800 (PST), in
gmane.comp.hardware.beagleboard.user Piyush Raj ae19m009
<ae19m009-p/GD3RyrBS6E...@public.gmane.org> wrote:

>
>what is it that i need to do differently in pocketbeagle. This same code
>works for my pocket beagle. i have also ensured that my ttyO4 is enabled.
>

Please clarify "pocketbeagle" vs "pocket beagle"? I suspect you mean
one of the beaglebone black series...

>My code is as below. any help would be highly appreciable. Thanks
>

A Google search reports a BBB showing the same message -- on
StackOverflow, three years ago -- with no answers.

No confirmed answers here either
https://groups.google.com/g/beagleboard/c/kBfn3JW2Kao
though I would suggest verifying the /boot/uEnv.txt files on the two
systems you mention, along with checking kernel version, bonescript and
node.js versions.

The message itself appears to be produced at line 462 of
https://github.com/jadonk/bonescript/blob/master/src/my.js but as I don't
"do" node.js I can't really follow that logic.


--
Dennis L Bieber

Piyush Raj ae19m009

unread,
Feb 24, 2021, 12:08:03 PM2/24/21
to BeagleBoard
I tried suppressing the error produced by line 462 by bruteforce (putting is_capemgr as True). and got rid of this error. 
however, got stuck with the error in  468 (Device Tree overlay fragment BB-UART4 not loaded). 
which means that load_dt fails to fetch the port. i am trying to find out location of load_dt function. hopeful to solve this issue with community help. thanks

evilwulfie

unread,
Feb 24, 2021, 12:15:36 PM2/24/21
to beagl...@googlegroups.com
what version of the OS are you using?

you can load the overlay for that com port in Uenv.txt
--
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/8b5a416e-6b8e-416f-972d-ee6ac12495cen%40googlegroups.com.

Piyush Raj ae19m009

unread,
Feb 24, 2021, 12:18:40 PM2/24/21
to BeagleBoard
sorry for my ignorance, but i am quite new to LINUX platform. can you elaborate on how to add overlay for that com port(ttyO4).

Robert Nelson

unread,
Feb 24, 2021, 12:19:22 PM2/24/21
to Beagle Board
On Wed, Feb 24, 2021 at 11:08 AM Piyush Raj ae19m009
<ae19...@smail.iitm.ac.in> wrote:
>
> I tried suppressing the error produced by line 462 by bruteforce (putting is_capemgr as True). and got rid of this error.
> however, got stuck with the error in 468 (Device Tree overlay fragment BB-UART4 not loaded).
> which means that load_dt fails to fetch the port. i am trying to find out location of load_dt function. hopeful to solve this issue with community help. thanks

load_dt is a relic from kernel overlays.. Just make sure you loaded
the BB-UART4 u-boot overlays and nuke your "var b =
require('bonescript');" as it's not supported/needed/required
anymore..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Piyush Raj ae19m009

unread,
Feb 24, 2021, 12:24:29 PM2/24/21
to BeagleBoard
@ Robert

I am not a linux person. can you elaborate on how to load BB-UART4 u-boot overlay in slightly simpler words if possible.

Piyush Raj ae19m009

unread,
Feb 24, 2021, 12:46:51 PM2/24/21
to BeagleBoard
Hi Robert

i did this for adding u-boot overlay.

uboot_overlay_addr4=/lib/firmware/BB-UART4-00A0.dtbo 

you said that i can get rid of require('bonescript').  what is the alternate method in that case


Help is deeply appreciated


regards


Reply all
Reply to author
Forward
0 new messages