Hello,
I have installed Archlinux from os.archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz on Odroid-C2.
I have started and it work but kernel was very old: 3.16.85.
So i have removed this kernel and u-boot:
pacman -Rn linux-odroid-c2 uboot-odroid-c2
Next I have installed newest kernel and u-boot:
[2023-06-29T09:50:23+0000] [PACMAN] Running 'pacman -S linux-aarch64 uboot-odroid-c2-mainline dkms-mali-utgard-meson mali-utgard-meson-libgl-x11 xf86-video-armsoc-meson'
[2023-06-29T09:52:27+0000] [ALPM] transaction started
[2023-06-29T09:52:38+0000] [ALPM] installed linux-aarch64 (6.2.10-1)
[2023-06-29T09:52:38+0000] [ALPM] installed uboot-odroid-c2-mainline (2019.07-1)
[2023-06-29T09:52:38+0000] [ALPM-SCRIPTLET] A new U-Boot version needs to be flashed onto /dev/mmcblk0.
[2023-06-29T09:52:38+0000] [ALPM-SCRIPTLET] Do you want to do this now? [y|N]
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] BL1 fusing
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 442+0 records in
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 442+0 records out
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 442 bytes copied, 0.00222117 s, 199 kB/s
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 96+0 records in
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 96+0 records out
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 49152 bytes (49 kB, 48 KiB) copied, 0.00128768 s, 38.2 MB/s
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] u-boot fusing
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 1312+0 records in
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 1312+0 records out
[2023-06-29T09:53:02+0000] [ALPM-SCRIPTLET] 671744 bytes (672 kB, 656 KiB) copied, 0.0379879 s, 17.7 MB/s
[2023-06-29T09:53:11+0000] [ALPM] installed linux-aarch64-headers (6.2.10-1)
[2023-06-29T09:53:11+0000] [ALPM] installed libmpc (1.3.1-1)
[2023-06-29T09:53:11+0000] [ALPM] installed libisl (0.26-1)
[2023-06-29T09:53:19+0000] [ALPM] installed gcc (12.1.0-2.1)
[2023-06-29T09:53:19+0000] [ALPM] installed gc (8.2.4-1)
[2023-06-29T09:53:21+0000] [ALPM] installed guile (3.0.9-1)
[2023-06-29T09:53:21+0000] [ALPM] installed make (4.4.1-2)
[2023-06-29T09:53:21+0000] [ALPM] installed patch (2.7.6-10)
[2023-06-29T09:53:21+0000] [ALPM] installed dkms (3.0.11-1)
[2023-06-29T09:53:21+0000] [ALPM] installed dkms-mali-utgard-meson (r6p1-2)
[2023-06-29T09:53:23+0000] [ALPM-SCRIPTLET] Error! Your kernel headers for kernel 3.16.85-1-ARCH cannot be found at /usr/lib/modules/3.16.85-1-ARCH/build or /usr/lib/modules/3.16.85-1-ARCH/source.
[2023-06-29T09:53:23+0000] [ALPM-SCRIPTLET] Please install the linux-headers-3.16.85-1-ARCH package or use the --kernelsourcedir option to tell DKMS where it's located.
[2023-06-29T09:53:23+0000] [ALPM] installed libpciaccess (0.17-1)
[2023-06-29T09:53:23+0000] [ALPM] installed libdrm (2.4.115-1)
[2023-06-29T09:53:23+0000] [ALPM] installed xcb-proto (1.15.2-3)
[2023-06-29T09:53:23+0000] [ALPM] installed xorgproto (2023.2-1)
[2023-06-29T09:53:23+0000] [ALPM] installed libxdmcp (1.1.4-2)
[2023-06-29T09:53:23+0000] [ALPM] installed libxau (1.0.11-2)
[2023-06-29T09:53:24+0000] [ALPM] installed libxcb (1.15-2)
[2023-06-29T09:53:25+0000] [ALPM] installed libx11 (1.8.6-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libxext (1.3.5-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libglvnd (1.6.0-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libunwind (1.6.2-2)
[2023-06-29T09:53:25+0000] [ALPM] installed libxfixes (6.0.1-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libxdamage (1.1.6-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libxshmfence (1.3.2-1)
[2023-06-29T09:53:25+0000] [ALPM] installed libxxf86vm (1.1.5-1)
[2023-06-29T09:53:30+0000] [ALPM] installed llvm-libs (15.0.7-3)
[2023-06-29T09:53:31+0000] [ALPM] installed lm_sensors (1:3.6.0.r41.g31d1f125-2)
[2023-06-29T09:53:31+0000] [ALPM] installed vulkan-icd-loader (1.3.255-1)
[2023-06-29T09:53:31+0000] [ALPM] installed default-cursors (2-1)
[2023-06-29T09:53:31+0000] [ALPM] installed wayland (1.22.0-1)
[2023-06-29T09:53:31+0000] [ALPM] installed libomxil-bellagio (0.9.3-4)
[2023-06-29T09:53:34+0000] [ALPM] installed mesa (23.1.3-1)
[2023-06-29T09:53:34+0000] [ALPM] installed mali-utgard-meson-libgl-x11 (r6p1-1)
[2023-06-29T09:53:34+0000] [ALPM] installed xf86-video-armsoc-meson (0.5-6)
[2023-06-29T09:53:35+0000] [ALPM] transaction completed
[2023-06-29T09:53:36+0000] [ALPM] running '30-systemd-daemon-reload.hook'...
[2023-06-29T09:53:37+0000] [ALPM] running '30-systemd-udev-reload.hook'...
[2023-06-29T09:53:38+0000] [ALPM] running '30-systemd-update.hook'...
[2023-06-29T09:53:38+0000] [ALPM] running '60-depmod.hook'...
[2023-06-29T09:53:40+0000] [ALPM] running '60-linux-aarch64.hook'...
[2023-06-29T09:53:43+0000] [ALPM] running '70-dkms-install.hook'...
[2023-06-29T09:53:43+0000] [ALPM-SCRIPTLET] ==> dkms install --no-depmod mali-utgard-meson/r6p1 -k 6.2.10-1-aarch64-ARCH
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 6.2.10-1-aarch64-ARCH (aarch64)
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] Consult /var/lib/dkms/mali-utgard-meson/r6p1/build/make.log for more information.
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod mali-utgard-meson/r6p1 -k 6.2.10-1-aarch64-ARCH' exited 10
[2023-06-29T09:54:01+0000] [ALPM] running '90-linux-aarch64.hook'...
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'default'
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] -> -k 6.2.10-1-aarch64-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
[2023-06-29T09:54:01+0000] [ALPM-SCRIPTLET] ==> Starting build: '6.2.10-1-aarch64-ARCH'
[2023-06-29T09:54:02+0000] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2023-06-29T09:54:03+0000] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2023-06-29T09:54:03+0000] [ALPM-SCRIPTLET] -> Running build hook: [autodetect]
[2023-06-29T09:54:04+0000] [ALPM-SCRIPTLET] findmnt: can't read (null): Invalid argument
[2023-06-29T09:54:04+0000] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2023-06-29T09:54:04+0000] [ALPM-SCRIPTLET] -> Running build hook: [kms]
[2023-06-29T09:54:04+0000] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2023-06-29T09:54:05+0000] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2023-06-29T09:54:05+0000] [ALPM-SCRIPTLET] -> Running build hook: [consolefont]
[2023-06-29T09:54:05+0000] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2023-06-29T09:54:05+0000] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2023-06-29T09:54:07+0000] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2023-06-29T09:54:08+0000] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2023-06-29T09:54:08+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2023-06-29T09:54:08+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux.img'
[2023-06-29T09:54:12+0000] [ALPM-SCRIPTLET] ==> Image generation successful
[2023-06-29T09:54:12+0000] [ALPM-SCRIPTLET] ==> Building image from preset: /etc/mkinitcpio.d/linux-aarch64.preset: 'fallback'
[2023-06-29T09:54:12+0000] [ALPM-SCRIPTLET] ==> Using configuration file: '/etc/mkinitcpio.conf'
[2023-06-29T09:54:12+0000] [ALPM-SCRIPTLET] -> -k 6.2.10-1-aarch64-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
[2023-06-29T09:54:12+0000] [ALPM-SCRIPTLET] ==> Starting build: '6.2.10-1-aarch64-ARCH'
[2023-06-29T09:54:13+0000] [ALPM-SCRIPTLET] -> Running build hook: [base]
[2023-06-29T09:54:14+0000] [ALPM-SCRIPTLET] -> Running build hook: [udev]
[2023-06-29T09:54:15+0000] [ALPM-SCRIPTLET] -> Running build hook: [modconf]
[2023-06-29T09:54:15+0000] [ALPM-SCRIPTLET] -> Running build hook: [kms]
[2023-06-29T09:54:15+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'msm'
[2023-06-29T09:54:30+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'ast'
[2023-06-29T09:54:34+0000] [ALPM-SCRIPTLET] -> Running build hook: [keyboard]
[2023-06-29T09:54:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [keymap]
[2023-06-29T09:54:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [consolefont]
[2023-06-29T09:54:36+0000] [ALPM-SCRIPTLET] ==> WARNING: consolefont: no font found in configuration
[2023-06-29T09:54:36+0000] [ALPM-SCRIPTLET] -> Running build hook: [block]
[2023-06-29T09:54:37+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'qla1280'
[2023-06-29T09:54:37+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'wd719x'
[2023-06-29T09:54:37+0000] [ALPM-SCRIPTLET] ==> WARNING: Possibly missing firmware for module: 'qla2xxx'
[2023-06-29T09:54:40+0000] [ALPM-SCRIPTLET] -> Running build hook: [filesystems]
[2023-06-29T09:54:41+0000] [ALPM-SCRIPTLET] -> Running build hook: [fsck]
[2023-06-29T09:54:45+0000] [ALPM-SCRIPTLET] ==> Generating module dependencies
[2023-06-29T09:54:45+0000] [ALPM-SCRIPTLET] ==> Creating gzip-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
[2023-06-29T09:55:09+0000] [ALPM-SCRIPTLET] ==> Image generation successful
I have configured Ethernet in /etc/systemd/network/eth.network:
[Match]
Name=e*
[Network]
DNSSEC=no
Address=192.168.0.11/24
In /boot/boot.txt I have replaced line:
setenv bootargs "console=ttyAML0,115200n8 root=PARTUUID=${uuid} rw rootwait earlycon
with:
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=custombuilt modeline=1920,1080,148500,67500,60,1920,2008,2052,2200,1080,1084,1089,1125,1,1,1 m_bpp=32 vout=hdmi fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true max_freq=1536 maxcpus=4 monitor_onoff=false disableuhs=false mmc_removable=true usbmulticam=false"
which I have got from /proc/cmdline from old kernel.
Full file /boot/boot.txt:
# After modifying, run ./mkscr
test -n "${distro_bootpart}" || setenv distro_bootpart 1
part uuid ${devtype} ${devnum}:${distro_bootpart} uuid
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=custombuilt modeline=1920,1080,148500,67500,60,1920,2008,2052,2200,1080,1084,1089,1125,1,1,1 m_bpp=32 vout=hdmi fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true max_freq=1536 maxcpus=4 monitor_onoff=false disableuhs=false mmc_removable=true usbmulticam=false"
if load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} /boot/Image; then
if load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} /boot/dtbs/${fdtfile}; then
if load ${devtype} ${devnum}:${distro_bootpart} ${ramdisk_addr_r} /boot/initramfs-linux.img; then
booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
else
booti ${kernel_addr_r} - ${fdt_addr_r};
fi;
fi;
fi
I have run ./mkscr in /boot and poweroff device.
After power on Odroid did not start. No HDMI output. No ping to 192.168.0.11. Can't connect to SSH.
What should I do to fix this?