Issue #658 has been updated by Walter Sonius.
Gabriel Turlea wrote in #note-10:
> Not sure how I can formally transform this into a proper port
For a start you can copy the whole `variants/p5g41t-m_lx` and rename the folder
and add all the Kconfig(.name) options to your port by copy pasting the earlier
`P5G41T_M_LX` variant as an example and also inside the variant folder replace
the `gpio.c` with yours as far as I understand your `overridetree.cb` remained
the same? Do note that Kconfig itself uses only `underscores _` and `CAPITALS`
for its references, so don't get confused naming your variant which has a dash-!
Than you may add a `elif (CONFIG(BOARD_ASUS_P5G41C_M_LX)) {#bsel/gpio stuff}`
to the `early_init.c` to make a extra condition for your specific port use the
exact same name you called it in the `Kconfig` and copy paste the bsel/gpio
changes you need there. You probably also need to add a similar condition at
the end for your SPD map aswell since you have 4 DIMM slots vs the 2 DIMMS used
in the earlier 2 variants.
If the original `BOARD_ASUS_P5QPL_AM` & `P5G41T_M_LX` variants still build with
their original `make -jX BUILD_TIMELESS=1 CONFIG_INCLUDE_CONFIG_FILE=n` hash as
before you started using all your edited code, and your own
`BOARD_ASUS_P5G41C_M_LX` also builds with these new guarded conditions you may
have a working 1st variant port :D?
After that you may do a gerrit commit see [coreboot docs tutorial part
2](https://doc.coreboot.org/tutorial/part2.html)?
----------------------------------------
Bug #658: asus p5g41c-m-lx pcie discovery of realtek 10ec:8168
https://ticket.coreboot.org/issues/658#change-2367
* Author: Gabriel Turlea
* Status: New
* Priority: Normal
* Target version: none
* Start date: 2026-07-14
----------------------------------------
I have tried to port coreboot to asus-p5g41c-m-lx by using the existing
pg541t-m-lx variant. Everything works great except I cannot get the onboard lan
realtek 10ec:8168 to be detected by coreboot. The card shows up and works once
linux boots. Adding some register values in the overridetree.cb seems to
disable the card even in linux. Please let me know what supporting info I
should provide.
Thank you
---Files--------------------------------
p5g41c_m-lx_cbmem.log (53.5 KB)
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
https://ticket.coreboot.org/my/account
_______________________________________________
coreboot mailing list -- [email protected]
To unsubscribe send an email to [email protected]