[beagleboard] Re: Mcbsp error

2017-01-05 Thread Ran Shalit
Hello,

I know it's old thread.
But did you resolve it ?

Can you please share the solution if possible ?

Thank you!
Ran

On Tuesday, October 19, 2010 at 2:21:35 PM UTC+3, fozay wrote:
>
> Hello everybody; 
>
> i try to insmod my mcbsp driver but i obtain these errors. Ijust try 
> to init and exit. What is the reason do you have any idea? 
>
>
> ERROR: 
> [75640.283355] Unable to handle kernel NULL pointer dereference at 
> virtual address  
> [75640.291900] pgd = ce798000 
> [75640.294891] [] *pgd=8e6c8031, *pte=, *ppte= 
> [75640.301239] Internal error: Oops: 17 [#6] PREEMPT 
> [75640.305938] last sysfs file: /sys/devices/platform/i2c_omap.1/ 
> i2c-1/1-0049/twl4030_pwrbutton/input/input1/capabilities/sw 
> [75640.316955] Modules linked in: mcbsp_start_2_dif1(+) 
> mcbsp_start_2_dif(+) mcbsp_start_1_req(+) mcbsp_start_1_conf4(+) 
> mcbsp_start_1_conf3(+) mcbsp_start_] 
> [75640.346496] CPU: 0Tainted: G  D W   (2.6.32 #3) 
> [75640.351776] PC is at omap_mcbsp_config+0x28/0xb0 
> [75640.356445] LR is at mcbsp_init+0x18/0x44 [mcbsp_start_2_dif1] 
> [75640.362304] pc : []lr : []psr: 8013 
> [75640.362304] sp : cdc29f58  ip :   fp :  
> [75640.373840] r10: 0004  r9 : cdc28000  r8 : c003c144 
> [75640.379089] r7 :   r6 : bf17b030  r5 : bf17b0c8  r4 : 
>  
> [75640.385650] r3 : c06758a4  r2 : cdc28000  r1 :   r0 : 
>  
> [75640.392211] Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM 
> Segment user 
> [75640.399383] Control: 10c5387d  Table: 8e798019  DAC: 0015 
> [75640.405151] Process insmod (pid: 4210, stack limit = 0xcdc282f0) 
> [75640.411193] Stack: (0xcdc29f58 to 0xcdc2a000) 
> [75640.415588] 
> 9f40:    
> c003b384 
> [75640.423797] 9f60: 0c74 bf17b0c8  00012018 c003c144 
>  bf17b0c8  
> [75640.432037] 9f80: 00012018 c00a0214 0004 cf817980 cdf391c0 
> 4000e920 4000 00012018 
> [75640.440246] 9fa0: 0080 c003bfc0 4000e920 4000 00012018 
> 0c74 00012008 0001 
> [75640.448486] 9fc0: 4000e920 4000 00012018 0080 00012008 
>  0004  
> [75640.456695] 9fe0: bec97e72 bec97bfc 8e90 400e9264 6010 
> 00012018   
> [75640.464935] [] (omap_mcbsp_config+0x28/0xb0) from 
> [] (mcbsp_init+0x18/0x44 [mcbsp_start_2_dif1]) 
> [75640.47] [] (mcbsp_init+0x18/0x44 
> [mcbsp_start_2_dif1]) from [] (do_one_initcall+0x5c/0x1bc) 
> [75640.486053] [] (do_one_initcall+0x5c/0x1bc) from 
> [] (sys_init_module+0xc0/0x1f0) 
> [75640.495239] [] (sys_init_module+0xc0/0x1f0) from 
> [] (ret_fast_syscall+0x0/0x2c) 
> [75640.504364] Code: e59f1084 e59f0084 ea10cf37 e59f3080 (e1d110b0) 
> [75640.515167] ---[ end trace d622b392ba50038f ]--- 
> Segmentation fault 
>
>
> CODE: 
>
>
>
>
> #include  
> #include  
> #include  
>
> MODULE_LICENSE("GPL"); 
>
>  const struct omap_mcbsp_reg_cfg *config; 
>
> static int mcbsp_init(void) 
> { 
> omap_mcbsp_config(0, config); 
>
> omap_mcbsp_start(0,500,700); 
> printk(KERN_INFO "Hello,world\n"); 
> return 0; 
> } 
>
> static int mcbsp_exit(void) 
> { 
>
> omap_mcbsp_stop(0,500,500); 
>
> printk(KERN_INFO "goodbye all\n"); 
> return 0; 
> } 
>
> module_init(mcbsp_init); 
> module_exit(mcbsp_exit); 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/a90e8e08-0db4-4486-9382-dbb7f828a5b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Half-duplex SPI using single data wire

2016-07-12 Thread Ran Shalit
Hi Jacek,

How did you resolve the 3-wire issue with beagle ?
I don't se ethat the driver supports 3-wire.

Regards,
Ran


On Wednesday, July 17, 2013 at 4:09:26 AM UTC+3, Jacek Radzikowski wrote:
>
> I found in device tree docs SPI property "spi-3wire" which does 
> exactly what I need, but I can't find in spi-omap2-mcspi.c any 
> references to this mode. Has anybody tried to use SPI in 3-wire mode? 
> Did it work? 
>
> thx, 
> j. 
>
>
> On Tue, Jul 16, 2013 at 9:11 AM, Jacek Radzikowski 
>  wrote: 
> > Thanks. But this tutorial only shows how to enable SPI in 3.2 kernel. 
> > I have 4-wire SPI working, I need to configure it in 3-wire mode. 
> > 
> > j. 
> > 
> > 
> > On Tue, Jul 16, 2013 at 7:04 AM, Yiling Cao  > wrote: 
> >> plz follow this guide 
> >> http://communistcode.co.uk/blog/blogPost.php?blogPostID=1 
> >> 
> >> 
> >> I have made various devices working. 
> >> 
> >> 
> >> On Tue, Jul 16, 2013 at 2:52 PM, Jacek Radzikowski 
> >>  wrote: 
> >>> 
> >>> Hello, 
> >>> 
> >>> I want to connect to my beaglebone an LCD display which uses a 3-wire 
> >>> SPI interface: communication in both directions (to and from device) 
> >>> is implemented using only CS, SCK and a single data wire. The data 
> >>> wire is used in half-duplex mode, with direction switched depending 
> >>> whether write or read operation is expected. The SRM says that the SPI 
> >>> interface in the processor supports this mode, but how can I control 
> >>> the direction of the data line from user-space program? Since I can't 
> >>> control pinmuxing, changing pin direction is not possible. Will it be 
> >>> enough just to flip the bit in OE register? 
> >>> 
> >>> Thx, 
> >>> j. 
> >>> 
> >>> 
> >>> -- 
> >>> Given a choice between two theories, take the one which is funnier 
> >>> 
> >>> -- 
> >>> 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...@googlegroups.com . 
> >>> For more options, visit https://groups.google.com/groups/opt_out. 
> >>> 
> >>> 
> >> 
> >> -- 
> >> 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...@googlegroups.com . 
> >> For more options, visit https://groups.google.com/groups/opt_out. 
> >> 
> >> 
> > 
> > 
> > 
> > -- 
> > Given a choice between two theories, take the one which is funnier 
>
>
>
> -- 
> Given a choice between two theories, take the one which is funnier 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/30ae3a36-4a0f-42b4-b2c1-59fb607827b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] ethernet gadget with beagleboard

2015-01-16 Thread Ran Shalit
Hi,

I solved the issue.
I compile now inside kernel and added:
CONFIG_USB_MUSB_OMAP2PLUS_GLUE

Thank you very much for all help!
Ran

On Fri, Jan 16, 2015 at 8:23 AM, Ran Shalit ransha...@gmail.com wrote:

 Hello,

 Can anyone please try to see if he can work with usb otg and beagleboard
 this is the download page for kernel 2.6.37 I use:

 http://downloads.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/OMAP_04_02/04_02_00_07/index_FDS.html

 Regards,
 Ran

 On Thu, Jan 15, 2015 at 8:16 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi,

 When I compiled earlier kernel version which are supposed to support
 OMAP3530 with beaglebone I fail to start kernel (psp 3.0.1.6, kernel
 2.6.32);

 1920736 bytes read
 ## Booting kernel from Legacy Image at 8030 ...
Image Name:   Linux-2.6.32
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:1920672 Bytes =  1.8 MB
Load Address: 80008000
Entry Point:  80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
 OK

 Starting kernel ...

 Uncompressing
 Linux
 done, booting the kernel.

 -- NO  more prinings --

 I just need to work with usb ethernet in 2.6.37... why does it fail with
 the kernel 2.6.37 ?

 Regards,
 Ran



 On Thu, Jan 15, 2015 at 7:14 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi,

 Did anyone tried to work with the usb connector (the one that is marked
 as usb otg), for ethernet with 2.6.37 ?
 If not - maybe I should try use some older version for beagleboard ?
 Regards,
 Ran

 On Thu, Jan 15, 2015 at 6:36 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi Robert,

 Thanks,
 I have compiled both modules and kernel, but still some error, without
 any information.

 root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
 g_ether.ko
 insmod: error inserting 'g_ether.ko': -1 No such device

 The new boot log is below.

 Is there any idea why it fails ?

 Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
 Beagle Rev C5
 Reading boot sector
 Loading u-boot.bin from mmc


 U-Boot 2009.06-rc2 (Jan 15 2015 - 11:12:37)

 , CPU-OPP2 L3-165MHz
 OMAP3 Beagle board + LPDDR/NAND
 DRAM:  256 MB
 NAND:  512 MiB
 In:serial
 Out:   serial
 Err:   serial
 Board revision Ax/Bx
 Die ID #74aa0007015a676401014023
 Hit any key to stop autoboot:  0
 mmc1 is available
 reading uImage

 2927348 bytes read
 ## Booting kernel from Legacy Image at 8030 ...
Image Name:   Linux-2.6.37
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:2927284 Bytes =  2.8 MB
Load Address: 80008000
Entry Point:  80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
 OK

 Starting kernel ...

 Uncompressing Linux... done, booting the kernel.
 [0.00] Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc
 version 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #8 Thu Jan 15 18:29:23 IST
 2015
 [0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7),
 cr=10c53c7f
 [0.00] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
 instruction cache
 [0.00] Machine: OMAP3 Beagle Board
 [0.00] Reserving 4194304 bytes SDRAM for VRAM
 [0.00] Memory policy: ECC disabled, Data cache writeback
 [0.00] OMAP3430/3530 ES3.1.2 (l2cache iva sgx neon isp 720mhz )
 [0.00] SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x1
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 64000
 [0.00] Kernel command line: console=ttyO2,115200n8
 root=/dev/mmcblk0p2 rw rootwait
 [0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072
 bytes)
 [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
 [0.00] Memory: 252MB = 252MB total
 [0.00] Memory: 242712k/242712k available, 19432k reserved, 0K
 highmem
 [0.00] Virtual kernel memory layout:
 [0.00] vector  : 0x - 0x1000   (   4 kB)
 [0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
 [0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
 [0.00] vmalloc : 0xd080 - 0xf800   ( 632 MB)
 [0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
 [0.00] modules : 0xbf00 - 0xc000   (  16 MB)
 [0.00]   .init : 0xc0008000 - 0xc003a000   ( 200 kB)
 [0.00]   .text : 0xc003a000 - 0xc056e0d0   (5329 kB)
 [0.00]   .data : 0xc057 - 0xc0725220   (1749 kB)
 [0.00] NR_IRQS:409
 [0.00] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
 [0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c2: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c3: softreset failed (waited 1 usec)
 [0.00] Reprogramming SDRC clock

Re: [beagleboard] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget

Regards,
Ran


On Thu, Jan 15, 2015 at 6:26 PM, Robert Nelson robertcnel...@gmail.com
wrote:

 On Thu, Jan 15, 2015 at 10:23 AM, Ran Shalit ransha...@gmail.com wrote:
  Hi Robert,
 
  Thank you very much.
  I was lazy not to notice that
  It now seems better (less errors on boot), but still fails with same
 error:
 insmod: error inserting 'g_ether.ko': -1 No such device
  Can you give me another hint what might cause such failure?
 
  This is the boot log:
 
  Last login: Thu Jan 12 12:31:58 GMT 2012 on ttyO2
  root@beagleboard:~#
  root@beagleboard:~#
  root@beagleboard:~#
  root@beagleboard:~# modprobe g_ether
  [   30.667053] g_ether: disagrees about version of symbol module_layout
  FATAL: Error inserting g_ether

 This means your kernel was built seperatly from the modules..

 When you build your kernel, just also build 'make modules' and install
 them to the rootfs..


  (/lib/modules/2.6.37/kernel/drivers/usb/gadget/g_ether.ko): Invalid
 module
  format
  root@beagleboard:~# d
 
  Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
  Beagle Rev C5
  Reading boot sector
  Loading u-boot.bin from mmc
 
 
  U-Boot 2009.06-rc2 (Jan 15 2015 - 11:12:37)
 
  , CPU-OPP2 L3-165MHz
  OMAP3 Beagle board + LPDDR/NAND
  DRAM:  256 MB
  NAND:  512 MiB
  In:serial
  Out:   serial
  Err:   serial
  Board revision Ax/Bx
  Die ID #74aa0007015a676401014023
  Hit any key to stop autoboot:  0
  mmc1 is available
  reading uImage
 
  2918324 bytes read
  ## Booting kernel from Legacy Image at 8030 ...
 Image Name:   Linux-2.6.37
 Image Type:   ARM Linux Kernel Image (uncompressed)
 Data Size:2918260 Bytes =  2.8 MB
 Load Address: 80008000
 Entry Point:  80008000
 Verifying Checksum ... OK
 Loading Kernel Image ... OK
  OK
 
  Starting kernel ...
 
  Uncompressing Linux... done, booting the kernel.
  [0.00] Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc version
  4.3.3 (Sourcery G++ Lite 2009q1-203) ) #7 Thu Jan 15 18:09:40 IST 2015
  [0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7),
  cr=10c53c7f
  [0.00] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
  instruction cache
  [0.00] Machine: OMAP3 Beagle Board
  [0.00] Reserving 4194304 bytes SDRAM for VRAM
  [0.00] Memory policy: ECC disabled, Data cache writeback
  [0.00] OMAP3430/3530 ES3.1.2 (l2cache iva sgx neon isp 720mhz )
  [0.00] SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x1
  [0.00] Built 1 zonelists in Zone order, mobility grouping on.
 Total
  pages: 64000
  [0.00] Kernel command line: console=ttyO2,115200n8
  root=/dev/mmcblk0p2 rw rootwait
  [0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
  [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072
  bytes)
  [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
  [0.00] Memory: 252MB = 252MB total
  [0.00] Memory: 242740k/242740k available, 19404k reserved, 0K
  highmem
  [0.00] Virtual kernel memory layout:
  [0.00] vector  : 0x - 0x1000   (   4 kB)
  [0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
  [0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
  [0.00] vmalloc : 0xd080 - 0xf800   ( 632 MB)
  [0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
  [0.00] modules : 0xbf00 - 0xc000   (  16 MB)
  [0.00]   .init : 0xc0008000 - 0xc003a000   ( 200 kB)
  [0.00]   .text : 0xc003a000 - 0xc0568f4c   (5308 kB)
  [0.00]   .data : 0xc056a000 - 0xc071f1a0   (1749 kB)
  [0.00] NR_IRQS:409
  [0.00] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
  [0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec)
  [0.00] omap_hwmod: i2c2: softreset failed (waited 1 usec)
  [0.00] omap_hwmod: i2c3: softreset failed (waited 1 usec)
  [0.00] Reprogramming SDRC clock to 33200 Hz
  [0.00] IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96
  interrupts
  [0.00] Total of 96 interrupts on 1 active controller
  [0.00] GPMC revision 5.0
  [0.00] Trying to install interrupt handler for IRQ402
  [0.00] Trying to install interrupt handler for IRQ403
  [0.00] Trying to install interrupt handler for IRQ404
  [0.00] Trying to install interrupt handler for IRQ405
  [0.00] Trying to install interrupt handler for IRQ406
  [0.00] Trying to install interrupt handler for IRQ407
  [0.00] Trying to install interrupt handler for IRQ408
  [0.00] Trying to install type control for IRQ409
  [0.00] Trying to set irq flags for IRQ409
  [0.00] OMAP clockevent source: GPTIMER12 at 32768 Hz
  [0.00] Console: colour dummy device 80x30

Re: [beagleboard] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
Hi,

When I compiled earlier kernel version which are supposed to support
OMAP3530 with beaglebone I fail to start kernel (psp 3.0.1.6, kernel
2.6.32);

1920736 bytes read
## Booting kernel from Legacy Image at 8030 ...
   Image Name:   Linux-2.6.32
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:1920672 Bytes =  1.8 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing
Linux
done, booting the kernel.

-- NO  more prinings --

I just need to work with usb ethernet in 2.6.37... why does it fail with
the kernel 2.6.37 ?

Regards,
Ran



On Thu, Jan 15, 2015 at 7:14 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi,

 Did anyone tried to work with the usb connector (the one that is marked as
 usb otg), for ethernet with 2.6.37 ?
 If not - maybe I should try use some older version for beagleboard ?
 Regards,
 Ran

 On Thu, Jan 15, 2015 at 6:36 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi Robert,

 Thanks,
 I have compiled both modules and kernel, but still some error, without
 any information.

 root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
 g_ether.ko
 insmod: error inserting 'g_ether.ko': -1 No such device

 The new boot log is below.

 Is there any idea why it fails ?

 Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
 Beagle Rev C5
 Reading boot sector
 Loading u-boot.bin from mmc


 U-Boot 2009.06-rc2 (Jan 15 2015 - 11:12:37)

 , CPU-OPP2 L3-165MHz
 OMAP3 Beagle board + LPDDR/NAND
 DRAM:  256 MB
 NAND:  512 MiB
 In:serial
 Out:   serial
 Err:   serial
 Board revision Ax/Bx
 Die ID #74aa0007015a676401014023
 Hit any key to stop autoboot:  0
 mmc1 is available
 reading uImage

 2927348 bytes read
 ## Booting kernel from Legacy Image at 8030 ...
Image Name:   Linux-2.6.37
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:2927284 Bytes =  2.8 MB
Load Address: 80008000
Entry Point:  80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
 OK

 Starting kernel ...

 Uncompressing Linux... done, booting the kernel.
 [0.00] Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc version
 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #8 Thu Jan 15 18:29:23 IST 2015
 [0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7),
 cr=10c53c7f
 [0.00] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
 instruction cache
 [0.00] Machine: OMAP3 Beagle Board
 [0.00] Reserving 4194304 bytes SDRAM for VRAM
 [0.00] Memory policy: ECC disabled, Data cache writeback
 [0.00] OMAP3430/3530 ES3.1.2 (l2cache iva sgx neon isp 720mhz )
 [0.00] SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x1
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 64000
 [0.00] Kernel command line: console=ttyO2,115200n8
 root=/dev/mmcblk0p2 rw rootwait
 [0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072
 bytes)
 [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
 [0.00] Memory: 252MB = 252MB total
 [0.00] Memory: 242712k/242712k available, 19432k reserved, 0K
 highmem
 [0.00] Virtual kernel memory layout:
 [0.00] vector  : 0x - 0x1000   (   4 kB)
 [0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
 [0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
 [0.00] vmalloc : 0xd080 - 0xf800   ( 632 MB)
 [0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
 [0.00] modules : 0xbf00 - 0xc000   (  16 MB)
 [0.00]   .init : 0xc0008000 - 0xc003a000   ( 200 kB)
 [0.00]   .text : 0xc003a000 - 0xc056e0d0   (5329 kB)
 [0.00]   .data : 0xc057 - 0xc0725220   (1749 kB)
 [0.00] NR_IRQS:409
 [0.00] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
 [0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c2: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c3: softreset failed (waited 1 usec)
 [0.00] Reprogramming SDRC clock to 33200 Hz
 [0.00] IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96
 interrupts
 [0.00] Total of 96 interrupts on 1 active controller
 [0.00] GPMC revision 5.0
 [0.00] Trying to install interrupt handler for IRQ402
 [0.00] Trying to install interrupt handler for IRQ403
 [0.00] Trying to install interrupt handler for IRQ404
 [0.00] Trying to install interrupt handler for IRQ405
 [0.00] Trying to install interrupt handler for IRQ406
 [0.00] Trying to install interrupt

Re: [beagleboard] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
Hi,

Did anyone tried to work with the usb connector (the one that is marked as
usb otg), for ethernet with 2.6.37 ?
If not - maybe I should try use some older version for beagleboard ?
Regards,
Ran

On Thu, Jan 15, 2015 at 6:36 PM, Ran Shalit ransha...@gmail.com wrote:

 Hi Robert,

 Thanks,
 I have compiled both modules and kernel, but still some error, without any
 information.

 root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
 g_ether.ko
 insmod: error inserting 'g_ether.ko': -1 No such device

 The new boot log is below.

 Is there any idea why it fails ?

 Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
 Beagle Rev C5
 Reading boot sector
 Loading u-boot.bin from mmc


 U-Boot 2009.06-rc2 (Jan 15 2015 - 11:12:37)

 , CPU-OPP2 L3-165MHz
 OMAP3 Beagle board + LPDDR/NAND
 DRAM:  256 MB
 NAND:  512 MiB
 In:serial
 Out:   serial
 Err:   serial
 Board revision Ax/Bx
 Die ID #74aa0007015a676401014023
 Hit any key to stop autoboot:  0
 mmc1 is available
 reading uImage

 2927348 bytes read
 ## Booting kernel from Legacy Image at 8030 ...
Image Name:   Linux-2.6.37
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:2927284 Bytes =  2.8 MB
Load Address: 80008000
Entry Point:  80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
 OK

 Starting kernel ...

 Uncompressing Linux... done, booting the kernel.
 [0.00] Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc version
 4.3.3 (Sourcery G++ Lite 2009q1-203) ) #8 Thu Jan 15 18:29:23 IST 2015
 [0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7),
 cr=10c53c7f
 [0.00] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
 instruction cache
 [0.00] Machine: OMAP3 Beagle Board
 [0.00] Reserving 4194304 bytes SDRAM for VRAM
 [0.00] Memory policy: ECC disabled, Data cache writeback
 [0.00] OMAP3430/3530 ES3.1.2 (l2cache iva sgx neon isp 720mhz )
 [0.00] SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x1
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 64000
 [0.00] Kernel command line: console=ttyO2,115200n8
 root=/dev/mmcblk0p2 rw rootwait
 [0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072
 bytes)
 [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536
 bytes)
 [0.00] Memory: 252MB = 252MB total
 [0.00] Memory: 242712k/242712k available, 19432k reserved, 0K
 highmem
 [0.00] Virtual kernel memory layout:
 [0.00] vector  : 0x - 0x1000   (   4 kB)
 [0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
 [0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
 [0.00] vmalloc : 0xd080 - 0xf800   ( 632 MB)
 [0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
 [0.00] modules : 0xbf00 - 0xc000   (  16 MB)
 [0.00]   .init : 0xc0008000 - 0xc003a000   ( 200 kB)
 [0.00]   .text : 0xc003a000 - 0xc056e0d0   (5329 kB)
 [0.00]   .data : 0xc057 - 0xc0725220   (1749 kB)
 [0.00] NR_IRQS:409
 [0.00] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
 [0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c2: softreset failed (waited 1 usec)
 [0.00] omap_hwmod: i2c3: softreset failed (waited 1 usec)
 [0.00] Reprogramming SDRC clock to 33200 Hz
 [0.00] IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96
 interrupts
 [0.00] Total of 96 interrupts on 1 active controller
 [0.00] GPMC revision 5.0
 [0.00] Trying to install interrupt handler for IRQ402
 [0.00] Trying to install interrupt handler for IRQ403
 [0.00] Trying to install interrupt handler for IRQ404
 [0.00] Trying to install interrupt handler for IRQ405
 [0.00] Trying to install interrupt handler for IRQ406
 [0.00] Trying to install interrupt handler for IRQ407
 [0.00] Trying to install interrupt handler for IRQ408
 [0.00] Trying to install type control for IRQ409
 [0.00] Trying to set irq flags for IRQ409
 [0.00] OMAP clockevent source: GPTIMER12 at 32768 Hz
 [0.00] Console: colour dummy device 80x30
 [0.00] Lock dependency validator: Copyright (c) 2006 Red Hat,
 Inc., Ingo Molnar
 [0.00] ... MAX_LOCKDEP_SUBCLASSES:  8
 [0.00] ... MAX_LOCK_DEPTH:  48
 [0.00] ... MAX_LOCKDEP_KEYS:8191
 [0.00] ... CLASSHASH_SIZE:  4096
 [0.00] ... MAX_LOCKDEP_ENTRIES: 16384
 [0.00] ... MAX_LOCKDEP_CHAINS:  32768
 [0.00] ... CHAINHASH_SIZE:  16384
 [0.00]  memory used by lock dependency info: 3951 kB
 [0.00]  per task-struct memory footprint: 2304 bytes

Re: [beagleboard] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
/   video/
root@beagleboard:/# cd /lib/modules/2.6.37/kernel/drivers/usb/gadget/g_
-sh: cd: /lib/modules/2.6.37/kernel/drivers/usb/gadget/g_: No such file or
directory
root@beagleboard:/# cd /lib/modules/2.6.37/kernel/drivers/usb/gadget/
root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
g_ether.ko
insmod: error inserting 'g_ether.ko': -1 No such device
root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# rmmod
g_ether
ERROR: Module g_ether does not exist in /proc/modules
root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
g_ether.ko
insmod: error inserting 'g_ether.ko': -1 No such device
root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget#

Thanks, Ran

On Thu, Jan 15, 2015 at 5:42 PM, Robert Nelson robertcnel...@gmail.com
wrote:

 On Thu, Jan 15, 2015 at 9:39 AM, Ran Shalit ransha...@gmail.com wrote:
 
 
  Hi Robert,
 
  Thanks for the hint,
  But I re-check the config and it seems that all relevant USB flags are
  configured correctly:
 
  CONFIG_V4L_USB_DRIVERS=y
  CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
  CONFIG_USB_GSPCA=m
  CONFIG_SND_USB=y
  CONFIG_USB_HID=y
  CONFIG_USB_SUPPORT=y
  CONFIG_USB_ARCH_HAS_HCD=y
  CONFIG_USB_ARCH_HAS_OHCI=y
  CONFIG_USB_ARCH_HAS_EHCI=y
  CONFIG_USB=y
  CONFIG_USB_DEVICE_CLASS=y
  CONFIG_USB_MUSB_HDRC=y
  CONFIG_USB_MUSB_OMAP2PLUS_GLUE=y
  CONFIG_USB_MUSB_OMAP2PLUS=y
  CONFIG_USB_MUSB_PERIPHERAL=y
  CONFIG_USB_GADGET_MUSB_HDRC=y
  CONFIG_USB_INVENTRA_DMA_HW=y
  CONFIG_USB_INVENTRA_DMA=y
  CONFIG_MUSB_USE_SYSTEM_DMA_WORKAROUND=y
  CONFIG_USB_MUSB_DEBUG=y
  CONFIG_USB_GADGET=y
  CONFIG_USB_GADGET_VBUS_DRAW=2
  CONFIG_USB_GADGET_SELECTED=y
  CONFIG_USB_GADGET_DUALSPEED=y
  CONFIG_USB_ETH=m
  CONFIG_USB_ETH_RNDIS=y
  CONFIG_USB_FILE_STORAGE=m
  CONFIG_USB_OTG_UTILS=y
 
  Do you find anything missing ?

 [3.843353] 28systemd[1]: CONFIG_CGROUPS was not set when your
 kernel was compiled. Systems without control groups are not supported.
 We will now sleep for 10s, and then continue boot-up. Expect breakage
 and please do not file bugs. Instead fix your kernel and enable
 CONFIG_CGROUPS.


 Regards,

 --
 Robert Nelson
 http://www.rcn-ee.com/

 --
 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/RznTdyaz2gg/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] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
Hi Robert,

Thanks for the hint,
But I re-check the config and it seems that all relevant USB flags are
configured correctly:

CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
CONFIG_USB_GSPCA=m
CONFIG_SND_USB=y
CONFIG_USB_HID=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICE_CLASS=y
CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_MUSB_OMAP2PLUS_GLUE=y
CONFIG_USB_MUSB_OMAP2PLUS=y
CONFIG_USB_MUSB_PERIPHERAL=y
CONFIG_USB_GADGET_MUSB_HDRC=y
CONFIG_USB_INVENTRA_DMA_HW=y
CONFIG_USB_INVENTRA_DMA=y
CONFIG_MUSB_USE_SYSTEM_DMA_WORKAROUND=y
CONFIG_USB_MUSB_DEBUG=y
CONFIG_USB_GADGET=y
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_SELECTED=y
CONFIG_USB_GADGET_DUALSPEED=y
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y
CONFIG_USB_FILE_STORAGE=m
CONFIG_USB_OTG_UTILS=y

Do you find anything missing ?

Regards,
Ran

On Thu, Jan 15, 2015 at 4:27 PM, Robert Nelson robertcnel...@gmail.com
wrote:

 On Thu, Jan 15, 2015 at 8:09 AM, Ran Shalit ransha...@gmail.com wrote:
 
 
 
  On Thu, Jan 15, 2015 at 3:22 PM, Ran Shalit ransha...@gmail.com wrote:
 
  Hello,
 
 
  I have trouble using ethernet usb gadget driver on the beagleboard
  (omap3530).
 
  I am using SDK 4.2.0.7 for the kernel, I've compiled it with
 beaglebpoard
  config, so everything is expected to work as required on this EVM.
 
  I have compiled both kernel and modules with ethernet gadget module
  enabled, but on trying to insmod the driver, I get the following;
 
  root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
  g_ether.ko
 
  insmod: error inserting 'g_ether.ko': -1 No such device
 
 
  Did anyone encounter such failure ?
 
  Attached boot log.Regards,
 
 
 
  Hi,
  I suspect it is related to the following error:
 
  Welcome to The ֵngstrצm Distribution!
 
  [3.811035] 28systemd[1]: /sbin/modprobe failed with error code 1.
  [3.822387] 30systemd[1]: Set hostname to beagleboard.
  [3.843353] 28systemd[1]: CONFIG_CGROUPS was not set when your
 kernel
  was compiled. Systems without control groups are not supported. We will
 now
  sleep for 10s, and then continue boot-up. Expect breakage and please do
 not
  file bugs. Instead fix your kernel and enable CONFIG_CGROUPS.
  [   13.897247] 28systemd[1]: No control group support available, not
  creating root group.
  [   14.307220] 27systemd[1]: Failed to open /dev/autofs: No such file
 or
  directory
  [   14.315338] 27systemd[1]: Failed to initialize automounter: No such
  file or directory
  [   14.323974] 29systemd[1]: Unit proc-sys-fs-binfmt_misc.automount
  entered failed state.
  Starting Runtime Directory...
 
  Is anyone familiar with it ?

 It should be pretty obvious, it's actually telling you twice what
 kernel config your missing..

 Hint: it's telling you your kernel is mis-configured, add the config
 option and reboot..

 Regards,

 --
 Robert Nelson
 http://www.rcn-ee.com/

 --
 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/RznTdyaz2gg/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] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
.Maybe debmod ?
depmod -a
then:
modprobe g_ether

I've tried that too...
Still same result.
We have another nibary which works well with g_ether, (but we don't have
the sources for that binary so it does not help a lot, except for telling
us that there is no HW failure)

What can I do ? Is it a problem in this package (TI'S PSP 04.02.00.07) ?

Thank you,
Ran

On Thu, Jan 15, 2015 at 6:38 PM, Robert Nelson robertcnel...@gmail.com
wrote:

 On Thu, Jan 15, 2015 at 10:36 AM, Ran Shalit ransha...@gmail.com wrote:
  Hi Robert,
 
  Thanks,
  I have compiled both modules and kernel, but still some error, without
 any
  information.
 
  root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
  g_ether.ko
  insmod: error inserting 'g_ether.ko': -1 No such device
 
  The new boot log is below.
 
  Is there any idea why it fails ?

 Maybe debmod ?

 depmod -a

 then:

 modprobe g_ether

 Otherwise it is 2.6.37

 Regards,


 --
 Robert Nelson
 http://www.rcn-ee.com/

 --
 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/RznTdyaz2gg/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] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit


Hello,


I have trouble using ethernet usb gadget driver on the beagleboard 
(omap3530).

I am using SDK 4.2.0.7 for the kernel, I've compiled it with beaglebpoard 
config, so everything is expected to work as required on this EVM.

I have compiled both kernel and modules with ethernet gadget module 
enabled, but on trying to insmod the driver, I get the following;

root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod 
g_ether.ko

insmod: error inserting 'g_ether.ko': -1 No such device


Did anyone encounter such failure ?

Attached boot log.Regards,

Ran

-- 
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.

Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
Beagle Rev C5
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2009.06-rc2 (Jan 15 2015 - 11:12:37)

, CPU-OPP2 L3-165MHz
OMAP3 Beagle board + LPDDR/NAND
DRAM:  256 MB
NAND:  512 MiB
In:serial
Out:   serial
Err:   serial
Board revision Ax/Bx
Die ID #74aa0007015a676401014023
Hit any key to stop autoboot:  0
mmc1 is available
reading uImage

3064968 bytes read
## Booting kernel from Legacy Image at 8030 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:3064904 Bytes =  2.9 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[0.00] Linux version 2.6.37 (ubuntu@ubuntu-laptop) (gcc version 4.3.3 
(Sourcery G++ Lite 2009q1-203) ) #5 Thu Jan 15 13:40:05 IST 2015
[0.00] CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
[0.00] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction 
cache
[0.00] Machine: OMAP3 Beagle Board
[0.00] Reserving 4194304 bytes SDRAM for VRAM
[0.00] Memory policy: ECC disabled, Data cache writeback
[0.00] OMAP3430/3530 ES3.1.2 (l2cache iva sgx neon isp 720mhz )
[0.00] SRAM: Mapped pa 0x4020 to va 0xfe40 size: 0x1
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 64000
[0.00] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 
rw rootwait
[0.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
[0.00] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[0.00] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[0.00] Memory: 252MB = 252MB total
[0.00] Memory: 242452k/242452k available, 19692k reserved, 0K highmem
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] DMA : 0xffc0 - 0xffe0   (   2 MB)
[0.00] vmalloc : 0xd080 - 0xf800   ( 632 MB)
[0.00] lowmem  : 0xc000 - 0xd000   ( 256 MB)
[0.00] modules : 0xbf00 - 0xc000   (  16 MB)
[0.00]   .init : 0xc0008000 - 0xc003a000   ( 200 kB)
[0.00]   .text : 0xc003a000 - 0xc05abf00   (5576 kB)
[0.00]   .data : 0xc05ac000 - 0xc07681a0   (1777 kB)
[0.00] NR_IRQS:409
[0.00] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[0.00] omap_hwmod: i2c1: softreset failed (waited 1 usec)
[0.00] omap_hwmod: i2c2: softreset failed (waited 1 usec)
[0.00] omap_hwmod: i2c3: softreset failed (waited 1 usec)
[0.00] Reprogramming SDRC clock to 33200 Hz
[0.00] IRQ: Found an INTC at 0xfa20 (revision 4.0) with 96 
interrupts
[0.00] Total of 96 interrupts on 1 active controller
[0.00] GPMC revision 5.0
[0.00] Trying to install interrupt handler for IRQ402
[0.00] Trying to install interrupt handler for IRQ403
[0.00] Trying to install interrupt handler for IRQ404
[0.00] Trying to install interrupt handler for IRQ405
[0.00] Trying to install interrupt handler for IRQ406
[0.00] Trying to install interrupt handler for IRQ407
[0.00] Trying to install interrupt handler for IRQ408
[0.00] Trying to install type control for IRQ409
[0.00] Trying to set irq flags for IRQ409
[0.00] OMAP clockevent source: GPTIMER12 at 32768 Hz
[0.00] Console: colour dummy device 80x30
[0.00] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., 
Ingo Molnar
[0.00] ... MAX_LOCKDEP_SUBCLASSES:  8
[0.00] ... MAX_LOCK_DEPTH:  48
[0.00] ... MAX_LOCKDEP_KEYS:8191
[0.00] ... CLASSHASH_SIZE:  4096
[0.00] ... 

Re: [beagleboard] ethernet gadget with beagleboard

2015-01-15 Thread Ran Shalit
On Thu, Jan 15, 2015 at 3:22 PM, Ran Shalit ransha...@gmail.com wrote:

 Hello,


 I have trouble using ethernet usb gadget driver on the beagleboard
 (omap3530).

 I am using SDK 4.2.0.7 for the kernel, I've compiled it with beaglebpoard
 config, so everything is expected to work as required on this EVM.

 I have compiled both kernel and modules with ethernet gadget module
 enabled, but on trying to insmod the driver, I get the following;

 root@beagleboard:/lib/modules/2.6.37/kernel/drivers/usb/gadget# insmod
 g_ether.ko

 insmod: error inserting 'g_ether.ko': -1 No such device


 Did anyone encounter such failure ?

 Attached boot log.Regards,



Hi,
I suspect it is related to the following error:

Welcome to The ֵngstrצm Distribution!

[3.811035] 28systemd[1]: /sbin/modprobe failed with error code 1.
[3.822387] 30systemd[1]: Set hostname to beagleboard.
[3.843353] 28systemd[1]: CONFIG_CGROUPS was not set when your kernel
was compiled. Systems without control groups are not supported. We will now
sleep for 10s, and then continue boot-up. Expect breakage and please do not
file bugs. Instead fix your kernel and enable CONFIG_CGROUPS.
[   13.897247] 28systemd[1]: No control group support available, not
creating root group.
[   14.307220] 27systemd[1]: Failed to open /dev/autofs: No such file or
directory
[   14.315338] 27systemd[1]: Failed to initialize automounter: No such
file or directory
[   14.323974] 29systemd[1]: Unit proc-sys-fs-binfmt_misc.automount
entered failed state.
Starting Runtime Directory...

Is anyone familiar with it ?

Regards,
Ran

-- 
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] bring-up failure

2015-01-14 Thread Ran Shalit


Hello,

I am trying to use the beagleboard (revD) for some testing, but I find it 
real hard to use it.

I have found some binaries which enable me to get to linux prompt, but on 
trying to compile u-boot and kernel myself it get into several failures 
when booting from SD card:

1. First I tried just to change the kernel (with the same u-boot binary - 
no change), I have compile the kernel with PSP 04.02.00.07:

*make distclean*
*make  omap3beagle_defconfig*
*make uImage*

But the kernel fail to start as following:

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

Available machine support:

ID (hex) NAME
060a OMAP3 Beagle Board

Please check your kernel config and/or bootloader.

2. next thing I tried to compile u-boot:

*make distclean*
*make omap3_beagle_config *
*make*

But Then the u-boot fail to start:

Texas Instruments X-Loader 1.5.0 (Jun 14 2011 - 22:04:07)
Beagle Rev C5
Reading boot sector
Loading u-boot.bin from mmc


U-Boot 2010.09 (Jul 21 2013 - 14:17:04)

(And there are no more printing)

I also get the same result with the pre-built binaries in the /beagle 
folder of the PSP. 

Is there something wrong with the above steps for booting from SD with 
beagleboard ?

Did anyone succeeded in running compiled u-boot/kernel with PSP 04.02.00.07 
? Should I move to older releases ?

Is it that the beagle is not the correct for use with beagleboard ? (maybe 
it is beaglebone )

I would appreciate any suggestion.

Regards,

Ran

-- 
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] bring-up failure

2015-01-14 Thread Ran Shalit



 Those directions are just old and out-dated.. 

 https://eewiki.net/display/linuxonarm/BeagleBoard 


 Hi Robert,

Thanks for the link.
I am using the same instructions as in wiki, with PSP 04.02.00.07:

make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm distclean
make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm omap3_beagle_config  
make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm 
(by the way, in the wiki it says omap3_beagle_defconfig while it should be  
omap3_beagle_config 
 )

But The u-boot does not start on the beagleboard, using some binary I've 
found (revC4 image 
from http://elinux.org/Beagleboard:BeagleBoard#BeagleBoard_Rev_C4_Image)
Is there any idea why I have no success in bring-up of this simple board ?

Regards,
Ran

-- 
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.