Gentoo Archives: gentoo-user

From: BillK <billk@×××××××××.au>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] tablet
Date: Tue, 31 May 2016 01:06:59
Message-Id: D366DFFC-D618-4F7B-B122-72E74A7F57BE@iinet.net.au
In Reply to: Re: [gentoo-user] tablet by Giampiero Gabbiani
1 Apologies for top posting on a thread running bottom posting but this Android tablet and K9 are not being cooperative :(
2
3
4 Surface pro 3 != Surface pro 4
5  
6 Grub could not see the ssd, and rEFInd is selectable from the sp4 boot screen but returns too fast to what the error is :(
7  
8 (chroot) sysresccd / # blkid
9 /dev/loop0: TYPE="squashfs"
10 /dev/sda1: LABEL="WKENWORTHY" UUID="2936-E5E6" TYPE="vfat" PARTUUID="c3072e18-01"
11 /dev/nvme0n1p1: LABEL="SYSTEM" UUID="2258-0C6A" TYPE="vfat" PARTLABEL="EFI system partition" PARTUUID="760df07d-ec40-452f-95ee-cb47acf22069"
12 /dev/nvme0n1p3: LABEL="Windows" UUID="4A44EC6844EC5869" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="3237c477-911a-436e-9394-9ac0284ad7fa"
13 /dev/nvme0n1p4: LABEL="Windows RE tools" UUID="0C42EEA242EE902E" TYPE="ntfs" PARTLABEL="Basic data partition" PARTUUID="e996fb0f-5359-454d-8146-81b8b185d79c"
14 /dev/nvme0n1p5: UUID="1b2d6926-a55f-43ff-bd55-6d8bec1c538a" TYPE="ext2" PARTLABEL="primary" PARTUUID="7fe8849a-88ad-4dd5-8829-cf6ab5f29a72"
15 /dev/nvme0n1p6: UUID="16c7f09a-359e-4758-bd1f-f53b62fb232e" TYPE="swap" PARTLABEL="primary" PARTUUID="fcee4c07-4aec-43f3-bf46-49808d3c3888"
16 /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"
17 /dev/nvme0n1: PTUUID="c0306c69-b496-491a-aa88-632e4cdc9065" PTTYPE="gpt"
18 /dev/nvme0n1p2: PARTLABEL="Microsoft reserved partition" PARTUUID="b9fca984-5eac-4b1d-839f-792610e34ba3"
19 (chroot) sysresccd / #
20  
21 (chroot) sysresccd / # ls -al /dev/nvme0*
22 crw------- 1 root root  10, 58 May 31 07:48 /dev/nvme0
23 brw-rw---- 1 root disk 259,  0 May 31 07:48 /dev/nvme0n1
24 brw-rw---- 1 root disk 259,  1 May 31 07:48 /dev/nvme0n1p1
25 brw-rw---- 1 root disk 259,  2 May 31 07:48 /dev/nvme0n1p2
26 brw-rw---- 1 root disk 259,  3 May 31 07:48 /dev/nvme0n1p3
27 brw-rw---- 1 root disk 259,  4 May 31 07:48 /dev/nvme0n1p4
28 brw-rw---- 1 root disk 259,  5 May 31 07:48 /dev/nvme0n1p5
29 brw-rw---- 1 root disk 259,  6 May 31 07:48 /dev/nvme0n1p6
30 brw-rw---- 1 root disk 259,  7 May 31 07:48 /dev/nvme0n1p7
31 (chroot) sysresccd / #
32  
33 (chroot) sysresccd / # parted -l
34 Model: Generic USB Flash Disk (scsi)
35 Disk /dev/sda: 8097MB
36 Sector size (logical/physical): 512B/512B
37 Partition Table: msdos
38 Disk Flags:
39  
40 Number  Start   End     Size    Type     File system  Flags
41 1      3109kB  8097MB  8094MB  primary  fat32        boot
42  
43  
44 Model: Unknown (unknown)
45 Disk /dev/nvme0n1: 256GB
46 Sector size (logical/physical): 512B/512B
47 Partition Table: gpt
48 Disk Flags:
49  
50 Number  Start   End    Size    File system     Name                          Flags
51 1      1049kB  274MB  273MB   fat32           EFI system partition          boot, esp
52 2      274MB   408MB  134MB                   Microsoft reserved partition  msftres
53 3      408MB   127GB  127GB   ntfs            Basic data partition          msftdata
54 5      127GB   127GB  99.6MB  ext2            primary
55 6      127GB   139GB  11.9GB  linux-swap(v1)  primary
56 7      139GB   254GB  115GB   btrfs           primary
57 4      254GB   256GB  2013MB  ntfs            Basic data partition          hidden, diag
58  
59  
60 (chroot) sysresccd / #
61  
62  
63 (chroot) sysresccd / # ls -al /boot/efi/EFI/
64 total 11096
65 drwxr-xr-x 5 root root    4096 May 31 06:42 .
66 drwxr-xr-x 3 root root    4096 Jan  1  1970 ..
67 drwxr-xr-x 2 root root    4096 Apr 11 11:44 Boot
68 -rwxr-xr-x 1 root root 1727156 May 30 17:17 initramfs-genkernel-x86_64-4.4.11-gentoo
69 -rwxr-xr-x 1 root root 6271936 May 30 17:16 kernel-genkernel-x86_64-4.4.11-gentoo
70 drwxr-xr-x 4 root root    4096 Apr 11 11:44 Microsoft
71 drwxr-xr-x 8 root root    4096 May 31 06:41 refind
72 -rwxr-xr-x 1 root root 3337769 May 30 17:16 System.map-genkernel-x86_64-4.4.11-gentoo
73 (chroot) sysresccd / #
74  
75 (chroot) sysresccd / # grep EFI /usr/src/linux/.config
76 CONFIG_EFI_PARTITION=y
77 CONFIG_EFI=y
78 CONFIG_EFI_STUB=y
79 CONFIG_EFI_MIXED=y
80 CONFIG_FB_EFI=y
81 CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
82 # EFI (Extensible Firmware Interface) Support
83 CONFIG_EFI_VARS=y
84 CONFIG_EFI_ESRT=y
85 CONFIG_EFI_RUNTIME_MAP=y
86 # CONFIG_EFI_FAKE_MEMMAP is not set
87 CONFIG_EFI_RUNTIME_WRAPPERS=y
88 CONFIG_CACHEFILES=m
89 # CONFIG_CACHEFILES_DEBUG is not set
90 # CONFIG_CACHEFILES_HISTOGRAM is not set
91 CONFIG_EFIVAR_FS=y
92 # CONFIG_EARLY_PRINTK_EFI is not set
93 # CONFIG_EFI_PGT_DUMP is not set
94 (chroot) sysresccd / #
95  
96 (chroot) sysresccd / # efibootmgr -v
97 BootCurrent: 0004
98 Timeout: 2 seconds
99 BootOrder: 0000,0005,0001,0003,0002
100 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.}....................
101 Boot0001* Internal Storage      FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)SDD.
102 Boot0002* USB Storage   FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)USB.
103 Boot0003* PXE Network   FvVol(a881d567-6cb0-4eee-8435-2e72d33e45b5)/FvFile(50670071-478f-4be7-ad13-8754f379c62f)PXE.
104 Boot0004* MsTemp        PciRoot(0x0)/Pci(0x14,0x0)/USB(0,0)/USB(2,0)/HD(1,MBR,0x24,0x17b8,0xf13848)
105 Boot0005* rEFInd        HD(1,MBR,0x24,0x17b8,0xf13848)/File(\EFI\refind\refind_x64.efi)
106 (chroot) sysresccd / #
107  
108 (chroot) sysresccd / # grep -v "#" /boot/efi/EFI/refind/refind.conf
109  
110 timeout 20
111  
112 showtools shell, gdisk, memtest, mok_tool, windows_recovery, about, reboot, exit, firmware
113  
114 scanfor internal,manual
115  
116 menuentry Linux {
117     icon /EFI/refind/icons/os_linux.png
118     volume 760df07d-ec40-452f-95ee-cb47acf22069
119     loader kernel-genkernel-x86_64-4.4.11-gentoo
120     initrd initramfs-genkernel-x86_64-4.4.11-gentoo
121     options "ro root=UUID=034f406b-be3f-41bf-a110-bf7c5bb62d8b"
122 }
123  
124 menuentry "Windows 10" {
125     loader \EFI\Microsoft\Boot\bootmgfw.efi
126 }
127  
128 (chroot) sysresccd / #
129  
130
131 On 31 May 2016 6:43:24 am AWST, Giampiero Gabbiani <giampiero@××××××××.org> wrote:
132 >In data martedì 31 maggio 2016 05:55:10, Bill Kenworthy ha scritto:
133 >> On 30/05/16 20:09, Neil Bothwick wrote:
134 >> > On Sat, 28 May 2016 14:46:02 +0300, Thanasis wrote:
135 >> >> On 05/28/2016 09:03 AM, Bill Kenworthy wrote:
136 >> >>> I was just about to spring for a mid range MS surface pro 4
137 >tablet
138 >> >>> when I saw a few posts about hardware problems ... MS hardware is
139 >> >>> usually solid (in contrast to their software! :)
140 >> >>>
141 >> >>> Are there any other similar tablets out there that are
142 >gentoo/Linux
143 >> >>> friendly that are worth looking at?
144 >> >>>
145 >> >>> I have been using an old Samsung android tablet and google has
146 >just
147 >> >>> crossed the line and creeped me out past what I can tolerate so
148 >its
149 >> >>> time to move on :(
150 >> >>>
151 >> >>> BillK
152 >> >>
153 >> >> Aquaris M10
154 >> >>
155 >> >> https://store.bq.com/gl/
156 >> >
157 >> > Have you actually run Gentoo on one of these?
158 >>
159 >> Tried to do gentoo on android but was missing some essential settings
160 >in
161 >> the kernel available ... and its not the most powerful beast :) I
162 >did
163 >> eventually build a custom cyanogenmod but in the end decided that
164 >with a
165 >> failing battery, it wasn't worth it :(
166 >>
167 >> The surface 4 is running gentoo but but I am running out of chickens
168 >> trying to get the bootloader going ... seems like grub cant see the
169 >NVMe
170 >> ssd the sp4 uses and rEFInd is being ... difficult :)
171 >>
172 >> EFI is like bad magic ... doesn't really work! My last efi adventure
173 >> was an apple air some 4 years or more ago (which eventually worked) -
174 >it
175 >> hasn't progressed much in that time.
176 >>
177 >> BillK
178 >
179 >On both surface Pro and Pro 3 it worked with the following partition:
180 >
181 >/dev/sda1 ef00 fat32 512MiB
182 >
183 >Grub2 was compiled with device-mapper USE flag and
184 >GRUB_PLATFORMS="efi-64"
185 >
186 >And installed with
187 >
188 ># grub2-install --target=x86_64-efi --efi-directory=/boot/efi --boot-
189 >directory=/boot/efi
190 >
191 >What exactly is the problem?
192 >
193 >Grub2 succeeded in installation? If yes could you give the efibootmgr
194 >output?
195 >
196 >Regards
197 >Giampiero
198
199 --
200 Sent from my Android phone with K-9 Mail. Please excuse my brevity.