Skip to content

Commit

Permalink
add some backslashes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplan2539 committed Mar 17, 2024
1 parent f772773 commit eae412c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions book/src/buildroot.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ BR2_TOOLCHAIN_EXTERNAL=y
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.68"
BR2_LINUX_KERNEL_PATCH="${BR2_EXTERNAL_CHIP_PATH}/board/nextthingco/CHIP/linux"
BR2_LINUX_KERNEL_PATCH="\${BR2_EXTERNAL_CHIP_PATH}/board/nextthingco/CHIP/linux"
BR2_LINUX_KERNEL_DEFCONFIG="sunxi"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun5i-r8-chip"
Expand All @@ -88,7 +88,7 @@ BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2023.10"
BR2_TARGET_UBOOT_PATCH="${BR2_EXTERNAL_CHIP_PATH}/board/nextthingco/CHIP/uboot"
BR2_TARGET_UBOOT_PATCH="\${BR2_EXTERNAL_CHIP_PATH}/board/nextthingco/CHIP/uboot"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="CHIP"
BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
Expand Down
13 changes: 7 additions & 6 deletions book/src/warmup.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ These commands are going to install a cross-compiler toolchain, the
`sunxi-fel` tool, the `cu` terminal program, and couple of dependencies:

```shell
sudo bash -c '{{#include ../../setup/install_packages.sh:3:}}'
sudo bash -c '\
{{#include ../../setup/install_packages.sh:3:}}'
```

Let us add the current user to the `dialout` group in order to run the `cu`
Expand Down Expand Up @@ -86,19 +87,19 @@ and select the `arm-linux-gnueabihf-` toolchain we installed before.

That wasn't too bad, so now let's try to boot CHIP.
First, connect the `TX` wire of your USB serial adapter to CHIP's `RX` pin and
the `RX` wir of your USB serial adapter to CHIP's `TX` pin.
the `RX` wire of your USB serial adapter to CHIP's `TX` pin.
Also connect a `GND` pin of your USB serial adapter to one of CHIP's `GND`
pins:

![C.H.I.P. connected](chip_connected.png)

Then, open a new terminal window in which we're going to run `cu`:
```shell
```shell,ignore
cu -l /dev/ttyUSB0 -s 115200
```

Then in our original terminal window in the `u-boot-v2023.10` directory, type
```shell
```shell,ignore
sunxi-fel -v uboot u-boot-sunxi-with-spl.bin
```
which should produce something like the following as output:
Expand Down Expand Up @@ -187,7 +188,7 @@ ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make -j$(nproc) dtbs

OK, now let's boot into linux:

```shell
```shell,ignore
cd ..
sunxi-fel -v uboot u-boot-v2023.10/u-boot-sunxi-with-spl.bin \
write 0x42000000 linux-6.1.62/arch/arm/boot/zImage \
Expand Down Expand Up @@ -281,7 +282,7 @@ u-boot-v2023.10/tools/mkimage -A arm -O linux -T ramdisk -C gzip -d rootfs.cpio.
Now that we have a root file system we can download it to CHIP's RAM and boot
into it:

```shell
```shell,ignore
sunxi-fel -v uboot u-boot-v2023.10/u-boot-sunxi-with-spl.bin \
write 0x42000000 linux-6.1.62/arch/arm/boot/zImage \
write 0x43000000 linux-6.1.62/arch/arm/boot/dts/sun5i-r8-chip.dtb \
Expand Down

0 comments on commit eae412c

Please sign in to comment.