[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 4/7] Support for ARM/U-Boot platforms
From: |
Leif Lindholm |
Subject: |
Re: [PATCH 4/7] Support for ARM/U-Boot platforms |
Date: |
Wed, 3 Apr 2013 16:32:38 +0000 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Mon, Apr 01, 2013 at 04:15:03AM +0200, Vladimir '??-coder/phcoder'
Serbinenko wrote:
> > +#define GRUB_KERNEL_MACHINE_STACK_SIZE 0x40000
> > +#define GRUB_KERNEL_MACHINE_HEAP_SIZE (grub_size_t) (2 * 1024 * 1024)
>
> Why so small heap?
I copied ieee1275 HEAP_MIN_SIZE to begin with, and it was always enough.
(Since U-Boot doesn't provide any memory mapping service, kernel and
initrd are not going on the heap.)
I could increase it?
> > === 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?
*cough* that would be a typo then - should be grub_imgname.
> > + 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
Yes.
/
Leif