Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -----
- Coreboot build on Debian Stretch Virtual Machine
- -----
- $ git clone https://review.coreboot.org/coreboot
- $ cd coreboot
- $ git submodule update --init --checkout
- Moved my extracted option rom "vga.raw" in coreboot/
- $ romheaders vga.raw
- Image 1:
- PCI Expansion ROM Header:
- Signature: 0x55aa (Ok)
- CPU unique data: 0x40 0xe9 0x71 0x02 0x00 0x00 0x00 0x00
- 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
- Pointer to PCI Data Structure: 0x0224
- PCI Data Structure:
- Signature: 0x50434952 'PCIR' (Ok)
- Vendor ID: 0x1002
- Device ID: 0x6663
- Vital Product Data: 0x0000
- PCI Data Structure Length: 0x0018 (24 bytes)
- PCI Data Structure Revision: 0x00
- Class Code: 0x038000 (Display controller)
- Image Length: 0x0040 blocks (32768 bytes)
- Revision Level of Code/Data: 0x0f29
- Code Type: 0x00 (Intel x86)
- Last-Image Flag: 0x80 (last image in rom)
- Reserved: 0x0000
- Platform specific data for x86 compliant option rom:
- Initialization Size: 0x40 (32768 bytes)
- Entry point for INIT function: 0x277
- $ make menuconfig
- Mainboard
- Mainboard vendor (Lenovo)
- Mainboard model (AMD G505s)
- Devices
- [*] Add a VGA BIOS image
- (vga.raw) VGA BIOS path and filename
- (1002,6663) VGA device PCI IDs
- $ make crossgcc
- $ make
- Intel ACPI Component Architecture
- ASL+ Optimizing Compiler version 20161222-64
- Copyright (c) 2000 - 2016 Intel Corporation
- coreboot toolchain v1.50 October 15th, 2017
- dsdt.aml 593: CreateDWordField(Arg3,4,CDW2)
- Remark 2089 - Object is not referenced ^ (Name [CDW2] is within a method [_OSC])
- dsdt.aml 594: CreateDWordField(Arg3,8,CDW3)
- Remark 2089 - Object is not referenced ^ (Name [CDW3] is within a method [_OSC])
- dsdt.aml 1397: Method (_CRS, 0, NotSerialized)
- Remark 2120 - ^ Control Method should be made Serialized (due to creation of named objects within)
- ASL Input: dsdt.aml - 1609 lines, 29714 bytes, 704 keywords
- AML Output: dsdt.aml - 9016 bytes, 373 named objects, 331 executable opcodes
- Compilation complete. 0 Errors, 0 Warnings, 3 Remarks, 383 Optimizations, 2 Constants Folded
- IASL build/dsdt.aml disassembled correctly.
- Name Offset Type Size Comp
- cbfs master header 0x0 cbfs header 32 none
- fallback/ramstage 0x80 stage 128508 none
- config 0x1f6c0 raw 162 none
- revision 0x1f7c0 raw 576 none
- payload_revision 0x1fa40 raw 239 none
- (empty) 0x1fb80 null 792 none
- apu/amdfw 0x1fec0 raw 4096 none
- fallback/romstage 0x20f00 stage 320172 none
- cmos_layout.bin 0x6f240 cmos_layout 1164 none
- pci1002,6663.rom 0x6f740 optionrom 32768 none
- fallback/postcar 0x777c0 stage 13268 none
- fallback/dsdt.aml 0x7ac00 raw 9016 none
- fallback/payload 0x7cf80 payload 67370 none
- payload_config 0x8d700 raw 1611 none
- (empty) 0x8ddc0 null 3547352 none
- s3nv 0x3efec0 raw 32768 none
- (empty) 0x3f7f00 null 31704 none
- bootblock 0x3ffb00 bootblock 928 none
- ( full make output : https://ghostbin.com/paste/xwk2r )
- -----
- Flashing on Windows using a Bus Pirate :
- -----
- Bus Pirate v4 with Firmware v7 and Bootloader v4.10 - Driver v5.1.2600.0
- Flashrom v0.9.6.1
- I dismounted the laptop to get access to the BIOS chip and disconnected all power input to the motherboard.
- Connected the bus pirate to the chip with the help of an appropriate test clip.
- Bios Pin Connectors -> Bus Pirate
- (1) CS -> CS
- (2) DO -> MISO
- (3) WP
- (4) VSS -> GND
- (5) DI -> MOSI
- (6) CLK -> CLK
- (7) HOLD
- (8) VCC -> +3.3
- Command Prompt in flashrom/ directory containing the coreboot.rom file :
- $ flashrom -p buspirate_spi:dev=COM6,spispeed=1M -w coreboot.rom -V
- Found Winbond flash chip "W25Q32.V" (4096 kB, SPI).
- This chip may contain one-time programmable memory. flashrom cannot read and may never be able to write it, hence it may not be able to completely clone the contents of this chip (see man page for details.
- Reading old flash chip contents... done.
- Erasing and writing flash chip... Trying erase function 0...
- Erase/write done.
- Verifying flash... VERIFIED.
- Raw bitbang mode version 1
- Bus Pirate shutdown completed.
- -----
- G505s Test
- -----
- I remounted and started the laptop.
- Both front leds activate
- Webcam led blinks once during boot
- HDD is active
- Ventilator is running
- CPU heats up
- Keyboard numlock led works
- Keyboard Caps Lock led doesn't work
- USB Thumb Drive connected to the USB 2.0 port is powered up but no interractions with the system (led lights up but no blinking)
- USB Thumb Drive connected to any of the USB 3.0 ports doesn't power up (led stays off)
- Tried to ssh to the debian I installed earlier on the machine, doesn't work.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement