buildroot/board/hardkernel/odroidc2
Dagg Stompler 223085f671 boards/odroidc2: fix genimage execution
fix the following error:
ERROR: hdimage(sdcard.img): partition [MBR] (offset 0x1b8, size 0x48) overlaps previous partition bl1 (offset 0x0, size 0xc200)
ERROR: hdimage(sdcard.img): bootloaders, etc. that overlap with the partition table must declare the overlapping area as a hole.

which started at the genimage version bump to 15 commit.

Fixes: https://gitlab.com/buildroot.org/buildroot/-/jobs/1865935217
Signed-off-by: Dagg Stompler <daggs@gmx.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2021-12-18 21:59:52 +01:00
..
rootfs_overlay/etc/init.d configs/odroidc2: new defconfig 2020-09-03 20:46:07 +02:00
boot.cmd configs/odroidc2: new defconfig 2020-09-03 20:46:07 +02:00
genimage.cfg boards/odroidc2: fix genimage execution 2021-12-18 21:59:52 +01:00
post-image.sh configs/odroidc2: new defconfig 2020-09-03 20:46:07 +02:00
readme.txt configs/odroidc2: new defconfig 2020-09-03 20:46:07 +02:00

readme.txt

ODROID-C2

Intro
=====
To be able to use ODROID-C2 board with the images generated by
Buildroot, you have to prepare the SDCard or eMMC.

How to build it
===============

  $ make odroidc2_defconfig

Then you can edit the build options using

  $ make menuconfig

Compile all and build rootfs image:

  $ make

Note: you will need to have access to the network, since Buildroot will
download the packages' sources.

Result of the build
-------------------

After building, you should obtain this tree:

    output/images/
    +-- bl1.bin.hardkernel
    +-- bl2.package
    +-- bl301.bin
    +-- bl30.bin
    +-- bl31.bin
    +-- boot_new.bin
    +-- boot.scr                   [1]
    +-- boot.vfat
    +-- fip.bin
    +-- Image                      [2]
    +-- meson-gxbb-odroidc2.dtb
    +-- rootfs.ext2
    +-- rootfs.ext4
    +-- rootfs.tar
    +-- sdcard.img
    +-- u-boot.bin
    +-- u-boot.img
    +-- uboot-odc2.img             [3]

[1] This is the ODROID-C2 configuration file used in u-boot.
[2] This is the ODROID-C2 kernel image file which will be booted.
[3] This is the ODROID-C2 signed u-boot image which will be used.

How to write the SD card or eMMC
================================

Once the build process is finished you will have an image called "sdcard.img"
in the output/images/ directory.

Copy the bootable "sdcard.img" onto an SD card or eMMC with "dd":

  $ sudo dd if=output/images/sdcard.img of=/dev/sdX

Insert the SDcard into your ODROID-C2, and power it up. Your new system
should come up now.