CarlosPiles

Members
  • Content Count

    22
  • Joined

  • Last visited


Reputation Activity

  1. Like
    CarlosPiles got a reaction from balbes150 in Armbian for TV box rk3328   
    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
  2. Like
    CarlosPiles got a reaction from balbes150 in Armbian for TV box rk3328   
    Hi @balbes150
    Here you have my mx-10 internal dts
    mx-10-from-box.dts
  3. Like
    CarlosPiles got a reaction from armar in Armbian for TV box rk3328   
    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
    config20190113
  4. Like
    CarlosPiles got a reaction from raksan in Armbian for TV box rk3328   
    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/  
    rtl8821cu.tar.xz
  5. Like
    CarlosPiles got a reaction from raksan in Armbian for TV box rk3328   
    This way, rtl8821cu can be loaded as a module with modprobe and insmod
     
    I hope this can help somebody
     
  6. Like
    CarlosPiles got a reaction from balbes150 in Armbian for TV box rk3328   
    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)
    ssv6051-sw.bin