Rock 3a does not enter maskroom mode

Connecting as per the wiki’s guidance:

jumper on the last two pins.
USB Male A to Mail A cable to ROCK 3A OTG


Connecting power and otg cable to the computer.

Read carefully.

  • connect the USB to the computer
  • power the board
  • remove the jumper after you power the board

then you go check with lsusb.

Hi, I tested it like that too

Maybe you are too fast, or too slow to remove the jumper?

hi, I did the test with 5 seconds and 30 seconds but there was no change

Use a power supply (PD charger) to power the board instead of USB.

hi, same behavior

image


Do you understand the instructions below?:

  • Power on the board
  • Take off the yellow hat.
  • Check usb device

yes i followed all the intentions but i get the same behavior

other than that, I can’t get adb to work

yeah adb wont work in bootrom

rkdevtool in windows sadly it works better as in linux

the only thing with the jumpers is that you short the spi and emmc device so that bootrom cannot find any device and as long bootrom sees a device it would not enter bootrom mode

so there only 2 things

or wrong otg cable
or it still sees a device

as long rkdevtool dont see a connected device you do something wrong

that is why it is easier in windows as in linux in windows it alarms you when rkdevtool sees a device by sound and confermation you got a device connected .

I’ll try using the serial monitor to see if I have any extra info.
https://wiki.radxa.com/Rock3/dev/serial-console

Can you get into maskrom now? Hardware


This page indicates that I should connect the pin on the left and the middle(The Hdmi interface is facing me), and in my experience, I need to repeat this step many times to enter the maskrom

thanks for replying but i tried with the jumper like that too

The serial only returns me something when the SD card is plugged in
image

dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
No misc partition
boot mode: None
FIT: No fdt blob
No resource partition
No resource partition
Failed to load DTB, ret=-19
Failed to get kernel dtb, ret=-19
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
vdd_cpu 1025000 uV
PMIC: RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
Model: Radxa ROCK3 Model A
rockchip_set_serialno: could not find efuse/otp device
download key pressed… entering download mode…
Forbid to flash mmc 1(sdcard)
Enter rockusb failed, fallback to bootrom…

console:/ $ reboot bootloader
[ 20.251549] init: Received sys.powerctl=‘reboot,bootloader’ from pid: 475 (reboot)
[ 20.661754] init: Clear action queue and start shutdown trigger
[ 20.661870] init: Entering shutdown mode
[ 20.662023] init: processing action (shutdown_done) from (:0)
[ 20.662057] init: Reboot start, reason: reboot,bootloader, reboot_target: bootloader
[ 20.662101] init: Shutdown timeout: 6000 ms
[ 20.662125] init: Create reboot monitor thread.
[ 20.662601] init: shutdown_timeout_timespec.tv_sec: 326
[ 21.617170] init: Could not start shutdown ‘to_start’ service ‘watchdogd’: Cannot find ‘/sbin/watchdogd’: No such file or directory
[ 21.617625] init: starting service ‘blank_screen’…
[ 21.698900] type=1400 audit(1665503160.670:31): avc: denied { unlink } for comm=“init” name=“camera_tool” dev=“tmpfs” ino=19767 scontext=u:r:init:s0 tcon
text=u:object_r:socket_device:s0 tclass=sock_file permissive=1
I/TA: Goodbye Rockchip Weaver!
[ 21.825055] binder: release 172:172 transaction 6657 out, still active
[ 21.825084] binder: undelivered TRANSACTION_COMPLETE
[ 21.838242] binder: release 219:234 transaction 6657 in, still active
[ 21.838330] binder: send failed reply for transaction 6657, target dead
[ 21.909824] kworker/2:1: 10 output lines suppressed due to ratelimiting
[ 21.934609] android_work: did not send uevent (0 0 (null))
[ 21.949070] logd.klogd: 12 output lines suppressed due to ratelimiting
[ 22.686116] cpu cpu0: min=816000, max=816000
[ 22.690274] rk808 0-0020: reboot: not restore POWER_EN
[ 22.690674] rk808 0-0020: reboot: force RK817_RST_FUNC_REG ok!
[ 22.696497] rkisp_hw fdff0000.rkisp: rkisp_hw_shutdown
[ 22.704942] fan53555-regulator 0-001c: fan53555… reset
[ 22.706367] fan53555-regulator 0-001c: reset: force fan53555_reset ok!
[ 22.707644] mpp_rkvdec2 fdf80200.rkvdec: shutdown device
[ 22.708131] mpp_jpgdec fded0000.jpegd: shutdown device
[ 22.708601] mpp-iep2 fdef0000.iep: shutdown device
[ 22.709036] mpp_vepu2 fdee0000.vepu: shutdown device
[ 22.709482] mpp_vdpu2 fdea0400.vdpu: shutdown device
[ 22.709963] mpp_rkvenc fdf40000.rkvenc: shutdown device
[ 22.710430] mpp_rkvenc fdf40000.rkvenc: shutdown success
[ 22.711249] rknand_shutdown…
[ 22.712204] reboot: Restarting system with command ‘bootloader’
DDR Version V1.11 20211103
In
ddrconfig:7
LPDDR4X, 324MHz
BW=32 Col=10 Bk=8 CS0 Row=16 CS1 Row=16 CS=2 Die BW=16 Size=4096MB
tdqss: cs0 dqs0: 48ps, dqs1: -72ps, dqs2: -72ps, dqs3: -168ps,
tdqss: cs1 dqs0: -24ps, dqs1: -96ps, dqs2: -72ps, dqs3: -168ps,

change to: 324MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x62

change to: 528MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 780MHz
PHY drv:clk:36,ca:36,DQ:29,odt:0
vrefinner:41%, vrefout:41%
dram drv:40,odt:0
clk skew:0x58

change to: 1560MHz(final freq)
PHY drv:clk:36,ca:36,DQ:29,odt:60
vrefinner:16%, vrefout:22%
dram drv:40,odt:80
vref_ca:00000071
clk skew:0x21
cs 0:
the read training result:
DQS0:0x32, DQS1:0x32, DQS2:0x36, DQS3:0x30,
min : 0xf 0xf 0x10 0xd 0x2 0x5 0x6 0x4 , 0xa 0xa 0x6 0x1 0xd 0xa 0xb 0x8 ,
0x13 0x12 0xe 0xe 0x3 0x1 0x4 0x6 , 0xf 0xa 0x8 0x1 0xf 0xf 0xd 0xe ,
mid :0x2b 0x2b 0x2c 0x29 0x1c 0x21 0x23 0x20 ,0x27 0x25 0x1f 0x1e 0x28 0x26 0x27 0x25 ,
0x2e 0x2e 0x2a 0x28 0x1e 0x1c 0x20 0x21 ,0x2b 0x26 0x25 0x1e 0x2b 0x2b 0x29 0x2b ,
max :0x48 0x47 0x49 0x46 0x37 0x3e 0x40 0x3c ,0x44 0x40 0x38 0x3c 0x44 0x43 0x44 0x43 ,
0x4a 0x4a 0x46 0x42 0x39 0x38 0x3c 0x3c ,0x47 0x43 0x42 0x3c 0x48 0x48 0x46 0x49 ,
range:0x39 0x38 0x39 0x39 0x35 0x39 0x3a 0x38 ,0x3a 0x36 0x32 0x3b 0x37 0x39 0x39 0x3b ,
0x37 0x38 0x38 0x34 0x36 0x37 0x38 0x36 ,0x38 0x39 0x3a 0x3b 0x39 0x39 0x39 0x3b ,
the write training result:
DQS0:0x2a, DQS1:0x13, DQS2:0x13, DQS3:0x0,
min :0x7b 0x82 0x82 0x7e 0x6f 0x75 0x75 0x76 0x76 ,0x61 0x60 0x59 0x5e 0x63 0x63 0x64 0x60 0x5c ,
0x67 0x68 0x61 0x60 0x57 0x58 0x58 0x5c 0x5d ,0x57 0x57 0x52 0x51 0x59 0x58 0x55 0x5a 0x52 ,
mid :0x97 0x9b 0x9c 0x96 0x87 0x8a 0x8e 0x8e 0x8d ,0x7b 0x7c 0x73 0x76 0x7d 0x7a 0x7d 0x7a 0x77 ,
0x83 0x83 0x7b 0x7b 0x72 0x70 0x72 0x75 0x77 ,0x6f 0x6f 0x6a 0x66 0x70 0x71 0x6d 0x74 0x69 ,
max :0xb3 0xb5 0xb6 0xaf 0xa0 0x9f 0xa8 0xa6 0xa4 ,0x96 0x98 0x8e 0x8e 0x97 0x91 0x96 0x94 0x92 ,
0xa0 0x9f 0x96 0x96 0x8d 0x89 0x8c 0x8f 0x91 ,0x88 0x87 0x83 0x7c 0x88 0x8a 0x85 0x8e 0x81 ,
range:0x38 0x33 0x34 0x31 0x31 0x2a 0x33 0x30 0x2e ,0x35 0x38 0x35 0x30 0x34 0x2e 0x32 0x34 0x36 ,
0x39 0x37 0x35 0x36 0x36 0x31 0x34 0x33 0x34 ,0x31 0x30 0x31 0x2b 0x2f 0x32 0x30 0x34 0x2f ,
cs 1:
the read training result:
DQS0:0x32, DQS1:0x33, DQS2:0x35, DQS3:0x2f,
min : 0xe 0xf 0x10 0xc 0x2 0x4 0x7 0x4 , 0xb 0xa 0x5 0x1 0xd 0x9 0xb 0x9 ,
0x12 0x11 0xc 0xc 0x3 0x1 0x4 0x7 , 0xb 0x9 0x8 0x1 0xf 0xf 0xc 0xe ,
mid :0x2a 0x2b 0x2d 0x29 0x1d 0x21 0x24 0x20 ,0x28 0x26 0x1f 0x1e 0x28 0x26 0x28 0x26 ,
0x2d 0x2d 0x27 0x26 0x1f 0x1d 0x1f 0x22 ,0x28 0x25 0x24 0x1e 0x2b 0x2b 0x28 0x2a ,
max :0x47 0x48 0x4a 0x46 0x38 0x3f 0x41 0x3c ,0x45 0x43 0x39 0x3c 0x44 0x43 0x45 0x43 ,
0x49 0x4a 0x43 0x41 0x3b 0x3a 0x3a 0x3d ,0x46 0x41 0x40 0x3c 0x47 0x47 0x44 0x47 ,
range:0x39 0x39 0x3a 0x3a 0x36 0x3b 0x3a 0x38 ,0x3a 0x39 0x34 0x3b 0x37 0x3a 0x3a 0x3a ,
0x37 0x39 0x37 0x35 0x38 0x39 0x36 0x36 ,0x3b 0x38 0x38 0x3b 0x38 0x38 0x38 0x39 ,
the write training result:
DQS0:0x2a, DQS1:0x13, DQS2:0x13, DQS3:0x0,
min :0x72 0x75 0x75 0x72 0x63 0x66 0x6a 0x69 0x69 ,0x5d 0x5d 0x56 0x58 0x5f 0x5d 0x5e 0x5d 0x56 ,
0x64 0x65 0x60 0x60 0x55 0x54 0x55 0x5b 0x5b ,0x52 0x52 0x4f 0x4b 0x55 0x55 0x52 0x58 0x4c ,
mid :0x8e 0x8f 0x8f 0x8d 0x7b 0x7f 0x84 0x82 0x82 ,0x77 0x78 0x70 0x70 0x77 0x75 0x77 0x75 0x71 ,
0x81 0x80 0x7b 0x7a 0x70 0x6e 0x6f 0x74 0x74 ,0x6b 0x6b 0x67 0x62 0x6e 0x6e 0x69 0x70 0x64 ,
max :0xaa 0xaa 0xaa 0xa8 0x93 0x99 0x9e 0x9c 0x9b ,0x92 0x94 0x8a 0x88 0x90 0x8e 0x90 0x8e 0x8c ,
0x9e 0x9c 0x96 0x95 0x8c 0x88 0x8a 0x8e 0x8e ,0x84 0x84 0x7f 0x79 0x87 0x88 0x81 0x88 0x7d ,
range:0x38 0x35 0x35 0x36 0x30 0x33 0x34 0x33 0x32 ,0x35 0x37 0x34 0x30 0x31 0x31 0x32 0x31 0x36 ,
0x3a 0x37 0x36 0x35 0x37 0x34 0x35 0x33 0x33 ,0x32 0x32 0x30 0x2e 0x32 0x33 0x2f 0x30 0x31 ,
CA Training result:
cs:0 min :0x51 0x4b 0x46 0x39 0x48 0x39 0x4f ,0x4f 0x42 0x44 0x3b 0x41 0x39 0x4b ,
cs:0 mid :0x8c 0x8c 0x80 0x7e 0x81 0x7b 0x7b ,0x8a 0x86 0x7e 0x7c 0x7c 0x7a 0x79 ,
cs:0 max :0xc7 0xce 0xba 0xc3 0xbb 0xbe 0xa8 ,0xc6 0xcb 0xb8 0xbd 0xb8 0xbc 0xa7 ,
cs:0 range:0x76 0x83 0x74 0x8a 0x73 0x85 0x59 ,0x77 0x89 0x74 0x82 0x77 0x83 0x5c ,
cs:1 min :0x4c 0x51 0x44 0x42 0x46 0x40 0x4e ,0x4f 0x4b 0x44 0x42 0x40 0x40 0x4f ,
cs:1 mid :0x8d 0x8d 0x81 0x80 0x83 0x7d 0x7e ,0x8c 0x87 0x81 0x7c 0x7e 0x7b 0x7e ,
cs:1 max :0xce 0xca 0xbf 0xbf 0xc0 0xbb 0xae ,0xca 0xc4 0xbe 0xb7 0xbc 0xb6 0xae ,
cs:1 range:0x82 0x79 0x7b 0x7d 0x7a 0x7b 0x60 ,0x7b 0x79 0x7a 0x75 0x7c 0x76 0x5f ,
out
U-Boot SPL board init
U-Boot SPL 2017.09-gaaca6ffec1-211203 #zzz (Dec 03 2021 - 18:42:16)
unknown raw ID phN
unrecognized JEDEC id bytes: 00, 00, 00
Trying to boot from MMC2
SPL: A/B-slot: _a, successful: 0, tries-remain: 7
Trying fit image at 0x4000 sector

Verified-boot: 0

Checking atf-1 0x00040000 … sha256(fe4f274c06…) + OK

Checking uboot 0x00a00000 … sha256(f09b36b3b3…) + OK

Checking fdt 0x00b21f78 … sha256(9679fe2a45…) + OK

Checking atf-2 0x00068000 … sha256(8d44036095…) + OK

Checking atf-3 0xfdcd0000 … sha256(e410275b51…) + OK

Checking atf-4 0xfdcc9000 … sha256(990c53fc01…) + OK

Checking atf-5 0x00066000 … sha256(315a4195a9…) + OK

Checking optee 0x08400000 … sha256(08e1fd41e1…) + OK

Jumping to U-Boot(0x00a00000) via ARM Trusted Firmware(0x00040000)
Total: 261.309 ms

INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-181-gc9a647cae:cl
NOTICE: BL31: Built : 10:55:41, Oct 18 2021
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: pmu v1 is valid
INFO: dfs DDR fsp_param[0].freq_mhz= 1560MHz
INFO: dfs DDR fsp_param[1].freq_mhz= 324MHz
INFO: dfs DDR fsp_param[2].freq_mhz= 528MHz
INFO: dfs DDR fsp_param[3].freq_mhz= 780MHz
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 0
INFO: BL31: Initializing runtime services
INFO: BL31: Initializing BL32
I/TC:
I/TC: OP-TEE version: 3.13.0-595-gf5add58be #hisping.lin (gcc version 10.2.1 20201103 (GNU Toolchain for the A-profile Architecture 10.2-2020.11 (arm-10.16)
)) #26 Tue Dec 21 15:50:44 CST 2021 aarch64
I/TC: Primary CPU initializing
I/TC: Primary CPU switching to normal world boot
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9

U-Boot 2017.09-g6d7a3de-220124 # (Apr 08 2022 - 12:11:06 +0800), Build: jenkins-rock-android-11-45

Model: Rockchip RK3568 Evaluation Board
PreSerial: 2, raw, 0xfe660000
DRAM: 4 GiB
Sysmem: init
Relocation Offset: ed357000
Relocation fdt: eb9f8c48 - eb9fecd0
CR: M/C/I
Using default environment

no mmc device at slot 1
dwmmc@fe2b0000: 1 (SD), dwmmc@fe2c0000: 2, sdhci@fe310000: 0
Bootdev(atags): mmc 1
MMC1: Legacy, 52Mhz
PartType: EFI
DM: v1
boot mode: bootloader
Android 11.0, Build 2021.8, v2
Found DTB in boot part
DTB: rk-kernel.dtb
HASH(s): OK
ANDROID: fdt overlay OK
I2c0 speed: 100000Hz
vsel-gpios- not found! Error: -2
vdd_cpu init 900000 uV
PMIC: RK8090 (on=0x40, off=0x00)
vdd_logic init 900000 uV
vdd_gpu init 900000 uV
vdd_npu init 900000 uV
io-domain: OK
Model: Radxa ROCK 3 Model A
enter fastboot!
Rockchip UBOOT DRM driver version: v1.0.1
VOP have 1 active VP
vp0 have layer nr:6[0 2 4 1 3 5 ], primary plane: 4
vp1 have layer nr:0[], primary plane: 0
vp2 have layer nr:0[], primary plane: 0
disp info 0, type:11, id:0
hdmi@fe0a0000 disconnected
CLK: (sync kernel. arm: enter 816000 KHz, init 816000 KHz, kernel 0N/A)
apll 1416000 KHz
dpll 780000 KHz
gpll 1188000 KHz
cpll 1000000 KHz
npll 1200000 KHz
vpll 24000 KHz
hpll 24000 KHz
ppll 200000 KHz
armclk 1416000 KHz
aclk_bus 150000 KHz
pclk_bus 100000 KHz
aclk_top_high 500000 KHz
aclk_top_low 400000 KHz
hclk_top 150000 KHz
pclk_top 100000 KHz
aclk_perimid 300000 KHz
hclk_perimid 150000 KHz
pclk_pmu 100000 KHz
Net: eth1: ethernet@fe010000
MMC error: The cmd index is 1, ret is -110…
Card did not respond to voltage select!
mmc_init: -95, time 21
Enter fastboot…OK

unfortunately I can’t get ADB to work either

:frowning_face:

[ 1512.679138] android_work: did not send uevent (0 0 (null))
[ 1512.777619] read descriptors
[ 1512.777720] read strings
[ 1513.799593] dwc3 fcc00000.dwc3: failed to enable ep0out

Can someone help me?

Try to do something different:

  1. flash sd card with latest radxa image,
  2. compile rkdevtools (recently it has problem that it’s described on rk github, easy fix)
  3. connect one rock 3A board (with maskroom jumper) with another - it should detect it without any problems
    if this fails then replace cables/chargers/jumpers - something is faulty, maybe Your jumper?
    Usb-A/Usb-A cable is not that popular, there are some only for charging, but it’s quite easy to find usb-a/usb-c and adapter to usb-a that works.

Few days ago I tested this setup and I’m sure that it works (I tested that on few Rock3A versions.

thanks for answering.

I tried compiling again. I connected the rock 3A with several jumpers and cable I tested it with the usb otg switch but I always have the same behavior both in linux windows and mac.

I can’t figure out what the problem is, try looking at the rock 3A serial as well.

Do you have any tips on how I can debug the problem?

gratitude for answering