![]() |
Alpine Linux - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: Linux on Rock64 (https://forum.pine64.org/forumdisplay.php?fid=88) +--- Thread: Alpine Linux (/showthread.php?tid=5881) Pages:
1
2
|
RE: Alpine Linux - rock7 - 08-13-2019 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/master/doc/README.rockchip Quote:However i clone the uboot-tree: Than i follow this instruction: (https://github.com/u-boot/u-boot/commit/57c4c5d3366b229bfc2228fd8029d06e627972a0) 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: BUT on https://github.com/qemu/u-boot/blob/master/doc/README.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: Quote:Create 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-build/blob/master/recipes/flash-spi.md I hope somebody can do it and publish a manual. ![]() RE: Alpine Linux - rock7 - 10-22-2019 I made a few mistakes but now it works: Ready to use solution: https://codeberg.org/AVG7/diy_hardened_alpine_linux Create Initramfs and modloop File, this guides will help: https://wiki.alpinelinux.org/wiki/DIY_Fully_working_Alpine_Linux_for_Allwinner_and_Other_ARM_SOCs https://a-delacruz.github.io/alpine/alpine-linux.html Delete from the Alpine Linux Download all folders except the folders “apks” “boot” and “alpine.apkovl.tar.gz”. Replace all files in the dtbs and boot-folder with the files from ayufan (https://github.com/ayufan-rock64/linux-kernel/releases) or https://codeberg.org/AVG7/diy_hardened_alpine_linux and your initramfs and modloop file. Create a textfile and name it extlinux.conf with the following content (replace XXX with the filenames of the files from ayufan and your initramfs and modloop file): LABEL XXX KERNEL /boot/vmlinuz-XXX INITRD /boot/initramfs-XXX FDT /boot/dtbs/XXX.dtb APPEND modules=loop,squashfs,sd-mod,usb-storage Create a folder in the boot-folder with name extlinux and place in this folder the extlinux.conf textfile. Then for SPI follow this guide: https://github.com/ayufan-rock64/linux-build/blob/master/recipes/flash-spi.md Then create a partition on a emty sdcard with gparted and mark it bootable. Place the folder “apks” “boot” and “alpine.apkovl.tar.gz” on the sdcard. Use Serial Console (https://forum.pine64.org/showthread.php?tid=4928) at first boot if hdmi does not work at first boot. Then run setup-alpine. Or simply follow this guide: https://codeberg.org/AVG7/diy_hardened_alpine_linux Good to know: Howto cross-compile Upstream U-Boot for rock64: https://forum.pine64.org/showthread.php?tid=8174 This page has been archived: http://archive.is/w3uQN https://web.archive.org/web/20191022221632/https://forum.pine64.org/showthread.php?tid=5881&page=2 RE: Alpine Linux - pix - 08-12-2021 Does alpine linux now support the rock64? when looking through the dtb/rockchip folder I found a file called rk3328-rock64.dtb? |