Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Just a regular kernel type makefile. For examlpe, here's mine for a file
phyaccess.c

BEAGLEBONE_PROJ=/systems/Projects/beaglebone/workspace/Beaglebone
MDIO_ROOT=$(BEAGLEBONE_PROJ)/local/MDIODriver

#
http://stackoverflow.com/questions/10176238/how-do-i-add-an-include-path-for-kernel-module-makefile
# for kernel module make uses kbuild. Paths have to be absolute, not
relative.
EXTRA_CFLAGS+=-I$(MDIO_ROOT)/include -I$(MDIO_ROOT)
-I$(BEAGLEBONE_PROJ)/include -I$(BEAGLEBONE_PROJ)/Interface/local/include
-Werror

obj-m += phyaccess.o

all:
 make -C $(KERNELDIR) M=$(PWD) modules

clean:
 make -C $(KERNELDIR) M=$(PWD) clean




On Fri, Mar 7, 2014 at 10:57 PM, siva kumar boopathisivaku...@gmail.comwrote:

 thanks for your reply

 yes , u r right  i compiled the module against
 arm-angstrom-linux-gnueabi-gcc but my angstrom os comes with Linaro gcc
 root@beaglebone:~# opkg list_installed | grep gcc
 *gcc - linaro-4.7-r9.2*
 gcc-symlinks - linaro-4.7-r9.2
 libgcc-s-dev - linaro-4.7-r9.0
 libgcc1 - linaro-4.7-r9.0
 perl-module-extutils-cbuilder-platform-windows-gcc - 5.14.2-r13.1

 root@beaglebone:~# dmesg | head
 [ 0.00] Booting Linux on physical CPU 0×0
 [ 0.00] Initializing cgroup subsys cpu
 *[ 0.00] Linux version 3.8.13 (koen@rrMBP) (gcc version 4.7.3 20130205
 (prerelease) (Linaro GCC 4.7-2013.02-01) ) #1 SMP Tue Jun 18 02:11:09 EDT
 2013*
 [ 0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
 [ 0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
 instruction cache
 [ 0.00] Machine: Generic AM33XX (Flattened Device Tree), model: TI
 AM335x BeagleBone
 [ 0.00] Memory policy: ECC disabled, Data cache writeback
 [ 0.00] On node 0 totalpages: 130816
 [ 0.00] free_area_init_node: node 0, pgdat c0688d80, node_mem_map
 c06e4000
 [ 0.00] Normal zone: 1024 pages used for memmap

 i done the following steps to update my modules for my board .but it says
  my kernel headers are up to date.
 *root@beaglebone:~#  opkg install kernel-headers*
 *Package kernel-headers (3.8.13-r23a.22) installed in root is up to date.*

 [1] what should i do to get my modules to work with??

 On Saturday, 8 March 2014 02:42:31 UTC+5:30, Brandon I wrote:

 dmesg will give you more details.

 This usually means you compiled the kernel modules against a different
 build of the kernel. So, the kernel source you used didn't match what was
 on the beaglebone.

 You can install the kernel-headers and kernel-dev packages and build
 directly on the beaglebone. For some time, these packages weren't in sync
 with the actual kernel installed...as always, good luck with Angstrom.

 On Thursday, March 6, 2014 10:30:41 PM UTC-8, siva kumar wrote:

 hello,

 i recently purchased beagle bone black . my bbb come with pre compiled
 angstrom os( Angstrom v2012.12 - Kernel 3.8.13) still i didn't  updated my
 os
 i try to test my board with simple hello module program . but when i
 insert a module i got the error message
 root@beaglebone:~# insmod hello.ko
 Error: could not insert module hello.ko: Invalid module format
 root@beaglebone:~#

 i compiled the module program from my host pc against
 arm-angstrom-linux-gcc compiler..and i transferred the hello.ko file via
 scp protocol.



 my question is
 [1] Is it possible to add  a module  program with my available angstrom
 os..if yes what should i do to insert  modules
 [2] what are all the basic things needed to insert a module??


 help me to better understand the beagle bone black


  --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/beagleboard/fIJ5YE_fJpg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Missed first line on that copy paste. Should be

KERNELDIR := /usr/src/kernel



On Sat, Mar 8, 2014 at 1:21 AM, Brandon I brandon.ir...@gmail.com wrote:

 Just a regular kernel type makefile. For examlpe, here's mine for a file
 phyaccess.c

 BEAGLEBONE_PROJ=/systems/Projects/beaglebone/workspace/Beaglebone
 MDIO_ROOT=$(BEAGLEBONE_PROJ)/local/MDIODriver

 #
 http://stackoverflow.com/questions/10176238/how-do-i-add-an-include-path-for-kernel-module-makefile
 # for kernel module make uses kbuild. Paths have to be absolute, not
 relative.
 EXTRA_CFLAGS+=-I$(MDIO_ROOT)/include -I$(MDIO_ROOT)
 -I$(BEAGLEBONE_PROJ)/include -I$(BEAGLEBONE_PROJ)/Interface/local/include
 -Werror

 obj-m += phyaccess.o

 all:
  make -C $(KERNELDIR) M=$(PWD) modules

 clean:
  make -C $(KERNELDIR) M=$(PWD) clean




 On Fri, Mar 7, 2014 at 10:57 PM, siva kumar 
 boopathisivaku...@gmail.comwrote:

 thanks for your reply

 yes , u r right  i compiled the module against
 arm-angstrom-linux-gnueabi-gcc but my angstrom os comes with Linaro gcc
 root@beaglebone:~# opkg list_installed | grep gcc
 *gcc - linaro-4.7-r9.2*
 gcc-symlinks - linaro-4.7-r9.2
 libgcc-s-dev - linaro-4.7-r9.0
 libgcc1 - linaro-4.7-r9.0
 perl-module-extutils-cbuilder-platform-windows-gcc - 5.14.2-r13.1

 root@beaglebone:~# dmesg | head
 [ 0.00] Booting Linux on physical CPU 0×0
 [ 0.00] Initializing cgroup subsys cpu
 *[ 0.00] Linux version 3.8.13 (koen@rrMBP) (gcc version 4.7.3
 20130205 (prerelease) (Linaro GCC 4.7-2013.02-01) ) #1 SMP Tue Jun 18
 02:11:09 EDT 2013*
 [ 0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
 cr=50c5387d
 [ 0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
 instruction cache
 [ 0.00] Machine: Generic AM33XX (Flattened Device Tree), model: TI
 AM335x BeagleBone
 [ 0.00] Memory policy: ECC disabled, Data cache writeback
 [ 0.00] On node 0 totalpages: 130816
 [ 0.00] free_area_init_node: node 0, pgdat c0688d80, node_mem_map
 c06e4000
 [ 0.00] Normal zone: 1024 pages used for memmap

  i done the following steps to update my modules for my board .but it
 says  my kernel headers are up to date.
 *root@beaglebone:~#  opkg install kernel-headers*
 *Package kernel-headers (3.8.13-r23a.22) installed in root is up to date.*

 [1] what should i do to get my modules to work with??

 On Saturday, 8 March 2014 02:42:31 UTC+5:30, Brandon I wrote:

 dmesg will give you more details.

 This usually means you compiled the kernel modules against a different
 build of the kernel. So, the kernel source you used didn't match what was
 on the beaglebone.

 You can install the kernel-headers and kernel-dev packages and build
 directly on the beaglebone. For some time, these packages weren't in sync
 with the actual kernel installed...as always, good luck with Angstrom.

 On Thursday, March 6, 2014 10:30:41 PM UTC-8, siva kumar wrote:

 hello,

 i recently purchased beagle bone black . my bbb come with pre compiled
 angstrom os( Angstrom v2012.12 - Kernel 3.8.13) still i didn't  updated my
 os
 i try to test my board with simple hello module program . but when i
 insert a module i got the error message
 root@beaglebone:~# insmod hello.ko
 Error: could not insert module hello.ko: Invalid module format
 root@beaglebone:~#

 i compiled the module program from my host pc against
 arm-angstrom-linux-gcc compiler..and i transferred the hello.ko file via
 scp protocol.



 my question is
 [1] Is it possible to add  a module  program with my available angstrom
 os..if yes what should i do to insert  modules
 [2] what are all the basic things needed to insert a module??


 help me to better understand the beagle bone black


  --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/beagleboard/fIJ5YE_fJpg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.




-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Device tree overlay failed. Cannot overlay BB-BONE-LCD7-01 dtbo file.

2014-03-08 Thread zj_fighting
Come on, my friends. Plz help me.

On Wednesday, March 5, 2014 1:13:24 PM UTC+8, zj_fighting wrote:

 Hello, everyone. I have a LCD7 RGB screen. I wanted to use it in my 
 BB-Black. 
 I added capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN to the 
 uEnv.txt file. Then I typed echo BB-BONE-LCD7-01  $SLOTS, but BB-Black 
 replied -sh: echo: write error: No such file or directory to me. I am 
 sure the dtbo file exists. Anyone could me?


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: DBTO is not loaded by capemgr (Capes eeprom-info is correct and dbto-file exists in /lib/firmware)

2014-03-08 Thread zj_fighting
Hello, guys. I read all your posts but get really confused. I encounter the 
same problem. I want to overlay the BB-BONE-LCD7-00A0.dtbo file. But 
unfortunately I got the error message -sh: echo: write error: No such file 
or directory. So, I wanna know, did all you guys fix the problem. Thanks a 
lot.

On Saturday, July 13, 2013 10:33:06 PM UTC+8, RL Budde wrote:

 Hi!

 I am working on a new Home Automation cape using three uarts (1,2,4). The 
 eeprom is set up according to the current SRM with format A1 and gets read 
 correctly on startup. The device tree overlay was compiled using the patch 
 allowing for overlays (so dtc knows -@ and \plugin\). After that I placed 
 the resulting ibb-0001.dtbo in /lib/firmware.

 This is what I get on startup:


 [1.619295] bone-capemgr bone_capemgr.8: Baseboard: 
 'A335BNLT,0A5A,1613BBBK2649'
 [1.627084] bone-capemgr bone_capemgr.8: 
 compatible-baseboard=ti,beaglebone-black
 *[1.659113] bone-capemgr bone_capemgr.8: slot #0: 'Home Automation 
 Cape,0001,IBB Robert Budde,ibb'*
 [1.698749] bone-capemgr bone_capemgr.8: slot #1: No cape found
 [1.735857] bone-capemgr bone_capemgr.8: slot #2: No cape found
 [1.772966] bone-capemgr bone_capemgr.8: slot #3: No cape found
 [1.779219] bone-capemgr bone_capemgr.8: slot #4: specific override
 [1.785819] bone-capemgr bone_capemgr.8: bone: Using override eeprom 
 data at slot 4
 [1.793855] bone-capemgr bone_capemgr.8: slot #4: 
 'Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G'
 [1.804003] bone-capemgr bone_capemgr.8: slot #5: specific override
 [1.810600] bone-capemgr bone_capemgr.8: bone: Using override eeprom 
 data at slot 5
 [1.818633] bone-capemgr bone_capemgr.8: slot #5: 
 'Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI'
 [1.828671] bone-capemgr bone_capemgr.8: slot #6: specific override
 [1.835267] bone-capemgr bone_capemgr.8: bone: Using override eeprom 
 data at slot 6
 [1.843302] bone-capemgr bone_capemgr.8: slot #6: 
 'Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN'
 [1.853925] bone-capemgr bone_capemgr.8: loader: before slot-0 
 ibb:0001 (prio 0)
 [1.861713] bone-capemgr bone_capemgr.8: loader: check slot-0 ibb:0001 
 (prio 0)
 [1.869517] bone-capemgr bone_capemgr.8: loader: before slot-4 
 BB-BONE-EMMC-2G:00A0 (prio 1)
 [1.878378] bone-capemgr bone_capemgr.8: loader: check slot-4 
 BB-BONE-EMMC-2G:00A0 (prio 1)
 [1.887249] bone-capemgr bone_capemgr.8: loader: before slot-5 
 BB-BONELT-HDMI:00A0 (prio 1)
 [1.896016] bone-capemgr bone_capemgr.8: loader: check slot-5 
 BB-BONELT-HDMI:00A0 (prio 1)
 [1.904720] bone-capemgr bone_capemgr.8: initialized OK.
 [1.910323] bone-capemgr bone_capemgr.8: loader: before slot-6 
 BB-BONELT-HDMIN:00A0 (prio 2)
 [1.919173] bone-capemgr bone_capemgr.8: loader: check slot-6 
 BB-BONELT-HDMIN:00A0 (prio 2)
 [1.941732] bone-capemgr bone_capemgr.8: loader: after slot-0 ibb:0001 
 (prio 0)
 [1.949423] bone-capemgr bone_capemgr.8: loader: check slot-4 
 BB-BONE-EMMC-2G:00A0 (prio 1)
 [1.958196] bone-capemgr bone_capemgr.8: loader: check slot-5 
 BB-BONELT-HDMI:00A0 (prio 1)
 [1.973258] bone-capemgr bone_capemgr.8: loader: check slot-6 
 BB-BONELT-HDMIN:00A0 (prio 2)


 *[1.982040] bone-capemgr bone_capemgr.8: slot #0: Requesting part 
 number/version based 'ibb-0001.dtbo[1.997835] bone-capemgr 
 bone_capemgr.8: slot #0: Requesting firmware 'ibb-0001.dtbo' for board-name 
 'Home Automation Cape', version '0001'[2.829291] bone-capemgr 
 bone_capemgr.8: failed to load firmware 'ibb-0001.dtbo'*
 [2.837120] bone-capemgr bone_capemgr.8: loader: failed to load slot-0 
 ibb:0001 (prio 0)
 [2.845627] bone-capemgr bone_capemgr.8: loader: check slot-6 
 BB-BONELT-HDMIN:00A0 (prio 2)


 But - the dtbo exists in /lib/firmware and the rights are ok as well.

 I tried to manually enabling the overlay:

 root@arm:~# echo ibb-0001  /sys/devices/bone_capemgr.8/slots
 -bash: echo: write error: No such file or directory


 (same for just ibb or /lib/firmware/ibb and so on) 

 Enabling the BB-UART by this way works as intended.

 *Do I have to register the dtbo somewhere to get it found?*

 Thank you very much!

 Robert



-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: joydev in Ubuntu kernel 3.8.x

2014-03-08 Thread Biriuk Ivan
Thanks for answer, but I found solver. I connected joystick via bluetooth. 
http://answers.ros.org/question/102676/ps3joy-slow-output/?answer=134786#post-id-134786

вторник, 4 марта 2014 г., 5:33:23 UTC+4 пользователь Andrew Dai написал:

 3.8.13-bone28


 On Sun, Mar 2, 2014 at 10:36 AM, Biriuk Ivan tvv...@gmail.comjavascript:
  wrote:

 I have the same system Ubuntu 13.04 and ROS Hydro too :)
 I tried connect PS3 joystick used xboxdrv. But it doesn't worked, although 
 it should be as in manual http://pingus.seul.org/~grumbel/xboxdrv/.
 Which kernel version do you have? uname -r
 Could you show me this file /proc/config.gz? I just want to confirm it. 

 воскресенье, 2 марта 2014 г., 7:20:06 UTC+4 пользователь Andrew Dai 
 написал:

 I don't know if this will help but I got my xbox 360 wired controller to 
 work with the BBB (and even ROS Hydro) running Ubuntu 13.04
 http://andrewdai.co/xbox-controller-ros.html

 What OS version are you on?

 On Saturday, March 1, 2014 1:58:01 AM UTC-5, Biriuk Ivan wrote:

 Hi, everyone! I try connect PS3 joystick to BBB. Automatically it 
 doesn't work. joydev module built-in kernel. I try manual connect 
 http://ubuntuforums.org/showthread.php?t=338457 , but failed. How I 
 can connect usb joystick to BBB?

  -- 
 For more options, visit http://beagleboard.org/discuss
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/beagleboard/pZBUW3sE0c4/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 beagleboard...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




 -- 
 Best Wishes,
 Andrew
  

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Cross compiling an external kernel module for BBB

2014-03-08 Thread siva kumar
hai,
can you help me how to fix the  below issue
i followed the same procedure which you  compiled  the kernel for 
beaglebone black.


procedures i used :
=

Downlaoad Kernel 3.8.13

wget https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.13.tar.gz

extracted the kernel

Download the  patch

http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/patch-3.8.13-bone21.diff.gz

copied it into the kernel folder

patch work done
 
patch -p1  patch-3.8.13-bone21.diff

Download pm firmware and copied it to firmware folder

wget 
http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD
 
-O firmware/am335x-pm-firmware.bin

Download defconfig

wget http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/defconfig

and copied the  defconfig to .config file 

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack 
-j4

finally uImage-dtb.am335x-boneblack created 

but while booting the uImage-BBB i'm facing the following error message 
U-Boot# setenv autoload no
U-Boot# setenv ipaddr 192.168.1.61
U-Boot# setenv serverip 192.168.1.69
U-Boot# setenv bootargs 'console=ttyO0,115200n8 noinitrd rw 
ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0: 
root=/dev/nfs nfsroot=192.168.1.69:/nfsroot/rootfs'
U-Boot# tftp 0x8020 uImage-BBB;
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.69; our IP address is 192.168.1.61
Filename 'uImage-BBB'.
Load address: 0x8020
Loading: #
 #
 #
 #
 1.2 MiB/s
done
Bytes transferred = 3277861 (320425 hex)
U-Boot# bootm 0x8020 ;
## Booting kernel from Legacy Image at 8020 ...
   Image Name:   Linux-3.8.13
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:3277797 Bytes = 3.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0e05).

Available machine support:

ID (hex) NAME
 Generic OMAP4 (Flattened Device Tree)
 Generic AM33XX (Flattened Device Tree)
 Generic OMAP3-GP (Flattened Device Tree)
 Generic OMAP3 (Flattened Device Tree)
060a OMAP3 Beagle Board
0a9d IGEP OMAP3 module
0928 IGEP v2 board
0ae7 OMAP4 Panda board

Please check your kernel config and/or bootloader.




can you tell me how to fix the issue

 

On Sunday, 22 September 2013 08:11:54 UTC+5:30, Joshua Datko wrote:

 I'm trying to cross compile the cryptodev external kernel module for
 use on a BBB (I want to used crypto accelerated AES in openssl).  When
 I try to modprobe the module, I get:

 ERROR: could not insert 'cryptodev': Exec format error

 and I'm stuck and requesting help from those who have cross compiled 
 modules.

 My steps:

 0. I'm running Ubuntu raring 3.8.13-bone21
 1. I downloaded the stock 3.8.13 kernel [1]
 2. I downloaded the 3.8.13-boine21 patch and config [2] [3]
 3. I applied the patch and copied the config to the kernel
 4. apt-get install gcc-linux-arm-gnueabi
 5. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi-
 6. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules
 7. Cross compiled the module.  Cryptodev [4] has no dependencies other
than the kernel itself.  I passed ARCH=arm and
CROSS_COMPILE=arm-linux-gnueabi- and it built.
 8. run make install with a prefix and captured the cryptodev.ko
 9. I put cryptodev.ko in /lib/modules/extra on the BBB
 10. sudo depmod -a
 11. sudo modprobe cryptodev and I get the error above.

 Other info:

 file cryptodev.ko yields:

 cryptodev.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), 
 BuildID[sha1]=0xcd15e83f02079b8c522a896f9c93a7166b6bac7e, not stripped

 modinfo cryptodev yields:

 filename:   /lib/modules/3.8.13-bone21/extra/cryptodev.ko
 license:GPL
 description:CryptoDev driver
 author: Nikos Mavrogiannopoulos snip
 srcversion: 65CAA0FA92528091299328F
 depends:
 vermagic:   3.8.13 SMP mod_unload modversions ARMv7 p2v8 
 parm:   cryptodev_verbosity:0: normal, 1: verbose, 2: debug (int)

 I'm not sure why the vermagic line doesn't have 3.8.13-bone21?

 Trying to insmod yields:

 Error: could not insert module cryptodev.ko: Invalid module format
 [101075.881894] cryptodev: no symbol version for module_layout

 Thanks for the help,

 Josh



 [1] https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.13.tar.gz
 [2] 
 http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/patch-3.8.13-bone21.diff.gz
 [3] http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/defconfig
 [4] http://cryptodev-linux.org/


-- 
For more options, 

[beagleboard] QNX on BBB

2014-03-08 Thread Thorsten Gonschior
Hi all,

I intend to run QNX on BBB A6A. Has anyone any kind of experience or 
information of the QNX BSP for BBB?

- QNX foundry27 is not available on that topic
- could not find any current texts on this in the internet
- TI does not support this topic
- latest QNX entry in this forum is 10 moth ago
- QNX support has not answered my question yet

Thanks for hints.

Regards,
Thorsten.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] error while booting the kernel form beaglebone black!!!![Error: unrecognized/unsupported machine ID]

2014-03-08 Thread siva kumar
hello,
i'm creating a  kernel image for beaglebone black,while processing i faced 
the following issue.
 i referred the following links to create uImage-BBB
http://elinux.org/Building_BBB_Kernel#Downloading_and_building_the_Linux_Kernel
http://wiki.beyondlogic.org/index.php/BeagleBoneBlack_Building_Kernel
while use this link i stuck with creating  *uImage-dtb.am335x-boneblack 
image *

make ARCH=arm CROSS_COMPILE=arm-linux-gnu- uImage-dtb.am335x-boneblack

after a series of discussing with google groups i found 1 more useful link 
to create uImage for beagle bone black
https://groups.google.com/forum/#!category-topic/beagleboard/beaglebone-black/mShGQ3dfI08https://href.li/?https://groups.google.com/forum/#!category-topic/beagleboard/beaglebone-black/mShGQ3dfI08
from the google-group guidelines i was able to create the uImage-BBB 
successfully but not able to run the kernel with my board
here the procedure i followed to create a kernel image and error log report 
for  your understanding
 

procedures i used :
=

Downlaoad Kernel 3.8.13

wget https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.13.tar.gz

extracted the kernel

Download the  patch

http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/patch-3.8.13-bone21.diff.gz

copied it into the kernel folder

patch work done
 
patch -p1  patch-3.8.13-bone21.diff

Download pm firmware and copied it to firmware folder

wget 
http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD
 -O 
firmware/am335x-pm-firmware.bin

Download defconfig

wget http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/defconfig

and copied the  defconfig to .config file 

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack 
-j4

finally uImage-dtb.am335x-boneblack created 

but while booting the uImage-BBB i'm facing the following error message 
U-Boot# setenv autoload no
U-Boot# setenv ipaddr 192.168.1.61
U-Boot# setenv serverip 192.168.1.69
U-Boot# setenv bootargs 'console=ttyO0,115200n8 noinitrd rw 
ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0: 
root=/dev/nfs nfsroot=192.168.1.69:/nfsroot/rootfs'
U-Boot# tftp 0x8020 uImage-BBB;
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.69; our IP address is 192.168.1.61
Filename 'uImage-BBB'.
Load address: 0x8020
Loading: #
 #
 #
 #
 1.2 MiB/s
done
Bytes transferred = 3277861 (320425 hex)
U-Boot# bootm 0x8020 ;
## Booting kernel from Legacy Image at 8020 ...
   Image Name:   Linux-3.8.13
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:3277797 Bytes = 3.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0e05).

Available machine support:

ID (hex) NAME
 Generic OMAP4 (Flattened Device Tree)
 Generic AM33XX (Flattened Device Tree)
 Generic OMAP3-GP (Flattened Device Tree)
 Generic OMAP3 (Flattened Device Tree)
060a OMAP3 Beagle Board
0a9d IGEP OMAP3 module
0928 IGEP v2 board
0ae7 OMAP4 Panda board

Please check your kernel config and/or bootloader.


i'm not able to understand what was the mistake with config file. i cross 
checked the .config file too . the am335xx processor was selected under 
omap2 series 
did i doing wrong with loading address of kernel image ?? i dont know 
realy!!!

pls help me to understand this issue and how to come back the kernel to 
bootup@

regards
siva


 

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] booting error with BBB [Error: unrecognized/unsupported machine ID (r1 = 0x00000e05).]

2014-03-08 Thread siva kumar
hello,
i'm creating a  kernel image for beaglebone black,while processing i faced 
the following issue.
 i referred the following links to create uImage-BBB
http://elinux.org/Building_BBB_Kernel#Downloading_and_building_the_Linux_Kernel
http://wiki.beyondlogic.org/index.php/BeagleBoneBlack_Building_Kernel
while use this link i stuck with creating  *uImage-dtb.am335x-boneblack 
image *

make ARCH=arm CROSS_COMPILE=arm-linux-gnu- uImage-dtb.am335x-boneblack

after a series of discussing with google groups i found 1 more useful link 
to create uImage for beagle bone black
https://groups.google.com/forum/#!category-topic/beagleboard/beaglebone-black/mShGQ3dfI08https://href.li/?https://groups.google.com/forum/#!category-topic/beagleboard/beaglebone-black/mShGQ3dfI08
from the google-group guidelines i was able to create the uImage-BBB 
successfully but not able to run the kernel with my board
here the procedure i followed to create a kernel image and error log report 
for  your understanding
 

procedures i used :
=

Downlaoad Kernel 3.8.13

wget https://www.kernel.org/pub/linux/kernel/v3.0/linux-3.8.13.tar.gz

extracted the kernel

Download the  patch

http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/patch-3.8.13-bone21.diff.gz

copied it into the kernel folder

patch work done
 
patch -p1  patch-3.8.13-bone21.diff

Download pm firmware and copied it to firmware folder

wget 
http://arago-project.org/git/projects/?p=am33x-cm3.git\;a=blob_plain\;f=bin/am335x-pm-firmware.bin\;hb=HEAD
 -O 
firmware/am335x-pm-firmware.bin

Download defconfig

wget http://rcn-ee.net/deb/raring-armhf/v3.8.13-bone21/defconfig

and copied the  defconfig to .config file 

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage dtbs -j4

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- uImage-dtb.am335x-boneblack 
-j4

finally uImage-dtb.am335x-boneblack created 

but while booting the uImage-BBB i'm facing the following error message 
U-Boot# setenv autoload no
U-Boot# setenv ipaddr 192.168.1.61
U-Boot# setenv serverip 192.168.1.69
U-Boot# setenv bootargs 'console=ttyO0,115200n8 noinitrd rw 
ip=192.168.1.61:192.168.1.69:192.168.1.100:255.255.255.0::eth0: 
root=/dev/nfs nfsroot=192.168.1.69:/nfsroot/rootfs'
U-Boot# tftp 0x8020 uImage-BBB;
link up on port 0, speed 100, full duplex
Using cpsw device
TFTP from server 192.168.1.69; our IP address is 192.168.1.61
Filename 'uImage-BBB'.
Load address: 0x8020
Loading: #
 #
 #
 #
 1.2 MiB/s
done
Bytes transferred = 3277861 (320425 hex)
U-Boot# bootm 0x8020 ;
## Booting kernel from Legacy Image at 8020 ...
   Image Name:   Linux-3.8.13
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:3277797 Bytes = 3.1 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0e05).

Available machine support:

ID (hex) NAME
 Generic OMAP4 (Flattened Device Tree)
 Generic AM33XX (Flattened Device Tree)
 Generic OMAP3-GP (Flattened Device Tree)
 Generic OMAP3 (Flattened Device Tree)
060a OMAP3 Beagle Board
0a9d IGEP OMAP3 module
0928 IGEP v2 board
0ae7 OMAP4 Panda board

Please check your kernel config and/or bootloader.


i'm not able to understand what was the mistake with config file. i cross 
checked the .config file too . the am335xx processor was selected under 
omap2 series 
did i doing wrong with loading address of kernel image ?? i dont know 
realy!!!

pls help me to understand this issue and how to come back the kernel to 
bootup@

regards
siva


 

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread siva kumar
hai,
 thank u!!
but  my  folder structure from my board looks like

*root@beaglebone:/usr/src# ls*
*backfire  linux-3.8.13*
*root@beaglebone:/usr/src# cd linux-3.8.13/*
*root@beaglebone:/usr/src/linux-3.8.13# ls*
*include*
*root@beaglebone:/usr/src/linux-3.8.13/include# ls*

*asm  asm-generic  drm  linux  mtd  rdma  scsi  sound  uapi  video  xen*

*root@beaglebone:/usr/src/linux-3.8.13/include/linux# ls*

*byteorder  dvb isdnnetfilter_arp netfilter_ipv6  spi tc_ematch*
*caif   hdlc  mmcnetfilter_bridge  nfsd  sunrpc  usb*
*can   hsi netfilter  netfilter_ipv4raid  tc_act  wimax*

*root@beaglebone:/usr/src/linux-3.8.13/include/linux# *

this info shows that my board shipped with no module support by default 
..!!!

now question is 
[1] still i didn't update or upgraded my angstrom os ..shall i need to do 
or is there any other way to insert my hello_world.ko module into my board??
i found 1 more link for installing  the module libs sturcture and soure 
into the running os . here the link
http://wiki.replicape.com/index.php?title=Compiling_the_kernel
will this link  help me to insert also to create  a modules without fail ..

can you suggest your opinion..pls..



 
regards
siva





On Saturday, 8 March 2014 14:52:49 UTC+5:30, Brandon I wrote:

 Missed first line on that copy paste. Should be

 KERNELDIR := /usr/src/kernel



 On Sat, Mar 8, 2014 at 1:21 AM, Brandon I brando...@gmail.comjavascript:
  wrote:

 Just a regular kernel type makefile. For examlpe, here's mine for a file 
 phyaccess.c

  BEAGLEBONE_PROJ=/systems/Projects/beaglebone/workspace/Beaglebone
 MDIO_ROOT=$(BEAGLEBONE_PROJ)/local/MDIODriver

 #
 http://stackoverflow.com/questions/10176238/how-do-i-add-an-include-path-for-kernel-module-makefile
 # for kernel module make uses kbuild. Paths have to be absolute, not 
 relative.
 EXTRA_CFLAGS+=-I$(MDIO_ROOT)/include -I$(MDIO_ROOT) 
 -I$(BEAGLEBONE_PROJ)/include -I$(BEAGLEBONE_PROJ)/Interface/local/include 
 -Werror

 obj-m += phyaccess.o

 all:
  make -C $(KERNELDIR) M=$(PWD) modules

 clean:
  make -C $(KERNELDIR) M=$(PWD) clean




 On Fri, Mar 7, 2014 at 10:57 PM, siva kumar 
 boopathi...@gmail.comjavascript:
  wrote:

 thanks for your reply 

 yes , u r right  i compiled the module against 
 arm-angstrom-linux-gnueabi-gcc but my angstrom os comes with Linaro gcc 
 root@beaglebone:~# opkg list_installed | grep gcc
 *gcc - linaro-4.7-r9.2*
 gcc-symlinks - linaro-4.7-r9.2
 libgcc-s-dev - linaro-4.7-r9.0
 libgcc1 - linaro-4.7-r9.0
 perl-module-extutils-cbuilder-platform-windows-gcc - 5.14.2-r13.1

 root@beaglebone:~# dmesg | head
 [ 0.00] Booting Linux on physical CPU 0×0
 [ 0.00] Initializing cgroup subsys cpu
 *[ 0.00] Linux version 3.8.13 (koen@rrMBP) (gcc version 4.7.3 
 20130205 (prerelease) (Linaro GCC 4.7-2013.02-01) ) #1 SMP Tue Jun 18 
 02:11:09 EDT 2013*
 [ 0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), 
 cr=50c5387d
 [ 0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
 instruction cache
 [ 0.00] Machine: Generic AM33XX (Flattened Device Tree), model: TI 
 AM335x BeagleBone
 [ 0.00] Memory policy: ECC disabled, Data cache writeback
 [ 0.00] On node 0 totalpages: 130816
 [ 0.00] free_area_init_node: node 0, pgdat c0688d80, node_mem_map 
 c06e4000
 [ 0.00] Normal zone: 1024 pages used for memmap

  i done the following steps to update my modules for my board .but it 
 says  my kernel headers are up to date.
 *root@beaglebone:~#  opkg install kernel-headers*
 *Package kernel-headers (3.8.13-r23a.22) installed in root is up to 
 date.*

 [1] what should i do to get my modules to work with??

 On Saturday, 8 March 2014 02:42:31 UTC+5:30, Brandon I wrote:

 dmesg will give you more details.

 This usually means you compiled the kernel modules against a different 
 build of the kernel. So, the kernel source you used didn't match what was 
 on the beaglebone.

 You can install the kernel-headers and kernel-dev packages and build 
 directly on the beaglebone. For some time, these packages weren't in sync 
 with the actual kernel installed...as always, good luck with Angstrom.

 On Thursday, March 6, 2014 10:30:41 PM UTC-8, siva kumar wrote:

 hello,

 i recently purchased beagle bone black . my bbb come with pre compiled 
 angstrom os( Angstrom v2012.12 - Kernel 3.8.13) still i didn't  updated 
 my 
 os 
 i try to test my board with simple hello module program . but when i 
 insert a module i got the error message 
 root@beaglebone:~# insmod hello.ko
 Error: could not insert module hello.ko: Invalid module format
 root@beaglebone:~# 

 i compiled the module program from my host pc against 
 arm-angstrom-linux-gcc compiler..and i transferred the hello.ko file via 
 scp protocol.

   

 my question is 
 [1] Is it possible to add  a module  program with my available 
 angstrom os..if yes what should i do to insert  modules
 [2] what are all the basic things needed to insert a module??

  
 help me to 

Re: [beagleboard] Watching boot without HDMI

2014-03-08 Thread Steve G
I can recommend the USB to TTL serial cable from adafruit:

http://www.adafruit.com/products/954

It's inexpensive and I'm using it with my BBB.  I know it says it's for 
Raspberry Pi but it's actually universal and works with both.

On Thursday, March 6, 2014 11:42:00 AM UTC-5, Brad Hopper wrote:

 Great, thanks guys, truly a newb question. From some more reading 
 regarding the J1 on the BBB, it seems OK to use a 5V FTDI board since BBB 
 was designed with the pin corresponding to 5V being disconnected. I have 
 some credit at Sparkfun but they actually have several versions. Plus 
 there's the Bus Pirate as well...




-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Device tree overlay failed. Cannot overlay BB-BONE-LCD7-01 dtbo file.

2014-03-08 Thread zj_fighting
In fact, I did reboot after typing into uEnv.txt.

On Wednesday, March 5, 2014 11:57:15 PM UTC+8, porkupan wrote:

 What does dmesg | grep capemgr say about this?  Maybe you forgot to reboot 
 after typing into uEnv.txt?

 On Wednesday, March 5, 2014 12:16:35 AM UTC-5, zj_fighting wrote:

 Hello, everyone. I have a LCD7 RGB screen. I wanted to use it in my 
 BB-Black. 
 I added capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN to the 
 uEnv.txt file. Then I typed echo BB-BONE-LCD7-01  $SLOTS, but BB-Black 
 replied -sh: echo: write error: No such file or directory to me. I am 
 sure the dtbo file exists. Anyone could me?



-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Watching boot without HDMI

2014-03-08 Thread doog


On Saturday, March 8, 2014 8:03:15 AM UTC-8, Steve G wrote:

 I can recommend the USB to TTL serial cable from adafruit:

 http://www.adafruit.com/products/954

 It's inexpensive and I'm using it with my BBB.  I know it says it's for 
 Raspberry Pi but it's actually universal and works with both.


at $10 it's a good one for sure. Just to share, I have and use this 
one($20) which provides all 6 lines on a single 1x6 header and plugs 
directly into J1(black wire to J1-1) and it's used for Arduino(DC 
Boarduino).
 
http://www.adafruit.com/products/70

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] C: Attempting to mmap an SSD 1306 framebuffer and segfaulting afterwards

2014-03-08 Thread David M.
I have an SSD 1306 OLED display on my Beaglebone that is configured as a 
framebuffer in LInux (3.8.13).
I want to use mmap to get its framebuffer so I can draw on it.  The mmap 
call does return a pointer, but subsequent operations will segfault.
This is the C code:


#include stdio.h
 #include sys/mman.h
 #include sys/types.h
 #include sys/stat.h
 #include fcntl.h
 #include unistd.h
 #include linux/fb.h
 #include sys/ioctl.h
 #include wakkomononormalh.h
 #include string.h
 #include time.h

 static char b[1024]; /* Local image buffer */
 static struct timespec displaydelay;


 int main()
{
 struct fb_fix_screeninfo fb_fixed_info; /* Framebuffer information */

 int fbfd = 0;
 char *fbp = 0;

 //Open the file for reading and writing
 fbfd = open(/dev/fb0, O_RDWR);

 //Map the device to memory

 fbp = (char *)mmap(0, fb_fixed_info.smem_len, PROT_READ | 
 PROT_WRITE,MAP_SHARED
 ,
fbfd, 0);

 if ((int)fbp == -1) { printf(Error: failed to map framebuffer device 
 to memory./n);
 return 4;
 }

 printf(The framebuffer device was mapped to memory successfully./n);


 // Clear screen

 memset(b,0,fb_fixed_info.smem_len);
 memcpy(fbp,b,screensize);

 The code fails at memcpy.  I knew I would have a learning curve, but I 
 have been in circles on this.  I thought I dodged a bullet not having to 
 write kernel drivers for my project, but...


Thanks.
 


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: problem with creating a kernel module program for angstrom os

2014-03-08 Thread Brandon I
Did you install the kernel-dev package?

On Saturday, March 8, 2014, siva kumar boopathisivaku...@gmail.com wrote:

 hai,
  thank u!!
 but  my  folder structure from my board looks like

 *root@beaglebone:/usr/src# ls*
 *backfire  linux-3.8.13*
 *root@beaglebone:/usr/src# cd linux-3.8.13/*
 *root@beaglebone:/usr/src/linux-3.8.13# ls*
 *include*
 *root@beaglebone:/usr/src/linux-3.8.13/include# ls*

 *asm  asm-generic  drm  linux  mtd  rdma  scsi  sound  uapi  video  xen*

 *root@beaglebone:/usr/src/linux-3.8.13/include/linux# ls*

 *byteorder  dvb isdnnetfilter_arp netfilter_ipv6  spi
 tc_ematch*
 *caif   hdlc  mmcnetfilter_bridge  nfsd  sunrpc  usb*
 *can   hsi netfilter  netfilter_ipv4raid  tc_act  wimax*

 *root@beaglebone:/usr/src/linux-3.8.13/include/linux# *

 this info shows that my board shipped with no module support by default
 ..!!!

 now question is
 [1] still i didn't update or upgraded my angstrom os ..shall i need to do
 or is there any other way to insert my hello_world.ko module into my board??
 i found 1 more link for installing  the module libs sturcture and soure
 into the running os . here the link
 http://wiki.replicape.com/index.php?title=Compiling_the_kernel
 will this link  help me to insert also to create  a modules without fail ..

 can you suggest your opinion..pls..




 regards
 siva





 On Saturday, 8 March 2014 14:52:49 UTC+5:30, Brandon I wrote:

 Missed first line on that copy paste. Should be

 KERNELDIR := /usr/src/kernel



 On Sat, Mar 8, 2014 at 1:21 AM, Brandon I brando...@gmail.com wrote:

 Just a regular kernel type makefile. For examlpe, here's mine for a file
 phyaccess.c

  BEAGLEBONE_PROJ=/systems/Projects/beaglebone/workspace/Beaglebone
 MDIO_ROOT=$(BEAGLEBONE_PROJ)/local/MDIODriver

 #http://stackoverflow.com/questions/10176238/how-do-i-
 add-an-include-path-for-kernel-module-makefile
 # for kernel module make uses kbuild. Paths have to be absolute, not
 relative.
 EXTRA_CFLAGS+=-I$(MDIO_ROOT)/include -I$(MDIO_ROOT)
 -I$(BEAGLEBONE_PROJ)/include -I$(BEAGLEBONE_PROJ)/Interface/local/include
 -Werror

 obj-m += phyaccess.o

 all:
  make -C $(KERNELDIR) M=$(PWD) modules

 clean:
  make -C $(KERNELDIR) M=$(PWD) clean




 On Fri, Mar 7, 2014 at 10:57 PM, siva kumar boopathi...@gmail.comwrote:

 thanks for your reply

 yes , u r right  i compiled the module against
 arm-angstrom-linux-gnueabi-gcc but my angstrom os comes with Linaro
 gcc
 root@beaglebone:~# opkg list_installed | grep gcc
 *gcc - linaro-4.7-r9.2*
 gcc-symlinks - linaro-4.7-r9.2
 libgcc-s-dev - linaro-4.7-r9.0
 libgcc1 - linaro-4.7-r9.0
 perl-module-extutils-cbuilder-platform-windows-gcc - 5.14.2-r13.1

 root@beaglebone:~# dmesg | head
 [ 0.00] Booting Linux on physical CPU 0×0
 [ 0.00] Initializing cgroup subsys cpu
 *[ 0.00] Linux version 3.8.13 (koen@rrMBP) (gcc version 4.7.3
 20130205 (prerelease) (Linaro GCC 4.7-2013.02-01) ) #1 SMP Tue Jun 18
 02:11:09 EDT 2013*
 [ 0.00] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7),
 cr=50c5387d
 [ 0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
 instruction cache
 [ 0.00] Machine: Generic AM33XX (Flattened Device Tree), model: TI
 AM335x BeagleBone
 [ 0.00] Memory policy: ECC disabled, Data cache writeback
 [ 0.00] On node 0 totalpages: 130816
 [ 0.00] free_area_init_node: node 0, pgdat c0688d80, node_mem_map
 c06e4000
 [ 0.00] Normal zone: 1024 pages used for memmap

  i done the following steps to update my modules for my board .but it
 says  my kernel headers are up to date.

 --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit https://groups.google.com/d/
 topic/beagleboard/fIJ5YE_fJpg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.



  --
 For more options, visit http://beagleboard.org/discuss
 ---
 You received this message because you are subscribed to a topic in the
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/beagleboard/fIJ5YE_fJpg/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 beagleboard+unsubscr...@googlegroups.comjavascript:_e(%7B%7D,'cvml','beagleboard%2bunsubscr...@googlegroups.com');
 .
 For more options, visit https://groups.google.com/d/optout.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: doubt: where we have to submit our idea?

2014-03-08 Thread Nitin Jain
Sir, i just want to show you my project, for this where should i summit 
this??

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: QNX on BBB

2014-03-08 Thread doog
Have you searched QNX for what they support? If not this page pretty much 
spells it out for you:

http://www.qnx.com/partners/ti/
hint: the page title is QNX Support for TI AM335x

Doug

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: booting error with BBB [Error: unrecognized/unsupported machine ID (r1 = 0x00000e05).]

2014-03-08 Thread t-szczyrba
Looks like DT file loading before booting is missing. 
For kernels 3.2 and BBB you should pre-load dtb with u-boot to boot 
succesfully (or append dtb file to kernel image, but have to  
CONFIG_ARM_APPENDED_DTB kernel compile option enabled).

There is also a possibility that dtb is loaded correctly, but the kernel is 
too big and when decompresses overwrites dtb - it easy to check if the 
situation happened in your case with nm tool- no symbol should be loaded 
above c0f8 for default u-boot config,

T.

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Xenomai master - BBB RCNelson 3.13-bone5 kernel patches

2014-03-08 Thread t-szczyrba
 I also have a working gcc inside, but can't make when system.h, 
asm/.../types.h, xeno_config.h are missing. Copy them from the working 
machinekit on SD doesn't fix the problem.

Please send the makefile  gcc output - I suppose you don't have glibc  
kernel headers installed in the BBB and don't know machinekit how is it to 
be installed. Is the machinekit something like linuxcnc + Ubuntu derivative?

regards,

T.

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] cannot ssh over USB Fist use of board

2014-03-08 Thread Ronny Julian
I've tried on Linix and Windows going over the USB with PUTTY.  THe BBB
disconnects right off.  Is there a setup step I've missed?  I've looked at
3 tutorials on this and all just say to SSH to 192.168.7.2 port 22 but none
give any direction if that does not work.  I've Googled this and found not
too much as well.

The board shows up as a storage device on both machines on Crome browser.
 I can see the files on the flash as well.

Thanks in advance for any help.  My cables will be in soon for HDMI to DVI
but I wanted to get started.
Ronny

-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: learning ARM assy with BBB

2014-03-08 Thread dd
hi azzy.  i ordered a jtag cable and one logic analyzer.  
but now i just learned that i must solder jtag header pins onto the bbb.  
it appears that i can only buy the (samtec) header from digikey for $4.  
but they only ship by courier for $40!  where did u get your headers?  

thx.dd

On Monday, October 28, 2013 5:18:24 PM UTC+2, azzythehillbilly mir wrote:

 Hi Forum,

  

 I have a problem and I am hoping that I kind soul will direct me whereby I 
 am able to help myself get on my feet.

 This is a bit embarrassing, but here it goes. I got myself a BBB because I 
 want to switch from using  MCS-51 processors and the like.  I have no 
 formal schooling in processors or electronics.  I started working on 
 processors around 1980 when I got hold of an Ohio scientific and later an 
 AppleII+. Later moved to Z80/Z8000/8086/68030 and similar as I started to 
 formally design HW and SW for embedded systems. 

 Never had to bother even with  C so have been hacking merrily away with 
 Assembly only. Rarely adding ( with difficulty) bits of code for floating 
 point when my own extended math routines simply would not do.  This works 
 for me as I have learned to cram as much functionality as possible into 
 limited resources.  I can get working code written and debugged faster than 
 most C coders can. I know nearly zero about Linux//Ubuntu/Fedora. Unless 
 someone has worked on the simple old controllers one might not understand 
 how exciting ( mouth watering even! ) it is to contemplate the peripherals 
 this Sitara 3359 processor provides. I just need to get a jump start.

  

 Here is the problem, I want to write code for the Sitara-3359 and learn 
 the nuts and bolts of low level programming (assy). I need some kind of a 
 simple IDE Where I can take control of the processor from reset onwards ( 
 barring un-by passable initializing code prewritten  into the processor?).  
 I have been searching all over the net for just that but come up frustrated 
 by the huge number of names/acronyms and all. There are just too many 
 branches to investigate. I get lost every time I try.  For the moment I 
 want merely to exercise the Sitara and study its responses, no desire to 
 write any commercial application (with the possible exception of a camera 
 interface for my telescopes).

  

 Please kindly somebody point me in the right directions. Once I have the 
 correct IDE set up I can take over and dive into the details. No problem 
 there.

 Thanks in advance


 Azzythehillbilly


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Strange USB duplicate fragment problem

2014-03-08 Thread Terry Hardie
An interesting addition - If I switch the USB 2 hub for a USB 1.1 Hub, the 
problem goes away.

On Friday, March 7, 2014 6:02:39 PM UTC-8, Terry Hardie wrote:

 I'm chasing a problem working on support for Bluetooth 4 LE (Low Energy).

 I have 2 vendor's USB bluetooth receivers. 

 One is a Cambridge Silicon Radio (0a12:0001) and the other is a 
 Broadcom BCM20702A1 (0a5c:21e8). The Broadcom needs a RAM patch to behave 
 properly, but it outside the scope of this problem. BOTH exhibit the same 
 problem (so I seriously doubt it's a problem with the Bluetooth receivers)

 Both devices are operating in HCI mode. I'm running Ubuntu on my 
 BeagleBone Black. I spent a significant time trying to get Bluez 5.15 to 
 build under the standard Angstrom, but never succeeded (too many 
 dependencies I could not satisfy) I started with the standard eMMC flash 
 image, and have worked from there to the point I'm compiling my own kernels 
 for debugging purposes.

 I've also built the latest version of Bluez (5.15)

 The problem is when running a lescan (hcitool lescan) with a LE device in 
 paring mode, which is transmitting a lot of LE Advertising report packets, 
 the HCI drivers eventually loses sync. I've traced it down to a duplicate 
 USB fragment.

 I've tested these USB receivers under Ubuntu on an Intel machine with the 
 same Bluez 5.15, and the problem is not present.

 I used usbmon to do a sniff of the USB traffic. Here's a snippet of a 
 correct HCI LE Advertising report event, followed by one where the middle 
 fragment is repeated (frame 1300 is a repeat) (pcap for this attached)

 No. Time   SourceDestination   
 Protocol Length Info
1291 2014-03-07 02:40:16.942573 host  3.1   
 USB  64 URB_INTERRUPT in
1292 2014-03-07 02:40:16.959480 3.1   host 
  HCI_USB  80 Rcvd Fragment
 3e21020100013c30057cf9e115020105
1293 2014-03-07 02:40:16.959624 host  3.1   
 USB  64 URB_INTERRUPT in
1294 2014-03-07 02:40:16.960449 3.1   host 
  HCI_USB  80 Rcvd Fragment
 0d0953636f736368652050524f580319
1295 2014-03-07 02:40:16.960546 host  3.1   
 USB  64 URB_INTERRUPT in
1296 2014-03-07 02:40:16.961455 3.1   host 
  HCI_EVT  67 Rcvd LE Meta (LE Advertising Report)
 0002ae
1297 2014-03-07 02:40:16.961560 host  3.1   
 USB  64 URB_INTERRUPT in
1298 2014-03-07 02:40:16.981627 3.1   host 
  HCI_USB  80 Rcvd Fragment
 3e21020100013c30057cf9e115020105
1299 2014-03-07 02:40:16.981696 host  3.1   
 USB  64 URB_INTERRUPT in
1300 2014-03-07 02:40:17.002651 3.1   host 
  HCI_USB  80 Rcvd Fragment
 3e21020100013c30057cf9e115020105
1301 2014-03-07 02:40:17.002720 host  3.1   
 USB  64 URB_INTERRUPT in
1302 2014-03-07 02:40:17.003560 3.1   host 
  HCI_USB  80 Rcvd Fragment
 0d0953636f736368652050524f580319
1303 2014-03-07 02:40:17.003649 host  3.1   
 USB  64 URB_INTERRUPT in
1304 2014-03-07 02:40:17.004567 3.1   host 
  HCI_USB  67 Rcvd Fragment
 0002b5

 I'm really tearing my hair out over this one. Any suggestions would be 
 greatly appreciated.


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: QNX on BBB

2014-03-08 Thread Thorsten Gonschior
hey doug, thanks for reply. 
yes I lready did and also found that, lets say ... claim ;)

QNX support did not respond yet and the links on their pages on that topic 
all end dead on foundry 27.
first glance it looks that there is something going on but nothing to find 
after some digging.

regarding QNX I wonder in what situation they are at all currently. After 
being sold to RIM ist there still interest in other embedded market, than 
automotive and mobile communication?

Several emails to sales for quotes and services for technical issues are 
not been responded.


Am Samstag, 8. März 2014 21:32:36 UTC+1 schrieb doog:

 Have you searched QNX for what they support? If not this page pretty much 
 spells it out for you:

 http://www.qnx.com/partners/ti/
 hint: the page title is QNX Support for TI AM335x

 Doug


-- 
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 beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.