<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=3508&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=3508</link>
		<description><![CDATA[The most recent posts in How to start the vmlinuz-...-armmp kernel image with u-boot?.]]></description>
		<lastBuildDate>Sun, 06 Sep 2020 10:31:17 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24488#p24488</link>
			<description><![CDATA[<p>@florine:</p><p>I think, we have different approaches here. I try to build my Devuan system &quot;from scratch&quot; using multistrap. Regarding the boot process, I&#039;m attempting to start my ARM boards just like x86 hardware by letting U-Boot load Grub first so that no extra steps after upgrading the kernel will be required.</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sun, 06 Sep 2020 10:31:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24488#p24488</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=24084#p24084</link>
			<description><![CDATA[<p>my experiences with raspberry 1 and using u-boot:</p><p>1.&#160; Get <a href="https://files.devuan.org/devuan_ascii/embedded/devuan_ascii_2.0.0_armel_raspi1.img.xz" rel="nofollow">https://files.devuan.org/devuan_ascii/e … pi1.img.xz</a><br />or from<br /><a href="https://files.devuan.org/devuan_ascii.torrent" rel="nofollow">https://files.devuan.org/devuan_ascii.torrent</a></p><p>2. on raspi 1:</p><p>sudo apt-get install u-boot u-boot-rpi linux-image</p><p>sudo cp /usr/lib/u-boot/rpi/u-boot.bin /boot/</p><p>echo kernel u-boot.bin &gt;&gt; /boot/config.txt</p><p>sudo apt-get install u-boot-menu<br />sudo mkdir /boot/extlinux/; sudo touch /boot/extlinux/extlinux.conf<br />edit /etc/default/u-boot, especially U_BOOT_PARAMETERS whitch corresponds to /boot/cmdline.txt</p><p>finally:<br />sudo u-boot-update</p>]]></description>
			<author><![CDATA[dummy@example.com (florine)]]></author>
			<pubDate>Fri, 14 Aug 2020 21:18:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=24084#p24084</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=22001#p22001</link>
			<description><![CDATA[<p>After reading the following thread on the Linux Kernel mailing list and reading the thread of the GitHub issue mentioned there, it seems that the memory allocation problem is specific to the Raspberry Pi.</p><p><a href="https://lkml.org/lkml/2019/8/2/57" rel="nofollow">https://lkml.org/lkml/2019/8/2/57</a><br /><a href="https://github.com/raspberrypi/firmware/issues/1199" rel="nofollow">https://github.com/raspberrypi/firmware/issues/1199</a></p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Fri, 22 May 2020 11:47:32 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=22001#p22001</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21983#p21983</link>
			<description><![CDATA[<p>Ok, to fix the wrong UUIDs in the grub configuation, it is necessary to go into the chroot environment, mount the sd card partitions, run update-initramfs and update-grub. Make sure you mounted dev, proc and sys in the directories of your chroot environment before running the following commands on it:</p><p>First mount the SD card partitions in place of the rootfs in the chroot environment:</p><div class="codebox"><pre><code>mount /dev/SDCARDp2 /
mount /dev/SDCARDp1 /boot</code></pre></div><p>Then update the initial ramdisk:</p><div class="codebox"><pre><code>update-initramfs -u</code></pre></div><p>Then finally update-grub:</p><div class="codebox"><pre><code>update-grub</code></pre></div><p>After that, unmount the sd card partitions:</p><div class="codebox"><pre><code>umount /boot
umount /</code></pre></div><p>With these steps I was able to get a working grub configuration that is able to load the kernel and the inital ramdisk.</p><p><strong>However</strong>, the kernel won&#039;t boot because it cannot allocate memory for uncompressing itself. The messages seen on the screen for just a few miliseconds before returning to grub were:</p><div class="codebox"><pre><code>EFI stub: ERROR: Unable to allocate memory for uncompressed kernel
EFI stub: ERROR: Failed to relocate kernel</code></pre></div><p>Something is definetly missing. U-boot is acting as EFI (at least when loading grub), so maybe a module for memory management needs to be compiled into it, if u-boot is still the part that is responsible for EFI stuff after loading grub.</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Thu, 21 May 2020 14:31:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21983#p21983</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21834#p21834</link>
			<description><![CDATA[<p>Another error corrected: Do not provide any configuration file to grub-mkimage since it is executed before grub enters normal mode, as described here:</p><p><a href="https://www.gnu.org/software/grub/manual/grub/html_node/Embedded-configuration.html" rel="nofollow">https://www.gnu.org/software/grub/manua … ation.html</a></p><p>Current grub-mkimage command line:</p><div class="codebox"><pre><code>grub-mkimage -p &#039;(hd0,msdos1)/grub/&#039; -O arm-efi -o /boot/efi/boot/bootarm.efi fat ext2 probe terminal scsi ls linux elf part_msdos search normal help echo loadenv parttool boot configfile disk fdt file fshelp gfxmenu halt jpeg lsefi msdospart png reboot search_fs_file search_fs_uuid test</code></pre></div><p>Current status: Grub can read partitions now but the boot entries for the Linux kernel probably have the wrong uuids. Running update-grub in a chroot environment on the SD card with a mounted boot partition could fix this.</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sun, 17 May 2020 13:25:07 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21834#p21834</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21830#p21830</link>
			<description><![CDATA[<p>I found out why Grub is so &quot;incomplete&quot;: I included the wrong configuration file. It isn&#039;t /etc/default/grub, it&#039;s /boot/grub/grub.cfg, the config file you&#039;re no supposed to edit Now Grub is showing me the standard boot screen, bit it cannot find the kernel, probably because the UUID of the partition in the chroot environment differs from the uuid of the real partition.</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sun, 17 May 2020 12:51:06 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21830#p21830</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21828#p21828</link>
			<description><![CDATA[<p>I did not try GRUB on ARM, </p><p>btw. may be Uboot can do menus somehow? May be some forked version exists?</p><p>I would prefer to run kernel directly from Uboot, but having a menu with kernel/settings choices.</p><p>Or may be an easier boot loader exists like grub4dos for ARM? <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (bimon)]]></author>
			<pubDate>Sun, 17 May 2020 12:44:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21828#p21828</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21826#p21826</link>
			<description><![CDATA[<p>I&#039;m stuck at getting Grub working:</p><p>- Grub is loading with the minimal configuration (text mod with a few commands)<br />- Grub detects the SD card (hd0), but cannot find any partitions on it<br />- The driver for hd0 is &quot;efidisk&quot;<br />- The probe command of Grub cannot detect the partition map type or a filesystem type.<br />- I have a grub.cfg in /boot/grub.<br />- /boot/grub/grubenv exists and is filled with hash characters.</p><p>I am building the grub image using this grub-mkimage command now:</p><div class="codebox"><pre><code>grub-mkimage -p &#039;(hd0)/boot/grub&#039; -c /etc/default/grub -O arm-efi -o /boot/efi/bootarm.efi fat ext2 probe terminal scsi ls linux elf part_msdos search normal help echo loadenv parttool boot configfile disk fdt file fshelp gfxmenu halt jpeg lsefi msdospart png reboot search_fs_file search_fs_uuid</code></pre></div><p>Am I missing a grub module?</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sun, 17 May 2020 12:19:57 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21826#p21826</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21790#p21790</link>
			<description><![CDATA[<div class="quotebox"><cite>mstrohm wrote:</cite><blockquote><div><div class="quotebox"><blockquote><div><p>you can download my binary image, mount it on the main host and see how uboot config done and do something like it for yourself:</p></div></blockquote></div><p>Your image is compressed using rar. I do not have tools to extract such exotic compression formats.<br />Could you instead please just post the u-boot boot script from your image here?</p></div></blockquote></div><p>I do not have it right now on my host computer and Cubietruck is far in a boxroom.</p><p>To uncrompress rar archive you can just do following:</p><p>apt-get install rar<br />rar x archive.rar</p><p>It is in the package:<br /><a href="https://packages.debian.org/stretch/rar" rel="nofollow">https://packages.debian.org/stretch/rar</a></p>]]></description>
			<author><![CDATA[dummy@example.com (bimon)]]></author>
			<pubDate>Sat, 16 May 2020 17:50:43 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21790#p21790</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21789#p21789</link>
			<description><![CDATA[<p>Ok, for all others in this forum:</p><p>Grub can be loaded from u-boot using the automatic efi boot functionality of u-boot. After you installed the grub-efi-arm package in your RootFS (either a chroot environment or a real one), you can build a grub image almost the same way as described in the section &quot;GRUB for ARM&quot; in the following source:</p><p><a href="https://www.hellion.org.uk/blog/posts/grub-on-uboot-on-qemu/" rel="nofollow">https://www.hellion.org.uk/blog/posts/g … t-on-qemu/</a></p><p>The difference is that you use arm-efi instead of arm-uboot as the value for the O parameter of grub-mkimage to build the grub image. Modified example from the source above:</p><div class="codebox"><pre><code>grub-mkimage -p /boot/ -c $CONFIGFILE -O arm-efi -o /boot/efi-img fat ext2 probe terminal scsi ls linux elf msdospart normal help echo</code></pre></div><p>After you built it, place it in the folder efi/boot/ of your boot partition and rename the grub image to &quot;bootarm.efi&quot;. If you still have any u-boot configuration file (boot.scr.uimg) on the boot partition, remove it.</p><p>With these steps you should be able to boot into grub. This is as far as I have come so far. Once the grub configuration is present, it should be possible to boot a standard vmlinuz kernel image.</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sat, 16 May 2020 13:04:41 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21789#p21789</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21787#p21787</link>
			<description><![CDATA[<p>From all the research, it seems that Grub is necessary between the Linux kernel and u-boot.</p><p>Or is there a way to load a vmlinuz binary direcly from u-boot?</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sat, 16 May 2020 11:42:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21787#p21787</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21786#p21786</link>
			<description><![CDATA[<p>I did some more research: objcopy cannot read the file since vmlinuz files are compressed using zlib. Furthermore, they are self-extracting. There is a vmlinuz-extract script in the Linux kernel sources but it doesn&#039;t work for ARM vmlinuz images.</p><p>Sources:</p><p>- <a href="https://unix.stackexchange.com/questions/5518/what-is-the-difference-between-the-following-kernel-makefile-terms-vmlinux-vml" rel="nofollow">https://unix.stackexchange.com/question … mlinux-vml</a><br />- <a href="https://unix.stackexchange.com/questions/352215/how-do-i-extract-vmlinux-from-an-arm-image" rel="nofollow">https://unix.stackexchange.com/question … -arm-image</a></p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sat, 16 May 2020 11:37:56 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21786#p21786</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21785#p21785</link>
			<description><![CDATA[<p>In the meantime, I found these instruction in the u-boot manual to convert a vmlinuz image to an uImage:</p><p><a href="https://www.denx.de/wiki/view/DULG/HowCanICreateAnUImageFromAELFFile" rel="nofollow">https://www.denx.de/wiki/view/DULG/HowC … omAELFFile</a></p><p>The problem is that objcopy says that it doesn&#039;t recognise the file format. I tried objcopy, arm-none-eabi-objcopy and arm-linux-gnueabihf-objcopy. All three give the same message. I called objcopy like this:</p><div class="codebox"><pre><code>objcopy -O binary vmlinuz-4.19.0-9-armmp vmlinuz-4.19.0-9-armmp.bin</code></pre></div><p>The response is:</p><div class="codebox"><pre><code>objcopy:vmlinuz-4.19.0-9-armmp: file format not recognized</code></pre></div><p>Why does objcopy not recognise the format?</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sat, 16 May 2020 09:29:38 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21785#p21785</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21784#p21784</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>you can download my binary image, mount it on the main host and see how uboot config done and do something like it for yourself:</p></div></blockquote></div><p>Your image is compressed using rar. I do not have tools to extract such exotic compression formats.<br />Could you instead please just post the u-boot boot script from your image here?</p>]]></description>
			<author><![CDATA[dummy@example.com (mstrohm)]]></author>
			<pubDate>Sat, 16 May 2020 09:22:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21784#p21784</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to start the vmlinuz-...-armmp kernel image with u-boot?]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=21783#p21783</link>
			<description><![CDATA[<p>I already do not remember which kernel exactly I have used last time, I do not use ARM board right now to look at it, you can download my binary image, mount it on the main host and see how uboot config done and do something like it for yourself:</p><p><a href="https://dev1galaxy.org/viewtopic.php?id=3081" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=3081</a></p><p>May be this thread could be moved to ARM builds?</p><p>It shall contain about two partitions, you can mount binary as a loop device or dd it to a zvol, then do partprobe on that device and then you can mount its specific partition, most likely the first one which is boot.</p>]]></description>
			<author><![CDATA[dummy@example.com (bimon)]]></author>
			<pubDate>Sat, 16 May 2020 08:43:40 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=21783#p21783</guid>
		</item>
	</channel>
</rss>
