Mr0btain / x13s_iso_make

Quickly pack iso for Ubuntu Jammy for Lenovo x13s
10 stars 1 forks source link

Post Install Script Issues #1

Open PDGIII opened 1 year ago

PDGIII commented 1 year ago

fix_grub.sh currently does not work properly for a few reasons:

  1. It expects a dtb directory which doesn't exist:

printf "Copying dtb to DtbLoaders dtb folder with UUID=${sysuuid}" cp /usr/lib/linux-image-*/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb $PWD/dtb/${sysuuid}.dtb

  1. It tries to create the file ${sysuuid}.dtb in /dtb but then the script references it again without the file extension?

printf "Copying DTB from kernel" cp /usr/lib/linux-image-*/qcom/sc8280xp-lenovo-thinkpad-x13s.dtb /dtb/${sysuuid}

I fixed both of those issues but ultimately end up with the following post reboot:

EFI stub: Booting Linux kernel... EFI stub: Using DTB from configuration table EFI stub: Exiting boot services...

PDGIII commented 1 year ago

Tried pushing my fix but couldn't.

Mr0btain commented 1 year ago

Sorry I'm out and about at the moment, I knew the dtb location wasn't working. At first I removed it but then I just threw it back in there as a kind of starting point after talking to another guy about it. I was more focused on getting it slapped together fast 🤣. not sure why you couldn't push the fix? GitHub is relatively new to me 😅 i will try and figure that out whenever I get back in front of my computer, if you have any idea why let me know and I can change whatever setting lol. thank you!

On Wed, Nov 23, 2022, 1:11 PM PDGIII @.***> wrote:

Tried pushing my fix but couldn't.

— Reply to this email directly, view it on GitHub https://github.com/Mr0btain/x13s_iso_make/issues/1#issuecomment-1325472311, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4BDMRP5GBDG7AJLSSCD5TWJZM5ZANCNFSM6AAAAAASJHJUUM . You are receiving this because you are subscribed to this thread.Message ID: @.***>

PDGIII commented 1 year ago

I saw you merged my PR :+1:

Still not sure how to proceed with that EFI stub thing but I'm doing some research.

Mr0btain commented 1 year ago

I remember having this same problem but cannot remember exactly how I solved it 😅. This is with the kernel from the iso image? Or is this from another kernel? I'm almost positive it was dtb related. If I remember correctly sometimes it would make a symlink to the dtb for what reason I have no clue. Also check to size of the dtb and compare it to the one on the USB drive used to boot the iso. Sometimes wonky things happen with the dtbs and I had to fight them every step of the way. I think I've finally gotten it solved though with the newer kernel. I'll update the repo soon with the updated image. Also we've found in the debian 11 iso there was a universal dtb uuid that so far seems to work for all I've seen so far.

On Wed, Nov 23, 2022, 1:32 PM PDGIII @.***> wrote:

Yeah I don't use GitHub much either but I'll see what I can do.

When you're free, let me know if you have any suggestions for that EFI stub thing.

— Reply to this email directly, view it on GitHub https://github.com/Mr0btain/x13s_iso_make/issues/1#issuecomment-1325498171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4BDMQN4PKWG76K5ZJSJGTWJZPNNANCNFSM6AAAAAASJHJUUM . You are receiving this because you commented.Message ID: @.***>

PDGIII commented 1 year ago

I've only tried with the kernel from the ISO.

I'll keep on the lookout for the updated image. I'm free for the next few days so I've got time to test it.

Mr0btain commented 1 year ago

Hey I just noticed I didn't add the kernel flags pd_ignore_unused clk_ignore_unused. When I was doing this the kernel I had at the time did not need these, but I feel maybe the one I posted may need them, I've also noticed different bios updates from Lenovo interfere with this. Using an older bios revision I didn't need these flags either but as of updating to the most recent I have had to use them but on kernels 6.0.3 and 6.0.7 from steev's rep something is broken in the batt manager and I haven't gotten pd-mapper working correctly yet. I will update the grub fix script and give it a try as I'm now on the newest bios revision

On Wed, Nov 23, 2022, 5:28 PM PDGIII @.***> wrote:

I've only tried with the kernel from the ISO.

I'll keep on the lookout for the updated image. I'm free for the next few days so I've got time to test it.

— Reply to this email directly, view it on GitHub https://github.com/Mr0btain/x13s_iso_make/issues/1#issuecomment-1325729130, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4BDMWGVK2OXY5NVPQ4RW3WJ2LBJANCNFSM6AAAAAASJHJUUM . You are receiving this because you commented.Message ID: @.***>

PDGIII commented 1 year ago

I hate to be a pest but if you have a new image, I'm more than willing to test it.

Mr0btain commented 1 year ago

Ohh man I'm so sorry I forgot to upload it 😅🤣🤣 doing that now!

On Sun, Nov 27, 2022, 4:45 PM PDGIII @.***> wrote:

I hate to be a pest but if you have a new image, I'm more than willing to test it.

— Reply to this email directly, view it on GitHub https://github.com/Mr0btain/x13s_iso_make/issues/1#issuecomment-1328346867, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ4BDMR4GVBZE5FBKTIG7PTWKPI7DANCNFSM6AAAAAASJHJUUM . You are receiving this because you commented.Message ID: @.***>

Mr0btain commented 1 year ago

I'm having a little bit of trouble with uploading to GitHub, but if youd like to try the latest progress I've made here is a link to my Google drive folder for this. It includes an iso that "should" be pretty much universal.

Notes: make sure after install completes, click continue trying then make sure the partition where Linux was installed is mounted to /target. So you can just run sudo mount /dev/nvme0n1p4 /target

That's where my test partition is yours will likely be p2 if Linux is your only is or p5 if you have windows as well.

Ubuntu will make an entry in the efi, I haven't worked out how to stop it yet.

After you're sure /target is mounted as your Linus drive, on the desktop right click the post install bandaid 🤣 and allow launching. Then it "should" fix the grub bootloader up and add the correct entry as the default bootloader.

What doesn't work: Mobile modem, 5g modem that is Bluetooth Sound- kernel patches have been made they should have it figured out soon

Here's my Google drive folder for this stuff.

https://drive.google.com/drive/folders/1wp1-X318MCI48xCAffJtyhDRvANkAE4q

PDGIII commented 1 year ago

Sweet, I'll play with it.