nandwrite failing with IGEPv2 (OMAP 3430)

Bug #583280 reported by Daniel J Blueman
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mtd-utils (Ubuntu)
Fix Released
Low
Unassigned
Lucid
Fix Released
Undecided
Artur Rona

Bug Description

Binary package hint: mtd-utils

When writing to an IGEPv2 board (512MB OneNAND flash) with mtd-utils 20090606-1, we meet failure:

# nandwrite -p /dev/mtd3 uImage
Unknown flash (not normal NAND)

Original patch is here: http://git.infradead.org/mtd-utils.git/commitdiff/772f5e08faa9d2b5677aa6e01fce06860186a49f?hp=a8214921bdc7d78b75d133a37ff9f8d4ec919650

Revision history for this message
Daniel J Blueman (danielblueman) wrote :
Changed in mtd-utils (Ubuntu):
assignee: nobody → Daniel J Blueman (daniel-blueman)
status: New → In Progress
Changed in mtd-utils (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Daniel J Blueman (danielblueman) wrote :

SRU justification:

impact:
 - writing to certain NAND flash configurations impossible
  (eg on IGEPv2 OMAP3430 board)
  -> thus platform flash is effectively useless
addressed how:
 - by adding support for this OneNAND geometry
patch:
 (attached)
reproducer (TEST CASE):
 1. boot Ubuntu 10.04 with board with 512MB OneNAND chips (over two banks)
 2. $ sudo nandwrite -p /dev/mtd3 uImage (or similar)
 3. should see 'Writing data to block 0 at offset 0x0' etc
 4. FAIL if 'Unknown flash (not normal NAND)'
potential for regression:
 - none, since this adds 'or' conditions and is minimal

Revision history for this message
Stefano Rivera (stefanor) wrote :

Uploaded to maverick. Please subscribe ubuntu-sponsors for SRU upload when ready.

Please forward this patch upstream.

Changed in mtd-utils (Ubuntu):
assignee: Daniel J Blueman (daniel-blueman) → nobody
importance: Undecided → Low
status: Confirmed → Fix Committed
Revision history for this message
Artur Rona (ari-tczew) wrote :

mtd-utils (20090606-1ubuntu1) maverick; urgency=low

  * Add support for OneNAND flash in IGEPv2 OMAP3430 board.
 -- Daniel J Blueman <email address hidden> Thu, 20 May 2010 11:56:39 +0100

Changed in mtd-utils (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Artur Rona (ari-tczew) wrote :

Daniel,

Your debdiff for lucid have to fix a couple of things.

1) debian/changelog: s/20090606-1ubuntu1/20090606-1ubuntu10.04
Usually we should use a version -1ubuntu0.1, but karmic and lucid has got the same version and we need use release number in debian/changelog.

2) debian/changelog: s/lucid/lucid-proposed

3) debian/changelog: include bug number to close bug automatically: (LP: #583280)

4) debian/control: maintainer field needs to be updated. You have to run command: update-maintainer

If you are not interested in update debdiff, I'll do this.

Artur Rona (ari-tczew)
Changed in mtd-utils (Ubuntu Lucid):
assignee: nobody → Artur Rona (ari-tczew)
Revision history for this message
Daniel J Blueman (danielblueman) wrote :

Hi Artur - I'm happy to test this if you can spin a package for armel. Thanks, Daniel

Artur Rona (ari-tczew)
description: updated
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted mtd-utils into lucid-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in mtd-utils (Ubuntu Lucid):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Artur Rona (ari-tczew) wrote :

Daniel, please read above message and test package from lucid-proposed.

Revision history for this message
Daniel J Blueman (danielblueman) wrote :

Fantastic - this works now:

# nandwrite -p /dev/mtd3 uImage
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x40000
Writing data to block 2 at offset 0x80000
Writing data to block 3 at offset 0xc0000
Writing data to block 4 at offset 0x100000
Writing data to block 5 at offset 0x140000
Writing data to block 6 at offset 0x180000
Writing data to block 7 at offset 0x1c0000
Writing data to block 8 at offset 0x200000
Writing data to block 9 at offset 0x240000
Writing data to block 10 at offset 0x280000
Writing data to block 11 at offset 0x2c0000

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package mtd-utils - 20090606-1ubuntu0.10.04.1

---------------
mtd-utils (20090606-1ubuntu0.10.04.1) lucid-proposed; urgency=low

  [ Daniel J Blueman <email address hidden> ]
  * Add support for OneNAND flash in IGEPv2 OMAP3430 board. (LP: #583280)
 -- Artur Rona <email address hidden> Thu, 16 Sep 2010 23:11:33 +0200

Changed in mtd-utils (Ubuntu Lucid):
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.