Bug#788532: grub-efi-ia32-bin should be shipped on install DVD

2015-06-12 Thread Gregor Riepl
 Actually, that was the easy part. Except for a custom built
 grub-efi-i386 and some manual fiddling to find the install disc, I
 didn't need to do anything.
 
 Right, OK. Not exactly a common trail, then. :-)

Well, brand new hardware that just works is relatively rare.

I just happen to value Debian as a starting point for most of my Linux-related
endeavours. Reduces configuration/customisation by much, and still manages to
come without unnecessary bloat like certain other distributions.
Also, I prefer apt over other package managers.

 Yup, I know - I wrote
 http://blog.einval.com/2015/04/23#ready_for_Jessie and the code
 described there. I've been hacking on Bay Trail systems for a
 ehile... :-)

*Reading that article now*

 Right. If you'd just tried the multi-arch Debian CD netinst or DVD
 you'd probably have found that the installation just worked for you
 without having to fight with your own grub-efi-ia32 build etc.!

What how where multiarch?
Ok, it looks I completely missed that. Oops.

And if I'm reading your blog correctly, the i386 images come with UEFI
support, so that would be an option too. Except that I don't really like the
idea of missing out on the advantages of amd64. But if it works...

 I'm *not* planning on adding the 32-bit grub binary packages to our
 amd64 CD images just yet. I'll want to add installer build code to get
 them booting easily in 32-bit first. Until then, please stick with the
 multi-arch images. OK?

If that's the best way to get what I want, I'll give it a try.

This seems pretty unique to Debian though?
Ubuntu doesn't ship their i386 installers with EFI boot support, and they
don't seem to have a multiarch installer either.


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/557b5590.4060...@gmail.com



Bug#788532: grub-efi-ia32-bin should be shipped on install DVD

2015-06-12 Thread Steve McIntyre
On Fri, Jun 12, 2015 at 07:27:26PM +0200, Gregor Riepl wrote:
Hi Steve

 This is actually the responsibility of the debian-cd package,
 reassigning.

I did not know that, thank you.
reportbug has a debian-installer flag, I assumed it was for this purpose.

 I'm the guy who's done the work for the mixed-EFI case here. How did
 you get the amd64 installer DVD to boot on your 32-bit UEFI system in
 the first place? That's an important (and harder) part of this. It's
 the reason why I explicitly only added support for mixed-EFI to our
 multi-arch i386/amd64 CDs and DVDs in the first place...

Actually, that was the easy part. Except for a custom built
grub-efi-i386 and some manual fiddling to find the install disc, I
didn't need to do anything.

Right, OK. Not exactly a common trail, then. :-)

I've been experimenting with a bunch of Intel Bay Trail tablets
lately, and they all come with a full-featured (as far as Atom goes)
64bit Atom CPU. However, since the manufacturers usually only fit 1
or 2 GB of RAM into their devices, they ship with a 32bit Windows 8,
and consequently, only a 32bit UEFI BIOS.

Yup, I know - I wrote
http://blog.einval.com/2015/04/23#ready_for_Jessie and the code
described there. I've been hacking on Bay Trail systems for a
ehile... :-)

All those UEFI BIOSes I've seen so far will boot any 32 or 64 bit Linux kernel
just fine, provided that:
- you have a 32bit EFI bootloader (like grub-efi-ia32)
- you disable Secure Boot or register the bootloader as trusted
- the 32bit bootloader will load a 64bit kernel (which grub-efi-ia32 does)

When building grub-efi, you also need to make sure that all necessary
modules are compiled in, as grub will refuse to load external modules
in Secure Boot mode.

Yup.

I should note though that not everything is running smoothly yet. On one
particular device, the installed system only boots occasionally, usually just
hanging at the Loading initrd... prompt. Further research is necessary.

Right. If you'd just tried the multi-arch Debian CD netinst or DVD
you'd probably have found that the installation just worked for you
without having to fight with your own grub-efi-ia32 build etc.!

I'm *not* planning on adding the 32-bit grub binary packages to our
amd64 CD images just yet. I'll want to add installer build code to get
them booting easily in 32-bit first. Until then, please stick with the
multi-arch images. OK?

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
Can't keep my eyes from the circling sky,
Tongue-tied  twisted, Just an earth-bound misfit, I...


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150612193708.gx3...@einval.com



Re: Bug#788532: grub-efi-ia32-bin should be shipped on install DVD

2015-06-12 Thread Ian Campbell
Control: reassign -1 debian-cd

This is actually the responsibility of the debian-cd package,
reassigning.

On Fri, 2015-06-12 at 15:17 +0200, Gregor Riepl wrote:
 Package: grub-efi-ia32-bin
 Version: 2.02~beta2-22
 Severity: important
 Tags: d-i
 
 Dear Maintainer,
 
 When installing Debian 8 on a system with a x86_64 CPU, but with a 32bit UEFI,
 debian-installer correctly identifies the system as requiring a 32bit EFI 
 Grub,
 and thus tries to install grub-efi-ia32-bin.
 
 However, this package is not contained on the amd64 installation DVD, 
 requiring
 an active internet connection to get the package from a package server. This
 may not always be possible, for example when the network hardware is not
 supported by the installed Linux kernel and no alternative network connection
 is available.
 
 Please add this package to the installation DVD so an internet connection is
 not required during installation.
 
 Thank you.
 
 
 
 -- Package-specific info:
 
 *** WARNING grub-setup left core.img in filesystem
 
 *** BEGIN /proc/mounts
 /dev/dm-0 / ext4 rw,noatime,discard,errors=remount-ro,data=ordered 0 0
 /dev/sda1 /boot vfat 
 rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=utf8,shortname=mixed,errors=remount-ro
  0 0
 *** END /proc/mounts
 
 *** BEGIN /boot/grub/device.map
 (hd0) /dev/disk/by-id/ata-SAMSUNG_MZ7TD256HAFV-000L7_S16GNEAD601136
 (hd1) /dev/disk/by-id/usb-SanDisk_Cruzer_Pattern_3109330F0440D127-0:0
 *** END /boot/grub/device.map
 
 *** BEGIN /boot/grub/grub.cfg
 #
 # DO NOT EDIT THIS FILE
 #
 # It is automatically generated by grub-mkconfig using templates
 # from /etc/grub.d and settings from /etc/default/grub
 #
 
 ### BEGIN /etc/grub.d/00_header ###
 if [ -s $prefix/grubenv ]; then
   set have_grubenv=true
   load_env
 fi
 if [ ${next_entry} ] ; then
set default=${next_entry}
set next_entry=
save_env next_entry
set boot_once=true
 else
set default=0
 fi
 
 if [ x${feature_menuentry_id} = xy ]; then
   menuentry_id_option=--id
 else
   menuentry_id_option=
 fi
 
 export menuentry_id_option
 
 if [ ${prev_saved_entry} ]; then
   set saved_entry=${prev_saved_entry}
   save_env saved_entry
   set prev_saved_entry=
   save_env prev_saved_entry
   set boot_once=true
 fi
 
 function savedefault {
   if [ -z ${boot_once} ]; then
 saved_entry=${chosen}
 save_env saved_entry
   fi
 }
 function load_video {
   if [ x$feature_all_video_module = xy ]; then
 insmod all_video
   else
 insmod efi_gop
 insmod efi_uga
 insmod ieee1275_fb
 insmod vbe
 insmod vga
 insmod video_bochs
 insmod video_cirrus
   fi
 }
 
 if [ x$feature_default_font_path = xy ] ; then
font=unicode
 else
 insmod part_gpt
 insmod fat
 set root='hd0,gpt1'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 
 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1'  200E-9FE4
 else
   search --no-floppy --fs-uuid --set=root 200E-9FE4
 fi
 font=/grub/unicode.pf2
 fi
 
 if loadfont $font ; then
   set gfxmode=auto
   load_video
   insmod gfxterm
   set locale_dir=$prefix/locale
   set lang=C
   insmod gettext
 fi
 terminal_output gfxterm
 if [ ${recordfail} = 1 ] ; then
   set timeout=-1
 else
   if [ x$feature_timeout_style = xy ] ; then
 set timeout_style=menu
 set timeout=5
   # Fallback normal timeout code in case the timeout_style feature is
   # unavailable.
   else
 set timeout=5
   fi
 fi
 ### END /etc/grub.d/00_header ###
 
 ### BEGIN /etc/grub.d/05_debian_theme ###
 insmod part_gpt
 insmod fat
 set root='hd0,gpt1'
 if [ x$feature_platform_search_hint = xy ]; then
   search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 
 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1'  200E-9FE4
 else
   search --no-floppy --fs-uuid --set=root 200E-9FE4
 fi
 insmod png
 if background_image /grub/.background_cache.png; then
   set color_normal=white/black
   set color_highlight=black/white
 else
   set menu_color_normal=cyan/blue
   set menu_color_highlight=white/blue
 fi
 ### END /etc/grub.d/05_debian_theme ###
 
 ### BEGIN /etc/grub.d/10_linux ###
 function gfxmode {
   set gfxpayload=${1}
 }
 set linux_gfx_mode=
 export linux_gfx_mode
 menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu 
 --class os $menuentry_id_option 
 'gnulinux-simple-c4db752c-876c-403f-9197-ccf5f677265f' {
   load_video
   insmod gzio
   if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
   insmod part_gpt
   insmod fat
   set root='hd0,gpt1'
   if [ x$feature_platform_search_hint = xy ]; then
 search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 
 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 --hint='hd0,gpt1'  200E-9FE4
   else
 search --no-floppy --fs-uuid --set=root 

Re: Doubts about Debian8.1 DVD ppc64el image

2015-06-12 Thread Thomas Schmitt
Hi,

inspection of the ISOs is not needed any more, since we now know
that your algorithm expects powerpc bootable ISOs, not those
for ppc64el.
Nevertheless, as we are at it:

 Here is the output of xorriso:
 ...
 System area summary: MBR CHRP cyl-align-off
 ISO image size/512 : 9162480
 ...
 MBR partition table:   N Status  TypeStart   Blocks
 MBR partition  :   1   0x80  0x960  9162480
 Drive current: -indev '/root/debian-8.1.0-ppc64el-DVD-1.iso'

That's CHRP without HFS.

 Preparer Id  : XORRISO-1.3.6 2014.04.08.18, LIBISOBURN-1.3.6,
 LIBISOFS-1.3.6, LIBBURN-1.3.6

Dear packagers: Version 1.4.0 is out :)


The debian-7.8.0-powerpc-netinst.iso yields:

System area summary: MBR CHRP cyl-align-off APM
ISO image size/512 : 529812
...
MBR partition table:   N Status  TypeStart   Blocks
MBR partition  :   1   0x80  0x960   529212
APM:   N  Info
APM block size :  512
APM gap fillers:  0
APM partition name :   1  Debian 7.8.0 ppc 1
APM partition type :   1  Apple_HFS
APM start and size :   1  16  529196
Drive current: -indev 'debian-7.8.0-powerpc-netinst.iso'
...
App Id   : GENISOIMAGE ISO 9660/HFS FILESYSTEM CREATOR (C) 1993 E.YOUNGDALE 
(C) 1997-2006 J.PEARSON/J.SCHILLING (C) 2006-2007 CDRKIT TEAM

The difference between ISO size and partition size probably
comes from genisoimage default padding of 300 KiB.
I think this is not fully CHRP compliant.
Shrug.


Have a nice day :)

Thomas


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/16300568206108542...@scdbackup.webframe.org



Processed: Re: Bug#788532: grub-efi-ia32-bin should be shipped on install DVD

2015-06-12 Thread Debian Bug Tracking System
Processing control commands:

 reassign -1 debian-cd
Bug #788532 [grub-efi-ia32-bin] grub-efi-ia32-bin should be shipped on install 
DVD
Bug reassigned from package 'grub-efi-ia32-bin' to 'debian-cd'.
No longer marked as found in versions grub2/2.02~beta2-22.
Ignoring request to alter fixed versions of bug #788532 to the same values 
previously set

-- 
788532: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788532
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/handler.s.b788532.143412652415046.transcr...@bugs.debian.org



Re: Doubts about Debian8.1 DVD ppc64el image

2015-06-12 Thread Ramon Medeiros



On 06/11/2015 05:23 PM, Thomas Schmitt wrote:

Hi,


Our algorithm is
failing to discover if this iso[1] is bootable.

I am curious to learn about the expectations of that algorithm.

The ISO looks like being bootable via CHRP.
 From my cheatsheet
   
http://bazaar.launchpad.net/~libburnia-team/libisofs/scdbackup/view/head:/doc/boot_sectors.txt
CHRP is marked by an MBR partition entry of type 0x96 spanning the whole
  ISO 9660 image.

I cannot spot ppc64el in
http://cdimage.debian.org/mirror/cdimage/archive/latest-oldstable/powerpc/iso-cd/
Old-stable powerpc was made by genisoimage rather than xorriso.
It has an Apple Partition Map additionally to the CHRP MBR,
probably pointing to a HFS filesystem.

So if your algorithm looks for magic number {'E','R'}
at the start of the file, that would be what's missing in ppc64el
ISOs. (Together with the HFS, of course.)


In case this does not yet explain the riddle:

What was the most recent ISO which passed your tests ?

Can you run GNU xorriso = 1.3.8 on that ISO ?
(Debian's xorriso is still at 1.3.2, i fear.)

   xorriso -indev ...iso \
   -report_el_torito plain \
   -report_system_area plain \
   -pvd_info


Here is the output of xorriso:

root@debian:/home/ramonn/xorriso-1.4.0# ./xorriso/xorriso -indev 
/root/debian-8.1.0-ppc64el-DVD-1.iso -report_el_torito plain 
-report_system_area plain -pvd_info

GNU xorriso 1.4.0 : RockRidge filesystem manipulator, libburnia project.

xorriso : NOTE : Loading ISO image tree from LBA 0
xorriso : UPDATE : 9554 nodes read in 1 seconds
Drive current: -indev '/root/debian-8.1.0-ppc64el-DVD-1.iso'
Media current: stdio file, overwriteable
Media status : is written , is appendable
Boot record  : (system area only) , MBR CHRP cyl-align-off
Media summary: 1 session, 2290620 data blocks, 4474m data, 3339m free
Volume id: 'Debian 8.1.0 ppc64el 1'
xorriso : NOTE : No El Torito information was loaded
System area options: 0x0600
System area summary: MBR CHRP cyl-align-off
ISO image size/512 : 9162480
Partition offset   : 0
MBR heads per cyl  : 0
MBR secs per head  : 0
MBR partition table:   N Status  TypeStart   Blocks
MBR partition  :   1   0x80  0x960  9162480
Drive current: -indev '/root/debian-8.1.0-ppc64el-DVD-1.iso'
PVD address  : 16s
Volume Id: Debian 8.1.0 ppc64el 1
Volume Set Id:
Publisher Id :
Preparer Id  : XORRISO-1.3.6 2014.04.08.18, LIBISOBURN-1.3.6, 
LIBISOFS-1.3.6, LIBBURN-1.3.6

App Id   :
System Id:
CopyrightFile:
Abstract File:
Biblio File  :
Creation Time: 2015060622352300
Modif. Time  : 2015060622352300
Expir. Time  : 
Eff. Time: 
root@debian:/home/ramonn/xorriso-1.4.0#


Have a nice day :)

Thomas



--

Ramon Nunes Medeiros
Kimchi Developer
Linux Technology Center Brazil
IBM Systems  Technology Group
Phone : +55 19 2132 7878
ram...@br.ibm.com


--
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/557afbc3.7020...@linux.vnet.ibm.com



Re: Bug#788532: grub-efi-ia32-bin should be shipped on install DVD

2015-06-12 Thread Steve McIntyre
On Fri, Jun 12, 2015 at 05:28:37PM +0100, Ian Campbell wrote:
Control: reassign -1 debian-cd

This is actually the responsibility of the debian-cd package,
reassigning.

Agreed!

On Fri, 2015-06-12 at 15:17 +0200, Gregor Riepl wrote:
 Package: grub-efi-ia32-bin
 Version: 2.02~beta2-22
 Severity: important
 Tags: d-i
 
 Dear Maintainer,
 
 When installing Debian 8 on a system with a x86_64 CPU, but with a 32bit 
 UEFI,
 debian-installer correctly identifies the system as requiring a 32bit EFI 
 Grub,
 and thus tries to install grub-efi-ia32-bin.
 
 However, this package is not contained on the amd64 installation DVD, 
 requiring
 an active internet connection to get the package from a package server. This
 may not always be possible, for example when the network hardware is not
 supported by the installed Linux kernel and no alternative network connection
 is available.
 
 Please add this package to the installation DVD so an internet connection is
 not required during installation.

Hi Gregor,

I'm the guy who's done the work for the mixed-EFI case here. How did
you get the amd64 installer DVD to boot on your 32-bit UEFI system in
the first place? That's an important (and harder) part of this. It's
the reason why I explicitly only added support for mixed-EFI to our
multi-arch i386/amd64 CDs and DVDs in the first place...

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
 Aardvark I dislike C++ to start with. C++11 just seems to be
handing rope-creating factories for users to hang multiple
instances of themselves.


-- 
To UNSUBSCRIBE, email to debian-cd-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150612165228.gf30...@einval.com