Skip to contentSkip to conversation

LEGO MINDSTORMS EV3 updates

PATCH New David Lechner 2 participants 5 messages May 23, 2017 – May 31, 2017

lore
Share & tools
lore
#0 lore raw

cover LEGO MINDSTORMS EV3 updates

Here are a few more updates for LEGO MINDSTORMS EV3 based on feedback from my recent patch to use the mainline kernel [1].

I have boot-tested both the flash image and the SD card image.

[1]: http://patchwork.ozlabs.org/patch/762767/

David Lechner (3):
lego: ev3: Bump U-Boot version
lego: ev3: Use genimage to rename uImage file
lego: ev3: Use ext4 file system

 board/lego/ev3/genimage.cfg  | 4 ++--
 board/lego/ev3/post-image.sh | 2 --
 configs/lego_ev3_defconfig   | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)
Signature · 1 line
2.7.4
#1 lore raw

PATCH 1/3 lego: ev3: Bump U-Boot version

This bumps U-Boot to the current stable version (2017.05).

---
 configs/lego_ev3_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/lego_ev3_defconfig +1 -1
index 4d764c5..0c1ab01 100644
@@ -36,7 +36,7 @@ BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
 BR2_TARGET_UBOOT=y
 BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
 BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2017.05"
 BR2_TARGET_UBOOT_BOARD_DEFCONFIG="legoev3"
 
 # host
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/3 lego: ev3: Use genimage to rename uImage file

In reply to David Lechner

This uses a genimage feature to rename the uImage file instead of manually creating a symlink in the post-image script.

---
 board/lego/ev3/genimage.cfg  | 4 ++--
 board/lego/ev3/post-image.sh | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
board/lego/ev3/genimage.cfg +2 -2
index 3568295..0ec580c 100644
@@ -34,8 +34,8 @@ image flash.bin {
 
 image boot.vfat {
 	vfat {
-		files = {
-			"uImage"
+		file uImage {
+			image = "uImage.da850-lego-ev3"
 		}
 	}
 	size = 16M
board/lego/ev3/post-image.sh +0 -2
index 553d27a..81626dc 100755
@@ -4,8 +4,6 @@ BOARD_DIR="$(dirname $0)"
 GENIMAGE_CFG="${BOARD_DIR}/genimage.cfg"
 GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
 
-ln -sf "uImage.da850-lego-ev3" "${BINARIES_DIR}/uImage"
-
 rm -rf "${GENIMAGE_TMP}"
 
 genimage \
Signature · 1 line
2.7.4
#3 lore raw

PATCH 3/3 lego: ev3: Use ext4 file system

In reply to David Lechner

Change from using ext3 to ext4.

---
 configs/lego_ev3_defconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
configs/lego_ev3_defconfig +1 -1
index 0c1ab01..dea84d9 100644
@@ -27,7 +27,7 @@ BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="board/lego/ev3/busybox.fragment"
 
 # filesystem
 BR2_TARGET_ROOTFS_EXT2=y
-BR2_TARGET_ROOTFS_EXT2_3=y
+BR2_TARGET_ROOTFS_EXT2_4=y
 BR2_TARGET_ROOTFS_SQUASHFS=y
 BR2_TARGET_ROOTFS_SQUASHFS4_XZ=y
 # BR2_TARGET_ROOTFS_TAR is not set
Signature · 1 line
2.7.4
#4 lore raw

cover LEGO MINDSTORMS EV3 updates

In reply to David Lechner

Hello,

Quoted 4 lines · David Lechner

David Lechner (3):
lego: ev3: Bump U-Boot version
lego: ev3: Use genimage to rename uImage file
lego: ev3: Use ext4 file system

Series applied to next. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com