Larry Martin | 1 Jul 14:25 2014

I2C Bus 3 Fails in First 10 Minutes After Boot

Hi, everybody -

Can anyone help me figure out why my I2C communication fails badly in 
the first 10 minutes after boot, but is fine after that?

I have a custom daughterboard with AirStorm, Linaro 3.5, and an 
STM32F100 communicating via I2C bus 3 at 100 KHz.  Level translation and 
all signals look correct on my MSO.  To test the connection, I run 
'i2cdump -y 3 10'.  That works great as long as I do it 10 minutes or 
more after Gumstix bootup.  Within the first 10 minutes it fails.  10 
minutes is approximate, sometimes it's 9 or 12.

The failures, when they happen, are incorrect data bytes, timeouts and 
protocol errors:
> Jun 30 17:47:07 linaro-alip kernel: [  364.473876] omap_i2c omap_i2c.3: controller timed out
> Jun 30 17:47:07 linaro-alip kernel: [  364.484893] omap_i2c omap_i2c.3: Arbitration lost

As far as I can tell, no other process is using I2C bus 3.  I set my MSO 
to trigger on SCL, and the only triggers are my tests.  The only 
telltales I can find are CPU load and one 'ps' table entry:

* Soon after boot, uptime shows load average >1
* Soon after boot, init has CPU load 3% to 6% in ps output
* Whenever I2C starts behaving, load average is below .1% and init CPU 
share is below 1%.

I cannot see anything obvious in ps output.  There is one kernel thread, 
[kworker/0:0], that changes from PID4 to a higher PID around the time 
things get better.  Otherwise, ps output is the same from bad to good 
times.  dmesg and syslog have no obvious clues either.
(Continue reading)

Aydin Tarik Zengin | 1 Jul 10:36 2014
Picon

Tobi Board Modification

Hi Everyone,

I'm trying to develop an expansion board for Tobi.
There are just buffers and optocouplers for several I/Os in the expansion board.
Additionally, I'm using a voltage regulator (http://goo.gl/gnkt7D) to feed all the expansion and Tobi together.
Since the regulator output is 5V, I decided to bypass the tobi power input.
Removed L11, FB2, C32, and C39.
Applying 5V output of Murata regulator to Tobi's V_BATT_5 directly.
Therefore, I'm able to use 7-36V source to feed all the board.
There seems no problem electrically since V_BATT_5 is 5V, then all other voltages such as 3.3V and 1.8V are being successfully generated.

Gumstix boots with no problem except a message about the Caspa camera.

[  OK  ] Started Network Service.
[   15.618133] omap3isp supply VDD_CSIPHY1 not found, using dummy regulator
[   15.721038] cfg80211: Calling CRDA to update world regulatory domain
[  OK  ] Started Login Service.
         Starting Serial Getty on ttyGS0...
[  OK  ] Started Serial Getty on ttyGS0.
[   15.856567] omap3isp supply VDD_CSIPHY2 not found, using dummy regulator
         Starting LXDE Display Manager...
[  OK  ] Started LXDE Display Manager.
[   15.979644] omap3isp omap3isp: Revision 15.0 found
[   15.984863] omap-iommu omap-iommu.0: isp: version 1.1
[  OK  ] Found device /dev/ttyO2.
         Starting Serial Getty on ttyO2...
[   16.118133] libertas_sdio: Libertas SDIO driver
[  OK  ] Started Serial Getty on ttyO2.
[  OK  ] Reached target Login Prompts.
[   16.242980] libertas_sdio: Copyright Pierre Ossman
[   16.380187] mt9v032 3-005c: Probing MT9V032 at address 0x5c
[  OK  ] Reached target Sound Card.
[   16.824493] omapdss OVERLAY error: check_overlay: paddr cannot be 0
[   16.847839] omapdss OVERLAY error: check_overlay: paddr cannot be 0
[   16.871063] omapfb omapfb: setup_plane failed
[   17.494140] omap_i2c omap_i2c.3: controller timed out
[   17.628967] mt9v032 3-005c: MT9V032 power up failed
[   17.822357] isp_register_subdev_group: Unable to register subdev mt9v032
[   20.562194] libertas_sdio mmc1:0001:1: (unregistered net_device): 00:19:88:18:3c:4a, fw 9.70.20p0, cap 0x00000303
[   20.601501] libertas_sdio mmc1:0001:1: wlan0: Marvell WLAN 802.11 adapter
[  OK  ] Found device /sys/subsystem/net/devices/wlan0.

When it comes to "Probing MT9V032 at address 0x5c" line, Caspa LED turns on constantly.
Gumstix boots to login successfully, though. I can login and use it flawlesly except the camera.
I suspect there is a problem with the power supply since it says "supply not found".
But it's strange because all the suplly voltages are being generated.
May there be a problem with the COMMON_SHIELD because the varistors are not connected to the input source anymore?

Thanks in advance,

Tarik
___________________________________

Aydın Tarık Zengin, Ph.D.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
gumstix-users mailing list
gumstix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Trev Sheerin | 30 Jun 23:43 2014

I2C3SCL and SPI1CS2 Pin Muxing

I was looking at the pinmuxing using devmem2 for I2C3. SCL is configured as 0x11C which seems surprising considering the bus works just fine. What am I missing here?

Related, my project requires 3 chips on SPI1. I'm looking at remuxing CS2 for this, according to devmem2 the pin is muxed as 0x114, though all the documentation seems to indicate that this pin is for Eth0 IRQ by default. Is this a similar story to I2C3SCL?



--
Trev Sheerin
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
gumstix-users mailing list
gumstix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Dave Tian | 30 Jun 22:26 2014
Picon

usb_mass_storage on daisy

Hello,

I tried to enable the usb gadget mass storage as module using the latest repo by default (should be daisy, I
guess) - by changing the defconfig as before. However, I am not able to find this module after building the
image. What did I miss here? It worked well before daisy.

Dave Tian
dave.jing.tian <at> gmail.com

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
kris duff | 30 Jun 21:41 2014
Picon

[daisy][overo] gumstix-console-image eth0 not activated on boot

Hello,

Working on daisy (from danny) and my first test are showing that the eth0 will not come up at boot. Need to ifup eth0 manually.

It was working fine using gumstix-console-image from danny.

Thank you

Kris
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
gumstix-users mailing list
gumstix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Donny3000 | 27 Jun 18:49 2014

Latest Stable Gumstix Kernel

All, I've been away from Gumxtix/Overo development for awhile (1-2 years) and I'm try to get reacquainted in regards to the Gumstix kernel development. Specifically, where can I find the repository for the most up-to-date kernel for the Gumstix Overos? Also, I've been doing kernel development on other platforms (e.g. Beaglebone Black, Freescale i.MX53 & i.MX6 Sabrelite), that utilize device trees to describe the hardware of the various boards. Is there a plan to start using Device Trees for Gumstix kernels? Since a lot of other embedded ARM linux devices seem to have made the switch over to device trees, I was just curious to see if that was in the works for Gumstix devices. If so, where could I find that development repo? Thanks, Donald Poole

View this message in context: Latest Stable Gumstix Kernel
Sent from the Gumstix mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
gumstix-users mailing list
gumstix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Larry Martin | 26 Jun 23:45 2014

initrd vs. NAND boot?

How does initramfs fit into booting from NAND?  Do I need to turn 
initramfs support off in my kernel to boot from NAND?  Is initramfs 
supposed to be bundled with uImage?

I have not booted from NAND since Verdex Buildroot days.

In a post earlier today, I was asking about translating MMC to UBI for 
NAND boot:

> [    5.073486] UBIFS error (pid 1): ubifs_read_node: bad node type (0 but expected 6)
> [    5.081542] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 0:0, LEB mapping status 1
> [    5.090545] Not a node, first 24 bytes:
> [    5.094512] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ........................

I just realized what that line means - the booting kernel is reaching 
for data and coming up empty.  I think that means that the format of my 
ubifs image is irrelevant, and leads to more questions about booting 
from NAND Flash.

These are my older posts and the Gumstix Wiki page I am using for reference:

http://gumstix.8.x6.nabble.com/Re-Is-there-an-easy-way-to-make-a-UBI-image-from-a-working-MMC-tp4969276.html

http://gumstix.8.x6.nabble.com/Is-there-an-easy-way-to-make-a-UBI-image-from-a-working-MMC-tp4969113.html

http://gumstix.org/how-to/70-writing-images-to-flash.html

The how-to page does not contain the string "init."

These are my u-boot arguments:

> nandroot=ubi0:rootfs ubi.mtd=4
> nandrootfstype=ubifs

I cannot read NAND from my u-boot.  nand read 0 0xA80000 0x20 locks up 
and I have to cycle power.  But I am sure mtd4 is nonzero because I read 
it back after my last ubiformat.  Its magic number is 0x42552349 or 
"BU#I".  It's certainly nonzero.

So I'm thinking maybe the kernel is reaching for initrd and not finding 
anything.  Does that make sense?

Thanks,
Larry

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
Larry Martin | 26 Jun 20:57 2014

Re: Is there an easy way to make a UBI image from a working MMC?

On30May2014, Adam Magaluk wrote:
> When generating ubi from rootfs directories made from EmDebian i've 
> used the following commands.
> On Wed, May 14, 2014 at 6:55 AM, Larry Martin wrote:
> I have developed a solution in Linaro 3.5.0 on MMC, and now want to run
> from NAND.  ubiformat wants a built UBI image to write to NAND. How can
> I bridge that gap? 

Adam's instructions seem to work (tyvm), but I can't boot using the image.

Q: Should I need to do any more formatting on the UBI files before 
flashing them?

Q: Is there a way to see what's in the ubi files by mounting them on my 
PC, either Linux or Windows?  This page says, "not really," but shows 
how to mount using a nand simulator module.  The "hacky" instructions 
don't work on my Linux Mint PC.

     http://www.linux-mtd.infradead.org/faq/ubifs.html

Per Adam's suggestion and using his ubi.cfg, I made two images, where 
/media/rootfs1 was the mount point for my MMC card:

> sudo mkfs.ubifs -v -r /media/rootfs1 -o rootfs.ubifs -m 2048 -e 129024 
> -c 1996
> sudo ubinize -v -o rootfs.ubi -m 2048 -p 128KiB -s 512 ubi.cfg

I think I read that rootfs.ubifs is a filesystem and rootfs.ubi is a 
volume or partition image.  I have tried both, with ubiformat as well as 
nandwrite, and cannot get the kernel to boot rootfs.  I have verified 
that UBI support is compiled into uImage.

Details: This is the output from boot after running:

ubiformat -y /dev/mtd4 -f rootfs.ubi

where rootfs.ubi is the ubinized output of Akram's second command:

[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.5.0+ (root <at> ryan-K53SD) (gcc version 4.7.2 
(Ubuntu/Linaro 4.7.2-1ubuntu1) ) #14 PREEMPT Wed Jun 25 10:56:55 EDT 2014
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), 
cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[    0.000000] Machine: Gumstix Overo
[    0.000000] Reserving 12582912 bytes SDRAM for VRAM
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] OMAP3630 ES1.2 (l2cache neon isp 192mhz_clk )
[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  
Total pages: 126720
[    0.000000] Kernel command line: console=ttyO2,115200n8 mpurate=500 
vram=12M omapfb.mode=dvi:1024x768MR-16 <at> 60 omapdss.def_disp=dvi 
root=ubi0:rootfs ubi.mtd=4 rootfstype=ubifs
...
[    1.447052] UBI: attaching mtd4 to ubi0
[    1.451354] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    1.457977] UBI: logical eraseblock size:    129024 bytes
[    1.463653] UBI: smallest flash I/O unit:    2048
[    1.468597] UBI: sub-page size:              512
[    1.473480] UBI: VID header offset:          512 (aligned 512)
[    1.479614] UBI: data offset:                2048
[    2.823974] UBI: max. sequence number:       0
[    2.854461] UBI: volume 0 ("rootfs") re-sized from 2980 to 3968 LEBs
[    2.862243] UBI: attached mtd4 to ubi0
[    2.866271] UBI: MTD device name:            "rootfs"
[    2.871612] UBI: MTD device size:            501 MiB
[    2.876831] UBI: number of good PEBs:        4012
[    2.881774] UBI: number of bad PEBs:         0
[    2.886444] UBI: number of corrupted PEBs:   0
[    2.891143] UBI: max. allowed volumes:       128
[    2.896026] UBI: wear-leveling threshold:    4096
[    2.900939] UBI: number of internal volumes: 1
[    2.905639] UBI: number of user volumes:     1
[    2.910339] UBI: available PEBs:             0
[    2.915008] UBI: total number of reserved PEBs: 4012
[    2.920227] UBI: number of PEBs reserved for bad PEB handling: 40
[    2.926666] UBI: max/mean erase counter: 0/0
[    2.931152] UBI: image sequence number:  95215050
[    2.936126] UBI: background thread "ubi_bgt0d" started, PID 46
...
[    5.073486] UBIFS error (pid 1): ubifs_read_node: bad node type (0 
but expected 6)
[    5.081542] UBIFS error (pid 1): ubifs_read_node: bad node at LEB 
0:0, LEB mapping status 1
[    5.090545] Not a node, first 24 bytes:
[    5.094512] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 ........................
[    5.108398] [<c00132b4>] (unwind_backtrace+0x0/0x11c) from 
[<c01c038c>] (ubifs_read_node+0x264/0x29c)
[    5.118194] [<c01c038c>] (ubifs_read_node+0x264/0x29c) from 
[<c01bd1b0>] (ubifs_read_sb_node+0x50/0x70)
[    5.128173] [<c01bd1b0>] (ubifs_read_sb_node+0x50/0x70) from 
[<c01bd230>] (ubifs_read_superblock+0x20/0xeec)
[    5.138610] [<c01bd230>] (ubifs_read_superblock+0x20/0xeec) from 
[<c01bbdbc>] (ubifs_mount+0x940/0x1b04)
[    5.148773] [<c01bbdbc>] (ubifs_mount+0x940/0x1b04) from [<c00e1dc8>] 
(mount_fs+0x70/0x164)
[    5.157684] [<c00e1dc8>] (mount_fs+0x70/0x164) from [<c00f8400>] 
(vfs_kern_mount+0x4c/0xc0)
[    5.166595] usb 1-2.1: New USB device found, idVendor=0424, 
idProduct=ec00
[    5.173919] [<c00f8400>] (vfs_kern_mount+0x4c/0xc0) from [<c00f84a8>] 
(do_kern_mount+0x34/0xd4)
[    5.183105] usb 1-2.1: New USB device strings: Mfr=0, Product=0, 
SerialNumber=0
[    5.190856] [<c00f84a8>] (do_kern_mount+0x34/0xd4) from [<c00fa04c>] 
(do_mount+0x658/0x6e8)
[    5.200347] [<c00fa04c>] (do_mount+0x658/0x6e8) from [<c00fa168>] 
(sys_mount+0x84/0xc4)
[    5.209930] [<c00fa168>] (sys_mount+0x84/0xc4) from [<c0654c14>] 
(mount_block_root+0xe4/0x218)
[    5.219238] [<c0654c14>] (mount_block_root+0xe4/0x218) from 
[<c0654fc4>] (prepare_namespace+0x88/0x1bc)
[    5.229248] [<c0654fc4>] (prepare_namespace+0x88/0x1bc) from 
[<c065496c>] (kernel_init+0x1b8/0x1f8)
[    5.238861] [<c065496c>] (kernel_init+0x1b8/0x1f8) from [<c000ee48>] 
(kernel_thread_exit+0x0/0x8)
[    5.254455] List of all partitions:
[    5.258178] 1f00             512 mtdblock0  (driver?)
[    5.263580] 1f01            1792 mtdblock1  (driver?)
[    5.268920] 1f02             256 mtdblock2  (driver?)
[    5.274261] 1f03            8192 mtdblock3  (driver?)
[    5.279602] 1f04          513536 mtdblock4  (driver?)
[    5.284942] 1f05          499968 mtdblock5  (driver?)
[    5.290283] No filesystem could mount root, tried:  ubifs
[    5.295989] Kernel panic - not syncing: VFS: Unable to mount root fs 
on unknown-block(0,0)

In case threading breaks, Adam's message was:
http://gumstix.8.x6.nabble.com/Is-there-an-easy-way-to-make-a-UBI-image-from-a-working-MMC-tt4969113.html#a4969201

Thanks,
Larry

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
dbrody | 24 Jun 19:59 2014

Re: Overo Fire/Tobi using UART1 to command an iRobot Create

For level shifting something along these lines may help:
https://www.sparkfun.com/products/11771

It should be able to do 1.8v to 5v for uart.

I have only used the I2C level translator and they work like a charm
(https://www.sparkfun.com/products/11955).

--
View this message in context: http://gumstix.8.x6.nabble.com/Overo-Fire-Tobi-using-UART1-to-command-an-iRobot-Create-tp568794p4969274.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
alex0486 | 24 Jun 16:08 2014
Picon

Duovero RTC Battery Life

All,
I am running a couple of Gumstix Duoveros with the same battery and kernel
patches that Scott Ellis has detailed in his writeup here:
http://www.jumpnowtek.com/gumstix/duovero/Duovero-RTC.html

Has anyone noticed that the batteries seem to lose their charge after being
powered off for a few days? When I turn them off over the weekend, sometimes
the hwclock loses its date. After I leave them on for a while, the batteries
seem to recharge and hold their date across reboots/removing the power
cable. I have noticed this on several Duoveros now. 

Regards,

Alex Ray

--
View this message in context: http://gumstix.8.x6.nabble.com/Duovero-RTC-Battery-Life-tp4969273.html
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
Nick Rawluk | 19 Jun 01:53 2014

USB Power Negotiation?

I’m developing a device based around an Overo EarthSTORM COM. We have a USB OTG port that I use with the linux gadget drivers to be emulate a mass storage device or USB network controller. That is working great.

 

We charge the battery powered device over the USB port and the default 100 mA current supplied by a USB controller is very slow to charge our battery. I know that in the USB enumeration process a device can potentially negotiate a higher 500 mA current. However I can’t find information on _how_ to do this. I assume it is not safe on all systems to just try to use the 500 mA unless  it has been negotiated.

 

It appears that the gadget driver does the power negotiation. Is this correct? If so, does anyone have experience with this? Even just clarification would be helpful.

 

Thanks,

 

Nick

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
gumstix-users mailing list
gumstix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Gmane