Alex83

  • Content Count

    39
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    @Alex83 @tediwildan I checked the issue with apt-get upgrade and actually it happens only on NAND boards due to some misbehaving code in armbian. I'm fixing the issue, in the meantime you can plug an sdcard in the sd slot and then run apt-get upgrade: the presence of the sdcard in the slot is sufficient to avoid the issue and the upgrade should install fine.
  2. Like
    Alex83 reacted to tediwildan in CSC Armbian for RK322X TV Boxes   
    @jock
    @fabiobassa

    Dpkg: error processing package linux-image-legacy-rk322x (--configure) : installed linux-image-legacy-rk322x package post-installation scripts subprocess returned error exit status 1

    Errors were encountered while processing :

    linux-image-legacy-rk322x 
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    It always happen when I try to

    apt-get update
    apt-get upgrade

    My board rk3229 Mxq pro 4k NAND


    Hope it can fix soon

    Sent from my SM-C9000 using Tapatalk




  3. Like
    Alex83 reacted to fabiobassa in CSC Armbian for RK322X TV Boxes   
    @nokirunner

    this was exactly the same question when I approached to linux study on those devices:

    well . thanks to study and many people that explained to me now I know that linux IS NOT android and the opposite is also true, and YES they violate the GPL but if you are able to go in China to yell on this, well buy a ticket for me too.
    In case of wifi they don't violate any since is proprietary driver and nowhere is written that they must open the code to every one

    the desktop subsystem is perfect on Android with all jingles and bells, now you take the SAME kernel they use, the same modules and libraries they have in rootfs  and NO!!!  it doesn't work at the same manner under linux,  and since we must adapt something to linux phylosophy and we HAVEN'T documentation sometimes at all, sometimes half-half , I truly believe that is quite  a  miracle we have a true linux platform on those devices

    sadly to admit it but this is the truth
  4. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    Analog sound is not yet in mainline kernel, it works only on 4.4.
    Hardware acceleration also is still partial on mainline kernel and it is in heavy work in progress by LibreELEC and kernel teams.
    For multimedia features I suggest to stay on kernel 4.4 for now
  5. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    Ok situation is clear now... turned out that while cleaning up things for mainline inclusion I made a separate branch (rk3229-squash) and by mistake removed the OPTEE binary blob from that Stupid u-boot, during compilation, did not say anything about the missing file... You instead most probably cloned the rk3229 branch which was perfectly fine.
     
    If you are testing the image from sdcard it works fine because the good bootloader that is getting engaged in the eMMC. But don't burn the new image in the eMMC, or the safe bootloader will vanish!
     
    I'm recompiling things right now, so the balance to the force will be restored soon
  6. Like
    Alex83 reacted to Ztrawberry in CSC Armbian for RK322X TV Boxes   
    Not sure if this is related... Today I cloned the build scripts from https://github.com/armbian/build and created a legacy Ubuntu desktop image for CSC RK322x. Everything worked well and I only had to use Multitool again to install the NAND bootloader (previously I had the Debian test image from 2 days ago installed via StepNAND). After the bootloader reinstall it booted straight from the sdcard. Armbian-config works etc...
     
    I have to say this is a major milestone and well done @jock and team!
  7. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    Currently you can keep up-to-date the distribution packages via regular apt-get update && apt-get upgrade but not the kernel, u-boot and loader.
    When I will merge the fork into mainline armbian (which will happen very soon), you will get also kernel and loaders updates!
     
  8. Like
    Alex83 reacted to Ztrawberry in CSC Armbian for RK322X TV Boxes   
    Hi @Mark Khevin Rogacion, what worked for me multiple times from complete soft bricked state (once I did rkdeveloptool ef and the other time was when I wrote a legacy image to my NAND) was with AndroidTool 2.51 and a copy of the original firmware. Key is the workable firmware and watch out for whether it is NAND or eMMC. 
     
    As long as you can get the device to be USB recognized you should be fine. In some cases you would need to press the reset switch inside the AV port, but in a worst case scenario you would need to short the NAND or eMMC pin. I found a picture on which chip and pins to short on forum.freaktab.com. From my attempts, I could not get the firmware to install via rkdeveloptool once I destroyed the bootloader, it showed completed but did not boot.
     
    Hi @jock, @fabiobassa, @knaerzche, just wanted to say a very very big thank you for your work. This has certainly kept me sane and entertained during these crazy times, as well as busy.
     
    If you want me to try anything, I have 2 x Scishion V88 4K RK3229 (MX4VR-01) devices with NAND and I am okay to go experiment with losing my bootloader :-)
  9. Like
    Alex83 reacted to nokirunner in CSC Armbian for RK322X TV Boxes   
    we hope that we will have more luck with the opensource gpu drivers in the near future ... everything will have to go through a mesa-opengl acceleration, including video ... va-api or samething
     
  10. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    I did some tests yesterday using audacious and had no issues with lagging or stuttering, although pulseaudio is taking an insane amount of cpu processing power (around 20% of one cpu); using ALSA directly, decoding and playing a vorbis file just requires 4% of one core. Youtube instead is out of reach, no way to watch a video even in low quality (480p) without having audio and video issues.
    I'd like to try armsoc driver sooner or later to see if there is any difference from current modesetting driver, but the SoC is too limited to do video decoding without using the hardware acceleration to ease the work of the ARM cores.
  11. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    You can change status="disabled" into status="okay" from your HK1 device tree to activate the emmc node. Then recompile dtb, reboot and it should work.
    Or, as you said, remove the hs200 from all the 3229 dtbs and try them all.
     
    edit: I'm going to upload refreshed Armbian images without the hs200 line later, also because Focal now has been released and  contains official packages.
     
     
     
  12. Like
    Alex83 reacted to Maker39 in CSC Armbian for RK322X TV Boxes   
    "You can change status="disabled" into status="okay" from your HK1 device tree to activate the emmc node. "
    Then recompile dtb, reboot and it should work."
    Yes, it work !
    Now i boot from sd and move system to eMMC.
    System started and loaded succesfully .
     
    ps Maybe because of these settings the image recorded by Multitool did not load?
  13. Like
    Alex83 reacted to fabiobassa in CSC Armbian for RK322X TV Boxes   
    @paulml

    your board is a 3228b with 1 giga ram and nand 
    1) once more , and unfortunately at the moment , your board has a nand storage
    2) as long as you run by sd card and SKIP the approach to flash internal storage ( since it is nand) everything will be ok
    3) simply don't touch internal android installation and run from sd, for the moment

    tool for manage even nand is on the way :-)
     
  14. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    Hello. Yes, there should be the chance to boot from USB stick.
     
    First I want to apologize because after a recent discovery I get aware that doing rkdeveloptool ef on a NAND device also removes the bootloader. Due to the NAND peculiarities, tooling around with that piece of software makes further restore of the firmware very difficult.
     
    I just updated the first post with new instructions, there is the Jump Start procedure for those who own a box with NAND flash that will install the bootloader into NAND to let SD Card and USB stick boot. You may give it a chance.
  15. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    @MMarcio @nokirunner
    Here we are, here there is the first version of the Multitool.
    That's an image to burn on an sd card: plug it into the tvbox and it will boot allowing backup, restore, erase and image burn on the internal eMMC.
    To burn armbian/libreelec images directly to internal eMMC memory, place the compressed images into images folder of the sdcard and use the relative function of the Multitool. Any feedback is welcome!
     
    @Mark Khevin Rogacion I'm sorry but your box is unlucky to have a NAND chip instead of more common eMMC memory. Since there are no open drivers for rockchip nand, there are limited functionalities (like no kernel/uboot updates) and putting the rootfs on the NAND still require manual working. Me and @fabiobassa are working on a way to let armbian installation work the best, but at the moment you should stick to external sdcard.
  16. Like
    Alex83 reacted to fabiobassa in CSC Armbian for RK322X TV Boxes   
    hello @Mark Khevin Rogacion and ty for joining in this adventure
    Yes you right because your 329q has a nand and not an mmc

    But
    @jock is actively and strongly working on a simple tool that in future will avoid all this mis-confusing due to different commercial names . So kindly wait just some little time that the new tool will be perfectly functional
  17. Like
    Alex83 reacted to jock in CSC Armbian for RK322X TV Boxes   
    DISCLAIMER (PLEASE READ): everything you can find in this thread (binaries, texts, code snippets, etc...) are provided AS-IS and are not part of official Armbian project. For this reason not people from Armbian project nor myself are responsible for misuse or loss of functionality of hardware.
    Please don't ask about support or assistance in other non-community forums nor in the official Armbian github repository, instead post your questions in this thread, in the TV Boxes forum section (hardware related) or in the Peer-to-peer support section (general linux/software related).
    Thank you!
     
    Following the recent thread on LibreElec forum about an unofficial image for rk3229 devices, I would like to make public the work made by me and @fabiobassa about bringing rk322x support to armbian.
    The project is now in -> mainline Armbian <- and the development fork will be available on github -> here <-
    Most of the love has been poured into supporting and bringing up the legacy rockchip 4.4 kernel, but in the near future the goal is to fully support the mainline kernel.
     
    What works:
    Should boot and work flawlessy on all boards with RK3228a, RK3228b and RK3229, with either DDR2 and DDR3 memories. RK3228a boards may have some issues on mainline kernel although; stick to legacy kernel for RK3228a. Mainline u-boot OPTEE provided as Trusted Execution Environment All 4 cores are working Ethernet Serial UART (configured at 115200 bps, not 1.5Mbps!) Thermals and frequency scaling OTG USB 2.0 port (also as boot device!) EHCI/OHCI USB 2.0 ports MMC subsystem (including eMMC, SD and sdio devices) Hardware video acceleration (fully supported via RKMPP on legacy kernel, partial support via hantro kernel driver on mainline) NAND is available only on legacy (but not as boot device due to mailine u-boot missing the rockchip NAND driver) Various WIFI over SDIO are supported (SSV6051P, SSV6256P, ESP8089, Realtek chips, etc...), but ssv6x5x drivers are available only on legacy kernel Full GPU acceleration on legacy kernel, mainline kernel has lima driver compiled in but X11 is very slow - you are still free to compile and install mali kernel driver on mainline yourself. U-boot boot order priority: first the sdcard, then the USB OTG port and eventually the internal eMMC; you can install u-boot (and the whole system) in the internal eMMC and u-boot will always check for images on external sdcard/USB first.  
    Unbrick:
    Rockchip devices cannot be bricked. If the internal flash does not contain a bootable system, they will always boot from the sdcard. If, for a reason, the bootable system on the internal flash is corrupted or is unable to boot correctly, you can always force the maskrom mode shorting the eMMC clock pin on the PCB. Here there is the procedure, but you can also google around if you get stuck on a faulty bootloader, the technique is pretty simple and requires a simple screwdriver.
     
    Multimedia:
    If you need multimedia features, like OpenGL/OpenGL ES acceleration, hardware accelerated Kodi, ffmpeg and mpv you can take a look to this post
     
    Installation:
    Building:
    You can build your own image follow the common steps to build armbian for other tv boxes devices: when you are in the moment to choose the target board, switch to CSC/TVB/EOL boards and select "rk322x-box" from the list.
     
    Stable images:
    Stable images are certified and signed by Armbian and you have the guarantee to get the system updates when there is a new Armbian release.
    Images and installation instructions are provided in the Armbian RK322x download page: https://www.armbian.com/rk322x-tv-box/
     
    Development images:
    Development testing images can be downloaded from the following list (last update 13-09-2020):
     
    Armbian 20.08.0 - Ubuntu Focal Minimal - Legacy kernel 4.4.194 Armbian 20.08.0 - Debian Buster Minimal - Legacy kernel 4.4.194 Armbian 20.08.0 - Ubuntu Focal Desktop - Legacy kernel 4.4.194  
    Armbian 20.11.0 - Debian Buster Minimal - Mainline kernel 5.8.9 Armbian 20.11.0 - Ubuntu Focal Desktop - Mainline kernel 5.8.9  
    Multitool:
    Multitool - A small but powerful image for RK322x TV Box maintenance  

    Quick installation instructions on eMMC:
    Build or download your preferred Armbian image and a copy of the Multitool; Burn the Multitool on an SD card; once done, place the Armbian image in images folder of the SD card FAT partition; Plug the SD card in the TV box and plug in the power cord. After some seconds the blue led starts blinking and the Multitool appears; OPTIONAL: you can do a backup of the existing firmware with "Backup flash" menu option; Choose "Burn image to flash" from the menu, then select the destination device (usually mmcblk2) and the image to burn; Wait for the process to complete, then choose "Shutdown" from main menu; Unplug the power cord and the SD card, then replug the power cord; Wait for 10 seconds, then the led should start blinking and HDMI will turn on. The first time the boot process will take a couple of minutes or more because the filesystem is going to be resized, so be patient and wait for the login prompt. On first boot you will be asked for entering a password for root user of your choice and the name and password for a regular user Run sudo rk322x-config and select your board characteristics to enable leds, wifi chips, high-speed eMMC, etc... Run armbian-config to configure timezone, locales and other personal options Congratulations, Armbian is now installed!  
    Despite the procedure above is simple and reliable, I always recommend to first test that your device boots Armbian images from SD Card.
    Due to the really large hardware variety, there is the rare chance that the images proposed here may not boot. If a bad image is burned in eMMC, the box may not boot anymore forcing you to follow the unbrick section at the top of this post.
     
    Quick installation instructions on NAND:
    Build or download your preferred Armbian image and a copy of the Multitool; Burn the Multitool on an SD card; once done, place the Armbian legacy kernel image in images folder of the SD card FAT partition; Plug the SD card in the TV box and plug in the power cord. After some seconds the blue led starts blinking and the Multitool appears; OPTIONAL: you can do a backup of the existing firmware with "Backup flash" menu option; Choose "Burn Armbian image via steP-nand" from the menu, then select the destination device (usually rknand0) and the image to burn; Wait for the process to complete, then choose "Shutdown" from main menu; Unplug the power cord and the SD card, then replug the power cord; Wait for 10 seconds, then the led should start blinking and HDMI will turn on. The first time the boot process will take a couple of minutes or more because the filesystem is going to be resized, so be patient and wait for the login prompt. On first boot you will be asked for entering a password for root user of your choice and the name and password for a regular user Run sudo rk322x-config and select your board characteristics to enable leds, wifi chips, etc... Run armbian-config to configure timezone, locales and other personal options Congratulations, Armbian is now installed!  
    Alternative: you can install the bootloader in NAND and let it boot from SD Card or USB:
    Download a copy of the Multitool and burn it on an SD card; Plug the SD card in the TV box and plug in the power cord. After some seconds the blue led starts blinking and the Multitool appears; RECOMMENDED: make a backup of the existing firmware with "Backup flash" menu option; Choose "Install Jump Start for Armbian" menu option: the Jump Start uses the internal NAND to boot from external SD Card or external USB Stick; Follow the general instructions to boot from SD Card below, skip the first erase eMMC step.  
    Quick installation instructions to boot from SD Card:
    If you are already running Armbian from eMMC, skip to the next step. Instead if you are running the original firmware you need to first erase the internal eMMC; to do so download the Multitool, burn it on an SD Card, plug the SD Card and power the TV Box. Use "Backup flash" if you want to do a backup of the existing firmware, then choose "Erase flash" menu option. Build or download your preferred Armbian image; Uncompress and burn the Armbian image on the SD Card; Plug the SD Card in the TV Box and power it on; Wait for 10 seconds, then the led should start blinking and HDMI will turn on. The first time the boot process will take a couple of minutes or more because the filesystem is going to be resized, so be patient and wait for the login prompt; On first boot you will be asked for entering a password for root user of your choice and the name and password for a regular user Run sudo rk322x-config and select your board characteristics to enable leds, wifi chips, high-speed eMMC or NAND, etc... Run armbian-config to configure timezone, locales and other personal options, or also to transfer the SD Card installation to internal eMMC; Congratulations, Armbian is running from SD Card!  
    A note about boot device order:
    With Armbian also comes mainline U-boot. If you install Armbian or just the bootloader in the eMMC or the Jump Start on internal NAND, the bootloader will look for valid bootable images in this order:
    External SD Card External USB Stick in OTG Port Internal eMMC  
    Alternative backup, restore and erase flash for EXPERTS:
    These backup, restore and erase flash procedures are for experts only. They are kept here mostly for reference, since the Multitool is perfectly able to do same from a very comfy interface and is the suggested way to do maintenance.
     
    Backup:
    Obtain a copy of rkdeveloptool: a compiled binary is available in the official rockchip-linux rkbin github repository. If you prefer, you can compile it yourself from the sources available at official rockchip repository Unplug the power cord from the tv box Plug an end of an USB Male-to-male cable into the OTG port (normally it is the lone USB port on the same side of the Ethernet, HDMI, analog AV connectors) Plug the other end of the USB Male-to-male cable into an USB port of your computer If everyting went well, using lsusb you should see a device with ID 2207:320b change directory and move into rkbin/tools directory, run ./rkdeveloptool rfi then take note of the FLASH SIZE megabytes (my eMMC is 8Gb, rkdeveloptool reports 7393 megabytes) run ./rkdeveloptool rl 0x0 $((FLASH_SIZE * 2048)) backup.data (change FLASH_SIZE with the value you obtained the step before) once done, the internal eMMC is backed up to backup.data file  
    Restore: first we have to restore the original bootloader, then restore the original firmware.
    Running rkdeveloptool with these switches will accomplish both the jobs:
    ./rkdeveloptool db rk322x_loader.bin Downloading bootloader succeeded. ./rkdeveloptool ul rk322x_loader.bin Upgrading loader succeeded. ./rkdeveloptool wl 0x0 backup.data Write LBA from file (100%) Download here: rk322x_loader.bin
     
    Erase the eMMC: clearing the internal eMMC memory makes the SoC look for external SD Card as boot option. If there isn't any suitable SD Card, the SoC enters maskrom mode, which can then be used for full eMMC/NAND access using rkdeveloptool.
    Obtain a copy of rkdeveloptool: a compiled binary is available in the official rockchip-linux rkbin github repository. If you prefer, you can compile it yourself from the sources available at official rockchip repository Unplug the power cord from the board Plug an end of an USB Male-to-male cable into the OTG port (normally it is the lone USB port on the same side of the Ethernet, HDMI, analog AV connectors) Plug the other end of the USB Male-to-male cable into an USB port of your computer If everyting went well, using lsusb you should see a device with ID 2207:320b run ./rkdeveloptool ef and wait a few seconds once done, the internal eMMC is erased and the device will boot from the sdcard from now on  
    Critics, suggestions and contributions are welcome!
     
    Credits:
    @fabiobassa for his ideas, inspiration, great generosity in giving the boards for development and testing. The project of bringing rk322x into armbian would not have begun without his support! Justin Swartz, for his work and research to bring mainline linux on rk3229 (repository here) @knaerzche for his great contribution to libreelec support and mainline patches