How to build beagleboard images at beagleboard.org

37 views
Skip to first unread message

Eric McKenzie

unread,
Sep 25, 2017, 3:45:55 PM9/25/17
to BeagleBoard
Hi,

Sorry if this question has an obvious answer, but I can't seem to figure it out.

I'd like to build the images at: http://beagleboard.org/latest-images myself.  I can download the latest debian kernel and build it with the beaglebone configuration, but I'd like to build something closer to the  "Stretch IoT (non-GUI)" beaglebone image myself so I can add a kernel module into it.  (specifically I'd like to load gadgetfs so that I can have my beaglebone act as a usb device)

Are the configuration files for the beaglebone.org images available publicly?

Thank you for any help.

- Eric


Robert Nelson

unread,
Sep 25, 2017, 3:51:45 PM9/25/17
to Beagle Board, ericmc...@gmail.com
https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L487-L548

You'll find this under /opt/scripts/boot/

Regards,


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

Eric McKenzie

unread,
Sep 25, 2017, 4:23:22 PM9/25/17
to BeagleBoard
Hi Robert,

Thank you for your very specific location of the USB gadget FS switch of your build script and also of course for your huge amount of work toward the beaglebone project in general.  

Can you point me to a document that tells me where to run your scripts from?   I get errors but I think it's because I haven't put your files in the right place.

Again, thank you for any help.

- Eric
 



Robert Nelson

unread,
Sep 25, 2017, 4:31:54 PM9/25/17
to Beagle Board
On Mon, Sep 25, 2017 at 3:23 PM, Eric McKenzie <ericmc...@gmail.com> wrote:
> Hi Robert,
>
> Thank you for your very specific location of the USB gadget FS switch of
> your build script and also of course for your huge amount of work toward the
> beaglebone project in general.
>
> Can you point me to a document that tells me where to run your scripts from?
> I get errors but I think it's because I haven't put your files in the right
> place.

Well, that script is run by root on startup by
"generic-board-startup.service"...

Eric McKenzie

unread,
Apr 27, 2018, 4:03:17 PM4/27/18
to Robert Nelson, Beagle Board
Hi Robert,

Thank you for your previous help with the usb gadgetfs module.  I have the BB connected over USB to a driver on the PC.  

Do you know how to change the VID/PID of the USB?

I am using your script:
/opt/scripts/boot/am335x_evm.sh

This line enables the g_multi:
modprobe g_multi file=${boot_drive} cdrom=0 ro=0 stall=0 removable=0 nofua=1 ${g_ne$...

I'd like to modify the VID and PID.  Right now it comes up as VID = 0x1d6b and PID = 0x0104.  

Do you know where these come from? 

Thanks for your help.

- Eric


Robert Nelson

unread,
Apr 27, 2018, 4:13:56 PM4/27/18
to Eric McKenzie, Beagle Board
On Fri, Apr 27, 2018 at 3:03 PM, Eric McKenzie <ericmc...@gmail.com> wrote:
> Hi Robert,
>
> Thank you for your previous help with the usb gadgetfs module. I have the
> BB connected over USB to a driver on the PC.
>
> Do you know how to change the VID/PID of the USB?
>
> I am using your script:
> /opt/scripts/boot/am335x_evm.sh
>
> This line enables the g_multi:
> modprobe g_multi file=${boot_drive} cdrom=0 ro=0 stall=0 removable=0 nofua=1
> ${g_ne$...
>
> I'd like to modify the VID and PID. Right now it comes up as VID = 0x1d6b
> and PID = 0x0104.
>
> Do you know where these come from?

Sorry, i don't use g_multi anymore, instead we use libcomposite.

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L493-L496
Reply all
Reply to author
Forward
0 new messages