Rock64 4Gb variant bricked
#18
(09-08-2018, 05:28 PM)t4_4t Wrote: OK.
Currently, I will proceed with the premise that you are logged in and able to operate.

To clarify the story, The "OS-Image" to be used is
limited to "stretch-minimal-rock64-0.7.9-1067-arm64.img.xz", that is presented earlier.

---
The following explains flash erasing and writing concretely
After logging in, unclamp Pin 21 and Pin 20.
All operations are done with root privilege.

The time required for work is,
"Erase" about 15 seconds, and "Write" about 10 seconds.


"Erase"
Code:
# ls /dev/mtd*
ls: cannot access '/dev/mtd*': No such file or directory

# enable_dtoverlay mtd spi@ff190000 disabled
 ....(message out)

# enable_dtoverlay mtd spi@ff190000 okay
 ....(message out)

# ls /dev/mt*
/dev/mtd0  /dev/mtd0ro  /dev/mtdblock0

# flash_erase /dev/mtd0 0 0


"Writing"
Code:
# dd of=/dev/mtd0 if=./xxx.img bs=4K


*If xxx.img is necessary, pick it directly from u-boot-rockchip-rock64-xxx.deb of the following url and use it.
https://github.com/ayufan-rock64/linux-u-boot/releases
 Example)
 "u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1033-gdf02018479.deb"

"Erase & Writing"
Code:
# mkdir u-boot; cd u-boot;
# wget https://github.com/ayufan-rock64/linux-u-boot/releases/download/2017.09-rockchip-ayufan-1033-gdf02018479/u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1033-gdf02018479.deb

# dpkg -x u-boot-rockchip-rock64-2017.09-rockchip-ayufan-1033-gdf02018479.deb ./tmp
# find ./tmp -name "*.img"
./tmp/usr/lib/u-boot-rock64/rksd_loader.img

# flash_erase /dev/mtd0 0 0
# dd of=/dev/mtd0 if=./tmp/usr/lib/u-boot-rock64/rksd_loader.img bs=4K

good luck.

Sorry, it was a mistake again.
x "stretch-minimal-rock64-0.7.9-1067-arm64.img.xz" -> o "bionic-minimal-rock64-0.7.9-1067-arm64.img.xz"

Perfect !!! 

After enabling the device tree overlay and re-flashing the SPI area everything works fine again !!!

Thank you so much for your time and effort !!!

Cheers


Messages In This Thread
Rock64 4Gb variant bricked - by magare - 09-06-2018, 03:29 AM
RE: Rock64 4Gb variant bricked - by dkryder - 09-06-2018, 10:27 AM
RE: Rock64 4Gb variant bricked - by magare - 09-06-2018, 04:20 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-06-2018, 07:57 PM
RE: Rock64 4Gb variant bricked - by magare - 09-06-2018, 08:10 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-07-2018, 05:27 AM
RE: Rock64 4Gb variant bricked - by magare - 09-07-2018, 04:05 PM
RE: Rock64 4Gb variant bricked - by z4v4l - 09-07-2018, 06:39 AM
RE: Rock64 4Gb variant bricked - by z4v4l - 09-07-2018, 05:02 PM
RE: Rock64 4Gb variant bricked - by magare - 09-07-2018, 05:15 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-07-2018, 05:08 PM
RE: Rock64 4Gb variant bricked - by magare - 09-07-2018, 09:39 PM
RE: Rock64 4Gb variant bricked - by magare - 09-07-2018, 10:40 PM
RE: Rock64 4Gb variant bricked - by z4v4l - 09-07-2018, 05:51 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-08-2018, 03:19 PM
RE: Rock64 4Gb variant bricked - by magare - 09-08-2018, 03:37 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-08-2018, 05:28 PM
RE: Rock64 4Gb variant bricked - by magare - 09-08-2018, 08:12 PM
RE: Rock64 4Gb variant bricked - by t4_4t - 09-08-2018, 10:25 PM
RE: Rock64 4Gb variant bricked - by magare - 09-08-2018, 11:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 No Audio @ Debian 12 dmitrymyadzelets 2 1,105 04-08-2024, 06:47 AM
Last Post: dmitrymyadzelets
  OpenWRT on the Rock64 CanadianBacon 14 10,763 04-03-2024, 08:48 AM
Last Post: helpmerock
  Rock64 bricked shawwwn 7 7,014 03-17-2024, 12:22 PM
Last Post: dmitrymyadzelets
  Rock64 won't boot luminosity7 10 6,012 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 741 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  How well does Rock64 deal with HDR and Atmos on Kodi? drvlikhell 3 2,706 04-29-2023, 04:24 AM
Last Post: newestssd
  Rock64 board not working, no HDMI no Ethernet. EDited 3 4,284 01-17-2023, 02:31 PM
Last Post: Flagtrax
  ROCK64 v3 can it boot from USB? Tsagualsa 4 2,963 11-29-2022, 11:31 AM
Last Post: Macgyver
  rock64 v3 spiflash Macgyver 0 1,053 11-28-2022, 02:18 PM
Last Post: Macgyver
  my rock64 dosen't work rookie_267 0 1,247 10-07-2022, 07:50 PM
Last Post: rookie_267

Forum Jump:


Users browsing this thread: 7 Guest(s)