Hello BPI Team,
I have a BPI R2 PRO . I have tried to upload emmc flash file but there was something going wrong and i upload to SD card image which is in this link
Thanks you for your answer , Now should I build this https://github.com/frank-w/barebox-r2pro project? Or there was another repo there? Could you hel me?
Best Regards
barebox is alternate bootloader (to replace uboot).
just use my BPI-R2-4.14 repo which also contains kernelsource for r2pro up to 6.0-rc. 5.19-main contains the last stable version, just change in build.conf to r2pro and running ./build.sh with param importconfig, then dts (to open the boards dts), then config (to change anything in your config if needed) and then without param to build
Thanks for your reply. I will do it. I have last question. After build can i take image for SD card just like banana pi r2 or is this require another process.
kernel supports both, but it requires a rootfs after kernel is loaded…you can first try with an initrd (busybox or similar) and then create an own rootfs with linux you want (debian,ubuntu,archlinux,…). or simply use one of my images and replace kernel/fdt only (in your case i guess fdt replace is enough)
only bootheaders are different and config in rootfs…
Thank you for your eply vut i did not understand. Now I build your sd image for debian 10 with Rockchip Create Upgrade Disk Tool program. After this, i see boot,bin,dev folders. where should i paste kernel folder . Could you help me about that?
Best Regards
Flash my debian to disk,compile kernel on your host system and copy arch/arm64/boot/Image.gz and arch/arm64/boot/dts/rockchip/rk3568-bpi-r2pro.dtb to the boot partition in extlinux folder and change config to match filenames
Thank you for your reply but i am sory i do not understand. Now i have folders in my SD card which are produced by Rockchip Upgrade tool . Other side i build your repo and extract BPI-BOOT and BPI-ROOT another folder. I found files you mantioned above. Bu i do not under stand how i can paste this file in my sd card
i have not used rockchip tool yet so i do not know the structure it produces…basicly you neee to find the kernel loaded in your image and replace it by my one. but there can be problems if you try to load mainline kernel with downstream uboot/atf. so i suggest using a actual bootchain like in my images to load actual kernel
You tried my images? Make sure you press maskrom button on first boot directly on poweron. Else board will boot from broken emmc and got stuck.
When you booted successfully from sdcard (you see it in uboot version…my version is 2021/22 and downstream is 2017 or 2019). Boot linux without pressing the button. This will cause emmc is found by linux and will let you erase the first 10M of it. After that boot from sd works without problems
of course you can try to add missing defs to the BSP-repo…but then not into the SOC-level devicetree…use the board-level dts
Hello I found boot partition location now. There are uboot misc,recovery,backup parts too. Could you tell me how can i modify this partition, i am new at ubuntu.
Best regards
My images have simple fat boot partition with kernel/fdt files. It can be flashed with linux dd or any other image writing app
You have to do only the emmc erase at first time as my uboot is mainline and is not compatible with downstream version which seems to have parts already on emmc