[OFFICIAL/UNOFFICIAL] LineageOS 19.1 for Amlogic G12*/SM1 Family Devices

Status
Not open for further replies.
Search This thread

MrPlayboy22

Member
Oct 13, 2022
9
0
I have had my WiFi broken by updates many times, and what worked for me every time was to flash previous known-good DTB and DTBO. Use aml-flash-tool as described here. You don't need to follow all the steps, for me it was enough to:

1. Turn on wade while holding the side button (to enter AMLogic burn mode)
2. ./update bulkcmd fastboot
3. fastboot flash dtb dtb.img
4. fastboot flash dtbo dtbo.img
5. fastboot reboot

The DTB/DTBO files I use are from lineage-19.1-20221023-nightly-wade-signed.zip

Thanks @sjustinas - much appreciated and sorry for getting back so late to you (I was on a business trip).
I tried now to get the DTB(O) files according to your description (which seems to be for Linux, including the tool). Very sadly, I only have Windows (10) available. Would you mind guiding me to a tool (and respective commands) for Windows? Thanks a lot in advance for your kind support again to get my box working again - very much appreciated!
 

sjustinas

New member
Nov 3, 2021
4
0
Thanks @sjustinas - much appreciated and sorry for getting back so late to you (I was on a business trip).
I tried now to get the DTB(O) files according to your description (which seems to be for Linux, including the tool). Very sadly, I only have Windows (10) available. Would you mind guiding me to a tool (and respective commands) for Windows? Thanks a lot in advance for your kind support again to get my box working again - very much appreciated!
Yeah, it seems like aml-flash-tool is only available for Linux. I am not sure what the equivalent for Windows is. If you are at all comfortable with Linux, you could boot a live USB of Ubuntu and use that.
 

MrPlayboy22

Member
Oct 13, 2022
9
0
Yeah, it seems like aml-flash-tool is only available for Linux. I am not sure what the equivalent for Windows is. If you are at all comfortable with Linux, you could boot a live USB of Ubuntu and use that.
Thanks @sjustinas - will try to get a USB stick up and running. A pitty, it is not available for Windows.
@npjohnson - would you potentially have a Windows (10) working solution to the issue, as this might happen to other users as well? Thanks ahead :)
 

npjohnson

Recognized Developer
Thanks @sjustinas - will try to get a USB stick up and running. A pitty, it is not available for Windows.
@npjohnson - would you potentially have a Windows (10) working solution to the issue, as this might happen to other users as well? Thanks ahead :)
There is a flash-tool but I know nothing about it. AML Burning Tool
 

itchydroid

Senior Member
Aug 21, 2018
63
35
Thanks @sjustinas - will try to get a USB stick up and running. A pitty, it is not available for Windows.
@npjohnson - would you potentially have a Windows (10) working solution to the issue, as this might happen to other users as well? Thanks ahead :)
After soft-bricking my ONN devices I was able to recover on windows 10 using the method above but I used the windows flash tool from https://github.com/osmc/aml-flash-tool. There is a download for the Windows tool under https://github.com/osmc/aml-flash-tool/tree/master/tools/windows. You will need to ensure you have the right drivers installed first which you can get from https://drive.google.com/file/d/1q3Hwrmx-YCrw9U5JGtI2Ocn06zPkjrEG/view

Make sure that you connect the hdmi to tv and the other to pc/laptop so that if it boots into the bootloader gui, you can navigate it.

On some occasions I got a blank screen or just the ONN logo but no fastboot. In this case i issued the 'update bulkcmd fastboot' command and was able to enter into fastboot mode.

EDIT: Also you might need to run fastboot as administrator on the windows console. Im not 100% sure as I am a linux guy :) . I just use a windows laptop to do device/firmware flash and recoveries because a lot of the these tools are usually windows.
 
Last edited:

MrPlayboy22

Member
Oct 13, 2022
9
0
After soft-bricking my ONN devices I was able to recover on windows 10 using the method above but I used the windows flash tool from https://github.com/osmc/aml-flash-tool. There is a download for the Windows tool under https://github.com/osmc/aml-flash-tool/tree/master/tools/windows. You will need to ensure you have the right drivers installed first which you can get from https://drive.google.com/file/d/1q3Hwrmx-YCrw9U5JGtI2Ocn06zPkjrEG/view

Make sure that you connect the hdmi to tv and the other to pc/laptop so that if it boots into the bootloader gui, you can navigate it.

On some occasions I got a blank screen or just the ONN logo but no fastboot. In this case i issued the 'update bulkcmd fastboot' command and was able to enter into fastboot mode.

EDIT: Also you might need to run fastboot as administrator on the windows console. Im not 100% sure as I am a linux guy :) . I just use a windows laptop to do device/firmware flash and recoveries because a lot of the these tools are usually windows.

Dear @itchydroid - thanks for your detailed help and sorry for coming back again to you.... I still struggle slightly ;-)

What I have done (on Windows 10):
- Installed the drivers as per your link
- Installed the windows files of the AML-flash-tool as per your link
- Connected via HDMI to the TV and via USB (with a proper USB cable) to the laptop
- Running the console with local Admin rights (see below)

Where is the issue
- When running the console, I get the following error message:
Microsoft Windows [Version 10.0.19045.2486] (c) Microsoft Corporation. All rights reserved. C:\Windows\system32>cd C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9 C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9>update bulkcmd fastboot AmlUsbBulkCmd[fastboot] usbReadFile len=512,ret=-5 error_msg=libusb0-dll:err [submit_async] submitting request failed, win error: A device attached to the system is not functioning. [AmlUsbRom]Err:return len=-1 < strLenBusy 11 [AmlUsbRom]Inf:bulkInReply ERR: AmlUsbBulkCmd failed! C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9>


I feel like I am not too far away - yet still too far away to get my Wifi issues sorted :-(
By the way: With the AMLogic USB Burning Tool, I see the device connected. So the burning mode seems to be "correct".

Could you please guide me/ help me? Thanks a lot!!!


Screenshots of the setting:
- Driver
1673452447471.png


- Console:
1673452584764.png
 

itchydroid

Senior Member
Aug 21, 2018
63
35
Dear @itchydroid - thanks for your detailed help and sorry for coming back again to you.... I still struggle slightly ;-)

What I have done (on Windows 10):
- Installed the drivers as per your link
- Installed the windows files of the AML-flash-tool as per your link
- Connected via HDMI to the TV and via USB (with a proper USB cable) to the laptop
- Running the console with local Admin rights (see below)

Where is the issue
- When running the console, I get the following error message:
Microsoft Windows [Version 10.0.19045.2486] (c) Microsoft Corporation. All rights reserved. C:\Windows\system32>cd C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9 C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9>update bulkcmd fastboot AmlUsbBulkCmd[fastboot] usbReadFile len=512,ret=-5 error_msg=libusb0-dll:err [submit_async] submitting request failed, win error: A device attached to the system is not functioning. [AmlUsbRom]Err:return len=-1 < strLenBusy 11 [AmlUsbRom]Inf:bulkInReply ERR: AmlUsbBulkCmd failed! C:\Users\User\Desktop\Dynalink TV Box\AML Flash Tool 4.9>


I feel like I am not too far away - yet still too far away to get my Wifi issues sorted :-(
By the way: With the AMLogic USB Burning Tool, I see the device connected. So the burning mode seems to be "correct".

Could you please guide me/ help me? Thanks a lot!!!


Screenshots of the setting:
- Driver
View attachment 5807803

- Console:
View attachment 5807805
I think you can ignore the failure. I get the same thing. After the failure, if I run "fastboot devices" the box should show up.

EDIT: After the failure, you should hear the windows usb "disconnect" sound and a short while later, the reconnect sound. This is the device switching to allow fastboot to work.
 

MrPlayboy22

Member
Oct 13, 2022
9
0
I think you can ignore the failure. I get the same thing. After the failure, if I run "fastboot devices" the box should show up.

EDIT: After the failure, you should hear the windows usb "disconnect" sound and a short while later, the reconnect sound. This is the device switching to allow fastboot to work.
THIS DID IT! THANK YOU VERY MUCH :)
You are my hero!!!
 

mediavieja

Senior Member
Jun 3, 2010
275
15
Hi guys, its been a while since the last time i got into the forums but i need help with my Onn Tv Box.

I was following the guide from https://wiki.oddsolutions.us/devices/dopinder/install to flash lineos on my tv box, i unlocked the bootloader and then downloaded the dtb.img file only from the link, but couldnt find the dtbo.img file, it said the file didnt exists, so i flashed the lineage-19.1-20221024-dtb-dopinder.img and after that my box was no longer being recognized by windows, nor adb or fastboot and everytime i reboot the box is just sitting there at the onn. screen, is there a way to recover my box?

Edit1: i followed this guide https://forum.xda-developers.com/t/...-g12-sm1-family-devices.4313743/post-87830141 to flash all 3 images as it says, but when i do the update.exe bulkcmd fastboot i get the following error:

failed.png


and heres the previous screen with all 3 imgs flashed properly
flashes.png


so i dont know what else to do :-(

Edit2: Fix it, i followed @itchidroid advice and ignore the error after runing the update bulkcmd fastboot command, so i tried fastboot devices and indeed it was working properly, after that i just finished the update process and everything is running now without issues :)
 
Last edited:

mediavieja

Senior Member
Jun 3, 2010
275
15
A question tho, how do i get back to the original firmware and all in case something is not working with LineageOS? and is there a way to run Netflix and Prime Video on this? i installed the apps from the play store but when i try to play any content, it hits me with an error :-(

Edith1: as sson as Google app gets updated, restart the deice and should go to Google TV interface
 
Last edited:

activadroid

Senior Member
Feb 25, 2020
53
9
Google Pixel
Google Pixel XL
A question tho, how do i get back to the original firmware and all in case something is not working with LineageOS? and is there a way to run Netflix and Prime Video on this? i installed the apps from the play store but when i try to play any content, it hits me with an error :-(
On the first page of all this, It is stated that 'L1' not working for dopinder and a couple others.
That means that hardware supported DRM not working.
Same problem on my Onn / dopinder.
So, on npjohnsons recommendation, I bought a Dynalink (around $40 at that time), installed wade UNofficial version of LineageOS, and it works great with DRM.
 
Last edited:

mediavieja

Senior Member
Jun 3, 2010
275
15
On the first page of all this, It is stated that 'L1' not working for dopinder and a couple others.
That means that hardware supported DRM not working.
Same problem on my Onn / dopinder.
So, on npjohnsons recommendation, I bought a Dynalink (around $40 at that time), installed wade UNofficial version of LineageOS, and it works great with DRM.

Ya hehe, after a bit more reading found out it definetly doesnt work yet :-( had to go back to stock while they manage to make it work
 

itchydroid

Senior Member
Aug 21, 2018
63
35
I just bought a dynalink (wade) device and trying to flash the LOS unofficial 20 on it. I followed the instructions as I have done also on 2 dopinder (ONN) devices. I can get into the LineageOS recovery fine but after following I cannot navigate using the button. I can only press and hold the button down which highlights "Reboot system now" by turning the selection green but nothing happens. Suprisingly I can use the remote control to navigate up and down on the LOS recovery, but when I hold down the circle (o) button, it does the same - just highlights the command green and thats it. So I cannot do `adb sideload` because in recovery I cannot select "Apply Update". I can only highlight it. I then tried to do the same with LOS19 recovery, but its doing the same thing. Am I missing sometime? The button appears to be working fine as it allows me to get into fastboot mode and reboot fine.
 

BTK19

Senior Member
I just bought a dynalink (wade) device and trying to flash the LOS unofficial 20 on it. I followed the instructions as I have done also on 2 dopinder (ONN) devices. I can get into the LineageOS recovery fine but after following I cannot navigate using the button. I can only press and hold the button down which highlights "Reboot system now" by turning the selection green but nothing happens. Suprisingly I can use the remote control to navigate up and down on the LOS recovery, but when I hold down the circle (o) button, it does the same - just highlights the command green and thats it. So I cannot do `adb sideload` because in recovery I cannot select "Apply Update". I can only highlight it. I then tried to do the same with LOS19 recovery, but its doing the same thing. Am I missing sometime? The button appears to be working fine as it allows me to get into fastboot mode and reboot fine.
use the power button to select stuff in recovery
 
  • Like
Reactions: itchydroid

itchydroid

Senior Member
Aug 21, 2018
63
35
use the power button to select stuff in recovery
Silly me and thank you @BTK19. I was using (o) button on the remote and also tried the button on the device itself (just as its done on the dopinder ONN device). All is well now.

Just wondering, if I didnt have a remote paired with the device, would I be SOL to activate the menu item?
 
Trying to install this on Dopinder on firmware 1.01.36. adb reboot bootloader just powers it off. I can use adb reboot recovery (which shows 'No Command') and use the button on the device to select bootloader but it just powers off.

I didn't see an option in dev options for OEM unlock. Safe to assume I'm on the wrong version of the firmware?
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 27
    lineage-os-logo.png

    Amlogic G12*/SM1 Family Devices
    Code:
    - Your warranty is now void.
    - You have been warned.
    - Use at your own risk.

    Introduction:
    This is the Official Lineage OS 19.1 thread for the Amlogic G12*/SM1 SoC family of devices.

    Downloads:
    Please follow the install instructions in your device's Wiki page linked below exactly, and make sure your device's firmware matches the required firmware listed:

    Official Builds:

    Disclaimer: My unofficial builds have full Android TV Google Apps and some other goodies included. OTA's roll roughly once a month. Support not guaranteed or implied.

    Unofficial Builds:
    We also support a few development boards, but at least (for now, until we have time to write up instructions), you're on your own to figure out the install process and set things up:
    EDIT: The development boards don't boot on LineageOS 19.1 at the moment for some reason, we're looking into it.

    If you don't follow these instructions, or use 3rd party add-ons (like Magisk) please don't expect support here.

    Known Bugs:
    • Recent apps/Multitasking menu doesn't launch.
    • (sabrina only) The remote firmware sometimes gets hung up, you can reboot to solve this issue.
    • (dopinder/sabrina) L1 is currently broken, this is what is holding up official builds for these devices.
    Notes:
    • GApps are baked in on Unofficial builds - No, I will not be building without GApps included for this device. These builds are built, packaged, and signed by me, and not affiliated with LineageOS whatsoever.
    • Firmware is shipped in the ROM package for this device, so you'll end up on the newest version of compatible firmware after install. Please don't touch firmware partitions after install.
    • On the unofficial OTA is provided the same way officials would have them.
    • Find any more on an official build? Report them according to this guide.
    FAQ:
    • Does L1 Widevine DRM break when I unlock my bootloader?

      Nope, it works fine. L1 certificates, and the mechanism that reports is all still exist and work as expected.

    • Can I haz Netflix?

      Yup! Play Store has it for you. Unless you're on dopinder or sabrina, but that will be fixed soon hopefully.

    • Is this Android TV or Google TV?

      Android TV, with some of the better components of Google TV.

    • Can I go back to stock and relock the bootloader?

      Yeah, grab the factory image for your device and flash it just like you would for a Pixel device, you can find the factory images here. Don't know it I'd relock though, consider that process largely untested on these device. Especially on sabrina, where you can't necessarily re-unlock should you ever want to.

    • Are these the stock codenames for these devices?

      Astute observation, no, they are not. The ADT-3 is actaully `adt3`, but earlier in production is was `deadpool`, which is much cooler. The Dynalink box internally is extremely similar to the ADT-3, so we coined it `wade` after Wade Wilson, AKA deadpool. The Onn box is in the same family, but different enough to coin it `dopinder`, after, well, go watch Deadpool the movie I guess. sabrina is actually the codename given by Google - no clue as to the reason.

    • Does it pass SafetyNet?

      Maybe - the only sure fire way it Magisk, as our boot loader is unlocked and can't be relocked safely.

    • Does the stock remote work?

      Yup, just like it would on stock, in-remote-microphone and all! If it's an IR remote like wade's, it will even work in recovery!

    • Can we we support higher resolution than 4K, higher FPS, or HDR on non-certified screens?

      Nope.

    • I have a very similar device! Can I install these builds and use them?

      No. Please don't do that. You will brick your device, as we include firmware and bootloader images.

      If you're a developer looking to help port to a new device, contact me.

    Kernel Source: https://github.com/LineageOS/android_kernel_amlogic_linux-4.9

    Contributors:
    • npjohnson
    • bgcngm
    • stricted
    • webgeek1234
    • deadman96385
    • trautamaki
    • luca020400
    • aleasto
    14
    Yeah, you used the stock recovery. You need to fastboot flash, then fastboot boot recovery, I'll update the docs.

    For dopinder, it's needed right now.

    Found a procedure for dopinder without the need for keyboard/OTG.

    The docs under "Installing a custom recovery using fastboot" state to use "adb reboot fastboot" which doesn't work for booting recovery, needed to do "adb reboot bootloader" instead.

    Full command log (after unlocking bootloader and re-enabling USB debugging) of the install process with just a regular Micro USB to USB A cable:
    Code:
    adb reboot bootloader
    fastboot flash recovery lineage-18.1-20210805-recovery-dopinder.img
    fastboot boot lineage-18.1-20210805-recovery-dopinder.img
    adb reboot sideload
    adb sideload lineage-18.1-20210805-UNOFFICIAL-dopinder.zip
    # if successful then load bootloader and factory reset
    adb reboot bootloader
    fastboot -w
    fastboot reboot

    Successfully booted to LineageOS after this!
    7
    deadpool an wade are official again, hopefully we got it all right this time around.

    onto dopinder and Sabrina. Hoping to get those shipped soon.
    6
    Note:

    Since the Lineage Android TV Builds for this little box (aka Boxes), are stable for the most part, but seems
    people are bouncing back in forth from Stock to Lineage and back to stock.

    I created a batch file that will auto flash the stock images and wipe data and so on.. pretty much it will
    make your box as it was when you first booted it after taking it home to try it.

    2nd, I also created a batch file that will backup current images.. No need for a fancy recovery or anything like the
    such. it will use the worldcup or what I like to say, USB Burn mode, and backup each and every partition.
    as well as some not so much needed ones like, misc and metadata. (Just for giggles)..

    backups will be copied to backup dir, I also created a separate batch file to restore your backup.


    I am one that hates doing things the long way over and over, so I always create ways to make things simple
    in the future for people.

    This way, you all can test your hearts out all the new lineages and still have your full Stock backup (including data).
    and restore back in forth as you wish.

    I will upload the backup_restore zip package as soon as I can and with @npjohnson permission I will link
    in thread. Otherwise you will have to just DM/PM me and ill link you the location.

    I am just trying to help the many that I seen complain and dont understand how to go back in forth.
    so with this script, it should take care of most on that. No Fancy Recovery needed...

    you will need worldcup driver for Amlogic........ you can find that on your own.

    Also, to get into USB Burn mode, press side button while plugging in USB cable.
    Keep pressing till you see the LOGO or hear the sound from your computer.

    then just run the batch file and wait..

    if its easier for you:

    Run the batch file, it will keep saying waiting for device..
    Just press the side button while plugging in USB, when you see it start, then release button...........
    and wait till finished..

    Only TESTED On Dopinder Boxes, but im sure they are all the same as for the partition layouts.
    6
    wade and deadpool are official now!