Apologies for top posting on a thread running bottom posting but this Android 
tablet and K9 are not being cooperative :(


Surface pro 3 != Surface pro 4
 
Grub could not see the ssd, and rEFInd is selectable from the sp4 boot screen 
but returns too fast to what the error is :(
 
(chroot) sysresccd / # blkid
/dev/loop0: TYPE="squashfs"
/dev/sda1: LABEL="WKENWORTHY" UUID="2936-E5E6" TYPE="vfat" 
PARTUUID="c3072e18-01"
/dev/nvme0n1p1: LABEL="SYSTEM" UUID="2258-0C6A" TYPE="vfat" PARTLABEL="EFI 
system partition" PARTUUID="760df07d-ec40-452f-95ee-cb47acf22069"
/dev/nvme0n1p3: LABEL="Windows" UUID="4A44EC6844EC5869" TYPE="ntfs" 
PARTLABEL="Basic data partition" PARTUUID="3237c477-911a-436e-9394-9ac0284ad7fa"
/dev/nvme0n1p4: LABEL="Windows RE tools" UUID="0C42EEA242EE902E" TYPE="ntfs" 
PARTLABEL="Basic data partition" PARTUUID="e996fb0f-5359-454d-8146-81b8b185d79c"
/dev/nvme0n1p5: UUID="1b2d6926-a55f-43ff-bd55-6d8bec1c538a" TYPE="ext2" 
PARTLABEL="primary" PARTUUID="7fe8849a-88ad-4dd5-8829-cf6ab5f29a72"
/dev/nvme0n1p6: UUID="16c7f09a-359e-4758-bd1f-f53b62fb232e" TYPE="swap" 
PARTLABEL="primary" PARTUUID="fcee4c07-4aec-43f3-bf46-49808d3c3888"
/dev/nvme0n1p7: UUID="034f406b-be3f-41bf-a110-bf7c5bb62d8b" 
UUID_SUB="c2fa051d-bf3b-4a65-85f7-0504bad930e3" TYPE="btrfs" 
PARTLABEL="primary" PARTUUID="55fd3131-6a38-4266-bdc5-f3d0cb03a466"
/dev/nvme0n1: PTUUID="c0306c69-b496-491a-aa88-632e4cdc9065" PTTYPE="gpt"
/dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" 
PARTUUID="b9fca984-5eac-4b1d-839f-792610e34ba3"
(chroot) sysresccd / #
 
(chroot) sysresccd / # ls -al /dev/nvme0*
crw------- 1 root root  10, 58 May 31 07:48 /dev/nvme0
brw-rw---- 1 root disk 259,  0 May 31 07:48 /dev/nvme0n1
brw-rw---- 1 root disk 259,  1 May 31 07:48 /dev/nvme0n1p1
brw-rw---- 1 root disk 259,  2 May 31 07:48 /dev/nvme0n1p2
brw-rw---- 1 root disk 259,  3 May 31 07:48 /dev/nvme0n1p3
brw-rw---- 1 root disk 259,  4 May 31 07:48 /dev/nvme0n1p4
brw-rw---- 1 root disk 259,  5 May 31 07:48 /dev/nvme0n1p5
brw-rw---- 1 root disk 259,  6 May 31 07:48 /dev/nvme0n1p6
brw-rw---- 1 root disk 259,  7 May 31 07:48 /dev/nvme0n1p7
(chroot) sysresccd / #
 
(chroot) sysresccd / # parted -l
Model: Generic USB Flash Disk (scsi)
Disk /dev/sda: 8097MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
 
Number  Start   End     Size    Type     File system  Flags
1      3109kB  8097MB  8094MB  primary  fat32        boot
 
 
Model: Unknown (unknown)
Disk /dev/nvme0n1: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
 
Number  Start   End    Size    File system     Name                          
Flags
1      1049kB  274MB  273MB   fat32           EFI system partition          
boot, esp
2      274MB   408MB  134MB                   Microsoft reserved partition  
msftres
3      408MB   127GB  127GB   ntfs            Basic data partition          
msftdata
5      127GB   127GB  99.6MB  ext2            primary
6      127GB   139GB  11.9GB  linux-swap(v1)  primary
7      139GB   254GB  115GB   btrfs           primary
4      254GB   256GB  2013MB  ntfs            Basic data partition          
hidden, diag
 
 
(chroot) sysresccd / #
 
 
(chroot) sysresccd / # ls -al /boot/efi/EFI/
total 11096
drwxr-xr-x 5 root root    4096 May 31 06:42 .
drwxr-xr-x 3 root root    4096 Jan  1  1970 ..
drwxr-xr-x 2 root root    4096 Apr 11 11:44 Boot
-rwxr-xr-x 1 root root 1727156 May 30 17:17 
initramfs-genkernel-x86_64-4.4.11-gentoo
-rwxr-xr-x 1 root root 6271936 May 30 17:16 
kernel-genkernel-x86_64-4.4.11-gentoo
drwxr-xr-x 4 root root    4096 Apr 11 11:44 Microsoft
drwxr-xr-x 8 root root    4096 May 31 06:41 refind
-rwxr-xr-x 1 root root 3337769 May 30 17:16 
System.map-genkernel-x86_64-4.4.11-gentoo
(chroot) sysresccd / #
 
(chroot) sysresccd / # grep EFI /usr/src/linux/.config
CONFIG_EFI_PARTITION=y
CONFIG_EFI=y
CONFIG_EFI_STUB=y
CONFIG_EFI_MIXED=y
CONFIG_FB_EFI=y
CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# EFI (Extensible Firmware Interface) Support
CONFIG_EFI_VARS=y
CONFIG_EFI_ESRT=y
CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_EFI_FAKE_MEMMAP is not set
CONFIG_EFI_RUNTIME_WRAPPERS=y
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFIVAR_FS=y
# CONFIG_EARLY_PRINTK_EFI is not set
# CONFIG_EFI_PGT_DUMP is not set
(chroot) sysresccd / #
 
(chroot) sysresccd / # efibootmgr -v
BootCurrent: 0004
Timeout: 2 seconds
BootOrder: 0000,0005,0001,0003,0002
Boot0000* Windows Boot Manager  
HD(1,GPT,760df07d-ec40-452f-95ee-cb47acf22069,0x800,0x82000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS.........x...B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}....................
Boot0001* Internal Storage      
FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)SDD.
Boot0002* USB Storage   
FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)USB.
Boot0003* PXE Network   
FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)PXE.
Boot0004* MsTemp        
PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/USB(2,0)/HD(1,MBR,0x24,0x17b8,0xf13848)
Boot0005* rEFInd        
HD(1,MBR,0x24,0x17b8,0xf13848)/File(\EFI\refind\refind_x64.efi)
(chroot) sysresccd / #
 
(chroot) sysresccd / # grep -v "#" /boot/efi/EFI/refind/refind.conf
 
timeout 20
 
showtools shell, gdisk, memtest, mok_tool, windows_recovery, about, reboot, 
exit, firmware
 
scanfor internal,manual
 
menuentry Linux {
    icon /EFI/refind/icons/os_linux.png
    volume 760df07d-ec40-452f-95ee-cb47acf22069
    loader kernel-genkernel-x86_64-4.4.11-gentoo
    initrd initramfs-genkernel-x86_64-4.4.11-gentoo
    options "ro root=UUID=034f406b-be3f-41bf-a110-bf7c5bb62d8b"
}
 
menuentry "Windows 10" {
    loader \EFI\Microsoft\Boot\bootmgfw.efi
}
 
(chroot) sysresccd / #
 

On 31 May 2016 6:43:24 am AWST, Giampiero Gabbiani <giampi...@gabbiani.org> 
wrote:
>In data martedì 31 maggio 2016 05:55:10, Bill Kenworthy ha scritto:
>> On 30/05/16 20:09, Neil Bothwick wrote:
>> > On Sat, 28 May 2016 14:46:02 +0300, Thanasis wrote:
>> >> On 05/28/2016 09:03 AM, Bill Kenworthy wrote:
>> >>> I was just about to spring for a mid range MS surface pro 4
>tablet
>> >>> when I saw a few posts about hardware problems ... MS hardware is
>> >>> usually solid (in contrast to their software! :)
>> >>> 
>> >>> Are there any other similar tablets out there that are
>gentoo/Linux
>> >>> friendly that are worth looking at?
>> >>> 
>> >>> I have been using an old Samsung android tablet and google has
>just
>> >>> crossed the line and creeped me out past what I can tolerate so
>its
>> >>> time to move on  :(
>> >>> 
>> >>> BillK
>> >> 
>> >> Aquaris M10
>> >> 
>> >> https://store.bq.com/gl/
>> > 
>> > Have you actually run Gentoo on one of these?
>> 
>> Tried to do gentoo on android but was missing some essential settings
>in
>> the kernel available ... and its not the most powerful beast :)  I
>did
>> eventually build a custom cyanogenmod but in the end decided that
>with a
>> failing battery, it wasn't worth it :(
>> 
>> The surface 4 is running gentoo but but I am running out of chickens
>> trying to get the bootloader going ... seems like grub cant see the
>NVMe
>> ssd the sp4 uses and rEFInd is being ... difficult :)
>> 
>> EFI is like bad magic ... doesn't really work!  My last efi adventure
>> was an apple air some 4 years or more ago (which eventually worked) -
>it
>> hasn't progressed much in that time.
>> 
>> BillK
>
>On both surface Pro and Pro 3 it worked with the following partition:
>
>/dev/sda1 ef00 fat32 512MiB
>
>Grub2 was compiled with device-mapper USE flag and
>GRUB_PLATFORMS="efi-64"
>
>And installed with 
>
># grub2-install --target=x86_64-efi --efi-directory=/boot/efi --boot-
>directory=/boot/efi
>
>What exactly is the problem?
>
>Grub2 succeeded in installation? If yes could you give the efibootmgr
>output?
>
>Regards
>Giampiero

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Reply via email to