From 050f58610a3a7cfb905489b32a1a1b25780c7f71 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sun, 24 Nov 2019 16:28:25 -0600 Subject: [PATCH 1/2] ev3dev-buster main focus of development is now ev3dev-buster --- README.md | 28 +++++++++++----------------- setup-env | 2 +- 2 files changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 5db6a5a..53b79bd 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,10 @@ These are the scripts used to compile the ev3dev kernel. Originally it also included scripts to bootstrap a root file system and create a disk image. Those scripts have evolved into the [brickstrap] package. -**NOTE:** The instructions below are for ev3dev-stretch. If you want to build -a kernel for ev3dev-jessie, please use the [ev3dev-jessie branch]. +**NOTE:** The instructions below are for ev3dev-buster. If you want to build +a kernel for ev3dev-stretch, please use the [ev3dev-stretch branch]. -[ev3dev-jessie branch]: https://github.com/ev3dev/ev3dev-buildscripts/tree/ev3dev-jessie +[ev3dev-stretch branch]: https://github.com/ev3dev/ev3dev-buildscripts/tree/ev3dev-stretch System Requirements ------------------- @@ -22,8 +22,7 @@ System Requirements sudo apt-get update # then install required packages sudo apt-get install git build-essential ncurses-dev fakeroot bc \ - u-boot-tools lzop flex bison libssl-dev \ - gcc-linaro-arm-linux-gnueabihf-6.4 + u-boot-tools lzop flex bison libssl-dev gcc-arm-linux-gnueabihf-8.3 Scripts @@ -56,7 +55,7 @@ First time kernel build ~/work $ git clone git://github.com/ev3dev/ev3dev-buildscripts ~/work $ git clone --recursive --depth 150 git://github.com/ev3dev/ev3-kernel ~/work $ cd ev3-kernel/drivers/lego - ~/work/ev3-kernel/drivers/lego $ git pull origin ev3dev-stretch + ~/work/ev3-kernel/drivers/lego $ git pull origin ev3dev-buster ~/work/ev3-kernel/drivers/lego $ cd - 3. Change to the `ev3dev-buildscripts` directory and have a look around. @@ -85,17 +84,12 @@ First time kernel build # BeagleBoard EV3DEV_KERNEL_FLAVOR=bb.org ./build-kernel -6. That's it! The uImage and kernel modules you just built are saved in - `./build-area`. You just need to copy the files to your - already formatted SD card. For an easier way of getting the kernel on - your EV3, see [Sharing Your Kernel](#sharing-your-kernel). Starting with - ev3dev-stretch images dated 2018-05 or later, the uImage file is no longer - used. Create a Debian package as described in the *Sharing Your Kernel* - section. - - ~/work/ev3dev-buildscripts $ cd ./build-area/linux-ev3dev-ev3-dist - ~/work/ev3dev-buildscripts/build-area/linux-ev3dev-ev3-dist $ cp uImage /uImage - ~/work/ev3dev-buildscripts/build-area/linux-ev3dev-ev3-dist $ sudo cp -r lib/ +6. That's it! + + TODO: add instructions on how to modify uEnv.txt to use uImage file. + + For now, see [Sharing Your Kernel](#sharing-your-kernel) for how to create + a debian package to install the kernel you just built. Faster Builds and Custom Locations diff --git a/setup-env b/setup-env index 9554e3e..604d4c0 100755 --- a/setup-env +++ b/setup-env @@ -53,7 +53,7 @@ fi export EV3DEV_KERNEL_FLAVOR=${EV3DEV_KERNEL_FLAVOR-"ev3"} export EV3DEV_BUILD_AREA=${EV3DEV_BUILD_AREA-"$(pwd)/build-area"} export EV3DEV_MERGE_CMD=${EV3DEV_MERGE_CMD-"vimdiff \$file1 \$file2"} -export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/lib/x86_64-linux-gnu/gcc-linaro-arm-linux-gnueabihf-6.4/bin"} +export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/lib/x86_64-linux-gnu/gcc-arm-linux-gnueabihf-8.3/bin"} export EV3DEV_ABI=${EV3DEV_ABI-"arm-linux-gnueabihf-"} if [ "$EV3DEV_KERNEL_FLAVOR" = "ev3" ]; then From 7194ea342234738681c57e60bbfe0509ea3e8ffa Mon Sep 17 00:00:00 2001 From: project516 Date: Sat, 2 Aug 2025 21:22:01 -0500 Subject: [PATCH 2/2] start trying to compile ev3dev trixie --- setup-env | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-env b/setup-env index 604d4c0..e413112 100755 --- a/setup-env +++ b/setup-env @@ -53,7 +53,7 @@ fi export EV3DEV_KERNEL_FLAVOR=${EV3DEV_KERNEL_FLAVOR-"ev3"} export EV3DEV_BUILD_AREA=${EV3DEV_BUILD_AREA-"$(pwd)/build-area"} export EV3DEV_MERGE_CMD=${EV3DEV_MERGE_CMD-"vimdiff \$file1 \$file2"} -export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/lib/x86_64-linux-gnu/gcc-arm-linux-gnueabihf-8.3/bin"} +export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/bin"} export EV3DEV_ABI=${EV3DEV_ABI-"arm-linux-gnueabihf-"} if [ "$EV3DEV_KERNEL_FLAVOR" = "ev3" ]; then