[Freedreno] details about boot.img uploaded on github.
Rob Clark
robdclark at gmail.com
Thu Jan 30 08:00:12 PST 2014
Hi Anup,
with the newer DT kernels, the bootloader expects a special DT section
in the boot img. It isn't just a simple appended DT, but rather it is
a section with multiple DT files plus a header, and the boot loader
decides based on device-id which set of DT tables to use. To build
the boot img for these, I use mkqcdtbootimg (as opposed to abootimg
which I use for pre-DT devices):
--------
kernel="../msm/arm/arch/arm/boot/zImage"
dtb="../msm/arm/arch/arm/boot/dts/qcom-apq8074-dragonboard.dtb"
ramdisk="initramfs-3.4.0-g0f0fed7-00108-gf736ca1-dirty.img"
mkbootimg="../mkqcdtbootimg/mkqcdtbootimg"
$mkbootimg \
--kernel $kernel \
--ramdisk $ramdisk \
--cmdline "`cat bootimg.cfg | grep cmdline | sed 's/^cmdline = //'`" \
--base 0x00000000 \
--pagesize 2048 \
--ramdisk_offset 0x02000000 \
--tags_offset 0x01e00000 \
--dt_dir `dirname $dtb` \
--output dragonboard-boot.img
--------
BR,
-R
On Thu, Jan 30, 2014 at 10:53 AM, Anup Kini <akini at synapticon.com> wrote:
>
> Hi Rob and others,
>
> Currently, i am building the kernel-msm -b dragonboard-drm with msm8974_defconfig.
> Then i append the dtb to the zImage using cat command.
> I am using the ramdisk from your boot.img.
>
> I am trying to write Yocto / OpenEmbdded recipies for this process.
> I would like to know if you have any notes/details on how you build the boot.img.
>
>
> Thanks & Regards,
> --
>
> Anup Kini
> Systems Engineer
>
> ________________________________
>
> Synapticon | Cyber-Physical System Solutions
>
> Mobile:
>
> Direct:
>
> +49 151 / 638 646 73
>
> +49 7335 / 186 999 21
>
> Fax:
>
> +49 7335 / 186 999 1
>
>
>
>
>
>
> synapticon.com | @synapticon_co
>
> Synapticon GmbH | Hohlbachweg 2 | 73344 Gruibingen, DE
> Secretary +49 7335 / 186 999 0 | General Manager: Nikolai Ensslen
> Registry Court Ulm HRB 725114 | USt-ID DE271647127
>
> This message and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> Please notify the sender immediately if you have received this e-mail by
> mistake and delete it from your system.
>
>
> _______________________________________________
> Freedreno mailing list
> Freedreno at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/freedreno
>
More information about the Freedreno
mailing list