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

First boot on H96 Max M1 #7

Open
MrNonoss opened this issue Apr 15, 2024 · 13 comments
Open

First boot on H96 Max M1 #7

MrNonoss opened this issue Apr 15, 2024 · 13 comments

Comments

@MrNonoss
Copy link

Hi,
Thanks for the great stuff here.
I successfully built the image and updates the u-boot on my H96 Max M1 garbage android TV.

From what I read, I must first setup an SSH connection before being able to configure armbian.
Since there is no ethernet port on this device, and the wifi driver is not fine, how did you managed? USB to ethernet adapter?

Thank you for your help

@ilyakurdyukov
Copy link
Owner

Ethernet adapter. But the HDMI driver is completely broken in the latest legacy sources of Armbian. The last time HDMI worked was at the end of 2023, since then I haven't rebuilt the image for a long time. When I rebuilt the image in March, the HDMI was broken.

But it is possible to build a 6.1 kernel where HDMI and HDMI audio work, but the Ethernet driver on the DQ08 does not work. But this is not your problem as the H96 Max M1 does not have an Ethernet port.

./compile.sh build BOARD=mangopi-m28k BRANCH=vendor BUILD_DESKTOP=yes BUILD_MINIMAL=no DESKTOP_APPGROUPS_SELECTED= DESKTOP_ENVIRONMENT=xfce DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base KERNEL_CONFIGURE=no KERNEL_GIT=shallow RELEASE=jammy

Better use my .dtb (looks like HDMI audio requires some settings copied from the mangopi-m28k device tree to work), but .dtb from mangopi-m28k sort of works. The newer version asks for the root password from the screen rather than via Ethernet.

@ilyakurdyukov
Copy link
Owner

And don't try to install Armbian on EMMC, you have a high chance of bricking the TV-box.

@ilyakurdyukov
Copy link
Owner

./compile.sh build BOARD=mangopi-m28k BRANCH=vendor

But I forgot that the build with the new kernel still needs this patch, otherwise there is a high chance that it will not boot at all.

@MrNonoss
Copy link
Author

Awesome,
Thanks for your reply.

So, I'm going to compile this way.
Just to be sure, are you referring to a .precompiled .dtb?
The patch is already included right?

@ilyakurdyukov
Copy link
Owner

So that I don't have to explain, it's easier to build the legacy image according to my instructions, take U-Boot from it and write it in EMMC. (Anyway, try booting the legacy image from flash drive to see if it works.) Then build the mangopi-m28k image and write it to a flash drive.

@MrNonoss
Copy link
Author

Thank you a lot.
I have it up and running.
Just need to figure out how to setup wifi now. Looks like no driver is onboarded

@fujianzz
Copy link

My box is my H96 Max M7,wifi module is HCY6355->AP6335-> BCM4339
rmmod brcmfmac
insmod brcmfmac.ko debug=0x0120000e
dmesg |grep brcmfmac
error is cypress/cyfmac4339-sdio.bin not exists。

Copy the content of /lib/firmware/brcm/ to /lib/firmware/cypress
rename brcmfmac4339-sdio.bin and brcmfmac4339-sdio.txt to cyfmac4339-sdio.bin and cyfmac4339-sdio.txt respectively.
execute modprobe

@MrNonoss
Copy link
Author

insmod brcmfmac.ko debug=0x0120000e

user@mangopi-m28k:~$ sudo insmod brcmfmac.ko debug=0x0120000e
insmod: ERROR: could not load module brcmfmac.ko: No such file or directory

dmesg |grep brcmfmac

[  412.719459] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac4334-sdio.txt failed with error -2
[  413.737143] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
[  419.243025] usbcore: deregistering interface driver brcmfmac
[  750.271033] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4334-sdio for chip BCM4334/3
[  750.271588] usbcore: registered new interface driver brcmfmac
[  750.274059] brcmfmac mmc2:0001:1: Direct firmware load for brcm/brcmfmac4334-sdio.mangopi,m28k.bin failed with error -2

Looks like something else is messing up.
Thanks again for your kind help on this.

@fujianzz
Copy link

the H96 Max M7 dtb
H96_MAX_M7_DTB.zip
With this DTB, I can drive WLAN, but there is no HDMI display

@fujianzz
Copy link

I edit my dtb,you can give it a try,
rk3528-h96max-m7.zip
, now HDMI can display and wlan0 is work. But there are other errors as well, such as:
[ 27.706806] Call trace:
[ 27.706811] __reset_control_get_internal+0x90/0x144
[ 27.706823] __of_reset_control_get+0x158/0x1a8
[ 27.706833] rk_gmac_probe+0x55c/0x7f4
[ 27.706843] platform_probe+0x70/0xc0
[ 27.706855] really_probe+0x1cc/0x390
[ 27.706863] __driver_probe_device+0x140/0x158
[ 27.706872] driver_probe_device+0x48/0xd0
[ 27.706881] __device_attach_driver+0xd8/0x128
[ 27.706890] bus_for_each_drv+0xa0/0xc8

@MrNonoss
Copy link
Author

Wow, awesome,
I will take a look at this.

Really helpful. Thanks

@d5stick
Copy link

d5stick commented Jul 25, 2024

Maybe someone in this thread can help me. I got the H96MAX M2 box working with the 6.1 kernel and used the Mango DTB.
Only WIFI is not working, it has the AIC8800 chip. Full thread and info here: LINK

I want to thank ilyakurdyukov for his effort and guidance for me to continue to get this box a running with Armbian.

@ilyakurdyukov
Copy link
Owner

Only WIFI is not working, it has the AIC8800 chip.

Try searching for AIC8800 fixes for other Rockchip devices. I wonder if this is related.

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

4 participants