CarlosPiles
-
Posts
22 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by CarlosPiles
-
-
3 hours ago, wdtz said:
Clearly,, you have not read whole thread,, about 5 pages back, but differently
in adb# ,, ls -l /sbin/su; ls -l /system/xbin/su ,, notice that they are not the same?
(google) verity off; mount -o remount,rw /system; cd /system/xbin; mv su su.bak; cp /sbin/su .
and then root will work in android
FWIW
Be carefull with changing /system/xbin/su as i've read sometimes it blocks Android boot.
-
2 hours ago, armar said:
There is such a thread for all tv boxes at
I had seen it, but It refers to tv boxes booting armbian, with lots of issues that are solved at this moment. I mean a list with references to the dtbs used to success and links to customized dtbs. This way we'll be able to gather a huge library of models and their device trees. Due to the great differences between amlogic and rockchip insiders, I'd rather create two different topics; and only successful or almost successful (all working But BT and / or Wifi) configurations should be póster there.
Everybody will be able to succesfully install armbian reading that thread if owns a box in the list. Meanwhile, we'll continue stabilizing the kernel adding modules and testing dtbs.
-
Perhaps it would be a good idea to open a new topic to sumarize the diferent rk3328 tv boxes and the range of integrated peripherals working, pointing model | wifi | armbian image | dtb (opcional link) | custom configuración (link) | malí working.
My case
Mx10 | rtl8723bs not working | 5.68 | rk3328-mx10.dtb | standard | mali not working
It would be great to have a brief topic with the successful works from this thread and the state of works in progress. So all of us shall be able to build a working image for most models. And it will help to decide which model to buy.
-
2 hours ago, balbes150 said:
Before starting the installation, you need to run the script to create an MBR (this is described in the documentation).
Do you mean running make-mbr.sh from boot partición? Can you provide a link to that documentation?
-
1 hour ago, balbes150 said:
You've tried the latest images ? Everything is fixed. Before starting the installation, you need to run the script to create an MBR (this is described in the documentation).
https://github.com/150balbes/Build-Armbian/blob/master/packages/bsp/rk3328-tv/install.sh
Working with 5.68 image. I found it more stable than 5.71. None of them work with remote commander to switch mx10 on. I will give a try to 5.73.
-
14 minutes ago, balbes150 said:
Everything has long been done-run the script "install.sh" and the system will be installed in eMMC. I checked for MVR9.
I know, but not working out-of-the-box for mx10, as in mx10 SD is /dev/blkmmc0 and internas eMMC is /dev/blkmmc2
Ddbr ran perfectly and I will try to merge the Ddbr media detection into install.sh to get an universal installer which autodetect blkmmcX as ddbr does.
Any warning about not damaging the loader?
-
Now I am working on the Armbian installation into MX10's EMMC. I will keep you informed.
-
On 1/31/2019 at 4:34 AM, armar said:
UPDATE !!!
After a couple of shutdown/reboots, Wifi is working now on the A5XMAX with mb16 s dts in the above post. Im not sure what changed, but the 2 error messages mentioned above are gone
On 1/31/2019 at 9:52 PM, slaven said:Now the A5X works with integrated wifi!
First of all: thx @balbes150 @armar @mb16 !!
- I use Armbian_5.68_Rk3328-tv_Debian_stretch_default_4.4.154_20190110.img.xz
- download the dts file from mb16 post above.
- compile it to dtb file
(install device tree compiler to be able to do that: sudo apt-get install device-tree-compiler; you will probably need to use "-W no-unit_address_vs_reg" command with it to proceed)
- copy the dtb file to your sd card where all other dtbs are and use it as startup
- boot your box
- lsmod will now show 8723bs
- nmtui directly listed my wifi network; configure it for your needs
- now with every startup you have wifiCongrats to @slaven and @armar!!! Good job @mb16 !! Can you tell me the version of A5X? A5X Plus (2/16) or a5X Max (4/32)?
-
On 1/21/2019 at 11:37 AM, balbes150 said:
Cannot get the link- Broken status or deleted
-
14 hours ago, mb16 said:
Should that be 'sudo make modules_install'?
Very helpful, thanks a lot!
Yes. You are right
-
For those of you interested in running Armbian and compiling kernel within MX-10 TVBOX (working with cheap MX-10 4/32 Oreo 8.1)
Step 1: Burn https://yadi.sk/d/DSO6euzB3ahemo/ARMBIAN/5.68/20190110/Armbian_5.68_Rk3328-tv_Ubuntu_bionic_default_4.4.154_desktop_20190110.img.xz into SD Step 2: Change FDT in BOOT/extlinux/extlinux.conf to FDT /dtb/rockchip/rk3328-box-mx10.dtb Step 3: Insert in TVBOX | First run | Create user | sudo apt update && sudo apt upgrade Step 4: git clone https://github.com/150balbes/rockchip-kernel.git Step 5: apt install libncurses5-dev (for make nconfig) Step 6: Use attached configXXXXXX file as .config Step 7: make nconfig (here you can adjust your kernel config) Step 8: F6 Save as .config Step 9: make all (I use make -j 4 all to launch 4 prcesses and it runs for about 1 hour) Step 10: Backup full /boot folder Step 11: sudo make install Step 12: sudo make config_install Step 13: Modify BOOT/extlinux/extlinux.conf to boot new kerner (4.1.154) LABEL Armbian LINUX /vmlinuz-4.4.154 INITRD /uInitrd FDT /dtb/rockchip/rk3328-box-mx10.dtb APPEND root=LABEL=ROOTFS rootflags=data=writeback rw console=uart8250,mmio32,0xff130000 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0
Ready to reboot
-
How to extract DTB from an RK3328 TVBOX
The DTB is in the resource partition and it's less than 100 KB long in size.
With this scripts you can get it from a TVBOS. I've enabled USB debugging and Internet ADB in developer options within TVBOX setup. Change the IP in connect to fit your environment
ubuntu@ubuntu-Ci5:~$ adb connect 192.168.0.142:5555 connected to 192.168.0.142:5555 ubuntu@ubuntu-Ci5:~$ adb shell rk3328_box:/ # cd data rk3328_box:/data # cd media rk3328_box:/data/media # cd 0 rk3328_box:/data/media/0 # cd Download rk3328_box:/data/media/0/Download # dd if=/dev/block/by-name/resource of=resource.img bs=100k count=1 1+0 records in 1+0 records out rk3328_box:/data/media/0/Download # exit ubuntu@ubuntu-Ci5:~$ adb pull /data/media/0/Download/resource.img 393 KB/s (102400 bytes in 0.254s) ./extract-dtd.py resource.img
And you get the dtb in the dtb folder
-
17 hours ago, balbes150 said:
If you can pull the DTB off the MX10, share it, I want to learn it. I haven't opened the case for my MX10 yet, but I've seen internet that this model uses ssv6051. The module and firmware I have in the image, but need the correct settings for the dtb.
Hi @balbes150
Here you have my mx-10 internal dts
-
16 hours ago, balbes150 said:
I haven't opened the case for my MX10 yet, but I've seen internet that this model uses ssv6051. The module and firmware I have in the image, but need the correct settings for the dtb.
Hi @balbes150
Not mine. Here you can see.
ubuntu@ubuntu-Ci5:~$ adb connect 192.168.0.142:5555 connected to 192.168.0.142:5555 ubuntu@ubuntu-Ci5:~$ adb shell rk3328_box:/ # lsmod Module Size Used by 8723bs 1400585 0 rk3328_box:/ #
Here it use rtl8723bs
-
This way, rtl8821cu can be loaded as a module with modprobe and insmod
I hope this can help somebody
-
On 1/13/2019 at 8:23 AM, raksan said:
@CarlosPiles I'm in the same boat, I'm trying to compile rtl8821cu for my box but stuck at some error. I've found this installable kernel header here https://yadi.sk/d/apAYXzjHA2Pekw you can try it.
this is a how-to include rtl8821cu into kernel tree for future compilation
1 Extract the compressed file into drivers/net/wireless/rockchip_wlan/
2 Modify drivers/net/wireless/rockchip_wlan/Kconfig and change about line 47
source "drivers/net/wireless/rockchip_wlan/rtl8822be/Kconfig" source "drivers/net/wireless/rockchip_wlan/mvl88w8977/Kconfig" source "drivers/net/wireless/rockchip_wlan/ssv6xxx/Kconfig" /* Insert the Kconfig path to 8821cu module */ source "drivers/net/wireless/rockchip_wlan/rtl8822be/Kconfig" source "drivers/net/wireless/rockchip_wlan/rtl8821cu/Kconfig" /* -----> source "drivers/net/wireless/rockchip_wlan/mvl88w8977/Kconfig" <------ */ source "drivers/net/wireless/rockchip_wlan/ssv6xxx/Kconfig"
3 Modify Makefile to get rid of the new module
original Makefile # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_AP6XXX) += rkwifi/ obj-$(CONFIG_RTL8188EU) += rtl8188eu/ obj-$(CONFIG_RTL8188FU) += rtl8188fu/ obj-$(CONFIG_RTL8189ES) += rtl8189es/ obj-$(CONFIG_RTL8189FS) += rtl8189fs/ obj-$(CONFIG_RTL8723BS) += rtl8723bs/ obj-$(CONFIG_RTL8723BU) += rtl8723bu/ obj-$(CONFIG_RTL8723CS) += rtl8723cs/ obj-$(CONFIG_RTL8723DS) += rtl8723ds/ obj-$(CONFIG_RTL8822BE) += rtl8822be/ obj-$(CONFIG_SSV6051) += ssv6xxx/ obj-$(CONFIG_MVL88W8977) += mvl88w8977/ obj-$(CONFIG_WL_ROCKCHIP) += wifi_sys/rkwifi_sys_iface.o obj-$(CONFIG_WL_ROCKCHIP) += rkwifi/rk_wifi_config.o obj-$(CONFIG_CYW_BCMDHD) += cywdhd/ New Makefile # SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_AP6XXX) += rkwifi/ obj-$(CONFIG_RTL8188EU) += rtl8188eu/ obj-$(CONFIG_RTL8188FU) += rtl8188fu/ obj-$(CONFIG_RTL8189ES) += rtl8189es/ obj-$(CONFIG_RTL8189FS) += rtl8189fs/ obj-$(CONFIG_RTL8723BS) += rtl8723bs/ obj-$(CONFIG_RTL8723BU) += rtl8723bu/ obj-$(CONFIG_RTL8723CS) += rtl8723cs/ obj-$(CONFIG_RTL8723DS) += rtl8723ds/ obj-$(CONFIG_RTL8822BE) += rtl8822be/ obj-$(CONFIG_RTL8821CU) += rtl8821cu/ obj-$(CONFIG_SSV6051) += ssv6xxx/ obj-$(CONFIG_MVL88W8977) += mvl88w8977/ obj-$(CONFIG_WL_ROCKCHIP) += wifi_sys/rkwifi_sys_iface.o obj-$(CONFIG_WL_ROCKCHIP) += rkwifi/rk_wifi_config.o obj-$(CONFIG_CYW_BCMDHD) += cywdhd/
-
On 1/13/2019 at 3:07 PM, balbes150 said:
New version 5.69 20190113.
Expanded the list of WiFi modules (but I don't know if it will work or not).
There is a model ssv6051. It loads fine, but WiFi didn't show up on the MX10. You can try to find the reason yourself. Most likely you need to change the DTB (take the necessary data from the native dtb from Android firmware).
First I want to say that all my tests are on a MX-10 4/32 Oreo 8.1. Kernel compilation an tests are done into the same machine. Mx-10 DOS NOT use ssv6051 wifi but rtl8723bs. Once this said I can help a bit with this. It seems sources are still forn android defaults
In drivers/net/wireless/rockchip_wlan/ssv6xxx/firmware/ssv6051-wifi.cfg , change
firmware_path = /vendor/etc/firmware/ ----> firmware_path = /lib/firmware/ssv6051/
In drivers/net/wireless/rockchip_wlan/ssv6xxx/ssvdevice/ssvdevice.c change line 61
char DEFAULT_CFG_PATH[] = "/vendor/etc/firmware/ssv6051-wifi.cfg";
with
char DEFAULT_CFG_PATH[] = "/lib/firmware/ssv6051/ssv6051-wifi.cfg";
And drivers/net/wireless/rockchip_wlan/ssv6xxx/firmware/ssv6051-wifi.cfg must be installed in /lib/firmware/ssv6051 directory
You also need firmware file installed in this folder (ssv6051-sw.bin got from armbian for S905 3.14 Kernel)
-
Hello. Now working on MX-10 8,1 Oreo 4/32 internal wifi. I've got access to internal android devicetree via adb (running box)and want to extract it from to box to a file to view parameters. How can I do this task. I've googled for it and only got help for extracting from OTA and ROM files.
TIA
-
12 hours ago, raksan said:
Update:
I managed to get Wifi work. I've successfully compiled rtl8821cu from this repo. First, it throws lots of error. I've change the target to RPI3, then it got compiled. I did "sudo make install", "sudo modprobe 8821cu", it loads to kernel but no wlan0 yet. Until today, I did some change to dtb file by changing the Wifi entry to match my box. Then to my surprise, it load automatically on boot and I can connect wifi to my router.
This is what my wifi entry:
wireless-wlan { compatible = "wlan-platdata"; rockchip,grf = <0x1c>; wifi_chip_type = "rtl8821cu"; sdio_vref = <0x708>; keep_wifi_power_on; WIFI,poweren_gpio = <0x3f 0x13 0x1>; WIFI,host_wake_irq = <0xcd 0x1 0x0>; WIFI,reset_gpio = <0xcd 0x8 0x1>; status = "okay"; };
QuoteCongrats, raksan.
Do you mean you've got to work out internal wifi in MX-10 Android 8.1? I've tried your dtb but no rtl8821cu driver in kernel. Tried 8723bs (from nx-10 original dts) but no luck. I do not mind recompiling kernel, but 3 hours (I use the target machine for it). I'm working on kernel 4.4.154 from balbes150's github rockchip-kernel, with a config that gets most of wifi drivers as working modules modules. and little bugs on ssv6051 driver corrected. I'll post all this in short so balbes150 could use them on his own criteria.
Now, I'll try to get the rtl8821cu included in the kernel tree as a module. First time I manage Kconfigs from scratch. I wish beginner's luck.
-
Hi. Back to forum after some tests. I have compiled the kernel with most of wifi modules included. It compiled without errors and generated correspinding modules. I need to know how I can update kernel (named without rk3328 suffix) in order to boot from a diferent kernel.
I expect to be able to keep current boot options without overwrite, and edit some files to boot an alternative kernel. Can you tell me if it is possible and which files must be changed?
-
Hello.
First of all, thanks and congratulations to armbian team. I must mention Igor and Balbes. Very good job.
Secondly, I`d like to say that I`ve succesfully installed Armbian 5.44 Ubuntu Bionic Mate 3.14 20180726 on X96 and X96 Míni (everything working But BT) and been able to install it in eMMC.
Now, my goal is focused on MX10. Just tried your current image for Rk3328, changed the DTS entry to MX10 one, and almost everithing working in the first boot. All but wifi. In order to try to fix it, I need the kernel source to add more wifi drivers. Where can I download it? Can I use the one in the apto.armbian repository (linux-source-4.4.156-rockchip64)?
Armbian for TV box rk3328
in Rockchip CPU Boxes
Posted
Hello again to everybody.
Back to the group after a while. My MX10 TV Box broke down and needed to be replaced, so I had to way for the spare one.
I can confirm that there are at least two models of MX10 4/32
The first one came with wifi chip rtl8723bs and ran with the rk3328-a5x-mx10.dtb. out of the box, with the only inconvenient of red led light instead of blue and I remote control not working. It has no Bluetooth so nothing to do. You can edit the source disk and add opp-cpu 1392 and change trip points for higher speed and it works
The second one has come with ssv6051 wifi chip and runs with rk3328-mx10.dtb, rk3328-mx10-fast.dtb and rk3328-mx10-slow.dtb. Each one has its failures.
rk3328-mx10.dtb runs out of the box with same behaviour as the previous rk3328-a5x-mx10.dtb - red led and no IR command. It is also the slowest one in memory and disk operations.
The rk3328-mx10-fast.dtb runs quicker - and hotter (reaches 95... 99.C) shows blue led but does not power off.
Can anyone help me with fixing the no-poweroff bug? It should be in the design.
TIA