Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?

2014-09-04 Thread progbrain
Hi John


Sorry for asking you again but it still doesnt work :-(

I've tried several times to build the kernel, also in the Desktop Folder. 
Yesterday i destroyed my image somehow :-). I reflashed the BBB again with 
the Debian form my uSD Card and started right with the Kernel building 
without doing anything else before except the 
sudo apt-get update
sudo apt-get install bc lzma lzop libncurses5-dev

which are necessary...

but i get the same error everytime :

root@beaglebone:/home/debian/Desktop/bb-kernel# ./build_kernel.sh
+ Detected build host [Debian GNU/Linux 7.5 (wheezy)]
+ host: [armv7l]
+ git HEAD commit: [e496a19d1fed586a7e82c3cd74f0571491a526ca]
`/home/debian/Desktop/bb-kernel/system.sh.sample' -> 
`/home/debian/Desktop/bb-kernel/system.sh'
-
scripts/gcc: Using: gcc (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
CROSS_COMPILE=
-
scripts/git: LINUX_GIT not defined in system.sh
cloning https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
into default location: /home/debian/Desktop/bb-kernel/ignore/linux-src
Cloning into '/home/debian/Desktop/bb-kernel/ignore/linux-src'...
remote: Counting objects: 3758531, done.
remote: Compressing objects: 100% (562572/562572), done.
remote: Total 3758531 (delta 3168898), reused 3755444 (delta 3165993)
Receiving objects: 100% (3758531/3758531), 793.01 MiB | 1.78 MiB/s, done.
error: index-pack died of signal 968898)
fatal: index-pack failed
root@beaglebone:/home/debian/Desktop/bb-kernel#

the whole process also takes very long espacially the resolving deltas 
process

do you have any idea what I'm doing wrong or whats wrong with my bbb. I'm 
running my bbb over ssh with putty and without uSD Card.

What am I doing excatly by following your Instructions? I mean i don't have 
any idea I'm just following your Instructions. Isn't there an easier more 
newbie-like way? In my Project I need to connect 16 PEC11-Encoders. That 
means 32 GPIOs. I already got 30 so I just need to more but it seems more 
complicated than i thought it would be :-)


Am Dienstag, 2. September 2014 19:12:40 UTC+2 schrieb john3909:
>
>
> From: halfbrain >
> Reply-To: "beagl...@googlegroups.com " <
> beagl...@googlegroups.com >
> Date: Tuesday, September 2, 2014 at 9:09 AM
> To: "beagl...@googlegroups.com "  >
> Subject: Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?
>
> Thanks for your quick responses always.
> I've tried the Instructions to build the Kernel
> git clone https://github.com/RobertCNelson/bb-kernel.git
> cd bb-kernel/
>
> git checkout origin/am33x-v3.8 -b tmp
>
> You need to be building this on your desktop, not on your BBB.
>
> Regards,
> John
>
>
>
>  
>
>
> but if use the command ./build_kernel.sh . i get this message after the 
> "resolving deltas process". I've tried several times but it always freezes 
> at 96%. Do you have any Idea what went wrong?
>
> this is what i get in the commandshell:
>
> root@beaglebone:/bb-kernel# ./build_kernel.sh
> + Detected build host [Debian GNU/Linux 7.5 (wheezy)]
> + host: [armv7l]
> + git HEAD commit: [e496a19d1fed586a7e82c3cd74f0571491a526ca]
> -
> scripts/gcc: Using: gcc (Debian 4.6.3-14) 4.6.3
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> -
> CROSS_COMPILE=
> -
> scripts/git: LINUX_GIT not defined in system.sh
> cloning https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
> into default location: /bb-kernel/ignore/linux-src
> Cloning into '/bb-kernel/ignore/linux-src'...
> remote: Counting objects: 3758162, done.
> remote: Compressing objects: 100% (567907/567907), done.
> remote: Total 3758162 (delta 3168580), reused 3749734 (delta 3160289)
> Receiving objects: 100% (3758162/3758162), 794.38 MiB | 1.37 MiB/s, done.
> error: index-pack died of signal 968580)
> fatal: index-pack failed
> root@beaglebone:/bb-kernel#
>
>
>
> Am Montag, 1. September 2014 17:39:11 UTC+2 schrieb john3909:
>>
>>
>> From: halfbrain 
>> Reply-To: "beagl...@googlegroups.com" 
>> Date: Monday, September 1, 2014 at 8:23 AM
>> To: "beagl...@googlegroups.com" 
>> Subject: Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?
>>
>> I'm using Derek Molloys device Tree overlays and I'm running debian... I 
>> can't find the folder on my bbb .
>>
>> But I found the "am335x-bone-common.dtsi 
>> 
>> " in  
>> https://github.com/derekmolloy/boneDeviceTree/tree/master/DTSource3.8.13 
>> which I have on my bbb. I've co

Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?

2014-09-04 Thread progbrain
Hi John

I always get this even after reflashing my whole bbb with Debian.

root@beaglebone:/home/debian/Desktop/bb-kernel# ./build_kernel.sh
+ Detected build host [Debian GNU/Linux 7.5 (wheezy)]
+ host: [armv7l]
+ git HEAD commit: [e496a19d1fed586a7e82c3cd74f0571491a526ca]
-
scripts/gcc: Using: gcc (Debian 4.6.3-14) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-
CROSS_COMPILE=
-
scripts/git: LINUX_GIT not defined in system.sh
cloning https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
into default location: /home/debian/Desktop/bb-kernel/ignore/linux-src
Cloning into '/home/debian/Desktop/bb-kernel/ignore/linux-src'...
remote: Counting objects: 3758531, done.
remote: Compressing objects: 100% (568127/568127), done.
remote: Total 3758531 (delta 3168892), reused 3749886 (delta 3160438)
Receiving objects: 100% (3758531/3758531), 794.38 MiB | 1.43 MiB/s, done.
error: index-pack died of signal 968892)
fatal: index-pack failed
root@beaglebone:/home/debian/Desktop/bb-kernel#


Do you have any Idea what went wrong or what could be wrong with my bbb. I 
tried the whole process several times and it took a very long everytime 
espacially the resolving Deltas process. And it always ends up with this 
Error. What am I doing wrong? 

Isn't there an easier way to do that? In my project I got 16 PEC11 Encoders 
that means I need 32 GPIO's. I already got 15 so i just need 2 more.

Am Dienstag, 2. September 2014 19:12:40 UTC+2 schrieb john3909:
>
>
> From: halfbrain >
> Reply-To: "beagl...@googlegroups.com " <
> beagl...@googlegroups.com >
> Date: Tuesday, September 2, 2014 at 9:09 AM
> To: "beagl...@googlegroups.com "  >
> Subject: Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?
>
> Thanks for your quick responses always.
> I've tried the Instructions to build the Kernel
> git clone https://github.com/RobertCNelson/bb-kernel.git
> cd bb-kernel/
>
> git checkout origin/am33x-v3.8 -b tmp
>
> You need to be building this on your desktop, not on your BBB.
>
> Regards,
> John
>
>
>
>  
>
>
> but if use the command ./build_kernel.sh . i get this message after the 
> "resolving deltas process". I've tried several times but it always freezes 
> at 96%. Do you have any Idea what went wrong?
>
> this is what i get in the commandshell:
>
> root@beaglebone:/bb-kernel# ./build_kernel.sh
> + Detected build host [Debian GNU/Linux 7.5 (wheezy)]
> + host: [armv7l]
> + git HEAD commit: [e496a19d1fed586a7e82c3cd74f0571491a526ca]
> -
> scripts/gcc: Using: gcc (Debian 4.6.3-14) 4.6.3
> Copyright (C) 2011 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> -
> CROSS_COMPILE=
> -
> scripts/git: LINUX_GIT not defined in system.sh
> cloning https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
> into default location: /bb-kernel/ignore/linux-src
> Cloning into '/bb-kernel/ignore/linux-src'...
> remote: Counting objects: 3758162, done.
> remote: Compressing objects: 100% (567907/567907), done.
> remote: Total 3758162 (delta 3168580), reused 3749734 (delta 3160289)
> Receiving objects: 100% (3758162/3758162), 794.38 MiB | 1.37 MiB/s, done.
> error: index-pack died of signal 968580)
> fatal: index-pack failed
> root@beaglebone:/bb-kernel#
>
>
>
> Am Montag, 1. September 2014 17:39:11 UTC+2 schrieb john3909:
>>
>>
>> From: halfbrain 
>> Reply-To: "beagl...@googlegroups.com" 
>> Date: Monday, September 1, 2014 at 8:23 AM
>> To: "beagl...@googlegroups.com" 
>> Subject: Re: [beagleboard] Can "allocated pins" on BBB be used as GPIOs ?
>>
>> I'm using Derek Molloys device Tree overlays and I'm running debian... I 
>> can't find the folder on my bbb .
>>
>> But I found the "am335x-bone-common.dtsi 
>> 
>> " in  
>> https://github.com/derekmolloy/boneDeviceTree/tree/master/DTSource3.8.13 
>> which I have on my bbb. I've commented out the section you mentioned but 
>> nothing changes. Without using or declaring the I2c2 pins in my Device Tree 
>> Overlay I'm able to use all unallocated pins as GPIO Inputs as I declared 
>> them in my Device Tree Overlay. 
>>
>> Did i change the wrong am335x-bone-common.dtsi 
>> .?
>>  
>> Is there another one elsewhere on the debian distribution or do i have to 
>> copy the changed file into a specific folder?
>>
>> You need to follow:
>>
>>
>> http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-LinuxKernel
>>
>