[<<][am335x][>>][..]
Thu May 3 14:23:53 EDT 2018

Let's just try this -- I'm thoroughly confused

Version is arbitrary current version.

tom@buildroot:~/gw_buildroot/defconfig$ git diff bbb
diff --git a/defconfig/bbb b/defconfig/bbb
index 4f0c200..7816ca0 100644
--- a/defconfig/bbb
+++ b/defconfig/bbb
@@ -1,7 +1,7 @@
 BR2_arm=y
 BR2_cortex_a8=y
 BR2_GLOBAL_PATCH_DIR="board/beaglebone/patches"
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyO0"
 BR2_ROOTFS_POST_BUILD_SCRIPT="$(BASE_DIR)/../../bin/post_build.sh"
@@ -9,11 +9,11 @@ BR2_ROOTFS_POST_FAKEROOT_SCRIPT="$(BASE_DIR)/../../bin/post_fakeroot.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="board/beaglebone/post-image.sh"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.ti.com/processor-sdk/processor-sdk-linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="a75d8e93056181d512f6c818e8627bd4554aaf92"
-BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/beagleboard/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="51dd09146da1e25a03f79bfac49cbf8f08812a0c"
+BR2_LINUX_KERNEL_DEFCONFIG="bb.org"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-evm am335x-bone am335x-boneblack am335x-bonegreen am335x-evmsk"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-boneblack"
 BR2_PACKAGE_E2FSPROGS=y
 BR2_PACKAGE_ERLANG=y
 BR2_PACKAGE_SQLITE=y


Once that boots, prune it.

It's probably easier to prune it once everything is running and the
list of modules is known exactly.

# find -name '*.ko' |grep pru
./modules/4.4.113/kernel/drivers/rpmsg/rpmsg_pru.ko
./modules/4.4.113/kernel/drivers/net/ethernet/ti/prueth.ko
./modules/4.4.113/kernel/drivers/uio/uio_pruss.ko
./modules/4.4.113/kernel/drivers/remoteproc/am437x_pruss_wrapper.ko
./modules/4.4.113/kernel/drivers/remoteproc/pruss_intc.ko
./modules/4.4.113/kernel/drivers/remoteproc/pruss.ko
./modules/4.4.113/kernel/drivers/remoteproc/pru_rproc.ko

Buildroot has trouble with that kernel:
can't open /dev/ttyO0: No such file or directory

# ln -s ttyS0 ttyO0

This is likely a bootloader option. For now it is ok to leave it,
since network login is possible.


Next:
load the pru firmware.

What's the difference between what remoteproc expects:
am335x-pru0-fw, am335x-pru1-fw

And:
tom@buildroot:~/BeagleLogic$ find -name '*.out'
./firmware/release/beaglelogic-pru0.out
./firmware/release/beaglelogic-pru1.out

Just copied them over.

[ 1342.264407]  remoteproc1: 4a334000.pru0 is available
[ 1342.269578]  remoteproc1: Note: remoteproc is still under development and considered experimental.
[ 1342.278634]  remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 1342.290571] pru-rproc 4a334000.pru0: booting the PRU core manually
[ 1342.297023]  remoteproc1: powering up 4a334000.pru0
[ 1342.302734]  remoteproc1: Booting fw image am335x-pru0-fw, size 56216
[ 1342.309586] ti-pruss 4a300000.pruss: configured system_events = 0x0000000001d30000 intr_channels = 0x00000037 host_intr = 0x00000037
[ 1342.321630]  remoteproc1: remote processor 4a334000.pru0 is now up
[ 1342.327894] pru-rproc 4a334000.pru0: PRU rproc node /ocp/pruss@4a300000/pru0@4a334000 probed successfully

[ 1342.338566]  remoteproc2: 4a338000.pru1 is available
[ 1342.343658]  remoteproc2: Note: remoteproc is still under development and considered experimental.
[ 1342.352699]  remoteproc2: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
[ 1342.364161] pru-rproc 4a338000.pru1: booting the PRU core manually
[ 1342.370584]  remoteproc2: powering up 4a338000.pru1
[ 1342.376136]  remoteproc2: Booting fw image am335x-pru1-fw, size 31296
[ 1342.382770]  remoteproc2: remote processor 4a338000.pru1 is now up
[ 1342.389052] pru-rproc 4a338000.pru1: PRU rproc node /ocp/pruss@4a300000/pru1@4a338000 probed successfully

Well at least there are no errors, and it seems to notice that there are interrupts PRU0->ARM.



[Reply][About]
[<<][am335x][>>][..]