From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [PATCH 4/7] Support for ARM/U-Boot platforms
Date: Mon, 01 Apr 2013 04:15:03 +0200 [thread overview]
Message-ID: <5158EDA7.2040906@gmail.com> (raw)
In-Reply-To: <CAF7UmSwm_MMp7Kw4+ozEt4TNQRNTydBFoG_FSA2GuK5ZMSjF2A@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1992 bytes --]
Which architecture is raspberry pie? I have one here and it would be
good if I could use it for testing.
> +#define GRUB_KERNEL_MACHINE_STACK_SIZE 0x40000
> +#define GRUB_KERNEL_MACHINE_HEAP_SIZE (grub_size_t) (2 * 1024 * 1024)
Why so small heap?
> === modified file 'util/grub-install.in'
> --- util/grub-install.in 2013-01-27 15:17:21 +0000
> +++ util/grub-install.in 2013-03-24 13:03:31 +0000
> @@ -319,6 +319,8 @@
> target=i386-pc
> fi
> ;;
> + x"arm"*)
> + target="arm-uboot";;
> *)
> gettext "Unable to determine your platform. Use --target." ;
> echo ;;
> @@ -338,7 +340,7 @@
> if [ x$disk_module = xunspecified ]; then
> disk_module=biosdisk
> fi
> -elif [ "${grub_modinfo_platform}" = "ieee1275" ] || [ "${grub_modinfo_platform}" = "efi" ] || [ "${grub_modinfo_platform}" = "arc" ] ; then
> +elif [ "${grub_modinfo_platform}" = "ieee1275" ] || [ "${grub_modinfo_platform}" = "efi" ] || [ "${grub_modinfo_platform}" = "arc" ] || [ "${grub_modinfo_platform}" = "uboot" ] ; then
> disk_module=
> else
> disk_module=native
> @@ -854,6 +856,14 @@
> -L "$bootloader_id" -l "\\EFI\\$efi_distributor\\$efi_file"
> fi
> fi
> +elif [ x"${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = xarm-uboot ]; then
> + grub_imgname="${grubdir}/${grub_modinfo_target_cpu}-$grub_modinfo_platform/core.${imgext}"
> + raw_imgname="${uboot_imgname}.raw"
Where is uboot_imgname set?
> + mv "$grub_imgname" "$raw_imgname"
> + mkimage -T kernel -A ARM -O Linux -a 0x08000000 -e 0x08000000 -C none -d "$raw_imgname" "$grub_imgname"
Is it from uboot? You need to check for its availability
> @@ -1687,6 +1707,9 @@
> core_size = program_size + header_size + footer_size;
> }
> break;
> + case IMAGE_UBOOT:
> + /* Raw image, header added by grub-install */
> + break;
What is this additional header? Is it just ELF? Why not use ELF codepath?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
next prev parent reply other threads:[~2013-04-01 2:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 17:01 [PATCH 4/7] Support for ARM/U-Boot platforms Leif Lindholm
2013-04-01 2:15 ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2013-04-01 9:53 ` Francesco Lavra
2013-04-01 11:24 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-01 14:29 ` Francesco Lavra
2013-04-03 10:29 ` Leif Lindholm
2013-04-03 16:32 ` Leif Lindholm
2013-04-08 10:47 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-09 10:26 ` Leif Lindholm
2013-04-09 17:26 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-09 0:15 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-09 11:39 ` Leif Lindholm
2013-04-09 11:55 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-04-09 12:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5158EDA7.2040906@gmail.com \
--to=phcoder@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.