[beagleboard] Re: Is it possible to make work the BBB C program code without installing any operating systems?

2017-11-22 Thread mike . maikaefer
Check out StarterWare from TI (there is also a FreeStarterWare project 
available on sf.net which contains a lot of bugfixes and feature 
enhancements TI never managed to publish). It contains TCP/IP stack, USB 
stack, functions to read/write FatFS on SD-card and many things more - all 
as bare metal without the need to use an operating system and with a lot of 
useful examples.

On Friday, November 17, 2017 at 4:12:38 AM UTC+1, AVR wrote:
>
> Thank you Graham, I completely forgot that I also need and exchange data 
> on TCP/IP... in that case is it possible to realize programmatically TCP/IP 
> without OS ?
>
> четверг, 16 ноября 2017 г., 20:20:30 UTC+5 пользователь Graham написал:
>>
>> Yes, it is possible.
>> Also, probably extremely painful learning experience.
>> There are ARM processors that are designed to run with OS.  They start 
>> with the letter A.
>> The processor in the Beaglebone is an A-8.
>> There are ARM processors that are designed to run without OS. They start 
>> with the letter M.
>>
>> I would suggest that you look at one of the faster M series, like a 200 
>> MHz M4F and see it that will do your job.
>>
>> --- Graham
>>
>> ==
>>
>> On Wednesday, November 15, 2017 at 9:40:05 PM UTC-6, AVR wrote:
>>>
>>> In other words I'd like to make work the BeagleBone Black on the base C 
>>> program code without any operating systems. 
>>> My task is simple enough - frequency meter 0...100 KHz, DI/DO simple 
>>> logic and data exchange accross TCP/IP.
>>>
>>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/53d98194-df5e-4bb3-a8fc-5ad4d649f4be%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Is it possible to make work the BBB C program code without installing any operating systems?

2017-11-22 Thread 'AVR' via BeagleBoard
Oh exactly! Very thank you dear Mike

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/dc50fc79-8c8f-4f3e-abbc-542d05531e33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread William
I always use a 5V power supply.
Got the image, flashed SD with Etcher, flashed the BBBW.

Same result as before: it runs until "*beaglebone login:", *then freezes.
bbbw.jpg 


marți, 21 noiembrie 2017, 17:05:18 UTC+2, RobertCNelson a scris:
>
> On Tue, Nov 21, 2017 at 8:16 AM, William > 
> wrote: 
> > BB is completely freeze with those leds on. 
> > Tried to re-flash, same issue. 
> > I am not able to run any script. 
>
> How are you powering it? 
>
> Use a 5volt DC barrel connector. 
>
> Grab this image: 
>
>
> https://rcn-ee.net/rootfs/bb.org/testing/2017-11-19/stretch-iot/BBBL-blank-debian-9.2-iot-armhf-2017-11-19-4gb.img.xz
>  
>
> use etcher.io 
>
> it'll flash the eMMC.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/07cc2f94-3f50-469f-82a5-65278cd8a83c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread William
I always use a 5V power supply.
Got the image, flashed SD with Etcher, flashed the BBBW.

Same result as before: it runs until "*beaglebone login:", *then freezes.
bbbw.jpg 


It can be a problem with my board? I have only one to test.

Thank you for your support.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/94dc07b9-fd13-4f9d-a8a3-cb0835fd8df6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread William


I always use a 5V power supply.
Got the image, flashed SD with Etcher, flashed the BBBW.
Same result as before: it runs until "beaglebone login:", then freezes.
bbbw.jpg 

bbbw_debug_messages  - 
Pass: 1234

It can be a problem with my board? I have only one to test.

Thank you for your support.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/60ac7214-9ab4-44da-99d1-02a82c1eeac7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: LIBPRUIO

2017-11-22 Thread Jaime Carrillo
Hi,

I am interested in use libpruio, and I would like to know if you were able 
to use it in that kernel version.
I will work with the ADC too, so maybe you can give some advice to install 
the libpruio and how to use it.

PD: I'm using this kernel version:  "Linux beaglebone 4.4.82-bone19 #1 Mon 
Aug 14 21:56:51 UTC 2017 armv7l GNU/Linux"



El viernes, 7 de julio de 2017, 16:41:42 (UTC+2), Dario Guaman escribió:
>
> Hi, does anyone know if libpruio works also for this kernel version?   (
> http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/index.html
> )
>
>
> 
>
> regards
>

El viernes, 7 de julio de 2017, 16:41:42 (UTC+2), Dario Guaman escribió:
>
> Hi, does anyone know if libpruio works also for this kernel version?   (
> http://users.freebasic-portal.de/tjf/Projekte/libpruio/doc/html/index.html
> )
>
>
> 
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/6dc38ce2-ad9d-4d3c-851d-1ff255e22586%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Cannot get audio over HDMI working

2017-11-22 Thread adrien . courdavault
I have the same exact problem with Linux beaglebone 4.9.45-ti-r57 #1 SMP 
PREEMPT Fri Aug 25 22:58:38 UTC 2017 armv7l and Linux beaglebone 
4.9.63-ti-r77

I have tried to update the OS, change the resolution, the audio is not 
working,

The other thing I confirm is that GPIO1.27 is LO it commands the oscillator 
of the audio I2S, which is in this case disbled.

I guess it s just software as I had it working once by accident (and i 
don't know why nor why it does not work anymore)

On Monday, October 26, 2015 at 1:57:00 PM UTC+1, Gerald wrote:
>
> Correct. 
>
> Gerald
>
>
> On Sun, Oct 25, 2015 at 9:14 AM, > 
> wrote:
>
>> Ok, but as I mentioned in my original post, I have tried both of those 
>> resolutions and neither of them produced audio over the HDMI connection.  
>> So there must be some other problem that I have to get solved in order to 
>> make this work.
>>
>>
>> On Saturday, October 24, 2015 at 3:36:24 PM UTC-4, Gerald wrote:
>>>
>>> Only two resolutions support audio over HDMi. Unless you use one of 
>>> those two resolutions, you will not get audio over HDMI.
>>>
>>> -- 
>> 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 .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Gerald
>  
> ger...@beagleboard.org 
> http://beagleboard.org/
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/72922031-c2ea-4564-8073-973715660c97%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Invalid mode: spi

2017-11-22 Thread math19_19
 Hallo Davide, did you found solution? I have a same problem.
 Best 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b16e28b9-f90d-4ad6-8b54-148dc7d69da4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Invalid mode: spi

2017-11-22 Thread Davide Aguiari
Hi! No, sorry. I restored an old image and I'm not upgrading. If you eventually 
solve this, please let me know. 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0c63eea6-6d09-4d77-bd0d-39aea002596e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: LIBPRUIO

2017-11-22 Thread TJF


Hi Jaime!

In one project I've libpruio-0.4 running on

 4.4.22-bone13

It should be possible to run it (version 0.4) on your kernel version as
well. But it's a mess to install on 4.x kernel versions (recompiling of
inertial device tree is necessary to get all PWM working). And I didn't
finish the docu yet.

So if you want a precompiled binary and complete docu, you'll have to
switch to a 3.8 kernel version with libpruio-0.2.

Otherwise, you can download and compile the libpruio-0.4 source here

  https://github.com/dtjf/libpruio

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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/26a66807-906f-4aae-b1e2-58209e6f524d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread Robert Nelson
On Wed, Nov 22, 2017 at 5:18 AM, William  wrote:
>
>
> I always use a 5V power supply.
> Got the image, flashed SD with Etcher, flashed the BBBW.
> Same result as before: it runs until "beaglebone login:", then freezes.
> bbbw.jpg
> bbbw_debug_messages - Pass: 1234
>
> It can be a problem with my board? I have only one to test.

Well, you only have the "TX" and "GND" pin connected on the debug usart..

Hook up the "RX" and then you can login...

Regards,

-- 
Robert Nelson
https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYgcsmur%2B03H%2B_%2B8aAMOr2YhBou7xb8STipG3emJgg%3DJjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Expanding Root Partition - Bad magic number in super-block while trying to open /dev/mmcblk0p2

2017-11-22 Thread Louis Whitcomb
To build ROS Kinetic from source on the Beaglebone, in addition booting 
from the SD card (for extra flash space) you need to create and enable a 
swap file. A 1GB swap file seems to wrok fine.  Without a swap file the 
build of ROS Kinetic failed due to lack memory.   Instructions here:  
https://sheldondwill.wordpress.com/2013/12/14/beaglebone-black-ubuntu-adding-a-swapfile

On Wednesday, November 22, 2017 at 3:40:30 AM UTC, RobertCNelson wrote:
>
> On Tue, Nov 21, 2017 at 9:02 PM, Dariush Keivan 
> > wrote: 
> > I erased it. Now just 2 LEDS light up and I can not even connect to the 
> > beaglebone through SSH. 
> > What should I do now? 
>
> Now stick your flashed microSD and it'll boot from it.. 
>
> If it doesn't, let's start back with this image: 
>
>
> https://rcn-ee.com/rootfs/2017-10-12/microsd/bone-ubuntu-16.04.3-console-armhf-2017-10-12-2gb.img.xz
>  
>
> Use etcher.io to write teh *.img.xz directly to the microSD card.. 
>
> Regards, 
>
> -- 
> Robert Nelson 
> https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/f5efce16-453c-427f-a231-693c20357cdc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Trouble building a configfs for HID device on BBBW

2017-11-22 Thread sscirrus
I am trying to get a BBBW to register itself as a pure HID device.

I'm starting with a modified version of Phil Polstra's bash script 
presented at DEF CON (attached). His script was built originally for 
Ubuntu, but I'm running the latest 9.1 Debian image.

I have updated the original last line from echoing 'musb-hdrc.0.auto' to 
'musb-hdrc.0' (for versions 4.9.x, which mine is).

Here's what happens:

*debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh

create-hid-BB.sh: line 44: echo: write error: Device or resource busy
*debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh

create-hid-BB.sh: line 29: echo: write error: Device or resource busy

create-hid-BB.sh: line 30: echo: write error: Device or resource busy

create-hid-BB.sh: line 31: echo: write error: Device or resource busy

cp: error writing 
'/sys/kernel/config/usb_gadget/kb/functions/hid.usb0/report_desc': Device 
or resource busy

ln: failed to create symbolic link 
'/sys/kernel/config/usb_gadget/kb/configs/c.1/hid.usb0': File exists

create-hid-BB.sh: line 44: echo: write error: Device or resource busy

*debian@beaglebone*:*~*$ sudo bash create-hid-BB.sh

create-hid-BB.sh: line 29: echo: write error: Device or resource busy

create-hid-BB.sh: line 30: echo: write error: Device or resource busy

create-hid-BB.sh: line 31: echo: write error: Device or resource busy

cp: error writing 
'/sys/kernel/config/usb_gadget/kb/functions/hid.usb0/report_desc': Device 
or resource busy

ln: failed to create symbolic link 
'/sys/kernel/config/usb_gadget/kb/configs/c.1/hid.usb0': File exists

create-hid-BB.sh: line 44: echo: write error: Device or resource busy

I also tried:

   1. Restarting the system.
   2. Leaving g_multi in place.
   3. Building a kb folder in another folder with the customizations 
   specified in the attached script.
   4. Copying the kb folder to /sys/kernel/config/usb_gadget/
   5. This also fails with the same messages. It's almost like the moment 
   there's a /sys/kernel/config/usb_gadget/kb folder, the system connects to 
   it and starts using it. (Note that during this time, my computer is NOT 
   registering the BBBW as a HID device yet).

It seems like it shouldn't be this difficult. How can I make a BBBW pure 
HID?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/b8e73b33-b68f-4e09-ac97-066e02f6d1e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/bash
# This script will create a HID device on the BBB

# if the g_multi device is loaded remove it
if lsmod | grep g_multi >/dev/null ; then
  modprobe -r g_multi
fi
# check for the existance of configfs
if mount | grep '/sys/kernel/config' >/dev/null ; then
  umount /sys/kernel/config
fi
mount none -t configfs /sys/kernel/config
# create a keyboard device
kbdir="/sys/kernel/config/usb_gadget/kb"
if [ ! -d "$kbdir" ] ; then
  mkdir $kbdir
fi
echo 0x1337 >"$kbdir/idVendor"
echo 0x1337 >"$kbdir/idProduct"
echo 0x0100 >"$kbdir/bcdDevice"
echo 0x0100 >"$kbdir/bcdUSB"# Changed to suggest compatibility with USB 1.0. 0x0110 is 1.1, 0x0200 is USB 2.0.
if [ ! -d "$kbdir/configs/c.1" ] ; then
  mkdir "$kbdir/configs/c.1"
fi
echo 500 >"$kbdir/configs/c.1/MaxPower"
if [ ! -d "$kbdir/functions/hid.usb0" ] ; then
  mkdir "$kbdir/functions/hid.usb0"
fi
echo 1 >"$kbdir/functions/hid.usb0/subclass"
echo 1 >"$kbdir/functions/hid.usb0/protocol"
echo 8 >"$kbdir/functions/hid.usb0/report_length"
cp report_descriptor_kb.bin "$kbdir/functions/hid.usb0/report_desc"
ln -s "$kbdir/functions/hid.usb0" "$kbdir/configs/c.1"

#echo musb-hdrc.0.auto >"$kbdir/UDC"
#echo musb-hdrc.0.auto >"$kbdir/UDC"

#v4.4.x-ti
if [ -d /sys/class/udc/musb-hdrc.0.auto ] ; then
  echo musb-hdrc.0.auto >"$kbdir/UDC"
else
  #v4.9.x-ti
  if [ -d /sys/class/udc/musb-hdrc.0 ] ; then
echo musb-hdrc.0 >"$kbdir/UDC"
  fi
fi


Re: [beagleboard] Trouble building a configfs for HID device on BBBW

2017-11-22 Thread Robert Nelson
On Wed, Nov 22, 2017 at 12:23 PM,   wrote:
> I am trying to get a BBBW to register itself as a pure HID device.
>
> I'm starting with a modified version of Phil Polstra's bash script presented
> at DEF CON (attached). His script was built originally for Ubuntu, but I'm
> running the latest 9.1 Debian image.
>
> I have updated the original last line from echoing 'musb-hdrc.0.auto' to
> 'musb-hdrc.0' (for versions 4.9.x, which mine is).
>
> Here's what happens:
>
> debian@beaglebone:~$ sudo bash create-hid-BB.sh
>
> create-hid-BB.sh: line 44: echo: write error: Device or resource busy

add the -ex options to bash, so you can actually watch and therefore
trace what happens..

Regards,


-- 
Robert Nelson
https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYji-yn59KHG-Tj4pRgFxq8SEViEN_yeojY%2BHrPBe0wdaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Trouble building a configfs for HID device on BBBW

2017-11-22 Thread sscirrus
The first time:

*debian@beaglebone*:*~*$ sudo bash -ex create-hid-BB.sh

[sudo] password for debian: 

+ grep g_multi

+ lsmod

+ mount

+ grep /sys/kernel/config

+ umount /sys/kernel/config

+ mount none -t configfs /sys/kernel/config

+ kbdir=/sys/kernel/config/usb_gadget/kb

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb ']'

+ mkdir /sys/kernel/config/usb_gadget/kb

+ echo 0x1337

+ echo 0x1337

+ echo 0x0100

+ echo 0x0110

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/configs/c.1 ']'

+ mkdir /sys/kernel/config/usb_gadget/kb/configs/c.1

+ echo 500

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 ']'

+ mkdir /sys/kernel/config/usb_gadget/kb/functions/hid.usb0

+ echo 1

+ echo 1

+ echo 8

+ cp report_descriptor_kb.bin 
/sys/kernel/config/usb_gadget/kb/functions/hid.usb0/report_desc

+ ln -s /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 
/sys/kernel/config/usb_gadget/kb/configs/c.1

+ '[' -d /sys/class/udc/musb-hdrc.0.auto ']'

+ '[' -d /sys/class/udc/musb-hdrc.0 ']'

+ echo musb-hdrc.0

create-hid-BB.sh: line 44: echo: write error: Device or resource busy

Same command again:

*debian@beaglebone*:*~*$ sudo bash -ex create-hid-BB.sh

+ lsmod

+ grep g_multi

+ grep /sys/kernel/config

+ mount

+ umount /sys/kernel/config

+ mount none -t configfs /sys/kernel/config

+ kbdir=/sys/kernel/config/usb_gadget/kb

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb ']'

+ echo 0x1337

+ echo 0x1337

+ echo 0x0100

+ echo 0x0110

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/configs/c.1 ']'

+ echo 500

+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 ']'

+ echo 1

create-hid-BB.sh: line 29: echo: write error: Device or resource busy






On Wednesday, November 22, 2017 at 1:34:00 PM UTC-5, RobertCNelson wrote:
>
> On Wed, Nov 22, 2017 at 12:23 PM,  > 
> wrote: 
> > I am trying to get a BBBW to register itself as a pure HID device. 
> > 
> > I'm starting with a modified version of Phil Polstra's bash script 
> presented 
> > at DEF CON (attached). His script was built originally for Ubuntu, but 
> I'm 
> > running the latest 9.1 Debian image. 
> > 
> > I have updated the original last line from echoing 'musb-hdrc.0.auto' to 
> > 'musb-hdrc.0' (for versions 4.9.x, which mine is). 
> > 
> > Here's what happens: 
> > 
> > debian@beaglebone:~$ sudo bash create-hid-BB.sh 
> > 
> > create-hid-BB.sh: line 44: echo: write error: Device or resource busy 
>
> add the -ex options to bash, so you can actually watch and therefore 
> trace what happens.. 
>
> Regards, 
>
>
> -- 
> Robert Nelson 
> https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/919340a8-e8fc-4a24-b1a6-319fb541f61a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Is it possible to make work the BBB C program code without installing any operating systems?

2017-11-22 Thread John Syne
I think you meant StarterWareFree

https://sourceforge.net/projects/starterwarefree/ 


Regards,
John




> On Nov 22, 2017, at 1:50 AM, mike.maikae...@gmail.com wrote:
> 
> Check out StarterWare from TI (there is also a FreeStarterWare project 
> available on sf.net  which contains a lot of bugfixes and 
> feature enhancements TI never managed to publish). It contains TCP/IP stack, 
> USB stack, functions to read/write FatFS on SD-card and many things more - 
> all as bare metal without the need to use an operating system and with a lot 
> of useful examples.
> 
> On Friday, November 17, 2017 at 4:12:38 AM UTC+1, AVR wrote:
> Thank you Graham, I completely forgot that I also need and exchange data on 
> TCP/IP... in that case is it possible to realize programmatically TCP/IP 
> without OS ?
> 
> четверг, 16 ноября 2017 г., 20:20:30 UTC+5 пользователь Graham написал:
> Yes, it is possible.
> Also, probably extremely painful learning experience.
> There are ARM processors that are designed to run with OS.  They start with 
> the letter A.
> The processor in the Beaglebone is an A-8.
> There are ARM processors that are designed to run without OS. They start with 
> the letter M.
> 
> I would suggest that you look at one of the faster M series, like a 200 MHz 
> M4F and see it that will do your job.
> 
> --- Graham
> 
> ==
> 
> On Wednesday, November 15, 2017 at 9:40:05 PM UTC-6, AVR wrote:
> In other words I'd like to make work the BeagleBone Black on the base C 
> program code without any operating systems. 
> My task is simple enough - frequency meter 0...100 KHz, DI/DO simple logic 
> and data exchange accross TCP/IP.
> 
> -- 
> 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+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/beagleboard/53d98194-df5e-4bb3-a8fc-5ad4d649f4be%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/79CB769B-7375-4937-9313-B987D6FD184E%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Trouble building a configfs for HID device on BBBW

2017-11-22 Thread sscirrus
The first time:

debian@beaglebone:~$ sudo bash -ex create-hid-BB.sh
[sudo] password for debian: 
+ grep g_multi
+ lsmod
+ mount
+ grep /sys/kernel/config
+ umount /sys/kernel/config
+ mount none -t configfs /sys/kernel/config
+ kbdir=/sys/kernel/config/usb_gadget/kb
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb ']'
+ mkdir /sys/kernel/config/usb_gadget/kb
+ echo 0x1337
+ echo 0x1337
+ echo 0x0100
+ echo 0x0110
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/configs/c.1 ']'
+ mkdir /sys/kernel/config/usb_gadget/kb/configs/c.1
+ echo 500
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 ']'
+ mkdir /sys/kernel/config/usb_gadget/kb/functions/hid.usb0
+ echo 1
+ echo 1
+ echo 8
+ cp report_descriptor_kb.bin /sys/kernel/config/usb_gadget/kb/functions/hid
.usb0/report_desc
+ ln -s /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 /sys/kernel/
config/usb_gadget/kb/configs/c.1
+ '[' -d /sys/class/udc/musb-hdrc.0.auto ']'
+ '[' -d /sys/class/udc/musb-hdrc.0 ']'
+ echo musb-hdrc.0
create-hid-BB.sh: line 44: echo: write error: Device or resource busy


Same command again:
debian@beaglebone:~$ sudo bash -ex create-hid-BB.sh
+ lsmod
+ grep g_multi
+ grep /sys/kernel/config
+ mount
+ umount /sys/kernel/config
+ mount none -t configfs /sys/kernel/config
+ kbdir=/sys/kernel/config/usb_gadget/kb
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb ']'
+ echo 0x1337
+ echo 0x1337
+ echo 0x0100
+ echo 0x0110
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/configs/c.1 ']'
+ echo 500
+ '[' '!' -d /sys/kernel/config/usb_gadget/kb/functions/hid.usb0 ']'
+ echo 1
create-hid-BB.sh: line 29: echo: write error: Device or resource busy




On Wednesday, November 22, 2017 at 1:34:00 PM UTC-5, RobertCNelson wrote:
>
> On Wed, Nov 22, 2017 at 12:23 PM,  > 
> wrote: 
> > I am trying to get a BBBW to register itself as a pure HID device. 
> > 
> > I'm starting with a modified version of Phil Polstra's bash script 
> presented 
> > at DEF CON (attached). His script was built originally for Ubuntu, but 
> I'm 
> > running the latest 9.1 Debian image. 
> > 
> > I have updated the original last line from echoing 'musb-hdrc.0.auto' to 
> > 'musb-hdrc.0' (for versions 4.9.x, which mine is). 
> > 
> > Here's what happens: 
> > 
> > debian@beaglebone:~$ sudo bash create-hid-BB.sh 
> > 
> > create-hid-BB.sh: line 44: echo: write error: Device or resource busy 
>
> add the -ex options to bash, so you can actually watch and therefore 
> trace what happens.. 
>
> Regards, 
>
>
> -- 
> Robert Nelson 
> https://rcn-ee.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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/6be6e25f-e072-4712-a669-c28d32217fc9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: connmanctl

2017-11-22 Thread Mala Dies
Hello,

I get the connmanctl cmd on the terminal working w/ the BBBW w/out using 
those listed files. I only have to use services and then agent on. I type 
my password and it works.

Seth

P.S. I am not sure about the other fellow, though. I have not heard from 
him.

On Friday, September 15, 2017 at 9:39:22 PM UTC-5, Jason Kridner wrote:
>
> I think there are some other reports of issues with wifi networking on 
> Stretch. It seems a kernel upgrade is required to fix it.
>
> If you only have USB networking, you can use Cloud9 to upload the 
> following files:
>
> https://rcn-ee.com/repos/debian/pool/main/l/linux-upstream/linux-image-4.4.88-ti-r122_1stretch_armhf.deb
>  
>
> https://rcn-ee.com/repos/debian/pool/main/l/linux-upstream/linux-firmware-image-4.4.88-ti-r122_1stretch_armhf.deb
>  
>
> And do 'sudo dpkg -i X' on each of them to install.
>
> I was able to do this, reboot, and then connmanctl started working for me 
> again.
>
> I'll try to swap out the Stretch latest-images soon.
>
> Let me know if updating the kernel doesn't solve the issue.
>
> On Sat, Jul 8, 2017 at 9:08 PM Mala Dies > 
> wrote:
>
>> Hello Again,
>>
>> Did you try sudo instead of just connmanctl? If so, I am at a standstill. 
>> I have to use sudo connmanctl to run my set-up for the WiFi. 
>>
>> Seth
>>
>> P.S. If you try a newer version of the listed images, I am sure it will 
>> work. You can *skip* the wifi enable and wifi scan if you use the newer 
>> images. You can start with services and agent on. 
>>
>>
>> On Saturday, July 8, 2017 at 3:23:11 PM UTC-5, Gokhan Aykan wrote:
>>
>>> As U stated in my case, it cannot see any wifi device.
>>>
>>> So when i type wifi enable I get :
>>>
>>> Method "SetProperty" with signature "sv" on interface 
>>> "net.connman.Technology" doesn't exist
>>>
>>> I know the commands. But it cannot detect wifi.
>>>
>>> So have a problem in linux.
>>> Regards
>>>
>>> On Sat, 8 Jul 2017 05:14 Mala Dies,  wrote:
>>>
 Hey Again,

 I am using an image from 
 http://elinux.org/Beagleboard:BeagleBoneBlack_Debian. The flasher 
 image called Stretch is what I used. I did not need to type, and this is 
 after *sudo connmanctl* is entered in the prompt, *wifi enable* or *wifi 
 scan*.

 Seth

 P.S. Get back to me. I may be able to help you.


 On Thursday, July 6, 2017 at 10:40:30 AM UTC-5, gokha...@gmail.com 
 wrote:
>
> Hi,
>
> I cannot enable wifi using *connmanctl.*
>
> *connmanctl** can ot recognize wlan, *only shows ethernet when 
> technologies is asked.
> May I ask you which image are you using ?
>
> Gokhan 
>
>
> On Saturday, April 8, 2017 at 7:02:44 AM UTC+3, Mala Dies wrote:
>>
>> Hey Yo,
>>
>> *connmanctl *is used as the initial command from 
>> https://01.org/connman/documentation.
>>
>> Then, you have to type in, while under the command connmanctl, *wifi 
>> enable*. While still under the connmanctl command, type in *wifi 
>> scan* and then type *services*. It will show your *wifi_blah, blah, 
>> blah, blah, blah_blah, blah, blah_managed_psk *Wifi address to type 
>> in once you type *agent on* and then *connect*. So you would type 
>> this under connmanctl:
>>
>> wifi enable
>>
>> wifi scan
>>
>> services
>>
>> agent on
>>
>> connect wifi___managed_psk
>>
>> then...
>>
>> You will be asked for a password. Enter the password you have for 
>> your router.
>>
>> Done! I was taught this earlier today.
>>
>> Seth
>>
>> P.S. Enjoy!
>>
>> On Friday, April 7, 2017 at 8:18:00 PM UTC-5, Mala Dies wrote:
>>>
>>> Hello,
>>>
>>> I am using connmanctl to "try" to get into a valid configuration for 
>>> WiFi for a BBBW. I am not successful yet. Does anyone have any pointers?
>>>
>>> Seth
>>>
>> -- 
>> 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/7f36bafa-b8f0-49ca-8913-3a75992fdfb6%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> https://beagleboard.org/about
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.goo

Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread William
I have only a 5V TTL serial cable, used only for receiving debug messages 
on PC (I don't want to burn something connecting the TX and V since voltage 
is different).
For a normal SSH connection I use the mini USB cable and here is the 
problem. 
Since now I used with no problem BBB rev C and BBB industrial. 
Also this BBBW worked properly when recognized as BBB. (with  disabled from 
/boot/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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/aa6abda1-2702-463f-ab37-baea6fe832b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Unable to get WiFi working on BBBW using the latest Debian image

2017-11-22 Thread William
I have only a 5V TTL serial cable, used only for receiving debug messages 
on PC (I don't want to burn something connecting the TX and V since voltage 
is different).
For a normal SSH connection I use the mini USB cable and here is the 
problem. 
Since now I used with no problem BBB rev C and BBB industrial. 
Also this BBBW worked properly when recognized as BBB. (with 
#enable_uboot_overlays=1 disabled from /boot/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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/0a284ef2-1bcd-4ec6-a6a4-ca6d5f06dcfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.