10-29-2018, 11:08 AM
Hello everyone.
I have a trouble flashing uboot to my RockPro64 4GB variant. I am trying to use rock64_write_spi_flash.sh script, but nothing is flashing.
I made all steps according to wiki, booted from SD card, used latest ubuntu image, but everything I get is following error:
I have even tried steps written here: https://forum.pine64.org/showthread.php?...e#pid40677 (,only changed the overlay address to "ff1d0000" to fit to RockPro64 dts).
I never flashed anything to SPI before, so it can't be messed up. I tried the SD card method with only ayufan uboot image and this don't work either. Nothing is written to it..
Output of "mtdinfo":
Output of dmesg:
Thanks for any suggestions. This is really driving me nuts.. Any help will be appreciated.. :-)
I have a trouble flashing uboot to my RockPro64 4GB variant. I am trying to use rock64_write_spi_flash.sh script, but nothing is flashing.
I made all steps according to wiki, booted from SD card, used latest ubuntu image, but everything I get is following error:
Code:
rock64@rockpro64:/dev$ sudo su
[sudo] password for rock64:
root@rockpro64:/dev# rock64_write_spi_flash.sh
Doing this will overwrite data stored on SPI Flash
and it will require that you use eMMC or SD
as your boot device.
Type YES to continue or Ctrl-C to abort.
YES
Writing /dev/mtd0 with content of /usr/lib/u-boot-rockpro64/rkspi_loader.img
Erasing 4 Kibyte @ 0 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 0 (mtd0)
error 110 (Connection timed out)
flash_erase: error!: /dev/mtd0: MTD Erase failure
error 110 (Connection timed out)
Erasing 4 Kibyte @ 1000 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 1 (mtd0)
error 110 (Connection timed out)
flash_erase: error!: /dev/mtd0: MTD Erase failure
error 110 (Connection timed out)
Erasing 4 Kibyte @ 2000 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 2 (mtd0)
error 110 (Connection timed out)
flash_erase: error!: /dev/mtd0: MTD Erase failure
error 110 (Connection timed out)
Erasing 4 Kibyte @ 3000 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 3 (mtd0)
error 110 (Connection timed out)
flash_erase: error!: /dev/mtd0: MTD Erase failure
error 110 (Connection timed out)
Erasing 4 Kibyte @ 4000 -- 0 % complete libmtd: error!: MEMERASE64 ioctl failed for eraseblock 4 (mtd0)
error 110 (Connection timed out)
flash_erase: error!: /dev/mtd0: MTD Erase failure
error 110 (Connection timed out)
Erasing 4 Kibyte @ 5000 -- 0 % complete ^C^C
I have even tried steps written here: https://forum.pine64.org/showthread.php?...e#pid40677 (,only changed the overlay address to "ff1d0000" to fit to RockPro64 dts).
I never flashed anything to SPI before, so it can't be messed up. I tried the SD card method with only ayufan uboot image and this don't work either. Nothing is written to it..
Output of "mtdinfo":
Code:
root@rockpro64:/dev# mtdinfo
Count of MTD devices: 3
Present MTD devices: mtd0, mtd1, mtd2
Sysfs interface supported: yes
root@rockpro64:/dev# mtdinfo /dev/mtd0
mtd0
Name: loader
Type: nor
Eraseblock size: 4096 bytes, 4.0 KiB
Amount of eraseblocks: 1016 (4161536 bytes, 4.0 MiB)
Minimum input/output unit size: 1 byte
Sub-page size: 1 byte
Character device major/minor: 90:0
Bad blocks are allowed: false
Device is writable: true
root@rockpro64:/dev# mtdinfo /dev/mtd1
mtd1
Name: env
Type: nor
Eraseblock size: 4096 bytes, 4.0 KiB
Amount of eraseblocks: 8 (32768 bytes, 32.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size: 1 byte
Character device major/minor: 90:2
Bad blocks are allowed: false
Device is writable: true
root@rockpro64:/dev# mtdinfo /dev/mtd2
mtd2
Name: vendor
Type: nor
Eraseblock size: 4096 bytes, 4.0 KiB
Amount of eraseblocks: 64 (262144 bytes, 256.0 KiB)
Minimum input/output unit size: 1 byte
Sub-page size: 1 byte
Character device major/minor: 90:4
Bad blocks are allowed: false
Device is writable: true
Output of dmesg:
Code:
root@rockpro64:/dev# dmesg | grep spi
[ 2.015555] rockchip-spi ff1d0000.spi: Failed to request TX DMA channel
[ 2.016160] rockchip-spi ff1d0000.spi: Failed to request RX DMA channel
[ 2.016778] rockchip-spi ff1d0000.spi: no high_speed pinctrl state
[ 2.017904] m25p80 spi32766.0: gd25q128 (16384 Kbytes)
[ 2.018394] 3 ofpart partitions found on MTD device spi32766.0
[ 2.018924] Creating 3 MTD partitions on "spi32766.0":
[ 164.537097] m25p80 spi32766.0: flash operation timed out
[ 204.537255] m25p80 spi32766.0: flash operation timed out
[ 244.537347] m25p80 spi32766.0: flash operation timed out
[ 284.537402] m25p80 spi32766.0: flash operation timed out
[ 324.537509] m25p80 spi32766.0: flash operation timed out
[ 364.537587] m25p80 spi32766.0: flash operation timed out
Thanks for any suggestions. This is really driving me nuts.. Any help will be appreciated.. :-)