-
Posts
32 -
Joined
-
Last visited
Content Type
Forums
Store
Crowdfunding
Applications
Events
Raffles
Community Map
Everything posted by NiTr0
-
about leds - blue (system led) works OK; red LED - just ligths constantly (not too bright, but much brighter than before dtb applying), doesn't react on aux led change.
-
here's stable options for dtb overlays: overlays=emmc emmc-pins emmc-hs200 ddr3-528 led-conf7 maybe ddr3 will work even on higher frequency (660 or 800mhz) but in stock it works at 600mhz, so I decided to set it at nearest lower value (I don't need much CPU/GPU power in this box, but factory 330MHz seems to be too low)
-
I saw in rk322x-config DDR frequency options - they are applied by kernel like emmc settings, right? I mentioned factory DTS only as a source of frequency information (KMQN10006B-B318 has no datasheet/specs available in public internet).
-
hm, h20 board in rk322x-config works OK. how LED behavior can be changed? are they blinking by some script/binary, or? also, question about DDR/eMMC settings - when they're applied, and how device can be crash-recovered if settings are wrong (boot button should work, or only resistors shorting will help)? and what is default DDR freq - 300MHz, or 600MHz? I looked up into factory dts and there was 600MHz frequency; but in rk322x-config there's no 600MHs option - there are 528 and 660 MHz...
-
I've placed compiled u-boot-rk322x-with-spl.bin at 0x8000 in image and image boots OK. small question: how to check (and change) GPIO pin assignment? currently I have only dark red light; it seems like it's looks like GPIOs mismatched. I've extracted and decompiled DTS from original firmware, but at first quick look I can't see pin assignments here - maybe I'm hav no enough experience...
-
try this image: https://drive.google.com/file/d/1bcOfc-df_84-qa0-SQjrQnKpzfEGrdsd/view?usp=sharing I've updateed ddrbin (I manually placed u-boot-rk322x-with-spl.bin with ddrbin 1.11 at 0x8000 in image) and it boots OK on my board
-
and quite strange that ddrbin code twice appears in image (second time at 7D93800)...
-
quite strange: --- a/config/sources/families/rk322x.conf +++ b/config/sources/families/rk322x.conf @@ -123,7 +123,7 @@ uboot_custom_postprocess() { # tools/mkimage -n rk322x -T rksd -d tpl/u-boot-tpl.bin u-boot-rk322x-with-spl.bin # - tools/mkimage -n rk322x -T rksd -d $SRC/packages/blobs/rockchip/rk322x_ddr_330MHz_v1.10_2t.bin u-boot-rk322x-with-spl.bin + tools/mkimage -n rk322x -T rksd -d $SRC/packages/blobs/rockchip/rk322x_ddr_300MHz_v1.11.bin u-boot-rk322x-with-spl.bin cat spl/u-boot-spl.bin >> u-boot-rk322x-with-spl.bin dd if=u-boot.itb of=u-boot-rk322x-with-spl.bin seek=$((0x200 - 0x40)) conv=notrunc user@laptop:/mnt/hdd/other/LinDevelopment/armbian$ but grep -a "Version V1.1[01] 20" output/images/Armbian_23.11.0-trunk_Rk322x-box_bookworm_legacy_4.4.194.img (���<���t� ����������������>�$��'� F����ޠDDR Version V1.10 20190926 (���<���t� ����������������>�$��'� F����ޠDDR Version V1.10 20190926 ^C
-
your board enters to maskrom, or boots from EMMC (ddrbin is on eMMC)?
-
unfortunately they're built with ddrbin 1.10... I tried to built images with ddrbin 1.11 (I placed it into blob and changed config/sources/families/rk322x.conf) but got image with ddrbin 1.10 for some reason - maybe there's cached intermediate results?
-
try to short ROM data lanes that are passed via 51R resistors (8 pcs or 2x 4-resistors assembles hear eMMC). I just shorted any 2 lines between different assembles by tweezer.
-
@jock multiboot from your post boots OK on my board from SD card till shell. also, maybe it'll be good to use baudrate 1500000 for uboot/kernel too if bootloader reports to console at 1500000bps?
-
any ideas how can I boot armbian on my H20 board? maybe I can create GPT partitions by rkdeveloptool, and write stock uboot, legacy kernel and rootfs image on flash?
-
I've updated multiboot image at this link https://drive.google.com/file/d/13X2-9DVrrnDyDg1zd_mkGOs3SCZV84Wl/view?usp=sharing , now it boots OK.
-
yes I switched speed to 115200. it seems like rockchip miniloader starts from eMMC and then boots from microSD. I wrote first 128KB of eMMC content to SD card with multiboot image (except 1st sector with partition table) - and it boots OK with empty eMMC.
-
hm, multiboot boots only if there's loader written on eMMC. if no loader on eMMC - multiboot hangs... armbian fails to boot too.
-
quite strange; armbian fails to boot from eMMC after ddr code replacement; it hangs on U-Boot SPL 2022.04-armbian (Jul 12 2023 - 10:46:05 +0000) Trying to boot from MMC2 INF [0x0] TEE-CORE:init_primary_helper:377: Initializing (1.1.0-333-gc9d95d1 #2 2018年 08月 17日 星期五 03:32:22 UTC arm) INF [0x0] TEE-CORE:init_primary_helper:378: Release version: 2.0 INF [0x0] TEE-CORE:init_primary_helper:379: Next entry point address: 0x61000000 INF [0x0] TEE-CORE:init_teecore:83: teecore inits done multitool image boots from SD successfully only when loader is installed on EMMC.
-
also I found that multiboot image has ntfs-3g, but has no fuse kernel module that is required by ntfs-3g...
-
try to write it with https://sourceforge.net/projects/win32diskimager/ I write flash with dd.
-
It seems like trouble was with ddr init code, I replaced it in multiboot image (2-87 sectors) - and it's booted OK.
-
here's multiboot with updated loader (DDR init part): https://drive.google.com/file/d/13X2-9DVrrnDyDg1zd_mkGOs3SCZV84Wl/view?usp=sharing
-
it seems like I've extracted/repacked partially broken loader from firmware - it works on USB but doesn't boot from flash. I've unpacked firmware update image (real Android V10 from 4pda.to https://mega.nz/file/yxVkQRAZ#NOoiNsUtfGOxlsF9VKSB8HbB_kr3IFITrqK7Liih9nc), and it boots OK from eMMC and tries to load OS from 0x2000 sector (1MB) MiniLoaderAll.bin
-
if multitool boots OK - you may try to install armbian. strange that it hangs on my board with same chip...
-
Here's log of original fw booting: DDR Version V1.11 20200910_dbg In ID:0xFFF 300MHz LPDDR3 Bus Width=32 Col=10 Bank=8 Row=15 CS=2 Die Bus-Width=32 Size=1536MB mach:14 OUT Boot1 Release Time: Sep 29 2018 16:04:10, version: 2.53 ChipType = 0xc, 370 mmc2:cmd19,100 SdmmcInit=2 0 BootCapSize=2000 UserCapSize=7456MB FwPartOffset=2000 , 2000 SdmmcInit=0 NOT PRESENT StorageInit ok = 18165 SecureMode = 0 SecureInit ret = 0, SecureMode = 0 GPT 0x632d7e08 signature is wrong LOADER Check OK! 0x60000000, 82244 TOS Check OK! 0x68400000, 92952 Enter Trust OS INF TEE-CORE:init_primary_helper:319: Initializing (1.0.1-72-gf230aa2 #2 Fri Sep 29 10:22:10 UTC 2017 arm) INF TEE-CORE:init_primary_helper:320: Release version: 2.0 INF TEE-CORE:init_teecore:79: teecore inits done U-Boot 2014.10-RK322X-06 (Oct 18 2022 - 16:37:01) CPU: rk322x cpu version = 3 CPU's clock information: arm pll = 600000000HZ periph pll = 1200000000HZ ddr pll = 600000000HZ codec pll = 500000000HZ Board: Rockchip platform Board Uboot as second level loader DRAM: Found dram banks: 1 Adding bank:0000000060000000(0000000060000000) Reserve memory for trust os. dram reserve bank: base = 0x68400000, size = 0x00100000 128 MiB GIC CPU mask = 0x00000001 rk dma pl330 version: 1.4 remotectl v0.1 pwm freq=0x47868 pwm_freq_nstime=0xd55 SdmmcInit = 0 20 SdmmcInit = 2 0 storage init OK! Using default environment GetParam Load FDT from resource image. can't find dts node for fixed No pmic detect. set pwm voltage ok,pwm_id =1 vol=1100000,pwm_value=66 set pwm voltage ok,pwm_id =2 vol=1200000,pwm_value=33 DRAM: dram freq:600MHz SecureBootEn = 0, SecureBootLock = 0 #Boot ver: 0000-00-00#0.00 empty serial no. normal boot. checkKey vbus = 1 Normal boot, detecting usb... Auto detect usb timeout:978/1479/1479, return! otg not connected! board_fbt_key_pressed: ir_keycode = 0x0, frt = 0 no fuel gauge found no fuel gauge found can't find power_ctr node for lcdc0 HDMI: no pull up gpio can't find dts node for deviceinfo rk_hdmi_register:fail to read deviceinfo hdmi baseparamer 0x0@0-0 left = 0, right = 0, top = 0, bottom = 0, overscan = 0 panel->left = 100 , panel->right = 100 ,panel->top = 100, panel->bottom = 100, panel->overscan = 100 tve baseparamer 0x0@0-0 Hdmi Devices Not Exist. can't find dts node for rk312x-tve SCREEN_TVOUT rk3036_tve_init:use default config g_tve_pos = 1 read logo on state from dts [1] no fuel gauge found checkKey vbus = 1 board_fbt_key_pressed: ir_keycode = 0x0, frt = 0 Hit any key to stop autoboot: 0 load fdt from resouce. ERROR: [get_entry_ram]: Cannot find logo_kernel.bmp! vendor read error! Set oem_unlocked=0Secure Boot state: 0 kernel @ 0x62000000 (0x0066db38) ramdisk @ 0x65bf0000 (0x001693f0) bootrk: do_bootm_linux... Loading Device Tree to 65600000, end 656155bd ... OK Add bank:0000000060000000, 0000000008400000 Add bank:0000000068500000, 0000000057b00000 WARNING: could not set reg FDT_ERR_BADOFFSET. Starting kernel ... <hit enter to activate fiq debugger> [ 0.000000] Booting Linux on physical CPU 0xf00 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 3.10.104 (hxws@gxt) (gcc version 4.6.x-google 20120106 (prerelease) (GCC) ) #76 SMP PREEMPT Mon Aug 7 10:45:16 CST 2023 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: Rockchip RK3229, model: rockchip,rk3229 [ 0.000000] rockchip_uboot_logo_setup: mem: 0x02000000@0xbdc00000, offset:0x00000000 [ 0.000000] hdmi init vic is 65536 [ 0.000000] cvbs init tve.format is 1 [ 0.000000] cvbs init tve.format is 1 [ 0.000000] cvbs init tve.format is 1 [ 0.000000] rockchip_uboot_mem_reserve: reserve 0x02000000@0xbdc00000 for uboot logo [ 0.000000] rockchip_ion_reserve [ 0.000000] ion heap(cma): base(0) size(0) align(0) [ 0.000000] ion heap(drm): base(0) size(0) align(0) [ 0.000000] ion heap(vmalloc): base(0) size(0) align(0) [ 0.000000] cma: CMA: reserved 16 MiB at 7f000000 [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] system serial: c0cd2128 [ 0.000000] 52 57 30 31 00 00 0b 1d [ 0.000000] 55 4b 35 30 32 00 00 21 [ 0.000000] psci: probing function IDs from device-tree [ 0.000000] PERCPU: Embedded 9 pages/cpu @c1a15000 s13440 r8192 d15232 u36864 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 391936 [ 0.000000] Kernel command line: vmalloc=496M psci=enable rockchip_jtag console=ttyFIQ0 androidboot.selinux=permissive androidboot.hardware=rk30board androidboot.console=ttyFIQ0 init=/init mtdparts=rk29xxnand:0x00002000@0x00002000(ub0 [ 0.000000] rockchip jtag enabled [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] allocated 3145728 bytes of page_cgroup [ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups [ 0.000000] Memory: 132MB 1403MB = 1535MB total .....