Re: [beagleboard] Re: Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
Robert, is it ok to use this image in production or should I use the 
current stretch IOT image and flash the eMMC to overwrite this old 
bootloader?

On Saturday, 25 May 2019 20:55:58 UTC+1, RobertCNelson wrote:
>
> > This is what I think is relevant from my uBoot console: 
> > 
> > U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26) 
> > Trying to boot from MMC2 
> > U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: 
> jenkins- 
> > github_Bootloader-Builder-532 
>
> There you go!! Would you please give me a dd copy of the first 100Mb 
> of the eMMC partition.. Such that i can use it to update the 
> version.sh script, to detect this bad version... 
>
> 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/1790a173-01bf-4ac7-871b-da6ffd19c3e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
You should run the flasher with a serial console connected to the debug 
header, that way you can monitor exactly what is going on. My attempts at 
flashing the latest image Robert posted was successful.

On Friday, 24 May 2019 21:28:29 UTC+1, jonre...@gmail.com wrote:
>
> I had the same issue on my BBBW:
>
> > ls /sys/class/remoteproc/
> remoteproc0
>
> I flashed the new image to an SD, then booted from SD. From there I 
> checked:
>
> > ls /sys/class/remoteproc/
> remoteproc0  remoteproc1  remoteproc2
>
> Next I removed the line from /boot/uEnv.txt so that the new image would 
> flash to BBBW and rebooted. As expected the lights cycle while flashing. 
> However, when I rebooted without SD card BBBW is bricked with all LEDs on.
>
> Any idea what's going on?
>
>
> On Thursday, May 23, 2019 at 9:56:39 AM UTC-7, RobertCNelson wrote:
>>
>> On Thu, May 23, 2019 at 3:39 AM Hugh Frater  wrote: 
>> > 
>> > OK, back in the office 
>> > 
>> > I've tried updating the bootloader, that didn't make a difference. Here 
>> is the output from version.sh 
>> > 
>> > debian@beaglebone:~$ sudo /opt/scripts/tools/version.sh 
>> > [sudo] password for debian: 
>> > git:/opt/scripts/:[c2a5ae96746d10d711c60bc84ba244f4cd7b75c3] 
>> > eeprom:[A335BNLT00C03816BBBK190D] 
>> > model:[TI_AM335x_BeagleBone_Black] 
>> > dogtag:[BeagleBoard.org Debian Image 2018-10-07] 
>> > bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 
>> 2019.04-2-g9ca2c5819f]:[location: dd MBR] 
>> > kernel:[4.14.108-ti-r104] 
>> > nodejs:[v6.14.4] 
>> > uboot_overlay_options:[enable_uboot_overlays=1] 
>> > uboot_overlay_options:[disable_uboot_overlay_emmc=1] 
>> > uboot_overlay_options:[disable_uboot_overlay_video=1] 
>> > uboot_overlay_options:[disable_uboot_overlay_audio=1] 
>> > uboot_overlay_options:[disable_uboot_overlay_wireless=1] 
>> > uboot_overlay_options:[disable_uboot_overlay_adc=1] 
>> > 
>> uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]
>>  
>>
>> > uboot_overlay_options:[enable_uboot_cape_universal=1] 
>> > pkg check: to individually upgrade run: [sudo apt install 
>> --only-upgrade ] 
>> > pkg:[bb-cape-overlays]:[4.4.20190429.0-0rcnee0~stretch+20190429] 
>> > pkg:[bb-wl18xx-firmware]:[1.20180517-0rcnee0~stretch+20180517] 
>> > pkg:[kmod]:[23-2rcnee1~stretch+20171005] 
>> > pkg:[librobotcontrol]:[1.0.3-git20181005.0-0rcnee0~stretch+20181005] 
>> > pkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328] 
>> > groups:[debian : debian adm kmem dialout cdrom floppy audio dip video 
>> plugdev users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep 
>> admin spi tisdk we 
>> > ston-launch xenomai] 
>> > cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 
>> root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M 
>> net.ifnames=0 quiet] 
>> > dmesg | grep remote 
>> > [1.302439] remoteproc remoteproc0: wkup_m3 is available 
>> > [1.390494] remoteproc remoteproc0: powering up wkup_m3 
>> > [1.390611] remoteproc remoteproc0: Booting fw image 
>> am335x-pm-firmware.elf, size 217168 
>> > [1.393154] remoteproc remoteproc0: remote processor wkup_m3 is now 
>> up 
>> > dmesg | grep pru 
>> > dmesg | grep pinctrl-single 
>> > [0.971836] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 
>> size 568 
>> > dmesg | grep gpio-of-helper 
>> > [0.983805] gpio-of-helper ocp:cape-universal: ready 
>> > lsusb 
>> > Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub 
>> > END 
>> > 
>> > I'm booting from a micro-sd card and the device is an element 
>> 14/farnell BBB 
>>
>> With a spare microSD, can you test this image: 
>>
>>
>> https://rcn-ee.net/rootfs/bb.org/testing/2019-05-12/stretch-iot/bone-debian-9.9-iot-armhf-2019-05-12-4gb.img.xz
>>  
>>
>> 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/db5d9c50-2e50-476b-93c7-d0f6f06867a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
Damn... accidentally overwritten uBoot on the eMMC... I thought the flasher 
wouldn't touch that. Apologies Robert.

However, it was obviously a uBoot on eMMC problem as with a freshly flashed 
eMMC the overlay loads properly. I'll try booting from SD card now and see 
if that works too,. In our application we use a bunch of the eMMC pins for 
other hardware so we're forced to use an SD card.

On Saturday, 25 May 2019 21:39:23 UTC+1, Hugh Frater wrote:
>
> I will get that sorted and put it on my dropbox. I've got to flash eMMC 
> with the sd card contents then reboot with another sd card in the USB-A 
> port - I'm working from home and don't have any cables other than a 232r on 
> the debug header and a 5v power brick.
>
> Give me half an hour...
>
> On Saturday, 25 May 2019 20:55:58 UTC+1, RobertCNelson wrote:
>>
>> > This is what I think is relevant from my uBoot console: 
>> > 
>> > U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26) 
>> > Trying to boot from MMC2 
>> > U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: 
>> jenkins- 
>> > github_Bootloader-Builder-532 
>>
>> There you go!! Would you please give me a dd copy of the first 100Mb 
>> of the eMMC partition.. Such that i can use it to update the 
>> version.sh script, to detect this bad version... 
>>
>> 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/0a8d4ce6-c7e6-4375-8e14-6eb0adff1658%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
I will get that sorted and put it on my dropbox. I've got to flash eMMC 
with the sd card contents then reboot with another sd card in the USB-A 
port - I'm working from home and don't have any cables other than a 232r on 
the debug header and a 5v power brick.

Give me half an hour...

On Saturday, 25 May 2019 20:55:58 UTC+1, RobertCNelson wrote:
>
> > This is what I think is relevant from my uBoot console: 
> > 
> > U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26) 
> > Trying to boot from MMC2 
> > U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: 
> jenkins- 
> > github_Bootloader-Builder-532 
>
> There you go!! Would you please give me a dd copy of the first 100Mb 
> of the eMMC partition.. Such that i can use it to update the 
> version.sh script, to detect this bad version... 
>
> 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/57799b04-591c-41b9-ae46-4950798af29e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Robert Nelson
> This is what I think is relevant from my uBoot console:
>
> U-Boot SPL 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26)
> Trying to boot from MMC2
> U-Boot 2017.03-2-gd12b1519b4 (Mar 14 2017 - 10:28:26 -0500), Build: 
> jenkins-
> github_Bootloader-Builder-532

There you go!! Would you please give me a dd copy of the first 100Mb
of the eMMC partition.. Such that i can use it to update the
version.sh script, to detect this bad version...

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/CAOCHtYiXdZGwDdrdpHQn%2ByAeyymx5C%3DOkgRhL9sdo0yYY2-3%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
Flashing your test image to a fresh SD card leaves me with the same 
behaviour as before Robert. My uEnv.txt follows:

debian@beaglebone:~$ cat /boot/uEnv.txt
 
#Docs: http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0
 


uname_r=4.14.108-ti-r104

#uuid=  

#dtb=  
 


###U-Boot Overlays###  
 
###Documentation: 
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Ov
erlays  

###Master Enable

enable_uboot_overlays=1
 
###
 
###Overide capes with eeprom

#uboot_overlay_addr0=/lib/firmware/.dtbo
 
#uboot_overlay_addr1=/lib/firmware/.dtbo
 
#uboot_overlay_addr2=/lib/firmware/.dtbo
 
#uboot_overlay_addr3=/lib/firmware/.dtbo
 
###
 
###Additional custom capes  

#uboot_overlay_addr4=/lib/firmware/.dtbo
 
#uboot_overlay_addr5=/lib/firmware/.dtbo
 
#uboot_overlay_addr6=/lib/firmware/.dtbo
 
#uboot_overlay_addr7=/lib/firmware/.dtbo
 
###
 
###Custom Cape  

#dtb_overlay=/lib/firmware/.dtbo
 
###
 
###Disable auto loading of virtual capes (emmc/video/wireless/adc)  

disable_uboot_overlay_emmc=1

disable_uboot_overlay_video=1  
 
disable_uboot_overlay_audio=1  
 
disable_uboot_overlay_wireless=1

disable_uboot_overlay_adc=1
 
###
 
###PRUSS OPTIONS

###pru_rproc (4.4.x-ti kernel)  

#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo  

###pru_rproc (4.14.x-ti kernel)
 
uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo  

###pru_rproc (4.19.x-ti kernel)
 
#uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo
 
###pru_uio (4.4.x-ti, 4.14.x-ti, 4.19.x-ti & mainline/bone kernel)  

#uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo  
 
###
 
###Cape Universal Enable

enable_uboot_cape_universal=1  
 
###
 
###Debug: disable uboot autoload of Cape

#disable_uboot_overlay_addr0=1  

#disable_uboot_overlay_addr1=1  

#disable_uboot_overlay_addr2=1  

#disable_uboot_overlay_addr3=1  

###
 
###U-Boot fdt tweaks... (6 = 384KB)
 
#uboot_fdt_buffer=0x6  
 
###U-Boot Overlays###  
 


cmdline=coherent_pool=1M net.ifnames=0 quiet cape_universal=enable  



#In the event of edid 

Re: [beagleboard] Trouble enabling pru-rproc uBoot overlay

2019-05-25 Thread Hugh Frater
I'm not sure, sounds like the flashing of eMMC wasn't successful. I have a new 
SD card writer so I will try this image this evening and report my findings...

-- 
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/e4262a61-7ca3-49c0-ae2d-976df94d2313%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.