@fabiobassa @jock
For further infos and helping more people would you be so kind to post some screenshots and a more detailled procedure !?
Hi again. so i got the box for about $13.00 online. it was marketed as an MXQ Pro 5G 4G/32G which was totally fake so i opened it and found out that is was just 1G/8G and that it was an RK3228. I tried backing up the firmware with rkdevtool in loader mode and only got about 0x0h to 0x10000h. i tried to write it back and it wouldn't boot anymore. I tried flashing it with armbian and rkdevtool and still no luck then i saw @qiheng's post (thank god he posted pictures) and copied his rkdevtool config and placed the box in maskrom using the pin short method. pinout is here. i just shorted clk to vss/gnd pin. and the flashing worked! Here are the pics of the board, it's marked R28-MXQ-00813, has DDR3 and 8GB flash. I also found the UART pins at the back of the board the 2 pads close to a bunch of capacitors under the cpu, the closest pad to the capacitors is the TX pin and the pad next to it is the RX pin, i just connected the gnd pin to power gnd. Here's the pic, green is tx and white is rx. uboot boots fine but it can't continue booting. i used legacy buster with 4.4 kernel. Orange led is blinking and i got the log below from putty. Apparently, it can't find boot.env.
Serial baud rate is 115200
DDR Version V1.10 20190926
In
ID:0xFFF
600MHz
DDR3
Bus Width=32 Col=11 Bank=8 Row=14 CS=1 Die Bus-Width=16 Size=1024MB
mach:4
OUT
U-Boot SPL 2020.10-armbian (Dec 12 2020 - 01:47:28 +0100)
Trying to boot from MMC2
I/TC:
I/TC: Non-secure external DT found
I/TC: Switching console to device: /serial@11030000
I/TC: OP-TEE version: 3.10.0-40-ga1d5c81f (gcc version 9.2.1 20191025 (GNU Toolc hain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #6 Wed Sep 16 21:36 :15 UTC 2020 arm
I/TC: Primary CPU initializing
M/TC: Not protecting region 1: 0x68400000-0x68600000
I/TC: Primary CPU switching to normal world boot
U-Boot 2020.10-armbian (Dec 12 2020 - 01:47:28 +0100)
Model: Generic Rockchip rk322x TV Box board
DRAM: 992 MiB
MMC: dwmmc@30000000: 1, dwmmc@30020000: 0
Loading Environment from EXT4... ** File not found /boot/boot.env **
** Unable to read "/boot/boot.env" from mmc0:1 **
In: serial@11030000
Out: serial@11030000
Err: serial@11030000
Model: Generic Rockchip rk322x TV Box board
Net: eth0: ethernet@30200000
starting USB...
Bus usb@30040000: USB DWC2
scanning bus usb@30040000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
stopping USB..
starting USB...
Bus usb@30040000: USB DWC2
scanning bus usb@30040000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Device 0: unknown device
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2909 bytes read in 3 ms (946.3 KiB/s)
## Executing script at 60000000
Boot script loaded from mmc 0
214 bytes read in 3 ms (69.3 KiB/s)
5694356 bytes read in 140 ms (38.8 MiB/s)
8771432 bytes read in 206 ms (40.6 MiB/s)
49812 bytes read in 7 ms (6.8 MiB/s)
Failed to load '/boot/dtb/overlay/-fixup.scr'
## Loading init Ramdisk from Legacy Image at 64000000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 5694292 Bytes = 5.4 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 61f00000
Booting using the fdt blob at 0x61f00000
Loading Ramdisk to 67e91000, end 683ff354 ... OK
Loading Device Tree to 67e1c000, end 67e90fff ... OK
Starting kernel ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
I tried flashing kernel 5.9 minimal buster and i get this:
DDR Version V1.10 20190926
In
ID:0xFFF
600MHz
DDR3
Bus Width=32 Col=11 Bank=8 Row=14 CS=1 Die Bus-Width=16 Size=1024MB
mach:4
OUT
U-Boot SPL 2020.10-armbian (Dec 12 2020 - 01:48:33 +0100)
Trying to boot from MMC2
I/TC:
I/TC: Non-secure external DT found
I/TC: Switching console to device: /serial@11030000
I/TC: OP-TEE version: 3.10.0-40-ga1d5c81f (gcc version 9.2.1 20191025 (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10))) #6 Wed Sep 16 21:36:15 UTC 2020 arm
I/TC: Primary CPU initializing
M/TC: Not protecting region 1: 0x68400000-0x68600000
I/TC: Primary CPU switching to normal world boot
U-Boot 2020.10-armbian (Dec 12 2020 - 01:48:33 +0100)
Model: Generic Rockchip rk322x TV Box board
DRAM: 992 MiB
MMC: dwmmc@30000000: 1, dwmmc@30020000: 0
Loading Environment from EXT4... ** File not found /boot/boot.env **
** Unable to read "/boot/boot.env" from mmc0:1 **
In: serial@11030000
Out: serial@11030000
Err: serial@11030000
Model: Generic Rockchip rk322x TV Box board
Net: eth0: ethernet@30200000
starting USB...
Bus usb@30040000: USB DWC2
scanning bus usb@30040000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
stopping USB..
starting USB...
Bus usb@30040000: USB DWC2
scanning bus usb@30040000 for devices... 1 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
Device 0: unknown device
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2909 bytes read in 3 ms (946.3 KiB/s)
## Executing script at 60000000
Boot script loaded from mmc 0
243 bytes read in 3 ms (79.1 KiB/s)
6017211 bytes read in 148 ms (38.8 MiB/s)
9681360 bytes read in 226 ms (40.9 MiB/s)
40937 bytes read in 6 ms (6.5 MiB/s)
410 bytes read in 5 ms (80.1 KiB/s)
Applying kernel provided DT overlay rk322x-emmc-nand.dtbo
1286 bytes read in 6 ms (209 KiB/s)
Applying kernel provided DT overlay rk322x-led-conf1.dtbo
232 bytes read in 6 ms (37.1 KiB/s)
Applying kernel provided DT fixup script (rk322x-fixup.scr)
## Executing script at 600f0000
## Loading init Ramdisk from Legacy Image at 64000000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 6017147 Bytes = 5.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 61f00000
Booting using the fdt blob at 0x61f00000
Loading Ramdisk to 67e42000, end 683ff07b ... OK
Loading Device Tree to 67dcf000, end 67e41fff ... OK
Starting kernel ...
I/TC: Secondary CPU 1 initializing
I/TC: Secondary CPU 1 switching to normal world boot
I/TC: Secondary CPU 2 initializing
I/TC: Secondary CPU 2 switching to normal world boot
I/TC: Secondary CPU 3 initializing
I/TC: Secondary CPU 3 switching to normal world boot
Armbian 20.11.3 Buster ttyS2
rk322x-box login: iamgroot
Password:
Last login: Sat Dec 12 10:39:28 UTC 2020 on ttyS2
_ _________ ____ _
_ __| | _|___ /___ \|___ \__ __ | |__ _____ __
| '__| |/ / |_ \ __) | __) \ \/ /____| '_ \ / _ \ \/ /
| | | < ___) / __/ / __/ > <_____| |_) | (_) > <
|_| |_|\_\____/_____|_____/_/\_\ |_.__/ \___/_/\_\
Welcome to Armbian 20.11.3 Buster with Linux 5.9.14-rk322x
No end-user support: community creations
System load: 27% Up time: 0 min
Memory usage: 5% of 960M IP:
CPU temp: 63°C Usage of /: 8% of 7.0G
[ 0 security updates available, 17 updates total: apt upgrade ]
Last check: 2020-12-12 10:40
iamgroot@rk322x-box:~$
No wifi or x yet but it's a start. serial seems to freeze sometimes, maybe because of my cloned pl2303 usb ttl. maybe i should get a better usb to uart. after repeated reboots, i managed to run rk322x-config successfully. i don't know what the wifi chip, it's marked S9012 and when i searched for it only transistors came up. lol.