[Repaired] [Progressed] [Successful] How to play Minecraft with ROCK 64 - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86) +--- Thread: [Repaired] [Progressed] [Successful] How to play Minecraft with ROCK 64 (/showthread.php?tid=5735) |
[Repaired] [Progressed] [Successful] How to play Minecraft with ROCK 64 - pine3228 - 02-19-2018 Google Translate : I was suffering at ROCK 64 whether I can not do Minecraft. The reason why Minecraft can not easily play on the single board computer with ARM installed, LWJGL that is downloaded automatically by the launcher is not compatible with ARM. Therefore, I compile LWJGL with ROCK 64. * Here, FPS is very low because I do not use GPU to process graphics. I am using "https://github.com/yuq/linux-lima", "https://github.com/yuq/mesa-lima" Although I am challenging to compile, because of lack of knowledge, I have not been able to compile and install a forward kernel. Please tell me how to compile the kernel with ROCK 64! * The sound does not come out from the headphone jack for some reason! Please tell me about this matter too! * If you have any advice, please reply! Installation: sudo apt-get update sudo apt-get install gradle openjdk-8-jdk libx11-dev xorg-dev reboot sudo ln -s /usr/lib/jvm/java-8-openjdk-arm64/lib/aarch64/libjawt.so /usr/lib/libjawt.so git clone https://github.com/LWJGL/lwjgl cd lwjgl ant generate-all ant compile_native mkdir -p ~/.minecraft/natives cp ~/lwjgl/libs/linux/liblwjgl.so ~/.minecraft/natives/ cp ~/lwjgl/libs/linux/libopenal.so ~/.minecraft/natives/ cd ~/ wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar At startup: export _JAVA_OPTIONS='-Djava.library.path=/home/rock64/.minecraft/natives/' java -jar Minecraft.jar have fun! 原文 : 私は、ROCK64で、Minecraftができないかずっと悩んでいました。 ARM搭載のシングルボードコンピュータで、Minecraftが安易にプレイできない理由は、 ランチャーで自動的にダウンロードされるLWJGLがARMに対応していないことです。 そこで、LWJGLをROCK64でコンパイルしてしまいます。 *ここでは、グラフィックの処理にGPUを使っていないため、FPSがとても低いです。 私は、「https://github.com/yuq/linux-lima」、「https://github.com/yuq/mesa-lima」 のコンパイルに挑戦していますが、知識不足で、前方のカーネルのコンパイルとインストールができていません。 ぜひ、ROCK64でのカーネルのコンパイルの方法を教えてください! *ヘッドホンジャックから音が何故か出ません! この件についても教えてください! *何かアドバイスがあったら、ぜひ返信をください! インストール : sudo apt-get update sudo apt-get install gradle openjdk-8-jdk libx11-dev xorg-dev reboot sudo ln -s /usr/lib/jvm/java-8-openjdk-arm64/lib/aarch64/libjawt.so /usr/lib/libjawt.so git clone https://github.com/LWJGL/lwjgl cd lwjgl ant generate-all ant compile_native mkdir -p ~/.minecraft/natives cp ~/lwjgl/libs/linux/liblwjgl.so ~/.minecraft/natives/ cp ~/lwjgl/libs/linux/libopenal.so ~/.minecraft/natives/ cd ~/ wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar 起動時: export _JAVA_OPTIONS='-Djava.library.path=/home/rock64/.minecraft/natives/' java -jar Minecraft.jar 楽しんでください! RE: [Successful] How to play Minecraft with ROCK 64 - xalius - 02-19-2018 Hi, to compile a kernel on the Rock64, check out this repo Code: git clone https://github.com/ayufan-rock64/linux-kernel then Code: make rockchip_linux_defconfig then Code: make menuconfig add the options you need and Code: make -j5 after that you should have everything built... building on the Rock64 will take quite some time if you dont have a heatsink and the cores get throttled, it should be around 40 minutes with good cooling... Are you sure limadriver is already in a state that can be used for what you want to do? As opposed to mali? RE: [Successful] How to play Minecraft with ROCK 64 - pine3228 - 02-19-2018 (02-19-2018, 04:55 AM)xalius Wrote: Hi, to compile a kernel on the Rock64, check out this repoMali-450で、OPENGLを実行するためにはどうしても「linux-lima」ドライバーを使う必要があります。 私は、 git clone https://github.com/ayufan-rock64/linux-kernel make rockchip_linux_defconfig をした後、生成され「.config」ファイルを、「linux-lima」のディレクトリに上書きし、 make oldconfig make -j5 をしましたが、なぜか一部のドライバーがコンパイルされませんでした。 それは、「-C」オプションをつけても無意味でした。 それと、その後、コンパイルされたカーネルは、どのようにインストールすればよいのでしょうか? make install を実行しても、エラーが出てしまいます。 何故? Google Translate : With Mali - 450, you absolutely need to use 'linux - lima' driver to run OPENGL. I, git clone https://github.com/ayufan-rock64/linux-kernel make rockchip_linux_defconfig After doing, overwrite the generated ".config" file over the "linux-lima" directory, make oldconfig make - j 5 I did, but some drivers were not compiled for some reason. It did not make sense to attach the "- C" option. Also, how do you install the compiled kernel afterwards? make install Even if you execute, an error will appear. why? RE: [Successful] How to play Minecraft with ROCK 64 - xalius - 02-19-2018 How did you change the .config exactly? Can you upload it to pastebin? Also upload the output of your kernel build... Edit: I just saw that linux-lima is a mainline 4.13 source tree, so you better take the .config from ayufan's mainline kernel ( https://github.com/ayufan-rock64/linux-mainline-kernel/blob/master/arch/arm64/configs/rockchip_linux_defconfig), but 4.13.x is also too old for RK3328, the HDMI drivers you need for video output are probably arriving in 4.17.x or 4.18.x... so you need to forward port the linux-lima patches, from what I read in the issues in the git repo starting from " f0fddeaf1b7df4f1f7404155ad8b03a5190e5550 : drm/lima: init commit for adding lima driver" [url=https://github.com/yuq][/url] RE: [Successful] How to play Minecraft with ROCK 64 - pine3228 - 02-22-2018 (02-19-2018, 08:55 AM)xalius Wrote: How did you change the .config exactly? Can you upload it to pastebin? Also upload the output of your kernel build... https://github.com/yuq/linux-lima/tree/lima-4.13/drivers/gpu/drm https://github.com/yuq/linux-lima/tree/lima-4.13/drivers/gpu/drm/lima Apparently it seems just to compile this driver. RE: [Successful] How to play Minecraft with ROCK 64 - pine3228 - 02-23-2018 (02-19-2018, 08:55 AM)xalius Wrote: How did you change the .config exactly? Can you upload it to pastebin? Also upload the output of your kernel build... When attempting to compile a DRM driver and a LIMA driver in "rock64", the following error occurred. How can you solve it? Please cooperate with me. rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C /lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD CONFIG_ARCH_ROCKCHIP CONFIG_DRM [sudo] password for rock64: make: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' make: *** No rule to make target 'CONFIG_ARCH_ROCKCHIP'. Stop. make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C /lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD CONFIG_DRMmake: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' make: *** No rule to make target 'CONFIG_DRM'. Stop. make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ sudo make -C /lib/modules/4.4.77-rockchip-ayufan-136/build M=$PWD CONFIG_ARCH_ROCKCHIP=m CONFIG_DRM=m make: Entering directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' CC /home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o /home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.c:39:10: fatal error: drm/drm_encoder.h: No such file or directory #include <drm/drm_encoder.h> ^~~~~~~~~~~~~~~~~~~ compilation terminated. scripts/Makefile.build:258: recipe for target '/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o' failed make[1]: *** [/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm/drm_crtc_helper.o] Error 1 Makefile:1424: recipe for target '_module_/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm' failed make: *** [_module_/home/rock64/linux-lima-lima-4.13/drivers/gpu/drm] Error 2 make: Leaving directory '/usr/src/linux-headers-4.4.77-rockchip-ayufan-136' rock64@rock64:~/linux-lima-lima-4.13/drivers/gpu/drm$ RE: [Progressed] [Successful] How to play Minecraft with ROCK 64 - xalius - 02-23-2018 I am pretty sure you can not build that module from mainline 4.13.x against a BSP kernel 4.4.77... as I said above, you have to cherry-pick the patches from linux-lima-4.13 and apply them to https://github.com/ayufan-rock64/linux-mainline-kernel/ ... RE: [Progressed] [Successful] How to play Minecraft with ROCK 64 - jegb - 03-05-2018 (02-23-2018, 10:26 AM)xalius Wrote: I am pretty sure you can not build that module from mainline 4.13.x against a BSP kernel 4.4.77... as I said above, you have to cherry-pick the patches from linux-lima-4.13 and apply them to https://github.com/ayufan-rock64/linux-mainline-kernel/ ... I am getting this on $sudo make install: CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK include/generated/bounds.h CHK include/generated/timeconst.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh make[1]: 'include/generated/vdso-offsets.h' is up to date. CHK scripts/mod/devicetable-offsets.h CHK include/generated/compile.h CHK kernel/config_data.h /bin/bash ./arch/arm64/boot/install.sh 4.4.114-gccfa68a3e270-dirty \ arch/arm64/boot/Image System.map "/boot" run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.114-gccfa68a3e270-dirty /boot/vmlinuz-4.4.114-gccfa68a3e270-dirty run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.114-gccfa68a3e270-dirty /boot/vmlinuz-4.4.114-gccfa68a3e270-dirty update-initramfs: Generating /boot/initrd.img-4.4.114-gccfa68a3e270-dirty WARNING: missing /lib/modules/4.4.114-gccfa68a3e270-dirty Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.4.114-gccfa68a3e270-dirty: No such file or directory depmod: FATAL: could not search modules: No such file or directory Warning: root device does not exist depmod: WARNING: could not open /var/tmp/mkinitramfs_AwXRHp/lib/modules/4.4.114-gccfa68a3e270-dirty/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_AwXRHp/lib/modules/4.4.114-gccfa68a3e270-dirty/modules.builtin: No such file or directory Using DTB: rk3328-rock64.dtb Couldn't find DTB rk3328-rock64.dtb in /usr/lib/linux-image-4.4.114-gccfa68a3e270-dirty or /etc/flash-kernel/dtbs run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1 run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1 arch/arm64/boot/Makefile:54: recipe for target 'install' failed make[1]: *** [install] Error 1 arch/arm64/Makefile:119: recipe for target 'install' failed make: *** [install] Error 2 Could you describe how to apply the patches for this lib? /lib/modules/4.4.114-gccfa68a3e270-dirty RE: [Progressed] [Successful] How to play Minecraft with ROCK 64 - pine3228 - 03-05-2018 (03-05-2018, 01:36 AM)jegb Wrote:(02-23-2018, 10:26 AM)xalius Wrote: I am pretty sure you can not build that module from mainline 4.13.x against a BSP kernel 4.4.77... as I said above, you have to cherry-pick the patches from linux-lima-4.13 and apply them to https://github.com/ayufan-rock64/linux-mainline-kernel/ ... Thank you for trying out various things. By the way, what is a patch? RE: [Repaired] [Progressed] [Successful] How to play Minecraft with ROCK 64 - pine3228 - 03-11-2018 パッチはどのように当てて、どのようにコンパイルすればよいのでしょうか? それがコンパイルできれば、「make install」をせず、ファイルを「/lib/modules/4.4.77-rockchip-ayufan-136」にコピーし、「depmod -A」を実行するのはだめなのでしょうか? Google Translate : How do you apply patches and how do I compile them? If it can be compiled, is it not possible to copy "file" to "/lib/modules/4.4.77-rockchip-ayufan-136" without executing "make install" and execute "depmod-A"? |