Jump to content

Repurpose a TV Box Allwinner H313 (similar to H96 Max) to boot secure image


Recommended Posts

Posted

Newbie on Armbian.

 

I have an Allwinner H313 (confirmed) box that I want to to use as a basic Samba server.

 

 CPU:Allwinner H313Quad Core ARM Cortex A53 
 GPU:Mali-G31 OPenGL ES3.2
 Memory:2GB
 Flash:16GB
 OS:Android 10.0

 

The actual firmware is a secure image and, no matter what procedure I do, I can't  load any other image but

the secure one.

 

Debugging shows that 'fastbootd' has the "secure" flag set.

 

My intention is to create a  basic secure arm64 Debian image but I am having a hard time in doing so.

 

Any ideas (specific Wiki, procedures) on how to create the secure image or "reset" the "secure" flag will be very appreciated.

 

Thanks in advance. 

Posted

On a first analysis, I noticed that the git already has a very similar option that I need (H313):

~/build/patch/u-boot/u-boot-sunxi/board_x96q$

   arm64-sun50i-h313-add-x96q-lpddr3-defconfig.patch
   sunsi-add-h616-internal-eth-phy-support.patch

 

so I am stuck on how to proceed because the example has H616 parameters.

 

Help will be appreciated.

 

 

Posted (edited)

@Sergioclr H313/H616/H618  and IK316 are basically the same SOC’s. To boot an image you need the correct AXP chip which is the Power management chip and DRAM version.

 

So basically every thread here that’s not H3/H5/H6 will have information on this SOC.

 

https://linux-sunxi.org/AXP_PMICs

 

dram_type 3:DDR3, 4:DDR4, 7:LPDDR3, 8:LPDDR4

You could add secure boot to all these boards until one of them boots. 
https://github.com/NickAlilovic/build/releases/tag/20250306

 

Or you can extract your dts. Find the AXP chip on the board. Attach a USB to UART TTL device on your boards UART pins RX/TX/GND. All this information and more is in the H618 thread.

 

https://forum.armbian.com/topic/29794-how-to-install-armbian-in-h618/#findComment-232411

https://forum.armbian.com/topic/29794-how-to-install-armbian-in-h618/page/4/#findComment-187672
https://linux-sunxi.org/UART
https://forum.armbian.com/topic/29794-how-to-install-armbian-in-h618/page/23/#findComment-218660

 

Edited by Nick A

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