Lesson1: Difference between revisions

From coreboot
Jump to navigation Jump to search
(Created page with "coreboot lesson 1 - Starting from scratch From a fresh [http://releases.ubuntu.com/15.10/ubuntu-15.10-desktop-amd64.iso ubuntu 15.10 linux] install, here are all the steps re...")
 
(redirect to our doc site)
Tag: Replaced
 
(18 intermediate revisions by 2 users not shown)
Line 1: Line 1:
coreboot lesson 1 - Starting from scratch
{{#externalredirect: https://doc.coreboot.org/tutorial/part1.html}}
 
From a fresh [http://releases.ubuntu.com/15.10/ubuntu-15.10-desktop-amd64.iso ubuntu 15.10 linux] install, here are all the steps required:
 
==Download, configure, and build coreboot==
 
Install tools and libraries needed for coreboot
$ sudo apt-get install git-core libncurses5-dev m4 bison flex
 
Download coreboot source tree:
$ git clone http://review.coreboot.org/coreboot
$ cd coreboot
 
build toolchain (This can take a significant amount of time)
$ make crossgcc-i386 CPUS=$(nproc)
 
configure mainboard to build coreboot
$ make menuconfig
    select 'Mainboard'
    select 'Mainboard model'
    select 'QEMU x86 i440fx/piix4'
    exit
    exit
    yes
check your configuration:
$ make savedefconfig
$ cat defconfig
There should only be one line:
  CONFIG_BOARD_EMULATION_QEMU_X86_I440FX=y
 
build coreboot:
$ make
 
== Test the image using QEMU ==
 
Install QEMU
$ sudo apt-get install qemu
 
Download and decompress a disk image:
$ wget http://wiki.qemu.org/download/linux-0.2.img.bz2
$ bunzip2 linux-0.2.img.bz2
 
Start QEMU:
$ qemu-system-x86_64 -bios build/coreboot.rom -hda linux-0.2.img -serial stdio
 
You should see the serial output of coreboot in the original console window, and a new window will appear with the linux image that was downloaded running in it.

Latest revision as of 13:58, 20 January 2023

This page redirects to an external site: https://doc.coreboot.org/tutorial/part1.html