Use Fenix scripts to build your own ubuntu image


#61

Hi Oleg,

Yes.When you setup the enviromment, you have choose server or mate, so it’s not necessary to specify again.


#62

Hi there,

i am trying to Build Ubuntu Server 16 with EMMC support, but I am unable to burn this image.
Also there seems like a missing ln-s in fenix.

#KHADAS_BOARD=VIM
#LINUX=mainline
#UBOOT=2015.01
#UBUNTU=16.04.2
#UBUNTU_ARCH=arm64
#INSTALL_TYPE=EMMC

For Building this image I had to add in /scripts/create_image.sh the line 610 with ln -s ~/project/khadas/ubuntu/build/images/linux-mainline/meson-gxl-s905x-khadas-vim.dtb kvim.dtb

looks like:

case “$LINUX” in
4.9)
ln -s …/…/linux/arch/arm64/boot/dts/amlogic/$LINUX_DTB kvim.dtb
;;
3.14)
ln -s …/…/linux/arch/arm64/boot/dts/$LINUX_DTB kvim.dtb
;;
mainline)
ln -s ~/project/khadas/ubuntu/build/images/linux-mainline/meson-gxl-s905x-khadas-vim.dtb kvim.dtb
;;
*)
error_msg $CURRENT_FILE $LINENO "Unsupported linux version:$LINUX"
ret=-1
esac

cd -

return $ret

Furthermore I had to increase the rootfs/image size to 1200MB, but I am unable to burn this image to my Khadas VIm1, and I dont know why. I dont get any errors on my build.

Build Image ist here: http://ovh.to/NnGVV5P

Can someone point my to a solution?


#63

Hi tavoc,

Mainline linux doesn’t support eMMC installation now.


#64

one solution to be able to flash to emmc a mainline kernel based Ubuntu is to go back to 4.13 and apply known and working patches.
but a few hardware are still unsupported back then!


#65

Thanks for your answer.
Is there a idea if or when emmc support will be added to mainline?

I thought that only with mainline uboot there is no emmc, therefore i tried to use the 2015-Version.


#66

supporting a particular emmc on a specific board is difficult to request from the mainline linux kernel (which adresses thousands of boards), so it could only be supported thru patches to apply to mainline C code


#67

I have 2 problems trying to install/run this on my VIM2:

First:

recommends install lib32stdc++6 - I could find no such package (there are a whole bunch with architecture suffix such as mips, armhf etc). Anyway I tried to proceed without installing lib32stdc++6

Second:
(not sure if a consequence of the first) - things go OK till

#
# configuration written to .config
#
make[1]: Leaving directory '/home/chris/bin/ProjectKhadas/fenix/u-boot'
make[1]: Entering directory '/home/chris/bin/ProjectKhadas/fenix/u-boot'
/lib/ld-linux.so.2: No such file or directory
/lib/ld-linux.so.2: No such file or directory
dirname: missing operand
Try 'dirname --help' for more information.
  GEN     ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/config.h
  UPD     include/config.h
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
/lib/ld-linux.so.2: No such file or directory
/lib/ld-linux.so.2: No such file or directory
../scripts/Makefile.autoconf:40: recipe for target 'include/autoconf.mk.dep' failed
make[4]: *** [include/autoconf.mk.dep] Error 1
make[4]: *** Waiting for unfinished jobs....
../scripts/Makefile.autoconf:64: recipe for target 'include/autoconf.mk' failed
make[4]: *** [include/autoconf.mk] Error 1
../Makefile:477: recipe for target 'silentoldconfig' failed
make[3]: *** [silentoldconfig] Error 1
make[2]: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'.  Stop.
Makefile:147: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/chris/bin/ProjectKhadas/fenix/u-boot'
Cleanup...
Makefile:7: recipe for target 'all' failed
make: *** [all] Error 2

I have never compiled a kernel before and my scripts rarely exceed 5 lines so am unable to debug this too much further myself.

Ta