02:07
tobhe has joined #ubuntu-asahi
02:14
tobhe_ has quit [Ping timeout: 480 seconds]
09:59
number0ne_ has joined #ubuntu-asahi
10:05
number0ne_ has quit [Quit: Konversation terminated!]
15:06
Paul[m] has joined #ubuntu-asahi
15:06
<
Paul[m] >
The goal for all of that is to resize my Ubuntu partition to make it bigger after I resized down my macOS partition
15:07
<
Paul[m] >
* macOS partition and I want to boot a liveusb in order to run gparted
15:07
<
Paul[m] >
Not sure if relevant but I'm on a Mac Mini M1 and the debian live is on a USB key connected to a USB-A port of my Mac Mini
15:08
<
tobhe[m] >
so you could potentially live resize it
15:08
<
tobhe[m] >
there was a change in u-boot at some point
15:08
<
tobhe[m] >
that changed all the boot commands
15:09
<
Paul[m] >
tobhe[m]: Only if the free space is right after the Linux partition no?
15:09
<
Paul[m] >
Which I guess isn't since I resized macOS to make some free space
15:09
<
tobhe[m] >
oh yeah right, that is true
15:12
<
Paul[m] >
tobhe[m]: How/where can I find the updated commands?
15:16
<
tobhe[m] >
let me see
15:24
<
Paul[m] >
After looking a bit around I couldn't figure out how to use it to boot :(
15:32
<
tobhe[m] >
let me try on mine actually
15:32
<
tobhe[m] >
i somehow thought that usb boot should even be the default
15:33
<
tobhe[m] >
i think bootdev is the command you need actually
15:34
<
tobhe[m] >
bootdev select, try to select the usb drive and then boot
15:34
<
tobhe[m] >
if it doesn't show up maybe rescan with usb start or usb reset
15:34
<
Paul[m] >
bootdev select runs without an output or error
15:34
<
tobhe[m] >
does usb show up in bootdev list?
15:35
<
Paul[m] >
Tried to run usb start and usb reset but same issue
15:35
<
tobhe[m] >
it might also be a bit picky with usb drives
15:36
<
tobhe[m] >
usb reset should show sth like 1 Storage Device found
15:36
<
tobhe[m] >
and then bootdev list should have an usb_mass entry at the end
15:41
<
Paul[m] >
Sorry for the ugly screen shot, OCR wasn't working well
15:43
<
Paul[m] >
s/usb_mass/usb_mass_/, s/usb_mass/usb_mass_/
15:44
<
tobhe[m] >
ok and now I think you can use the bootflow command to scan and boot it
15:44
<
Paul[m] >
s/usb_mass/usb_mass_/, s/usb_mass/usb_mass_/
15:44
<
tobhe[m] >
bootdev select 3
15:44
<
tobhe[m] >
bootflow scan -b
15:44
<
tobhe[m] >
or sth like that
15:44
<
Paul[m] >
s/usb_mass/usb_mass_/, s/usb_mass/usb_mass_/
15:46
<
tobhe[m] >
actually I wonder if we should tune our config. uboot supports a tui boot menu too
15:49
<
tobhe[m] >
that looks wrong. I'd expect booting ... usb_mass
15:49
<
tobhe[m] >
i guess that just boots regular ubuntu? ok
15:54
<
tobhe[m] >
I guess try bootflow scan without -b and then try to use bootflow to select the correct entry and boot that directly
15:54
<
tobhe[m] >
with bootflow boot
15:54
<
tobhe[m] >
this seems all too complicated tbh
15:55
<
tobhe[m] >
let me see if this works better with a newer uboot...
16:12
<
Paul[m] >
Ah we don't see it in that screen shot but I ran bootdev list and then bootdev select 4 before bootflow scan, bootflow list, bootflow select 0andbootflow boot`
16:12
<
tobhe[m] >
bootflow select 0
16:12
<
tobhe[m] >
and then bootflow boot
16:14
<
Paul[m] >
Ah yes that's what I did at the end
16:14
<
Paul[m] >
That's after that point that it showed a GRUB shell, dunno which one is it (from the USB key or not). Not sure how to open a GRUB menu from there
16:25
<
Paul[m] >
It just restarted so I guess something is wrong
16:28
<
tobhe[m] >
still building a new u-boot
16:31
Saviq[m] has joined #ubuntu-asahi
16:32
<
tobhe[m] >
i guess we could make it smaller
16:32
<
tobhe[m] >
probably just copied that from desktop
16:39
<
tobhe[m] >
so I have a config with bootmenu now
16:39
<
tobhe[m] >
let me update it...
16:40
<
tobhe[m] >
I still wonder if the problem might just be that u-boot doesn't like that particular drive
16:40
<
Paul[m] >
Could be...
16:41
<
Paul[m] >
But then I wonder why it manages to boot GRUB after doing the manual commands?
16:42
<
tobhe[m] >
oh right i missed that
16:42
<
tobhe[m] >
ok and grub is misconfigured
16:42
<
tobhe[m] >
I thought it was your local installation's grub
16:43
<
Paul[m] >
tobhe[m]: Hmmmmm now I'm not even sure anymore
16:43
<
Paul[m] >
I have no idea
16:58
<
tobhe[m] >
so with this new u-boot you can just type bootmenu and select the usb option
16:58
<
tobhe[m] >
uploading to ubuntu-asahi-next right now...
16:59
<
Paul[m] >
Is ubuntu-asahi-next some kind of bleeding edge ppa?
17:31
<
tobhe[m] >
to make sure things can easily be tested fore rolling them out for everyone
17:32
<
tobhe[m] >
we usually build there and then copy to the regular ppa once we are confident nothing breaks
17:35
<
Paul[m] >
How would I go to update my installed u-boot with the new version?
17:42
<
tobhe[m] >
you could just download the deb via the web interface and install it via apt install or dpkg -i
17:43
<
tobhe[m] >
or add the ppa raise the priority to 1001 in /etc/apt/preferences.d/ubuntu-asahi.pref and the update
17:49
<
Saviq[m] >
Huh! This actually worked!
17:49
<
Saviq[m] >
I have a luks-crypted Ubuntu Asahi now 🎉
17:50
<
tobhe[m] >
Saviq: I wonder if we could actually just write the ISO to disk and then have it install over itself
17:51
<
tobhe[m] >
I built an openbsd installer at one point that works like that
18:02
<
Saviq[m] >
You probably have enough space in `/boot` to keep a network installer
18:05
<
tobhe[m] >
you could also pack it all into a UKI with ramdisk + kernel and dump it on the ESP
18:17
<
Paul[m] >
Do you have a recommendation for a live image I could try alternatively?
18:21
<
Paul[m] >
Interestingly I also see two usb_mass_ devices now
18:22
<
Paul[m] >
Oh wait nvm the second one is just an SSD I plugged in the meantime
18:28
<
Paul[m] >
This appears a split second before that the GRUB shell shows up
18:29
<
Paul[m] >
I think it appears for around 1/30 of a second lol
18:29
<
Paul[m] >
s/30/30th/
18:31
<
Paul[m] >
Ok I got a better screenshot
18:31
<
Paul[m] >
I'm not sure why it tries to load kernel from hd0,msdos1...
18:39
<
Paul[m] >
When you can see from the GRUB shell that then opens that that is clearly no (hd0,msdos1) but (hd3,msdos1)
18:40
<
Paul[m] >
When you can see from the GRUB shell that shows up immediately afterwards that there is clearly no (hd0,msdos1) but (hd3,msdos1)
18:40
<
Paul[m] >
When you can see from the GRUB shell that shows up immediately afterwards that there is clearly no (hd0,msdos1) but there is a (hd3,msdos1)
18:51
checkfoc_us9 has quit []
18:54
checkfoc_us9 has joined #ubuntu-asahi
19:03
checkfoc_us9 has quit []
19:03
checkfoc_us9 has joined #ubuntu-asahi
19:23
<
Paul[m] >
But either way if I manually write `linux (hd3,msdos1)/vmlinuz` as I did before it doesn't work
20:15
<
tobhe[m] >
I suppose you could try to find the disc by uuid
20:16
<
tobhe[m] >
but at least this seems to be a bug in the image rather than u-boot now
20:18
<
tobhe[m] >
hope it works 🙂 I could try to build a new one if it doesn't
20:18
<
Paul[m] >
sudo dd if=Downloads/ubuntu-24.04-preinstalled-desktop-arm64+asahi.img of=/dev/rdisk12 bs=1m is the right way to go, right? Running this from a macOS computer
20:19
<
tobhe[m] >
assuming rdisk12 is actually the usb drive that looks correct
20:24
<
Paul[m] >
I ran `bootmenu` from U-Boot and chose the USB device. It then showed `Booting: usb 0` and then promisingly showed some Ubuntu splash/loading screen with animation that looked different from the one I'm used to with Ubuntu server. After a while it just rebooted unfortunately
20:24
<
tobhe[m] >
that would mean it got a little further and actually booted the kernel
20:24
<
tobhe[m] >
or at least started
20:25
<
tobhe[m] >
let me try to fix the debian one before I fix that though
20:25
<
tobhe[m] >
that seems easier
20:31
<
Paul[m] >
Maybe it's just a faulty USB stick?
20:31
<
Paul[m] >
(For the live Ubuntu thingie)
20:31
<
Paul[m] >
I looked around but the biggest USB key I could find is 8 GB, which I guess won't be enough (at least for the Ubuntu live image)
20:31
<
tobhe[m] >
so I think you could just run lsblk --fs to find the fs-uuid of the file system on your usb drive
20:32
<
tobhe[m] >
where UUID is whatever you found
20:32
<
tobhe[m] >
* where $UUID is
20:34
<
tobhe[m] >
on macos I think diskutil can do that too
20:39
<
tobhe[m] >
yes that worked for me
20:40
<
tobhe[m] >
fat UUID has the format XXXX-XXXX
20:41
<
Paul[m] >
<tobhe[m]> "and then:..." <- Replace `efi/debian/grub.cfg` on my Debian USB key with this right?
20:43
<
Paul[m] >
Weird error: no such device: root
20:43
<
Paul[m] >
After Loading Kernel...
20:43
<
Paul[m] >
:facepalm:
20:43
<
tobhe[m] >
that sounds like wrong uuid
20:43
<
Paul[m] >
Forgot to replace the UUID
20:50
<
Paul[m] >
Man I got that XHCI timeout on event type 0... error again
20:51
<
Paul[m] >
It randomly happens after some time while in GRUB/U-Boot
20:51
<
Paul[m] >
Was happening with the other USB key too
20:51
<
Paul[m] >
Will try to force reboot and try my luck again
20:52
<
tobhe[m] >
that is definitely a usb problem
20:57
<
Paul[m] >
Could be a bug in whatever handles USB?
20:59
<
Paul[m] >
Is it still necessary to run update-m1n1 at all or is this already done in the triggers of the U-Boot DEB you sent me?
21:06
<
tobhe[m] >
it should be done automatically on installation
21:28
<
Paul[m] >
My 3rd USB key does the same thing
21:37
<
Paul[m] >
Now I have some abort_td: Expected a TRB_TRANSFER TRB first as well (whichever comes first)
21:51
<
tobhe[m] >
that doesn't sound right
21:51
<
tobhe[m] >
I had to try 2. One didn't show up at all
21:52
<
tobhe[m] >
adding or removing bridges might help
21:54
<
tobhe[m] >
I guess at least we know u-boot works as well as the previous version, so I'll publish that
22:03
<
Paul[m] >
Ah interesting, mine all show up reliably