Skip to content

Commit ecd916e

Browse files
committed
foo
1 parent a745d77 commit ecd916e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

exercises_embedded/01_build_from_scratch_manual_debian.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ sudo debootstrap --arch=arm64 --foreign bookworm \
120120

121121
```bash
122122
# Copy QEMU static binary for chroot emulation
123-
sudo cp /usr/bin/qemu-aarch64-static ~/arm64-rootfs/usr/bin/
123+
cp /usr/bin/qemu-aarch64-static ~/arm64-rootfs/usr/bin/
124124
```
125125

126126
### 4.3 Complete the Bootstrap
@@ -183,7 +183,7 @@ exit
183183

184184
```bash
185185
# Copy kernel modules to rootfs
186-
sudo cp -a ~/linux/../modules_install/lib/modules ~/arm64-rootfs/lib/
186+
cp -a ~/linux/../modules_install/lib/modules ~/arm64-rootfs/lib/
187187
```
188188

189189
---
@@ -212,7 +212,7 @@ mkdir -p /tmp/arm64-mnt
212212
sudo mount -o loop ~/arm64-disk.img /tmp/arm64-mnt
213213

214214
# Copy rootfs contents
215-
sudo cp -a ~/arm64-rootfs/* /tmp/arm64-mnt/
215+
cp -a ~/arm64-rootfs/* /tmp/arm64-mnt/
216216

217217
# Unmount
218218
sudo umount /tmp/arm64-mnt

exercises_embedded/02_build_from_scratch_busybox.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ make olddefconfig
106106
### 3.3 Build the Kernel
107107

108108
```bash
109-
make -j$(nproc) Image
109+
make -j$(nproc) Image modules dtbs
110110
```
111111

112112
The kernel image will be at `arch/arm64/boot/Image`.
@@ -396,7 +396,7 @@ mkfs.ext4 disk.img
396396
```bash
397397
mkdir -p /tmp/arm64-mnt
398398
sudo mount -o loop disk.img /tmp/arm64-mnt
399-
sudo cp -a rootfs/* /tmp/arm64-mnt/
399+
cp -a rootfs/* /tmp/arm64-mnt/
400400
sudo umount /tmp/arm64-mnt
401401
```
402402

0 commit comments

Comments
 (0)