Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SATA is not work in Ubuntu 24.04 -- "It worked out" #817

Open
douglasdock opened this issue May 19, 2024 · 6 comments
Open

SATA is not work in Ubuntu 24.04 -- "It worked out" #817

douglasdock opened this issue May 19, 2024 · 6 comments

Comments

@douglasdock
Copy link

I can't access SATA SSD on Ubuntu 24.04

I read in a message here on the forum that it would be possible to add SATA this way:

added 'overlays=sata' to /boot/firmware/ubuntuEnv.txt

But I can't find the location or the file.

@hakotani-o
Copy link

Hello, douglasdock.

How to SATA boot orange pi 5

  1. Write ubuntu-22.04-preinstalled-desktop-arm64-orangepi-5.img.xz to the SD card.
  2. Insert SD card into orange pi 5 and boot
  3. Run sudo u-boot-install-sata-mtd.
  4. Download ubuntu-22.04-preinstalled-desktop-arm64-orangepi-5.img.xz.
  5. Write ubuntu-22.04-preinstalled-desktop-arm64-orangepi-5.img.xz to /dev/sda.
  6. Mount /dev/sda1 to /mnt.
    sudo mount /dev/sda1 /mnt
    7 Add two lines to /mnt/etc/default/u-boot.
    U_BOOT_FDT="device-tree/rockchip/rk3588s-orangepi-5.dtb"
    U_BOOT_FDT_OVERLAYS="device-tree/rockchip/overlay/orangepi-5-sata.dtbo"
  7. Edit /mnt/boot/extlinux/extlinux.conf.
    fdt /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
    fdtoverlays /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/overlay/orangepi-5-sata.dtbo
    Add.

I think it will look like this after editing:
I think the UUIDs are different.

label l0
menu label Ubuntu 24.04 LTS 6.1.0-1013-rockchip
linux /boot/vmlinuz-6.1.0-1013-rockchip
initrd /boot/initrd.img-6.1.0-1013-rockchip
fdt /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
fdtoverlays /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/overlay/orangepi-5-sata.dtbo
append root=UUID=e7c855d5-7db6-4bea-a77e-438fd2afefa8 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memoryquiet splash plymouth.ignore-serial-consoles

  1. sudo umount /mnt and power off
  2. Remove the SD card.
  3. power on

@douglasdock
Copy link
Author

Hi, how are you? Thank you for your help and work.
I'm trying to do the tutorial above, but I can't do the command:

"sudo mount /dev/sda1 /mnt"

When I run the command it returns:
"mount: /mnt: special device /dev/sda1 does not exist.
dmesg(1) may have more information after failed mount system call."

I don't know what to do, if it's possible and anyone has any ideas, I'll be grateful.

Screenshot from 2024-05-26 01-12-30

@douglasdock
Copy link
Author

douglasdock commented May 26, 2024

And if I use the official Ubuntu image of the orange pi 5, I can identify the SSD and execute the command:

sudo mount /dev/sda1 /mnt

Captura de tela_2024-05-26_01-28-45

Here in the official system I can activate the SSD by going to:

orangepi-config

System settings / Hardware / ssd-sata0

Captura de tela de 2024-05-26 01-39-44

@douglasdock
Copy link
Author

Bom dia amigo, tudo bem?
Eu utilizei o sistema oficial para conseguir editar como falado no tutorial a cima:

para conseguir editar os arquivos eu usei os seguintes comandos:

sudo nano /mnt/etc/default/u-boot
sudo nano /mnt/boot/extlinux/extlinux.conf

Captura de tela_2024-05-26_09-19-08

### And it worked!

Thank you very much and here's a tip for anyone having problems.

@douglasdock douglasdock changed the title SATA is not work in Ubuntu 24.04 SATA is not work in Ubuntu 24.04 -- "It worked out" May 26, 2024
@digby5
Copy link

digby5 commented May 31, 2024

noticed that extlinux.conf. points to 1013 device-tree even though 1014 is installed on my system. i see the 1014 directory available. is this a bug or intended?

@hakotani-o
Copy link

hakotani-o commented Jun 1, 2024

Hello.
My orange pi 5 is running ubuntu-rockchip , not oficial.

ubuntu@ubuntu:~$ cat /boot/extlinux/extlinux.conf
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
# The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update

default l0
menu title U-Boot menu
prompt 1
timeout 20

label l0
menu label Ubuntu 24.04 LTS 6.1.0-1014-rockchip
linux /boot/vmlinuz-6.1.0-1014-rockchip
initrd /boot/initrd.img-6.1.0-1014-rockchip
fdt /lib/firmware/6.1.0-1014-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
fdtoverlays /lib/firmware/6.1.0-1014-rockchip/device-tree/rockchip/overlay/orangepi-5-sata.dtbo
append root=UUID=a3b00cb3-ba66-4706-a9d3-f7c99c185d98 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memoryquiet splash plymouth.ignore-serial-consoles

label l0r
menu label Ubuntu 24.04 LTS 6.1.0-1014-rockchip (rescue target)
linux /boot/vmlinuz-6.1.0-1014-rockchip
initrd /boot/initrd.img-6.1.0-1014-rockchip
fdt /lib/firmware/6.1.0-1014-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
append root=UUID=a3b00cb3-ba66-4706-a9d3-f7c99c185d98 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memoryquiet splash plymouth.ignore-serial-consoles single

label l1
menu label Ubuntu 24.04 LTS 6.1.0-1013-rockchip
linux /boot/vmlinuz-6.1.0-1013-rockchip
initrd /boot/initrd.img-6.1.0-1013-rockchip
fdt /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
fdtoverlays /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/overlay/orangepi-5-sata.dtbo
append root=UUID=a3b00cb3-ba66-4706-a9d3-f7c99c185d98 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memoryquiet splash plymouth.ignore-serial-consoles

label l1r
menu label Ubuntu 24.04 LTS 6.1.0-1013-rockchip (rescue target)
linux /boot/vmlinuz-6.1.0-1013-rockchip
initrd /boot/initrd.img-6.1.0-1013-rockchip
fdt /lib/firmware/6.1.0-1013-rockchip/device-tree/rockchip/rk3588s-orangepi-5.dtb
append root=UUID=a3b00cb3-ba66-4706-a9d3-f7c99c185d98 rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memoryquiet splash plymouth.ignore-serial-consoles single

ubuntu@ubuntu:~$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants