[SOLVED] stuck at emmc
#1
Hello all,

ill try tell my problem.

I used u-boot-flash-spi-rock64.img.xz on microsd to flash spi and be able to boot from emmc. 
I used android tv as my emc image.
I played with it for some time ( worked okish btw) 
ANd now im lost.
I cant find my emmc ( I lost it) ( yeah blame me Tongue )
how will i be able to boot from micro sd . 
As soon as i turn on power all 3 leds all are lit bright and are not doing anything. neither will he boot from usb or from microsd. ( tried several sd cards and boot imgs)

Any help is appreciated.

Cheers.
Dre
#2
(04-28-2018, 09:46 AM)dr_dre Wrote: Hello all,

ill try tell my problem.

I used u-boot-flash-spi-rock64.img.xz on microsd to flash spi and be able to boot from emmc. 
I used android tv as my emc image.
I played with it for some time ( worked okish btw) 
ANd now im lost.
I cant find my emmc ( I lost it) ( yeah blame me Tongue )
how will i be able to boot from micro sd . 
As soon as i turn on power all 3 leds all are lit bright and are not doing anything. neither will he boot from usb or from microsd. ( tried several sd cards and boot imgs)

Any help is appreciated.

Cheers.
Dre

follow this link to erase your SPI Flash: http://wiki.pine64.org/index.php/NOOB#Er...riting_SPI

 
#3
(04-28-2018, 02:44 PM)vincent37 Wrote: follow this link to erase your SPI Flash: http://wiki.pine64.org/index.php/NOOB#Er...riting_SPI

 
Thnx for the Reply vincent.
But as I said booting from sd isnt possible anymore.

Any other ideas besides creating a ticket at Pine-support ?
Dre
#4
(04-29-2018, 01:17 AM)dr_dre Wrote: Any other ideas besides creating a ticket at Pine-support ?

There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row
#5
(04-29-2018, 03:07 AM)evilbunny Wrote: There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row

(Yes, I'm stalking you, you rascally wabbit!)

Yup, it's the two pin header near the white/red leds and pwr/reset buttons, marked "eMMC en/dis"(able)... you short the two pins to disable the eMMC... or just unplug the eMMC from the board (all the jumper does is stop the eMMC clock by pulling to GND).

What I'm not clear on is why you needed to flash the SPI in order boot from eMMC... as the rock64 boot sequence is SPI -> eMMC -> SD, so if there was nothing on the SPI (i.e. as shipped from factory), it will then try the eMMC (if installed, and the disable pins not jumpered), and then the SD card...
#6
(04-29-2018, 03:30 AM)pfeerick Wrote:
(04-29-2018, 03:07 AM)evilbunny Wrote: There is pins you can short to disable SPI Flash, according to Lukasz it's the last two pins at the bottom row

(Yes, I'm stalking you, you rascally wabbit!)

Yup, it's the two pin header near the white/red leds and pwr/reset buttons, marked "eMMC en/dis"(able)... you short the two pins to disable the eMMC... or just unplug the eMMC from the board (all the jumper does is stop the eMMC clock by pulling to GND).

What I'm not clear on is why you needed to flash the SPI in order boot from eMMC... as the rock64 boot sequence is SPI -> eMMC -> SD, so if there was nothing on the SPI (i.e. as shipped from factory), it will then try the eMMC (if installed, and the disable pins not jumpered), and then the SD card...

Ok what should be normal behavior from rock64 board after i flashed spi with u-boot-flash-spi-rock64.img and i dont have emmc anymore. Problem is i get 3 bright leds  immediately after power on. no life can be seen ( no ethernet leds no nothing.) The shorten of the spi flash did not help either. My next move would be to get serial working to see any kind of messages.

or am i moving in the wrong direction. 

Cheers
Dre
#7
is there any way to write spi to factory settings again ( using uart or so) this is the output from serial
------------

U-Boot SPL 2017.09-ga0a2b48 (Mar 29 2018 - 21:57:02)
setup_ddr_param 1
booted from SPI flash
Trying to boot from SPI
"Synchronous Abort" handler, esr 0x02000000
ELR: 10000
LR: 1890
x 0: 0000000000400000 x 1: 0000000000000000
x 2: 0000000000010000 x 3: 0000000000000180
x 4: 0000000000000009 x 5: 0000000000000073
x 6: 00000000001fff86 x 7: 0000000000000003
x 8: 0000000000000340 x 9: 0000000013d92d40
x10: 00000000005ffc0c x11: 00000000001ffb80
x12: 000000000000030d x13: 0000000000000300
x14: 00000000005ffc5c x15: 00000000001ffb80
x16: 0000000000000000 x17: 0000000000000000
x18: 00000000005ffea0 x19: 000000000000d498
x20: 000000000000d480 x21: 0000000000000000
x22: 00000000005ffe70 x23: 00000000005ffe58
x24: 000000000000b50b x25: 000000000000b4f3
x26: 000000000000d000 x27: 00000000deadbeef
x28: 0000000000000430 x29: 00000000005ffde0

Resetting CPU ...

DDR version 1.08 20170628
In
SRX
LPDDR3
333MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-ga0a2b48 (Mar 29 2018 - 21:57:02)
setup_ddr_param 1
booted from SPI flash
Trying to boot from SPI

----------
#8
ok that worked fine.

shortened 20 and 21 just to boot ( remove after several seconds)

DDR version 1.08 20170628
In
LPDDR3
333MHz
Bus Width=32 Col=11 Bank=8 Row=15/15 CS=2 Die Bus-Width=32 Size=4096MB
ddrconfig:7
OUT

U-Boot SPL 2017.09-ga0a2b48 (Apr 27 2018 - 18:00:06)
setup_ddr_param 1
booted from SD
Trying to boot from MMC2
NOTICE: BL31: v1.3(debug):9d3f591
NOTICE: BL31: Built : 14:39:02, Jan 17 2018
NOTICE: BL31:Rockchip release version: v1.3
INFO: ARM GICv2 driver initialized
INFO: Using opteed sec cpu_context!
INFO: boot cpu mask: 1
INFO: plat_rockchip_pmu_init: pd status 0xe
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0x200000
INFO: SPSR = 0x3c9


U-Boot 2017.09-ga0a2b48 (Apr 27 2018 - 18:00:21 +0000), Build: jenkins-linux-build-rock-64-211

Model: Pine64 Rock64
DRAM: 4 GiB
MMC: rksdmmc@ff520000: 0, rksdmmc@ff500000: 1
*** Warning - bad CRC, using default environment

In: serial@ff130000
Out: serial@ff130000
Err: serial@ff130000
Model: Pine64 Rock64
misc_init_r
cpuid=55524b50303930303500000000122119
serial=95ac81d6aa1d2bf
Net: eth0: ethernet@ff540000
Hit any key to stop autoboot: 0
Card did not respond to voltage select!
mmc_init: -95, time 10
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:6...
Found U-Boot script /boot.scr
reading /boot.scr
449 bytes read in 4 ms (109.4 KiB/s)
## Executing script at 00500000
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB

MMC read: dev # 1, block # 64, count 8000 ... 8000 blocks read: OK
SF: 4096000 bytes @ 0x8000 Erased: OK
device 0 offset 0x8000, size 0x3e8000
SF: 4096000 bytes @ 0x8000 Written: OK

---

ANd it boots from usb as well as well as sd Smile

thnx for the direction you pointed me to Smile

Dre
#9
Hello, nice that it works. Can you tell me which adapter you have used to read the rock serially?
#10
yes i used a FTDI232 to do the job .

https://www.aliexpress.com/item/Free-Shi...0.0.ITatop

Smile
I used this thread to help me with the pin connections.
https://forum.pine64.org/showthread.php?tid=5029
@MarkHaysHarris777 for the win Smile (https://forum.pine64.org/member.php?acti...e&uid=1323)


Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 1,395 09-18-2022, 02:29 PM
Last Post: mexicanflyer
Thumbs Up USB3.0 to eMMC Adapter... MattDralle 2 3,669 10-28-2021, 12:20 PM
Last Post: tllim
  Pine Rock64 eMMC lifespan moonspell79 3 4,325 08-19-2021, 06:46 PM
Last Post: bcnaz
  Rock64 No Audio - Solved wbecks 12 33,784 08-13-2021, 01:23 PM
Last Post: blakeadam
  Segfault with GCC in Armbian [Solved]. ejolson 13 20,906 07-07-2021, 10:16 AM
Last Post: stelabentley
  Receiving errors about eMMC (?) acasta 11 18,125 09-24-2019, 10:26 PM
Last Post: ridgarou
  USB -> eMMC is now available. Luke 15 32,955 07-27-2019, 04:27 PM
Last Post: tllim
Brick How to Write an Image to the eMMC Module Tutorial MarkHaysHarris777 55 120,115 02-06-2019, 04:02 PM
Last Post: tllim
  flash image to sd/emmc through ethernet LMM 0 2,512 02-04-2019, 07:36 AM
Last Post: LMM
  Card emmc Auggoncalves 2 4,117 06-25-2018, 03:20 AM
Last Post: Auggoncalves

Forum Jump:


Users browsing this thread: 2 Guest(s)