aoliv Posted June 20, 2017 Posted June 20, 2017 Hi, I am using the last image (kernel 11.5) for banana PI M1 and I successful use the nand-sata-install script. now I would like to copy the bootload to 128M SDCard Can someone help me?
Pavel Posted January 21, 2018 Posted January 21, 2018 Hi Armbian move banana pi boot partition to a smaller SD card after rootfs was moved to SATA drive: 1. clean new sdd card: dd if=/dev/zero of=/dev/sdc bs=1M count=1 2. copy bootloader to the new smaller SD card . You need to take bootloader from the previous SD card which was created during Armbian installation dd if=/mnt/sd_old/usr/lib/linux-u-boot-next-bananapi_5.35_armhf/u-boot-sunxi-with-spl.bin of=/dev/sdc bs=1024 seek=8 3. create a partiton ext4 with fdisk and format new sd card: mke2fs -t ext4 -L rootfs /dev/sdc1 4. Copy images and boot config files from the old SD card rsync -arx --progress /media/sd_old/boot/ /mnt/sd_new/ 5. Edit boot.cmd and replace root=/dev/mmcblk0p1 with root=/dev/sda1 (sda1 SATA drive) mkimage -C none -A arm -T script -d /mnt/sd_new/boot.cmd /mnt/sd_new/boot.scr 6. Mount your SATA drive where root FS was copied by the nand-install script In the fstab replace old sd card UUID with a UUID of the new SD card for /media/mmcboot mount point UUID=6b33f0ba-1043-4ff7-b069-3a116e6c6008 /media/mmcboot you can get UUID with blkid /dev/sdc1 Done
Recommended Posts