-
Posts
387 -
Joined
-
Last visited
Reputation Activity
-
fabiobassa reacted to Seth in CSC Armbian for RK3318/RK3328 TV box boards
Ok, waited a bit before posting. i got myself an h96 max box to play around with and did some preliminary testing with the stock android firmware, installed terminal and copied the device tree using hexdump's script as well as dmesg log. will upload photos of the board soon as well as the device's relevant part numbers.
dmesg.log device-tree-copy.tar.gz
-
fabiobassa reacted to Seth in CSC Armbian for RK322x TV box boards
hello! H96 box finally arrived so i might hit the other thread soon. scishion box is working flawlessly at the moment running armbian, klipper/mainsail for my 3d printer, and it also serves as my mqtt server/bridge, resource usage is about 2-10% while printing. i agree, if going for production deployment go with serious and supported sbc. i keep the tv box as non critical part of my home network apart from the time i used it as my main router, http cache and squidguard it did work for about half a year and only broke down when it got wet. it does work thanks to @jock and @fabiobassa.Unfortunately the production of this box is quite unpredictable since the hardware is not fix, they just put whatever is the cheapest available parts at the time of production. anyways, a good rule of thumb when dealing with these boxes is the first post, it gets updated as more and more people submit findings, its the power of the community. like i said back then, if it works it only consumes 10 watts and it can do a ton of crazy stuff.
edit: typo stuff
-
fabiobassa reacted to Vittorio Mori in CSC Armbian for RK322x TV box boards
If anyone needs it, as a convenience, I leave here a google drive link for an Armbian "bullseye-minimal" image for the 322x box with FreePbx16 & Asterisk18 compiled in.
Took a whole afternoon of compiling code to make it work.
It's a .gz image you can restore via MultiTool.
root password: freepbx
Freepbx login: admin/freepbx
Hardware .dtb is left vanilla to boot on any platform - use rk322x-config to configure proper cpu/ddr/storage/led speed.
Gets IP from DHCP, you can of course use armbian-configure to use wifi or whatever.
ODBC connector compiled and included for mysql, codec g729 compiled and included.
It's working quite well with softphones ad Yealink VOIP DECT phones, on a couple of pjsip trunks. I expect it to work well with at least 8/10 extensions, maybe more.
Interface is quite heavy for my taste (node.js ....) but it seems it's the "new normal" we have to adapt to.
It's 2 gigs in size.
https://drive.google.com/file/d/1PYuakmA-9JNVmJ3VOYE7GFQBo6dqN-8t/view?usp=sharing
all credits to @jock for creating the original Debian Bullseye image.
-
fabiobassa got a reaction from Vittorio Mori in CSC Armbian for RK322x TV box boards
@Vittorio Mori
Good afternoon Vittorio
Somewhere in this same 3ad I already posted the boot seguence of those boxes. Posts are so many that maybe you didn't find it.
It doesn't exist a mbr or uefi , instead buried in the soc itself there is a tiny bootstrap that involves ddr ram and few others things. This is called loader mode
If for any reason not even the initializer is present in the emmc or nand, well we have a mode that is called maskrom mode. Since this is buried into the soc, those box are UNBRICKABLE since at least " something.." is still able to boot.
Once the loader is started then the control is passed to u-boot itself
Here you can have an idea of the flowchart
http://opensource.rock-chips.com/wiki_Boot_option
-
fabiobassa reacted to Felipe Triana in CSC Armbian for RK322x TV box boards
I think I know why he is trying to use tv boxes, not exacly why I mean, but I have a idea, and its the price. You see, here in BRZ, tv boxes are very cheap, you can find one in the local scrappy sometimes, or even people selling for less then 10-20 USD a used one, almost same price as a brand new ESP32... A Pi Zero I think costs almost 40 USD...
But you are right, this tv boxes all are used components, all fab data on then is from 13 or 12, 10 year old chips, all with solder flux still under them. It's not reliable, specially with wireless. That's why I told him to use ethernet. I have the first one running here for almost 1 month running home-assistant, that is pretty nice. The only brick wall I hit is this limit on 1GB ram, I swaped very DDR3 chips, even with 4 bit ones, and also buyed another box that came with single 2Gig module, called LPDDR2, even discovered that its used on many many phones, I had a Asus Zenphone 2 board laying around and took a look, and find on LPDDR2 Hynix Haha
Unfortunately I still stuck with 1GB xD I think that must be related with you said - hardcoded on the bootloader without source code...
-
fabiobassa reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
There is such 2734C chip, a google search would have confirmed that to you easily.
The chipset under the hood is an ampak AP6334 which is in turn made of a couple of broadcom chips. The wireless part is a bcm4334.
Probably your issue is not the dtb but the wifi chip firmware or, more in particular, the nvram /lib/firmware/brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt which is not suitable for your board setup. The wifi depends on how the board is build for important things like reference frequency, antenna setup, sideband gpio, etc... If the nvram does not specify these params correctly, it will not perform well or will not work at all.
The best thing you could do is mount the vendor partition of your Android firmware and search for a suitable firmware for your board or extract from the live Android system.
Tthat could be easy but could also require various steps to get access to the partition, it depends and how the firmware is built.
Otherwise you could look around in google, download new nvrams for bcm4334/ap6334 and try and see if they work for you.
edit: BTW the wifi chip is fully supported by linux kernel and works wonderfully well on my board; when I say don't buy tv boxes if you want supported hardware I mean exactly this.
-
fabiobassa reacted to primoitt in Docker support for RK322X TV Boxes
All right.. We got our own topic for Docker talking 😁
-
fabiobassa reacted to SteeMan in Docker support for RK322X TV Boxes
Done. I went back to the end of April and tried to pull out all the docker related posts into this new thread. If you think I should go back farther, or if some of these posts should be moved back to the original thread let me know.
-
fabiobassa reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
UPDATE!!
Hello, I'm pleased to announce that rk3318 CSC configuration has been accepted into mainline kernel!.
This means that next Armbian release (probably August) will provide regular kernel upgrades offered by Armbian ecosystem via normal apt upgrade command.
Until then, please stay stick to the usual manual upgrade!
But there is something more: new update for the rk3318/rk3328 images!
Most important changes:
Kernel upgraded to version v5.18.6 Memory clock set to 667 MHz (was 333 MHz), providing a nice boost in general, desktop and GPU performance; despite this works fine on my board I always warn you to test images first via sdcard Introduces MGLRU patches from @yuzhaogoogle (you can read about here and search google for more details), which should provide much snappier experience especially on low-memory devices You can find the images and deb packages for upgrades browsing the directory pointed on first page as usual.
You can visit the Armbian MGLRU topic, if you have questions about the features or kernel issues (like crash dumps which involve kswapd, for example)
-
fabiobassa got a reaction from MattWestB in Docker support for RK322X TV Boxes
Dear friends, lately many many questions on this 3ad are about docker and it's problems.
I really would suggest to open a different discussion and leave here only kernel and hardware relate problems, because if we continue here with user space implementantions the 3ad becames abnormous and difficult to read.
Maybe @MattWestB and @primoitt could start soewhere else an apposit 3ad and guide other friends into solutions.
Lately if solution needs an intervent on kernel all of you will be welcome to ask here
Thanks a lot !!! 🤗
-
fabiobassa got a reaction from SteeMan in Docker support for RK322X TV Boxes
Dear friends, lately many many questions on this 3ad are about docker and it's problems.
I really would suggest to open a different discussion and leave here only kernel and hardware relate problems, because if we continue here with user space implementantions the 3ad becames abnormous and difficult to read.
Maybe @MattWestB and @primoitt could start soewhere else an apposit 3ad and guide other friends into solutions.
Lately if solution needs an intervent on kernel all of you will be welcome to ask here
Thanks a lot !!! 🤗
-
fabiobassa got a reaction from Bandar in Docker support for RK322X TV Boxes
Dear friends, lately many many questions on this 3ad are about docker and it's problems.
I really would suggest to open a different discussion and leave here only kernel and hardware relate problems, because if we continue here with user space implementantions the 3ad becames abnormous and difficult to read.
Maybe @MattWestB and @primoitt could start soewhere else an apposit 3ad and guide other friends into solutions.
Lately if solution needs an intervent on kernel all of you will be welcome to ask here
Thanks a lot !!! 🤗
-
fabiobassa reacted to jock in Docker support for RK322X TV Boxes
Ah-ha, nope... or to be precise: I guess you would need the android kernel sources/headers to compile a working driver for it.
-
fabiobassa got a reaction from Revsearcher in CSC Armbian for RK3318/RK3328 TV box boards
@Revsearcher
Try to remove heatsink the uart could be there
-
fabiobassa reacted to jock in CSC Armbian for RK322x TV box boards
@Felipe Triana DDR memory detection is made by a rockchip proprietary code that is called ddrbin as the very first binary code.
It's a closed source binary, so whatever it does and how it does is not known. It produces some debug messages that may be useful to you (memory arrangement, density, bus width) when the serial adapter is connected to the board.
There is a tool, ddrbin_tool, that can be used to alter ddr speed, ddr command rate timing and uart debug speed, but nothing more.
If you totally erased the NAND, then the ddrbin in use is the one from the sdcard, if you installed "jump start" with multitool, then the ddrbin in use is from NAND.
Multitool can't completely erase the NAND because the kernel driver has some limitations and cannot access the first sectors of the NAND, thus multitool can't neither write or read the installed ddrbin in NAND.
-
fabiobassa reacted to Felipe Triana in CSC Armbian for RK322x TV box boards
@fabiobassa
Hi, I'm only replying now, because the forum limts one post per day for me, for now a least. Ok. Back to the topic.
Yesterday, I was trying to go back to the android because I was thinking in use the TV BOX as a temporary replacemant to my father's notebook, that stopped working and I already resoldered almost everything changed the SIO, SB etc.. Anyway, today I just boght another box, with android and installed for him, and worked fine... but would be nice to have a full backup of the nand anyway, if one day I wish to go back to original firmware, I should have done the backup.
The box is a MXQ-4K, as i said, but now I will give details:
It features a RK3228A, with 2GB of Micron DDR3 (2 chips on top, 2 on the back of board), a 8GB BGA NAND, and a SV6051 wireless chip and R329Q_V3.0 board revision. I took some photos for more details, right below here:
Here a close up of the rockchip on this board, before I changed the heatsink
Here is 2 of the 4 DDR3 ram chips, its HTTC4G83BGR (4 gigabites, or 512MB per module)
The wireless chip, SV6051P, nothing special..
An overview of the back of the board, showing the nand and pcb shape
And finely a overview of the board powered on, running main build from SD Card...
Ok, things that I noticed, that can ou cannot be bugs:
So far is what I noticed...
I would be already happy if a least I could recognize the full 2GB of ram on board and wireless worked on inbound connections, a least I could use the box as a home server, for files, websites, etc.
I found other issues that I think is maybe the hardware itself that cant cope with todays demands: main or legacy, even with multimedia tools installed, Youtube can't even play at 144p without dropping 20 to 40% of the frames, tested windowd, and fullscreen, same. Youtube keep rendering on CPU mode, with firefox or chromium, even if I run the browser with glrun command.
So far thats it, I'm afraid that I will be able only to reply after 24 hours, because of forum limitation, so in this case, until tomorrow! Thank you for the attention,
-
fabiobassa got a reaction from jock in Docker support for RK322X TV Boxes
Until are kernel related problems Is ok discuss here.
Or you can discuss elsewhere, test and then make requests here about missing features in kernel
-
fabiobassa got a reaction from MattWestB in Docker support for RK322X TV Boxes
Until are kernel related problems Is ok discuss here.
Or you can discuss elsewhere, test and then make requests here about missing features in kernel
-
fabiobassa reacted to MattWestB in Docker support for RK322X TV Boxes
@fedex My test script is showing the same and i can installing portainer and / or docker agent and its working OK.
What is HA complaining then you is trying installing it ?
Also the CPU is 32 bits so need using installing the "armv7l" version by selecting "raspberrypi2" or its failing.
@jock I think we shall not hijacking the thread with no Armbian things and you must saying if we shall stop spamming it with HA problems.
-
fabiobassa reacted to jock in CSC Armbian for RK3318/RK3328 TV box boards
I may remember not so well because rk3318 received little attention lately, but it should be enable and provided via opensource Lima driver.
You can check if AccelMethod is set to "glamor" (enabled) or "none" (disabled) in /etc/X11/xorg.conf.d/40-serverflags.conf
As usual, it is wise to disable compositing for a bit better performance in a typical desktop usage.
-
fabiobassa got a reaction from Vittorio Mori in CSC Armbian for RK322x TV box boards
@Vittorio Mori
Ciao Vittorio, buongiorno e benvenuto
I will answer in a straight manner don't consider it rude 😄 but just the answer of someone that loosed sleep trying to achieve the same as you.
Yes ! You have to go trought the whole compile method and then build your buildroot stripping down what is un-needed.
Now the problem is that used to exist a rockchip buildroot method described on github and i don t find anymore it
NO !! Unfortunately you still have to go trought the compilation method enabling compile fmpeg with some tweaking as described
here
with this 3 " magic" flags
--enable-rkmpp \ --enable-version3 \ --enable-libdrm \
or even on this same post at the beginning where @jock says as to enable to HW acceleration with some script
I did it but was a PITA !!!
hope you get your goal
-
fabiobassa reacted to chinhhut in CSC Armbian for RK3318/RK3328 TV box boards
@fabiobassa Yes. I'm thinking about the defective emmc issue because I have several 3318 boxes and 1 box get this kernel panic issue, an other box get crashed after several hours running, other ones work well over time.
-
fabiobassa got a reaction from chinhhut in CSC Armbian for RK3318/RK3328 TV box boards
@chinhhut
home assistant is a great project but at the same time is very hard disk intensive and resource eating. In special mode if you even have motion plug-in or other pugins that extensively use the hard disk and/or internal emmc
And it also coul be a defective emmc since many chinese tvboxes are badly assembled with faulty components
-
fabiobassa got a reaction from chinhhut in CSC Armbian for RK3318/RK3328 TV box boards
@chinhhut
What services/app have installed?
Did kernel crashed before new installation or crashes even with unloaded system ?
As @jockexplained me, no user space applications should ever freeze/panic the kernel , unless drivers are involved.
And if kernel crashes I am afraid you Will not have any log either
-
fabiobassa got a reaction from anhthodien69 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