u-boot 2011.12: fix beagleboard C4 memory detection
PATCH 1/1 u-boot 2011.12: fix beagleboard C4 memory detection
Test results (which emberassingly enough lack an actual C4):
BeagleBoard B6:
OMAP3530-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 128 MiB NAND: 256 MiB [..] Beagle Rev Ax/Bx
BeagleBoard C3:
OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 256 MiB [..] Beagle Rev C1/C2/C3
BeagleBoard C5:
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 512 MiB [..] Beagle Rev C4
BeagleBoard xM A:
OMAP3630/3730-GP ES1.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 512 MiB NAND: 0 MiB [..] Beagle xM Rev A
BeagleBoard xM C:
OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 512 MiB NAND: 0 MiB [..] Beagle xM Rev C
--- ...7-disable-L2-cache-in-cleanup_before_linu.patch | 25 ----------- ...ard-mount-rootfs-RO-instead-of-RW-at-boot.patch | 4 +- ...gleboard-add-support-for-TCT-Beacon-board.patch | 4 +- ...-add-support-for-scanning-loop-through-ex.patch | 4 +- .../2011.12/0004-omap4-common-mount-root-RO.patch | 4 +- .../0005-omap4-common-use-ext4-by-default.patch | 4 +- ...P-MMC-Add-delay-before-waiting-for-status.patch | 44 +++++++++++++++++++ .../2011.12/0007-config-Always-use-GNU-ld.patch | 43 +++++++++++++++++++ ...7-disable-L2-cache-in-cleanup_before_linu.patch | 25 +++++++++++ ...Beagleboard-Correct-memory-size-on-rev-C4.patch | 37 ++++++++++++++++ ...0010-OMAP3-Correct-get_sdr_cs_offset-mask.patch | 37 ++++++++++++++++ ...P-MMC-Add-delay-before-waiting-for-status.patch | 45 -------------------- recipes-bsp/u-boot/u-boot_2011.12.bb | 11 +++-- 13 files changed, 203 insertions(+), 84 deletions(-) delete mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0001-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0006-OMAP-MMC-Add-delay-before-waiting-for-status.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0007-config-Always-use-GNU-ld.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0008-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0009-Beagleboard-Correct-memory-size-on-rev-C4.patch create mode 100644 recipes-bsp/u-boot/u-boot/2011.12/0010-OMAP3-Correct-get_sdr_cs_offset-mask.patch delete mode 100644 recipes-bsp/u-boot/u-boot/2011.12/U-Boot-OMAP-MMC-Add-delay-before-waiting-for-status.patch
recipes-bsp/u-boot/u-boot/2011.12/0001-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch deleted +0 -25
@@ -1,25 +0,0 @@ -From 9ac047a112d8c6fe25e71a78946dbe9d707abd98 Mon Sep 17 00:00:00 2001 -From: Philip Balister <[email protected]> -Date: Mon, 16 Jan 2012 09:45:11 -0500 -Subject: [PATCH] Revert "armv7: disable L2 cache in cleanup_before_linux()" - -This reverts commit dc7100f4080952798413fb63bb4134b22c57623a. ---- - arch/arm/cpu/armv7/cpu.c | 1 - - 1 files changed, 0 insertions(+), 1 deletions(-) - -diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c -index 662c496..091e3e0 100644 ---- a/arch/arm/cpu/armv7/cpu.c -+++ b/arch/arm/cpu/armv7/cpu.c -@@ -65,7 +65,6 @@ int cleanup_before_linux(void) - * dcache_disable() in turn flushes the d-cache and disables MMU - */ - dcache_disable(); -- v7_outer_cache_disable(); - - /* - * After D-cache is flushed and before it is disabled there may --- -1.7.6.5 -
recipes-bsp/u-boot/u-boot/2011.12/0001-beagleboard-mount-rootfs-RO-instead-of-RW-at-boot.patch +2 -2
@@ -1,7 +1,7 @@ -From d0556964b6bd443e8b60d5c0b3326795a02cc8a7 Mon Sep 17 00:00:00 2001 +From e435374789db01c9499ec169b295496f039ec401 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Sun, 27 Nov 2011 14:43:58 +0100 -Subject: [PATCH 1/5] beagleboard: mount rootfs RO instead of RW at boot +Subject: [PATCH 01/10] beagleboard: mount rootfs RO instead of RW at boot Signed-off-by: Koen Kooi <[email protected]> ---
recipes-bsp/u-boot/u-boot/2011.12/0002-beagleboard-add-support-for-TCT-Beacon-board.patch +2 -2
@@ -1,7 +1,7 @@ -From 28e5cc1f13d817f75638c72eae853e53510a1ab2 Mon Sep 17 00:00:00 2001 +From 7c1bb614d0235c69e118f0552cbf46047f557b8c Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Sat, 8 Oct 2011 21:56:35 +0200 -Subject: [PATCH 2/5] beagleboard: add support for TCT Beacon board +Subject: [PATCH 02/10] beagleboard: add support for TCT Beacon board Signed-off-by: Koen Kooi <[email protected]> ---
recipes-bsp/u-boot/u-boot/2011.12/0003-beagleboard-add-support-for-scanning-loop-through-ex.patch +2 -2
@@ -1,7 +1,7 @@ -From fe9c653a0b0a3fa49d269b697c2058a6a55aa42b Mon Sep 17 00:00:00 2001 +From c8c3b1adff56c49f20732846a7087e95f6916e61 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Sun, 27 Nov 2011 14:53:56 +0100 -Subject: [PATCH 3/5] beagleboard: add support for scanning loop-through expansionboards like the uLCD-lite +Subject: [PATCH 03/10] beagleboard: add support for scanning loop-through expansionboards like the uLCD-lite Signed-off-by: Koen Kooi <[email protected]> ---
recipes-bsp/u-boot/u-boot/2011.12/0004-omap4-common-mount-root-RO.patch +2 -2
@@ -1,7 +1,7 @@ -From 90dfb660575f15ba736884139f35bfd4ba927468 Mon Sep 17 00:00:00 2001 +From e4ac25df241bc2f3e6e2b7116529e82dfa5aab00 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Thu, 8 Dec 2011 17:22:59 +0100 -Subject: [PATCH 4/5] omap4-common: mount root RO +Subject: [PATCH 04/10] omap4-common: mount root RO Signed-off-by: Koen Kooi <[email protected]> ---
recipes-bsp/u-boot/u-boot/2011.12/0005-omap4-common-use-ext4-by-default.patch +2 -2
@@ -1,7 +1,7 @@ -From a1f9453f2450762249aa35bd5ae97150acc53eb2 Mon Sep 17 00:00:00 2001 +From 9e4679bdc5a2f3908f9d5e757c9706c0040e3643 Mon Sep 17 00:00:00 2001 From: Koen Kooi <[email protected]> Date: Thu, 8 Dec 2011 17:23:24 +0100 -Subject: [PATCH 5/5] omap4-common: use ext4 by default +Subject: [PATCH 05/10] omap4-common: use ext4 by default Signed-off-by: Koen Kooi <[email protected]> ---
recipes-bsp/u-boot/u-boot/2011.12/0006-OMAP-MMC-Add-delay-before-waiting-for-status.patch new file +44 -0
44 lines not on this page · raw message
recipes-bsp/u-boot/u-boot/2011.12/0007-config-Always-use-GNU-ld.patch new file +43 -0
43 lines not on this page · raw message
recipes-bsp/u-boot/u-boot/2011.12/0008-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch new file +25 -0
@@ -0,0 +1,25 @@ +From 076f5b5c65a0f0652f5ba8b5328c52c76e951aaa Mon Sep 17 00:00:00 2001 +From: Philip Balister <[email protected]> +Date: Mon, 16 Jan 2012 09:45:11 -0500 +Subject: [PATCH 08/10] Revert "armv7: disable L2 cache in cleanup_before_linux()" + +This reverts commit dc7100f4080952798413fb63bb4134b22c57623a. +--- + arch/arm/cpu/armv7/cpu.c | 1 - + 1 files changed, 0 insertions(+), 1 deletions(-) + +diff --git a/arch/arm/cpu/armv7/cpu.c b/arch/arm/cpu/armv7/cpu.c +index 662c496..091e3e0 100644 +--- a/arch/arm/cpu/armv7/cpu.c ++++ b/arch/arm/cpu/armv7/cpu.c +@@ -65,7 +65,6 @@ int cleanup_before_linux(void) + * dcache_disable() in turn flushes the d-cache and disables MMU + */ + dcache_disable(); +- v7_outer_cache_disable(); + + /* + * After D-cache is flushed and before it is disabled there may +-- +1.7.2.5 +
recipes-bsp/u-boot/u-boot/2011.12/0009-Beagleboard-Correct-memory-size-on-rev-C4.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 588d0e7259e17f302cb79d12ed0f47410a0d8697 Mon Sep 17 00:00:00 2001 +From: [email protected] <[email protected]> +Date: Fri, 27 Jan 2012 07:09:42 +0000 +Subject: [PATCH 09/10] Beagleboard: Correct memory size on rev C4 + +Beagleboard: Correct memory size on rev C4 + +The logic for the rev C4 boards was missing one of the cases +(variant with Micron NAND and 2x128MB). + +Signed-off-by: Robert Nelson <[email protected]> +Signed-off-by: Koen Kooi <[email protected]> +--- + board/ti/beagle/beagle.c | 7 +++++++ + 1 files changed, 7 insertions(+), 0 deletions(-) + +diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c +index 5ea50d1..4555977 100644 +--- a/board/ti/beagle/beagle.c ++++ b/board/ti/beagle/beagle.c +@@ -169,6 +169,13 @@ void get_board_mem_timings(u32 *mcfg, u32 *ctrla, u32 *ctrlb, u32 *rfr_ctrl, + *ctrlb = NUMONYX_V_ACTIMB_165; + *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; + break; ++ } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xba) { ++ /* Beagleboard Rev C4, 512MB Nand/256MB DDR*/ ++ *mcfg = MICRON_V_MCFG_165(128 << 20); ++ *ctrla = MICRON_V_ACTIMA_165; ++ *ctrlb = MICRON_V_ACTIMB_165; ++ *rfr_ctrl = SDP_3430_SDRC_RFR_CTRL_165MHz; ++ break; + } else if (pop_mfr == NAND_MFR_MICRON && pop_id == 0xbc) { + /* Beagleboard Rev C5, 256MB DDR */ + *mcfg = MICRON_V_MCFG_200(256 << 20); +-- +1.7.2.5 +
recipes-bsp/u-boot/u-boot/2011.12/0010-OMAP3-Correct-get_sdr_cs_offset-mask.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 351fcc22c10beb005f589584b91298269a81aa52 Mon Sep 17 00:00:00 2001 +From: Tom Rini <[email protected]> +Date: Wed, 18 Jan 2012 08:28:50 +0000 +Subject: [PATCH 10/10] OMAP3: Correct get_sdr_cs_offset mask + +OMAP3: Correct get_sdr_cs_offset mask + +The function get_sdr_cs_offset reads the CS_CFG register in the SDRC +to determine where CS1 is mapped to. make_cs1_contiguous() will set +CS1 to follow after CS0. The CS_CFG register has values in bits 9:8 +and 3:0 but we had erroneously been testing 5:4 and 3:0 resulting in +incorrect offsets on platforms with less than 128MB as 3:0 describe +128MB hunks and 9:8 describe 32MB offsets after the 128MB hunk. + +Tested-by: Grant Erickson <[email protected]> +Signed-off-by: Tom Rini <[email protected]> +Signed-off-by: Koen Kooi <[email protected]> +--- + arch/arm/cpu/armv7/omap3/sdrc.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/arch/arm/cpu/armv7/omap3/sdrc.c b/arch/arm/cpu/armv7/omap3/sdrc.c +index a27b4b1..91f42c0 100644 +--- a/arch/arm/cpu/armv7/omap3/sdrc.c ++++ b/arch/arm/cpu/armv7/omap3/sdrc.c +@@ -102,7 +102,7 @@ u32 get_sdr_cs_offset(u32 cs) + return 0; + + offset = readl(&sdrc_base->cs_cfg); +- offset = (offset & 15) << 27 | (offset & 0x30) << 17; ++ offset = (offset & 15) << 27 | (offset & 0x300) << 17; + + return offset; + } +-- +1.7.2.5 +
recipes-bsp/u-boot/u-boot/2011.12/U-Boot-OMAP-MMC-Add-delay-before-waiting-for-status.patch deleted +0 -45
45 lines not on this page · raw message
recipes-bsp/u-boot/u-boot_2011.12.bb +7 -4
@@ -6,13 +6,13 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img" UBOOT_SYMLINK = "u-boot-${MACHINE}.img" PV = "2011.12" -PR = "r3" +PR = "r4" # No patches for other machines yet COMPATIBLE_MACHINE = "(beagleboard|pandaboard|hawkboard|am3517-evm|am37x-evm|omap3evm)" # Non-omap4 platforms need outer cache turned on -CACHEFIX = "file://2011.12/0001-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch" +CACHEFIX = "file://2011.12/0008-Revert-armv7-disable-L2-cache-in-cleanup_before_linu.patch" CACHEFIX_omap4 = "" SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
@@ -21,11 +21,14 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \ file://2011.12/0003-beagleboard-add-support-for-scanning-loop-through-ex.patch \ file://2011.12/0004-omap4-common-mount-root-RO.patch \ file://2011.12/0005-omap4-common-use-ext4-by-default.patch \ - file://2011.12/U-Boot-OMAP-MMC-Add-delay-before-waiting-for-status.patch \ - file://0001-config-Always-use-GNU-ld.patch \ + file://2011.12/0006-OMAP-MMC-Add-delay-before-waiting-for-status.patch \ + file://2011.12/0007-config-Always-use-GNU-ld.patch \ ${CACHEFIX} \ + file://2011.12/0009-Beagleboard-Correct-memory-size-on-rev-C4.patch \ + file://2011.12/0010-OMAP3-Correct-get_sdr_cs_offset-mask.patch \ " + # v2011.12 tag SRCREV = "cba9a894fdb1cb49b60fcd1d1d6919cbd7995dd5"
Signature · 1 line
1.7.2.5
Op 29 jan. 2012, om 14:51 heeft Koen Kooi het volgende geschreven:
Quoted 24 lines
Test results (which emberassingly enough lack an actual C4):
BeagleBoard B6:
OMAP3530-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 128 MiB NAND: 256 MiB [..] Beagle Rev Ax/BxBeagleBoard C3:
OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 256 MiB [..] Beagle Rev C1/C2/C3BeagleBoard C5:
Quoted 8 lines
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz OMAP3 Beagle board + LPDDR/NAND I2C: ready DRAM: 256 MiB NAND: 512 MiB [..] Beagle Rev C4
And now the big question: how should these be flashed to NAND?
Quoted 36 lines · Koen Kooi
Op 29 jan. 2012, om 14:51 heeft Koen Kooi het volgende geschreven:
Quoted 24 lines
Test results (which emberassingly enough lack an actual C4):
BeagleBoard B6:
OMAP3530-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 128 MiB
NAND: 256 MiB
[..]
Beagle Rev Ax/BxBeagleBoard C3:
OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
[..]
Beagle Rev C1/C2/C3BeagleBoard C5:
Quoted 8 lines
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 512 MiB
[..]
Beagle Rev C4
Quoted 1 line
And now the big question: how should these be flashed to NAND?
My sequence is:
mmc rescan 0;fatload mmc 0 82000000 MLO;nandecc hw;nand erase 0 80000;nand write 82000000 0 20000;nand write 82000000 20000 20000;nand write 82000000 40000 20000;nand write 82000000 60000 20000;fatload mmc 0 0x80200000 u-boot.img;nand erase 80000 170000;nand write 0x80200000 80000 170000
IOW, u-boot.img now goes in with HW, not SW EC
Signature · 1 line
Tom
Quoted 52 lines · Koen Kooi
Test results (which emberassingly enough lack an actual C4):
BeagleBoard B6:
OMAP3530-GP ES2.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 128 MiB
NAND: 256 MiB
[..]
Beagle Rev Ax/BxBeagleBoard C3:
OMAP3530-GP ES3.0, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
[..]
Beagle Rev C1/C2/C3BeagleBoard C5:
OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 512 MiB
[..]
Beagle Rev C4BeagleBoard xM A:
OMAP3630/3730-GP ES1.1, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
[..]
Beagle xM Rev ABeagleBoard xM C:
OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
[..]
Beagle xM Rev C
Quoted 1 line
Signed-off-by Koen Kooi <[email protected]>
Signature · 1 line
Tom