Jump to content

Recommended Posts

Posted

Thanks to g4751 for doing the tests for Odroid-HC4. The tests for the Odroid-C2 were performed by myself. Tests were performed on Armbian 24.08 Official releases.

 

Fix is to add a section to the DTB to enable a recently (last year) added kernel driver "meson64-reboot" that is an updated version of the "odroid-reboot" in older kernels.

 

For Odroid-C2:

 

- save your existing DTB

- use DTC to convert DTB->DTS

- modify the DTS with the code below

- use DTC to convert DTS->DTB

- reboot (will fail because new DTB not loaded yet)

- POR (will now load the new DTB)

- log-in

- reboot should now work.

 

 

Quote

Add the following under the stock "gpio-regulator-tf_io {....}":

 

meson64-reboot {
    compatible = "meson64,reboot";
    sys_reset = <0x84000009>;
    sys_poweroff = <0x84000008>;
    sd-vqsw = <0x39 0x03 0x00>;
    sd-vmmc = <0x23 0x57 0x00>;
};

 

 

 For Odroid-HC4:

 

- save your existing DTB

- use DTC to convert DTB->DTS

- modify the DTS with the code below

- use DTC to convert DTS->DTB

- reboot (will fail because new DTB not loaded yet)

- POR (will now load the new DTB)

- log-in

- reboot should now work.

 

 

Quote

Add the following under the stock "gpio-regulator-tf_io {....}":

 

meson64-reboot {
    compatible = "meson64,reboot";
    sys_reset = <0x84000009>;
    sys_poweroff = <0x84000008>;

    sd-vqen = <0x44 0x0e 0x00>;
    sd-vqsw = <0x44 0x06 0x00>;
    sd-vmmc = <0x44 0x03 0x00>;
};

 

 

Notes:

- As far as I know, only the Odroid -C4 has an Armbian patch to do the above automatically for each release.

- For others, updates may overwrite the DTB and you'll need to perform this fix again. In theory, DTB changes are fairly rare.

 

 

 

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines