next IK 3.3: Change in init scripts for latest ST-E USB driver support

Bug #965181 reported by Philippe Langlais
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
IglooCommunity
Fix Released
High
Kalle Vahlman

Bug Description

New USB driver in ST-E ALK 5.57 and higher, doesn't start automatically.
A 1 must be written in /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device at user space startup.
So in all Ubuntu images we have to add a line like this in a Snowball init script:
if [-f /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device]; then
     echo 1 > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
fi

And in Android add this line in init.rc (in USB initialization):
write /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device 1

**********************************************************************
Please use the following workaround until this is resolved
1. Boot up board
2. On console run
echo 1 > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device
3. plugin the usb cable

USB will work normally after this

Tags: init
Changed in igloocommunity:
milestone: none → 2012.04
Changed in igloocommunity:
status: New → Invalid
Changed in igloocommunity:
status: Invalid → New
Changed in igloocommunity:
assignee: nobody → supriya karanth (supriya-karanth)
importance: Undecided → High
Changed in igloocommunity:
status: New → Confirmed
Changed in igloocommunity:
status: Confirmed → In Progress
Revision history for this message
supriya karanth (supriya-karanth) wrote :

Until the bug is resolved please do a

echo 1 > /sys/devices/platform/ab8500-i2c.0/ab8500-usb.0/boot_time_device

in the console once the board has booted up and plugin the usb cable

description: updated
Changed in igloocommunity:
milestone: 2012.04 → 2012.05
Revision history for this message
supriya karanth (supriya-karanth) wrote :

Changes for android have been made in the "init.st-ericssonsnowballplatform.rc" and this is tested
Changes for ubuntu yet to be done and tested

Revision history for this message
Anmar Oueja (anmar) wrote :

Supriya: Please check with Lee Jones on what needs done for Ubuntu and he will guide you.

Revision history for this message
Anmar Oueja (anmar) wrote :

Lee Jones will be gone on vacation. Please ping Mathieu since he is around next week.

Revision history for this message
Anmar Oueja (anmar) wrote :

Kalle: Can you please talk to Supriya about the comment you need to add to the Ubuntu init and update the HWPack accordingly

Changed in igloocommunity:
assignee: supriya karanth (supriya-karanth) → Kalle Vahlman (kvahlman)
Revision history for this message
supriya karanth (supriya-karanth) wrote :

For android the changes are made and USB is working. Attached is the new "init.st-ericssonsnowballplatform.rc" with the changes.

Unable to upload in linaro gerrit due to ssh keys problem

Revision history for this message
supriya karanth (supriya-karanth) wrote :

Pushed changes for android to linaro gerrit

http://review.android.git.linaro.org/2010

Changes for android is done.

changes for ubuntu yet to be done

Revision history for this message
Kalle Vahlman (kvahlman) wrote :

I made the following assumptions:

 * The attribute can be safely set multiple times
 * It supports "0" value to turn it off as well, or at least doesn't crash with it

and pushed:

http://www.igloocommunity.org/gitweb/?p=bsp/snowball-init.git;a=commit;h=969beb4

(yes, I did do that 12 years ago, why do you ask! Doh.)

Package uploaded and published in the PPA.

Revision history for this message
Kalle Vahlman (kvahlman) wrote :

Tested with the target kernel (stable-ubuntu-ux500-3.3-1), and found that the initialization order was wrong in the script.

A new package with the fix is uploaded (snowball-init 1.4.1).

Revision history for this message
Jayeeta Bandyopadhyay (jayeeta) wrote :

Kalle can we change this the status Fix committed?

Revision history for this message
Kalle Vahlman (kvahlman) wrote :

For the ubuntu part, yes.

And judging from the earlier comment for android too.

(Next time we should split the bug into two since it's really confusing to track the status just by comments)

Changed in igloocommunity:
status: In Progress → Fix Committed
Changed in igloocommunity:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.