Cherry PUMA SOM-RK3399-Q7 User Manual page 28

Powerful system-on-module for versatile applications featuring the rockchip rk3399 application processor
Hide thumbs Also See for PUMA SOM-RK3399-Q7:
Table of Contents

Advertisement

Select (default p):
<ENTER>
Partition number (1-4, default 1):
First sector (2048-7774207, default 2048):
Last sector, +sectors
or
This will create a primary partition at offset 2MiB. Enter w to write the new partition table to the disk:
> w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
Now we format the partition as ext4:
sudo /sbin/mkfs.ext4 -E
The option lazy_itable_init=0 speeds up the first boot because it initializes the inode tables in advance.
The SD card is now ready to have the U-Boot bootloader and Linux deployed.
4.9.2 Deploy U-Boot
The U-Boot images spl_sd.img and u-boot.itb are written to the SD card. Assuming the SD card is mapped
to /dev/sdX:
sudo dd if=puma-u-boot/spl_sd.img of=/dev/sdX bs=1k
sudo dd if=puma-u-boot/u-boot.itb of=/dev/sdX bs=1k
4.9.3 Deploy the Linux Kernel and the Root Filesystem
Mount the SD card partition and copy the rootfs (assuming that the rootfs is located at /opt/rk3399-rootfs
and the sd card at /dev/sdX1):
sudo mkdir -p /mnt/sdcard
sudo mount /dev/sdX1 /mnt/sdcard
sudo cp -av
/opt/rk3399-rootfs/*
Copy kernel image, device tree and boot script into the boot directory:
sudo cp -r som-tools/boot-script/boot/{boot.scr,puma_rk3399} /mnt/sdcard/boot
sudo cp puma-linux/arch/arm64/boot/dts/rockchip/rk3399-puma.dtb /mnt/sdcard/boot/puma_rk3399
sudo cp puma-linux/arch/arm64/boot/Image /mnt/sdcard/boot/puma_rk3399
Finally, unmount the SD card:
sudo umount /mnt/sdcard
The SD card is ready for booting.
v1.6
Page 24
<ENTER>
4096
+size{K,M,G} (...):
<ENTER>
lazy_itable_init=0
/dev/sdX1
/mnt/sdcard
seek=32
conv=nocreat
seek=256
conv=nocreat
(continued from previous page)

Advertisement

Table of Contents
loading

Table of Contents