Solved Intel msi z590 motherboard Lan

OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

I’m still willing to give it a go again if you are still willing to take your time to help! Thanks again! What I’ll do this next time is, if not to burdensome, I’ll post any error or comments from each executed command. I think that will be helpful for all for it may demonstrate if there are any code errors when loading it in 13.0-RELEASE.
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

I’m still willing to give it a go again if you are still willing to take your time to help! Thanks again! What I’ll do this next time is, if not to burdensome, I’ll post any error or comments from each executed command. I think that will be helpful for all for it may demonstrate if there are any code errors when loading it in 13.0-RELEASE.
Okay, I'll start the process again later on today and if there is any odd message after any one of the executed entries I'll post it.
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

After I carried out removing the >>>>> ===== and <<<<<<< lines in the /sys/modules/Makefile, and re-excuted the Cherry-picking code:
root@randy /sys/modules]# cd /usr/src
[root@randy /usr/src]# git cherry-pick 517904de5cca
error: Cherry-picking is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: cherry-pick failed
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

After I carried out removing the >>>>> ===== and <<<<<<< lines in the /sys/modules/Makefile, and re-excuted the Cherry-picking code:
root@randy /sys/modules]# cd /usr/src
[root@randy /usr/src]# git cherry-pick 517904de5cca
error: Cherry-picking is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: cherry-pick failed
One thing I did different, was to carry out the /sys/modules/Makefile changes before I executed the Cherry-picking code.
 

Jose

Daemon

Reaction score: 1,163
Messages: 1,373

One thing I did different, was to carry out the /sys/modules/Makefile changes before I executed the Cherry-picking code.
You were already in the middle of a cherry-pick if /sys/modules/Makefile had changes in it. What does git diff say?
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

root@randy:~ # cd /usr/src
root@randy:/usr/src # git diff
warning: Not a git repository. Use --no-index to compare two paths outside a working tree
usage: git diff --no-index [<options>] <path> <path>

Diff output format options
-p, --patch generate patch
-s, --no-patch suppress diff output
-u generate patch
-U, --unified[=<n>] generate diffs with <n> lines context
-W, --function-context
generate diffs with <n> lines context
--raw generate the diff in raw format
--patch-with-raw synonym for '-p --raw'
--patch-with-stat synonym for '-p --stat'
--numstat machine friendly --stat
--shortstat output only the last line of --stat
-X, --dirstat[=<param1,param2>...]
output the distribution of relative amount of changes for each sub-directory
--cumulative synonym for --dirstat=cumulative
--dirstat-by-file[=<param1,param2>...]
synonym for --dirstat=files,param1,param2...
--check warn if changes introduce conflict markers or whitespace errors
--summary condensed summary such as creations, renames and mode changes
--name-only show only names of changed files
--name-status show only names and status of changed files
--stat[=<width>[,<name-width>[,<count>]]]
generate diffstat
--stat-width <width> generate diffstat with a given width
--stat-name-width <width>
generate diffstat with a given name width
--stat-graph-width <width>
generate diffstat with a given graph width
--stat-count <count> generate diffstat with limited lines
--compact-summary generate compact summary in diffstat
--binary output a binary diff that can be applied
--full-index show full pre- and post-image object names on the "index" lines
--color[=<when>] show colored diff
--ws-error-highlight <kind>
highlight whitespace errors in the 'context', 'old' or 'new' lines in the diff
-z do not munge pathnames and use NULs as output field terminators in --raw or --numstat
--abbrev[=<n>] use <n> digits to display object names
--src-prefix <prefix>
show the given source prefix instead of "a/"
--dst-prefix <prefix>
show the given destination prefix instead of "b/"
--line-prefix <prefix>
prepend an additional prefix to every line of output
--no-prefix do not show any source or destination prefix
--inter-hunk-context <n>
show context between diff hunks up to the specified number of lines
--output-indicator-new <char>
specify the character to indicate a new line instead of '+'
--output-indicator-old <char>
specify the character to indicate an old line instead of '-'
--output-indicator-context <char>
specify the character to indicate a context instead of ' '

Diff rename options
-B, --break-rewrites[=<n>[/<m>]]
break complete rewrite changes into pairs of delete and create
-M, --find-renames[=<n>]
detect renames
-D, --irreversible-delete
omit the preimage for deletes
-C, --find-copies[=<n>]
detect copies
--find-copies-harder use unmodified files as source to find copies
--no-renames disable rename detection
--rename-empty use empty blobs as rename source
--follow continue listing the history of a file beyond renames
-l <n> prevent rename/copy detection if the number of rename/copy targets exceeds given limit

Diff algorithm options
--minimal produce the smallest possible diff
-w, --ignore-all-space
ignore whitespace when comparing lines
-b, --ignore-space-change
ignore changes in amount of whitespace
--ignore-space-at-eol
ignore changes in whitespace at EOL
--ignore-cr-at-eol ignore carrier-return at the end of line
--ignore-blank-lines ignore changes whose lines are all blank
-I, --ignore-matching-lines <regex>
ignore changes whose all lines match <regex>
--indent-heuristic heuristic to shift diff hunk boundaries for easy reading
--patience generate diff using the "patience diff" algorithm
--histogram generate diff using the "histogram diff" algorithm
--diff-algorithm <algorithm>
choose a diff algorithm
--anchored <text> generate diff using the "anchored diff" algorithm
--word-diff[=<mode>] show word diff, using <mode> to delimit changed words
--word-diff-regex <regex>
use <regex> to decide what a word is
--color-words[=<regex>]
equivalent to --word-diff=color --word-diff-regex=<regex>
--color-moved[=<mode>]
moved lines of code are colored differently
--color-moved-ws <mode>
how white spaces are ignored in --color-moved

Other diff options
--relative[=<prefix>]
when run from subdir, exclude changes outside and show relative paths
-a, --text treat all files as text
-R swap two inputs, reverse the diff
--exit-code exit with 1 if there were differences, 0 otherwise
--quiet disable all output of the program
--ext-diff allow an external diff helper to be executed
--textconv run external text conversion filters when comparing binary files
--ignore-submodules[=<when>]
ignore changes to submodules in the diff generation
--submodule[=<format>]
specify how differences in submodules are shown
--ita-invisible-in-index
hide 'git add -N' entries from the index
--ita-visible-in-index
treat 'git add -N' entries as real in the index
-S <string> look for differences that change the number of occurrences of the specified string
-G <regex> look for differences that change the number of occurrences of the specified regex
--pickaxe-all show all changes in the changeset with -S or -G
--pickaxe-regex treat <string> in -S as extended POSIX regular expression
-O <file> control the order in which files appear in the output
--rotate-to <path> show the change in the specified path first
--skip-to <path> skip the output to the specified path
--find-object <object-id>
look for differences that change the number of occurrences of the specified object
--diff-filter [(A|C|D|M|R|T|U|X|B)...[*]]
select files by diff type
--output <file> Output to a specific file

root@randy:/usr/src #
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

New: after git diff

root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,10 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
++ HEAD
+_if_ndis= if_ndis
+ _igc= igc
++ 517904de5cc (igc(4): Introduce new driver for the Intel I225 Ethernet controller.)
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

Jose, Thanks for your time!!

Here is output from a different angle.

root@randy:/usr/src # git checkout releng/13.0
Updating files: 100% (21630/21630), done.
Branch 'releng/13.0' set up to track remote branch 'releng/13.0' from 'origin'.
Switched to a new branch 'releng/13.0'
root@randy:/usr/src # git diff
root@randy:/usr/src # ls
.arcconfig Makefile.sys.inc lib
.arclint ObsoleteFiles.inc libexec
.cirrus.yml README release
.clang-format README.md rescue
.git RELNOTES sbin
.gitattributes UPDATING secure
.github bin share
.gitignore cddl stand
COPYRIGHT contrib sys
LOCKS crypto targets
MAINTAINERS etc tests
Makefile gnu tools
Makefile.inc1 include usr.bin
Makefile.libcompat kerberos5 usr.sbin
root@randy:/usr/src # git config merge.renamelimit 3201
root@randy:/usr/src # git cherry-pick 517904de5cca
Performing inexact rename detection: 100% (5153610/5153610), done.
Auto-merging sys/modules/Makefile
CONFLICT (content): Merge conflict in sys/modules/Makefile
Auto-merging sys/i386/conf/NOTES
Auto-merging sys/i386/conf/GENERIC
Auto-merging sys/conf/files
Auto-merging sys/amd64/conf/NOTES
Auto-merging sys/amd64/conf/GENERIC
Auto-merging share/man/man4/Makefile
error: could not apply 517904de5cc... igc(4): Introduce new driver for the Intel I225 Ethernet controller.
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
root@randy:/usr/src # git commit
U sys/modules/Makefile
error: Committing is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
root@randy:/usr/src #
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

After I removed <<<<<<< ======= >>>>>>>

root@randy:/usr/src # git merge
error: Merging is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,10 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
++HEAD
+_if_ndis= if_ndis
+ _igc= igc
++517904de5cc (igc(4): Introduce new driver for the Intel I225 Ethernet controller.)
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #
 

Jose

Daemon

Reaction score: 1,163
Messages: 1,373

After I removed <<<<<<< ======= >>>>>>>

root@randy:/usr/src # git merge
error: Merging is not possible because you have unmerged files.
hint: Fix them up in the work tree, and then use 'git add/rm <file>'
hint: as appropriate to mark resolution and make a commit.
fatal: Exiting because of an unresolved conflict.
root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,10 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
++HEAD
+_if_ndis= if_ndis
+ _igc= igc
++517904de5cc (igc(4): Introduce new driver for the Intel I225 Ethernet controller.)
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #
Unfortunately there's still junk in there. Remove the line that says "HEAD" and the line that has "517904de5cc" in it.
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

Unfortunately there's still junk in there. Remove the line that says "HEAD" and the line that has "517904de5cc" in it.
Jose: I removed those lines and here is the new results

root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,11 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
++
+_if_ndis= if_ndis
++
+ _igc= igc
++
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #

I'll ee Makefile again remove the blank lines and see what happens when I execute git diff again.
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

Jose: I removed those lines and here is the new results

root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,11 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
++
+_if_ndis= if_ndis
++
+ _igc= igc
++
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #

I'll ee Makefile again remove the blank lines and see what happens when I execute git diff again.
root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,8 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
+_if_ndis= if_ndis
+ _igc= igc
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

root@randy:/usr/src # git diff
diff --cc sys/modules/Makefile
index 7574c612f49,91e3a54213f..00000000000
--- a/sys/modules/Makefile
+++ b/sys/modules/Makefile
@@@ -633,7 -635,7 +634,8 @@@ _em= e
_et= et
_ftwd= ftwd
_exca= exca
+_if_ndis= if_ndis
+ _igc= igc
_io= io
_itwd= itwd
_ix= ix
root@randy:/usr/src #
Jose: These two entries +_if_ndis= if_ndis and +_igc= igc are shown in the git diff output as green in color. What does that mean?
 

Jose

Daemon

Reaction score: 1,163
Messages: 1,373

Jose: These two entries +_if_ndis= if_ndis and +_igc= igc are shown in the git diff output as green in color. What does that mean?
Hopefully that means that they're added lines, though the _if_ndis... line should already be there.

Anyways, moving on. Now you need to build the kernel, which is roughly analogous to updating from source. I believe at this point you want to run
Code:
make buildkernel
make installkernel

And reboot. Hopefully someone with more recent experience doing this sort of thing will chime in here.
 

T-Daemon

Daemon

Reaction score: 988
Messages: 1,888

Now you need to build the kernel, which is roughly analogous to updating from source. I believe at this point you want to run
Code:
make buildkernel
make installkernel
Better build a kernel module alone, not the whole kernel. Since igc(4) is not part of the official 13.0-RELEASE, when the system gets freebsd-update(8) updated the kernel might not be recognized as a valid 13.0-RELEASE 'GENERIC' but as a custom kernel during system inspection, the kernel update would fail and it would require to build a new kernel from source again after updating the system source.

Whereas when igc(4) is build solely as a module it's installed under /boot/modules and is unnoticed by freebsd-update(8).
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

rpowell47, please execute
Code:
# cd /usr/src/sys/modules/igc
# make install

Look for errors. If there are, post them.

If there are none, load the kernel module:
Code:
# kldload if_igc

Proceed with 12.5.2. Configuring the Network Card.
root@randy /usr/src]# cd /usr/src/sys/modules/igc
[root@randy /usr/src/sys/modules/igc]# make install
[Creating objdir /usr/obj/usr/src/amd64.amd64/sys/modules/igc...]
install -T release -o root -g wheel -m 555 if_igc.ko /boot/modules/
install: if_igc.ko: No such file or directory
*** Error code 71

Stop.
make: stopped in /usr/src/sys/modules/igc
[root@randy /usr/src/sys/modules/igc]# kldload if_igc
kldload: can't load if_igc: No such file or directory
[root@randy /usr/src/sys/modules/igc]#
 

T-Daemon

Daemon

Reaction score: 988
Messages: 1,888

[root@randy /usr/src/sys/modules/igc]# make install
[Creating objdir /usr/obj/usr/src/amd64.amd64/sys/modules/igc...]
install -T release -o root -g wheel -m 555 if_igc.ko /boot/modules/
install: if_igc.ko: No such file or directory
*** Error code 71

Stop.
make: stopped in /usr/src/sys/modules/igc
The modules build didn't succeed, there must be more messages. Please post those and git status.
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

[root@randy ~]# cd /usr/src/sys/modules/igc
[root@randy /usr/src/sys/modules/igc]# make install
install -T release -o root -g wheel -m 555 if_igc.ko /boot/modules/
install: if_igc.ko: No such file or directory
*** Error code 71

Stop.
make: stopped in /usr/src/sys/modules/igc
[root@randy /usr/src/sys/modules/igc]#
[root@randy /usr/src/sys/modules/igc]# kldload if_igc
kldload: can't load if_igc: No such file or directory
[root@randy /usr/src/sys/modules/igc]# git status
On branch releng/13.0
Your branch is up to date with 'origin/releng/13.0'.

You are currently cherry-picking commit 517904de5cc.
(fix conflicts and run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)

Changes to be committed:
modified: ../../../share/man/man4/Makefile
new file: ../../../share/man/man4/igc.4
modified: ../../amd64/conf/GENERIC
modified: ../../amd64/conf/NOTES
modified: ../../conf/files
new file: ../../dev/igc/if_igc.c
new file: ../../dev/igc/if_igc.h
new file: ../../dev/igc/igc_api.c
new file: ../../dev/igc/igc_api.h
new file: ../../dev/igc/igc_base.c
new file: ../../dev/igc/igc_base.h
new file: ../../dev/igc/igc_defines.h
new file: ../../dev/igc/igc_hw.h
new file: ../../dev/igc/igc_i225.c
new file: ../../dev/igc/igc_i225.h
new file: ../../dev/igc/igc_mac.c
new file: ../../dev/igc/igc_mac.h
new file: ../../dev/igc/igc_nvm.c
new file: ../../dev/igc/igc_nvm.h
new file: ../../dev/igc/igc_osdep.h
new file: ../../dev/igc/igc_phy.c
new file: ../../dev/igc/igc_phy.h
new file: ../../dev/igc/igc_regs.h
new file: ../../dev/igc/igc_txrx.c
modified: ../../i386/conf/GENERIC
modified: ../../i386/conf/NOTES
new file: Makefile

Unmerged paths:
(use "git add <file>..." to mark resolution)
both modified: ../Makefile

[root@randy /usr/src/sys/modules/igc]#
 

shkhln

Daemon

Reaction score: 1,066
Messages: 2,396

Still at it? Impressive. The module wasn't built because it requires a separate make step, the build is not triggered by make install.
 

Jose

Daemon

Reaction score: 1,163
Messages: 1,373

Still at it? Impressive. The module wasn't built because it requires a separate make step, the build is not triggered by make install.
So in bite-size pieces, start with cd /usr/src/sys/modules/igc, and then type make. Look for errors and report them here. If there are none, then do make install.
 

shkhln

Daemon

Reaction score: 1,066
Messages: 2,396

1. cd /usr/src/sys/modules/igc
2. make clean
3. setenv CFLAGS "-DVIMAGE -DDEV_RANDOM"
2. make
3. kldload /usr/obj/usr/src/amd64.amd64/sys/modules/igc/if_igc.ko should produce no errors.
4. dmesg | tail should print something like "igc0: <Intel(R) Ethernet Controller I225-V> mem 0xfc500000-0xfc5fffff,0xfc600000-0xfc603fff irq 29 at device 0.0 on pci3".
5. make install
 
OP
R

rpowell47

Active Member

Reaction score: 26
Messages: 206

I'm not experienced nor have the knowledge to carry out this out:

root@randy /usr/src/sys/modules/igc]# setenv CFLAGS "-DVIMAGE -DDEV_RANDOM"
bash: setenv: command not found
[root@randy /usr/src/sys/modules/igc]#

Again thank you all for your patience and time!
 

shkhln

Daemon

Reaction score: 1,066
Messages: 2,396

This is a command for one and only FreeBSD default root shell: /bin/csh.
 
Top