You’ll find that link also on startpage of my wiki. The archive-file contains folders boot and root,which contents have to be copied to the partitions bpi-root/bpi-boot of sd-card.
Currently i have no emmc-image,i’m building currently a clean debian on my emmc. Install on emmc is a bit more tricky because of the partition-change and burning preloader to boot-device
Thanks for your help. I have tried to replace boot and root (lib folder) files but received kernel panic on boot. I will try more but wanted to confirm: Files in lib folder should be replaced or merged?
I think I’ve made it working (I will try tomorrow with real UART to USB converter when I receive my level shifter). Thanks a lot. Do you think Its possible to write everything from SD to EMMC? Or it will work only from SD?
I will try to do like this and share my results. Thanks
copy kernel (p1) and modules (p2, if you not want to copy full rootfs from SD card)
mkdir -p /mnt/emmc/boot/bananapi/bpi-r2/linux
cp /boot/bananapi/bpi-r2/linux/uImage /mnt/emmc/boot/bananapi/bpi-r2/linux
mkdir -p /mnt/emmc/root/lib/modules/
cp -r /lib/modules/$(uname -r) /mnt/emmc/root/lib/modules/
uboot auf die richtige Partition konfigurieren
sed 's/mmcblk0/mmcblk1/' /boot/bananapi/bpi-r2/linux/uEnv.txt > /mnt/emmc/boot/bananapi/bpi-r2/linux/uEnv.txt
I have manually copied uImage and kernel to eemc on my already preinstalled debian9 and its working fine. Now its booting from emmc using your kernel. Thank a lot Frank, you are the best
Do you happen to know if I can move rootfs to SATA hdd using your kernel? I read somewhere that it should be custom kernel so sata will be available on boot.
you can only copy rootfs to hdd/ssd (boot-partition must be on emmc/SD)
you just need to change uenv.txt (on sd/emmc) to point to you hdd/ssd-partition (root=/dev/sdax) and change /etc/fstab in your rootfs so that the right / is mounted
but now it’s leaving the topic…please make a new topic if you have more questions
@frank-w Till now I am testing with UART0 & UART1 with ttyS1 & ttyS2.
I am using RS485/ModbusRTU on these serial ports. However, I am facing some issues while communicating Modbus slave devices over ttyS1 & ttyS2. I can see that these ports also used by login consoles and hence the RS485 modbus failed to communicate devices correctly over modbus prototcol. Is there anyway I can assign some other ports instead of these ttyS1 & ttyS2 for UART0/1?.