diff options
author | Leah Woods <info@minifree.org> | 2015-07-18 19:31:16 (EDT) |
---|---|---|
committer | Leah Woods <info@minifree.org> | 2016-05-18 10:15:26 (EDT) |
commit | 12e695ec7b160b1cc62831838244454b7edd03d3 (patch) | |
tree | 7821900fe16ece180a021957371a7c0b798922dd /resources/scripts/helpers/build/roms/withgrub | |
parent | 919af0e6b7cbff2171d370a0b830f2b9d740410b (diff) | |
download | libreboot-r500-experimental.zip libreboot-r500-experimental.tar.gz libreboot-r500-experimental.tar.bz2 |
New board: ThinkPad R500 (experimental)r500-experimental
The ich9deblob and ich9gen utilities were modified, so that they
support reading and/or writing descriptor images where the GbE
region is not defined. These utilities were also re-factored
and tidied up a bit.
A quick was noticed during the course of this work, in that
Compenent 1 Density was being set to 8MiB constantly, even
on systems with 4MiB flash chips. Component 2 Density was
set statically to 2MiB. ich9gen now sets both to 4MiB or 8MiB,
depending on whether building the descriptor for a 4MiB or
8MiB ROM image.
There are still some ACPI bugs (see docs/hcl/r500.html), which
will have to be fixed upstream. TODO: get hw reg dumps from
a factory R500, and compare with the X200 or T400 dumps.
Diffstat (limited to 'resources/scripts/helpers/build/roms/withgrub')
-rwxr-xr-x | resources/scripts/helpers/build/roms/withgrub | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub index 1463e69..84c009d 100755 --- a/resources/scripts/helpers/build/roms/withgrub +++ b/resources/scripts/helpers/build/roms/withgrub @@ -92,11 +92,27 @@ do fi done +# TEMPORARY HACK: copy t400* to r500* +# (until proper R500 support is added) +if [ -d "bin/grub/" ]; then + cd "bin/grub/" + for board in "t400" + do + for romsize in "4m" "8m" + do + if [ -d "${board}_${romsize}b/" ]; then + cp -R "${board}_${romsize}b/" "r500_${romsize}b/" + fi + done + done + cd ../../ +fi + # Build the deblobbed descriptor+gbe regions for GM45/ICH9M targets. # Then put them in the ROM images. if [ -d "bin/grub/" ]; then cd "bin/grub/" - for board in "x200" "r400" "t400" "t500" + for board in "x200" "r400" "r500" "t400" "t500" do for romsize in "4m" "8m" do @@ -105,7 +121,11 @@ if [ -d "bin/grub/" ]; then ../../../resources/utilities/ich9deblob/ich9gen for rom in * do - dd if="ich9fdgbe_${romsize}.bin" of="${rom}" bs=1 count=12k conv=notrunc + if [ "${board}" = "r500" ]; then + dd if="ich9fdnogbe_${romsize}.bin" of="${rom}" bs=1 count=4k conv=notrunc + else + dd if="ich9fdgbe_${romsize}.bin" of="${rom}" bs=1 count=12k conv=notrunc + fi done rm -f "ich9fd"*.bin "mk"*.[ch] cd "../" |