Re: [qubes-users] Re: Lenovo G505s with Coreboot and Qubes R4-rc3 fails to boot

2017-12-27 Thread Blooorp
Le mercredi 27 décembre 2017 19:05:40 UTC+1, tai...@gmx.com a écrit :
> What version of coreboot are you using, they are removing AGESA from the 
> latest versions due to some dumb choices by the leadership.
> 
> I would use v4.6, it is what I use.

I use 4.6 too, it's the current version.
(to be precise : 4.6-2477-g6ab3edac3c-dirty)

I ran the 3.1 live USB and installed 3.2, what I could get out of them (they 
all failed to start) :

Live 3.1 :
mce: Unable to init device /dev/mcelog (rc: -16)
radeon 000:04:00:0: Invalid ROM contents
radeon 000:04:00:0: Invalid ROM contents
[drm:radeon_get_bios] *ERROR* Unable to locate a BIOS ROM
radeon 000:04:00:0: Fatal error during GPU init
[TTM] Memory type 3 has not been initialized
SQUASHFS error: squashfs_read_data failed to read block 0x5cb75d68
SQUASHFS error: Unable to read data cache entry [0x5cb75d68]
SQUASHFS error: Unable to read page, block 0x5cb75d68, size af0
SQUASHFS error: Unable to read data cache entry [0x5cb75d68]
SQUASHFS error: Unable to read page, block 0x5cb75d68, size af0
EXT4-fs error (device dm-0): ext4_find_entry:1289: inode #41642: comm 
plymouthd: reading directory lblock 0
(Hangs at the Qubes graphical loading screen, with loading bar full.)

3.2 (Install looked fine) :
Hangs at "Booting from Hard Disk..." in SeaBIOS on every try

Some more information about 4.0 rc3 :
[ FAILED ] Failed to start Load Kernel Modules.
...
[ OK ] Reached target Basic System.
(Hangs for about 10secs, followed by 5s of black screen)
BUG: Unable to handle NULL pointer dereference at (null)
(followed by a lot of output likely concerning the error and quickly back to 
boot)
Sadly too much output and disappearing too fast for me to get anything out of 
it if all I can do is read and type to export it. Tried Ctrl+S/Ctrl+Q to 
"pause" it but nope, also checked that the laptop should not reboot in case of 
kernel panic but it still does...

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/b1c4a833-ef61-4db2-83be-0637e4c07d91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Lenovo G505s with Coreboot and Qubes R4-rc3 fails to boot

2017-12-26 Thread Blooorp
Le mardi 26 décembre 2017 22:26:10 UTC+1, Blooorp a écrit :
> I installed Qubes with Encryption on my laptop, all looked fine exept for a 
> popup saying that my hardware doesn't support Interrupt Remapping, which 
> shouldn't fail my install.
> 
> Then on first boot, after I enter my password, the graphical loading screen 
> appears for a few seconds, black screen, a series of console outputs(too fast 
> to grasp much of it, tho I noticed a "kernel panic - not syncing: fatal 
> exception" and back to boot.
> 
> The same happened at each boot, sometimes it didn't even ask me for my 
> password and failed the same way. I reinstalled Qubes without encryption but 
> the same happened.
> 
> I tried to reboot without my wifi card or without the "iommu=no-igfx" 
> parameter in the GRUB boot menu but no result.
> 
> Any idea what may be happening?
> Any way to save the boot logs? I tried making journalctl persistent and 
> export the files with the troubleshooting tool from the installation media, 
> but nothing was saved.
> 
> I'm pretty much using the same machine with the same coreboot build and the 
> same version of Qubes than Awokd but he doesn't have this issue.
> 
> Thanks in advance :)

Some additional input I forgot to add : I have the version of the G505s with 
integrated HD 8650G + discrete R5 M230 graphics.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/8efe6ff4-49ca-4543-8cf4-7c4cf9283ebc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Lenovo G505S Coreboot

2017-12-26 Thread Blooorp
Le mardi 26 décembre 2017 00:05:28 UTC+1, tai...@gmx.com a écrit :
> On 12/25/2017 12:16 PM, Blooorp wrote:
> 
> > Le lundi 25 décembre 2017 16:27:11 UTC+1, awokd a écrit :
> >> On Mon, December 25, 2017 3:07 pm, Blooorp wrote:
> >>> "Devices/Add a VGA BIOS image (don't specify location or IDs, let it
> >>> auto-populate) "
> >>>
> >>> make: *** No rule to make target 'vgabios.bin', needed by
> >>> 'build/coreboot.pre'. Stop.
> >>>
> >>>
> >>> Looks like it didn't work, should I put the location and ID of the one I
> >>> extracted from the stock bios?
> >> I think I copied mine to the top level coreboot folder as "vgabios.bin"
> >> and let it find it there.
> >>
> >> Email me directly if it's still not working and I can help, we're off
> >> topic from qubes-users now...
> > Everything works now, my mistake was using the wrong vgabios.bin, the stock 
> > bios contains the ones for each version of the laptop but I didn't know 
> > that so I took the first that I found, with device ID 6663.
> > The one I then searched for and that worked, thanks to awokd, was with 
> > device ID 990b, appropriate for the G505s with integrated graphics and not 
> > discrete card.
> >
> Don't forget about that microcode update - it is mandatory both for for 
> security and IOMMU.
> 
> Use the patch that awoke made, a true service to the community - the 
> lenovo g505s is now properly working and is the best laptop for qubes as 
> it supports an open source init version of coreboot without ME/PSP 
> unlike purisms laptops with the not really disabled ME and entirely 
> blobbed silicon init via intel FSP.

Didn't forget about it, he did some awesome work :)

I took my time to choose the right laptop to get into Qubes, really feels that 
I made the right choice !
But now, I need to make Qubes work on it, I'm collecting the issues haha

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/a2a17389-fa86-4ef1-be57-26eab8feb169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Le lundi 25 décembre 2017 16:27:11 UTC+1, awokd a écrit :
> On Mon, December 25, 2017 3:07 pm, Blooorp wrote:
> >
> > "Devices/Add a VGA BIOS image (don't specify location or IDs, let it
> > auto-populate) "
> >
> > make: *** No rule to make target 'vgabios.bin', needed by
> > 'build/coreboot.pre'. Stop.
> >
> >
> > Looks like it didn't work, should I put the location and ID of the one I
> > extracted from the stock bios?
> 
> I think I copied mine to the top level coreboot folder as "vgabios.bin"
> and let it find it there.
> 
> Email me directly if it's still not working and I can help, we're off
> topic from qubes-users now...

Everything works now, my mistake was using the wrong vgabios.bin, the stock 
bios contains the ones for each version of the laptop but I didn't know that so 
I took the first that I found, with device ID 6663.
The one I then searched for and that worked, thanks to awokd, was with device 
ID 990b, appropriate for the G505s with integrated graphics and not discrete 
card.

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/6ac37dcd-5b99-48bd-9524-63d53fbfb78b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Le lundi 25 décembre 2017 15:50:33 UTC+1, awokd a écrit :
> On Mon, December 25, 2017 2:38 pm, awokd wrote:
> > On Mon, December 25, 2017 2:24 pm, Blooorp wrote:
> >
> >> Le lundi 25 décembre 2017 15:11:51 UTC+1, awokd a écrit :
> >>
> >>
> >>> On Mon, December 25, 2017 1:47 pm, Blooorp wrote:
> >>>
> >>>
> >>>> Le lundi 25 décembre 2017 14:39:45 UTC+1, awokd a écrit :
> >>>>
> >>>>
> >>>>
> >>>>> On Mon, December 25, 2017 12:35 pm, Blooorp wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Hey, I'm having some heavy trouble getting coreboot on my
> >>>>>> G505s,
> >>>>>> could you take a look at how I did it to see if you spot any
> >>>>>> difference compared to how you did it?
> >>>>>>
> >>>>>> Here is how I built, flashed and tested it :
> >>>>>> https://ghostbin.com/paste/wprhk
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>> They seem to block Tor users. I can take a look if you put it on
> >>>>> pastebin.com for example.
> >>>>
> >>>> Coreboot Lenovo G505s - Build/Flash/Test
> >>>> https://pastebin.com/58K4VGgf
> >>>> Full make output https://pastebin.com/nAPbNjJG
> >>>>
> >>>>
> >>>
> >>> I think you are very close to having it working, probably only the
> >>> video.
> >>>
> >>> Try the following options in your menuconfig:
> >>> General/Use CMOS for configuration values
> >>> General/Allow use of binary-only repository
> >>> Chipset/Add imc firmware (don't specify location or IDs, let it
> >>> auto-populate) Chipset/SATA Mode 2 (don't specify location or IDs, let
> >>> it auto-populate) Devices/Add a VGA BIOS image (don't specify location
> >>> or IDs, let it
> >>> auto-populate) Payload/SeaBIOS 1.11.0
> >>>
> >>>
> >>> And to keep this on topic for the Qubes Users mailing list, if you
> >>> plan on running Qubes 4.0 on there, you'll also want this Coreboot
> >>> patch currently waiting on code review:
> >>> https://review.coreboot.org/#/c/coreboot/+/22843 .
> >>>
> >>>
> >>
> >> I do plan on running Qubes 4.0, how to I actually patch coreboot before
> >>  the build?
> >
> > See the changes I made in that link to those two files, and copy and
> > paste them into your own source files manually. If you don't trust the
> > blob I provided (and you shouldn't!) perform the following steps to verify
> > it:
> >
> >
> > Executing the following on a Debian Stretch install:
> > dd skip=5284 iflag=skip_bytes
> > if=/lib/firmware/amd-ucode/microcode_amd_fam15h.bin of=amd.bin xxd -i
> > amd.bin Then copying and pasting.
> >
> >
> > Executing these steps against
> > coreboot/3rdparty/blobs/cpu/amd/family_15h/microcode_amd_fam15h.bin
> > provides identical results.
> >
> Forgot to add, you should also include nvramcui as a secondary payload to
> let you change CMOS options.

"Devices/Add a VGA BIOS image (don't specify location or IDs, let it
auto-populate) "

make: *** No rule to make target 'vgabios.bin', needed by 'build/coreboot.pre'. 
Stop.

Looks like it didn't work, should I put the location and ID of the one I 
extracted from the stock bios?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/16d07c78-3d48-4d98-a22c-c3609dce98aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Le lundi 25 décembre 2017 15:11:51 UTC+1, awokd a écrit :
> On Mon, December 25, 2017 1:47 pm, Blooorp wrote:
> > Le lundi 25 décembre 2017 14:39:45 UTC+1, awokd a écrit :
> >
> >> On Mon, December 25, 2017 12:35 pm, Blooorp wrote:
> >>
> >>> Hey, I'm having some heavy trouble getting coreboot on my G505s,
> >>> could you take a look at how I did it to see if you spot any
> >>> difference compared to how you did it?
> >>>
> >>> Here is how I built, flashed and tested it :
> >>> https://ghostbin.com/paste/wprhk
> >>>
> >>
> >> They seem to block Tor users. I can take a look if you put it on
> >> pastebin.com for example.
> >
> > Coreboot Lenovo G505s - Build/Flash/Test https://pastebin.com/58K4VGgf
> > Full make output https://pastebin.com/nAPbNjJG
> 
> I think you are very close to having it working, probably only the video.
> 
> Try the following options in your menuconfig:
> General/Use CMOS for configuration values
> General/Allow use of binary-only repository
> Chipset/Add imc firmware (don't specify location or IDs, let it
> auto-populate)
> Chipset/SATA Mode 2 (don't specify location or IDs, let it auto-populate)
> Devices/Add a VGA BIOS image (don't specify location or IDs, let it
> auto-populate)
> Payload/SeaBIOS 1.11.0
> 
> And to keep this on topic for the Qubes Users mailing list, if you plan on
> running Qubes 4.0 on there, you'll also want this Coreboot patch currently
> waiting on code review: https://review.coreboot.org/#/c/coreboot/+/22843 .

I do plan on running Qubes 4.0, how to I actually patch coreboot before the 
build?

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/ac317a8d-fd7c-442d-a4bb-3d73acce13f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Le lundi 25 décembre 2017 14:39:45 UTC+1, awokd a écrit :
> On Mon, December 25, 2017 12:35 pm, Blooorp wrote:
> > Hey, I'm having some heavy trouble getting coreboot on my G505s, could
> > you take a look at how I did it to see if you spot any difference
> > compared to how you did it?
> >
> > Here is how I built, flashed and tested it :
> > https://ghostbin.com/paste/wprhk
> 
> They seem to block Tor users. I can take a look if you put it on
> pastebin.com for example.

Coreboot Lenovo G505s - Build/Flash/Test https://pastebin.com/58K4VGgf
Full make output https://pastebin.com/nAPbNjJG

If you need any more information, just ask me, I don't know exactly what may be 
relevant to pinpoint my issue but I really want to get it done :)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/87ab68b9-3b46-4f8d-ae9e-12d43ee7bfc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Hey, I'm having some heavy trouble getting coreboot on my G505s, could you take 
a look at how I did it to see if you spot any difference compared to how you 
did it?

Here is how I built, flashed and tested it : https://ghostbin.com/paste/wprhk

Basically, I built it with the extracted vgabios binary from the stock rom, 
flashed it with Bus Pirate and tried to start the laptop.
The screen would not turn on, at all.

Thanks in advance :)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/1bc45461-677a-4b4f-b850-5c6142feae3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[qubes-users] Re: Lenovo G505S Coreboot

2017-12-25 Thread Blooorp
Hey Asterysk, I'm having some heavy trouble getting coreboot on my G505s, could 
you take a look at how I did it to see if you spot any difference compared to 
how you did it?

Here is how I built, flashed and tested it : https://ghostbin.com/paste/wprhk

Basically, I built it with the extracted vgabios binary from the stock rom, 
flashed it with Bus Pirate and tried to start the laptop.
The screen would not turn on, at all.

Thanks in advance :)

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/db8d3b4a-494a-4512-b154-d8ceaf71220c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.