RCNelson, Thanks for you help so far.

When trying to compile the 4.1 kernel i'm running into an ftrace error:
...
arch/arm/kernel/ftrace.c: In function 
‘ftrace_arch_code_modify_post_process’:
arch/arm/kernel/ftrace.c:93:2: error: implicit declaration of function 
‘flush_tlb_all’ [-Werror=implicit-function-declaration]
  flush_tlb_all();
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target 'arch/arm/kernel/ftrace.o' 
failed
make[1]: *** [arch/arm/kernel/ftrace.o] Error 1
Makefile:946: recipe for target 'arch/arm/kernel' failed
make: *** [arch/arm/kernel] Error 2


Is there any kernel patch i can install to fix this error?

Also I decided to use the mmc2 lines for the sd card instead of using the 
spi bus.  I believe that the pin configuration is correct but the 
beaglebone is still not detecting the sd card.

In the *am335x-bone-common.dtsi* file:

mmc2_pins: pinmux_mmc2_pins {
                pinctrl-single,pins = <
                        0x078 (PIN_OUTPUT_PULLUP | MUX_MODE3)           /* 
mmc2_dat3---CS, p9_12*/
                        0x044 (PIN_INPUT_PULLUP | MUX_MODE3)            /* 
mmc2_dat0---DO---MISO, p9_23 */
                        0x088 (PIN_OUTPUT_PULLUP | MUX_MODE3)           /* 
mmc2_cmd---T13---MOSI */
                        0x08c (PIN_OUTPUT_PULLUP | MUX_MODE3)           /* 
mmc2_clk, p8_18 */
                        0x040 (PIN_OUTPUT_PULLUP | MUX_MODE7)           /* 
R13 which is tied to T13, p9_15*/
                        0x074 (PIN_INPUT_PULLUP | MUX_MODE4)            /* 
mmc2_sdcd, p9_13 */
                        0x048 (PIN_INPUT_PULLUP | MUX_MODE3)            /* 
mmc2_dat1, p9_14 */
                        0x04c (PIN_INPUT_PULLUP | MUX_MODE3)            /* 
mmc2_dat2, p9_16 */

                >;


        };


&mmc2 {
        status = "okay";
        bus-width = <0x4>;
        pinctrl-names = "default";
        pinctrl-0 = <&mmc2_pins>;
};


I figured out that mmc2_cmd pin is the T13 ZCZ Ball: 
http://www.ti.com/product/AM3358/datasheet/terminal_configuration_and_functions#bc_15x15_T13

and that the T13 line is tied to the R13 line, so i configured R13 to GPIO 
output pullup and T13 as mode 3 output pullup. 

Is there anything else in the device tree that needs to be edited in order 
to get mmc2 detected by the OS on the beaglebone?


On Wednesday, August 5, 2015 at 6:35:12 AM UTC-7, RobertCNelson wrote:
>
> On Tue, Aug 4, 2015 at 7:32 PM,  <[email protected] <javascript:>> 
> wrote: 
> > I've managed to disable HIGHMEM from within the kernel.  However im 
> having 
> > trouble compiling.  The usual 'make clean' and 'make all' gives me 
> errors: 
> > 
> > root@beaglebone:/usr/src/linux-headers-4.1.2-ti-r4# make all 
> >   CHK     include/config/kernel.release 
> >   UPD     include/config/kernel.release 
> >   CHK     include/generated/uapi/linux/version.h 
> >   CHK     include/generated/utsrelease.h 
> >   UPD     include/generated/utsrelease.h 
> > make[1]: *** No rule to make target 'arch/arm/tools/gen-mach-types', 
> needed 
> > by 'include/generated/mach-types.h'.  Stop. 
> > arch/arm/Makefile:297: recipe for target 'archprepare' failed 
> > make: *** [archprepare] Error 2 
>
> Sorry, that's "headers".... 
>
> > root@beaglebone:/usr/src/linux-"headers"-4.1.2-ti-r4# make all 
>
> Grab the source via: 
>
> git clone -b 4.1.2-ti-r4 https://github.com/beagleboard/linux --depth=1 
>
> 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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to