Skip to content

Commit 4758b78

Browse files
committed
Add changes suggested by @dlech, add -b flag to cloning the kernel instructons, so it clones the trixie branch, add instructions to install debhelper for sharing your kernel, updated rebasing guide, added a submodule updating guide - successfully compiled the kernel (build debian package) with these changes - there is a problem with ./build-kernel by itself, with generating a uImage
1 parent f80563a commit 4758b78

File tree

2 files changed

+24
-7
lines changed

2 files changed

+24
-7
lines changed

README.md

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ System Requirements
2020
sudo apt-get update
2121
# then install required packages
2222
sudo apt-get install git build-essential ncurses-dev fakeroot bc \
23-
u-boot-tools lzop flex bison libssl-dev gcc-arm-linux-gnueabi gcc-arm-linux-gnueabihf -y
23+
u-boot-tools lzop flex bison libssl-dev gcc-arm-linux-gnueabi
2424

2525

2626
Scripts
@@ -50,8 +50,8 @@ First time kernel build
5050
update the submodule commit in the kernel repo, so you have to pull manually
5151
to get the most recent commits).
5252

53-
~/work $ git clone https://github.com/project516/ev3dev-buildscripts
54-
~/work $ git clone --recursive --depth 25 https://github.com/project516/ev3-kernel
53+
~/work $ git clone https://github.com/ev3dev/ev3dev-buildscripts
54+
~/work $ git clone --recursive --depth 25 -b ev3dev-trixie https://github.com/ev3dev/ev3-kernel
5555

5656
3. Change to the `ev3dev-buildscripts` directory and have a look around.
5757

@@ -161,6 +161,12 @@ Sharing Your Kernel
161161
Want to send your custom kernel to someone so that they can use it? Never fear,
162162
there is an easy way to do that - using Debian packaging.
163163

164+
Make sure to install debhelper with:
165+
166+
```bash
167+
sudo apt-get install debhelper
168+
```
169+
164170
First, we want to set a kernel option so that our friends will know what kernel
165171
they are running. Run `./menuconfig` and set this option:
166172

@@ -230,8 +236,19 @@ Common Errors
230236
Rebasing
231237
--------
232238

239+
If you want to update your kernel, rebase!
240+
233241
```bash
234-
git remote add kernel https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
235-
git fetch kernel tag v6.12.y
242+
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
243+
git fetch stable tag v6.12.y # with 'y' being the latest version
236244
git rebase v6.12.y
237245
```
246+
247+
Updating Submodules
248+
-------------------
249+
250+
If you want to update the submodules in the ev3-kernel (or you forgot to initialize them):
251+
252+
```bash
253+
git submodule update --init --recursive --remote
254+
```

setup-env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ export EV3DEV_KERNEL_FLAVOR=${EV3DEV_KERNEL_FLAVOR-"ev3"}
5454
export EV3DEV_BUILD_AREA=${EV3DEV_BUILD_AREA-"$(pwd)/build-area"}
5555
export EV3DEV_MERGE_CMD=${EV3DEV_MERGE_CMD-"vimdiff \$file1 \$file2"}
5656

57-
export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/bin"}
58-
export EV3DEV_ABI=${EV3DEV_ABI-"/arm-linux-gnueabihf-"}
57+
export EV3DEV_TOOLCHAIN=${EV3DEV_TOOLCHAIN-"/usr/bin/"}
58+
export EV3DEV_ABI=${EV3DEV_ABI-"arm-linux-gnueabi-"}
5959

6060

6161
if [ "$EV3DEV_KERNEL_FLAVOR" = "ev3" ]; then

0 commit comments

Comments
 (0)