User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 1:41 pm

BobbeNa wrote:
Fri Aug 07, 2020 11:02 pm
...I want to try to fix the sound anytime I shutdown or reboot as you can see in the picture there's two sounds for output available. It defaults to the top one, but there's no sound unless you go in and reset it to the second one. Can you please tell me how to make it permanently use the second one and disregard the first one.
This is a generic Ubuntu (and not only Ubuntu) issue, which can be solved in a number of ways.
Look, for example, at How do you set a default audio output device in Ubuntu 18.04? for one of the solutions.

You can also try to simply disable the audio channel you are not using under Sound preferences/Hardware.
Last edited by loboris on Sun Aug 09, 2020 2:20 pm, edited 1 time in total.

dror_israel
Posts: 10
Joined: Tue Oct 22, 2019 6:47 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 1:53 pm

eeprom update image has nothing to to with the operating system. It just updates the RPi4 eeprom. You don't need to do it if your RPi4 eeprom was already programmed with the latest firmware.
I don't think it works for me...
I get [end kernel] panic - not syncing : No working init found. Try passing init=option to kernel.

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 2:19 pm

dror_israel wrote:
Sun Aug 09, 2020 1:53 pm
I don't think it works for me...
I get [end kernel] panic - not syncing : No working init found. Try passing init=option to kernel.
I can only repeat: eeprom update image has only one purpose, to update the RPi4 eeprom and contains no operating system, so kernel panic is expected.

Use the image from the 1st post to flash the Ubuntu Mate operating system to the usb ssd, hd, sd...

dror_israel
Posts: 10
Joined: Tue Oct 22, 2019 6:47 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 2:32 pm

this is what I get.
Untitled-1.jpg
Untitled-1.jpg (76.55 KiB) Viewed 794 times

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 3:00 pm

dror_israel wrote:
Sun Aug 09, 2020 2:32 pm
this is what I get...
So, you have the eeprom not supporting USB boot.
Do the following steps:
  • Download eeprom update image
  • Flash this image to the SDCard (any >= 1GB will do) with Raspberry Pi Imager or other image flashing program
  • Insert SDCard into the microSD card slot of your RPi4 and power on
  • RPi4 eeprom will be updated and RPi rebooted, as there is no OS on SDCard, only kernel will be started and halted with kernel panic, this is expected
  • Power off your RPi4 and remove SDCard
  • Power on you RPi without SD card or any USB storage attached to test if the eeprom was updated, you should get something like this:
    piboot.jpg
    piboot.jpg (190.69 KiB) Viewed 784 times
After that you can flash raspi_ubuntu_focal_arm64_btrfs.img.xz directly to USB SSD, USB HD or SDCard in USB reader, connect the USB device to RPi4 USB3 port and boot.

dave2000
Posts: 4
Joined: Sat Jun 27, 2020 9:52 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 3:12 pm

I'm having trouble getting sound to work via HDMI. Under Sound Preferences -> Hardware, I see two devices listed (both "Built-In Audio" with the choice of stereo/multichannel/mono output) but no HDMI. Any suggestions would be appreciated.

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 3:23 pm

dave2000 wrote:
Sun Aug 09, 2020 3:12 pm
I'm having trouble getting sound to work via HDMI. Under Sound Preferences -> Hardware, I see two devices listed (both "Built-In Audio" with the choice of stereo/multichannel/mono output) but no HDMI. Any suggestions would be appreciated.
One of them is HDMI output the other is Headphones, try to select either the 1st or the 2nd one under Sound Preferences -> Output, to determine which one is HDMI.
Note that it may take 1-2 seconds (depending on your monitor) for HDMI sound to be switched on...

dave2000
Posts: 4
Joined: Sat Jun 27, 2020 9:52 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 4:42 pm

loboris wrote:
Sun Aug 09, 2020 3:23 pm
dave2000 wrote:
Sun Aug 09, 2020 3:12 pm
I'm having trouble getting sound to work via HDMI. Under Sound Preferences -> Hardware, I see two devices listed (both "Built-In Audio" with the choice of stereo/multichannel/mono output) but no HDMI. Any suggestions would be appreciated.
One of them is HDMI output the other is Headphones, try to select either the 1st or the 2nd one under Sound Preferences -> Output, to determine which one is HDMI.
Note that it may take 1-2 seconds (depending on your monitor) for HDMI sound to be switched on...
Great, thanks. Simply switched to the second device and HDMI sound is working.

dror_israel
Posts: 10
Joined: Tue Oct 22, 2019 6:47 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sun Aug 09, 2020 7:08 pm

After that you can flash raspi_ubuntu_focal_arm64_btrfs.img.xz directly to USB SSD, USB HD or SDCard in USB reader, connect the USB device to RPi4 USB3 port and boot
Thanks.

I managed to boot the img from the usb drive.

If I will use the image from ubuntu site will it work as well?

I have trouble installing minecraft, any idea how to do that?

lvramanan
Posts: 5
Joined: Mon Aug 10, 2020 5:38 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 10, 2020 5:57 am

loboris wrote:
Wed Aug 05, 2020 11:55 am
Anyway, try with quirks, other than that I don't know what to suggest.
BTW, the ssd and partitions are always detected, even if UAS is not working properly, reading small chunks of data still works without errors.
For example sudo dd if=/dev/sda of=/dev/null bs=10k count=10000 iflag=direct status=progress will always finish without errors.

According to this your ssd supports uas.
I'm having the exact same issue as @Khurram.
boot_error.jpg
boot_error.jpg (43.07 KiB) Viewed 624 times
I'm using a old G.Skill 60GB SATA SSD attached to a SATA-USB controller.

My Device ID is from lsusb and it seems to support uas.
Bus 005 Device 005: ID 174c:55aa ASMedia Technology Inc. Name: ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge, ASM1153E SATA 6Gb/s bridge
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=uas, 480M
I added the quirks in cmdline.txt. But still no luck.
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=PARTUUID=df5dfe13-02 rootfstype=btrfs rootflags=subvol=raspi_ubuntu elevator=deadline rootwait usbhid.mousepoll=0 usb-storage.quirks=174c:55aa:u
I've been able to boot the Raspberry Pi OS with the same device. Any idea what could be the issue ? Thanks in advance.

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 10, 2020 2:39 pm

lvramanan wrote:
Mon Aug 10, 2020 5:57 am
I'm using a old G.Skill 60GB SATA SSD attached to a SATA-USB controller.

My Device ID is from lsusb and it seems to support uas.
I added the quirks in cmdline.txt. But still no luck.
I've been able to boot the Raspberry Pi OS with the same device. Any idea what could be the issue ? Thanks in advance.
There should be no difference between RaspberryPi OS and this Ubuntu image related to USB drivers, as the usb drivers are provided by the kernel which is the same.
You can try to boot from USB2, if it boots, then the problem is with uas, and it should work on USB3 with quirks...

Have you been able to boot the Raspberry Pi OS (arm64) with kernel 5.4 from your SSD attached to USB3 port?
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=uas, 480M
This is USB2 port! 480M should be 5000M.

lvramanan
Posts: 5
Joined: Mon Aug 10, 2020 5:38 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 10, 2020 3:09 pm

loboris wrote:
Mon Aug 10, 2020 2:39 pm
There should be no difference between RaspberryPi OS and this Ubuntu image related to USB drivers, as the usb drivers are provided by the kernel which is the same.
You can try to boot from USB2, if it boots, then the problem is with uas, and it should work on USB3 with quirks...

Have you been able to boot the Raspberry Pi OS (arm64) with kernel 5.4 from your SSD attached to USB3 port?
/: Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/4p, 480M
|__ Port 1: Dev 5, If 0, Class=Mass Storage, Driver=uas, 480M
This is USB2 port! 480M should be 5000M.
No luck with USB 2 either. I connected the SATA to USB controller on my PC's USB port to check the device ID and other info hence you see it as USB2. My bad I should've mentioned it clearly.

No I've not yet tried Raspberry Pi OS (arm64) with kernel 5.4. I tried with the 32 bit Raspberry Pi OS Desktop version, having kernel version 4.19 released on 2020-05-27. Let me try with the version you've suggested.

lvramanan
Posts: 5
Joined: Mon Aug 10, 2020 5:38 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 10, 2020 4:11 pm

lvramanan wrote:
Mon Aug 10, 2020 3:09 pm
Let me try with the version you've suggested.
Quick update: Tried installing the 64 bit version of Raspberry Pi OS with kernel 5.4.42-v8+ and it boots up and loads just fine. I can see the desktop and use Chrome and other stuff.

Dumb question, could the USB drivers be copied manually to your Ubuntu mate image will that work by any chance ?

Thanks in advance and appreciate your inputs :)

dwpzn
Posts: 1
Joined: Wed Aug 12, 2020 11:32 am

Ubuntu Mate arm64 RaspberryPi 4 image

Wed Aug 12, 2020 11:34 am

Whomever you are, thank you.

No issues for me deploying and as others confirm much better than the standard one.

senpaidev
Posts: 5
Joined: Sun Oct 06, 2019 8:25 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Wed Aug 12, 2020 3:05 pm

Installed this on my Rpi 4B 4GB with a Samsung Evo plus 64GB card last Saturday and it is honestly the best 3rd Party OS I've had on my raspberry pi yet. I have tried Ubuntu 20.04 Official and MATE official images as before and the end results for both were disastrous. This has been the most straightforward deployment for me, second only to Raspbian or Raspberry Pi OS. I have been able to port of almost my entire setup from Raspbian which runs on docker, other than some key management issues. One thing I miss the most is the ability to use VNC as easily as Raspbian or something, but it is something that I can live without for now as due to the lockdown I am not leaving my house anyways. But yes, it is a feature I am looking forward to in the future.

Thank you very much for this image, hopefully the official images pick up some of the changes you have made and use them. Is there any solution available for getting RDP or VNC to work on the same session? I kinda need it to monitor some tasks or quickly modify some scripts and rest, without having to bother with vim or nano.

RetiredMike
Posts: 2
Joined: Fri Aug 07, 2020 8:07 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Wed Aug 12, 2020 3:15 pm

I bought a 128 gb micro sd and installed the Ubuntu Mate img file per instructions given here ( dd command line no less). It works perfect, and nice 64 bit o.s. with full desk top programs and usage. It was far easier to get the printer (Brother HL3075) going than on Raspbain. The audio switching was not obvious, perhaps that needs more "center stage" for most of us. The choices looked generic, 3 choices for me all looked identical. I went through choices one at a time until my TV on the 2nd HDMI port sprang to life with audio. Audio on the Raspbian is not reliable, and settings don't "keep".

With Mate, It performs very well so job WELL DONE to all involved in porting Mate Ubuntu to the Pi 4. I have had it less than a week. (the 8gig model) I am happy with this tiny computer. Excellent hobby project and great potential for those. To all the crew involved with the Mate porting, excellent job.

Me: Retired circuit board designer and EET. First computer was IMSAI 8080 in 1978. (built from kit). Excellent!

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Wed Aug 12, 2020 3:38 pm

senpaidev wrote:
Wed Aug 12, 2020 3:05 pm
Is there any solution available for getting RDP or VNC to work on the same session? I kinda need it to monitor some tasks or quickly modify some scripts and rest, without having to bother with vim or nano.
You can look at this post, I think x2go is far better solution.
This repy also has some info about attaching to the running session.

If you only need to look at some files or edit them, you can start ssh session with -X option. Then you can start pluma or other graphical editor (in fact you can start any X program), no need to edit with vim or nano...

BTW, RDP or VNC should work on this image the same way they work on any Ubuntu instalation (on any architecture), with the same issues..

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Wed Aug 12, 2020 3:58 pm

RetiredMike wrote:
Wed Aug 12, 2020 3:15 pm
Me: Retired circuit board designer and EET. First computer was IMSAI 8080 in 1978. (built from kit).
My first computer was built in 1976 (with RCA1802 microprocessor).
vintage-70s-netronics-elf-ii-computer.jpg
vintage-70s-netronics-elf-ii-computer.jpg (149.25 KiB) Viewed 431 times
256 bytes of RAM, later I've added 4 KB of RAM (a board ~4 x the size of the RPi board) and added a FORTH interpreter.
Couple of years later I've designed and built an 8086 computer (all boards designed and produced at home) with my own OS...
The good old days.

aronwp
Posts: 1
Joined: Sat Aug 15, 2020 5:52 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Sat Aug 15, 2020 6:11 pm

Does this support dual monitors? I can't get it to work on both displays using a pi4 8gb. Raspbian and mate both work without issues while this image does not detect the second display. The second display is rainbow color.


Side note for anyone that has issues booting from USB even after the eprom update make sure you try another enclosure or usb stick. I couldn't boot from usb from the inateck enclosure and multiple Samsung pro's but it booted fine from a cheap micro sd to USB adapter.

NicknDi
Posts: 12
Joined: Tue Jul 07, 2020 9:47 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 8:42 am

loboris wrote:
Sun Jul 19, 2020 5:56 pm
NicknDi wrote:
Sun Jul 19, 2020 5:46 pm
How do updates work?
My repository is already added, you don't need to do anything.

For updates and other software instalation I would recommend the included Synaptic package manager, it is simpler than working with apt from command line.
I recently got a message saying updates were available, so clicked to go ahead, but then got another message saying there wasn't enough space in the boot partition. I'm running from a 500gb ssd so I took that to my main desktop to use gparted to resize the boot partition. For the first time ever (I've always found gparted extremely reliable), something went wrong in the process and the boot partition has become corrupted.

Question 1: Is the size of the boot partition determined within the installation image? I don't recall doing anything re partitions - I just flashed the image as far as I recall. So does there need to be a tweak to the boot partition size to accommodate later updates?

Question 2: From where does that "updates are available" (not necessarily the exact wording) originate? Should I have ignored it?

Question 3: To save me starting again from scratch, having the RPi4 nicely set up now, is there a way I can reflash just the boot partition and leave the rootfs partition intact? If so, what would be the easiest or safest way of doing that?

Once again, thanks, loboris, for this great software project!

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 9:33 am

NicknDi wrote:
Mon Aug 17, 2020 8:42 am
I recently got a message saying updates were available, so clicked to go ahead, but then got another message saying there wasn't enough space in the boot partition.
This was already explained (here).

The message originates from update manager which checks for updates in regular intervals (I think it is set to 1 week, you can change it or disable).

Do the first update using apt from command line

Code: Select all

sudo apt update
sudo apt upgrade
after that there will be no more errors when upgrading from update manager...

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 9:40 am

aronwp wrote:
Sat Aug 15, 2020 6:11 pm
Does this support dual monitors?
There should be no reason why dual monitor would not work.
I think I have tested it, but I'm not using it regularry. I'll check it again...

NicknDi
Posts: 12
Joined: Tue Jul 07, 2020 9:47 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 9:53 am

loboris wrote:
Mon Aug 17, 2020 9:33 am
NicknDi wrote:
Mon Aug 17, 2020 8:42 am
I recently got a message saying updates were available, so clicked to go ahead, but then got another message saying there wasn't enough space in the boot partition.
This was already explained (here).

The message originates from update manager which checks for updates in regular intervals (I think it is set to 1 week, you can change it or disable).

Do the first update using apt from command line

Code: Select all

sudo apt update
sudo apt upgrade
after that there will be no more errors when upgrading from update manager...
Thank you! I'm kicking myself I hadn't properly taken in that earlier post you've pointed me to.

Is there a way to re-flash just the boot partition, or will I have to start again from scratch?

User avatar
loboris
Posts: 61
Joined: Sun May 10, 2020 10:18 pm

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 10:19 am

NicknDi wrote:
Mon Aug 17, 2020 9:53 am
Is there a way to re-flash just the boot partition, or will I have to start again from scratch?
Why would you want to change boot partition? You can access files on it (read, write delete...).

If you want to change the boot partition size, you can do that with gparted, but you must first boot from a different drive.
To increase the boot partition size, first resize (shrink) the rootfs partition, then move it to free some space for boot partition. then expand the boot partiton.
Moving the rootfs partition will take some time as all data must be rewritten...

You can also backup/restore your system to your PC using rsync:
Mount boot & rootfs partition from your RPi sdcard/USB on your PC, then execute:

Code: Select all

sudo rsync -r -t -p -o -g -x --delete-after -l -H -D --numeric-ids -s -W -S --inplace -h -h --info=name0 --info=progress2 <boot_partiton_mount>/ <boot_backup folder>/
sudo rsync -r -t -p -o -g -x --delete-after -l -H -D --numeric-ids -s -W -S --inplace -h -h --info=name0 --info=progress2 <rootfs_partiton_mount>/ <rootfs_backup folder>/
sudo sync
Unmount your RPi sdcard/USB and reformat as you want (you can also add the swap partition), mount the boot&rootfs again and restore:

Code: Select all

sudo rsync -r -t -p -o -g -x --delete-after -l -H -D --numeric-ids -s -W -S --inplace -h -h --info=name0 --info=progress2  <boot_backup folder>/ <boot_partiton_mount>/
sudo rsync -r -t -p -o -g -x --delete-after -l -H -D --numeric-ids -s -W -S --inplace -h -h --info=name0 --info=progress2 <rootfs_backup folder>/ <rootfs_partiton_mount>/
sudo sync
You will also need to change the partitions IDs (and rootfs filesystem type, if changed) in cmdline.txt and fstab.

NicknDi
Posts: 12
Joined: Tue Jul 07, 2020 9:47 am

Re: New Ubuntu Mate arm64 RaspberryPi 4 image

Mon Aug 17, 2020 11:30 am

loboris wrote:
Mon Aug 17, 2020 10:19 am
NicknDi wrote:
Mon Aug 17, 2020 9:53 am
Is there a way to re-flash just the boot partition, or will I have to start again from scratch?
Why would you want to change boot partition? You can access files on it (read, write delete...).

If you want to change the boot partition size, you can do that with gparted, but you must first boot from a different drive.
To increase the boot partition size, first resize (shrink) the rootfs partition, then move it to free some space for boot partition. then expand the boot partiton.
Moving the rootfs partition will take some time as all data must be rewritten...
You possibly missed the intro to my earlier post: after successfully resizing the rootfs partition, something went wrong when I then tried to resize the boot partition (not realising I didn't need to, having not absorbed the info you've re-pointed me to) and the boot partition is now corrupted as something went wrong in the gparted resizing process. I got a warning from gparted and the RPi no longer boots successfully from the ssd; it gets part of the way then stops with various error messages.

I'm interested, out of a desire to learn, as to whether and how one could reflash just the boot partition from an .img file, but I now realise it's little trouble to simply back up the home folder from the rootfs partition, reflash the entire drive and then restore the home folder. Process underway.

Thanks, though, for the additional guidance re backing up, which is helpful to me and others no doubt.

Return to “Ubuntu”