Running FreeBSD 12.1 on Seeed Odyssey x86-j4105 (celeron based single board computer).
Working through MW Lucas' "Absolute FreeBSD", in Chapter 6 "Kernel Games".
Logged in as root, seems even with my user in wheel I can't do some compile steps - that is not my issue today.
My problem: Did:
//quit unsaved
//quit and saved.
Diagnosing my own problem: I am in the wrong directory when running
I am also not sure that
Working through MW Lucas' "Absolute FreeBSD", in Chapter 6 "Kernel Games".
Logged in as root, seems even with my user in wheel I can't do some compile steps - that is not my issue today.
My problem: Did:
cp -a /boot/kernel /boot/kernel.good
//to backup cd /sys/amd64/conf
ee GENERIC
//Saved nothing - reading only//quit unsaved
cp GENERIC TRIAL1
ee TRIAL1
// commented out some hardware this board does not have (PCMCIA), and some it does but don' want to use right now (sound), and changed the 'ident' to 'TRIAL1'//quit and saved.
cd /usr/src
make KERNCONF=TRIAL1 buildkernel
// takes a short time but no errors make installkernel
// then errors:
Code:
$ make installkernel
--------------------------------------------------------------
>>> Install check kernel
--------------------------------------------------------------
--------------------------------------------------------------
>>> Installing kernel GENERIC on Fri Jan 1 18:34:31 GMT 2021
--------------------------------------------------------------
cd /usr/obj/usr/src/amd64.amd64/sys/GENERIC; MACHINE_ARCH=amd64 MACHINE=amd64 CPUTYPE= CC="cc -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CXX="c++ -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" CPP="cpp -target x86_64-unknown-freebsd12.1 --sysroot=/usr/obj/usr/src/amd64.amd64/tmp -B/usr/obj/usr/src/amd64.amd64/tmp/usr/bin" AS="as" AR="ar" LD="ld" LLVM_LINK="" NM=nm OBJCOPY="objcopy" RANLIB=ranlib STRINGS= SIZE="size" PATH=/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/usr/bin:/usr/obj/usr/src/amd64.amd64/tmp/legacy/bin:/usr/obj/usr/src/amd64.amd64/tmp/usr/sbin:/usr/obj/usr/src/amd64.amd64/tmp/usr/bin:/sbin:/bin:/usr/sbin:/usr/bin make KERNEL=kernel install
cd: /usr/obj/usr/src/amd64.amd64/sys/GENERIC: No such file or directory
*** Error code 2
Stop.
make[1]: stopped in /usr/src
*** Error code 1
Stop.
make: stopped in /usr/src
Diagnosing my own problem: I am in the wrong directory when running
make KERNCONF=TRIAL1 buildkernel
or in the wrong directory for make installkernel
or both. I think the second, but not sure where I would be. I am also not sure that
cp GENERIC TRIAL1
in /sys/amd64/conf is the right place to put the TRIAL1 config file. This is an 64 bit x86 celeron, So I think the architecture directory is correct. In any case the error seems to be without reference to 'TRIAL1' Just GENERIC and 'kernel'. What should I have done?