From: Arthur LAMBERT <lambertarthur22@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v4 1/1] board: add support for WarPboard
Date: Wed, 1 Jul 2015 15:51:51 +0200 [thread overview]
Message-ID: <20150701135151.GA1837@arthur-dreem> (raw)
In-Reply-To: <20150701153004.6fc35912@free-electrons.com>
Le Wednesday 01 Jul 2015 ? 15:30:04 (+0200), Thomas Petazzoni a ?crit :
> Arthur,
>
> On Wed, 1 Jul 2015 11:22:42 +0200, Arthur LAMBERT wrote:
>
> > +- Put warpboard in USB download mode
> > + closing the jumper j2 on daugther board
> > +- Load u-boot.imx in warpboard by using imx usb loader from host utility
> > + $ ./imx_usb output/images/u-boot.imx
>
> Can you confirm that:
>
> $ output/host/usr/bin/imx_usb output/images/u-boot.imx
Just need to add -c + configuration directory :
$ output/host/usr/bin/imx_usb -c output/host/etc/imx-loader.d/ output/images/u-boot.imx
During my test I was testing the process from :
output/build/host-imx-usb-loader-f96aee286ea17c832b7ec922dd76842deb5ce299
In this directory you can find binary and configuration file. In you use a
relative path, you have to add and extra option to give configuration directory
path.
>
> > +- Uboot will appear in minicom
> > +- Use the default environment variables:
> > + => env default -f -a
> > + => saveenv
> > +- run the DFU command in uboot prompt:
> > + => dfu 0 mmc 0
> > +- transfer uboot into flash by running this command in host side:
>
> and:
>
> > + $ sudo dfu-util -D output/images/u-boot.imx -a boot
>
> $ sudo output/host/usr/bin/dfu-util -D output/images/u-boot.imx -a boot
>
> is OK ?
>
> This makes it clear which dfu_util and imx_usb programs should be
> executed.
>
It's OK !
> > +Use ums command from uboot prompt to mount emmc as mass storage and update
> > +zImage, device tree (imx6sl-warp.dtb) and rootfs file (rootfs.tar)
> > +=> ums 0 mmc 0
> > +
> > +Put zimage and dtb file in warp-vfat and extract rootfs.tar in warp-rootfs
> > +partition.
>
> Maybe indicate it should be extracted as root.
>
Ok.
> > diff --git a/configs/warpboard_defconfig b/configs/warpboard_defconfig
> > new file mode 100644
> > index 0000000..13e90cd
> > --- /dev/null
> > +++ b/configs/warpboard_defconfig
> > @@ -0,0 +1,42 @@
> > +# architecture
> > +BR2_arm=y
> > +BR2_cortex_a9=y
> > +
> > +# patches
> > +BR2_GLOBAL_PATCH_DIR="board/freescale/warpboard/patches/"
> > +
> > +# lock to 4.0 headers to avoid breaking with newer kernels
> > +BR2_KERNEL_HEADERS_VERSION=y
> > +BR2_DEFAULT_KERNEL_VERSION="4.0"
> > +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_0=y
> > +
> > +# system
> > +BR2_TARGET_GENERIC_HOSTNAME="warpboard"
> > +BR2_TARGET_GENERIC_GETTY_PORT="ttymxc0"
> > +
> > +# rootfs overlay
> > +BR2_ROOTFS_OVERLAY="board/freescale/warpboard/rootfs_overlay"
> > +
> > +# kernel
> > +BR2_LINUX_KERNEL=y
> > +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
> > +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="http://github.com/Freescale/linux-fslc/tarball/38ec11d/linux-fslc-38ec11d.tar.gz"
> > +BR2_LINUX_KERNEL_DEFCONFIG="imx_v6_v7"
> > +BR2_LINUX_KERNEL_ZIMAGE=y
> > +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> > +BR2_LINUX_KERNEL_INTREE_DTS_NAME="imx6sl-warp"
> > +
> > +# wifi firmware for brcm4330
> > +BR2_PACKAGE_LINUX_FIRMWARE=y
> > +BR2_PACKAGE_LINUX_FIRMWARE_BRCM_BCM43XX=y
> > +
> > +# uboot
> > +BR2_TARGET_UBOOT=y
> > +BR2_TARGET_UBOOT_BOARDNAME="warp"
> > +BR2_TARGET_UBOOT_CUSTOM_VERSION=y
> > +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2015.07-rc2"
> > +BR2_TARGET_UBOOT_FORMAT_IMX=y
> > +
> > +# host utility
> > +BR2_PACKAGE_HOST_DFU_UTIL=y
> > +BR2_PACKAGE_HOST_IMX_USB_LOADER=y
>
> You're not enabling an ext2 filesystem (which is good since you don't
> use it). But you still mention it in your document:
>
> +You will find in ./output/images/ the following files:
> + - imx6sl-warp.dtb
> + - rootfs.ext2
> + - rootfs.tar
> + - u-boot.imx
> + - zImage
>
So yes we can remove rootfs.ext2 from the document. We don't use it during the
flash process.
> No need to resend just for that, just confirm me that my proposals are
> OK, and I'll fix when applying.
>
Thanks for that. So yes all your proposals are good. Just need to add the
configuration directory path for the first proposal.
> Thanks,
>
> Thomas
> --
Thanks,
Arthur.
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
next prev parent reply other threads:[~2015-07-01 13:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-01 9:22 [Buildroot] [PATCH v4 1/1] board: add support for WarPboard Arthur LAMBERT
2015-07-01 13:30 ` Thomas Petazzoni
2015-07-01 13:51 ` Arthur LAMBERT [this message]
2015-07-04 13:03 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150701135151.GA1837@arthur-dreem \
--to=lambertarthur22@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox