

ning
-
Posts
329 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Posts posted by ning
-
-
aftr check dts dump, it only has 2 usb ports enabed.
usb_host0_xhci: usb@fcc00000 { compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; reg = <0x0 0xfcc00000 0x0 0x400000>; interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cru CLK_USB3OTG0_REF>, <&cru CLK_USB3OTG0_SUSPEND>, <&cru ACLK_USB3OTG0>; clock-names = "ref_clk", "suspend_clk", "bus_clk"; dr_mode = "otg"; phy_type = "utmi_wide"; power-domains = <&power RK3568_PD_PIPE>; resets = <&cru SRST_USB3OTG0>; snps,dis_u2_susphy_quirk; status = "disabled"; }; usb_host1_xhci: usb@fd000000 { compatible = "rockchip,rk3568-dwc3", "snps,dwc3"; reg = <0x0 0xfd000000 0x0 0x400000>; interrupts = <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>; clocks = <&cru CLK_USB3OTG1_REF>, <&cru CLK_USB3OTG1_SUSPEND>, <&cru ACLK_USB3OTG1>; clock-names = "ref_clk", "suspend_clk", "bus_clk"; dr_mode = "host"; phys = <&usb2phy0_host>, <&combphy1 PHY_TYPE_USB3>; phy-names = "usb2-phy", "usb3-phy"; phy_type = "utmi_wide"; power-domains = <&power RK3568_PD_PIPE>; resets = <&cru SRST_USB3OTG1>; snps,dis_u2_susphy_quirk; status = "disabled"; };
let me disable others.
-
2 usb: 1 USB2.0, 1 USB3.0
do you mean, rk3566-box-demo.dts enabled usb port more than actual, this make hard LOCKUP?
-
use rk3566-box-demo.dts
block at
Quote[ 3.651358] ohci-platform fd8c0000.usb: Generic Platform OHCI controller
[ 3.651997] ohci-platform fd8c0000.usb: new USB bus registered, assigned bus number 2
[ 3.653089] ohci-platform fd840000.usb: Generic Platform OHCI controller
[ 3.653755] ohci-platform fd840000.usb: new USB bus registered, assigned bus number 3
[ 24.010286] watchdog: Watchdog detected hard LOCKUP on cpu 1I think issue in ohci-platform, let me blacklist it or disable related usb port in dts, and try next.
-
vendor uboot can boot mainline kenrel (6.5)
sysboot usb 0 any 0x1080000 /boot/extlinux/extlinux.conf
but, no good dts, next step is find or develop a good dts
-
currently chainloader failed, it failed at a strange place.
I will move to next step try boot mainline kernel with vendor uboot. create a debian sid USB driver.
-
I understand, chainloader is a way to verify mainline uboot, kernel.
-
3, DTS dump
/data/dtc -I fs /proc/device-tree -O dts -o Jianpian.dts
this can't directly use for uboot or kernel build, just as reference.
-
11 minutes ago, ning said:
bootcmd=boot_android ${devtype} ${devnum};boot_fit;bootrkp;run distro_bootcmd;
this is entry point, need add
setenv OLDBOOTCMD "boot_android ${devtype} ${devnum};boot_fit;bootrkp;run distro_bootcmd;" setenv USBBOOTCMD "usb start;if fatload usb 0 0x1000000 u-boot.bin; then go 0x1000000; fi;" <<-- TODO setenv bootcmd "run USBBOOTCMD; run OLDBOOTCMD;"
to override current bootcmd.
-
2, interrupt auto boot
Yes, by Ctrl+C
env print result:
Quotearch=arm
autoload=no
baudrate=1500000
board=evb_rk3568
board_name=evb_rk3568
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc1 mmc0 mtd2 mtd1 mtd0 usb0 pxe dhcp
bootargs=storagemedia=emmc androidboot.storagemedia=emmc androidboot.mode=normal androidboot.dtb_idx=0 androidboot.dtbo_idx=0
bootcmd=boot_android ${devtype} ${devnum};boot_fit;bootrkp;run distro_bootcmd;
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_mmc1=setenv devnum 1; run mmc_boot
bootcmd_mtd0=setenv devnum 0; run mtd_boot
bootcmd_mtd1=setenv devnum 1; run mtd_boot
bootcmd_mtd2=setenv devnum 2; run mtd_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=0
cpu=armv8
devnum=0
devtype=mmc
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
eth1addr=2e:7c:75:70:80:17
ethaddr=2a:7c:75:70:80:17
fdt_addr_r=0x08300000
kernel_addr_c=0x04080000kernel_addr_r=0x00280000
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
partitions=uuid_disk=${uuid_gpt_disk};name=uboot,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};name=trust,size=4M,uuid=${uuid_gpt_atf};name=misc,size=4MB,uuid=${uuid_gpt_misc};name=resource,size=16MB,uuid=${uuid_gpt_resource};name=kernel,size=32M,uuid=${uuid_gpt_kernel};name=boot,size=32M,bootable,uuid=${uuid_gpt_boot};name=recovery,size=32M,uuid=${uuid_gpt_recovery};name=backup,size=112M,uuid=${uuid_gpt_backup};name=cache,size=512M,uuid=${uuid_gpt_cache};name=system,size=2048M,uuid=${uuid_gpt_system};name=metadata,size=16M,uuid=${uuid_gpt_metadata};name=vendor,size=32M,uuid=${uuid_gpt_vendor};name=oem,size=32M,uuid=${uuid_gpt_oem};name=frp,size=512K,uuid=${uuid_gpt_frp};name=security,size=2M,uuid=${uuid_gpt_security};name=userdata,size=-,uuid=${uuid_gpt_userdata};
pxefile_addr_r=0x00e00000
ramdisk_addr_r=0x0a200000
rkimg_bootdev=if mmc dev 1 && rkimgtest mmc 1; then setenv devtype mmc; setenv devnum 1; echo Boot from SDcard;elif mmc dev 0; then setenv devtype mmc; setenv devnum 0;elif mtd_blk dev 0; then setenv devtype mtd; setenv devnum 0;elif mtd_blk dev 1; then setenv devtype mtd; setenv devnum 1;elif mtd_blk dev 2; then setenv devtype mtd; setenv devnum 2;elif rknand dev 0; then setenv devtype rknand; setenv devnum 0;elif rksfc dev 0; then setenv devtype spinand; setenv devnum 0;elif rksfc dev 1; then setenv devtype spinor; setenv devnum 1;elsesetenv devtype ramdisk; setenv devnum 0;fi;
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x00c00000
serial#=0YL7OQGH52
soc=rockchip
stderr=serial,vidconsole
stdin=serial,usbkbd
stdout=serial,vidconsoleusb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
vendor=rockchipnext step, try chainloader to mainline u-boot:2023.10 with patch.
-
Yes, it's Android 4.19. do you mean, using mainline kernel it will lose dynamic memory freq change cap, to run at a fixed freq?
I would like to run kernel 6.6 on debian sid.
-
1, serial port:
open the box, on the backside, there are 3 hole, which is serail port, from right to left, they are TX, GND, RX, serial config is 150000n8.
first log:
QuoteDDR V1.14 b1f29a2a6f typ 22/09/02-16:40:04
ln
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=8 Size=8192MB
tdqss: cs0 dqs0: 72ps, dqs1: -96ps, dqs2: -72ps, dqs3: -144ps,
tdqss: cs1 dqs0: 48ps, dqs1: -96ps, dqs2: -48ps, dqs3: -144ps,change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x61change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:24%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58we know the memory is 8GB Lp4x. Ddr version is V1.14. freq=324Mhz? which is from rkbin repo.
QuoteNet: eth1: ethernet@fe010000
Hit key to stop autoboot('CTRL+C'): 0
ANDROID: reboot reason: "(none)"next step try to use ctrl+c to stop auto boot.
-
https://github.com/zhangn1985/linux-stable/tree/sbc6.4 this is tree for orangepi-800
-
-
blacklist uas
-
from the mainline develop status view point,
Amlogic vdec is stopped, and Rockchip is still active developping.
Rockchip soc can use all upstream components, even uboot.
but Amlogic need vendor blob to create uboot.
Rockchip soc have Cursor plane, but amlogic doesn't. this is good for desktop use.
-
-
I just review the patches needed for kernel hwdec, and Armbian already has it, and build it as module.
here is the way you able to use hwdec.
1, download server image for orangepipc. hwdec not support X ot wayland.
2, build ffmpeg and mpv yourself.
A, build ffmpeg.
download ffmpeg 5.1.2 source from git or from ffmpeg.org (recommend git for easy apply patches)
apply patches from https://github.com/jernejsk/FFmpeg
drmprime: v4l2-drmprime-n5.1.2 branch
v4l2-request: v4l2-request-n5.1.2 branch
total 23 patches.
build ffmpeg with `--enable-hwaccels --enable-v4l2_m2m --enable-libdrm --enable-libudev --enable-v4l2-request`, others keep default.
B, build mpv
download and build with no X, no Wayland support.
mpv.conf
ao=alsa
vo=gpu
hwdec=drm
-
you need to check your uboot log whether dt overlays are applied.
-
check your console tools (minicom) config.
-
10 hours ago, microdoc said:
I built a new kernel from 6.1.0-rc6
I think you are using debian official kernel, or build from it. I think you need to check the patches from armbian, cherry pick some to rebuild debian kernel.
-
Quote
apt-file search moxa
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1110.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1130.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1131.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1150.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1151.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1250.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1251.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1410.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1450.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1451.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1613.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1618.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1653.fw
firmware-misc-nonfree: /lib/firmware/moxa/moxa-1658.fw
-
17 hours ago, Gunwoo Gim said:
I tried installing linux-image-arm64 from the debian repo. but it didn't manage to boot, or even output anything on screen.
I guess already use mainline uboot? right? if you are still using verdor uboot, debian kernel missing 1 patch to support boot mainline kernel on vendor uboot.
I have added configs to enable debian kernel to support amlogic socs, tested A311d, S905x3 should also be supported.
I guess you have wrong boot method, suggest you to use extlinux.conf install of boot.scr (local boot)
install `u-boot-menu` and use extlinux.conf as boot menu to boot debian's kernel.
if this not work, I suggest you to use `debootstrap` to rebuild your system, if you know how to configure system to bootable.
-
17 hours ago, Gunwoo Gim said:
Hi, I'm trying to use ZFS but the kernel I'd like to use doesn't support loadable modules. The version is 22.08.4 at the moment (5.10.147)
Can I use zfs-dkms on linux-image-current-meson64?
just install linux-image-arm64 from official debian repo, if missing some feature, just replace the dtb, then install zfs-dkms.
-
On 11/2/2022 at 8:26 PM, OLE_G said:
2: end0: <BROA
please change eth0 to end0
JianPian RK3566 TV Box (8G+32G) develop log
in Rockchip CPU Boxes
Posted
remove all usb related setting in rk3566-box-demo.dts, add above. success boot to shell.
next step verify others:
1, HDMI
2, HDMI sound
3, ethernet
4, WIFI/BT
5, SATA
6, LED??