MidnightBSD upgrade to 2.0

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

MidnightBSD upgrade to 2.0

grahamperrin
Re: MidnightBSD Release Notes

Through my lack of familiarity with git commands, what should have been at
/usr/src
  was written to
/usr/src/src

I felt lazy about the mistake so with
/usr/src/src
 as my working directory, I ran
make clean buildworld buildkernel
 successfully but then the mergemaster command failed:

Screenshot of failures of mergemaster and etcupdate commands

– so I moved files and directories for things to be in their proper place at
/usr/src
 after which I successfully ran
mergemaster -p 

Now I can not install the kernel:

Screenshot: make installkernel failed

Should I completely abandon the first attempt – remove the contents of
/usr/src
 and if so: what should be my working directory before the first git command?

git clone https://github.com/MidnightBSD/src.git
Reply | Threaded
Open this post in threaded view
|

Re: MidnightBSD upgrade to 2.0

laffer1
Administrator
First on the git clone, you can do that two ways.
cd /usr; git clone https://github.com/MidnightBSD/src.git

or
cd /usr/src git clone https://github.com/MidnightBSD/src.git .

Alternatively you can specify a destination
cd /usr/; git clone https://github.com/MidnightBSD/src.git src to put it in the src directory.

As far as the kernel install, I suspect the directory structure is off in /usr/obj
check /usr/obj/usr/src and see if it has another src directory.  You might be able to move things up one like you had to do for the /usr/src/src situation.  If not, it might be easier to rm -r /usr/obj and then do a fresh buildworld buildkernel and installkernel
Reply | Threaded
Open this post in threaded view
|

Re: MidnightBSD upgrade to 2.0

grahamperrin
Thank you!

laffer1 wrote
check /usr/obj/usr/src and see if it has another src directory.
True.

Missing a semicolon, and when a semicolon is inserted the result is

/usr/src/src

rm -r /usr/obj
Done. I also emptied /usr/src then ran

cd /usr/src ; git clone https://github.com/MidnightBSD/src.git
Reply | Threaded
Open this post in threaded view
|

MidnightBSD upgrade to 2.0: make -j4 failed

grahamperrin
I strayed from the release notes, experimented with four jobs:

make -j4 clean buildworld buildkernel

Reply | Threaded
Open this post in threaded view
|

MidnightBSD upgrade to 2.0: make kernel failed

grahamperrin
I successfully built world without specifying four jobs, but then
make kernel
 ended like this:





I'll try:

make clean buildworld kernel
Reply | Threaded
Open this post in threaded view
|

MidnightBSD upgrade to 2.0: mergemaster -p

grahamperrin
Is it normal to find this after opting to merge?

Screenshot of the command line after choosing m in mergemaster -p

If not normal: might it be my preference for nano in lieu of vi?
Reply | Threaded
Open this post in threaded view
|

Re: MidnightBSD upgrade to 2.0: make kernel failed

laffer1
Administrator
In reply to this post by grahamperrin
You can safely ignore the kldxref errors for now.  Once the new world is installed, running it again manually or just reinstall the kernel again.  
Reply | Threaded
Open this post in threaded view
|

Re: MidnightBSD upgrade to 2.0: mergemaster -p

laffer1
Administrator
In reply to this post by grahamperrin
The default editor is controlled by an environment variable.  You can just set EDITOR=nano if you prefer that.