Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2019 00:52:01 +0100
From:      Tomasz CEDRO <tomek@cedro.info>
To:        vm finance <vm.finance2@gmail.com>
Cc:        Polytropon <freebsd@edvax.de>, Per Hedeland <per@hedeland.org>,  Daniele Mazzotti <kappei84@gmail.com>,  FreeBSD Questions Mailing List <freebsd-questions@freebsd.org>
Subject:   Re: FreeBSD-12.1 on laptop
Message-ID:  <CAFYkXjkEwUhhBqTGT=5iM47Bsj5oP8_VB7OkUvTQK19895g4iA@mail.gmail.com>
In-Reply-To: <CAKy-8=he1NR-6dof7C9pvHGaJ-8-2d_UJX_CQiUVYk_Nr2f71g@mail.gmail.com>
References:  <CAKy-8=hUCNiAufHHgpLJTnbS_==aHT7UyspgjLyro-yEcxJ2_w@mail.gmail.com> <CAKy-8=i07xSnz3yW3H1XCOJ8_7x_m1__e0r68HxUx-R7-A0x8w@mail.gmail.com> <CAKy-8=gte8_xZGTt17kRgPtyj9mi6wx-ahehNSGrbcedVn4ZNQ@mail.gmail.com> <CACNAnaECR4bQ=FAM%2BwTfU0HaR63uAUQkp41mS9pPSM=4K_EGqQ@mail.gmail.com> <CAKy-8=gh7nGqzf9G5A7zJDoa2EQgA432k49djHi3%2Bzhg36Tv_A@mail.gmail.com> <CAKy-8=ivtDo0it9fzyUp8mUDAQuGWVfdQqfz2hmhXcA6CXJn%2Bg@mail.gmail.com> <CAKy-8=gHp67aqpXXNM=rfsWwNc4Ay__bsC-09NZ03Afm9W4ekg@mail.gmail.com> <CAKy-8=ho=mD5WLJA5iHbDt9prnrMDhjrwmWOO5NXumQDB9hXhw@mail.gmail.com> <20191128103810.9599da0b.freebsd@edvax.de> <CAKy-8=h05oQfa6rBhOH74vPt3e6m6u3-UXx6v3DWLgXp8No6Hw@mail.gmail.com> <770ebb05-9d76-1b54-5bf5-af548368e19e@hedeland.org> <CAKy-8=gccmRfqtg07JYmo15P0VV5bJo=tipOLURwEH0iA401tw@mail.gmail.com> <CAC=ypSUSmDyfECh4nD9gZ5=bWUCrPGvLs62EsRw0gfckrhJ5Gw@mail.gmail.com> <CAKy-8=jD3pWT6-YS1L-r-ms=Kr6QENzLQyncg09jJh3zRrw3xA@mail.gmail.com> <20191128140254.fc3ee735.freebsd@edvax.de> <CAKy-8=hv8vqy_O4S=d4GTxCzr9w6U51Avz-Ze7oTFJ%2BBMEBtdA@mail.gmail.com> <CAFYkXjn8ka_Vsmq=ieB%2BwRVxgk0y%2B1VSUsDjYeaZAiwGBU-E%2BQ@mail.gmail.com> <CAKy-8=he1NR-6dof7C9pvHGaJ-8-2d_UJX_CQiUVYk_Nr2f71g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Read the instructions provided on screen - it tells you to update port
tree or disable vulnerability check and you even have command showed
how to do that :-)

It seems you did not update the ports tree as instructed so the Intel
driver will not work and cannot be built. Did you type all commands as
instructed in given order?

If "portsnap fetch update" did not update your port tree try "portsnap
fetch extract" that would fetch and extract the latest port tree.

Then go to drm port (the latest is 4.16.g20191120) and do:
make clean
make
make deinstall
make install

kldunload drm
kldunload i915kms
kldload /boot/modules/i915kms.ko
startx

You may have Intel and nVidia graphics on your machine. First make
Intel working. Then you will easily make nVidia working (replace drm
and 915kms modules with nvidia.ko).

If you still have problems with both Intel and nVidia drivers get the
default framebuffer video driver that is slow but works:
pkg install xf86-video-scfb

If that does not work for you then you are making something wrong with
all good sufficiently enough information provided from the list, now
its your time to do the homework and _understand_ how things work and
where _you_ are making the mistake :-)

Have fun :-)

On Thu, Nov 28, 2019 at 6:13 PM vm finance <vm.finance2@gmail.com> wrote:
>
> Thanks Tomasz,
>
> Well, make at step #4 gave an error
>
> pkg install Xorg hal dbus
> portsnap fetch update
> cd /usr/ports/graphics/drm-fbsd12.0-kmod/
> make                                                                       <==== error here
>
> Pls see the attached screen shot...
>
> Many thanks!
>
>
>
> On Thu, Nov 28, 2019 at 8:34 PM Tomasz CEDRO <tomek@cedro.info> wrote:
>>
>> Do this as root:
>>
>> pkg install Xorg hal dbus
>> portsnap fetch update
>> cd /usr/ports/graphics/drm-fbsd12.0-kmod/
>> make
>> make deinstall
>> make install
>> kldunload drm
>> kldunload i915kms
>> kldload /boot/modules/drm.ko
>> kldload /boot/modules/i915kms.ko
>> startx
>>
>> You can also generate Xorg configuration with:
>> Xorg -configure
>> cp /root/xorg.config.new /etc/X11/xorg.conf
>> startx
>>
>> Note that you have to compile the DRM kernel driver on your machine,
>> also you need to load /boot/modules/drm.ko and
>> /boot/modules/i915kms.ko from that location otherwise you will load
>> default drm/i915 drivers that does not work with modern GPU.
>>
>> If all above works put below line into /etc/rc.conf:
>> kld_list="/boot/modules/drm.ko /boot/modules/i915kms.ko"
>>
>> You may also take a look at https://forums.freebsd.org/ to see if
>> people had similar problems and found a working solution.
>>
>> Have fun :-)
>>
>> --
>> CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



-- 
CeDeROM, SQ7MHZ, http://www.tomek.cedro.info



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFYkXjkEwUhhBqTGT=5iM47Bsj5oP8_VB7OkUvTQK19895g4iA>