Skip to content

Commit

Permalink
feat(t430): initial commit for t430
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrilleratplay committed Jul 15, 2018
1 parent f42d791 commit 9924d1b
Show file tree
Hide file tree
Showing 6 changed files with 804 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ NOTE: Internal flashing can only be complete if Coreboot has already been flashe
## Configuration

The make configs include
* Primary payload is the latest stable SeaBIOS
* All secondary payloads are added by default
* High resolution libgfxinit is used over legacy framebuffer and VGA BIOS

## Per device compiling and flashing details
* [Lenovo Thinkpad X220 and x220 Tablet](x220/README.md)
* [Lenovo Thinkpad X230](x230/README.md)
* [Lenovo Thinkpad T430](t430/README.md)
26 changes: 26 additions & 0 deletions t430/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Lenovo t430

**NOTE**: This has only been tested with a T430 with Intel HD Video. NVidia video may or may not work.

### Prep work
As long as only the BIOS partition is being flashed without the VGA blob, the stock BIOS
back up is not required to compile.

### Compiling
Build the latest merged into the master git branch:
`./build.sh --bleeding-edge t430`

Latest stable release:
`./build.sh t430`

### Output
##### Internal flashing
`coreboot_lenovo-t430-complete.rom` - The complete Coreboot ROM is the 12MB version used for internal flashing.
`coreboot_lenovo-t430-complete.rom.sha256` - sha256 checksum of 12MB Coreboot Rom

*NOTE:* As this is compiled without the stock BIOS, all IFD, GBE and ME blobs are stubs. Use the `flash.sh` script at the root of the directory.


##### External flashing
`coreboot_lenovo-t430-top.rom` - The 4MB Coreboot BIOS that can be flashed externally onto the top BIOS chip.
`coreboot_lenovo-t430-top.rom.sha256` - sha256 checksum of 4MB Coreboot BIOS
41 changes: 41 additions & 0 deletions t430/compile.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
# SPDX-License-Identifier: GPL-3.0+

# shellcheck disable=SC1091
source /home/coreboot/common_scripts/variables.sh
source /home/coreboot/common_scripts/download_coreboot.sh
source /home/coreboot/common_scripts/config_and_make.sh

################################################################################
## MODEL VARIABLES
################################################################################
MAINBOARD="lenovo"
MODEL="t430"

################################################################################

###############################################
## download/git clone/git pull Coreboot ##
###############################################
downloadOrUpdateCoreboot

##############################
## Copy config and make ##
##############################
configAndMake

#####################
## Post build ##
#####################
if [ ! -f "$DOCKER_COREBOOT_DIR/build/coreboot.rom" ]; then
echo "Uh oh. Things did not go according to plan."
exit 1;
else
mv "$DOCKER_COREBOOT_DIR/build/coreboot.rom" "$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-complete.rom"

#split out top BIOS
dd if="$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-complete.rom" of="$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-top.rom" bs=1M skip=8

sha256sum "$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-complete.rom" > "$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-complete.rom.sha256"
sha256sum "$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-top.rom" > "$DOCKER_COREBOOT_DIR/coreboot_$MAINBOARD-$MODEL-top.rom-sha256"
fi
Loading

0 comments on commit 9924d1b

Please sign in to comment.