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

Status
Not open for further replies.
Search This thread

nosillock

Member
Jan 10, 2022
8
0
Hello, I have several dopinder devices still on 18.1 that I would like to update to 19.1. What is the process for updating 18.1 to 19.1? I only see instructions in the wiki for updating a build within the version.
Nevermind. I ended up flashing the stock and then going through the standard process for 19.1.
 

skippyd

Senior Member
Aug 22, 2008
141
38
Since ODROID c4 and Banana Pi M5 both are capable of Linux and you are already building Kernels for these.... Do you think it would be easy to port Linux to Google ADT-3, Walmart Onn UHD Box, or Chromecast with Google TV???

With the Walmart Onn UHD Box being only $19.88 it would be very useful to be able to run Linux

It has been done with the Nexus 7 (full internal storage used for op sys)
https://wiki.ubuntu.com/Nexus7/Installation
or
https://forum.xda-developers.com/t/...-wifi-rev-e1565-grouper-2022-edition.4323099/

here is a project that has ported other devices to Armbian
https://github.com/Calmact/amlogic-s9xxx-armbian
This version will probably boot but has issues for wifi: there is rtl8822cs driver in the kernel, but it's not completed - when realtek finish the driver (sdio part) it would work and bluetooth: there is a driver in the kernel, but it depends on the wifi part
 
Last edited:

willclein

Senior Member
Apr 10, 2017
60
14
You probably have stock boot and stock recovery on the device (even though you previously attempted to flash lineage recovery), or possibly have a corrupt image.

I would try, in order, flash from fastboot: 1) unofficial lineage (19.1-20220908-UNOFFICIAL) dtb.img, 2) official lineage (19.1-20220918-nightly) dtbo.img, 3) offical lineage (19.1-20220918-nightly) recovery, then fastboot reboot recovery, enable adb, reboot to recovery, format/factory reset, adb sideload.

You can probably substitute 19.1-20220925-nightly for any official files, but I have not tested that build yet.

If you still cannot boot, you likely have a different problem that will require further troubleshooting (verify you are unlocked? check cables, drivers..). As long as you can access fastboot or burn mode, you should be able to flash lineage 19 eventually when newer releases happen. Or you could always flash older dtb and dtbo to boot the stock rom still on your device or install lineage 18.
Thanks I'll try this method. I'll also try a different cable since I know adb/fastboot can be temperamental with cables.
 

willclein

Senior Member
Apr 10, 2017
60
14
You probably have stock boot and stock recovery on the device (even though you previously attempted to flash lineage recovery), or possibly have a corrupt image.

I would try, in order, flash from fastboot: 1) unofficial lineage (19.1-20220908-UNOFFICIAL) dtb.img, 2) official lineage (19.1-20220918-nightly) dtbo.img, 3) offical lineage (19.1-20220918-nightly) recovery, then fastboot reboot recovery, enable adb, reboot to recovery, format/factory reset, adb sideload.

You can probably substitute 19.1-20220925-nightly for any official files, but I have not tested that build yet.

If you still cannot boot, you likely have a different problem that will require further troubleshooting (verify you are unlocked? check cables, drivers..). As long as you can access fastboot or burn mode, you should be able to flash lineage 19 eventually when newer releases happen. Or you could always flash older dtb and dtbo to boot the stock rom still on your device or install lineage 18.
I can confirm that this fixed my issue. Thanks!
 

ChriMo

Senior Member
Oct 13, 2014
473
124
available in Central Europe and unlocking/flashing not overly complicated. I made a short search:
  • wade - (Walmart) Dynalink 4K Box: ca. 70 € (IT)
  • dopinder - Walmart Onn UHD Box: ca. 60$ (US)
Weeks ago I had successfully unlocked a sheldon (Fire TV Stick Lite/3rd gen) from a store sale. I did buy additional ones because on old TVs this works great. But sheldon unlocking seems to become near impossible because new devices bought yesterday here have firmware which blocks unlocking so I'm now again looking for a new device where Lineage OS TV works.
The internal specs seem the same and also the microUSB connection:
- wade currently for 60€ .
- dopinder for ca. 60€ available incl. shipping from US, but probably long delivery time.
So the difference may only be the remote - the dopinder one seems to have more keys and a bit nicer.
However since wade is probably the best option I'm mainly interested about well working extensions to connect USB-Drives/Sticks (Y-cable) and Ethernet over USB.
Is there the risk of a great speed difference between various options to buy if USB 3 hardware is choosen, maybe because of limited wade support or other limitations?

Out of interest, might it be possible to connect a Fire TV remote with BT to wade (in addition to the stock one)?
 

activadroid

Senior Member
Feb 25, 2020
53
9
Google Pixel
Google Pixel XL
Yup. It boots but secure keystore is broken.

Welcome to dopinder at the moment. That's why wade and Deadpool shipped but dopinder didn't.
quick test = I am able to watch DRM content on my dopinder running your 19.1 unofficial release, via Google Chrome (and Adblock Browser). I downloaded the Arm version Google Chrome apkm from apkmirror (& used apkm installer from them), with the extra libraries it mentioned. Also using HALauncher to launch Chrome. Seems to play OK (though NOT 1080P or 4K). As long as I view website through Chrome webpage & NOT use app (I was trying TubiTV). Chrome works OK with Bluetooth Mouse & Keyboard. Still need OEM remote though.
If you fix the secure keystore problem, will the resolution improve ?
 

npjohnson

Recognized Developer
quick test = I am able to watch DRM content on my dopinder running your 19.1 unofficial release, via Google Chrome (and Adblock Browser). I downloaded the Arm version Google Chrome apkm from apkmirror (& used apkm installer from them), with the extra libraries it mentioned. Also using HALauncher to launch Chrome. Seems to play OK (though NOT 1080P or 4K). As long as I view website through Chrome webpage & NOT use app (I was trying TubiTV). Chrome works OK with Bluetooth Mouse & Keyboard. Still need OEM remote though.
If you fix the secure keystore problem, will the resolution improve ?
yes, 1080P+ requires hardware backed keystone.

720P and below uses software, which ofc will work.
 
  • Like
Reactions: activadroid

skippyd

Senior Member
Aug 22, 2008
141
38
No. Different generation of chip.





I've crossed out the links in the OP - further investigation is needed.

but there is a full factory image with DTB linked in the FAQ.

Install this driver: https://drive.google.com/file/d/1q3Hwrmx-YCrw9U5JGtI2Ocn06zPkjrEG/view?usp=sharing

Download the amlogic `update` tool http://openlinux2.amlogic.com/download/A113/Tool/flash-tool-v4.7/flash-tool/tools/windows/ and run `update.exe bulkcmd fastboot` - then you can flash the factory image as usual.

Sorry about this, AML DTB's are... weird compared to other devices.
does anyone have the flash-tool ??

link is broken
 

activadroid

Senior Member
Feb 25, 2020
53
9
Google Pixel
Google Pixel XL
Thank you to all who have posted helpful crash recovery info here ! [edited - I first loaded Official on a wade & had problems ( messed it up so that Factory was actually still working, EXCEPT for WiFi !) Killed hours reading posted comments here & trying different things. It especially helped to see that picture of connections to TTY port on Dynalink. I made a USB converter cable for that & could see what the OS was doing ! ]
 
Last edited:

activadroid

Senior Member
Feb 25, 2020
53
9
Google Pixel
Google Pixel XL
Hi Skippyd,
Thank you for the links.
I downloaded the first and searched for amlogic flash tool & found 6.0.0 & tried that.
Win PC said drivers installed correctly, and I found the update.exe & fastboot files in the bin directory, but running those in Win command shell produces response "can not find device".
I tried normal boots of Wade (it says USB Debug device attached), then reboot with USB half plug trick (multiple times) to get (variously) Android Recovery, bootloader, fastbootd, and sideload adb - but the Win PC Amlogic tool only gives a different reply when I tried 'sideload adb' on the Wade side.
Which part am I doing wrong ?
Could I burn a USB stick & get Wade to install from that ?
Any more ideas ?
Oops, I did leave out a detail: Sometimes I DO see response to fastboot devices: ???????????? fastboot - so that seems like something got erased ?
 

RiCkLaR

Senior Member
Dec 4, 2018
59
37
does anyone have the flash-tool ??

link is broken
Also, I did just try (Windows) Amlogic Flash Tool 6.0.0 and connected to Wade via hardwired ip address & flashed Factory Boot and Recovery (both = success), but when connected again directly via USB cable to Linux PC, get either nothing, or previously mentioned 12 question marks as reply to fastboot devices.
Is there a .img format file or something similar to reinstall fastboot on the Wad side ?
If you both know Linux, and will be installing the full factory stock .IMG, can I suggest using Khadas tools:
https://docs.khadas.com/products/sbc/vim4/install-os/install-os-into-emmc-via-usb-tool#tab__vim4

Use the instructions for VIM3 if installing the original Android 10 full firmware package.

Sidenote:
I don't know if it was a Khadas developer or some other Amlogic developer, but they said that if your device was having issues and needed to wipe/erase the EMMC, you could use the Windows tool (if your device will still connect that is) and start installing a firmware, and once it gets to 20-25% when the SYSTEM.IMG is installing you disconnect the cord and the EMMC will be erased. Never tried it personally, haven't need too, but worth a shot if you have a problematic device.
 
  • Like
Reactions: activadroid
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    So anyone have this working on a radxa zero ?
    1
    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
  • 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!