Index of /slackware/images/rock64
Installation
------------------
Unpack the IMAGE file and copy the image an SD card: (assuming SD card at /dev/mmcblk0):
# zstd -d slarm64-current-*-core-*-build-*.img.zst
# dd if=slarm64-current-*-core-*-build-*.img of=/dev/mmcblk0 bs=1M
or unpack directly to the card
# zstdcat slarm64-current-*-core-*-build-*.img.zst > /dev/mmcblk0
Attention!
------------------
eMMC is defined as /dev/mmcblk0
a SDcard how /dev/mmcblk1
Instalation eMMC/NAND/USB-HDD
------------------
Flash the image to micro SD, power up the board with micro SD and login
Copy the image file to micro SD by using SFTP. The image file must be in .img. note : root user are not allow transfer file to micro SD.
After finish copy the file, power off the board and add eMMC module to the board
Bootup the board, run below command for flashing to eMMC module
# dd if=slarm64-current-*-core-*-build-*.img of=/dev/mmcblk0 bs=10M
or
# dd if=slarm64-current-*-xfce-*-build-*.img of=/dev/mmcblk0 bs=10M
then edit 2 files in eMMC module:
# mount /dev/mmcblk0p1 /media
# echo "rootdev=/dev/mmcblk0p1" >> /media/boot/uEnv.txt
# sed -i 's:mmcblk1p1:mmcblk0p1:' /media/etc/fstab
After done, power off board and remove micro SD. Then bootup with only eMMC module.
or
to transfer a system with the SD to eMMC, you need to boot from the start and run the script:
# transfer-to-disk
Default Login
------------------
login: root
Multimedia
------------------
The video is played by the MPV player, which is configured with the default
profile x11 (for playing divx/xvid)
and the profile rkmpp (for playing h264/h265/VP9 720p,1080p,2160p,4320p)
# mpv --profile=rkmpp videofile.{mkv,mp4}
smplayer: add "--config=yes --profile=rkmpp" to preferences->advanced->mplayer/mpv->options then mpv will use its config files.
Disable SPI (while booting)
-------------------
Ground the SPI Clock (SPI_CLK_M2) on the Pi-2 Bus GPIO pins on the rock64
Pin 23 is SPI_CLK_M2
Pin 25 is GND
Turn on the device and release the grounding of the SPI Clock 2-3 seconds after the device was turned on.
NOTE: This is a critical step If not done correctly you will not be able to flash the device
If unsuccessful turn of the device and try again.
Clean SPI
MTD=$(grep \"loader\" /proc/mtd | cut -d: -f1)
flash_erase "/dev/$MTD" 0 0
Debug
-------------------
Connect the serial console to the PI-2-bus
Pin 6 is GRD
Pin 8 is RTX (UART2_TX_M1)
Pin 10 is TXD (UART2_RX_M1)