kumquat-buildroot/board/lego/ev3/genimage.cfg
David Lechner c846d2e211 board/lego/ev3: Create images using genimage
This adds a script to create SD card and flash images for LEGO MINDSTORMS
EV3 using the genimage tool.

The default kernel config had to be modified to add support for squashfs
and to add a ram disk.

Signed-off-by: David Lechner <david@lechnology.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2016-11-02 17:39:19 +01:00

58 lines
849 B
INI

# LEGO MINDSTORMS EV3 can boot from a 16MB flash or from a microSD card.
# The U-Boot bootloader from the flash is always used, even when booting
# from a microSD card.
# The Flash image
flash nor-16M-256 {
pebsize = 4096
numpebs = 4096
minimum-io-unit-size = 256
}
image flash.bin {
flash {
}
flashtype = "nor-16M-256"
partition uboot {
image = "u-boot.bin"
size = 320K
}
partition uimage {
image = "uImage"
size = 3M
offset = 0x50000
}
partition rootfs {
image = "rootfs.squashfs"
size = 9600K
offset = 0x350000
}
}
# The SD card image
image boot.vfat {
vfat {
files = {
"uImage"
}
}
size = 16M
}
image sdcard.img {
hdimage {
}
partition boot {
partition-type = 0xC
bootable = "true"
image = "boot.vfat"
offset = 4M
}
partition rootfs {
partition-type = 0x83
image = "rootfs.ext2"
}
}