On Tue, 30 Apr 2024 13:39:55 +0200 "Cristian Danila" <clau...@postmail.ro> wrote:
> HI Olivier, > > I cannot express how grateful I am that finally is booting emmc. > However, I still have an issue, power button does not seem to work > and shutdown -p now does not really turn off the device. > > pw# shutdown -p now > Shutdown NOW! > shutdown: [pid 39459] > pw# > *** FINAL System shutdown message from root@*** *** > System going down IMMEDIATELY > > System shutdown time has arrived > syncing disks... done > > Attempting to power down... > > And from here nothing happens, the device is not really turned off, > I still see hdmi active(black screen) and network leds still on. > > I have to keep power button pressed long to force power it off. > > Could be this related to dtb or maybe a bug? > > I am not sure if dtb file is loaded properly. > Still struggling if there is a command to know if proper dtb is loaded > > this is the log: > U-Boot 2021.10 (Mar 21 2024 - 02:36:56 -0600) > > SoC: Rockchip rk3399 > Reset cause: POR > Model: Pine64 RockPro64 v2.1 > DRAM: 3.9 GiB > PMIC: RK808 > MMC: mmc@fe310000: 3, mmc@fe320000: 1, mmc@fe330000: 0 > Loading Environment from SPIFlash... SF: Detected gd25q128 with page > size 256 Bytes, erase size 4 KiB, total 16 MiB > *** Warning - bad CRC, using default environment > > In: serial > Out: serial > Err: serial > Model: Pine64 RockPro64 v2.1 > Net: Could not get PHY for ethernet@fe300000: addr -1 > No ethernet found. > > Hit any key to stop autoboot: 0 > Card did not respond to voltage select! : -110 > switch to partitions #0, OK > mmc0(part 0) is current device > Scanning mmc 0:1... > 63169 bytes read in 33 ms (1.8 MiB/s) > Card did not respond to voltage select! : -110 > Scanning disk m...@fe310000.blk... > Disk m...@fe310000.blk not ready > Card did not respond to voltage select! : -110 > Scanning disk m...@fe320000.blk... > Disk m...@fe320000.blk not ready > Scanning disk m...@fe330000.blk... > Found 3 disks > No EFI system partition > BootOrder not defined > EFI boot manager: Cannot load any image > Found EFI removable media binary efi/boot/bootaa64.efi > 227979 bytes read in 49 ms (4.4 MiB/s) > Booting /efi\boot\bootaa64.efi > disks: sd0* > >> OpenBSD/arm64 BOOTAA64 1.18 > > On Mon, Apr 29, 2024 at 8:36 AM OBI <oliv...@burelli.fr> wrote: > > > > On Sat, 27 Apr 2024 17:11:56 +0200 > > "Cristian Danila" <clau...@postmail.ro> wrote: > > > > > Dear Misc, > > > > > > I would really appreciate if someone can give > > > me a hint on how can make emmc card bootable > > > on a RockPro64 board. > > > This is what I did: > > > 1) prepared micro sd card: > > > dd if=install75.img of=/dev/sdg bs=1024M > > > dd if=idbloader.img of=/dev/sdg bs=512 seek=64 > > > dd if=u-boot.itb of=/dev/sdg bs=512 seek=16384 > > > > > > copy "rk3399-rockpro64-v2.dtb" to boot partition at > > > following location: /dtb/rockchip/rk3399-rockpro64-v2.dtb > > > > > > 2) I did installed openbsd on emmc card > > > > > > But after installed it, before reboot, I understood that I need to > > > write the 3 files: idbloader.img, u-boot.itb and > > > rk3399-rockpro64-v2.dtb into emmc card. > > > So before reboot, use console and write the files. > > > Could you please help me in telling how I do that? > > > I think(still struggling with it) that somehow I have to copy the > > > same sectors > > > from sdcard and write it to emmc + copy the dtb file. > > > > > > Thank you. > > > > > > > Hello, > > > > I wrote in the past "notes / process tasks" to follow for fresh > > install OpenBSD on a RockPro 64, was done for 6.7-current. > > I don't know if still available: > > > > https://blog.burelli.fr/en/arm/arm64-install-openbsd-rockpro64/ > > > > For now i am using quartz-a-model from Pine64. > > > > > > Succently: > > > > * dtb has to be installed on the USB Key, because kernel on usb key > > has to detect the emmc and has to be able to write on it. Without > > installing dtb on the USB key, it’s impossible to write to the > > emmc card. > > > > --> After reboot the installed kernel should detect and write on > > the emmc. install dtb if not. > > > > Ations to do on another machine to prepare the installation (sd1 is > > usb key): > > doas mount /dev/sd1i /mnt > > doas mkdir /mnt/rockchip > > doas cp /usr/local/share/dtb/arm64/rockchip/rk3399-rockpro64.dtb > > /mnt/rockchip/ > > doas umount /mnt > > > > > > Olivier. I'm not an expert, I'm glad if I could help. To my knowledge, there is no APM (Advanced Power Management). This API is not integrated it seems to me within the U-BOOT project. It is therefore necessary to turn off the rockpro64, by removing the power supply for an electrical shutdown. I let experts confirm or infirm what i am saying. Olivier.