From: Andi Shyti <andi.shyti@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] board: add support for the Odroid XU4 board
Date: Tue, 28 Jun 2016 03:04:26 +0900 [thread overview]
Message-ID: <20160627180426.GM424@jack.zhora.eu> (raw)
In-Reply-To: <20160626222201.35c7cb53@free-electrons.com>
Hi Thomas,
> > +Finalize the SD card
> > +--------------------
> > +
> > +Now it's time to move Kernel and File System to the SD card. We will start from
> > +the Kernel partition.
> > +
> > +First mount it:
> > +
> > + # mount /dev/sdb1/ /mnt/
> > +
> > +and copy kernel and dtb
> > +
> > + # cp <buildroot>/output/images/zImage /mnt/
> > + # cp <buildroot>/output/images/exynos5422-odroidxu4.dtb /mnt/
> > +
> > +umount the partition
> > +
> > + # sync
> > + # umount /dev/sdb1
> > +
> > +Mount the rootfs partition:
> > +
> > + # mount /dev/sdb2 /mnt/
> > + # tar
> > + # cp <buildroot>/output/images/rootfs.tar -C /mnt/
> > +
> > +Umount the partition
> > +
> > + # sync
> > + # umount /dev/sdb2
> > +
> > +The SD card is ready, you can boot now your Odroid XU-4.
>
> Please replace all this with a genimage script. It allows you to easily
> describe a FAT and an ext4 partition, and also allows you to place your
> bootloader images at arbitrary offsets.
>
> See board/freescale/imx6ulevk/genimage.cfg for an example.
sure! It's indeed better!
> > +Automate u-boot commands
> > +------------------------
> > +
> > +In order to avoid customizing u-boot from the u-boot system at boot time, you
> > +can use the boot.cmd file in board/odroid-xu4.
> > +
> > +Jut run
> > +
> > + $ mkimage -A arm -T script -C none -d boot.cmd boot.scr
>
> Please do this in a post-image script, do that boot.scr is directly
> produced in output/images, and added to the FAT partition by the
> genimage script.
>
> See board/orangepi/orangepipc/post-build.sh for an example.
I will, thanks!
> > +BR2_arm=y
> > +BR2_cortex_a7=y
> > +BR2_KERNEL_HEADERS_4_6=y
>
> Please use:
>
> BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6=y
>
> which tells Buildroot to use the sources of the kernel being built for
> the kernel headers.
OK.
> > +BR2_LINUX_KERNEL=y
>
> You need to specify the exact kernel version that you want to build.
OK.
> > +BR2_LINUX_KERNEL_DEFCONFIG="exynos"
> > +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> > +BR2_LINUX_KERNEL_INTREE_DTS_NAME="exynos5422-odroidxu4"
> > +BR2_PACKAGE_ODROID_XU_BL=y
> > +BR2_TARGET_UBOOT=y
>
> You need to specify the exact U-Boot version that you want to build.
> So, as per my reply on PATCH 1/2, it should probably point to the
> vendor-specific U-Boot version, so that you can use the pre-built
> binaries for the first stage bootloaders.
OK.
> > +BR2_TARGET_UBOOT_BOARDNAME="odroid-xu3"
>
> Thanks,
Thank you, I will fix the above in the second version of the
patchset.
Andi
next prev parent reply other threads:[~2016-06-27 18:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-26 14:07 [Buildroot] [PATCH 0/2] Odroid XU4 support Andi Shyti
2016-06-26 14:07 ` [Buildroot] [PATCH 1/2] package: add Odroid BL bootloader binaries Andi Shyti
2016-06-26 20:10 ` Thomas Petazzoni
2016-06-27 18:03 ` Andi Shyti
[not found] ` <20160627155236.GI424@jack.zhora.eu>
2016-06-30 7:58 ` Thomas Petazzoni
2016-06-26 14:07 ` [Buildroot] [PATCH 2/2] board: add support for the Odroid XU4 board Andi Shyti
2016-06-26 14:14 ` Baruch Siach
2016-06-27 17:02 ` Andi Shyti
2016-06-26 20:22 ` Thomas Petazzoni
2016-06-27 18:04 ` Andi Shyti [this message]
2016-06-26 19:51 ` [Buildroot] [PATCH 0/2] Odroid XU4 support 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=20160627180426.GM424@jack.zhora.eu \
--to=andi.shyti@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