This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Trying to install a Linux kernel patched to run qemu and kvm on the Samsung XE303C12-A01US Chromebook...Episode 2

Hello.

A lot of years ago I bought the Samsung XE303C12-A01US Chromebook. I played with it on 2013 and then it remained on the shelf until today. I would like to install and boot a linux distro through the sd card that has a kernel that supports qemu and kvm. I've found this old tutorial :

http://www.virtualopensystems.com/en/solutions/guides/kvm-on-chromebook/

and my host os is Linux Ubuntu 22.04. These are the commands issued based on the tutorial :

# apt-get install build-essential git u-boot-tools qemu-user-static gdisk cgpt libncurses5-dev flex bison vboot-kernel-utils debootstrap gcc-arm-linux-gnueabihf

# wget www.virtualopensystems.com/.../uImage

# wget www.virtualopensystems.com/.../guest_zImage

# wget www.virtualopensystems.com/.../exynos5250-snow.dtb

# wget www.virtualopensystems.com/.../rtsm_ve-cortex_a15x1.dtb

# git clone git://github.com/virtualopensystems/linux-kvm-arm.git

# cd linux-kvm-arm

# git checkout origin/chromebook-3.13 -b chromebook-3.13

# curl www.virtualopensystems.com/.../config > .config

# ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make uImage dtbs -j4
 
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  HOSTCC  scripts/conmakehash
  CC      scripts/mod/empty.o
  HOSTLD  scripts/dtc/dtc
/usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x50): multiple definition of `yylloc'; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): first defined here
  CC      scripts/mod/devicetable-offsets.s
In file included from include/linux/compiler.h:54,
                 from include/uapi/linux/stddef.h:1,
                 from include/linux/stddef.h:4,
                 from /home/ziomario/Scrivania/chromebook/linux-kvm-arm/include/uapi/linux/posix_types.h:4,
                 from include/uapi/linux/types.h:13,
                 from include/linux/types.h:5,
                 from include/linux/mod_devicetable.h:11,
                 from scripts/mod/devicetable-offsets.c:2:
include/linux/compiler-gcc.h:103:1: fatal error: linux/compiler-gcc11.h: File or directory not found
  103 | #include gcc_header(__GNUC__)
      | ^~~~~
compilation terminated.