[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-arm
Subject:    Firefly rk3399 emmc problem
From:       Chris Collinson <chriscollinson () toughnode ! com>
Date:       2018-01-19 0:47:38
Message-ID: 1516322858.494582.1240483168.656263C4 () webmail ! messagingengine ! com
[Download RAW message or body]

Hi all

Any assistance most welcome.  Otherwise sorry for the noise.

I am following the instructions here \
https://github.com/u-boot/u-boot/tree/master/board/rockchip/evb_rk3399 to flash \
U-Boot onto my Firefly rk3399 with the intention of installing OpenBSD from micro SD \
on the emmc.  I am trying Option 1 (U-Boot SPL).  Because I can't locate a \
RK3399TRUST.ini file, the Option 2 (Rockchip miniloader) approach seems a \
non-starter.  I wasn't successful in doing the necessary compilation steps on my \
OpenBSD box so had to use Arch Linux. 

I used these instructions to try to enter maskrom mode: \
http://wiki.t-firefly.com/index.php/Firefly-RK3399/MaskRom/en  There was a \
disconcerting *Phsst!* sound like a small static discharge when I cycled the power on \
the board whilst shorting the relevant pins.  Nevertheless rkdeveloptool (and \
AndroidTool on Windows) seem to think the board is in maskrom mode.  All that happens \
when I cycle the power is that a red LED lights up in the optical port.

This is what I get when I follow the U-Boot README (Option 1):

[chris@n55sf evb_rk3399]$ sudo rkdeveloptool db \
rkbin/rk33/rk3399_loader_v1.08.106.bin Downloading bootloader succeeded.
[chris@n55sf evb_rk3399]$ rkdeveloptool wl 64 u-boot/idbspl.img
Write LBA quit, creating comm object failed!    [DOH!: forgot sudo!]
[chris@n55sf evb_rk3399]$ sudo rkdeveloptool wl 64 u-boot/idbspl.img
Write LBA from file (100%)
[chris@n55sf evb_rk3399]$ sudo rkdeveloptool wl 0x4000 u-boot/u-boot.itb
Write LBA from file (100%)
[chris@n55sf evb_rk3399]$ sudo rkdeveloptool rd
Reset Device OK.

However, on the serial console on my OpenBSD box I get this in response to the first \
command above (and nothing to the others).

DDR Version 1.08 20170320
In
Channel 0: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: DDR3, 800MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
OUT
usb boot ver:2017-03-07
ChipType = 0x10
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x48001
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x48001
mmc: ERROR: Card did not respond to voltage select!
emmc reinit
mmc: ERROR: SDHCI ERR:cmd:0x102,stat:0x48001
mmc: ERROR: Card did not respond to voltage select!
SdmmcInit=2 1
UsbHook 457374
powerOn 457495

Cycling the power doesn't seem to do much.  I get nothing over on the serial console.

I don't know whether I've fried the hardware somehow when trying to get the board \
into maskrom mode or whether there is some more hopeful explanation/workaround -- \
perhaps I could boot from an SD card or the SSD I've plugged into the add-on SATA \
adapter board? 

Thanks

Chris


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic