Orange Pi R1 Plus (RK3328) Boot from Flash

Hi,
i tried some things to bring mtd nor flash support

1.) i compiled this repo to run openwrt on my sd card https://github.com/jayanta525/openwrt-nanopi-r2s
then mtd not exist in default shown below.

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name

2.) i started to add SPI node to rockchip.dtb found in my sd card's mmcblk0p1 partition

i converted dtb to dts and add SPI support changes shown below (if it is true, please check)
right side original one, left side modified one to support SPI

/dts-v1/;							/dts-v1/;

/ {								/ {
	compatible = "xunlong,orangepi-r1plus\0rockchip,rk332		compatible = "xunlong,orangepi-r1plus\0rockchip,rk332
	interrupt-parent = <0x01>;					interrupt-parent = <0x01>;
	#address-cells = <0x02>;					#address-cells = <0x02>;
	#size-cells = <0x02>;						#size-cells = <0x02>;
	model = "Orange Pi R1 PLUS";					model = "Orange Pi R1 PLUS";

	aliases {							aliases {
		serial0 = "/serial@ff110000";					serial0 = "/serial@ff110000";
		serial1 = "/serial@ff120000";					serial1 = "/serial@ff120000";
		serial2 = "/serial@ff130000";					serial2 = "/serial@ff130000";
							      <
		i2c0 = "/i2c@ff150000";						i2c0 = "/i2c@ff150000";
		i2c1 = "/i2c@ff160000";						i2c1 = "/i2c@ff160000";
		i2c2 = "/i2c@ff170000";						i2c2 = "/i2c@ff170000";
		i2c3 = "/i2c@ff180000";						i2c3 = "/i2c@ff180000";
		**spi0-0 = "/soc/spi@ff190000";		      <**
**		spi0-1 = "/soc/spi@ff190000";		      <**
**		spi0-2 = "/soc/spi@ff190000";		      <**
		ethernet0 = "/ethernet@ff540000";				ethernet0 = "/ethernet@ff540000";
		ethernet1 = "/ethernet@ff550000";				ethernet1 = "/ethernet@ff550000";
		led-boot = "/leds/led-1";					led-boot = "/leds/led-1";
		led-failsafe = "/leds/led-1";					led-failsafe = "/leds/led-1";
		led-running = "/leds/led-1";					led-running = "/leds/led-1";
		led-upgrade = "/leds/led-1";					led-upgrade = "/leds/led-1";
	};								};
**********************************
	******************************************
	spi@ff190000 {							spi@ff190000 {
		compatible = "rockchip,rk3328-spi\0rockchip,r			compatible = "rockchip,rk3328-spi\0rockchip,r
		reg = <0x00 0xff190000 0x00 0x1000>;				reg = <0x00 0xff190000 0x00 0x1000>;
		interrupts = <0x00 0x31 0x04>;					interrupts = <0x00 0x31 0x04>;
		#address-cells = <0x01>;					#address-cells = <0x01>;
		#size-cells = <0x00>;						#size-cells = <0x00>;
		clocks = <0x02 0x20 0x02 0xd1>;					clocks = <0x02 0x20 0x02 0xd1>;
		clock-names = "spiclk\0apb_pclk";				clock-names = "spiclk\0apb_pclk";
		dmas = <0x0b 0x08 0x0b 0x09>;					dmas = <0x0b 0x08 0x0b 0x09>;
		dma-names = "tx\0rx";						dma-names = "tx\0rx";
		pinctrl-names = "default";					pinctrl-names = "default";
		pinctrl-0 = <0x2a 0x2b 0x2c 0x2d>;				pinctrl-0 = <0x2a 0x2b 0x2c 0x2d>;
		status = "okay";			      |			status = "disabled";
							      <
		**flash@0 {				      <**
**				#address-cells = <0x01>;      <**
**				#size-cells = <0x01>;	      <**
**				compatible = "mxicy,mx25l1280 <**
**				reg = <0x00>;		      <**
**				spi-max-frequency = <0x2625a0 <**
**							      <**
**				partitions {		      <**
**					compatible = "fixed-p <**
**					#address-cells = <0x0 <**
**					#size-cells = <0x01>; <**
**							      <**
**					partition@0 {	      <**
**						label = "uboo <**
**						reg = <0x00 0 <**
**					};		      <**
**							      <**
**					partition@80000 {     <**
**						label = "dtb" <**
**						reg = <0x8000 <**
**					};		      <**
**							      <**
**					partition@90000 {     <**
**						compatible =  <**
**						label = "firm <**
**						reg = <0x9000 <**
**					};		      <**
**				};			      <**
**			};				      <**
	};								};


Here is the result it seems works!

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00010000 00010000 "dtb"
mtd2: 00f70000 00010000 "firmware"
root@OpenWrt:/# 

root@OpenWrt:/# cat /dev/mtd2 >> alfa.bin
root@OpenWrt:/# du -sh alfa.bin 
15.5M   alfa.bin
root@OpenWrt:/#

converting dtb to dts

dtc -I dtb -O dts -f rockchip.dtb -o rockchip.dts
dtc -I dts -O dtb -f rockchip.dts -o rockchip.dtb

3.)
i have edited /openwrt-nanopi-r2s/target/linux/rockchip/image/Makefile like shown below and compiled openwrt it gives me 5.9M sysupgrade image

...
...
### Devices ###
define Device/Default
  PROFILES := Default
  KERNEL := kernel-bin | lzma
  IMAGES := sysupgrade.bin
  SUPPORTED_DEVICES := $(subst _,$(comma),$(1))
  DEVICE_DTS = rockchip/$(SOC)-$(lastword $(subst _, ,$(1)))
  BLOCKSIZE :=64k
  IMAGE_SIZE := 16286k
  IMAGE/sysupgrade.bin = append-kernel | append-rootfs | pad-rootfs | \
  	append-metadata | check-size $$(IMAGE_SIZE)
endef

include $(SUBTARGET).mk

$(eval $(call BuildImage))

4.) i have cloned this uboot repo > https://github.com/u-boot/u-boot.git
and added spi booting options to nanopi-r2s-rk3328_defconfig shown below and compiled uboot

CONFIG_SPL=y
CONFIG_CMD_SF=y
CONFIG_CMD_SPI=y
CONFIG_DM_SPI=y
CONFIG_DM_SPI_FLASH=y
CONFIG_SPI_FLASH=y
CONFIG_SPI_FLASH_MACRONIX=y
CONFIG_SPI_FLASH_WINBOND=y
CONFIG_SPI=y
CONFIG_SPI_MEM=y
########### rk3328 uboot building with spi support

sudo apt-get install gcc-aarch64-linux-gnu
export CROSS_COMPILE=aarch64-linux-gnu-
make nanopi-r2s-rk3328_defconfig
make -j $(nproc) V=s

result images are :u-boot.bin u-boot.cfg u-boot.cfg.configs u-boot.dtb u-boot-dtb.bin u-boot-dtb.img u-boot.img u-boot.itb u-boot.its u-boot.lds

which image should i flash to SPI flash and i don't know below partitioning is true i moved this flash parts from opir1 . Can you help me this point?

root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00010000 00010000 "dtb"
mtd2: 00f70000 00010000 "firmware"
root@OpenWrt:/# 

here is modified files by me

https://dosya.co/xrbmuing7vt6/rockchip.dts.html
https://dosya.co/81q0r3lpy90y/nanopi-r2s-rk3328_defconfig.html
https://dosya.co/8ymkcfu632cf/Makefile_sysupgrade_rk.html

1 Like

Can you post the UART output at 1500000, from the kernel which has SPI flash support.

Here is

root@OpenWrt:/# dmesg
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.4.111 (topcu@topcu-Veriton-X2660G) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r0-d2d6fc3)) #0 SMP PREEMPT Wed Apr 28 02:34:05 2021
[    0.000000] Machine model: Orange Pi R1 PLUS
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff130000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled
[    0.000000] cma: Reserved 8 MiB at 0x000000003f800000
[    0.000000] On node 0 totalpages: 261632
[    0.000000]   DMA32 zone: 4088 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 261632 pages, LIFO batch:63
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 functi.
[    0.000000] psci: SMC Calling Convention v1.0
[    0.000000] percpu: Embedded 21 pages/cpu s45912 r8192 d31912 u86016
[    0.000000] pcpu-alloc: s45912 r8192 d31912 u86016 alloc=21*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000eatures: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 257544
[    0.000000] Kernel command line: console=ttyS2,1500000 earlycon=uart8250,mmio32,0xff130000 root=PARTUUID=5452574f-02 rw rootwait
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 1005132K/1046528K available (7358K kernel code, 536K rwdata, 2288K rodata, 1664K init, 703K bss, 33204K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU event tracing is enabled.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] random: get_random_bytes called from start_kernel+0x29c/0x39c with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001388] Console: colour dummy device 80x25
[    0.001905] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.002838] pid_max: default: 32768 minimum: 301
[    0.003499] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.004178] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.006981] ASID allocator initialised with 32768 entries
[    0.007596] rcu: Hierarchical SRCU implementation.
[    0.009148] smp: Bringing up secondary CPUs ...
[    0.010335] Detected VIPT I-cache on CPU1
[    0.010421] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.011182] Detected VIPT I-cache on CPU2
[    0.011237] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.011940] Detected VIPT I-cache on CPU3
[    0.011994] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.012105] smp: Brought up 1 node, 4 CPUs
[    0.015404] SMP: Total of 4 processors activated.
[    0.015835] CPU features: detected: 32-bit EL0 Support
[    0.016305] CPU features: detected: CRC32 instructions
[    0.025156] CPU: All CPU(s) started at EL2
[    0.025563] alternatives: patching kernel code
[    0.037797] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.038744] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.039965] pinctrl core: initialized pinctrl subsystem
[    0.041562] NET: Registered protocol family 16
[    0.044361] DMA: preallocated 256 KiB pool for atomic allocations
[    0.046003] cpuidle: using governor menu
[    0.046713] Serial: AMBA PL011 UART driver
[    0.073922] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.074539] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.075143] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.075789] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.079785] sdmmc-regulator GPIO handle specifies active low - ignored
[    0.081747] iommu: Default domain type: Translated 
[    0.083425] SCSI subsystem initialized
[    0.084068] usbcore: registered new interface driver usbfs
[    0.084618] usbcore: registered new interface driver hub
[    0.085158] usbcore: registered new device driver usb
[    0.086484] workqueue: max_active 576 requested for napi_workq is out of range, clamping between 1 and 512
[    0.088362] clocksource: Switched to clocksource arch_sys_counter
[    0.089196] VFS: Disk quotas dquot_6.6.0
[    0.089628] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.095660] thermal_sys: Registered thermal governor 'step_wise'
[    0.095667] thermal_sys: Registered thermal governor 'power_allocator'
[    0.096896] NET: Registered protocol family 2
[    0.098523] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    0.099316] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.100122] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    0.101004] TCP: Hash tables configured (established 8192 bind 8192)
[    0.101783] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.102423] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    0.103346] NET: Registered protocol family 1
[    0.103782] PCI: CLS 0 bytes, default 64
[    0.106492] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[    0.116772] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.117313] jffs2: version 2.2 (NAND) (SUMMARY) (ZLIB) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.120289] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.121282] io scheduler mq-deadline registered
[    0.128064] dma-pl330 ff1f0000.dmac: Loaded driver for PL330 DMAC-241330
[    0.128744] dma-pl330 ff1f0000.dmac: 	DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
[    0.132051] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.134603] ff120000.serial: ttyS1 at MMIO 0xff120000 (irq = 12, base_baud = 1500000) is a 16550A
[    0.136247] ff130000.serial: ttyS2 at MMIO 0xff130000 (irq = 13, base_baud = 1500000) is a 16550A
[    0.137197] printk: console [ttyS2] enabled
[    0.137951] printk: bootconsole [uart8250] disabled
[    0.147862] loop: module loaded
[    0.148163] mtip32xx Version 1.3.1
[    0.151935] spi-nor spi0.0: mx25l12805d (16384 Kbytes)
[    0.152482] 3 fixed-partitions partitions found on MTD device spi0.0
[    0.153042] Creating 3 MTD partitions on "spi0.0":
[    0.153475] 0x000000000000-0x000000080000 : "uboot"
[    0.157025] 0x000000080000-0x000000090000 : "dtb"
[    0.160989] 0x000000090000-0x000001000000 : "firmware"
[    0.165827] libphy: Fixed MDIO Bus: probed
[    0.167475] rk_gmac-dwmac ff540000.ethernet: IRQ eth_wake_irq not found
[    0.168069] rk_gmac-dwmac ff540000.ethernet: IRQ eth_lpi not found
[    0.168854] rk_gmac-dwmac ff540000.ethernet: PTP uses main clock
[    0.169424] rk_gmac-dwmac ff540000.ethernet: phy regulator is not available yet, deferred probing
[    0.171737] dwc3 ff600000.dwc3: Failed to get clk 'ref': -2
[    0.172821] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.173401] ehci-platform: EHCI generic platform d[    0.176244] ehci-platform ff5c0000.usb: EHCI Host Controller
[    0.176816] ehci-platform ff5c0000.usb: new USB bus registered, assigned bus number 1
[    0.177668] ehci-platform ff5c0000.usb: irq 30, io mem 0xff5c0000
[    0.192394] ehci-platform ff5c0000.usb: USB 2.0 started, EHCI 1.00
[    0.193601] hub 1-0:1.0: USB hub found
[    0.193976] hub 1-0:1.0: 1 port detected
[    0.194865] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.195453] ohci-platform: OHCI generic platform driver
[    0.196289] ohci-platform ff5d0000.usb: Generic Platform OHCI controller
[    0.196961] ohci-platform ff5d0000.usb: new USB bus registered, assigned bus number 2
[    0.197816] ohci-platform ff5d0000.usb: irq 31, io mem 0xff5d0000
[    0.261039] hub 2-0:1.0: USB hub found
[    0.261418] hub 2-0:1.0: 1 port detected
[    0.262783] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.263299] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 3
[    0.264191] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010
[    0.265157] xhci-hcd xhci-hcd.0.auto: irq 165, io mem 0xff600000
[    0.266611] hub 3-0:1.0: USB hub found
[    0.266986] hub 3-0:1.0: 1 port detected
[    0.267740] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[    0.268244] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 4
[    0.268982] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed
[    0.269640] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    0.270888] hub 4-0:1.0: USB hub found
[    0.271260] hub 4-0:1.0: 1 port detected
[    0.272216] usbcore: registered new interface driver usb-storage
[    0.272973] i2c /dev entries driver
[    0.275411] rk808 1-0018: chip id: 0x8050
[    0.283742] rk808-regulator rk808-regulator: there is no dvs0 gpio
[    0.284325] rk808-regulator rk808-regulator: there is no dvs1 gpio
[    0.287490] vdd_log: supplied by vdd_5v
[    0.289421] vdd_arm: supplied by vdd_5v
[    0.290015] vcc_ddr: supplied by vdd_5v
[    0.291589] vcc_io_33: supplied by vdd_5v
[    0.294934] vcc_18: supplied by vcc_io_33
[    0.298434] vcc18_emmc: supplied by vcc_io_33
[    0.301870] vdd_10: supplied by vdd_5v
[    0.311429] rk808-rtc rk808-rtc: registered as rtc0
[    0.312068] i2c i2c-1: of_i2c: modalias failure on /i2c@ff160000/usb
[    0.312694] i2c i2c-1: Failed to create I2C device for /i2c@ff160000/usb
[    0.318879] energy_model: pd0: hertz/watts ratio non-monotonically decreasing: em_cap_state 1 >= em_cap_state0
[    0.321650] sdhci: Secure Digital Host Controller Interface driver
[    0.322199] sdhci: Copyright(c) Pierre Ossman
[    0.322582] Synopsys Designware Multimedia Card Interface Driver
[    0.323668] dwmmc_rockchip ff500000.dwmmc: IDMAC supports 32-bit address mode.
[    0.324326] dwmmc_rockchip ff500000.dwmmc: Using internal DMA controller.
[    0.325002] dwmmc_rockchip ff500000.dwmmc: Version ID is 270a
[    0.325565] dwmmc_rockchip ff500000.dwmmc: DW MMC controller at irq 27,32 bit host data width,256 deep fifo
[    0.326459] vcc_sd: supplied by vcc_io_33
[    0.344831] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0)
[    0.358401] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.360040] ledtrig-cpu: registered to indicate activity on CPUs
[    0.360984] usbcore: registered new interface driver usbhid
[    0.361479] usbhid: USB HID core driver
[    0.362928] NET: Registered protocol family 10
[    0.364466] Segment Routing with IPv6
[    0.364900] NET: Registered protocol family 17
[    0.365361] 8021q: 802.1Q VLAN Support v1.8
[    0.382383] rk_gmac-dwmac ff540000.ethernet: IRQ eth_wake_irq not found
[    0.382978] rk_gmac-dwmac ff540000.ethernet: IRQ eth_lpi not found
[    0.383625] rk_gmac-dwmac ff540000.ethernet: PTP uses main clock
[    0.384258] rk_gmac-dwmac ff540000.ethernet: clock input or output? (input).
[    0.385032] rk_gmac-dwmac ff540000.ethernet: TX delay(0x24).
[    0.385559] rk_gmac-dwmac ff540000.ethernet: RX delay(0x18).
[    0.386089] rk_gmac-dwmac ff540000.ethernet: integrated PHY? (no).
[    0.386720] rk_gmac-dwmac ff540000.ethernet: cannot get clock clk_mac_speed
[    0.387337] rk_gmac-dwmac ff540000.ethernet: clock input from PHY
[    0.392891] rk_gmac-dwmac ff540000.ethernet: init for RGMII
[    0.393703] rk_gmac-dwmac ff540000.ethernet: User ID: 0x10, Synopsys ID: 0x35
[    0.394341] rk_gmac-dwmac ff540000.ethernet: 	DWMAC1000
[    0.394808] rk_gmac-dwmac ff540000.ethernet: DMA HW capability register supported
[    0.395470] rk_gmac-dwmac ff540000.ethernet: RX Checksum Offload Engine supported
[    0.396130] rk_gmac-dwmac ff540000.ethernet: COE Type 2
[    0.396679] rk_gmac-dwmac ff540000.ethernet: TX Checksum insertion supported
[    0.397314] rk_gmac-dwmac ff540000.ethernet: Wake-Up On Lan supported
[    0.397885] rk_gmac-dwmac ff540000.ethernet: Normal descriptors
[    0.398405] rk_gmac-dwmac ff540000.ethernet: Ring mode enabled
[    0.398919] rk_gmac-dwmac ff540000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[    0.399816] libphy: stmmac: probed
[    0.423362] random: fast init done
[    0.423753] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    0.424692] mmc0: new high speed SDHC card at address aaaa
[    0.426178] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 
[    0.429559]  mmcblk0: p1 p2
[    0.470467] rk808-rtc rk808-rtc: setting system clock to 2016-01-21T08:50:08 UTC (1453366208)
[    0.479983] VFS: Mounted root (squashfs filesystem) readonly on device 179:2.
[    0.481857] Freeing unused kernel memory: 1664K
[    0.496405] Run /sbin/init as init process
[    0.604500] usb 4-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[    0.690342] init: Console is alive
[    0.809025] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    0.855280] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    0.863034] init: - preinit -
[    1.222608] random: jshn: uninitialized urandom read (4 bytes read)
[    1.269972] random: jshn: uninitialized urandom read (4 bytes read)
[    1.297141] random: jshn: uninitialized urandom read (4 bytes read)
[    5.815616] F2FS-fs (loop0): Mounted with checkpoint version = 8d03b2d
[    5.817329] mount_root: switching to f2fs overlay
[    5.925500] EXT4-fs (mmcblk0p1): warning: mounting unchecked fs, running e2fsck is recommended
[    5.953018] EXT4-fs (mmcblk0p1): mounted filesystem without journal. Opts: (null)
[    5.964167] urandom-seed: Seeding with /etc/urandom.seed
[    6.018994] procd: - early -
[    6.628651] procd: - ubus -
[    6.689149] urandom_read: 3 callbacks suppressed
[    6.689159] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.690903] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.691787] random: ubusd: uninitialized urandom read (4 bytes read)
[    6.693383] procd: - init -
[    6.950301] urngd: v1.0.2 started.
[    6.963050] kmodloader: loading kernel modules from /etc/modules.d/*
[    6.973925] random: crng init done
[    6.974248] random: 1 urandom warning(s) missed due to ratelimiting
[    7.015240] usbcore: registered new interface driver r8152
[    7.023538] xt_time: kernel timezone is -0000
[    7.035790] PPP generic driver version 2.4.2
[    7.037322] NET: Registered protocol family 24
[    7.045721] kmodloader: done loading kernel modules from /etc/modules.d/*
[    7.181846] usb 4-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[    7.254026] r8152 4-1:1.0 eth1: v1.10.11
[    9.982441] br-lan: port 1(eth1) entered blocking state
[    9.982933] br-lan: port 1(eth1) entered disabled state
[    9.983761] device eth1 entered promiscuous mode
[    9.986340] br-lan: port 1(eth1) entered blocking state
[    9.986835] br-lan: port 1(eth1) entered forwarding state
[   10.057382] rk_gmac-dwmac ff540000.ethernet eth0: PHY [stmmac-0:01] driver [RTL8211E Gigabit Ethernet]
[   10.068497] rk_gmac-dwmac ff540000.ethernet eth0: No Safety Features support found
[   10.069213] rk_gmac-dwmac ff540000.ethernet eth0: PTP not supported by HW
[   10.069824] rk_gmac-dwmac ff540000.ethernet eth0: configuring for phy/rgmii link mode
[   11.004709] br-lan: port 1(eth1) entered disabled state
[   33.423300] r8152 4-1:1.0 eth1: Promiscuous mode enabled
[   33.424058] r8152 4-1:1.0 eth1: carrier on
[   33.425127] br-lan: port 1(eth1) entered blocking state
[   33.425602] br-lan: port 1(eth1) entered forwarding state
[   33.426663] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
root@OpenWrt:/# 

Try writing u-boot.itb to SPI flash and check for any UART activity.

Refer here:

and

Boot option - Rockchip open source Document (rock-chips.com)

it gives me an error when flashing u-boot.itb to uboot partition "[e]Failed to erase block"
i moved mtd parts from orange pi r1 is it correct partitioning for rk3328 ?

oot@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00080000 00010000 "uboot"
mtd1: 00010000 00010000 "dtb"
mtd2: 00f70000 00010000 "firmware"

root@OpenWrt:~# mtd -e uboot write u-boot.itb uboot
Unlocking uboot ...
Erasing uboot ...

Writing from u-boot.itb to uboot ...  [e]Failed to erase block
root@OpenWrt:~#