ayufan-rock64 / linux-build

Rock64 Linux build scripts, tools and instructions
MIT License
562 stars 100 forks source link

Wiki to create my own Rock64 img #230

Open jonnyfoxy opened 6 years ago

jonnyfoxy commented 6 years ago

Hi,

I would like to create my own Rock64 image build from scratch. For example, using the Ubuntu Arm Server ISO. What would be the steps to accomplish such a task?

Thanks

jonnyfoxy commented 6 years ago

Any thoughts will be appreciated.

evilbunny2008 commented 6 years ago

I wrote up a cheat sheet to customise an image

https://github.com/evilbunny2008/rock64-webgui/#manual-install

jonnyfoxy commented 6 years ago

Your example is pretty amazing!!! and will help me modifying images, regardless for what Linux img I want to create.

but I am also looking into how to make a clean install from scratch. for example using the Ubuntu server ISO and creating a .img file from it.

maybe using qemu and creating an img from it. Other option, if possible directly on the rock64 using 2 USB devices. one being the installer and the other will be the storage where the OS will be installed on. or if you have more ideas that can work some magic, would be great to learn.

Thanks

evilbunny2008 commented 6 years ago

I don't think you can use ubuntu images like that, ayufan's builds all have patches, even for the mainline kernels.

jonnyfoxy commented 6 years ago

Does he have a guide on creating them? It would be awesome to know how to do it.

mrfixit2001 commented 6 years ago

@jonnyfox - easiest way to make patches locally is by comparing two files, one original and one with the changes you want the patch to include. Type "diff -Naur (original file) (updated file) > mypatch.patch"