1# ASUS F2A85-M 2 3This page describes how to run coreboot on the [ASUS F2A85-M]. 4 5## Variants 6- ASUS F2A85-M - Working 7- ASUS F2A85-M LE - Working 8- ASUS F2A85-M PRO - Working 9- ASUS F2A85-M2 - Working 10- ASUS F2A85-M/CSM - Unsure if WIP. 11 12## Technology 13 14Both "Trinity" and "Richland" desktop processing units are working, 15the CPU architecture in these CPUs/APUs is [Piledriver], 16and their GPU is [TeraScale 3] (VLIW4-based). 17 18```{eval-rst} 19+------------------+--------------------------------------------------+ 20| F2A85-M | | 21+------------------+--------------------------------------------------+ 22| DDR voltage IC | Nuvoton NCT3933U (AUX SMBUS 0x15) | 23+------------------+--------------------------------------------------+ 24| Network | Realtek RTL8111F | 25+------------------+--------------------------------------------------+ 26| Northbridge | Integrated into CPU with IMC and GPU (APUs only) | 27+------------------+--------------------------------------------------+ 28| Southbridge | Hudson-D4 | 29+------------------+--------------------------------------------------+ 30| Sound IC | Realtek ALC887 | 31+------------------+--------------------------------------------------+ 32| Super I/O | ITE 8603E | 33+------------------+--------------------------------------------------+ 34| VRM controller | DIGI VRM ASP1106 (Rebranded RT8894A - SMBUS 0x20)| 35+------------------+--------------------------------------------------+ 36``` 37 38```{eval-rst} 39+------------------+--------------------------------------------------+ 40| F2A85-M LE | | 41+------------------+--------------------------------------------------+ 42| DDR voltage IC | Nuvoton NCT3933U (AUX SMBUS 0x15 - unconfirmed) | 43+------------------+--------------------------------------------------+ 44| Network | Realtek RTL8111F | 45+------------------+--------------------------------------------------+ 46| Northbridge | Integrated into CPU with IMC and GPU(APUs only) | 47+------------------+--------------------------------------------------+ 48| Southbridge | Hudson-D4 | 49+------------------+--------------------------------------------------+ 50| Sound IC | Realtek ALC887 | 51+------------------+--------------------------------------------------+ 52| Super I/O | ITE 8623E | 53+------------------+--------------------------------------------------+ 54| VRM controller | DIGI VRM ASP1106 (Rebranded RT8894A - SMBUS 0x20)| 55+------------------+--------------------------------------------------+ 56``` 57 58```{eval-rst} 59+------------------+--------------------------------------------------+ 60| F2A85-M PRO | | 61+------------------+--------------------------------------------------+ 62| DDR voltage IC | Nuvoton NCT3933U (?) | 63+------------------+--------------------------------------------------+ 64| Network | Realtek RTL8111F - Not working | 65+------------------+--------------------------------------------------+ 66| Northbridge | Integrated into CPU with IMC and GPU(APUs only) | 67+------------------+--------------------------------------------------+ 68| Southbridge | Hudson-D4 | 69+------------------+--------------------------------------------------+ 70| Sound IC | Realtek ALC887 | 71+------------------+--------------------------------------------------+ 72| Super I/O | Nuvoton NCT6779D | 73+------------------+--------------------------------------------------+ 74| VRM controller | DIGI VRM ASP1107 | 75+------------------+--------------------------------------------------+ 76``` 77 78## Flashing coreboot 79 80```{eval-rst} 81+---------------------+------------+ 82| Type | Value | 83+=====================+============+ 84| Socketed flash | yes | 85+---------------------+------------+ 86| Model | W25Q64F | 87+---------------------+------------+ 88| Size | 8 MiB | 89+---------------------+------------+ 90| Package | DIP-8 | 91+---------------------+------------+ 92| Write protection | no | 93+---------------------+------------+ 94| Dual BIOS feature | no | 95+---------------------+------------+ 96| Internal flashing | yes | 97+---------------------+------------+ 98``` 99 100### Internal programming 101 102The main SPI flash can be accessed using [flashrom]. 103UEFI builds that allow flash chip access: 104> v5016 is untested, but expected to work as well 105> v5018 106> v5103 107> v5104 108> v5107 109> v5202 110> v6002 111> v6004 112> v6102 113> v6402 114> v6404 (requires downgrading to v6402 to flash coreboot) 115> v6501 (requires downgrading to v6402 to flash coreboot) 116> v6502 (requires downgrading to v6402 to flash coreboot) 117 118Build v6502, v6501 and v6404 do not allow access to the flash chip. 119Fortunately it is possible to downgrade build v6502, v6501, v6404 to v6402, with EZFlash. 120Downgrading is done by downloading build v6402 from ASUS' F2A85-M download page 121and copying it to (the root directory of) a FAT32 formatted USB flash drive. 122Enter the EFI setup, switch to advanced mode if necessary, 123open the 'Tool' tab and select "ASUS EZ Flash 2 Utility". 124 125## Integrated graphics 126 127### Option 1: Retrieve the VGA optionrom from the vendor EFI binary by running: 128 129 # dd if=/dev/mem of=vgabios.bin bs=1k count=64 skip=768 130 131### Option 2: Extract from the vendor binary 132 133Download the BIOS from the Support section at [ASUS F2A85-M]. 134Using MMTool Aptio (versions 4.5.0 and 5.0.0): 135- Load image, click on 'Extract tab' 136- Select the 'export path' and 'link present' options 137- Choose option ROM '1002,9900' and click on 'Extract' 138 139This version is usable for all the GPUs. 140> 1002,9901 Trinity (Radeon HD 7660D) 141> 1002,9904 Trinity (Radeon HD 7560D) 142> 1002,990c Richland (Radeon HD 8670D) 143> 1002,990e Richland (Radeon HD 8570D) 144> 1002,9991 Trinity (Radeon HD 7540D) 145> 1002,9993 Trinity (Radeon HD 7480D) 146> 1002,9996 Richland (Radeon HD 8470D) 147> 1002,9998 Richland (Radeon HD 8370D) 148> 1002,999d Richland (Radeon HD 8550D) 149 150## Known issues 151 152- buggy USB 3.0 controller (works fine as 2.0 port) 153- reboot, poweroff, S3 suspend/resume (broken since 4.8.1) 154 155## Known issues (untested because of non-working ACPI sleep) 156 157- blink in suspend mode (GP43, program LDN7 F8=23 and blink with F9=2 for 1s blinks) 158- fix immediate resume after suspend (perhaps PCIe STS needs to be cleared) 159- fix resume with USB3.0 used (perhaps there is a bug in resume.c) 160 161## Untested 162 163- audio over HDMI 164- IOMMU 165- PS/2 mouse 166 167## TODOs 168 169- manage to use one ATOMBIOS for all the integrated GPUs 170 171## Working 172 173- ACPI 174- CPU frequency scaling 175- flashrom under coreboot 176- Gigabit Ethernet 177- Hardware monitor 178- Integrated graphics 179- KVM 180- Onboard audio 181- PCIe 182- PS/2 keyboard 183- SATA 184- Serial port 185- SuperIO based fan control 186- USB (XHCI is buggy) 187 188## Extra resources 189 190- [Board manual] 191- Flash chip datasheet [W25Q64FV] 192 193[ASUS F2A85-M]: https://web.archive.org/web/20160320065008/http://www.asus.com/Motherboards/F2A85M/ 194[Board manual]: https://web.archive.org/web/20211028063105/https://dlcdnets.asus.com/pub/ASUS/mb/SocketFM2/F2A85-M/E8005_F2A85-M.pdf 195[flashrom]: https://flashrom.org/Flashrom 196[Piledriver]: https://en.wikipedia.org/wiki/Piledriver_%28microarchitecture%29#APU_lines 197[TeraScale 3]: https://en.wikipedia.org/wiki/TeraScale_%28microarchitecture%29#TeraScale_3 198[W25Q64FV]: https://web.archive.org/web/20220127184640/https://www.winbond.com/resource-files/w25q64fv%20revs%2007182017.pdf 199