* Re: [PATCH openbmc] Build a tftpboot friendly image.
2016-04-26 1:04 ` Brad Bishop
@ 2016-04-26 1:10 ` Cyril Bur
2016-04-26 1:50 ` Cyril Bur
2016-04-27 1:38 ` Cyril Bur
2 siblings, 0 replies; 9+ messages in thread
From: Cyril Bur @ 2016-04-26 1:10 UTC (permalink / raw)
To: Brad Bishop; +Cc: OpenBMC Patches
On Mon, 25 Apr 2016 21:04:28 -0400
Brad Bishop <bradleyb@fuzziesquirrel.com> wrote:
> Yep, thats what it does. Did you use obmc-phosphor-image-<machine>.cpio.lzma.u-boot?
>
Ah, nope that file doesn't appear to exist in my images directory. This must be
my fault, I don't really have any idea how to use bitbake more than what is on
the openbmc wiki, I hoped simply rerunning `bitbake openbmc-phosphor-image`
would have worked... doesn't appear to have created the file.
Thanks for the quick response.
Cyril
> -brad
>
> > On Apr 25, 2016, at 8:35 PM, Cyril Bur <cyrilbur@gmail.com> wrote:
> >
> > On Thu, 21 Apr 2016 16:20:29 -0500
> > OpenBMC Patches <openbmc-patches@stwcx.xyz> wrote:
> >
> >> From: Brad Bishop <bradleyb@fuzziesquirrel.com>
> >>
> >> Build a rootfs cpio uimage with everything along with the other
> >> images.
> >
> > There isn't much to go with, are you saying you're building a initramfs image
> > that contains the full openbmc userspace so that a booting system doesn't need
> > access to the flash at all. This is exactly what I need right now, thankyou!!
> >
> > I've applied this patch, and I THINK I booted with the right file... doesn't
> > appear to have worked, it still tried to mount the flash and because I can't
> > flash openbmc on my machine I got dropped into recovery shell.
> >
> > Thoughts?
> >
> > Thanks anyway...
> >
> > Cyril
> >
> >> ---
> >> meta-phosphor/conf/machine/include/obmc-bsp-common.inc | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> index 60ed088..260cc90 100644
> >> --- a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> +++ b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> @@ -14,6 +14,7 @@ UBOOT_SUFFIX ?= "bin"
> >> MACHINEOVERRIDES =. "openbmc:"
> >>
> >> IMAGE_FSTYPES += "overlay"
> >> +IMAGE_FSTYPES += "cpio.${INITRAMFS_CTYPE}.u-boot"
> >> IMAGE_INSTALL += "u-boot-fw-utils"
> >>
> >> IMAGE_CLASSES += "obmc-phosphor-image_types_uboot"
> >
> > _______________________________________________
> > openbmc mailing list
> > openbmc@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/openbmc
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH openbmc] Build a tftpboot friendly image.
2016-04-26 1:04 ` Brad Bishop
2016-04-26 1:10 ` Cyril Bur
@ 2016-04-26 1:50 ` Cyril Bur
2016-04-27 1:38 ` Cyril Bur
2 siblings, 0 replies; 9+ messages in thread
From: Cyril Bur @ 2016-04-26 1:50 UTC (permalink / raw)
To: Brad Bishop; +Cc: OpenBMC Patches
On Mon, 25 Apr 2016 21:04:28 -0400
Brad Bishop <bradleyb@fuzziesquirrel.com> wrote:
> Yep, thats what it does. Did you use obmc-phosphor-image-<machine>.cpio.lzma.u-boot?
>
So just did a clean build, I removed the entire build directory and started
again. Still no file of that name...
Just to confirm, I'm definitely looking for
`obmc-phosphor-image-<machine>.cpio.lzma.u-boot`? Based off your patch that is
what I would expect and I don't see any files that appear to be what I want
anyway...
Thanks,
Cyril
> -brad
>
> > On Apr 25, 2016, at 8:35 PM, Cyril Bur <cyrilbur@gmail.com> wrote:
> >
> > On Thu, 21 Apr 2016 16:20:29 -0500
> > OpenBMC Patches <openbmc-patches@stwcx.xyz> wrote:
> >
> >> From: Brad Bishop <bradleyb@fuzziesquirrel.com>
> >>
> >> Build a rootfs cpio uimage with everything along with the other
> >> images.
> >
> > There isn't much to go with, are you saying you're building a initramfs
> > image that contains the full openbmc userspace so that a booting system
> > doesn't need access to the flash at all. This is exactly what I need right
> > now, thankyou!!
> >
> > I've applied this patch, and I THINK I booted with the right file... doesn't
> > appear to have worked, it still tried to mount the flash and because I can't
> > flash openbmc on my machine I got dropped into recovery shell.
> >
> > Thoughts?
> >
> > Thanks anyway...
> >
> > Cyril
> >
> >> ---
> >> meta-phosphor/conf/machine/include/obmc-bsp-common.inc | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc index
> >> 60ed088..260cc90 100644 ---
> >> a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc +++
> >> b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc @@ -14,6 +14,7 @@
> >> UBOOT_SUFFIX ?= "bin" MACHINEOVERRIDES =. "openbmc:"
> >>
> >> IMAGE_FSTYPES += "overlay"
> >> +IMAGE_FSTYPES += "cpio.${INITRAMFS_CTYPE}.u-boot"
> >> IMAGE_INSTALL += "u-boot-fw-utils"
> >>
> >> IMAGE_CLASSES += "obmc-phosphor-image_types_uboot"
> >
> > _______________________________________________
> > openbmc mailing list
> > openbmc@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/openbmc
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH openbmc] Build a tftpboot friendly image.
2016-04-26 1:04 ` Brad Bishop
2016-04-26 1:10 ` Cyril Bur
2016-04-26 1:50 ` Cyril Bur
@ 2016-04-27 1:38 ` Cyril Bur
2016-04-27 6:16 ` Joel Stanley
2 siblings, 1 reply; 9+ messages in thread
From: Cyril Bur @ 2016-04-27 1:38 UTC (permalink / raw)
To: Brad Bishop; +Cc: OpenBMC Patches
On Mon, 25 Apr 2016 21:04:28 -0400
Brad Bishop <bradleyb@fuzziesquirrel.com> wrote:
> Yep, thats what it does. Did you use obmc-phosphor-image-<machine>.cpio.lzma.u-boot?
>
It appears I had my machine configuration missing a file.
The file spawns now, works great!
I'll add my tested by here
Tested-by: Cyril Bur <cyrilbur@gmail.com>
> -brad
>
> > On Apr 25, 2016, at 8:35 PM, Cyril Bur <cyrilbur@gmail.com> wrote:
> >
> > On Thu, 21 Apr 2016 16:20:29 -0500
> > OpenBMC Patches <openbmc-patches@stwcx.xyz> wrote:
> >
> >> From: Brad Bishop <bradleyb@fuzziesquirrel.com>
> >>
> >> Build a rootfs cpio uimage with everything along with the other
> >> images.
> >
> > There isn't much to go with, are you saying you're building a initramfs image
> > that contains the full openbmc userspace so that a booting system doesn't need
> > access to the flash at all. This is exactly what I need right now, thankyou!!
> >
> > I've applied this patch, and I THINK I booted with the right file... doesn't
> > appear to have worked, it still tried to mount the flash and because I can't
> > flash openbmc on my machine I got dropped into recovery shell.
> >
> > Thoughts?
> >
> > Thanks anyway...
> >
> > Cyril
> >
> >> ---
> >> meta-phosphor/conf/machine/include/obmc-bsp-common.inc | 1 +
> >> 1 file changed, 1 insertion(+)
> >>
> >> diff --git a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> index 60ed088..260cc90 100644
> >> --- a/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> +++ b/meta-phosphor/conf/machine/include/obmc-bsp-common.inc
> >> @@ -14,6 +14,7 @@ UBOOT_SUFFIX ?= "bin"
> >> MACHINEOVERRIDES =. "openbmc:"
> >>
> >> IMAGE_FSTYPES += "overlay"
> >> +IMAGE_FSTYPES += "cpio.${INITRAMFS_CTYPE}.u-boot"
> >> IMAGE_INSTALL += "u-boot-fw-utils"
> >>
> >> IMAGE_CLASSES += "obmc-phosphor-image_types_uboot"
> >
> > _______________________________________________
> > openbmc mailing list
> > openbmc@lists.ozlabs.org
> > https://lists.ozlabs.org/listinfo/openbmc
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH openbmc] Build a tftpboot friendly image.
2016-04-27 1:38 ` Cyril Bur
@ 2016-04-27 6:16 ` Joel Stanley
0 siblings, 0 replies; 9+ messages in thread
From: Joel Stanley @ 2016-04-27 6:16 UTC (permalink / raw)
To: Cyril Bur; +Cc: Brad Bishop, OpenBMC Patches
On Wed, Apr 27, 2016 at 11:08 AM, Cyril Bur <cyrilbur@gmail.com> wrote:
> On Mon, 25 Apr 2016 21:04:28 -0400
> Brad Bishop <bradleyb@fuzziesquirrel.com> wrote:
>
>> Yep, thats what it does. Did you use obmc-phosphor-image-<machine>.cpio.lzma.u-boot?
>>
>
> It appears I had my machine configuration missing a file.
>
> The file spawns now, works great!
>
> I'll add my tested by here
>
> Tested-by: Cyril Bur <cyrilbur@gmail.com>
I really like this idea. It removes some of the barriers for testing
using the openbmc userspace when doing kernel work.
Reviewed-by: Joel Stanley <joel@jms.id.au>
^ permalink raw reply [flat|nested] 9+ messages in thread