macOS howto

tmm1

Member
install rkdeveloptool using this guide: https://github.com/96boards/documen...installation/linux-mac-rkdeveloptool.md#macos

hold reset pin while attaching USB to mac, wait a few seconds, then let go of reset pin

check `lsusb` and you should see rockchip attached in usb gadget mode:

Code:
$ lsusb
Bus 004 Device 004: ID 2207:350a Fuzhou Rockchip Electronics Co., Ltd. USB download gadget  Serial: EA4R1B8R7J

and `rkdeveloptool ld` will show the device:

Code:
$ rkdeveloptool ld
DevNo=1    Vid=0x2207,Pid=0x350a,LocationID=401    Loader

$ rkdeveloptool ppt
**********Partition Info(GPT)**********
NO  LBA       Name
00  00002000  security
01  00004000  uboot
02  00006000  trust
03  00008000  misc
04  0000A000  dtbo
05  0000C000  vbmeta
06  0000C800  boot
07  00028036  recovery
08  00058036  backup
09  00118036  cache
10  001D8036  metadata
11  001E0036  baseparameter
12  001E0836  logo
13  001E8836  super
14  007FC836  userdata
 
Last edited:

tmm1

Member
After many attempts I could not make things work on macOS.

I tried for example `rkdeveloptool wl 100 wipe_part` and `rkdeveloptool wl 320 wipe_part`. (The arguments are all in sectors, so 100 * 512 = 0xc800 for boot).

In the end the only reliable way I was able to overwrite boot to force SD card is via Windows AndroidTool
 

tmm1

Member
Okay I figured it out.

1. Save original boot/recovery headers

Code:
./rkdeveloptool rl 0x0c800 1 boot.orig
./rkdeveloptool rl 0x28036 1 recovery.orig

2. Overwrite with zeros to allow SD booting

Code:
dd if=/dev/zero of=wipe bs=512 count=1
./rkdeveloptool wlx boot     wipe
./rkdeveloptool wlx recovery wipe

3. Restore eMMC boot

Code:
./rkdeveloptool wlx boot     boot.orig
./rkdeveloptool wlx recovery recovery.orig
 
Last edited:
Top