1 General information on boot logs
2 ================================
4 To gather good boot logs, you must set the debug level to Spew.
6 If your board uses CMOS configuration[1], you can do it like this:
9 nvramtool -w debug_level=Spew
12 Else you will need to have to set the default log level at compile
13 time, to do that go in `Console --->` in make menuconfig, then set
14 `Default console log level` to SPEW.
19 [1] in make menuconfig you should have: `General setup --->`, `[*] Use CMOS for configuration values`.
20 This option is also known as `CONFIG_USE_OPTION_TABLE` in `Kconfig`.
22 Gather information through SSH
23 ==============================
25 `board_status.sh` can gather information through ssh with the `-r`
28 When using `-r <host>`, The script will attempt to log into
31 In order for `-r <host>` to work, the script has to be able
32 to log into the remote host's root account, without having
33 to provide a password.
35 That can be achieved with the use of SSH keys and ssh-agent.
37 `board_status.sh` expects the remote host to have the following
38 programs in its path: `cbmem`, `dmesg`.
40 Boot log gathering through a serial port
41 ========================================
43 When using `board_status.sh -s </dev/xxx>`, script starts by retrieving the
44 boot log through the serial port.
46 To produce such logs, power off the board, run `board_status.sh`
47 with the right arguments, power on the board.
49 At that point the logs will be displayed by `board_status.sh` as they
50 are produced by the board.
52 <kbd>Enter</kbd> will have to be pressed once the board has booted and is in a
53 state where the script is able to log into that board.
58 It expects the user to already have an account in
59 [coreboot's Gerrit instance](https://review.coreboot.org).
61 The `-u` switch will publish the results: It will make a `git patch` out
62 of the status information, that will be directly pushed in the
63 board-status repository.