Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

JianPian RK3566 TV Box (8G+32G) develop log

Featured Replies

  • Author

after check firefly roc pc dts, they almast same as my dump from jianpian box.

 

I have done the develop, but I still don't understand why WIFI only works once. and BT still not work.

 

I may need to disable WIFI BT in original OS, and try again.

Delete this:

 

 

wifi@1 {
            compatible = "brcm,bcm4329-fmac";
            reg = < 0x01 >;
            interrupt-parent = < 0x63 >;
            interrupts = < 0x0a 0x04 >;
            interrupt-names = "host-wake";
            pinctrl-names = "default";
            pinctrl-0 = < 0x64 >;
            phandle = < 0xf8 >;
        };

Edited by maka

  • Author
2 hours ago, maka said:

Delete this:

 

 

wifi@1 {
            compatible = "brcm,bcm4329-fmac";
            reg = < 0x01 >;
            interrupt-parent = < 0x63 >;
            interrupts = < 0x0a 0x04 >;
            interrupt-names = "host-wake";
            pinctrl-names = "default";
            pinctrl-0 = < 0x64 >;
            phandle = < 0xf8 >;
        };

why? I check other rk3566 board with this wifi/bt chip, also don't have wifi@1. if I remove this would bt works?

  • Author

wifi works, with remove sd-uhs-sdr104; or change it to sd-uhs-sdr50;

 

but bt still not work:

 

[   23.521445] Bluetooth: hci1: BCM: failed to write update baudrate (-110)
[   23.522130] Bluetooth: hci1: Failed to set baudrate
[   25.541403] Bluetooth: hci1: command 0x0c03 tx timeout

Quote

wifi works, with remove sd-uhs-sdr104; or change it to sd-uhs-sdr50;

I see , you have inherited wrong nodes from your github downloaded file that are not present in firefly or box-demo dtbs. Maybe you have to use these ones as reference.

  • Author

a mistake happens in u-boot, I forget to change/add boot device, only MMC1 is boot device, but MMC1 is wifi in dts. MMC2 is emmc.

 

I have to buy a male-to-male usb cable and a rom. (less than 1RMB together)

 

when I write the post, I suddenly realize I don't need to buy a rom, I can use RKdevtool to flash the uboot only!!

 

let m try it when usb cable arrive.

I don't use the display because I tinker just for fun 🙃

 

I believe you must have nodes for vfd and drive the display with a service like openvfd. Here is one related for an rk3566 android box.

 

};

    meson-vfd {
        compatible = "amediatech,aml_vfd";
        dev_name = "meson-vfd";
        vfd_data_gpio = <0x6d 0x14 0x00>;
        vfd_clock_gpio = <0x6d 0x15 0x00>;
        vfd_stb_gpio = <0x6d 0x16 0x00>;
        status = "okay";
    };

  • Author

done, with my uboot, it boot automatically to debian-13.

 

but for now:

ethernet, bt are enabled but not work.

 

openvfd, LED, IR receive are not enabled.

 

next step fix those.

  • Author
Quote

ning@Jianpian:~$ uname -a
Linux Jianpian 6.5.0-5-arm64 #1 SMP Debian 6.5.13-1 (2023-11-29) aarch64 GNU/Linux

ning@Jianpian:~$ journalctl -b
12月 20 15:03:51 Jianpian kernel: Booting Linux on physical CPU 0x0000000000 [0x412fd050]
12月 20 15:03:51 Jianpian kernel: Linux version 6.5.0-5-arm64 (debian-kernel@lists.debian.org) (gcc-13 (Debian 13.2.0-7) 13.2.0, GNU ld (GN>
12月 20 15:03:51 Jianpian kernel: KASLR disabled due to lack of seed
12月 20 15:03:51 Jianpian kernel: Machine model: Rockchip RK3566 JianPian 8G TV Box

ning@Jianpian:~$ free -m
               total        used        free      shared  buff/cache   available
内存:          7689         257        7432           1         150        7431
交换:             0           0           0

 

ethernet fixed.

 

almost done.

  • Author

my kernel saves the dts for jianpian.

Vendor dts for bluetooth

        wireless-bluetooth {
                pinctrl-names = "default\0rts_gpio";
                pinctrl-0 = <0x13c>;
                clock-names = "ext_clock";
                clocks = <0x138 0x01>;
                BT,wake_gpio = <0x13a 0x11 0x00>;
                BT,reset_gpio = <0x13a 0x0f 0x00>;
                uart_rts_gpios = <0x13a 0x0d 0x01>;
                compatible = "bluetooth-platdata";
                BT,wake_host_irq = <0x13a 0x10 0x00>;
                pinctrl-1 = <0x13d>;
                status = "okay";
                phandle = <0x1e7>;
        };

 

pinctrl-0, pinctrl-1 and uart_rts_gpio are decription for gpio2 RK_PB5, which is uart1 rtsn pin.

phandle <0x13a> is gpio2.

 

My mainline dts for bluetooth:

 

&uart1 {
	pinctrl-names = "default";
	pinctrl-0 = <&uart1m0_xfer &uart1m0_ctsn &uart1m0_rtsn>;
	status = "okay";
	uart-has-rtscts;

	bluetooth {
		compatible = "brcm,bcm43438-bt";
		clocks = <&rk809 1>;
		clock-names = "lpo";
		device-wakeup-gpios = <&gpio2 RK_PC1 GPIO_ACTIVE_HIGH>;
		host-wakeup-gpios = <&gpio2 RK_PC0 GPIO_ACTIVE_HIGH>;
		shutdown-gpios = <&gpio2 RK_PB7 GPIO_ACTIVE_HIGH>;
		pinctrl-names = "default";
		pinctrl-0 = <&bt_host_wake_l &bt_wake_l &bt_enable_h>;
		vbat-supply = <&vcc3v3_sys>;
		vddio-supply = <&vcca1v8_pmu>;
	};
};

 

but bluetooth failed:

 

Quote

[   14.433949] Bluetooth: hci0: command 0xfc18 tx timeout
[   22.498017] Bluetooth: hci0: BCM: failed to write update baudrate (-110)
[   22.498690] Bluetooth: hci0: Failed to set baudrate
[   24.514009] Bluetooth: hci0: command 0x0c03 tx timeout
[   32.737999] Bluetooth: hci0: BCM: Reset failed (-110)

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.