making an iso from kernel

This forum is for topics dealing with problems with software specifically in the AArch64 repo.

making an iso from kernel

Postby beginner_arch_User » Tue Nov 12, 2024 5:45 pm

i am facing file system error . whenever i try to make iso from kernel downloaded from this linkmake_clickable_callback(MAGIC_URL_FULL, ' ', 'http://os.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz', '', ' class="postlink"')
beginner_arch_User
 
Posts: 1
Joined: Tue Nov 12, 2024 2:11 pm

Re: making an iso from kernel

Postby solskogen » Wed Nov 13, 2024 12:05 pm

What do you mean? What are you trying to achieve? What commands are you getting and what error are you getting?
solskogen
 
Posts: 215
Joined: Mon Nov 18, 2013 10:41 am

Re: making an iso from kernel

Postby mrtux » Mon Nov 18, 2024 8:03 pm

I got your PM. Can you post your exact commands being used or the contents of your script file if that is what you are using to build this. I am assuming you are trying to download and compile a kernel? If that is the case, you do not need to be creating an ISO image of the kernel files. If all you are after building the latest kernel, I can provide you with a PKGBUILD file I used to use to build the aarch64 kernel. Please provide more detail on exactly what your needs are, otherwise it will be very difficult to understand what you are doing and provide any meaningful help.
mrtux
 
Posts: 37
Joined: Wed Aug 12, 2020 4:06 am

Re: making an iso from kernel

Postby mrtux » Tue Nov 19, 2024 3:22 am

[quote="beginner_arch_User"]no sir i never done that , like compiling a kernel and make it into iso. and youtube don't have proper organized video about it. can you tell me how you make iso from it [linux-aarch64-6.12-1-aarch64.pkg.tar.xz] . or you have any different way?[/quote]

Why are you trying to turn it into an iso? The common way would be downloading a tar.xz or tar.gz file from kernel.org depending on whether you are building a stable or mainline build, afterwards, you would create a directory, place the downloaded kernel file there, extract it, add your kernel config file (if you are wanting to start with the default arch config, you can grab it by doing zcat /proc/config.gz > *your-kernel-building-directory*) afterwards you can follow these steps [url]https://wiki.archlinux.org/title/Kernel/Traditional_compilation[/url]

The best way to do all of this on Arch Linux is with a PKGBUILD file. Doing so will use Arch's built in package building system using makepkg. After setting up your PKGBUILD, you will add in your config file, and run makepkg, this will build the kernel and place it into Arch installable packages that will make it very easy to install, uninstall, and upgrade. They can then be installed alongside of the default linux package Arch supplies. This would be my recommended method for you to follow, as it is far less troublesome and does not require manually keeping track of your kernel. Is this your goal? Building a custom version of the linux kernel? If so, I can provide you with a PKGBUILD that will be easy to modify to your needs, such as changing the kernel name, kernel version, and presumably more importantly, your kernel configuration, assuming you are doing this to either, slim down your kernel for only needed modules, add support for non-standard devices etc that are not included with there kernel by default, or change the kernel HZ, or if you are trying to build a realtime kernel for multimedia etc. If this is not your goal, please help me understand better what you are trying to accomplish, and please do share what exactly you are passing as commands. I don't quite understand what your goal is here, but I am happy to help you if I am able to.
And please also tell me if you are trying to do this from a ARM device, or if you are going to be building this from a x86 machine FOR an ARM device, as your build tools will need to be in place to cross-compile. Please ensure you install the necessary base-devel package for building packages.
Last edited by mrtux on Tue Nov 19, 2024 3:56 am, edited 1 time in total.
mrtux
 
Posts: 37
Joined: Wed Aug 12, 2020 4:06 am

Re: making an iso from kernel

Postby mrtux » Tue Nov 19, 2024 3:28 am

I have reviewed your initial post again, and besides you mentioning you are trying to make an ISO from the kernel image, it appears to me you are trying to extract the arch install from the latest release (ArchLinuxARM-aarch64-latest.tar.gz)

For this, you are not going to be creating an ISO. You are going to be extracting all of these files directly to your device, as an example:
If you were using an external solid state drive for your ARM device (be it raspberry pi or whichever) you would connect the device to your computer, partition it to have 1 partition at least 512mb for boot, and the remaining EXT4 (or whichever filesystem you prefer to use) Now you would mount that drive to say /mnt/*partition2root and /mnt/*partition1boot
then after downloading the latest package you posted the link for, assuming it is in your downloads folder, via a terminal
bsdtar -xpf ~/Downloads/ArchLinuxARM-aarch64-latest.tar.gz -C /mnt/*partition2root*
Afterwards, move the boot folder from /mnt/*partition2root to /mnt/parition1boot. edit the /mnt/*partition2root/etc/fstab file and point it to the correct drives you are working with (use lsblk/blkid and the UUID or PARTUUIDs)
You may also need to install and configure uboot or something similar depending on the device you are working with. You will need to provide more complete information if this is the case, as it will be the only way to help you further with the actual booting process, but this should hopefully explain what to do with the arch install. after you are finished, you should boot to a basic preconfigured arch system, and you can continue by setting up your userland stuff, user pkgs etc.

If this is outside the scope of what you feel you understand and are willing to do, you could try the manjaro version for your device as it will be a more complete installation and a little easier for you to accomplish. With those, you will write the image file directly to your device and afterwards, it will be ready to boot. The Arch provided approch does say it is intended for developers that know their system and can handle the boot-related requirements. If you follow my steps, it should get you close to a bootable system, depending on the device you are working with and what it needs to be able to boot the kernel file. The raspberrypi 4 for example, still to this day, needs uboot setup to point the bootloader to the kernel to load, again, this depends on the device you are working with. I do not use my RPI4 at all these days, and do not still use an ARM device, but I do still have the PKGBUILDS and can help you with building a custom kernel if that is actually what you are after. ( I still don't know what exactly you are trying to accomplish )
mrtux
 
Posts: 37
Joined: Wed Aug 12, 2020 4:06 am

Re: making an iso from kernel

Postby mrtux » Tue Nov 19, 2024 6:33 am

[quote="beginner_arch_User"]I really appreciate you taking the time to explain all of this to someone a collage student like me.


it's not every day I get to learn from an expert. Honestly, I’m kind of excited to dive into this. What I’m looking to do is build a custom ISO, kind of like what Archboot did for macOS. I’ve used some distros like BlackArch and Archcraft out there, all based on Arch, and I’d love to create a stable Arch-based distro that can be installed on my MacBook. Something with that same kind of thing like archboot have made. all other streamlined, flexible feel, but tailored for Intel or AMD computers.

I know I’ve got a lot to learn, and I’m hoping you can point me in the right direction. Think of me as a student, trying to get this right[/quote]

Oh okay, that is not even close to what I thought you were trying to do. You don't want to ask by saying kernel image. The kernel is not related to what you are trying to do here. You can find the information you are looking for here: [url]https://wiki.archlinux.org/title/Archiso[/url]

Mod please close this topic. I have provided the link to the Archiso information this user is looking for, and his post is misleading for what he is actually trying to do. Enclosed are PM's sent to me and the information i responded with.
mrtux
 
Posts: 37
Joined: Wed Aug 12, 2020 4:06 am


Return to ARMv8

Who is online

Users browsing this forum: No registered users and 60 guests