On Tue, May 16, 2017 at 9:41 PM, <[email protected]> wrote: > On Tuesday, May 16, 2017 at 7:11:33 PM UTC-7, RobertCNelson wrote: >> >> On Tue, May 16, 2017 at 7:36 PM, Greg Ercolano <[email protected]> wrote: >> > root@beaglebone:~/dtb-rebuilder# make >> > DTC src/arm/am437x-gp-evm.dtb >> > FATAL ERROR: Unrecognized check name "unit_address_vs_reg" >> > <-- >> > Makefile:136: recipe for target 'src/arm/am437x-gp-evm.dtb' failed >> > <-- >> > make[1]: *** [src/arm/am437x-gp-evm.dtb] Error 1 >> > Makefile:84: recipe for target 'all_arm' failed >> > make: *** [all_arm] Error 2 >> > >> > Does anyone know the solution for that? >> >> sudo apt update >> sudo apt install device-tree-compiler --reinstall >> >> Which will install "mainline" dtc 1.4.4, no more of our dtc 1.4.1 + >> patches.. It's all mainline dtc now!! ;) >> > > Thanks Robert, so I take it you might be saying that this command: > > apt install device-tree-compiler --reinstall > > ..could maybe replace all the following code in the OP's "prep_pru.sh" > script: > > ______________________________________________________________________________ > > #as per rnelson rebuild the dtbs with pru support as out ofthe box it is now > longer supported, > # the user needs to choose either uio_pruss or remote proc to enable > otherwise it is not enabled. Strange that no pru support is enabled by > default. > > #Essentially you need to edit one of the dts for the base dtb. Hear we edit > the basic default dtb. > cd ~/ && git clone https://github.com/RobertCNelson/dtb-rebuilder > export DTB=~/dtb-rebuilder/src/arm > sed -i -e 's/\/\* #include \"am33xx-pruss-uio.dtsi\" \*\//#include > \"am33xx-pruss-uio.dtsi\"/' $DTB/am335x-boneblack.dts > #sed -i -e 's/#dtb=/dtb=am335x-boneblack-emmc-overlay.dtb/' /boot/uEnv.txt > cd /root/dtb-rebuilder/ && make > cd /root/dtb-rebuilder/ && make KERNEL_VERSION=4.4.27-ti-r62 install > ______________________________________________________________________________ > > His script already runs apt update right at the top, and it is assumed to > already be run as root, so the sudo shouldn't be needed) > > I've been a C and assembly programmer since the 80's, but all of this with > dtc is still pure greek to me. > I'm assuming the original intent was to install the latest git version of > the dtc compiler, though I'm not sure what implications the sed command has, > so I'd defer to you or the OP's opinions. > > Arguably, the best thing would be to offer up a disk image instead of an > image with patches applied from live repos. > I'm actually hoping to create such an image once I confirm a blinking light > on the board.
Actually this is now fixed with U-Boot overlays. (I just added the pru options a week or two back) http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays and i've now just pushed the pru options: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_PRU_Options No rebuilding, just /boot/uEnv.txt editing.. >From /boot/uEnv.txt ###PRUSS OPTIONS ###pru_rproc (4.4.x-ti kernel) uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo ###pru_uio (mainline kernel) #uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo pru_rproc is enabled by default, just comment the first and un-comment the second and reboot.. 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYg37SBpc%2B5UU75EBfNHuABizp9rd1NrVdwP278dopEhfA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
