Jump to content

Gausus

Members
  • Posts

    24
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Found info from this post: Some general info her on u-boot for RK. https://u-boot.readthedocs.io/en/latest/board/rockchip/rockchip.html 1. Can you boot from Multitool.img ? , IF no then its will not be possible to boot Armbian from sdcard. 2. If you can , burn Armbian 22.08 - Debian image found inn first post to sdcard. 3. Burn Multitool.img to another sdcard or mount image on Linuxpc Manuel mount multitool.img From terminal. cd $HOME/Downloads/ # find first unused device , /dev/loop(24) losetup -f # Mount img on /dev/loop24 sudo losetup -P /dev/loop24 multitool.img # Open file-browser MULTITOOL/bsp/ # copy uboot.img and trustos.img to $HOME/Download Linuxpc # Insert sdcard to linuxpc and find dev of sdcard / often last sdX lsblk -f # My sdcard is assigned /dev/sdf # DD uboot and trust IMG to sdcard armbian # Replace /dev/SDCARD to your dev for sdcard like sdf sudo dd if=uboot.img of=/dev/SDCARD seek=16384 conv=fsync sudo dd if=trustos.img of=/dev/SDCARD seek=24576 conv=fsync If this not work you can copy the generic DTB rk3318-box.dtb form multitool.img to sdcard. You find generic DTB on root / multitool. Copy this to /boot/dtb/rockchip SDCARD to overwrite DTB on Armbian image. Or burn older Armbian img to test if they boots form sdcard when Android on internal storage. Happy booting!!
  2. Thank you for the tips @jock I have 2 H96max+ RK3328 ∕ 4GB tvboxes. Armbian 22.08 - Debian Bullseye minimal - mainline kernel 5.18.10 BOX1 : On internal eMMC BOX2: Boot Armbian from SDCARD , Android on internal eMMC Benchmark from terminal: mbw 1000 Box1 : RAM 667Mhz CPU @ 1,3GHz AVG Method: MEMCPY Elapsed: 0.82118 MiB: 1000.00000 Copy: 1217.764 MiB/s AVG Method: DUMB Elapsed: 0.88632 MiB: 1000.00000 Copy: 1128.263 MiB/s AVG Method: MCBLOCK Elapsed: 0.27756 MiB: 1000.00000 Copy: 3602.800 MiB/s Box2 : RAM 333Mhz (Android uboot) CPU @ 1,3GHz AVG Method: MEMCPY Elapsed: 1.51033 MiB: 1000.00000 Copy: 662.107 MiB/s AVG Method: DUMB Elapsed: 1.62614 MiB: 1000.00000 Copy: 614.955 MiB/s AVG Method: MCBLOCK Elapsed: 0.54709 MiB: 1000.00000 Copy: 1827.854 MiB/s To boot from sdcard when Android on internal storage. 1. Flash Armbian on sdcard 2. Download Multitool.img 3. Mount multitool.img on linuxpc or flash to another sdcard. 4. Copy trustos.img and uboot.img from bsp folder to a folder on linuxpc, 5 . DD trustos.img and uboot.img to sdcard Armbian from linuxpc sudo dd if=uboot.img of=/dev/SDCARD seek=16384 conv=fsync sudo dd if=trustos.img of=/dev/SDCARD seek=24576 conv=fsync
  3. Simple memory tests to compare 333Mhz vs 666MHz 666MHz / CPU @ 1,3 Ghz kernel 5.18 uboot eMMc dd if=/dev/zero of=/tmp/testfile bs=1M count=1000 1048576000 bytes (1.0 GB, 1000 MiB) copied, 3.41804 s, 307 MB/s 333 ? Mhz (Androide uboot) / CPU @ 1,3 Ghz dd if=/dev/zero of=/tmp/testfile bs=1M count=1000 1048576000 bytes (1.0 GB, 1000 MiB) copied, 3.95373 s, 265 MB/s
  4. EDIT: Try forcing mode on HDMI Add new line inn armbianEnv.txt sudo nano /boot/armbianEnv.txt extraargs=video=HDMI-A-1:D drm.edid_firmware=edid/1920x1080.bin # OR you can test this setting extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1920x1080.bin video=HDMI-A-1:1920x1080 # IF not working test lower res like 1024x768 # Y can set different refresh rate to : 1024x768@30 extraargs=video=HDMI-A-1:D drm.edid_firmware=HDMI-A-1:edid/1024x768.bin video=HDMI-A-1:1024x768@30 If working change res after login from Settings > Display ( Xfce) More info her LINK1 : LINK2
  5. I have used sudo apt-mark hold <linux-package-name> , on kernel . sudo apt-mark hold linux-image-current-rockchip64 sudo apt-mark hold linux-dtb-current-rockchip64 sudo apt-mark hold linux-u-boot-current-rk3318-box I then can run apt update and apt upgrade not updating kernel. To remove mark hold use : sudo apt-mark unhold <linux-package-name> Can y make a list of packages not to upgrade / overwrite ?
  6. There was a bug in the DTS file like y say. Have fixed it and uploaded new DTS , DTB was fine. Just download from old post DTS file if y need it. Yes there often are warnings when converting from DTS to DTB. I use editors inn Linux , like mousepad or nano +++ , think y can use any editor (Windows /Linux) and save inn txt format. As Jock sad , its impossible for the rk3318/28 tvbox to get 1,8 v on sdcard needed for sd uhs SDR104 mode , but some sdcard can work in this mode on 3,3v. I now run Samsung EVO sdcard in this mode.
  7. Thank you for your response. Dont know what y did , I was unable to create DTB. dtc -I dts -O dtb -f rk3318-box_1.5Ghz_SDCARD_v1a_ST_sdhr104.dts -o rk3318-box_1.5Ghz_SDCARD_v1a_ST_sdhr104.dtb Error: rk3318-box_1.5Ghz_SDCARD_v1a_ST_sdhr104.dts:2894.3-2895.1 syntax error FATAL ERROR: Unable to parse input tree I download my rk3318-box_1.3Ghz_SDCARD_v2_ST_sdhr104.dts file , looks like the same error. Will fix dts file. rk3318-box_1.3Ghz_SDCARD_v2_ST_sdhr104.dts fixed. Is it possible to delete post , can't find a way to do it.
  8. Thank y for the quick respond , your excellent work!! I dont understand to much about how DTB syntax works. Trying to learn , where are good sources for learning? Maybe if you have time you can set up a little guide. I also tried to undervolt CPU. Converted HEX to DES for easier reading. Found this setting to working well up to 1.5Ghz Tried to tweak some RAM and GPU settings , but dont think they work. Do you know a way to show RAM frequency from terminal ? dmesg ?. I do DD benchmark on /tmp and sysbench --test=memory run from sysbench tool. No changes in performance enable /disabling settings for RAM and GPU. I recommend hardinfo to show HWinfo. Are RAM frequency set by uboot ? If yes , how can I test different setting for RAM in uboot ? Links to DTB and DTS. opp-1200000000 { opp-hz = <0x00 0x47868c00>; opp-microvolt = <1200000>; clock-latency-ns = <0x9c40>; status = "okay"; }; opp-1296000000 { opp-hz = <0x00 0x4d3f6400>; opp-microvolt = <1225000>; clock-latency-ns = <0x9c40>; status = "okay"; }; opp-1392000000 { opp-hz = <0x00 0x52f83c00>; opp-microvolt = <1250000>; clock-latency-ns = <0x9c40>; status = "okay"; }; opp-1512000000 { opp-hz = <0x00 0x5a1f4a00>; opp-microvolt = <1350000>; // opp-microvolt = <0x149970>; clock-latency-ns = <0x9c40>; };
  9. DTB SDCARD mode up to 104 MB/s Have tried to squeeze some more performance out of my H96 max + RK3328. SDCARD speed runs at sd high-speed mode / max 24MB/s R∕W on rk3318-box.dtb Its possible to get higher speed from sd-card # Org DTB sudo cat /sys/kernel/debug/mmc0/ios clock: 50000000 Hz actual clock: 50000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (dont care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 2 (sd high-speed) signal voltage: 0 (3.30 V) driver type: 0 (driver type B) Have modified the dtb to support up to hr104 (104 MB/s) rk3318 image will not boot , but Armbian_21.11.0-trunk_Station-m1_hirsute_edge_5.14.11_xfce_desktop.img are booting using this modified DTB DTS # Mod DTB Station m1 image sudo cat /sys/kernel/debug/mmc0/ios clock: 150000000 Hz actual clock: 150000000 Hz vdd: 21 (3.3 ~ 3.4 V) bus mode: 2 (push-pull) chip select: 0 (dont care) power mode: 2 (on) bus width: 2 (4 bits) timing spec: 6 (sd uhs SDR104) signal voltage: 1 (1.80 V) driver type: 0 (driver type B) Using gnome-disks performance tool , i get 70+ read 40+ write speed. about 2-3X performance boost on sdcard. If y like to test this DTB disable all overlays in /boot/extlinux/extlinux.conf Have tried to enable modules in rk3318 image to boot. APPEND root= xxx yyy .... ADD to end mmc_block sdhci tifm_sd Dont know if kernel need a patch to boot from sdacrd when sd-uhs-XX modes enabled. SOME links about sdcard mode i DTB https://android.googlesource.com/kernel/msm/+/android-wear-5.1.1_r0.6/Documentation/devicetree/bindings/mmc/mmc.txt https://patchwork.kernel.org/project/linux-arm-kernel/patch/87imkryz5t.fsf@vany.ca/ https://tinkerboarding.co.uk/forum/archive/index.php/thread-310.html Changed i rk3318-box.dtb mmc@ff500000 { compatible = "rockchip,rk3328-dw-mshc\0rockchip,rk3288-dw-mshc"; reg = <0x00 0xff500000 0x00 0x4000>; interrupts = <0x00 0x0c 0x04>; clocks = <0x02 0x13d 0x02 0x21 0x02 0x4a 0x02 0x4e>; clock-names = "biu\0ciu\0ciu-drive\0ciu-sample"; fifo-depth = <0x100>; max-frequency = <0x8f0d180>; resets = <0x02 0x6d>; reset-names = "reset"; status = "okay"; bus-width = <0x04>; cap-mmc-highspeed; cap-sd-highspeed; disable-wp; pinctrl-names = "default"; pinctrl-0 = <0x49 0x4a 0x4b 0x4c>; sd-uhs-sdr12; <-------------------------- sd-uhs-sdr25; <-------------------------- sd-uhs-sdr50; <-------------------------- sd-uhs-sdr104; <-------------------------- vmmc-supply = <0x4d>; vqmmc-supply = <0xd4>; <-------------------------- DISABLED phandle = d4 spdif-2 could not find l free phandle to use card-detect-delay = <0x320>; // Diff / Disabled // phandle = <0x9a>; // card-detect-delay = <0x320>; // cd-gpios = <0x48 0x05 0x01>; // no-sdio; // supports-sd; }; sdmmc-regulator { compatible = "regulator-fixed"; gpio = <0x6b 0x1e 0x01>; pinctrl-names = "default"; pinctrl-0 = <0x6c>; regulator-name = "vcc_sd"; regulator-always-on; regulator-boot-on; regulator-min-microvolt = <0x325aa0>; regulator-max-microvolt = <0x325aa0>; vin-supply = <0x1e>; phandle = <0x4d>; }; // ADD high speed sdcard 1,8v mode sdmmcio-regulator { compatible = "regulator-gpio"; gpios = <0x68 0x00 0x00>; states = <0x1b7740 0x01 0x325aa0 0x00>; regulator-name = "vcc_sdio"; regulator-type = "voltage"; regulator-min-microvolt = <0x1b7740>; regulator-max-microvolt = <0x325aa0>; regulator-always-on; // vin-supply = <0x2b>; vin-supply = <0x6e>; phandle = <0xd4>; }; // spdif-2 { // // spdifm2-tx { // rockchip,pins = <0x00 0x02 0x02 0x5f>; // phandle = <0xd4>; // }; // };
  10. Thanks for the quick reply. Did not work , used nmcli. Even tried to disable password on WiFi. Error: Connection activation failed: (11) 802.1X supplicant took too long to authenticate. 1. Copied and renamed brcmfmac4334-sdio.rockchip,rk3318-box.txt to brcmfmac4334-sdio.txt Rebooted: no wifi 2. Replaced the existing text in /lib/firmware/brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt and brcmfmac4334-sdio.txt with this file Rebooted: no wifi Think I have a different WiFi chip. Any idea what chip SP2743C is ? Curse have you opened your box and seen what name is on your wifi chip ?
  11. How did you make the WiFi work ? Did you write over the existing /lib/firmware/brcm/brcmfmac4334-sdio.rockchip,rk3318-box.txt ? Have tried the method without success. Have tested both nvram files past to brcmfmac4334-sdio.rockchip,rk3318-box.txt (reboot) WiFi in network-manager, enter password. After some time password prompt comes back asking for password. Opened the box, SP2743C on wifi chip. Google: wifi chip SP2743C , no result. Tested on mainline kernel 5.10.68 Run rk3318-config to configured , Wifi Broadcom BCM4334/Ampak6334 - Dev ID: 02d0:4334 armbianEnv.ini: overlays=rk3318-box-cpu-hs rk3318-box-led-conf1 rk3318-box-wlan-ap6334 Have also tested with: overlays=3318-box-wlan-ap6330 H96 Max+ RK3328 (4G/64G) dmesg from clean install , only run .rk3318-config and reboot.
  12. Tested on H96 Max + RK3328 4G / 64G. Great work jock! & JMCC
  13. Tested Ethernet speed 1000Mb reported , but speedtest.net only gets about 100Mb down and 200Mb up. No sound , and Android don't start. Restore X96 max + bootloader , Android works and sound (100 Mb /s)
  14. Download her , ignore don't support S905x3 (x96 max plus). Read instructions Burn img to sdcard , use BalenaEtcher Copy my downloaded DTB file to \dtb\amlogic Rename u-boot-s905x2-s922 to u-boot.ext Edit \extlinux\extlinux.conf # aml s9xxx FDT /dtb/amlogic/X.yourfile.Y.dtb Boot X96 max +
×
×
  • Create New...