ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

Support for Hardkernel Odroid M1 (RK3568B2)

Open Dr3nz4r opened this issue 1 year ago • 9 comments

Hi there, first of all awesome project youre doing the gods work 🙏

is there an option to make a 22.04/24.04 for the odroid m1 with hardware video and npu support for tools like jellyfin/plex/immich ?

I'm happy to give you a sponsor as well for your efforts

Dr3nz4r avatar Jul 13 '24 20:07 Dr3nz4r

I really need put a disclaimer when it comes to asking me to support new hardware, there have been too many requests.

I work on boards that I find interesting, and when I do find interesting hardware I reach out to the company and hope they can send me a sample as I cant afford all these boards. People don't understand the development time that is required when adding support for new hardware it's quite a large commitment on my part. Additionally I do not get paid for my work, this entire project is just a hobby. Because this project is getting so large and there is a lot of hardware that I do not have a significant interest in, I will require someone to fund the development process, this will not be cheap.

But I'm happy to accept any pull request if someone else wants to add support for new hardware.

Joshua-Riek avatar Jul 16 '24 00:07 Joshua-Riek

Totally get you. Just noticed that you have other rk35xx boards in there already and thought it might be just a few kernel options away 👀 sorry but I'm a total noob who bought an sbc from a company that doesn't maintain any of the software. Dumb choice in hindsight

Dr3nz4r avatar Jul 16 '24 11:07 Dr3nz4r

Normally, I can port a board in a few hours. But it depends on the hardware components used and how well the drivers work as sometimes there can be incompatibilities, I've found time and time again that companies are using new hardware components that do not have good driver or software support and this can be very time consuming.

Joshua-Riek avatar Jul 16 '24 13:07 Joshua-Riek

If you need anything, i have it running and can dump you anything you need or make pictures of the pcb if that helps

Dr3nz4r avatar Jul 16 '24 13:07 Dr3nz4r

I'm also interested in getting this board working. Are there any instructions on how to build the Ubuntu images from sources? If I can do that, then I'll create a pull request with the needed changes to resolve this issue.

koutheir avatar Sep 04 '24 14:09 koutheir

FYI, I flashed ubuntu-24.04-preinstalled-desktop-arm64-roc-rk3588s-pc.img.xz (release v2.3.1) just to try it out. Booting failed with the following serial console output:

...
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
1063 bytes read in 20 ms (51.8 KiB/s)
U-Boot menu
1:	Ubuntu 24.04 LTS 6.1.0-1023-rockchip
2:	Ubuntu 24.04 LTS 6.1.0-1023-rockchip (rescue target)
Enter choice: 1:	Ubuntu 24.04 LTS 6.1.0-1023-rockchip
Retrieving file: /boot/initrd.img-6.1.0-1023-rockchip
22304079 bytes read in 1878 ms (11.3 MiB/s)
Retrieving file: /boot/vmlinuz-6.1.0-1023-rockchip
53680640 bytes read in 4496 ms (11.4 MiB/s)
append: root=UUID=348e79d2-40ba-4792-ae34-947783823bac rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory quiet splash plymouth.ignore-serial-consoles
Retrieving file: /lib/firmware/6.1.0-1023-rockchip/device-tree/rockchip-odroid-m1.dtb
** File not found /lib/firmware/6.1.0-1023-rockchip/device-tree/rockchip-odroid-m1.dtb **
Skipping l0 for failure retrieving fdt
2:	Ubuntu 24.04 LTS 6.1.0-1023-rockchip (rescue target)
Retrieving file: /boot/initrd.img-6.1.0-1023-rockchip
22304079 bytes read in 1878 ms (11.3 MiB/s)
Retrieving file: /boot/vmlinuz-6.1.0-1023-rockchip
53680640 bytes read in 4497 ms (11.4 MiB/s)
append: root=UUID=348e79d2-40ba-4792-ae34-947783823bac rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory splash plymouth.ignore-serial-consoles single
Retrieving file: /lib/firmware/6.1.0-1023-rockchip/device-tree/rockchip-odroid-m1.dtb
** File not found /lib/firmware/6.1.0-1023-rockchip/device-tree/rockchip-odroid-m1.dtb **
Skipping l0r for failure retrieving fdt
SCRIPT FAILED: continuing...
...

koutheir avatar Sep 04 '24 14:09 koutheir

@Joshua-Riek, is there any documentation or pointers on how to do this porting?

koutheir avatar Sep 06 '24 17:09 koutheir

Ubuntu has little to no documentation for building the operating system. Most of everything I have done and know has been because of some form of reverse engineering over a long period of time.

So my only pointer is to dump hours of your life into the code and figure it out.

Joshua-Riek avatar Sep 06 '24 18:09 Joshua-Riek

I see. Thank you for your efforts.

koutheir avatar Sep 06 '24 18:09 koutheir

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!

github-actions[bot] avatar Nov 29 '24 18:11 github-actions[bot]

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!

github-actions[bot] avatar Jan 20 '25 12:01 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Feb 10 '25 12:02 github-actions[bot]