08-13-2019, 05:25 PM
I have tried it without the possibility with SPI Flash, so only trying to start from SD card. (I am a kernelnewbie)
Currently only the EVB RK3328 is supported on the Rockchip-site, I think that does not work:
http://opensource.rock-chips.com/wiki_Boot_option
U-boot-guide (but i think there is missing the instruction ways for rock64)
https://github.com/qemu/u-boot/blob/mast...E.rockchip
Than i follow this instruction: (https://github.com/u-boot/u-boot/commit/...6e627972a0)
This series allow building u-boot SPL and u-boot.itb for Rock64
board. The proprietary TPL is stil required for deploy:
./tools/mkimage -n rk3328 -T rksd \
-d ./rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin idbloader.img
cat ./spl/u-boot-spl.bin >> idbloader.img
dd if=idbloader.img of=/dev/sdcard seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/sdcard seek=16384 conv=notrunc
BUT on https://github.com/qemu/u-boot/blob/mast...E.rockchip there is the following instruction and I do not know what the difference is and why:
Booting from an SD card on Pine64 Rock64 (RK3328)
For Rock64 rk3328 board the following three parts are required:
TPL, SPL, and the u-boot image tree blob.
- Create TPL/SPL image
=> tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.bin idbloader.img
=> cat spl/u-boot-spl.bin >> idbloader.img
- Write TPL/SPL image at 64 sector
=> sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64
- Write u-boot image tree blob at 16384 sector
=> sudo dd if=u-boot.itb of=/dev/mmcblk0 seek=16384
On https://a-delacruz.github.io/alpine/alpine-linux.html is a good guide for step 7 (Creating Initramfs File) and 8 (Creating modloop File) from the Alpinelinux-guide. I did it that way.
Then I replaced the files and copied everything to the SD card and did all the steps. Finally it does not work, i get no signal over hdmi when I try to boot. Maybe I forgot something or did something wrong. I think u-boot or boot.scr is the problem.
I will try the following instructions, but it would be better if i could only start with SD card:
https://github.com/ayufan-rock64/linux-b...ash-spi.md
I hope somebody can do it and publish a manual.
Currently only the EVB RK3328 is supported on the Rockchip-site, I think that does not work:
http://opensource.rock-chips.com/wiki_Boot_option
U-boot-guide (but i think there is missing the instruction ways for rock64)
https://github.com/qemu/u-boot/blob/mast...E.rockchip
Quote:However i clone the uboot-tree:
git clone https://github.com/u-boot/u-boot
Compile U-boot:
make CROSS_COMPILE=aarch64-linux-gnu- rock64-rk3328_defconfig
make CROSS_COMPILE=aarch64-linux-gnu-
Than i follow this instruction: (https://github.com/u-boot/u-boot/commit/...6e627972a0)
This series allow building u-boot SPL and u-boot.itb for Rock64
board. The proprietary TPL is stil required for deploy:
./tools/mkimage -n rk3328 -T rksd \
-d ./rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin idbloader.img
cat ./spl/u-boot-spl.bin >> idbloader.img
dd if=idbloader.img of=/dev/sdcard seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/sdcard seek=16384 conv=notrunc
Quote:So I did the following:
git clone https://github.com/rockchip-linux/rkbin
./tools/mkimage -n rk3328 -T rksd \
-d ./rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin idbloader.img
./tools/mkimage -n rk3328 -T rksd \
-d ./rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin u-boot.itb
cat ./spl/u-boot-spl.bin >> idbloader.img
dd if=idbloader.img of=/dev/sdcard seek=64 conv=notrunc
dd if=u-boot.itb of=/dev/sdcard seek=16384 conv=notrunc
BUT on https://github.com/qemu/u-boot/blob/mast...E.rockchip there is the following instruction and I do not know what the difference is and why:
Booting from an SD card on Pine64 Rock64 (RK3328)
For Rock64 rk3328 board the following three parts are required:
TPL, SPL, and the u-boot image tree blob.
- Create TPL/SPL image
=> tools/mkimage -n rk3328 -T rksd -d tpl/u-boot-tpl.bin idbloader.img
=> cat spl/u-boot-spl.bin >> idbloader.img
- Write TPL/SPL image at 64 sector
=> sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64
- Write u-boot image tree blob at 16384 sector
=> sudo dd if=u-boot.itb of=/dev/mmcblk0 seek=16384
Quote:I compiled the kernel according to the Alpinelinux manual:
(https://wiki.alpinelinux.org/wiki/DIY_Fu...r_ARM_SOCs)
apt-get -y -qq install gitPlease make sure you have the following options as follows
- git clone --depth 1 https://github.com/igorpecovnik/lib
- cp lib/compile.sh .
- vim compile.sh
KERNEL_ONLY="yes" //compile only kernel, u-boot and other packages and not buid complete OS image
KERNEL_CONFIGURE="yes" //to include your modules
CLEAN_LEVEL="make,images,debs"
KERNEL_KEEP_CONFIG="yes"
Quote:Create boot.scr
boot.scr contains needed uboot commands for loading kernel, initrd, setting kernel parameters and booting.
To create boot.scr first make a u-boot script boot.cmd with the u-boot commands you need for booting the system:Then translate this to a boot.scr by using the mkimage command
- setenv fdt_high ffffffff
- setenv machid 1029
- setenv bootargs earlyprintk /boot/vmlinuz-4.6.0-rc1-sunxi modules=loop,squashfs,sd-mod,usb-storage modloop=/boot/modloop-sunxi console=${console}
- load mmc 0:1 0x43000000 boot/dtbs/sun8i-h3-orangepi-pc.dtb
- load mmc 0:1 0x41000000 boot/vmlinuz-4.6.0-rc1-sunxi
- load mmc 0:1 0x45000000 boot/initramfs-sunxi-new
- bootz 0x41000000 0x45000000 0x43000000
mkimage -C none -A arm -T script -d boot.cmd boot.scr
On https://a-delacruz.github.io/alpine/alpine-linux.html is a good guide for step 7 (Creating Initramfs File) and 8 (Creating modloop File) from the Alpinelinux-guide. I did it that way.
Then I replaced the files and copied everything to the SD card and did all the steps. Finally it does not work, i get no signal over hdmi when I try to boot. Maybe I forgot something or did something wrong. I think u-boot or boot.scr is the problem.
I will try the following instructions, but it would be better if i could only start with SD card:
https://github.com/ayufan-rock64/linux-b...ash-spi.md
I hope somebody can do it and publish a manual.