RetroFan90

  • Posts

    45
  • Joined

  • Last visited

Reputation Activity

  1. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    Well, since the sd controller on his board is swapped I don't think it will ever work.
    But sometimes is true, more expensive cards are not always better.
  2. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    Maybe with another USB stick or drive it may work. Also consider to use all the USB ports of the board, since they are not all the same. u-boot is picky.
     
    About the backup, indeed you can burn the multitool backup with rkdeveloptool. You just need to decompress it first.
  3. Like
    RetroFan90 reacted to curse in CSC Armbian for RK3318/RK3328 TV box boards   
    Just one question. How did you "burn" the iso to the SD-card? did you use dd, rufus, etc? Just in case the error is there and not with the box or the iso?
  4. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    @fabiobassa @jock @hexdump 
    Thank you once again for your support.
     
    By the way, I still confused how to get the MiniLoaderAll.bin as you suggested.
    That file is built by yourself or pick up from here:
    https://github.com/rockchip-linux/rkbin/tree/master/bin/rk33
     
    As I checked, from the official Rockchip repo, there are several boodloader files related to RK3328 and I don't know how to choose the correct one.
     

  5. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    @jockI have one more question. Is there a way to dump the whole eMMC to .img file then using "./rkdeveloptool wl 0X0 file.img" to clone to new box. It looks similar to the backup and restore function from your Multitool. 
    That's great if we can use some function of Multitool under Linux.
     
    THank you.
  6. Like
    RetroFan90 reacted to fabiobassa in CSC Armbian for RK3318/RK3328 TV box boards   
    @chinhhut
    Will try to explain you what loader is with an analogy: in normal pc you have bios and master boot record. Well, maskrom is bios and is contained in the soc itself, loader is a sort of master boot record and it enables the emmc and ddr.
    You can have a look here
    http://opensource.rock-chips.com/wiki_Boot_option

     

    I did extract it by a working firmware using a tool that unpacked the whole firmware. Try to google for RK3xxx_firmware_tools_5.23.1_by_SergioPoverony.zip and leave alone that github since it is just one piece of the puzzle. The detailed infos how to get a working loader are in the rockchip instructions

     

    Of course and the command would be rkdeveloptoo rl 0x0 etc etc etc ( try rkdeveloptool -h to get the help)
    But if you are lucky that works multitool, well that is the easiest way to clone and clone back
  7. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    Thank you for detail explanation in a basic way.  I can understand the logic of booting process now.
     
    After booting from eMMC successfully, I try to boot from SD card again to try the multitool but not success. At current, my box still only can boot from eMMC.
     
    I guess using rkdevelopertool to backup will create the .img file that could be restored using "rkdeveloptool wl 0X0 yourimage.img" command, right?
    I will try to backup the entire eMMC using rkdevelopetool and report the result later. 
  8. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    I used Etcher to flash the Armbian image to the SD card as usual but it is unable to boot from SD card. 
  9. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    That's true, because the sdcard controller is not where u-boot and kernel are told by device tree to look for.
     
    Adapting the device tree for the kernel is easy, but u-boot dtb requires a recompilation.
     
    When armbian is installed, u-boot is totally responsible for the boot process. It scans the devices to find a valid bootable system and the order is first sdcard, then USB and finally internal eMMC.
    If you have a lucky USB stick, you could try to put the Multitool on a USB stick and see if boots from there. I say "lucky USB stick" because u-boot USB code is buggy and does not always work.
     
    All kind of regular images (armbian, multitool, libreelec if available too...) can be burnt on USB stick or USB external hard drive: u-boot should prefer booting from there (if the buggy code doesn't kick in).
     
     
  10. Like
    RetroFan90 reacted to fabiobassa in CSC Armbian for RK3318/RK3328 TV box boards   
    @chinhhut

    Try these steps:
    1) push the little switch inside the hole while inserting a male-male cable into the otg
    2) on another linux machine you should have now a new device (lsusb will help you) and you can run rkdeveloptool
    3) rkdeveloptool ld should List Device
    4) rkdeveloptool rd 3 should Reset Device into mode 3  ( maskrom )
    5) rkdeveloptool db MiniLoaderAll.bin ( of course from your path) should upload a temporary loader to recognize the internal emmc
    6) if all is successfull until now you can rkdeveloptool wl 0X0 yourimage.img . This should flash the internal emmc .

    DISCLAIMER: very " dangerous" approach , be ready to have the opportunity to short the emmc clock pin to ground to go back into mask rom
     
    MiniLoaderAll.zip
  11. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    I'm going to follow your guide but I just want to confirm about the whole story from your idea.
    According to your guide, the MiniLoaderAll.zip contain the u-boot of the box? After flashing it to the eMMC successfully, the box may support to boot from USB and unable to boot from Android anymore? 
     
    One more question, how to get the MiniLoaderAll.zip as your attachment? You extract it from similar Rk3328 box or that's built manually by yourself.
    Thank you once again for detail suggestion.
  12. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    @fabiobassa @jock I've followed your guide and got success. Thank you so much.
    root@mybox:~/rkdeveloptool# ls 99-rk-rockusb.rules Makefile.in RKComm.h RKImage.h RKScan.h cfg configure.ac main.cpp CMakeLists.txt Property.hpp RKComm.o RKImage.o RKScan.o config.h.in crc.cpp main.o DefineHeader.h RKBoot.cpp RKDevice.cpp RKLog.cpp Readme.txt config.ini crc.o parameter_gpt.txt Endian.h RKBoot.h RKDevice.h RKLog.h aclocal.m4 config.log gpt.h rkdeveloptool Makefile RKBoot.o RKDevice.o RKLog.o autom4te.cache config.status license.txt Makefile.am RKComm.cpp RKImage.cpp RKScan.cpp boot_merger.h configure log root@mybox:~/rkdeveloptool# ./rkdeveloptool ld DevNo=1 Vid=0x2207,Pid=0x320c,LocationID=101 Loader root@mybox:~/rkdeveloptool# ./rkdeveloptool rd 3 Reset Device OK. root@mybox:~/rkdeveloptool# ./rkdeveloptool db MiniLoaderAll.bin Opening loader failed, exiting download boot! root@mybox:~/rkdeveloptool# ./rkdeveloptool db /root/MiniLoaderAll.bin Downloading bootloader succeeded. root@mybox:~/rkdeveloptool# ./rkdeveloptool wl 0X0 /root/Armbian_21.11.0-trunk_Rk3318-box_bullseye_edge_5.14.14_minimal.img Write LBA from file (100%) root@mybox:~/rkdeveloptool# ./rkdeveloptool ---------------------Tool Usage --------------------- Help: -h or --help Version: -v or --version ListDevice: ld DownloadBoot: db <Loader> UpgradeLoader: ul <Loader> ReadLBA: rl <BeginSec> <SectorLen> <File> WriteLBA: wl <BeginSec> <File> WriteLBA: wlx <PartitionName> <File> WriteGPT: gpt <gpt partition table> WriteParameter: prm <parameter> PrintPartition: ppt EraseFlash: ef TestDevice: td ResetDevice: rd [subcode] ReadFlashID: rid ReadFlashInfo: rfi ReadChipInfo: rci ReadCapability: rcb PackBootLoader: pack UnpackBootLoader: unpack <boot loader> TagSPL: tagspl <tag> <U-Boot SPL> ------------------------------------------------------- root@mybox:~/rkdeveloptool# ./rkdeveloptool ld DevNo=1 Vid=0x2207,Pid=0x320c,LocationID=101 Maskrom  
  13. Like
    RetroFan90 reacted to fabiobassa in CSC Armbian for RK3318/RK3328 TV box boards   
    @chinhhut
    Glad you got success .
    Don't forget to put a like that helps @jock and myself in community reputation
     
     
     
  14. Like
    RetroFan90 reacted to hexdump in CSC Armbian for RK3318/RK3328 TV box boards   
    @chinhhut - this might be some interesting reading too regarding boxes, which cannot boot from sd card: https://github.com/hexdump0815/u-boot-misc/issues/2
     
    best wishes - hexdump
  15. Like
    RetroFan90 got a reaction from chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    how do get the dts file for my box?
    do i need to use multitool to dump it first?
    i want my clock to work in armbian along with working graphics and a decent overclock
    i know that dmssru on 4pda ru forums made a semi decent attempt to overclock android 9 for h96 max but my wifi and bt would not work properly.
    and how do i get the metal can off my wifi module? it seems to be soldered on.
    here is the firmware for the h96 max modded by dmssru on 4pda
    https://drive.google.com/drive/folders/1W7BkOj1Q16O_wvlLlFh06v_D5Yol9KvE
    and here is the tools and Firmware , Software & Drivers
    https://drive.google.com/drive/folders/1vevBj3JySrkcurvnLPqU6aY-5APtXHYI
    and here some random builds as well
    https://drive.google.com/file/d/1w1KgbetDIIIU08-jmN3ll_0IF9cR5Lic/view
    also this...
    https://drive.google.com/file/d/1l_WECaMMWS0BI0rIY7uiWcw6X_BPu-yZ/view?usp=sharing
     
    Hope These help
  16. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    I have a T9 box (2G memory & 16GB flash) and just install Armbian 21.11 - Debian Bullseye minimal - mainline kernel 5.14.14 successfully to eMMC according to the guide.
    Everything seems to work well until I tried to unplug the adapter and then replug the adapter again. After that,  the box unable to start even I tried to unplug/replug the adapter several times again. There is only black screen via HDMI output.
    Of course, I can install Armbian to the eMMC from scratch again but I'm afraid the "black screen" error above will happen.
    @jockdo you have any suggestions to fix this? Please let me know if you need any detail steps or log to debug.
    Thank you very much for your great work again.
  17. Like
    RetroFan90 reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards   
    I did not run the rk3318-config yesterday, just keep default. But I run the "apt get upgrade" and also forgot to run the following command after installing to eMMC:
    Run apt-mark hold linux-image-edge-rockchip64 linux-dtb-edge-rockchip64 to avoid the upgrade of kernel with the armbian official one, since it still does not contain rk3318 That would be the reason the kernel of my box was updated to the latest one from armbian official. It did not contain 3318 dtb so the box was unable to boot.
     
    Today, I just re-install from scratch again then run the hold command to prevent to upgrade the kernel. The "black screen" error is not happened again up to now even unplug/plug about 3 times.
     
    Thank you very much for your quick response. 
  18. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    ook thanks for reporting! Much better to know that it wasn't a dtb/kernel fault
  19. Like
    RetroFan90 reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards   
    Hi all, So I started from scratch, everything works fine without any overlays but this morning I tried adding overlays=rk3318-box-led-conf3 in armbianEnv.txt and the box freezes at startup

  20. Like
    RetroFan90 reacted to Gausus in CSC Armbian for RK3318/RK3328 TV box boards   
    EDIT:
     
    Try forcing mode on HDMI
    Add new line inn armbianEnv.txt
     
    sudo nano /boot/armbianEnv.txt
    extraargs=video=HDMI-A-1:D drm.edid_firmware=edid/1920x1080.bin
     
    # OR you can test this setting
    extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1920x1080.bin video=HDMI-A-1:1920x1080
     
    # IF not working test lower res like 1024x768 
     
    # Y can set different refresh rate to :  1024x768@30
    extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1024x768.bin video=HDMI-A-1:1024x768@30
     
    If working change res after login from Settings > Display ( Xfce)
     
    More info her LINK1 : LINK2
     
     
     
     
  21. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    Very strange...
    May I ask you if you're using the sdcard or the system is installed on emmc?
    Also if you can edit armbianEnv.txt and set verbosity=10 maybe the kernel provides some more hints.
     
    At the moment I'm running out of ideas: a full dmesg from serial would give some hints on what is going on
    I need some time to think about the issue...
  22. Like
    RetroFan90 reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards   
    At moment, I have system just on sd-card..
    I switched to verbosity = 10 but then it scrolls too fast on the screen, suddenly I tried to film it and bring out some photos but hey it's not super easy ..
    It gives a lot of image very blurry finally I did the best, at the end I only have 5 lines with the rest of the black screen .. Hope that can help you ..
  23. Like
    RetroFan90 reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards   
    copy of dmesg without rk3318-box-cpu-hs and rk3318-box-led-conf3 => https://paste.yunohost.org/ogasoqumeq.vbs
  24. Like
    RetroFan90 reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    @MX10.AC2N
    What is a sec... there is something that definitely should not be there. In your dmesg log I see:
    [ 2.326648] rk3328-dmc ff780000.dmc: current ATF version 0x101  
    Instead the expected message from a freshly installed system (debian bullseye) is this:
    [ 2.307538] rk3328-dmc ff780000.dmc: trusted firmware need to update or is invalid  
    On you system the DRAM memory controller (DMC) driver is definitely active, while it should not be! This is incredibly unexpected!
    Now I tried both the latest images on my box and the DMC does not activate because there is the need for a bootloader piece of code I didn't yet plugged into, so I wonder what the hell is going on!
     
    Do you ever installed the older image with legacy kernel in eMMC or is there original Android in eMMC?
    This is absolutely strange, it looks like the bootloader is not what it is expected to be!
     
    By the way to fix this issue, which is potentially causing you a system freeze or kernel fault, substitute /boot/dtb/rockchip/rk3318-box.dtb with the one attached here.
     
     
     
     
    rk3318-box.dtb
  25. Like
    RetroFan90 reacted to MX10.AC2N in CSC Armbian for RK3318/RK3328 TV box boards   
    Thank again @jock
    So on the emmc I still have the armbian bulleyes system from the station-m1 image
    So I replaced the rk3318-box.dtb file (yours is slightly heavier 63761 bytes against 62913 for the dtb already present in the image) here is the new dmesg => https://paste.yunohost.org/alatoyakud.md