Skip to contentSkip to conversation

u-boot 2011.09: add pandaboard support

PATCH In review Koen Kooi 3 participants 9 messages Dec 7, 2011 – Dec 9, 2011

lore
Share & tools
lore

Koen Kooi

author
#0 lore raw

PATCH 1/3 u-boot 2011.09: add pandaboard support

---
 recipes-bsp/u-boot/u-boot_2011.09.bb |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot_2011.09.bb +6 -3
index 74c8518..955bd5e 100644
@@ -8,9 +8,9 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"
 
 # No patches for other machines yet
-COMPATIBLE_MACHINE = "(beagleboard)"
+COMPATIBLE_MACHINE = "(beagleboard|omap4430-panda)"
 
-SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
+SRC_URI_pn-${PN}_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
            file://2011.09/0001-omap3-mem-Comment-enable_gpmc_cs_config-more.patch \
            file://2011.09/0002-OMAP3-Update-SDRC-dram_init-to-always-call-make_cs1_.patch \
            file://2011.09/0003-OMAP3-Add-a-helper-function-to-set-timings-in-SDRC.patch \
@@ -35,7 +35,10 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
            file://fw_env.config \
           "
 
-SRCREV = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+SRCREV_pn-${PN}_beagleboard = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+
+SRC_URI_pn-${PN}_omap4430-panda = "git://git.linaro.org/boot/u-boot-linaro-stable.git"
+SRCREV_pn-${PN}_omap4430-panda = "3d343a62b8240100d6ce76b9126ff1e97be1eb5f"
 
 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
 
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH 2/3 u-boot: cleanup

Set compatible machine in all recipes, remove deprecated versions for some machines

---
 recipes-bsp/u-boot/u-boot-sakoman_git.bb |    2 ++
 recipes-bsp/u-boot/u-boot_2011.10rc.bb   |    2 ++
 recipes-bsp/u-boot/u-boot_git.bb         |   25 +------------------------
 3 files changed, 5 insertions(+), 24 deletions(-)
recipes-bsp/u-boot/u-boot-sakoman_git.bb +2 -0
index 5b9ff11..fab269a 100644
@@ -1,5 +1,7 @@
 require u-boot.inc
 
+COMPATIBLE_MACHINE = "omap4430-panda"
+
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/u-boot-sakoman-git/"
 
 SRCREV = "261733408a27d14590cf3ec6b596461808050e32"
recipes-bsp/u-boot/u-boot_2011.10rc.bb +2 -0
index ebcb353..74597f6 100644
@@ -2,7 +2,9 @@ require u-boot.inc
 
 # No patches for other machines yet
 COMPATIBLE_MACHINE = "(ti33x)"
+
 DEFAULT_PREFERENCE_ti33x = "99"
+
 PV = "2011.09+git"
 PR = "r25"
 
recipes-bsp/u-boot/u-boot_git.bb +1 -24
index 022d7fc..5abb6f5 100644
@@ -1,35 +1,12 @@
 require u-boot.inc
 PR ="r67"
 
+DEFAULT_PREFERENCE = "-1"
 DEFAULT_PREFERENCE_ti814x = "-1"
 DEFAULT_PREFERENCE_ti816x = "-1"
 
 FILESPATHPKG =. "u-boot-git:"
 
-SRC_URI_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
-                       file://0001-OMAP3-Beagle-Pin-Mux-initialization-glitch-fix.patch \
-                       file://0002-OMAP-Remove-omapfb.debug-y-from-Beagle-and-Overo-env.patch \
-                       file://0003-omap3_beagle-enable-the-use-of-a-plain-text-file-nam.patch \
-                       file://0004-OMAP3-BeagleBoard-Enable-pullups-on-i2c2.patch \
-                       file://0005-ARMV7-OMAP3-BeagleBoard-add-xM-rev-B-to-ID-table.patch \
-                       file://0006-OMAP3-BeagleBoard-add-more-expansionboard-IDs.patch \
-                       file://0007-OMAP3-Add-DSS-driver-for-OMAP3.patch \
-                       file://0008-BeagleBoard-Added-userbutton-command.patch \
-                       file://0009-OMAP3-beagle-pass-expansionboard-name-in-bootargs.patch \
-                       file://0010-Enable-DSS-driver-for-Beagle.patch \
-                       file://0011-Add-led-command.patch \
-                       file://0012-BeagleBoard-Added-LED-driver.patch \
-                       file://0013-OMAP3-BeagleBoard-updated-default-configuration.patch \
-                       file://0014-Corrected-LED-name-match-finding-avoiding-extraneous.patch \
-                       file://0015-omap3_beagle-Switch-default-console-from-ttyS2-to-tt.patch \
-                       file://0016-BeagleBoard-Load-kernel-via-MMC-ext2-not-fat.patch \
-                       file://fw_env.config \
-                      "
-
-SRCREV_pn-${PN}_beagleboard = "c7977858dcf1f656cbe91ea0dc3cb9139c6a8cc8"
-PV_pn-${PN}_beagleboard = "2011.02+${PR}+gitr${SRCREV}"
-LIC_FILES_CHKSUM_pn-${PN}_beagleboard = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"
-
 # ~ TI PSP v2009.11_OMAPPSP_03.00.01.06 (+ couple of commits)
 SRC_URI_omap3evm = "git://arago-project.org/git/projects/u-boot-omap3.git;protocol=git \
     file://0001-omap3evm-Change-default-console-serial-port-from.patch \
Signature · 1 line
1.7.2.5
author
#2 lore raw

PATCH 3/3 omap4430-panda: switch to u-boot-spl

In reply to Koen Kooi
---
 conf/machine/omap4430-panda.conf |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
conf/machine/omap4430-panda.conf +1 -4
index 8f9f86e..d6572ee 100644
@@ -4,10 +4,7 @@
 
 require conf/machine/include/omap3.inc
 
-EXTRA_IMAGEDEPENDS = "x-load u-boot-sakoman "
-
-XLOAD_MACHINE = "omap4430panda_config"
-XLOAD_LOAD_ADDRESS = 0x40304350
+EXTRA_IMAGEDEPENDS = "u-boot "
 
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-sakoman"
 UBOOT_MACHINE = "omap4_panda_config"
Signature · 1 line
1.7.2.5
#3 lore raw

Re: [PATCH 3/3] omap4430-panda: switch to u-boot-spl

Quoted 10 lines · Koen Kooi
---
 conf/machine/omap4430-panda.conf |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
(quoted diff) +0 -0

b/conf/machine/omap4430-panda.conf index 8f9f86e..d6572ee 100644

conf/machine/omap4430-panda.conf line 9

Quoted 10 lines
conf/machine/omap4430-panda.conf +1 -4
@@ -4,10 +4,7 @@
 
 require conf/machine/include/omap3.inc
 
-EXTRA_IMAGEDEPENDS = "x-load u-boot-sakoman "
-
-XLOAD_MACHINE = "omap4430panda_config"
-XLOAD_LOAD_ADDRESS = 0x40304350
+EXTRA_IMAGEDEPENDS = "u-boot "
 
 PREFERRED_PROVIDER_virtual/bootloader = "u-boot-sakoman"

Is u-boot-sakoman in PREFERRED_PROVIDER_virtual/bootloader wanted?

Quoted 1 line
conf/machine/omap4430-panda.conf +0 -0
 UBOOT_MACHINE = "omap4_panda_config"
#4 lore raw
In reply to Koen Kooi
Quoted 31 lines · Koen Kooi

---
 recipes-bsp/u-boot/u-boot_2011.09.bb |    9 ++++++---

 1 files changed, 6 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
index 74c8518..955bd5e 100644
@@ -8,9 +8,9 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"

 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"

 # No patches for other machines yet

recipes-bsp/u-boot/u-boot_2011.09.bb +2 -2
-COMPATIBLE_MACHINE = "(beagleboard)"
+COMPATIBLE_MACHINE = "(beagleboard|omap4430-panda)"
 
-SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
+SRC_URI_pn-${PN}_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \

           file://2011.09/0001-omap3-mem-Comment-enable_gpmc_cs_config-more.patch \
           file://2011.09/0002-OMAP3-Update-SDRC-dram_init-to-always-call-make_cs1_.patch \
           file://2011.09/0003-OMAP3-Add-a-helper-function-to-set-timings-in-SDRC.patch \

recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
@@ -35,7 +35,10 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
            file://fw_env.config \

          "

recipes-bsp/u-boot/u-boot_2011.09.bb +4 -1
-SRCREV = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+SRCREV_pn-${PN}_beagleboard = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+
+SRC_URI_pn-${PN}_omap4430-panda = "git://git.linaro.org/boot/u-boot-linaro-stable.git"
+SRCREV_pn-${PN}_omap4430-panda = "3d343a62b8240100d6ce76b9126ff1e97be1eb5f"
Quoted 1 line

 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

On the beagle rev, what doesn't work for pandaboard? And/or, what doesn't work on pandaboard on u-boot git mainline? 2011.12 is near and that will have the Beagle SPL patches and I'd like to say it's safe for pandas too.

Signature · 1 line
Tom
author
#5 lore raw

Op 7 dec. 2011, om 16:38 heeft Tom Rini het volgende geschreven:

Quoted 32 lines · Koen Kooi
Quoted 31 lines
---
 recipes-bsp/u-boot/u-boot_2011.09.bb |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot_2011.09.bb +6 -3
index 74c8518..955bd5e 100644
@@ -8,9 +8,9 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"
 
 # No patches for other machines yet
-COMPATIBLE_MACHINE = "(beagleboard)"
+COMPATIBLE_MACHINE = "(beagleboard|omap4430-panda)"
 
-SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
+SRC_URI_pn-${PN}_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
           file://2011.09/0001-omap3-mem-Comment-enable_gpmc_cs_config-more.patch \
           file://2011.09/0002-OMAP3-Update-SDRC-dram_init-to-always-call-make_cs1_.patch \
           file://2011.09/0003-OMAP3-Add-a-helper-function-to-set-timings-in-SDRC.patch \
@@ -35,7 +35,10 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
           file://fw_env.config \
          "
 
-SRCREV = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+SRCREV_pn-${PN}_beagleboard = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+
+SRC_URI_pn-${PN}_omap4430-panda = "git://git.linaro.org/boot/u-boot-linaro-stable.git"
+SRCREV_pn-${PN}_omap4430-panda = "3d343a62b8240100d6ce76b9126ff1e97be1eb5f"
 
Quoted 6 lines

recipes-bsp/u-boot/u-boot_2011.09.bb SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \ · line 43

Quoted 1 line
recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

On the beagle rev, what doesn't work for pandaboard? And/or, what doesn't work on pandaboard on u-boot git mainline? 2011.12 is near and that will have the Beagle SPL patches and I'd like to say it's safe for pandas too.

I haven't investigated that far yet. This stage is just implementing http://www.elinux.org/PandaBoard_ES_uboot_howto , the next stage will be checking what linaro added to 2011.09 to get 4460 to work and move that over to 2011.12.

regards,

Koen

author
#6 lore raw
In reply to Tom Rini

Op 7 dec. 2011, om 16:38 heeft Tom Rini het volgende geschreven:

Quoted 32 lines · Koen Kooi
Quoted 31 lines
---
 recipes-bsp/u-boot/u-boot_2011.09.bb |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot_2011.09.bb +6 -3
index 74c8518..955bd5e 100644
@@ -8,9 +8,9 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"
 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"
 
 # No patches for other machines yet
-COMPATIBLE_MACHINE = "(beagleboard)"
+COMPATIBLE_MACHINE = "(beagleboard|omap4430-panda)"
 
-SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
+SRC_URI_pn-${PN}_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \
           file://2011.09/0001-omap3-mem-Comment-enable_gpmc_cs_config-more.patch \
           file://2011.09/0002-OMAP3-Update-SDRC-dram_init-to-always-call-make_cs1_.patch \
           file://2011.09/0003-OMAP3-Add-a-helper-function-to-set-timings-in-SDRC.patch \
@@ -35,7 +35,10 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
           file://fw_env.config \
          "
 
-SRCREV = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+SRCREV_pn-${PN}_beagleboard = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+
+SRC_URI_pn-${PN}_omap4430-panda = "git://git.linaro.org/boot/u-boot-linaro-stable.git"
+SRCREV_pn-${PN}_omap4430-panda = "3d343a62b8240100d6ce76b9126ff1e97be1eb5f"
 
Quoted 6 lines

recipes-bsp/u-boot/u-boot_2011.09.bb SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \ · line 43

Quoted 1 line
recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

On the beagle rev, what doesn't work for pandaboard? And/or, what doesn't work on pandaboard on u-boot git mainline? 2011.12 is near and that will have the Beagle SPL patches and I'd like to say it's safe for pandas too.

U-Boot SPL 2011.09-01433-g01baa05 (Dec 08 2011 - 16:49:37) Texas Instruments OMAP4460 ES1.1
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img

U-Boot 2011.09-01433-g01baa05 (Dec 08 2011 - 16:49:37)

CPU  : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0

Using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0 

reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uImage

4079360 bytes read
Booting from mmc0 ...
## Booting kernel from Legacy Image at 82000000 ...

   Image Name:   Angstrom/2.6.35.7/omap4430-panda
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4079296 Bytes = 3.9 MiB

Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

So mainline works, I'll wait for 2011.12 final and move beagle, panda, crane, hawk to that. What's the state of TI EVMs in mainline?

regards,

Koen

#7 lore raw
Quoted 77 lines · Koen Kooi

Op 7 dec. 2011, om 16:38 heeft Tom Rini het volgende geschreven:

Quoted 32 lines · Koen Kooi
Quoted 31 lines

---
 recipes-bsp/u-boot/u-boot_2011.09.bb |    9 ++++++---

 1 files changed, 6 insertions(+), 3 deletions(-)
recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
index 74c8518..955bd5e 100644
@@ -8,9 +8,9 @@ UBOOT_IMAGE = "u-boot-${MACHINE}-${PV}-${PR}.img"

 UBOOT_SYMLINK = "u-boot-${MACHINE}.img"

 # No patches for other machines yet

recipes-bsp/u-boot/u-boot_2011.09.bb +2 -2
-COMPATIBLE_MACHINE = "(beagleboard)"
+COMPATIBLE_MACHINE = "(beagleboard|omap4430-panda)"
 
-SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
+SRC_URI_pn-${PN}_beagleboard = "git://www.denx.de/git/u-boot.git;protocol=git \

           file://2011.09/0001-omap3-mem-Comment-enable_gpmc_cs_config-more.patch \
           file://2011.09/0002-OMAP3-Update-SDRC-dram_init-to-always-call-make_cs1_.patch \
           file://2011.09/0003-OMAP3-Add-a-helper-function-to-set-timings-in-SDRC.patch \

recipes-bsp/u-boot/u-boot_2011.09.bb +0 -0
@@ -35,7 +35,10 @@ SRC_URI = "git://www.denx.de/git/u-boot.git;protocol=git \
            file://fw_env.config \

          "

recipes-bsp/u-boot/u-boot_2011.09.bb +4 -1
-SRCREV = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+SRCREV_pn-${PN}_beagleboard = "fdbe8b9a2d1858ba35dd6214315563ad44d4a0e3"
+
+SRC_URI_pn-${PN}_omap4430-panda = "git://git.linaro.org/boot/u-boot-linaro-stable.git"
+SRCREV_pn-${PN}_omap4430-panda = "3d343a62b8240100d6ce76b9126ff1e97be1eb5f"
Quoted 6 lines
Quoted 1 line

 LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb"

On the beagle rev, what doesn't work for pandaboard?  And/or, what doesn't work on pandaboard on u-boot git mainline?  2011.12 is near and that will have the Beagle SPL patches and I'd like to say it's safe for pandas too.

U-Boot SPL 2011.09-01433-g01baa05 (Dec 08 2011 - 16:49:37) Texas Instruments OMAP4460 ES1.1
OMAP SD/MMC: 0
reading u-boot.img
reading u-boot.img

U-Boot 2011.09-01433-g01baa05 (Dec 08 2011 - 16:49:37)

CPU  : OMAP4460 ES1.1
Board: OMAP4 Panda
I2C:   ready
DRAM:  1 GiB
MMC:   OMAP SD/MMC: 0
Using default environment

In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uImage

4079360 bytes read
Booting from mmc0 ...
## Booting kernel from Legacy Image at 82000000 ... Image Name:   Angstrom/2.6.35.7/omap4430-panda Image Type:   ARM Linux Kernel Image (uncompressed) Data Size:    4079296 Bytes = 3.9 MiB
  Load Address: 80008000
  Entry Point:  80008000
  Verifying Checksum ... OK
  Loading Kernel Image ... OK
OK

Quoted 3 lines

Starting kernel ...

So mainline works, I'll wait for 2011.12 final and move beagle, panda, crane, hawk to that. What's the state of TI EVMs in mainline?

AM3517EVM and OMAP3EVM are also good and SPL'd. Mainline isn't yet appropriate for am335x evm nor beaglebone.

Signature · 1 line
Tom
author
#8 lore raw

Op 8 dec. 2011, om 17:34 heeft Tom Rini het volgende geschreven:

Quoted 2 lines · Koen Kooi
Quoted 1 line

[..]

Quoted 4 lines
Quoted 1 line

So mainline works, I'll wait for 2011.12 final and move beagle, panda, crane, hawk to that. What's the state of TI EVMs in mainline?

AM3517EVM and OMAP3EVM are also good and SPL'd. Mainline isn't yet appropriate for am335x evm nor beaglebone.

I've moved this to a separate branch: http://git.angstrom-distribution.org/cgi-bin/cgit.cgi/meta-texasinstruments/log/?h=pandaboard-rework

It's going to be rebased from time to time, so be careful depending on it.

regards,

Koen