¶2023-08-22
- odroid-hc4 Kernel Compile
- Native Compile - ODROID-HC4/Ubuntu
- What Is Gentoo Linux and How to Install It
¶ 2.
(chroot) hc4Bookworm /usr/src # emerge sys-kernel/gentoo-sources
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
Dependency resolution took 6.23 s.
>>> Verifying ebuild manifests
>>> Emerging (1 of 5) dev-libs/elfutils-0.189-r1::gentoo
* Fetching files in the background.
* To view fetch progress, run in another terminal:
* tail -f /var/log/emerge-fetch.log
(chroot) hc4Bookworm /usr/src/linux-6.1.41-gentoo # cp ../linux-odroid-hc4/arch/arm64/configs/odroidg12_defconfig .config
(chroot) hc4Bookworm /usr/src/linux-6.1.41-gentoo # make menuconfig
(chroot) hc4Bookworm /usr/src/linux-6.1.41-gentoo # make -j4
(chroot) hc4Bookworm /usr/src/linux-6.1.41-gentoo # ls -l arch/arm64/boot/
total 33752
-rw-r--r-- 1 root root 25586176 Aug 22 15:18 Image
-rw-r--r-- 1 root root 9093343 Aug 22 15:19 Image.gz
-rw-r--r-- 1 root root 1198 Aug 22 12:32 Makefile
drwxr-xr-x 35 root root 4096 Aug 22 12:43 dts
-rwxr-xr-x 1 root root 962 Aug 22 12:32 install.sh
(chroot) hc4Bookworm /usr/src/linux-6.1.41-gentoo # make modules_install
&pars; 2. Native Compile - ODROID-HC4/Ubuntu
(chroot) hc4Bookworm / # cd /usr/src/
(chroot) hc4Bookworm /usr/src # git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidg12-4.9.y
(chroot) hc4Bookworm /usr/src # ls
linux
(chroot) hc4Bookworm /usr/src # cd linux/
(chroot) hc4Bookworm /usr/src/linux # make odroidg12_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
(chroot) hc4Bookworm /usr/src/linux # make -j4
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:337: fs/logfs/readwrite.o] Error 1
make[2]: *** Waiting for unfinished jobs....
CC [M] fs/lockd/clnt4xdr.o
CC [M] fs/lockd/xdr4.o
make[1]: *** [scripts/Makefile.build:651: fs/logfs] Error 2
make[1]: *** Waiting for unfinished jobs....
CC [M] fs/lockd/svc4proc.o
CC [M] fs/lockd/procfs.o
LD [M] fs/lockd/lockd.o
make: *** [Makefile:1102: fs] Error 2
(chroot) hc4Bookworm /usr/src/linux # cd ..
(chroot) hc4Bookworm /usr/src # mv linux/ linux-odroid-hc4
(chroot) hc4Bookworm /usr/src/linux # git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidg12-4.9.y
(chroot) hc4Bookworm /usr/src # cd linux
(chroot) hc4Bookworm /usr/src/linux # make odroidg12_defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
#
# configuration written to .config
#
(chroot) hc4Bookworm /usr/src/linux # make -j4
..
fs/logfs/readwrite.c:1282:21: error: the comparison will always evaluate as ‘true’ for the address of ‘alias_map’ will never be NULL [-Werror=address]
1282 | if (block->alias_map)
| ^~~~~
In file included from fs/logfs/readwrite.c:19:
fs/logfs/logfs.h:304:23: note: ‘alias_map’ declared here
304 | unsigned long alias_map[LOGFS_BLOCK_FACTOR / BITS_PER_LONG];
| ^~~~~~~~~
CC [M] fs/logfs/segment.o
CC [M] fs/jfs/jfs_uniupr.o
CC [M] fs/jfs/resize.o
CC [M] fs/ncpfs/file.o
CC [M] fs/jfs/xattr.o
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:337: fs/logfs/readwrite.o] Error 1
make[1]: *** [scripts/Makefile.build:651: fs/logfs] Error 2
make[1]: *** Waiting for unfinished jobs....
CC [M] fs/jfs/ioctl.o
CC [M] fs/jfs/acl.o
CC [M] fs/ncpfs/inode.o
CC [M] fs/ncpfs/ioctl.o
CC [M] fs/ncpfs/mmap.o
LD [M] fs/jfs/jfs.o
CC [M] fs/ncpfs/ncplib_kernel.o
CC [M] fs/ncpfs/sock.o
CC [M] fs/ncpfs/ncpsign_kernel.o
CC [M] fs/ncpfs/getopt.o
CC [M] fs/ncpfs/symlink.o
LD [M] fs/ncpfs/ncpfs.o
make: *** [Makefile:1102: fs] Error 2
¶1. install git
(chroot) hc4Bookworm / # emerge --search git
(chroot) hc4Bookworm / # emerge git
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies -
[ Results for search key : git ]
* acct-group/git
Latest version available: 0-r2
Latest version installed: [ Not Installed ]
Size of files: 0 KiB
Homepage:
Description: System group: git
License:
* acct-user/git
Latest version available: 0-r3
Latest version installed: [ Not Installed ]
Size of files: 0 KiB
Homepage:
Description: Git repository hosting user
License:
* dev-ruby/git [ Masked ]
Latest version available: 1.18.0
Latest version installed: [ Not Installed ]
Size of files: 172 KiB
Homepage: https://github.com/ruby-git/ruby-git
Description: Library for using Git in Ruby
License: MIT
/* dev-vcs/git
Latest version available: 2.41.0
Latest version installed: [ Not Installed ]
Size of files: 7655 KiB
Homepage: https://www.git-scm.com/
Description: Stupid content tracker: distributed VCS designed for speed and efficiency
License: GPL-2
[ Applications found : 8 ]
!!! The short ebuild name "git" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.
... done!
Dependency resolution took 6.01 s.
(chroot) hc4Bookworm / # emerge --sync
>>> Syncing repository 'gentoo' into '/var/db/repos/gentoo'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://216.194.64.133/gentoo-portage...
>>> Checking server timestamp ...
mirrors.tera-byte.com
receiving incremental file list
timestamp.chk
Number of files: 1 (reg: 1)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 1
Total file size: 32 bytes
Total transferred file size: 32 bytes
Literal data: 32 bytes
Matched data: 0 bytes
File list size: 41
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 104
Total bytes received: 127
sent 104 bytes received 127 bytes 51.33 bytes/sec
total size is 32 speedup is 0.14
mirrors.tera-byte.com
receiving incremental file list
deleting gentoo-20230821.tar.xz.md5sum
deleting gentoo-20230821.tar.xz.gpgsig
Manifest
Manifest.files.gz
app-admin/Manifest.gz
...
re-secrets/no-more-secrets-9999.ebuild
deleting app-text/capyt/capyt-1.1.1.ebuild
....
sent 33.46K bytes received 6.71M bytes 72.07K bytes/sec
total size is 192.42M speedup is 28.55
* Manifest timestamp: 2023-08-22 10:09:44 UTC
* Valid OpenPGP signature found:
* - primary key: DCD05B71EAB94199527F44ACDB6B8C1F96D8BF6D
* - subkey: E1D6ABB63BFCFB4BA02FDF1CEC590EEAC9189250
* - timestamp: 2023-08-22 10:09:44 UTC
* Verifying /var/db/repos/gentoo/.tmp-unverified-download-quarantine ... [ ok ]
=== Sync completed for gentoo
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Action: sync for repo: gentoo, returned code = 0
(chroot) hc4Bookworm / # which git
which: no git in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin)
(chroot) hc4Bookworm / # emerge --update --deep --newuse --ask --verbose @world
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 26.68 s.
Total: 0 packages, Size of downloads: 0 KiB
Nothing to merge; quitting.
(chroot) hc4Bookworm / # emerge git
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies |
[ Results for search key : git ]
* acct-group/git
Latest version available: 0-r2
Latest version installed: [ Not Installed ]
Size of files: 0 KiB
Homepage:
Description: System group: git
License:
* acct-user/git
Latest version available: 0-r3
Latest version installed: [ Not Installed ]
Size of files: 0 KiB
Homepage:
Description: Git repository hosting user
License:
* dev-ruby/git [ Masked ]
Latest version available: 1.18.0
Latest version installed: [ Not Installed ]
Size of files: 172 KiB
Homepage: https://github.com/ruby-git/ruby-git
Description: Library for using Git in Ruby
License: MIT
/* dev-vcs/git
Latest version available: 2.41.0
Latest version installed: [ Not Installed ]
Size of files: 7655 KiB
Homepage: https://www.git-scm.com/
Description: Stupid content tracker: distributed VCS designed for speed and efficiency
License: GPL-2
[ Applications found : 8 ]
!!! The short ebuild name "git" is ambiguous. Please specify
!!! one of the above fully-qualified ebuild names instead.
... done!
Dependency resolution took 4.56 s.
(chroot) hc4Bookworm / # emerge dev-vcs/git
>>> Recording dev-vcs/git in "world" favorites file...
>>> Completed (14 of 14) dev-vcs/git-2.41.0::gentoo
* Messages for package dev-vcs/git-2.41.0:
* Please read /usr/share/bash-completion/completions/git for Git bash command
* completion.
* Please read /usr/share/git/git-prompt.sh for Git bash prompt
* Note that the prompt bash code is now in that separate script
* Some scripts require additional dependencies:
* dev-util/quilt for git-quiltimport
* www-servers/lighttpd for git-instaweb
* www-servers/apache for git-instaweb
* www-servers/nginx for git-instaweb
* GNU info directory index is up-to-date.
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
(chroot) hc4Bookworm / # which git
/usr/bin/git
(chroot) hc4Bookworm / # emerge dev-vcs/git
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
Calculating dependencies... done!
Dependency resolution took 5.16 s.
>>> Verifying ebuild manifests
>>> Emerging (1 of 14) virtual/perl-Digest-MD5-2.580.0-r1::gentoo
* Fetching files in the background.
* To view fetch progress, run in another terminal:
* tail -f /var/log/emerge-fetch.log
>>> Unpacking source...
>>> Source unpacked in /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/work
>>> Preparing source in /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/work ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/work ...
>>> Source compiled.
>>> Test phase [not enabled]: virtual/perl-Digest-MD5-2.580.0-r1
>>> Install virtual/perl-Digest-MD5-2.580.0-r1 into /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/image
>>> Completed installing virtual/perl-Digest-MD5-2.580.0-r1 into /var/tmp/portage/virtual/perl-Digest-MD5-2.580.0-r1/image
* Final size of build directory: 4 KiB
* Final size of installed tree: 4 KiB
>>> Installing (1 of 14) virtual/perl-Digest-MD5-2.580.0-r1::gentoo
....
(chroot) hc4Bookworm / # emerge --update --deep --newuse --ask --verbose @world
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 26.68 s.
Total: 0 packages, Size of downloads: 0 KiB
Nothing to merge; quitting.