Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions .github/workflows/lazy-lint.bash

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/markdownlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
run: sudo gem install mdl

- name: Lint markdown
run: .github/workflows/lazy-lint.bash
run: mdl .
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
style '.mdl_style.rb'
git_recurse true
2 changes: 2 additions & 0 deletions src/SUMMARY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Summary

- [LinuxBoot Introduction](intro.md)
- [Use cases](use-cases.md)
- [Talks and news coverage](talks-news.md)
Expand Down
8 changes: 4 additions & 4 deletions src/case_studies/TiogaPass.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ target OS.

* Download the code from [linuxboot github](https://github.com/linuxboot/linuxboot)

```
```sh
git clone https://github.com/linuxboot/linuxboot.git
```

* You need to apply Wiwiynn's linuxboot patch for now

```
```sh
cd linuxboot
wget -O TiogaPass.patch https://github.com/johnnylinwiwynn/linuxboot/commit/28ae8450b3b05c6e6b8c74e29d0974ccf711d5e6.patch
git am TiogaPass.patch
Expand All @@ -85,7 +85,7 @@ target OS.
after ordering, and also put your bzImage to the root folder of linuxboot,
and then make

```
```sh
cp path/to/tioga.rom linuxboot/boards/tioga
cp path/to/bzImage linuxboot
cd linuxboot
Expand Down Expand Up @@ -131,4 +131,4 @@ IRC channel, a mailing list and regular meetings.

Following companies provides professional support services:

**TBD**
TBD
2 changes: 1 addition & 1 deletion src/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ essentially a set of files and directories bundled into a single cpio archive.

The minimum structure is this:

```
```text
/dev/console
/dev/null
/init
Expand Down
30 changes: 15 additions & 15 deletions src/coreboot.u-root.systemboot/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ builds will cover virtual and physical OCP hardware.
Run these commands in a directory you create or in `/tmp`; do so because it
creates some files and directories:

```
```console
$ go get github.com/linuxboot/corebootnerf
$ go run github.com/linuxboot/corebootnerf --fetch
... lots and lots of output!
Expand All @@ -22,7 +22,7 @@ $ go run github.com/linuxboot/corebootnerf --fetch
This produces a coreboot image in coreboot-4.9/build/coreboot.rom
You can now run this ROM image:

```
```sh
qemu-system-x86_64 -serial stdio -bios coreboot-4.9/build/coreboot.rom
```

Expand Down Expand Up @@ -60,14 +60,14 @@ command that we will use in the next steps.

Then, fetch `u-root` and its dependencies:

```
```sh
go get -u github.com/u-root/u-root
```

Then build the ramfs in busybox mode, and add fbnetboot, localboot, and a custom
uinit to wrap everything together:

```
```sh
u-root -build=bb core github.com/u-root/u-root/cmds/boot/{uinit,localboot,fbnetboot}
```

Expand All @@ -85,7 +85,7 @@ initramfs in the kernel as explained below, in order to maintain the image size
smaller. Linux has a limited XZ compressor, so the compression requires specific
options:

```
```sh
xz --check=crc32 --lzma2=dict=512KiB /tmp/initramfs.linux_amd64.cpio
```

Expand Down Expand Up @@ -124,7 +124,7 @@ You can either download a tarball from kernel.org, or get it via git and use a
version tag. We recommend at least a kernel 4.16, in order to have VPD
variables support.

```
```sh
# download the kernel tarball. Replace 4.19.6` with whatever kernel version you want
wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.19.6.tar.xz
tar xvJf linux-4.19.6.tar.xz
Expand All @@ -135,7 +135,7 @@ make tinyconfig
You can also check out the `linux-stable` branch, that will point to the latest
stable commit. You need to download it via `git` as follows:

```
```sh
git clone --depth 1 -b linux-stable
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
cd linux-stable
Expand Down Expand Up @@ -267,7 +267,7 @@ As mentioned above, the kernel will embed the compressed initramfs image. Your
kernel configuration should point to the appropriate file using the
`CONFIG_INITRAMFS_SOURCE` directive. E.g.

```
```text
CONFIG_INITRAMFS_SOURCE="/path/to/initramfs_linux.x86_64.cpio.xz"
```

Expand All @@ -282,7 +282,7 @@ We use "linuxboot" as the default hostname. You may want to adjust it to a
different value. You need to set `CONFIG_DEFAULT_HOSTNAME` for the purpose. For
example:

```
```text
CONFIG_DEFAULT_HOSTNAME="linuxboot"
```

Expand All @@ -294,7 +294,7 @@ In menuconfig:

Once your configuration is ready, build the kernel as usual:

```
```sh
make -j$(nproc --ignore=1)
```

Expand All @@ -321,7 +321,7 @@ Steps overview:

Our preferred method is to download coreboot from the git repository:

```
```sh
git clone https://review.coreboot.org/coreboot.git
cd coreboot
```
Expand All @@ -331,7 +331,7 @@ cd coreboot
This step is required to have, among other things, reproducible builds, and a
compiler toolchain that is known to work with coreboot.

```
```sh
make crossgcc-i386 CPUS=$(nproc) BUILD_LANGUAGES=c
```

Expand Down Expand Up @@ -364,7 +364,7 @@ Then save your configuration and exit menuconfig.

This is done with a simple

```
```sh
make -j$(nproc)
```

Expand All @@ -374,7 +374,7 @@ code, and our bzImage payload. The output file is at `build/coreboot.rom`.

If everything works correctly you will get an output similar to the following:

```
```text
This image contains the following sections that can be manipulated with this tool:

'COREBOOT' (CBFS, size 16776704, offset 512)
Expand Down Expand Up @@ -414,7 +414,7 @@ the machine type `q35`, as specified in the coreboot mainboard section.
Assuming that your coreboot image is located at `build/coreboot.rom`, you can
run the following command:

```
```sh
sudo qemu-system-x86_64\ # sudo is required to enable KVM below
-M q35 \ # the machine type specified in the coreboot mainboard configuration
-enable-kvm \ # use KVM to avail of hardware virtualization extensions
Expand Down
Loading
Loading