I just upload the new Fenix repo on Khadas Github, this is automate scripts we used to build and release Ubuntu ROMs.
As we haven’t done all the necessary works, so just for reference first. We will keep the fenix repo updated in the next few days, and basically, you can refer following scripts first:
scripts/server.sh
archives/filesystem/RUNME.sh
Two steps to build Ubuntu server ROM:
Run make command on Host:
$ make server
Run RUNME.sh script on Chroot:
# ./RUNME.sh
Note that to use fenix scripts, you need download all the necessary repos (like linux, utils) by manually first.
Also thanks to mmeyer, I found some information she/he posted that filled in a few more gaps. I have just completed my first image! (without drivers for Mali wifi I presume).
I will now have a look at the script you have posted.
I think I might write up a howto also, once I have got my head around it. Best way to learn and remember!
thanks !
regarding archives/ubuntu-base/ubuntu-base-16.04.2-base-arm64.tar.gz
and [quote=“Gouwa, post:5, topic:828, full:true”]
…
Note that to use fenix scripts, you need download all the necessary repos (like linux, utils) by manually first.
[/quote]
where can we find this ubuntu 16.04 precompiled tar file for arm64 ?
cd ~/project/khadas/ubuntu/scripts
./clean.sh
./server.sh
All this is copy/paste from my notes and off my head (I just had a monumental HDD failure, and am rebuilding). Let me know if it doesnt work or I missed a step, I’ll make an amendment.
Hmmm… This seems to only work for server images, however the makefile shows other images as well. And ofcourse there are the mali binaries. So the obvious question is, how do i build an ubuntu mate image with mali drivers.
Correct,
Hopefully we see the scripts for making the ubunt-mate image soon also.
I got to having an Xserver running, and mate installed. But still lots more to do.
Perhaps @gouwa can post the other scripts in due course.
The only major changes will be what is in the RUNME.sh script I would imagine.
One item that might not “work” is blueman. However… If you install it during the RUNME script, it will be okay (error that it didnt configure). But at first apt-get when booted, it will then configure itself.
I have a script that essentially builds a ubuntu-mate based on fenix.
I will post it shortly once I tidy it up. However - I cannot seem to get wifi to be recognised at this stage, looking into it.
ok, as my previous attempts did more or less fail while following the other published howTos, I today give your walkthrough instructions a try, I’ll let everybody know the result below… wish me luck
and I get another error at the end when I exit the chroot session…
root@bodhi-giada:/# exit
exit
cp: cannot stat ‘rootfs/boot/initrd.img’: No such file or directory
error: could not load ramdisk 'images/initrd.img'
rm: cannot remove ‘rootfs/boot/initrd.img’: No such file or directory
[Msg]Pack Item[USB , DDR] from (images/upgrade/u-boot.bin.usb.bl2),sz[0xc000]B,
[Msg]Pack Item[USB , UBOOT] from (images/upgrade/u-boot.bin.usb.tpl),sz[0xd4000]B,ft[normal]
[Msg]Pack Item[UBOOT , aml_sdc_burn] from (images/upgrade/u-boot.bin.sd.bin),sz[0xe0200]B,ft[normal]
[Msg]Pack Item[ini , aml_sdc_burn] from (images/upgrade/aml_sdc_burn.ini),sz[0x24d]B,
[Msg]Pack Item[PARTITION , bootloader] from (images/upgrade/u-boot.bin),sz[0xe0000]B,ft[normal]
[Msg]Pack Item[VERIFY , bootloader] from (images/upgrade/u-boot.bin),vry[sha1sum 1a8bde91fe7e4f4f807692e3f7d907d86d1ac5ce]
[Msg]Pack Item[PARTITION , logo] from (images/upgrade/logo.img),[ERR]f(AmlImagePack.cpp)L1332:failed to open source file : images/upgrade/logo.img
Image pack FAILED
Done.
Something definitely went wrong; I cannot say yet that the info from @Tang73 were enough for me to succeed !
NOTE: YOU ARE NOW IN THE VIRTUAL TARGET, SETUP ANYTHING YOU WANT.
TYPE ‘exit’ TO CONTINUE IF FINISHED.
mount: mount point rootfs/proc does not exist
mount: mount point rootfs/sys does not exist
mount: mount point rootfs/dev does not exist
mount: mount point rootfs/dev/pts does not exist
chroot: failed to run command ‘/bin/bash’: No such file or directory
cp: cannot stat ‘rootfs/boot/initrd.img’: No such file or directory
error: could not load ramdisk 'images/initrd.img’
rm: cannot remove ‘rootfs/boot/initrd.img’: No such file or directory
umount: rootfs/dev/pts: not found
umount: rootfs/dev: not found
umount: rootfs/proc: not found
umount: rootfs/sys: not found
[Msg]Pack Item[USB , DDR] from (images/upgrade/u-boot.bin.usb.bl2),sz[0xc000]B,
[Msg]Pack Item[USB , UBOOT] from (images/upgrade/u-boot.bin.usb.tpl),sz[0xd4000]B,ft[normal]
[Msg]Pack Item[UBOOT , aml_sdc_burn] from (images/upgrade/u-boot.bin.sd.bin),sz[0xe0200]B,ft[normal]
[Msg]Pack Item[ini , aml_sdc_burn] from (images/upgrade/aml_sdc_burn.ini),sz[0x24d]B,
[Msg]Pack Item[PARTITION , bootloader] from (images/upgrade/u-boot.bin),sz[0xe0000]B,ft[normal]
[Msg]Pack Item[VERIFY , bootloader] from (images/upgrade/u-boot.bin),vry[sha1sum 13ff70bcbb0b2ac7367305656f0e6df58d2475f1]
[Msg]Pack Item[PARTITION , logo] from (images/upgrade/logo.img),[ERR]f(AmlImagePack.cpp)L1332:failed to open source file : images/upgrade/logo.img
Image pack FAILED
Did you run RUNME.sh successfully in chroot? It seems that rootfs/boot/initrd.img which created by command mkinitramfs -o /boot/initrd.img cat linux-version 2>/dev/null in script RUNME.sh does not exist.