can't install to eMMC on PINE64-ROCKPro64

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

can't install to eMMC on PINE64-ROCKPro64

Jiri Navratil
Hello,

I'm trying to install OpenBSD arm64 on ROCKPro64 4GB Single Board.
Firstly 6.6 stable and later also snapshot from today.

I firstly followed this post https://github.com/krjdev/rock64_openbsd
to be able boot OpenBSD from SD card.

Things look ok, but during installation, I was not able to write to eMMC
(bought together with board, eMMC includes Android and I was able to
boot to it before stating migration to OpenBSD)

I didn't found a HW jump for RW/RO mode for eMMC.

I noticed different number of disks in different stages.

Red led is on, but i didn't found why. I checked with IRC channel on
PINE64, but no ideas there about RO eMMC and red led on.

Any idea, how to made eMMC writable? My intent is to install OpenBSD to
eMMC and use it from there.

Please _reply to all_ as I'm not subscribed to this list. Thank you for
any ideas and recommendations.

Jiří


$ cu -d -l /dev/cuaU0 -s 1500000
Connected to /dev/cuaU0 (speed 1500000)

# dmesg
OpenBSD 6.6 (RAMDISK) #257: Sat Oct 12 19:06:25 MDT 2019
    [hidden email]:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem  = 4093161472 (3903MB)
avail mem = 3891376128 (3711MB)
mainbus0 at root: Pine64 RockPro64
cpu0 at mainbus0 mpidr 0: ARM Cortex-A53 r0p4
cpu0: 32KB 64b/line 2-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 512KB 64b/line 16-way L2 cache
efi0 at mainbus0: UEFI 2.0.5
efi0: Das U-boot rev 0x0
psci0 at mainbus0: PSCI 1.0
agintc0 at mainbus0 sec shift 3:4 nirq 288 nredist 6: "interrupt-controller"
agintcmsi0 at agintc0
syscon0 at mainbus0: "qos"
syscon1 at mainbus0: "qos"
syscon2 at mainbus0: "qos"
syscon3 at mainbus0: "qos"
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "power-management"
"power-controller" at syscon25 not configured
syscon26 at mainbus0: "syscon"
"io-domains" at syscon26 not configured
syscon27 at mainbus0: "syscon"
syscon28 at mainbus0: "syscon"
rkclock0 at mainbus0
rkclock1 at mainbus0
syscon29 at mainbus0: "syscon"
"io-domains" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"usb2-phy" at syscon29 not configured
"phy" at syscon29 not configured
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
"pmu_a53" at mainbus0 not configured
"pmu_a72" at mainbus0 not configured
agtimer0 at mainbus0: tick rate 24000 KHz
"xin24m" at mainbus0 not configured
simplebus0 at mainbus0: "amba"
"dma-controller" at simplebus0 not configured
"dma-controller" at simplebus0 not configured
dwge0 at mainbus0: address a6:63:b8:9a:57:7c
rgephy0 at dwge0 phy 0: RTL8169S/8110S/8211 PHY, rev. 6
sdhc0 at mainbus0
sdhc0: SDHC 3.0, 200 MHz base clock
sdmmc0 at sdhc0: 8-bit, sd high-speed, mmc high-speed, dma
dwmmc0 at mainbus0: 50 MHz base clock
sdmmc1 at dwmmc0: 4-bit, dma
ehci0 at mainbus0
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci0 at mainbus0: version 1.0
ehci1 at mainbus0
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 configuration 1 interface 0 "Generic EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at mainbus0: version 1.0
"usb" at mainbus0 not configured
"usb" at mainbus0 not configured
"saradc" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
rkiic1 at mainbus0
iic1 at rkiic1
com0 at mainbus0: ns16550, no working fifo
com1 at mainbus0: ns16550, no working fifo
com1: console
"spi" at mainbus0 not configured
"thermal-zones" at mainbus0 not configured
"tsadc" at mainbus0 not configured
rkiic2 at mainbus0
iic2 at rkiic2
"pwm" at mainbus0 not configured
"pwm" at mainbus0 not configured
"dmc" at mainbus0 not configured
"efuse" at mainbus0 not configured
"watchdog" at mainbus0 not configured
"rktimer" at mainbus0 not configured
rkiic3 at mainbus0
iic3 at rkiic3
rkpmic0 at iic3 addr 0x1b: RK808
"backlight" at mainbus0 not configured
"leds" at mainbus0 not configured
"external-gmac-clock" at mainbus0 not configured
"sdio-pwrseq" at mainbus0 not configured
"vcc1v8-s0" at mainbus0 not configured
"dc-12v" at mainbus0 not configured
"vcc-sys" at mainbus0 not configured
"vcc3v3-sys" at mainbus0 not configured
"vcc5v0-host-regulator" at mainbus0 not configured
"vcc5v0-typec0-en" at mainbus0 not configured
"vcc-phy-regulator" at mainbus0 not configured
"vdd-log" at mainbus0 not configured
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, USD, 0000> removable
sd0: 3840MB, 512 bytes/sector, 7864320 sectors
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <Sandisk, DA4128, 0000> removable
sd1: 119276MB, 512 bytes/sector, 244277248 sectors
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!


# cd /dev
# sh MAKEDEV sd0                                                              
# sh MAKEDEV sd1
# fdisk sd0
Disk: sd0       geometry: 489/255/63 [7864320 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      2  10   9 -      2 140  10 [       32768:        8192 ] FAT32L      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: A6      2 140  11 -      4  52  48 [       40960:       26624 ] OpenBSD    
# fdisk sd1
Disk: sd1       geometry: 15205/255/63 [244277248 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 1: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 2: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 3: FF 267349  89   4 -  46077  37  38 [  4294967295:   740229375 ] Xenix BBT  
# fdisk -i sd1
Do you wish to write new MBR and partition table? [n] y
Writing MBR at offset 0.
# fdisk sd1    
Disk: sd1       geometry: 15205/255/63 [244277248 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 1: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 2: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 3: FF 267349  89   4 -  46077  37  38 [  4294967295:   740229375 ] Xenix BBT  


# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: Sandisk DA4128
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 15205
total sectors: 244277248
boundstart: 0
boundend: 244277248
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  c:        244277248                0  unused                    




from boot
DDR Version 1.19 20190305

U-Boot SPL board init

U-Boot SPL 2017.09-rockchip-ayufan-1065-g95f6152134 (Aug 26 2019 - 12:41:15)
booted from SPI flash
Trying to boot from SPI
NOTICE:  BL31: v1.3(debug):370ab80
NOTICE:  BL31: Built : 09:23:41, Mar  4 2019
NOTICE:  BL31: Rockchip release version: v1.1
INFO:    GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3
INFO:    Using opteed sec cpu_context!
INFO:    boot cpu mask: 0
INFO:    plat_rockchip_pmu_init(1181): pd status 3e
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-rockchip-ayufan-1065-g95f6152134 (Aug 26 2019 - 12:41:34 +0000)

Model: Pine64 RockPro64
DRAM:  3.9 GiB
DCDC_REG1@vdd_center: ; enabling
DCDC_REG2@vdd_cpu_l: ; enabling
DCDC_REG3@vcc_ddr: ; enabling (ret: -38)
DCDC_REG4@vcc_1v8: set 1800000 uV; enabling
LDO_REG1@vcc1v8_dvp: set 1800000 uV; enabling
LDO_REG2@vcc3v0_touch: set 3000000 uV; enabling
LDO_REG3@vcc1v8_pmu: set 1800000 uV; enabling
LDO_REG4@vcc_sd: set 3300000 uV; enabling
LDO_REG5@vcca3v0_codec: set 3000000 uV; enabling
LDO_REG6@vcc_1v5: set 1500000 uV; enabling
LDO_REG7@vcca1v8_codec: set 1800000 uV; enabling
LDO_REG8@vcc_3v0: set 3000000 uV; enabling
SWITCH_REG1@vcc3v3_s3: ; enabling (ret: -38)
SWITCH_REG2@vcc3v3_s0: ; enabling (ret: -38)
vcc1v8-s0@vcc1v8_s0: set 1800000 uV; enabling (ret: -38)
dc-12v@dc_12v: set 12000000 uV; enabling (ret: -38)
vcc-sys@vcc_sys: set 5000000 uV; enabling (ret: -38)
vcc3v3-sys@vcc3v3_sys: set 3300000 uV; enabling (ret: -38)
vcc-phy-regulator@vcc_phy: ; enabling (ret: -38)
vdd-log@vdd_log: ; enabling (ret: -38)
MMC:   sdhci@fe330000: 0, dwmmc@fe320000: 1
SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

In:    serial@ff1a0000
Out:   serial@ff1a0000
Err:   serial@ff1a0000
Model: Pine64 RockPro64
Net:   eth0: ethernet@fe300000
Hit any key to stop autoboot:  0
** First descriptor is NOT a primary desc on 0:1 **
switch to partitions #0, OK
mmc0(part 0) is current device
** First descriptor is NOT a primary desc on 0:1 **
** First descriptor is NOT a primary desc on 0:1 **
** First descriptor is NOT a primary desc on 0:1 **
** First descriptor is NOT a primary desc on 0:1 **
:
** First descriptor is NOT a primary desc on 0:1 **
** First descriptor is NOT a primary desc on 0:1 **
** No partition table - mmc 0 **
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found EFI removable media binary efi/boot/bootaa64.efi
reading efi/boot/bootaa64.efi
161090 bytes read in 26 ms (5.9 MiB/s)
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
## Starting EFI application at 02000000 ...
Scanning disk [hidden email]...
** First descriptor is NOT a primary desc on 0:1 **
Scanning disk [hidden email]...
Found 2 disks
disks: sd0* sd1 sd2
>> OpenBSD/arm64 BOOTAA64 0.19
boot>
cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: 2231112+623664+8769760+740912 [221760+109+520368+200924]=0xff8710
type 0x2 pa 0x200000 va 0x200000 pages 0x4000 attr 0x8
type 0x7 pa 0x4200000 va 0x200000 pages 0x4000 attr 0x8
type 0x4 pa 0x8200000 va 0x8200000 pages 0xc attr 0x8
type 0x7 pa 0x820d000 va 0x200000 pages 0xebf8b attr 0x8
type 0x2 pa 0xf4198000 va 0xf4198000 pages 0x4 attr 0x8
type 0x2 pa 0xf419c000 va 0xf419c000 pages 0x4 attr 0x8
:
"vcc-phy-regulator" at mainbus0 not configured
"vdd-log" at mainbus0 not configured
usb2 at ohci0: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
usb3 at ohci1: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Generic OHCI root hub" rev 1.00/1.00 addr 1
scsibus0 at sdmmc1: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <SD/MMC, USD, 0000> removable
sd0: 3840MB, 512 bytes/sector, 7864320 sectors
scsibus1 at sdmmc0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: <Sandisk, DA4128, 0000> removable
sd1: 119276MB, 512 bytes/sector, 244277248 sectors
softraid0 at root
scsibus2 at softraid0: 256 targets
bootfile: sd0a:/bsd
boot device: sd0
root on rd0a swap on rd0b dump on rd0b
WARNING: preposterous clock chip time
WARNING: CHECK AND RESET THE DATE!
erase ^?, werase ^W, kill ^U, intr ^C, status ^T

Welcome to the OpenBSD/arm64 6.6 installation program.

(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? s
# cd /dev
# sh MAKEDEV sd0                                                              
# sh MAKEDEV sd1
# sh MAKEDEV sd2
# fdisk sd0
Disk: sd0       geometry: 489/255/63 [7864320 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
*0: 0C      2  10   9 -      2 140  10 [       32768:        8192 ] FAT32L      
 1: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 2: 00      0   0   0 -      0   0   0 [           0:           0 ] unused      
 3: A6      2 140  11 -      4  52  48 [       40960:       26624 ] OpenBSD    
# fdisk sd1
Disk: sd1       geometry: 15205/255/63 [244277248 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 1: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 2: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 3: FF 267349  89   4 -  46077  37  38 [  4294967295:   740229375 ] Xenix BBT  
# fdisk -i sd1
Do you wish to write new MBR and partition table? [n] y
Writing MBR at offset 0.
# fdisk sd1    
Disk: sd1       geometry: 15205/255/63 [244277248 Sectors]
Offset: 0       Signature: 0xAA55
            Starting         Ending         LBA Info:
 #: id      C   H   S -      C   H   S [       start:        size ]
-------------------------------------------------------------------------------
 0: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 1: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 2: FF 267349  89   4 - 267349  89   2 [  4294967295:  4294967295 ] Xenix BBT  
 3: FF 267349  89   4 -  46077  37  38 [  4294967295:   740229375 ] Xenix BBT  
# disklabel sd1
# /dev/rsd1c:
type: SCSI
disk: SCSI disk
label: Sandisk DA4128
duid: 0000000000000000
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 15205
total sectors: 244277248
boundstart: 0
boundend: 244277248
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  c:        244277248                0  unused                    
# fdisk sd2
fdisk: sd2: Device not configured

# sysctl                                                                      
kern.osrelease=6.6
hw.machine=arm64
hw.model=ARM Cortex-A53 r0p4
hw.product=Pine64 RockPro64
hw.disknames=rd0:065c1213d288d6ad,sd0:02c868c8a1ad48b6,sd1:
hw.ncpufound=6

# disklabel rd0
# /dev/rrd0c:
type: rdroot
disk: rdroot
label:
duid: 065c1213d288d6ad
flags:
bytes/sector: 512
sectors/track: 512
tracks/cylinder: 2
sectors/cylinder: 1024
cylinders: 16
total sectors: 16384
boundstart: 0
boundend: 0
drivedata: 0

3 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:            16384                0  4.2BSD    512  4096  2048
  c:            16384                0  unused                    
# disklabel sd0
# /dev/rsd0c:
type: vnd
disk: vnd device
label: fictitious
duid: 02c868c8a1ad48b6
flags:
bytes/sector: 512
sectors/track: 128
tracks/cylinder: 16
sectors/cylinder: 2048
cylinders: 33
total sectors: 7864320
boundstart: 40960
boundend: 67584
drivedata: 0

16 partitions:
#                size           offset  fstype [fsize bsize   cpg]
  a:            26624            40960  4.2BSD   2048 16384   832
  c:          7864320                0  unused                    
  i:             8192            32768   MSDOS                    

commands from U-boot

=> usb start
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB EHCI 1.00
USB2:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
USB3:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... 1 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
scanning bus 3 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found

=> mmc info
** First descriptor is NOT a primary desc on 0:1 **
Device: sdhci@fe330000
Manufacturer ID: 45
OEM: 100
Name: DA412
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 116.5 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 116.5 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 16 MiB ENH

=> mmc list
sdhci@fe330000: 0 (eMMC)
dwmmc@fe320000: 1

=> led list
power           <inactive>
standby         <inactive>

=> led list
power           <inactive>
standby         <inactive>
=> led standby off



=> mmcinfo
Device: sdhci@fe330000
Manufacturer ID: 45
OEM: 100
Name: DA412
Tran Speed: 52000000
Rd Block Len: 512
MMC version 5.1
High Capacity: Yes
Capacity: 116.5 GiB
Bus Width: 8-bit
Erase Group Size: 512 KiB
HC WP Group Size: 8 MiB
User Capacity: 116.5 GiB WRREL
Boot Capacity: 4 MiB ENH
RPMB Capacity: 16 MiB ENH


=> printenv
arch=arm
baudrate=1500000
board=rockpro64_rk3399
board_name=rockpro64_rk3399
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootaa64.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r};else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=mmc0 mmc1 usb0 pxe dhcp
bootcmd=run distro_bootcmd
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; setenv efi_old_vci ${bootp_vci};setenv efi_old_arch ${bootp_arch};setenv bootp_vci PXEClient:Arch:00011:UNDI:003000;setenv bootp_arch 0xb;if dhcp ${kernel_addr_r}; then tftpboot ${fdt_addr_r} dtb/${efi_fdtfile};if fdt addr ${fdt_addr_r}; then bootefi ${kernel_addr_r} ${fdt_addr_r}; else bootefi ${kernel_addr_r} ${fdtcontroladdr};fi;fi;setenv bootp_vci ${efi_old_vci};setenv bootp_arch ${efi_old_arch};setenv efi_fdtfile;setenv efi_old_arch;setenv efi_old_vci;
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_mmc1=setenv devnum 1; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=0
cpu=armv8
cpuid#=5456413830342e303000000000180482
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
ethaddr=a6:63:b8:9a:57:7c
fdt_addr_r=0x01f00000
fdtcontroladdr=f5f04348
fdtfile=rockchip/rk3399-rockpro64.dtb
kernel_addr_r=0x02000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
partitions=uuid_disk=${uuid_gpt_disk};name=loader1,start=32K,size=4000K,uuid=${uuid_gpt_loader1};name=loader2,start=8MB,size=4MB,uuid=${uuid_gpt_loader2};name=trust,size=4M,uuid=${uuid_gpt_atf};name=boot,size=112M,bootable,uuid=${uuid_gpt_boot};name=rootfs,size=-,uuid=B921B045-1DF0-41C3-AF44-4C6F280D3FAE;
pxefile_addr_r=0x00600000
ramdisk_addr_r=0x04000000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;run scan_dev_for_efi;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; for prefix in ${efi_dtb_prefixes}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${efi_fdtfile}; then run load_efi_dtb; fi;done;if test -e ${devtype} ${devnum}:${distro_bootpart} efi/boot/bootaa64.efi; then echo Found EFI removable media binary efi/boot/bootaa64.efi; run boot_efi_binary; echo EFI LOAD FAILED: continuing...; fi; setenv efi_fdtfile
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scriptaddr=0x00500000
serial#=efe22a02b7a2961
soc=rockchip
stderr=serial@ff1a0000
stdin=serial@ff1a0000
stdout=serial@ff1a0000
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
vendor=rockchip

Environment size: 4013/32764 bytes



=> mmc list    
sdhci@fe330000: 0 (eMMC)
dwmmc@fe320000: 1
=>
sdhci@fe330000: 0 (eMMC)
dwmmc@fe320000: 1

=> mmc rescan
** First descriptor is NOT a primary desc on 0:1 **
=> mmc list  
sdhci@fe330000: 0 (eMMC)
dwmmc@fe320000: 1

=> usb storage
No storage devices, perhaps not 'usb start'ed..?
=> usb start  
=> usb storage
No storage devices, perhaps not 'usb start'ed..?

=> version
U-Boot 2017.09-rockchip-ayufan-1065-g95f6152134 (Aug 26 2019 - 12:41:34 +0000)

aarch64-linux-gnu-gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1) 7.4.0
GNU ld (GNU Binutils for Ubuntu) 2.30


once again with snapshot

# disklabel -E sd1
Label editor (enter '?' for help at any prompt)
sd1> a
partition: [a]
offset: [0]
size: [244277248]
FS type: [4.2BSD]
sd1*> w
disklabel: DIOCWDINFO: Input/output error
disklabel: unable to write label


smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: can't install to eMMC on PINE64-ROCKPro64

Mark Kettenis
Please try a -current snapshot.

Reply | Threaded
Open this post in threaded view
|

Re: can't install to eMMC on PINE64-ROCKPro64

Jiri Navratil
Hi Mark,

Thank you for reply.

I tried also

https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot66.fs

Unfortunately with the same result - I can't adjust eMMC in any way.

Regards,
Jiří


On Sun, Mar 29, 2020 at 01:47:20PM +0200, Mark Kettenis wrote:
> Please try a -current snapshot.
>

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: can't install to eMMC on PINE64-ROCKPro64

Olivier BURELLI
In first,

install somewhere : u-boot-aarch64-2020.01p3.tgz

and install to the emmc, from /usr/local/share/u-boot/`arch`/ :

# dd if=idbloader.img of=/dev/sdxc seek=64
# dd if=u-boot.itb of=/dev/sdxc seek=16384

On 3/29/2020 4:49 PM, Jiri Navratil wrote:

> Hi Mark,
>
> Thank you for reply.
>
> I tried also
>
> https://ftp.openbsd.org/pub/OpenBSD/snapshots/arm64/miniroot66.fs
>
> Unfortunately with the same result - I can't adjust eMMC in any way.
>
> Regards,
> Jiří
>
>
> On Sun, Mar 29, 2020 at 01:47:20PM +0200, Mark Kettenis wrote:
>> Please try a -current snapshot.
>>