Solved uname -a output shows i386 on amd64

I have tried several times, copying /usr/src/sys/amd64/conf/GENERIC to /usr/src/GENERIC running as root:
Code:
cd /usr/src
make buildkernel "KERNELCONF=GENERIC"
make installkernel "KERNELCONF=GENERIC"
shutdown -r now
login
uname -a

and I still show i386 not amd64 in the result.
 
Several problems with that.

First, the kernel config files are not expected to be in /usr/src, but in the conf directory.
Second, the variable name is KERNCONF.
Finally, switching from i386 to amd64 is not as simple as building a new kernel. A 64-bit world is needed also. I don't know whether there is a standard way to do that. (I did it a while back, but it was an ugly brute-force method of copying binaries from an existing system that I do not recommend.)
 
Thanks wblock@,
I am sorry about the misspelling I did use KERNCONF. I up graded from 9.1 (EOL) to 9.3 then 10.1 / the 9.1 was amd64. I seemed to lose this in the freebsd-update -r. I will ask another question. In the [ make buildkernel KERNCONF=/usr/src/sys/amd64/conf/GENERIC ] would be the proper way to rebuild a GENERIC kernel VS cp /usr/src/sys/amd64/conf GENERIC /usr/src/GENERIC. The handbook has gotten a bit vague as to this. It is cp GENERIC MYKERNEL then cd /usr/src. There appears to be a few arguments missing. Is KERNCONF a variable or an argument? TIA
 
KERNCONF is a variable that contains the name of the kernel configuration file. Left unset, it defaults to GENERIC. The kernel config files are expected to be found in the /usr/src/arch/conf directory, where arch is the currently-running architecture like amd64 or i386.

The wiki shows an approved process to migrate a system from i386 to amd64, but as it says at the start, the recommended way is to back up data and install amd64 directly: https://wiki.freebsd.org/amd64/i386Migration.

I don't use freebsd-update(8), so can't usefully comment on it.
 
I upgraded from 9.1 (EOL) to 9.3 then 10.1 / the 9.1 was amd64. I seemed to lose this in the freebsd-update -r.
That's not possible, freebsd-update(8) won't suddenly install a different architecture. Even if you built from source it won't suddenly switch architectures without using a lot of trickery. The obvious conclusion is that the system has always been a 32 bit version.
 
Thank you for all the insight. I am working on a couple of machines at the same time and must have confused the arch. The link https://wiki.freebsd.org/amd64/i386Migration is very insightful. I wish I had found it before during my search on this subject. I am tempted to follow the article, but in the interest of time will probably reinstall. Mahalo
 
Back
Top