* [PATCH openbmc v3 0/2] Revert "Back off GCC to 4.9.3" @ 2016-04-04 14:00 OpenBMC Patches 2016-04-04 14:00 ` [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version OpenBMC Patches 2016-04-04 14:00 ` [PATCH openbmc v3 2/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches 0 siblings, 2 replies; 6+ messages in thread From: OpenBMC Patches @ 2016-04-04 14:00 UTC (permalink / raw) To: openbmc This reverts commit f23f11b41c167f1827c073fa305a46cde1ff4760. As of linux 4.2 SRA is disabled when building the kernel for ARM. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=a077224fd35b2f7fbc93f14cf67074fc792fbac2 It is suspect that this was the cause of the failure to boot. Signed-off-by: Joel Stanley <joel@jms.id.au> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/openbmc/227) <!-- Reviewable:end --> https://github.com/openbmc/openbmc/pull/227 Joel Stanley (2): meta-phosphor/u-boot: Move to newer version Revert "Back off GCC to 4.9.3" meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb | 3 +-- meta-phosphor/conf/distro/openbmc-phosphor.conf | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) -- 2.7.1 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version 2016-04-04 14:00 [PATCH openbmc v3 0/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches @ 2016-04-04 14:00 ` OpenBMC Patches 2016-04-05 15:25 ` Cédric Le Goater 2016-04-04 14:00 ` [PATCH openbmc v3 2/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches 1 sibling, 1 reply; 6+ messages in thread From: OpenBMC Patches @ 2016-04-04 14:00 UTC (permalink / raw) To: openbmc From: Joel Stanley <joel@jms.id.au> Fixes from Milton for u-boot leaving ethernet device running after loading linux: net: aspeednic: Create aspeed_write_hwaddr from set_mac_address net: aspeednic: Do not start hardware in initialize net: aspeednic: Remove extra spaces before assignments net: aspeednic: Do not fill in a random MAC address net: Implement random ethaddr fallback in eth.c Backports from upstream from me to support building under modern GCC versions: common: main.c: make show_boot_progress __weak ARM:asm:io.h use static inline arm: board: use __weak net: Implement random ethaddr fallback in eth.c compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 Signeo-off-by: Joel Stanley <joel@jms.id.au> --- meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb index 6070fbf..f2434ad 100644 --- a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb @@ -10,9 +10,8 @@ LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ file://README;beginline=1;endline=22;md5=78b195c11cb6ef63e6985140db7d7bab" -# This revision corresponds to the tag "v2013.07" # We use the revision in order to avoid having to fetch it from the repo during parse -SRCREV = "4b44678c11ac82c7c797bb115e276181752ad54d" +SRCREV = "44f1262bdf39ad93032d39f17a298165372be82e" PV = "v2013.07+git${SRCPV}" -- 2.7.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version 2016-04-04 14:00 ` [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version OpenBMC Patches @ 2016-04-05 15:25 ` Cédric Le Goater 2016-04-11 3:42 ` Cyril Bur 0 siblings, 1 reply; 6+ messages in thread From: Cédric Le Goater @ 2016-04-05 15:25 UTC (permalink / raw) To: OpenBMC Patches, openbmc Hello, I have given some time recently to the OpenBmc U-Boot and came up with a first initial port of the aspeed code on a recent version, v2016.03. Here is the tree : https://github.com/legoater/u-boot/commits/v2016.03-aspeed-openbmc There is still quite a lot of cleanup to do, the code has warnings, some configure defines are probably obsolete. This is clearly not finished yet. But it is usable. These compilers on jessie generate a u-boot.bin file which boots a palmetto bmc with success : gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0) gcc version 4.8.4 20141219 (release) (4.8.4-1+11-1) So if some of you has time (and a flash programmer), could you please give it a try ? I will be glad to have positive feedback. You can curse me if not :) Then, I would be interested to see how we proceed from there to include more changes. Thanks, C. On 04/04/2016 04:00 PM, OpenBMC Patches wrote: > From: Joel Stanley <joel@jms.id.au> > > Fixes from Milton for u-boot leaving ethernet device running after > loading linux: > > net: aspeednic: Create aspeed_write_hwaddr from set_mac_address > net: aspeednic: Do not start hardware in initialize > net: aspeednic: Remove extra spaces before assignments > net: aspeednic: Do not fill in a random MAC address > net: Implement random ethaddr fallback in eth.c > > Backports from upstream from me to support building under modern GCC > versions: > > common: main.c: make show_boot_progress __weak > ARM:asm:io.h use static inline > arm: board: use __weak > net: Implement random ethaddr fallback in eth.c > compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 > > Signeo-off-by: Joel Stanley <joel@jms.id.au> > --- > meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > index 6070fbf..f2434ad 100644 > --- a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > @@ -10,9 +10,8 @@ LICENSE = "GPLv2+" > LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ > file://README;beginline=1;endline=22;md5=78b195c11cb6ef63e6985140db7d7bab" > > -# This revision corresponds to the tag "v2013.07" > # We use the revision in order to avoid having to fetch it from the repo during parse > -SRCREV = "4b44678c11ac82c7c797bb115e276181752ad54d" > +SRCREV = "44f1262bdf39ad93032d39f17a298165372be82e" > > PV = "v2013.07+git${SRCPV}" > > ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version 2016-04-05 15:25 ` Cédric Le Goater @ 2016-04-11 3:42 ` Cyril Bur 2016-04-11 15:12 ` Cédric Le Goater 0 siblings, 1 reply; 6+ messages in thread From: Cyril Bur @ 2016-04-11 3:42 UTC (permalink / raw) To: Cédric Le Goater; +Cc: Joel Stanley, openbmc On Tue, 5 Apr 2016 17:25:09 +0200 Cédric Le Goater <clg@fr.ibm.com> wrote: > Hello, > > I have given some time recently to the OpenBmc U-Boot and came up with > a first initial port of the aspeed code on a recent version, v2016.03. > Here is the tree : > > https://github.com/legoater/u-boot/commits/v2016.03-aspeed-openbmc > > There is still quite a lot of cleanup to do, the code has warnings, some > configure defines are probably obsolete. This is clearly not finished yet. > But it is usable. > > These compilers on jessie generate a u-boot.bin file which boots a > palmetto bmc with success : > > gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0) > gcc version 4.8.4 20141219 (release) (4.8.4-1+11-1) > > So if some of you has time (and a flash programmer), could you please > give it a try ? I will be glad to have positive feedback. You can curse > me if not :) Hi Cedric, Took me a couple of days to get around to actually booting it, sorry. Now that I've done it though, nice work! DRAM Init-DDR3 CBR0-1357135670123456701234567 CBR134Done U-Boot 2016.03 (Apr 08 2016 - 14:53:05 +1000) I2C: ready DRAM: 256 MiB WARNING: Caches not enabled Flash: SPI Flash ID: 19ba20 32 MiB In: serial Out: serial Err: serial H/W: AST2400 series chip Rev. 01 Watchdog: 300s Net: aspeednic#0 autoboot in 10 seconds (stop with 'Delete' key)... It appears to work how we want it. By default it just boots exactly as before. I tftped a kernel and initramfs and that works fine. Thumbs up from me, Thanks, Cyril > > Then, I would be interested to see how we proceed from there to include > more changes. > > Thanks, > > C. > > > > On 04/04/2016 04:00 PM, OpenBMC Patches wrote: > > From: Joel Stanley <joel@jms.id.au> > > > > Fixes from Milton for u-boot leaving ethernet device running after > > loading linux: > > > > net: aspeednic: Create aspeed_write_hwaddr from set_mac_address > > net: aspeednic: Do not start hardware in initialize > > net: aspeednic: Remove extra spaces before assignments > > net: aspeednic: Do not fill in a random MAC address > > net: Implement random ethaddr fallback in eth.c > > > > Backports from upstream from me to support building under modern GCC > > versions: > > > > common: main.c: make show_boot_progress __weak > > ARM:asm:io.h use static inline > > arm: board: use __weak > > net: Implement random ethaddr fallback in eth.c > > compiler*.h: sync include/linux/compiler*.h with Linux 4.5-rc6 > > > > Signeo-off-by: Joel Stanley <joel@jms.id.au> > > --- > > meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb | 3 +-- > > 1 file changed, 1 insertion(+), 2 deletions(-) > > > > diff --git a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > > index 6070fbf..f2434ad 100644 > > --- a/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > > +++ b/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2013.07.bb > > @@ -10,9 +10,8 @@ LICENSE = "GPLv2+" > > LIC_FILES_CHKSUM = "file://COPYING;md5=1707d6db1d42237583f50183a5651ecb \ > > file://README;beginline=1;endline=22;md5=78b195c11cb6ef63e6985140db7d7bab" > > > > -# This revision corresponds to the tag "v2013.07" > > # We use the revision in order to avoid having to fetch it from the repo during parse > > -SRCREV = "4b44678c11ac82c7c797bb115e276181752ad54d" > > +SRCREV = "44f1262bdf39ad93032d39f17a298165372be82e" > > > > PV = "v2013.07+git${SRCPV}" > > > > > > _______________________________________________ > openbmc mailing list > openbmc@lists.ozlabs.org > https://lists.ozlabs.org/listinfo/openbmc ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version 2016-04-11 3:42 ` Cyril Bur @ 2016-04-11 15:12 ` Cédric Le Goater 0 siblings, 0 replies; 6+ messages in thread From: Cédric Le Goater @ 2016-04-11 15:12 UTC (permalink / raw) To: Cyril Bur; +Cc: Joel Stanley, openbmc On 04/11/2016 05:42 AM, Cyril Bur wrote: > On Tue, 5 Apr 2016 17:25:09 +0200 > Cédric Le Goater <clg@fr.ibm.com> wrote: > >> Hello, >> >> I have given some time recently to the OpenBmc U-Boot and came up with >> a first initial port of the aspeed code on a recent version, v2016.03. >> Here is the tree : >> >> https://github.com/legoater/u-boot/commits/v2016.03-aspeed-openbmc >> >> There is still quite a lot of cleanup to do, the code has warnings, some >> configure defines are probably obsolete. This is clearly not finished yet. >> But it is usable. >> >> These compilers on jessie generate a u-boot.bin file which boots a >> palmetto bmc with success : >> >> gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0) >> gcc version 4.8.4 20141219 (release) (4.8.4-1+11-1) >> >> So if some of you has time (and a flash programmer), could you please >> give it a try ? I will be glad to have positive feedback. You can curse >> me if not :) > > Hi Cedric, > > Took me a couple of days to get around to actually booting it, sorry. Now > that I've done it though, nice work! > > DRAM Init-DDR3 > CBR0-1357135670123456701234567 > CBR134Done > > > U-Boot 2016.03 (Apr 08 2016 - 14:53:05 +1000) > > I2C: ready > DRAM: 256 MiB > WARNING: Caches not enabled > Flash: SPI Flash ID: 19ba20 > 32 MiB > In: serial > Out: serial > Err: serial > H/W: AST2400 series chip Rev. 01 > Watchdog: 300s > Net: aspeednic#0 > autoboot in 10 seconds (stop with 'Delete' key)... > > It appears to work how we want it. By default it just boots exactly as before. > I tftped a kernel and initramfs and that works fine. > > Thumbs up from me, Hello Cyril, Thanks for testing ! Here's a patch below to integrate the branch in the openbmc build. This is a new build framework for me, so may be there is a better way to do so. The resulting flash image was tested on a palmetto. Cheers, C. From: Cédric Le Goater <clg@fr.ibm.com> Subject: [PATCH] uboot: use v2016.03-aspeed-openbmc branch Date: Mon, 11 Apr 2016 16:49:07 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Cédric Le Goater <clg@fr.ibm.com> --- meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot-fw-utils_2016.03%.bbappend | 13 ++ meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2016.03%.bbappend | 10 + meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb | 54 ++++++++++ meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.03.bb | 31 +++++ 4 files changed, 108 insertions(+) Index: openbmc.git/meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb =================================================================== --- /dev/null +++ openbmc.git/meta-phosphor/common/recipes-bsp/u-boot/u-boot-fw-utils_2016.03.bb @@ -0,0 +1,54 @@ +#require recipes-bsp/u-boot/u-boot.inc + +SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities" +SECTION = "bootloader" +DEPENDS = "mtd-utils" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" + +# This revision corresponds to the tag "v2013.07" +# We use the revision in order to avoid having to fetch it from the +# repo during parse +# SRCREV = "62c175fbb8a0f9a926c88294ea9f7e88eb898f6c" +SRCREV="28aaabf6d1ebd144755287cef417bb59a50f0191" + +PV = "v2016.03+git${SRCPV}" + +UBRANCH = "v2016.03-aspeed-openbmc" +SRC_URI = "git://git@github.com/legoater/u-boot.git;branch=${UBRANCH};protocol=https" +S = "${WORKDIR}/git" + +#INSANE_SKIP_${PN} = "already-stripped" +#EXTRA_OEMAKE_class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' +#EXTRA_OEMAKE_class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1' +EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1' + +inherit uboot-config + +do_compile () { + oe_runmake ${MACHINE}_defconfig + oe_runmake env +} + +do_install () { + install -d ${D}${base_sbindir} + install -d ${D}${sysconfdir} + install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv + ln -sf fw_printenv ${D}${base_sbindir}/fw_setenv + install -m 0644 ${S}/tools/env/fw_env.config ${D}${sysconfdir}/fw_env.config +} + +#do_install_class-cross () { +# install -d ${D}${bindir_cross} +# install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv +# install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv +#} + +#SYSROOT_PREPROCESS_FUNCS_class-cross = "uboot_fw_utils_cross" +#uboot_fw_utils_cross() { +# sysroot_stage_dir ${D}${bindir_cross} ${SYSROOT_DESTDIR}${bindir_cross} +#} + +PACKAGE_ARCH = "${MACHINE_ARCH}" +#BBCLASSEXTEND = "cross native" Index: openbmc.git/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.03.bb =================================================================== --- /dev/null +++ openbmc.git/meta-phosphor/common/recipes-bsp/u-boot/u-boot_2016.03.bb @@ -0,0 +1,31 @@ +require recipes-bsp/u-boot/u-boot.inc + +# To build u-boot for your machine, provide the following lines in your machine +# config, replacing the assignments as appropriate for your machine. +# UBOOT_MACHINE = "omap3_beagle_config" +# UBOOT_ENTRYPOINT = "0x80008000" +# UBOOT_LOADADDRESS = "0x80008000" + +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6" + +# We use the revision in order to avoid having to fetch it from the repo during parse +SRCREV = "28aaabf6d1ebd144755287cef417bb59a50f0191" + +PV = "v2016.03+git${SRCPV}" + +UBRANCH = "v2016.03-aspeed-openbmc" +SRC_URI = "git://git@github.com/legoater/u-boot.git;branch=${UBRANCH};protocol=https" + +S = "${WORKDIR}/git" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +EXTRA_OEMAKE = 'CROSS_COMPILE="${TARGET_PREFIX}" CC="${CC} ${CFLAGS} ${LDFLAGS}" STRIP=true V=1' + +do_compile () { + oe_runmake ${MACHINE}_defconfig + oe_runmake +} + + Index: openbmc.git/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot-fw-utils_2016.03%.bbappend =================================================================== --- /dev/null +++ openbmc.git/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot-fw-utils_2016.03%.bbappend @@ -0,0 +1,13 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://fw_env.config" +SRC_URI += "file://config.patch" + +do_install_append() { + if [ -e ${WORKDIR}/fw_env.config ] ; then + install -d ${D}${sysconfdir} + install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config + fi +} + +BBCLASSEXTEND += "native" Index: openbmc.git/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2016.03%.bbappend =================================================================== --- /dev/null +++ openbmc.git/meta-openbmc-bsp/meta-aspeed/meta-ast2400/recipes-bsp/u-boot/u-boot_2016.03%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" + +SRC_URI += "file://fw_env.config" +SRC_URI += "file://config.patch" + +# Do not install u-boot in rootfs +#do_install[postfuncs] += "remove_uboot_from_rootfs" +#remove_uboot_from_rootfs() { +# rm -rf ${D}/boot/u-boot* +#} ^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH openbmc v3 2/2] Revert "Back off GCC to 4.9.3" 2016-04-04 14:00 [PATCH openbmc v3 0/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches 2016-04-04 14:00 ` [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version OpenBMC Patches @ 2016-04-04 14:00 ` OpenBMC Patches 1 sibling, 0 replies; 6+ messages in thread From: OpenBMC Patches @ 2016-04-04 14:00 UTC (permalink / raw) To: openbmc From: Joel Stanley <joel@jms.id.au> This reverts commit f23f11b41c167f1827c073fa305a46cde1ff4760. As of linux 4.2 SRA is disabled when building the kernel for ARM. https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit?id=a077224fd35b2f7fbc93f14cf67074fc792fbac2 It is suspect that this was the cause of the failure to boot. Signed-off-by: Joel Stanley <joel@jms.id.au> --- meta-phosphor/conf/distro/openbmc-phosphor.conf | 1 - 1 file changed, 1 deletion(-) diff --git a/meta-phosphor/conf/distro/openbmc-phosphor.conf b/meta-phosphor/conf/distro/openbmc-phosphor.conf index 4af4a4b..de01009 100644 --- a/meta-phosphor/conf/distro/openbmc-phosphor.conf +++ b/meta-phosphor/conf/distro/openbmc-phosphor.conf @@ -5,7 +5,6 @@ DISTRO_NAME = "Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro)" DISTRO_VERSION = "0.1.0" TARGET_VENDOR="-openbmc" -GCCVERSION ?= "4.9.3" IMAGE_FSTYPES += "cpio.gz" IMAGE_FSTYPES += "squashfs-xz" IMAGE_LINGUAS = "en-us" -- 2.7.1 ^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-04-11 15:12 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2016-04-04 14:00 [PATCH openbmc v3 0/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches 2016-04-04 14:00 ` [PATCH openbmc v3 1/2] meta-phosphor/u-boot: Move to newer version OpenBMC Patches 2016-04-05 15:25 ` Cédric Le Goater 2016-04-11 3:42 ` Cyril Bur 2016-04-11 15:12 ` Cédric Le Goater 2016-04-04 14:00 ` [PATCH openbmc v3 2/2] Revert "Back off GCC to 4.9.3" OpenBMC Patches
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.