* Use barebox instead of u-boot
@ 2013-01-09 1:22 Jeff Horn
2013-01-09 9:10 ` Eric Bénard
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: Jeff Horn @ 2013-01-09 1:22 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 947 bytes --]
Hi,
I've been tasked to test yocto to build our BSP. We have a custom board
based on the i.MX53. I was able to follow the instructions and did manage
to generate an image for the i.MX53 QSB. That was nice! Now I'm lost in
layer land trying to figure out how yocto determines what packages are
built when I type bitbake fsl-image-gui.
We are currently using barebox so I would like to use barebox instead of
u-boot for the bootloader. I tried adding my own layer and then added a
machine configuration but I am lost at what to do next.
How can I change the imx53qsb build to use barebox? Maybe that will help.
Also, am I on the right track to add my own layer so I can add additional
patches to barebox and the kernel.
I only need to patch barebox and the kernel to boot my board. I could just
hack the imx53qsb build but I want to learn how to do this the yocto way.
Thanks in advance for any information.
Jeff
[-- Attachment #2: Type: text/html, Size: 1137 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread* Re: Use barebox instead of u-boot
2013-01-09 1:22 Use barebox instead of u-boot Jeff Horn
@ 2013-01-09 9:10 ` Eric Bénard
2013-01-09 9:33 ` Otavio Salvador
2013-01-09 14:44 ` Daiane Angolini
2 siblings, 0 replies; 11+ messages in thread
From: Eric Bénard @ 2013-01-09 9:10 UTC (permalink / raw)
To: Jeff Horn; +Cc: meta-freescale
Hi Jeff,
Le Tue, 8 Jan 2013 17:22:23 -0800,
Jeff Horn <jeff@everlook.net> a écrit :
> How can I change the imx53qsb build to use barebox? Maybe that will help.
> Also, am I on the right track to add my own layer so I can add additional
> patches to barebox and the kernel.
>
bitbake barebox -> will build barebox
set IMAGE_BOOTLOADER = "barebox" in your local.conf and you will get
barebox in the SDCard image when you build it.
> I only need to patch barebox and the kernel to boot my board. I could just
> hack the imx53qsb build but I want to learn how to do this the yocto way.
If you create your overlay to support your board, you can simply add a
barebox_2012.02.0.bbappend and add your patch & defconfig from there
BTW : I plan to update barebox support in meta-fsl-arm in the coming
weeks.
Best regards
Eric
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Use barebox instead of u-boot
2013-01-09 1:22 Use barebox instead of u-boot Jeff Horn
2013-01-09 9:10 ` Eric Bénard
@ 2013-01-09 9:33 ` Otavio Salvador
2013-01-09 14:44 ` Daiane Angolini
2 siblings, 0 replies; 11+ messages in thread
From: Otavio Salvador @ 2013-01-09 9:33 UTC (permalink / raw)
To: Jeff Horn; +Cc: meta-freescale@yoctoproject.org
On Tue, Jan 8, 2013 at 11:22 PM, Jeff Horn <jeff@everlook.net> wrote:
> I've been tasked to test yocto to build our BSP. We have a custom board
> based on the i.MX53. I was able to follow the instructions and did manage
> to generate an image for the i.MX53 QSB. That was nice! Now I'm lost in
> layer land trying to figure out how yocto determines what packages are built
> when I type bitbake fsl-image-gui.
I advice you to read the Yocto documentation; it is a rich
documentation and it will avoid a lot of common mistakes from your
side.
Please go to https://www.yoctoproject.org/documentation/current and
check the available docs.
> We are currently using barebox so I would like to use barebox instead of
> u-boot for the bootloader. I tried adding my own layer and then added a
> machine configuration but I am lost at what to do next.
>
> How can I change the imx53qsb build to use barebox? Maybe that will help.
> Also, am I on the right track to add my own layer so I can add additional
> patches to barebox and the kernel.
To change the bootloader, in the machine you need to set the
IMAGE_BOOTLOADER variable so the sdcard will use barebox instead of
u-boot:
Your machine.conf ought to have:
IMAGE_BOOTLOADER = "barebox"
> I only need to patch barebox and the kernel to boot my board. I could just
> hack the imx53qsb build but I want to learn how to do this the yocto way.
Yes; the right way to do it is to use a custom layer. If this is a
public board you can add it to meta-fsl-arm-extra and send the patches
for us to integrate them otherwise use an internal layer for your
custom boards.
Regards,
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Use barebox instead of u-boot
2013-01-09 1:22 Use barebox instead of u-boot Jeff Horn
2013-01-09 9:10 ` Eric Bénard
2013-01-09 9:33 ` Otavio Salvador
@ 2013-01-09 14:44 ` Daiane Angolini
2013-01-10 2:41 ` Jeff Horn
2 siblings, 1 reply; 11+ messages in thread
From: Daiane Angolini @ 2013-01-09 14:44 UTC (permalink / raw)
To: Jeff Horn; +Cc: meta-freescale@yoctoproject.org
On Tue, Jan 8, 2013 at 11:22 PM, Jeff Horn <jeff@everlook.net> wrote:
> Hi,
>
> I've been tasked to test yocto to build our BSP. We have a custom board
> based on the i.MX53. I was able to follow the instructions and did manage
> to generate an image for the i.MX53 QSB. That was nice! Now I'm lost in
> layer land trying to figure out how yocto determines what packages are built
> when I type bitbake fsl-image-gui.
Go to sources/ and look for a fsl-image-gui file:
$ cd sources
$ find -name fsl-image-gui*
Open it and you will see what is built when you bitbake fsl-image-gui
Daiane
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Use barebox instead of u-boot
2013-01-09 14:44 ` Daiane Angolini
@ 2013-01-10 2:41 ` Jeff Horn
2013-01-10 11:02 ` Otavio Salvador
2013-01-10 11:10 ` Use barebox instead of u-boot Daiane Angolini
0 siblings, 2 replies; 11+ messages in thread
From: Jeff Horn @ 2013-01-10 2:41 UTC (permalink / raw)
To: meta-freescale
[-- Attachment #1: Type: text/plain, Size: 1142 bytes --]
Thanks for all the help. I was able to add a custom layer and append our
barebox and kernel patches. I still trying to figure out how to handle the
default configs. The sdcard image generated did not boot correctly but I
manually wrote barebox and the kernel to an sd card and my board booted.
Very nice.
I'll continue to read through the source and docs and see where I can help.
Thanks,
Jeff
On Wed, Jan 9, 2013 at 6:44 AM, Daiane Angolini <daiane.list@gmail.com>wrote:
> On Tue, Jan 8, 2013 at 11:22 PM, Jeff Horn <jeff@everlook.net> wrote:
> > Hi,
> >
> > I've been tasked to test yocto to build our BSP. We have a custom board
> > based on the i.MX53. I was able to follow the instructions and did
> manage
> > to generate an image for the i.MX53 QSB. That was nice! Now I'm lost in
> > layer land trying to figure out how yocto determines what packages are
> built
> > when I type bitbake fsl-image-gui.
>
> Go to sources/ and look for a fsl-image-gui file:
> $ cd sources
> $ find -name fsl-image-gui*
>
> Open it and you will see what is built when you bitbake fsl-image-gui
>
> Daiane
>
[-- Attachment #2: Type: text/html, Size: 1721 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Use barebox instead of u-boot
2013-01-10 2:41 ` Jeff Horn
@ 2013-01-10 11:02 ` Otavio Salvador
2013-01-10 14:56 ` [PATCH 1/2] barebox: fix sdcard partition scheme Eric Bénard
2013-01-10 11:10 ` Use barebox instead of u-boot Daiane Angolini
1 sibling, 1 reply; 11+ messages in thread
From: Otavio Salvador @ 2013-01-10 11:02 UTC (permalink / raw)
To: Jeff Horn, Eric Bénard; +Cc: meta-freescale@yoctoproject.org
On Thu, Jan 10, 2013 at 12:41 AM, Jeff Horn <jeff@everlook.net> wrote:
> Thanks for all the help. I was able to add a custom layer and append our
> barebox and kernel patches. I still trying to figure out how to handle the
> default configs. The sdcard image generated did not boot correctly but I
> manually wrote barebox and the kernel to an sd card and my board booted.
> Very nice.
>
> I'll continue to read through the source and docs and see where I can help.
Please check the sdcard class file, in classes directory, for the
commands done when generating for barebox; it might need some
adjustments.
Eric, can you give it a try too?
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH 1/2] barebox: fix sdcard partition scheme
2013-01-10 11:02 ` Otavio Salvador
@ 2013-01-10 14:56 ` Eric Bénard
2013-01-10 14:56 ` [PATCH 2/2] barebox: default to no kernel ipconfig Eric Bénard
2013-01-10 15:19 ` [PATCH 1/2] barebox: fix sdcard partition scheme Otavio Salvador
0 siblings, 2 replies; 11+ messages in thread
From: Eric Bénard @ 2013-01-10 14:56 UTC (permalink / raw)
To: meta-freescale; +Cc: otavio
- SDCard's partition scheme was changed in image_type_fsl.bbclass so
update barebox's configuration to match the new one.
- tested on MCIMX53-START-R board 1.0 rev B
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
.../imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch | 2 +-
recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config | 4 ++--
recipes-bsp/barebox/barebox_2012.02.0.bb | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch
index 6a3c000..399e95a 100644
--- a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch
+++ b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/0001-imx53qsb-default-config-for-OE-s-sdcard-image.patch
@@ -22,7 +22,7 @@ index 0000000..3a5ae42
+#!/bin/sh
+
+mkdir /mnt
-+mount /dev/disk0.1 fat /mnt
++mount /dev/disk0.0 fat /mnt
diff --git a/defaultenv/bin/boot b/defaultenv/bin/boot
index 1120757..e46705d 100644
--- a/defaultenv/bin/boot
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
index b60bf3c..c65e6ad 100644
--- a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
+++ b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
@@ -21,7 +21,7 @@ rootfs_loc=disk
# boot parameters for SDCard boot
kernel_name=uImage
-rootfs_part_linux_dev=mmcblk0p3
+rootfs_part_linux_dev=mmcblk0p2
rootfs_type=ext3
# can be either 'jffs2' or 'ubifs'
@@ -45,7 +45,7 @@ autoboot_timeout=3
bootargs="console=ttymxc0,115200"
-disk_parts="512k(barebox)ro,512k(bareboxenv),4M(kernel),-(root)"
+disk_parts="512k(barebox)ro,512k(bareboxenv),8M(kernel),-(root)"
# set a fancy prompt (if support is compiled in)
PS1="\e[1;32mbarebox@\e[1;31m\h:\w\e[0m "
diff --git a/recipes-bsp/barebox/barebox_2012.02.0.bb b/recipes-bsp/barebox/barebox_2012.02.0.bb
index 20d7d40..1eed4d3 100644
--- a/recipes-bsp/barebox/barebox_2012.02.0.bb
+++ b/recipes-bsp/barebox/barebox_2012.02.0.bb
@@ -1,6 +1,6 @@
require barebox.inc
-PR = "r2"
+PR = "r3"
SRC_URI = "http://barebox.org/download/${PN}-${PV}.tar.bz2 \
file://defconfig \
--
1.7.11.7
^ permalink raw reply related [flat|nested] 11+ messages in thread* [PATCH 2/2] barebox: default to no kernel ipconfig
2013-01-10 14:56 ` [PATCH 1/2] barebox: fix sdcard partition scheme Eric Bénard
@ 2013-01-10 14:56 ` Eric Bénard
2013-01-10 15:19 ` Otavio Salvador
2013-01-10 15:19 ` [PATCH 1/2] barebox: fix sdcard partition scheme Otavio Salvador
1 sibling, 1 reply; 11+ messages in thread
From: Eric Bénard @ 2013-01-10 14:56 UTC (permalink / raw)
To: meta-freescale; +Cc: otavio
- this change asks barebox to not pass the ip=dhcp parameter
to the kernel so that we get a decent boot speed when the ethernet
cable is not plugged during boot instead of waiting for kernel
ipconfig.
- tested on MCIMX53-START-R board 1.0 rev B
Signed-off-by: Eric Bénard <eric@eukrea.com>
---
recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config | 2 +-
recipes-bsp/barebox/barebox_2012.02.0.bb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
index c65e6ad..a0a2b74 100644
--- a/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
+++ b/recipes-bsp/barebox/barebox-2012.02.0/imx53qsb/config
@@ -6,7 +6,7 @@ user=
# use 'dhcp' to do dhcp in barebox and in kernel
# use 'none' if you want to skip kernel ip autoconfiguration
-ip=dhcp
+ip=none
# or set your networking parameters here
#eth0.ipaddr=a.b.c.d
diff --git a/recipes-bsp/barebox/barebox_2012.02.0.bb b/recipes-bsp/barebox/barebox_2012.02.0.bb
index 1eed4d3..5489f7c 100644
--- a/recipes-bsp/barebox/barebox_2012.02.0.bb
+++ b/recipes-bsp/barebox/barebox_2012.02.0.bb
@@ -1,6 +1,6 @@
require barebox.inc
-PR = "r3"
+PR = "r4"
SRC_URI = "http://barebox.org/download/${PN}-${PV}.tar.bz2 \
file://defconfig \
--
1.7.11.7
^ permalink raw reply related [flat|nested] 11+ messages in thread* Re: [PATCH 1/2] barebox: fix sdcard partition scheme
2013-01-10 14:56 ` [PATCH 1/2] barebox: fix sdcard partition scheme Eric Bénard
2013-01-10 14:56 ` [PATCH 2/2] barebox: default to no kernel ipconfig Eric Bénard
@ 2013-01-10 15:19 ` Otavio Salvador
1 sibling, 0 replies; 11+ messages in thread
From: Otavio Salvador @ 2013-01-10 15:19 UTC (permalink / raw)
To: Eric Bénard; +Cc: meta-freescale@yoctoproject.org
On Thu, Jan 10, 2013 at 12:56 PM, Eric Bénard <eric@eukrea.com> wrote:
> - SDCard's partition scheme was changed in image_type_fsl.bbclass so
> update barebox's configuration to match the new one.
> - tested on MCIMX53-START-R board 1.0 rev B
>
> Signed-off-by: Eric Bénard <eric@eukrea.com>
Applied to master and danny.
--
Otavio Salvador O.S. Systems
E-mail: otavio@ossystems.com.br http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Use barebox instead of u-boot
2013-01-10 2:41 ` Jeff Horn
2013-01-10 11:02 ` Otavio Salvador
@ 2013-01-10 11:10 ` Daiane Angolini
1 sibling, 0 replies; 11+ messages in thread
From: Daiane Angolini @ 2013-01-10 11:10 UTC (permalink / raw)
To: Jeff Horn; +Cc: meta-freescale@yoctoproject.org
On Thu, Jan 10, 2013 at 12:41 AM, Jeff Horn <jeff@everlook.net> wrote:
> Thanks for all the help. I was able to add a custom layer and append our
> barebox and kernel patches. I still trying to figure out how to handle the
> default configs. The sdcard image generated did not boot correctly but I
> manually wrote barebox and the kernel to an sd card and my board booted.
> Very nice.
If it was the case, please file a bug
https://bugzilla.yoctoproject.org/buglist.cgi?quicksearch=meta-fsl-arm
I have never worked with barebox, but I can try to help you to fix any
mismatch/mistake in the sdcard class file.
Let's work to get the sdcard image fixed.
Daiane
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2013-01-10 15:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-09 1:22 Use barebox instead of u-boot Jeff Horn
2013-01-09 9:10 ` Eric Bénard
2013-01-09 9:33 ` Otavio Salvador
2013-01-09 14:44 ` Daiane Angolini
2013-01-10 2:41 ` Jeff Horn
2013-01-10 11:02 ` Otavio Salvador
2013-01-10 14:56 ` [PATCH 1/2] barebox: fix sdcard partition scheme Eric Bénard
2013-01-10 14:56 ` [PATCH 2/2] barebox: default to no kernel ipconfig Eric Bénard
2013-01-10 15:19 ` Otavio Salvador
2013-01-10 15:19 ` [PATCH 1/2] barebox: fix sdcard partition scheme Otavio Salvador
2013-01-10 11:10 ` Use barebox instead of u-boot Daiane Angolini
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.