Jump to content

paradigman

Members
  • Posts

    77
  • Joined

  • Last visited

Reputation Activity

  1. Like
    paradigman got a reaction from suser in CSC Armbian for RK3318/RK3328 TV box boards   
    Of course. I wrote a little script for it that shortens the process a bit. It is important to know that I am not working as a root user within armbian.
    The necessary steps: 
       copy openvfd-fd6551.dts to /home/<username>    copy install_kernel_debs.sh to /home/<username>    copy OpenVFDService file to /usr/sbin,  AND set permission to 777 !    copy openvfd.service file to  /lib/systemd/system        sudo armbian-add-overlay openvfd-fd6551.dts    sudo /bin/bash install_kernel_debs.sh 
    After reboot:    cd linux_openvfd/driver    edit MAKE -> KERNELDIR = /lib/modules/$(shell uname -r)/build    sudo make -j4    sudo make modules_install    sudo modprobe openvfd     sudo usermod -a -G i2c <username> Start the Service:
    sudo systemctl enable openvfd sudo systemctl start openvfd

       
    openvfd-fd6551.dts openvfd.service OpenVFDService install_kernel_debs.sh
  2. Like
    paradigman got a reaction from hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    @Martynas Skapas :
    I have already played through this problem with another rockchip box. The problem there was that the manufacturer unexpectedly replaced the 6334 chip with the 2734C.
    Here is my post about it from the past:
    https://forum.armbian.com/topic/26978-csc-armbian-for-rk3318rk3328-tv-box-boards/?do=findComment&comment=143890
  3. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    #######################
    EMMC: V1.0 Release Version
    #######################
    # Tested on 8gb device (16/11/2023)
    # Tested on 4gb device (03/11/2023)
    # Flash RkdevTool   v2.86 Doesn't Work on Windows 11 Computers!

    How to build this images? V0.7 Root + Build Update

     

    What is that?
    Yes, it's a v0.7 update image, that you flash a little gpt file to repair partition on EMMC.
    So, you will use the same v0.7 Update images that you have.
    The Jammy Server 4gb Update image
    The Jammy Server 8gb Update image
    The Jammy Desktop 4gb Update image
    The Jammy Desktop 8gb Update image
    The BookWorm Server 4gb Update image
    The BookWorm Server 8gb Update image
    The BookWorm Desktop 4gb Update image
    The BookWorm Desktop 8gb Update image
    The Gpt file
     
    First Things First! Drop Config.cfg  the RkDevTool config file on folder
    Righ click on white background from RKDevTool click on Load Config Select the Config.cfg  
     
    Flash Update.img  
    Restart device on loader mode Flash gpt.img  
     
    The Gpt file
    The Jammy Server 4gb Update image
    The Jammy Server 8gb Update image
    The Jammy Desktop 4gb Update image
    The Jammy Desktop 8gb Update image
    The BookWorm Server 4gb Update image
    The BookWorm Server 8gb Update image
    The BookWorm Desktop 4gb Update image
    The BookWorm Desktop 8gb Update image
     
    Yes, you can Skip Root flash.
    But you can drop the v0.7 Root.img file on this device.
    Please Reflash GPT.img after new Root.img
     
    🏆 help to add other boards in armbian standart, you don't need to be a programmer to help the community,
    just need a copy of the ARM BOARD and a x86 computer to compile new versions.

    Since It will be the image that i use on my server,
    This is my Last Collaboration in this project,
    if you done something better, post it here.

    ################################ 8GB devices Fix ##############################
    8GB device First Boot Comand:
    # this GPT file was generated from a 4gb device. # in 8gb device you will need to trick the gpt after instalation # First boot comand: fdisk /dev/mmcblk1 t 4 1 w
    On 8gb device Screen you will see:
    fdisk Welcome to fdisk (util-linux 2.37.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. This disk is currently in use - repartitioning is probably a bad idea. It's recommended to umount all file systems, and swapoff all swap partitions on this disk. Command (m for help): t Partition number (1-4, default 4): 4 Partition type or alias (type L to list all): 1 Changed type of partition 'Linux filesystem' to 'EFI System'. Command (m for help): w The partition table has been altered. Syncing disks. Now if you reboot the 8gb device, it will find the linux partition without no problem.
     
    gpt.img
    config.cfg
  4. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    Attached, DTB and DTS Files that work with all USB ports
     
    Today I start the Recompile Session.
    Command:
    ./compile.sh build BOARD=station-m2 BRANCH=edge BUILD_DESKTOP=yes BUILD_MINIMAL=no DESKTOP_APPGROUPS_SELECTED='3dsupport browsers desktop_tools internet office programming remote_desktop' DESKTOP_ENVIRONMENT=cinnamon DESKTOP_ENVIRONMENT_CONFIG_NAME=config_base KERNEL_CONFIGURE=yes RELEASE=jammy
    H96 Max RK3566 4gb and 8gb ✔️
    boot from SD-CARD Soldered ✔️
    runs kernel 6.2 DESKTOP ✔️
    Boot on Linux  XFCE Ambian✔️
    display video HDMi ✔️
    detect internal MMC ✔️
    Detect SD-CARD ✔️ 
    Detect USB 2.0 port ✔️ 
    Detect USB 3.0 port ✔️ (nothing better than an usb hub)


    The changes are:
    Line 299 and Line 304
    Amazing job @hzdm
     


     
     
    rk3566-firefly-roc-pc.dtb rk3566-firefly-roc-pc.dts
  5. Like
    paradigman got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    @Keeper : check my previous post, because the the error is familiar to me
     
    https://forum.armbian.com/topic/17597-csc-armbian-for-rk3318rk3328-tv-box-boards/?do=findComment&comment=143890
     
     
  6. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    dear friends that buy cheap  42U$ tv boxes on chinese scam sites!
    rk3566 h96MAX ARMBIAN23 kernel6 MMC image it's done.
     
    🏆 help to add other boards in armbian standart, you don't need to be a programmer to help the community,
    just need a copy of the ARM BOARD and a x86 computer to compile new versions.
     
    This is an internal mmc trick 2-step image!
    You no longer need to solder an SD-card Reader like the creepy Release Version v0.5 BETA that i made.

    check before if your device has the regulator: fan53555
    check before if your device has: tcs4525
    check before if your device has: RK809-5
     
    works with 4gb and 8gb devices

    How to use it:
    - install RKDevTool Drivers Rockchip
    - Use RkDevTool v2.86
     
    - Drop Config.cfg  the RkDevTool config file on folder
    Righ click on white background from RKDevTool
    click on Load Config
    Select the Config.cfg
     

     
    Step 1:
     
    Armbian 23.11 Kernel 6.2 H96 MAX 4GB/32GB Rk3566 Server.img
    Armbian 23.11 Kernel 6.2 H96 MAX 8GB/64GB Rk3566 Server.img
     
    Extract this file.xz with 7zip
    Extract this file.tar with 7zip
    Connect Your device:
    How? press the back button with a toothpick and connect male to male USB to you computer.
    Flash the Update Image on entire device as an Upgrade Firmware
    After Complete ! ! Disconect your device ! !
     


    and because I'm lazy and I don't want to work on that damn FIT image anymore. You will need to do a second step:
     
    Step 2:
    Reconnect Your device:
    How? press the back button with a toothpick and connect male to male USB to you computer.

    Flash the armbian extracted GPT image inside the MMC gpt partition
    how: 
    on RkDevTool v2.86
    double click the number on table
    set Address on 0x00000000
    set Name on gpt
    select the root file to flash on the "..." the dot right side of the table........
    mark, Write by address
    after flash, it's done, use HDMI and USB to create user and password, regular armbian install...
     

     
     
    The Gpt file
    The Server 4gb Update image
    The Server 8gb Update image
    Yes, you can Skip Root flash.
    But you can drop the v0.7 Root.img file.
    Please Reflash GPT.img after new Root.img

    Two Root v0.7 Files:
    Debian 12 BookWorm Server Minimal ROOT
    Debian 12 BookWorm Desktop Gnome ROOT
     
    Armbian_23.11.0-trunk_Station-m2_jammy_edge_6.2.16_Server_Minimal.img ✔️
    Boot from internal MMC ✔️
    Runs kernel 6.2 Server ✔️
    display video HDMi ✔️
    detect internal MMC ✔️
    Detect SD-CARD ✔️ 
    Detect USB 2.0 port ✖️ (no USB2.0 on Server Images)
    Detect USB 3.0 port ✔️ (use a cheap usb hub 3.0)

    ##################################### END ##############################################
    ############################### HOT TO CREATE IMAGES ######################################

    if you wanna do all that creepy again with other devices and images, (please do it on other devices) and topic

    this is all you need to create this image,
    first step:
    Compile armbian on linux desktop
    dont forgot to do it with modified DTS file: 
    in this case DTB + DTS Files for you to edit because you want to help the community
     
    any resemblance to this topic is mere adaptation
     
    Mount that image virtual device like /media/armbian_boot
    fdisk -l your-armbian-image-for-sd-card.img mount -o loop your-armbian-image-for-sd-card.img /media/armbian_boot if you can't "like WSL2" sudo apt-get install kpartx sudo kpartx -av your-armbian-image-for-sd-card.img sudo mount -o loop /dev/mapper/loop0p1 /media/armbian_boot
    Second Step:  prepare an sd card or usb flash dummy , can be anithing with 6gb
    fdisk /dev/mmcblk1 N default default (lower this value to match the size of your root image) T 1 W
    third step: format that flash drive for ext4
    mkfs.ext4 /dev/mmcblk1p1  
    fourth step: mount that clear partition and copy the entire virtual drive to the flash device
    mount /dev/mmcblk1p1 /mnt rsync -avx --timeout=10 /media/armbian_boot /mnt  
    fifth Step: Edit your uuid From Armbian Boot config "uuid for /dev/mmcblk1p1"
    blkid nano -w /mnt/boot/extlinux/extlinux.conf sync umount /mnt
    sixth step: make an hardware RAW.img from hardware flash drive with these parameters
    sudo dd if=/dev/mmcblk1p1 of=~/root.img bs=4096 status=progress PS: can be /dev/SDA" I do it on my h96max" so it's mmcblk1
     
    now you have an ROOT IMAGE MADE BY YOURSELF!
     
    Update.img
    CREATE the Update Image on linux with the rockchip software.
    Linux Pack Rockchip Firmware
     
    ./mkupdate.sh
    Uboot Legacy, Parameter.txt to create the Rockchip image

    open new topics when performing this procedure on a device other than the H96MAX
    I will be happy to help
     
    This topic is Closed until Kernel 7
    i dont wanna talk about RK3566 for the rest of my short life
     
    we're running it "Cuban internet style" with 42U$ computers to escape government censorship.
    i laughed at china, now it happens here in latin america.
     
  7. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    this image probably from Rockchip
    it's encrypted with sha256
    and use an old kernel
    can be good to work nativelly
    baremetal with RKnpu and GPU
    but i'm looking for something more docker side of things
    kernel 6.2 is runing amazing, i'm searching for a way to make an image for flash mmc
     
     
    i can create an image with  Linux_Pack_Firmware
     
     
    My image looks like this:
     
    /dev/mmcblk1p3: PARTLABEL="trust" PARTUUID="xxx" /dev/mmcblk1p1: PARTLABEL="security" PARTUUID="xxx" /dev/mmcblk1p4: PARTLABEL="baseparameter" PARTUUID="xxx" /dev/mmcblk1p2: PARTLABEL="uboot" PARTUUID="xxx" /dev/mmcblk1p5: PTUUID="xxxx" PTTYPE="gpt" PARTLABEL="root" PARTUUID="xxx"  
    and its reporting on ttl:

     
    Scanning mmc 0:4... Failed to iterate over directory extlinux Failed to iterate over directory boot.scr.uimg Failed to iterate over directory boot.scr Failed to iterate over directory boot Failed to iterate over directory boot Failed to iterate over directory boot ## Error: "mtd_boot" not defined ## Error: "mtd_boot" not defined ## Error: "mtd_boot" not defined

    But i need to change it to something like this to boot from MMC:
     
     
    /dev/mmcblk1p4: UUID="xxx" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="xxx" /dev/mmcblk1p3: PARTLABEL="trust" PARTUUID="xxx" /dev/mmcblk1p1: PARTLABEL="security" PARTUUID="xxx" /dev/mmcblk1p2: PARTLABEL="uboot" PARTUUID="xxx"  
    and it need to do something like this:

     
    Scanning mmc 1:1... Found /boot/extlinux/extlinux.conf Retrieving file: /boot/extlinux/extlinux.conf 320 bytes read in 21 ms (14.6 KiB/s) 1: Armbian Retrieving file: /boot/uInitrd 33353896 bytes read in 2805 ms (11.3 MiB/s) Retrieving file: /boot/Image 27853312 bytes read in 2340 ms (11.4 MiB/s)  
     
    if i boot from SD card and change it
    i'ts working, booting from MMC but i'm trying to make a image to share here and use as backup/repair
     

     
     
     
  8. Like
    paradigman reacted to Kenneth Hidalgo in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    Of course, when I have time, I'll share them with you.
  9. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    If you like what you see here and want to help: Donate Armbian the like button only costs a few dollars.
    Armbian Needs you help!
    ####################### Just a Few clicks to help ##################
    ARMBIAN SERVER 23.11 SD CARD IMAGE v0.5
    ARMBIAN DESKTOP 23.11 SD CARD IMAGE v0.5
     
    ####################### WHAT IS  THIS? #######################
     
    This is an SD-card image!
    With this images you can create a v0.7 image and apply it to the v1.0 image from @hotnikq
    With v0.7 root You can create a v0.8 image from @hzdm
    to use the v0.5 image directly You will need do solder an SD-card Reader.

    check before if your device has the regulator: fan53555
    check before if your device has: tcs4525
    check before if your device has: RK809-5

    works with 4gb and 8gb  devices
     
    ####################### HOW TO BUILD IT! #######################

    https://docs.armbian.com/Developer-Guide_Build-Preparation/
     
    Runtime [ 6:05 min ]
    [✨] Repeat Build Options
    ./compile.sh build BOARD=station-m2 BRANCH=edge BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=yes RELEASE=bookworm  
    ####################### HOW TO USE IT #######################

    using the T95 Method
    flash the Wipe_part on Boot partition
    flash the Wipe_part on Recovery partition

    Connect the power cord...
    wait 1 second
    and in a fraction of second, connect the sd-Card on device.....
    if it doesn't boot, try again in a different timming 2 seconds after power.
     
    On sd card flash the unnoficial modified armbian
     
    ####################### SOLDERED READER EXAMPLE #######################
     

     
     
    #########################  END  #########################

    #######################  FIRST BOOT  #######################
     
    Updated dtb file here
    Drop the rk3566-firefly-roc-pc.dtb file inside the /boot/dtb/rockchip/
     
    #######################WHAT IS  THIS? #######################
     
    Base image: Armbian_23.11.0-trunk_Station-m2_jammy_edge_6.2.16_minimal.img ✔️
    H96 Max RK3566 4gb and 8gb ✔️
    boot from SD-CARD Soldered ✔️
    runs kernel 6.2 DESKTOP ✔️
    Boot on Linux  XFCE Ambian✔️
    display video HDMi ✔️
    detect internal MMC ✔️
    Detect SD-CARD ✔️ 
    Detect USB 2.0 port ✖️ (need to drop the rk3566-firefly-roc-pc.dtb)
    Detect USB 3.0 port ✔️ (nothing better than an usb hub)
     
    ####################### HOW PUT IT ON MMC #######################
     you can use it to make a v0.7 ROOT image.
    how?
     
     
     
     
  10. Like
    paradigman reacted to hotnikq in Efforts to develop firmware for H96 MAX V56 RK3566 4G/32G   
    THIS IS THE SHAGGY013  Original Post:
    and this is the method that i used to compile my image.

     
     
      
     
      
     
     
     
  11. Like
    paradigman reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    GPU is only doing 3D graphics.
    Media applications are accelerated by VPU, which is a totally different part of the chip. I think gstreamer is already quite capable of using the v4l2 interface to profit of media acceleration drivers already in mainline kernel (namely hantro and rkvdec for rk3318, both accelerating h.264, vp8, vp9 and hevc, but some codecs still have partial support on rockchip64 armbian branch).
    Ffmpeg needs to be built with patches and in a custom way because kernel interface for codecs has been made "stable" very recently (I guess in kernel 5.19).
    Also mpv has the capability to use hardware video decoding via v4l2, but still need a custom build because it uses in turn ffmpeg. There is this old thread where I provided a custom build binary of mpv, but it was for ubuntu hirsute and debian bullseye; surely it would require some adaptations and tinker if you want to run on newer distros.
     
    Accelarerating youtube in a browser is a whole different story. I don't know what is the current status (maybe @usual user has some clues?), but surely it is much more challenging than standalone video playing.
     
  12. Like
    paradigman got a reaction from FRIKIdelTO in CSC Armbian for RK3318/RK3328 TV box boards   
    @FRIKIdelTO "I have installed several versions of Armbian and in all of them I have the same problem, the WiFi does not work. The networks can be searched, but it cannot connect, it is as if the password is not correct,"
    As you can see, on your board is produced with a new type wireless chip, the 2734C.


     
    For this chip should to use a patch, as you can read this:
     
  13. Like
    paradigman reacted to Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    i got myself a new box, still an h96 max, same as what @paradigman has. it also has a 2734c wifi chip, his posted nvram from the manufacturer works. hdmi on edge kernel still doesn't work on my monitor/tv but i can access it via ssh after install so everything is good. thanks again @jock, @fabiobassa and @paradigmanfor the awesome community support.
  14. Like
    paradigman reacted to DigitalDaz in T95 Plus 8GB RAM 64GB EMMC - Results so far   
    I'm going to write up my progress here as I move forward: https://www.t95plus.com/
     
  15. Like
    paradigman got a reaction from argen96 in CSC Armbian for RK3318/RK3328 TV box boards   
    I finally managed to solve the problem, my box can connect to wifi with that new 2734C chip.  Thanks to @jock for directing my attention to the nvram file, I was wrong, dtb was not needed to solve it. However, Google didn't help with the solution (I don't even understand how it could have helped), but I contacted the Chinese manufacturer of the box and they helped. I have attached the correct nvram file, the content of which I overwrote the brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt file that comes with the current image. I recommend that you integrate it into the kernel, because the current kernel does not, or at least does not, support this widely used wireless chip.
    nvram_2734c.txt
  16. Like
    paradigman reacted to Gausus in CSC Armbian for RK3318/RK3328 TV box boards   
  17. Like
    paradigman reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    LIRC comes after the kernel-based handler. You should investigate ir-keytable instead, that will change the kernel-level key bindings for the remote.
  18. Like
    paradigman got a reaction from Willy Moto in CSC Armbian for RK3318/RK3328 TV box boards   
    I finally managed to solve the problem, my box can connect to wifi with that new 2734C chip.  Thanks to @jock for directing my attention to the nvram file, I was wrong, dtb was not needed to solve it. However, Google didn't help with the solution (I don't even understand how it could have helped), but I contacted the Chinese manufacturer of the box and they helped. I have attached the correct nvram file, the content of which I overwrote the brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt file that comes with the current image. I recommend that you integrate it into the kernel, because the current kernel does not, or at least does not, support this widely used wireless chip.
    nvram_2734c.txt
  19. Like
    paradigman reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards   
    Glad to hear that you solved the issue; I will put this nvram in the armbian firmware repository as well, thanks!
  20. Like
    paradigman got a reaction from Seth in CSC Armbian for RK3318/RK3328 TV box boards   
    I finally managed to solve the problem, my box can connect to wifi with that new 2734C chip.  Thanks to @jock for directing my attention to the nvram file, I was wrong, dtb was not needed to solve it. However, Google didn't help with the solution (I don't even understand how it could have helped), but I contacted the Chinese manufacturer of the box and they helped. I have attached the correct nvram file, the content of which I overwrote the brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt file that comes with the current image. I recommend that you integrate it into the kernel, because the current kernel does not, or at least does not, support this widely used wireless chip.
    nvram_2734c.txt
  21. Like
    paradigman reacted to JMCC in CSC Armbian for RK3318/RK3328 TV box boards   
    @jock Thanks for the info. On a side note, I found a small bug: when making the emmc backup, if the resulting file is bigger than 4Gb it will just stop there (because of the FAT size limit) and you will get a broken backup.
     
    Probably could be solved by splitting the backup, for example along these lines:
    # Split backup in 2Gb parts, with two-character suffixes dd if=/dev/mmcblk1 | gzip -c | split -b 2000m - tvbox-backup.img.gz. # Restore the backup cat tvbox-backup.img.gz.* | gzip -dc | dd of=/dev/mmcblk1  
  22. Like
    paradigman got a reaction from Sigma7 in CSC Armbian for RK3318/RK3328 TV box boards   
    @jock : you did a great job, congratulations! 👍
    I tried the new image today and (I think thanks to the clock change) I saw a 20% increase in speed during the operation of the box.
    I was hoping that the new image, with its many minor fixes, would also help my Wi-Fi connection problem.
    Unfortunately, I have not seen any improvement in this area. The relevant part of the dmesg output is:

    [   10.099047] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4334-sdio for chip BCM4334/3
    [   10.099438] usbcore: registered new interface driver brcmfmac
    [   10.100554] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac4334-sdio.rockchip,rk3318-box.bin failed with error -2
    [   10.304233] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4334-sdio for chip BCM4334/3
    [   10.304394] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
    [   10.304865] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4334/3 wl0: Jul 24 2019 12:58:36 version 6.10.191 (TOB) (r) FWID 01-b049404e
     
     
  23. Like
    paradigman got a reaction from MattWestB in CSC Armbian for RK3318/RK3328 TV box boards   
    In my experience, no I2C bus is freely routed, such as soldering point. However, if your box has an LCD display, there is a workaround. In 90% of such boxes, the display drive IC is I2C bus, so you can connect it to its corresponding pins (SCK, SDA) with another device.
  24. Like
    paradigman got a reaction from Sigma7 in CSC Armbian for RK3318/RK3328 TV box boards   
    I use @jock's great job (Armbian_22.02.0-trunk_Rk3318-box_bullseye_edge_5.15.16_minimal) in my H96 Max box.
    I would like to clone this content of box to another two H96 boxes.
    I do the backup with multitool and then use the restore function on the other with the same tool.
    Unfortunately, the result is not what I expect, it doesn't start at first:

     
    What to do or write to get started?
  25. Like
    paradigman reacted to Zippy in CSC Armbian for RK3318/RK3328 TV box boards   
    did not focus on vfd yet since i am using this box as low power server utility in case of power outage, so really not need the led
    but if i can help by doing some test why not
    will let you know
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines