u-boot-2009.03: Fix sector table direction for AMIC (hipox machine only)
PATCH 1/1 u-boot-2009.03: Fix sector table direction for AMIC (hipox machine only)
--- .../u-boot-2009.03/hipox/11-cfi-amic-fixup.patch | 11 +++++++++++ recipes/u-boot/u-boot_2009.03.bb | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +11 -0
@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c +--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c 2011-02-11 15:18:38.000000000 +0100 ++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-11 15:19:06.000000000 +0100 +@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + case 0x00da: // Winbond + flash_fixup_amd(info, &qry); + break;
recipes/u-boot/u-boot_2009.03.bb +1 -0
@@ -14,6 +14,7 @@ SRC_URI_append_hipox = "file://00-hipox.patch \ file://03-hipox-direct-switch.patch \ file://04-hipox-env.patch \ file://10-hipox-boot-abort-key.patch \ + file://11-cfi-amic-fixup.patch \ " TARGET_LDFLAGS = ""
Signature · 1 line
1.7.1
Am 16.02.2011 14:26, schrieb Mario Schuknecht:
Quoted 1 line
Signed-off-by Mario Schuknecht <[email protected]>
Signature · 7 lines
DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:[email protected] Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058
Dear Mario,
thank you for your patch.
Am Mittwoch, den 16.02.2011, 14:26 +0100 schrieb Mario Schuknecht:
Just curious. What were the symptoms of this problem?
Quoted 14 lines
Signed-off-by Mario Schuknecht <[email protected]>--- .../u-boot-2009.03/hipox/11-cfi-amic-fixup.patch | 11 +++++++++++ recipes/u-boot/u-boot_2009.03.bb | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patchrecipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +1
-0@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch line 11
Quoted 10 lines
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +10
-0+--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c 2011-02-11 15:18:38.000000000 +0100 ++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-11 15:19:06.000000000 +0100 +@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + case 0x00da: // Winbond + flash_fixup_amd(info, &qry); + break;
Has this fix been applied upstream yet? What uBoot versions are affected?
[…]
Thanks,
Paul
Hello Paul,
Quoted 9 lines
Dear Mario,
thank you for your patch.
Am Mittwoch, den 16.02.2011, 14:26 +0100 schrieb Mario Schuknecht:
Just curious. What were the symptoms of this problem?
The symptom is that the uBoot command "saveenv" dont work.
Quoted 33 lines
Quoted 4 lines
Signed-off-by Mario Schuknecht <[email protected]>--- .../u-boot-2009.03/hipox/11-cfi-amic-fixup.patch | 11+++++++++++
Quoted 3 lines
recipes/u-boot/u-boot_2009.03.bb | 1 + 2 files changed, 12 insertions(+), 0 deletions(-) create mode 100644
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patchReview
Quoted 2 lines
(quoted diff) +0
-0
a/recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patchb/recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patchrecipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch line 1
Quoted 6 lines
new file mode 100644
index 0000000..a7432a5recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +1
-0@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c
u-boot-2009.03/drivers/mtd/cfi_flash.crecipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch line 2
Quoted 1 line
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +1
-0+--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c2011-02-11 15:18:38.000000000 +0100recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch line 3
Quoted 1 line
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +1
-0++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-1115:19:06.000000000 +0100
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch line 11
Quoted 8 lines
recipes/u-boot/u-boot-2009.03/hipox/11-cfi-amic-fixup.patch new file +8
-0+@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + case 0x00da: // Winbond + flash_fixup_amd(info, &qry); + break;
Quoted 2 lines
Has this fix been applied upstream yet? What uBoot versions are affected?
Yes, the fix has been applied
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/94465>.
In my opinion all uBoot versions are affected. There are special fixes for AMD flashes. And the AMIC flash is an AMD clone.
Mario
Quoted 8 lines
[...]
Thanks,
Paul
Dear "Schuknecht, Mario",
Quoted 6 lines · In message <DB561678F08F554EB0D9F21B70E268A5056575@exchange.intern.dresearch.de…
Quoted 3 lines
Has this fix been applied upstream yet? What uBoot versions are affected?
Yes, the fix has been applied
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/94465>.
No, it has NOT been applied in mainline yet.
See http://patchwork.ozlabs.org/patch/82763/ - status is still NEW.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] "Once they go up, who cares where they come down? That's not my department." - Werner von Braun
Am 16.02.2011 19:34, schrieb Wolfgang Denk:
Quoted 4 lines
Dear "Schuknecht, Mario",
Quoted 1 line · In message <DB561678F08F554EB0D9F21B70E268A5056575@exchange.intern.dresearch.de…
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
Has this fix been applied upstream yet? What uBoot versions are affected?
Yes, the fix has been applied
<http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/94465>.No, it has NOT been applied in mainline yet.
See http://patchwork.ozlabs.org/patch/82763/ - status is still NEW.
Your right. I'm sure that Mario meant "suggested" instead of "applied".
BTW@Wolfgang: Any chance that it will be applied? We had no feedback (good or bad) in the u-boot ml for nearly a week.
Steffen
Signature · 7 lines
DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:[email protected] Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058
Dear "Sledz, Steffen",
Quoted 8 lines · In message <DB561678F08F554EB0D9F21B70E268A505AFA8@exchange.intern.dresearch.de…
Quoted 3 lines
No, it has NOT been applied in mainline yet.
See http://patchwork.ozlabs.org/patch/82763/ - status is still NEW.Your right. I'm sure that Mario meant "suggested" instead of "applied".
BTW@Wolfgang: Any chance that it will be applied? We had no feedback (good or bad) in the u-boot ml for nearly a week.
No news is usually good news.
It would have been a good idea to Cc: the responsible maintainer, though.
Best regards,
Wolfgang Denk
Signature · 6 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] The thing is, as you progress in the Craft, you'll learn there is another rule... When you break rules, break 'em good and hard. - Terry Pratchett, _Wyrd Sisters_
PATCH v2 1/1 u-boot-2009.03: use AMD fixups for AMIC too
In reply to Schuknecht, MarioFrom: Mario Schuknecht <[email protected]>
* AMIC flashes are AMD clones and need the same fixups.
--- recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch | 11 +++++++++++ recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch | 3 ++- recipes/u-boot/u-boot_2009.03.bb | 7 +++++-- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch
recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch new file +11 -0
@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c +--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c 2011-02-18 14:11:24.870432001 +0100 ++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-18 14:11:45.440432001 +0100 +@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + flash_fixup_amd(info, &qry); + break; + case 0x001f:
recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch +2 -1
@@ -6190,10 +6190,11 @@ diff -Nurd u-boot-2009.03.orig/cpu/arm926ejs/start.S u-boot-2009.03/cpu/arm926ej diff -Nurd u-boot-2009.03.orig/drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c --- u-boot-2009.03.orig/drivers/mtd/cfi_flash.c 2009-04-15 11:05:24.000000000 +0200 +++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2009-04-15 11:08:18.000000000 +0200 -@@ -1883,6 +1883,7 @@ +@@ -1883,7 +1883,8 @@ /* Do manufacturer-specific fixups */ switch (info->manufacturer_id) { case 0x0001: + case 0x0037: // AMIC + case 0x00da: // Winbond flash_fixup_amd(info, &qry); break;
recipes/u-boot/u-boot_2009.03.bb +5 -2
@@ -6,9 +6,12 @@ DEFAULT_PREFERENCE_hipox = "1" DEPENDS_append_hipox = " oxnas-boot-tools oxnas-boot-tools-native " -SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 " +SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ + file://cfi-amic-fixup.patch \ +" -SRC_URI_append_hipox = "file://00-hipox.patch \ +SRC_URI_append_hipox = " \ + file://00-hipox.patch \ file://01-hipox-fix-gmac-reset.patch \ file://02-hipox-enable-mmu.patch \ file://03-hipox-direct-switch.patch \
Signature · 1 line
1.7.1
Re: [PATCH v2] u-boot-2009.03: use AMD fixups for AMIC too
Am 18.02.2011 15:12, schrieb Steffen Sledz:
Quoted 3 lines
From: Mario Schuknecht <[email protected]>
* AMIC flashes are AMD clones and need the same fixups.
I made some modifications to the patch to make it available at least for all u-boot-2009.03 users.
Steffen
Signature · 7 lines
DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:[email protected] Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058
Re: [PATCH v2] u-boot-2009.03: use AMD fixups for AMIC too
In reply to Steffen SledzQuoted 6 lines · Steffen Sledz
From: Mario Schuknecht<[email protected]>
* AMIC flashes are AMD clones and need the same fixups.
Signed-off-by Mario Schuknecht<[email protected]>Signed-off-by Steffen Sledz<[email protected]>
Quoted 60 lines
--- recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch | 11 +++++++++++ recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch | 3 ++- recipes/u-boot/u-boot_2009.03.bb | 7 +++++-- 3 files changed, 18 insertions(+), 3 deletions(-)create mode 100644
recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patchrecipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch new file +11
-0@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c +--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c 2011-02-18 14:11:24.870432001 +0100 ++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-18 14:11:45.440432001 +0100 +@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + flash_fixup_amd(info,&qry); + break; + case 0x001f:recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch +2
-1@@ -6190,10 +6190,11 @@ diff -Nurd u-boot-2009.03.orig/cpu/arm926ejs/start.S u-boot-2009.03/cpu/arm926ej diff -Nurd u-boot-2009.03.orig/drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c --- u-boot-2009.03.orig/drivers/mtd/cfi_flash.c 2009-04-15 11:05:24.000000000 +0200 +++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2009-04-15 11:08:18.000000000 +0200 -@@ -1883,6 +1883,7 @@ +@@ -1883,7 +1883,8 @@ /* Do manufacturer-specific fixups */ switch (info->manufacturer_id) { case 0x0001: + case 0x0037: // AMIC + case 0x00da: // Winbond flash_fixup_amd(info,&qry); break;recipes/u-boot/u-boot_2009.03.bb +5
-2@@ -6,9 +6,12 @@ DEFAULT_PREFERENCE_hipox = "1" DEPENDS_append_hipox = " oxnas-boot-tools oxnas-boot-tools-native " -SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 " +SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ + file://cfi-amic-fixup.patch \ +" -SRC_URI_append_hipox = "file://00-hipox.patch \ +SRC_URI_append_hipox = " \ + file://00-hipox.patch \ file://01-hipox-fix-gmac-reset.patch \ file://02-hipox-enable-mmu.patch \ file://03-hipox-direct-switch.patch \
Signature · 2 lines
Tom Rini Mentor Graphics Corporation
Re: [PATCH v2] u-boot-2009.03: use AMD fixups for AMIC too
In reply to Steffen SledzAm Freitag, den 18.02.2011, 15:12 +0100 schrieb Steffen Sledz:
Quoted 3 lines
From: Mario Schuknecht <[email protected]>
* AMIC flashes are AMD clones and need the same fixups.
… otherwise the uBoot command saveenv does not work.
Please add in the commit message or in the patch file that this patch has been sent upstream [1].
[1] http://patchwork.ozlabs.org/patch/82763/
Quoted 52 lines
Signed-off-by Mario Schuknecht <[email protected]>Signed-off-by Steffen Sledz <[email protected]>--- recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch | 11 +++++++++++ recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch | 3 ++- recipes/u-boot/u-boot_2009.03.bb | 7 +++++-- 3 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 recipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patchrecipes/u-boot/u-boot-2009.03/cfi-amic-fixup.patch new file +11
-0@@ -0,0 +1,11 @@ +diff -Nurd u-boot-2009.03.orig//drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c +--- u-boot-2009.03.orig//drivers/mtd/cfi_flash.c 2011-02-18 14:11:24.870432001 +0100 ++++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2011-02-18 14:11:45.440432001 +0100 +@@ -1883,6 +1883,7 @@ + /* Do manufacturer-specific fixups */ + switch (info->manufacturer_id) { + case 0x0001: ++ case 0x0037: // AMIC + flash_fixup_amd(info, &qry); + break; + case 0x001f:recipes/u-boot/u-boot-2009.03/hipox/00-hipox.patch +2
-1@@ -6190,10 +6190,11 @@ diff -Nurd u-boot-2009.03.orig/cpu/arm926ejs/start.S u-boot-2009.03/cpu/arm926ej diff -Nurd u-boot-2009.03.orig/drivers/mtd/cfi_flash.c u-boot-2009.03/drivers/mtd/cfi_flash.c --- u-boot-2009.03.orig/drivers/mtd/cfi_flash.c 2009-04-15 11:05:24.000000000 +0200 +++ u-boot-2009.03/drivers/mtd/cfi_flash.c 2009-04-15 11:08:18.000000000 +0200 -@@ -1883,6 +1883,7 @@ +@@ -1883,7 +1883,8 @@ /* Do manufacturer-specific fixups */ switch (info->manufacturer_id) { case 0x0001: + case 0x0037: // AMIC + case 0x00da: // Winbond flash_fixup_amd(info, &qry); break;recipes/u-boot/u-boot_2009.03.bb +0
-1@@ -6,9 +6,12 @@ DEFAULT_PREFERENCE_hipox = "1" DEPENDS_append_hipox = " oxnas-boot-tools oxnas-boot-tools-native " -SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 "
recipes/u-boot/u-boot_2009.03.bb DEFAULT_PREFERENCE_hipox = "1" · line 17
Quoted 10 lines
recipes/u-boot/u-boot_2009.03.bb +5
-1+SRC_URI = "ftp://ftp.denx.de/pub/u-boot/u-boot-${PV}.tar.bz2 \ + file://cfi-amic-fixup.patch \ +" -SRC_URI_append_hipox = "file://00-hipox.patch \ +SRC_URI_append_hipox = " \ + file://00-hipox.patch \ file://01-hipox-fix-gmac-reset.patch \ file://02-hipox-enable-mmu.patch \ file://03-hipox-direct-switch.patch \
If you build for hipox is not your fix applied twice? Or am I mistaken?
If I am and with the changes requested in the beginning,
Thanks,
Paul
Re: [PATCH v2] u-boot-2009.03: use AMD fixups for AMIC too
Quoted 11 lines · Paul Menzel
Am Freitag, den 18.02.2011, 15:12 +0100 schrieb Steffen Sledz:
Quoted 3 lines
From: Mario Schuknecht <[email protected]>
* AMIC flashes are AMD clones and need the same fixups.
… otherwise the uBoot command
saveenvdoes not work.Please add in the commit message or in the patch file that this patch has been sent upstream [1].
Added.
Quoted 2 lines
If you build for
hipoxis not your fix applied twice? Or am I mistaken?
Your mistaken. ;-)
Quoted 3 lines
If I am and with the changes requested in the beginning,
Acked-by Paul Menzel <[email protected]>
Pushed.
Signature · 7 lines
DResearch Fahrzeugelektronik GmbH Otto-Schmirgal-Str. 3, 10319 Berlin, Germany Tel: +49 30 515932-237 mailto:[email protected] Fax: +49 30 515932-299 Geschäftsführer: Dr. Michael Weber, Werner Mögle; Amtsgericht Berlin Charlottenburg; HRB 130120 B; Ust.-IDNr. DE273952058
Re: [PATCH v2] u-boot-2009.03: use AMD fixups for AMIC too
Am Samstag, den 19.02.2011, 07:53 +0100 schrieb Steffen Sledz:
Quoted 1 line · Paul Menzel
[…]
Quoted 4 lines
Quoted 2 lines
If you build for
hipoxis not your fix applied twice? Or am I mistaken?Your mistaken. ;-)
I should have seen that the »+« are on different levels. I always get confused by patches to patches.
Sorry for the noise.
[…]
Thanks,
Paul