Take a look if you are using the last 3.8 kernel from
https://github.com/beagleboard/kernel.
There is a patch after March, 6th (commit 9bf23ea262), that removes the
symbol spi1_pins_s0 from am335x-bone-common.dtsi that is required to run
the command "echo BB-BONE-MRF24J40 >/sys/devices/bone_capemgr.7/"
The patch name is:
0115-am335x-bone-common-Remove-SPI-unused-pinmux-config.patch
I am not sure about that, I am gonna test tomorrow (see my another thread
"Load mrf24j40 on bleagone").
Best regards,
Joao Paulo
2013/3/25 Alan Ott <a...@signal11.us>
> On 03/25/2013 03:12 PM, K F wrote:
>
> I also had another issue when patching the kernel.
>
> I already had a recent kernel for the Bbone (3.8.4-bone9), which I got
> following this procedure (which includes very helpful scripts):
>
> http://www.eewiki.net/display/linuxonarm/BeagleBone?focusedCommentId=13140246#BeagleBone-LinuxKernel
>
> Since the kernel is recent, I went on to apply the few remaining patches,
> as described by Alan here:
> http://permalink.gmane.org/gmane.linux.network.zigbee.devel/1493
>
> I applied patches 0001-0005 (from patches-joao.tar.gz) but forgot to apply
> the bone-dt-cape-override.diff patch. When applying patch 0001, I got the
> following reject:
>
>
> So you're patching against a different kernel than the one specified, and
> you get rejects? I'm shocked :)
>
> So resolve them.
>
>
>
> --- firmware/Makefile
> +++ firmware/Makefile
> @@ -145,6 +145,7 @@
> cape-bone-lcd3-00A0.dtbo \
> cape-bone-lcd3-00A2.dtbo \
> BB-BONE-LCD7-01-00A2.dtbo \
> + cape-bone-mrf24j40-00A0.dtbo \
>
> # the geiger cape
> fw-shipped-$(CONFIG_CAPE_BEAGLEBONE_GEIGER) += \
>
> The other patches for the driver (0002 to 0005) were applied with no
> errors.
> Pretending to ignore that Makefile patch error, I recompiled the kernel
> and all seemed to work out OK.
>
> Then it hit my that I had forgotten about the bone-dt-cape-override.diff
> patch!
> Trying to apply that, I got the following reject:
>
> --- arch/arm/boot/dts/am335x-bone-common.dtsi
> +++ arch/arm/boot/dts/am335x-bone-common.dtsi
> @@ -176,6 +176,16 @@
> part-number = "BB-BONE-NIXIE";
> };
>
> + /* MRF24J40 Cape Override */
> + slot@8 {
> + ti,cape-override;
> + compatible = "kernel-command-line", "runtime";
> + board-name = "Bone-MRF24J40";
> + version = "00A0";
> + manufacturer = "Signal 11 Software";
> + part-number = "BB-BONE-MRF24J40";
> + };
> +
> };
>
> /* mapping between board names and dtb objects */
>
> ...which I'm afraid cannot be ignored, since when I try to rebuild the
> kernel, I now get the following:
>
> make -j2 ARCH=arm LOCALVERSION=-bone9
> CROSS_COMPILE="arm-linux-gnueabihf-" dtbs
> DTC arch/arm/boot/dts/am335x-bone.dtb
> DTC arch/arm/boot/dts/am335x-boneblack.dtb
> ERROR (duplicate_node_names): Duplicate node name
> /bone_capemgr/capemaps/cape@7
> ERROR: Input tree has errors, aborting (use -f to force output)
> make[1]: *** [arch/arm/boot/dts/am335x-bone.dtb] Error 2
> make[1]: *** Waiting for unfinished jobs....
> ERROR (duplicate_node_names): Duplicate node name
> /bone_capemgr/capemaps/cape@7
> ERROR: Input tree has errors, aborting (use -f to force output)
> make[1]: *** [arch/arm/boot/dts/am335x-boneblack.dtb] Error 2
> make: *** [dtbs] Error 2
> Any ideas? :)
>
> Kostas
>
> Alan Ott <alan@...> <alan@...> writes:
>
> >
> > On 03/18/2013 04:45 AM, João Paulo Bodanese wrote:
> > > I am trying to set up the demo that Alan presented at Linux Conference
> > > Europe 2012.
> > > I have already installed the 3.7-rc2 Linux kernel in the BeagleBone
> > > with all the patches that its described in his website.
> >
> > Hi João,
> >
> > At this point you're best off doing something slightly different than
> > that, which I'll describe.
> >
> > Grab the BeagleBone 3.8 kernel, which already has Tony's patches in it:
> > https://github.com/beagleboard/kernel/tree/3.8
> >
> > Apply these patches to it:
> > http://www.signal11.us/~alan/patches/patches-joao.tar.gz
> > (btw, those were sent to next-next just a minute ago)
> >
> > Also apply this one:
> > http://www.signal11.us/~alan/patches/bone-dt-cape-override.diff
> >
> > Install the linux-zigbee userspace tools from source:
> > 1. extract libnl (I'm using 3.2.7) and linux-zigbee userspace tools (use
> > the ones from git) side-by-side.
> >
> > 2. Build libnl with:
> > ./configure --prefix=$PWD/../out --host=arm-linux
> > make
> >
> > 3. Build linux-zigbee userspace tools with:
> > LDFLAGS=-L$PWD/../out/lib ./configure \
> > --prefix=$PWD/../out --host=arm-linux
> > make
> >
> > 4. Output files will be in out/ . Copy these to your BeagleBone.
> >
> > Connect your mrf24j40ma to SPI1 (CS0), and connect the INT pin to
> > GPIO1_29 (see my DT file, patch 0001).
> >
> > Once the Bone is running, load the DT for the MRF24J40:
> > echo BB-BONE-MRF24J40 >/sys/devices/bone_capemgr.7/slots
> >
> > Then run this setup script:
> > http://www.signal11.us/~alan/patches/setup
> >
> > I'll get this stuff up on the website soon, as it's a popular question.
> > Or if you have time (all you need is a souceforge account)....
> >
> > > My question is how to install the linux-zigbee userspace tools in the
> > > BeagleBone node? Is there a recipe to install it in the Angstron?
> >
> > Not that I know of. Feel free to find out for sure and let us know.
> >
> > Alan.
> >
> >
> ------------------------------------------------------------------------------
> > Everyone hates slow websites. So do we.
> > Make your web apps faster with AppDynamics
> > Download AppDynamics Lite for free today:
> > http://p.sf.net/sfu/appdyn_d2d_mar
> >
>
>
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_mar
> _______________________________________________
> Linux-zigbee-devel mailing list
> Linux-zigbee-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel
>
>
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Linux-zigbee-devel mailing list
Linux-zigbee-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-zigbee-devel