How to create boot SD card for Banana Pi manually

10,644

I think you've missed bootloader. U-Boot has to be present on your SD. Take a look at how the SD layout should be for the Banana Pi / Pro:

http://wiki.lemaker.org/BananaPro/Pi:Setting_up_the_bootable_SD_card#SD_Card_Layout

Share:
10,644

Related videos on Youtube

IlikePepsi
Author by

IlikePepsi

Updated on September 18, 2022

Comments

  • IlikePepsi
    IlikePepsi almost 2 years

    It seems that I have a lack of understanding how booting SD-Card images on devices like the Banana Pi work. The situation is as follows.

    I have a Banana Pi and a Banana Pro. Every device has an image of some distribution on a SD card plugged into the device (Banana Pro -> Arch Linux, Banana Pi -> Bananian). The images can be downloaded from here and here. This works fine.

    But since the Banana Pi / Pro has a SATA port, it would be nice if the root system could be booted from an attached Hard Drive. As can be read here this can be accomplished quite simple.

    But now comes the part I'm struggling with. Flashing an entire 4GB SD card (or even larger ones) with the distributions image and using just a 50MB partition seems a bit wasteful. So I tried to use a smaller SD card.

    I created a partiton with fdisk (50MB size) and used mkfs.vfat -F 16 /dev/sdXX to create the filesystem on the partiton. I made it FAT 16 because of the parted output while examining the image file.

    enter image description here.

    After that I mounted the partion from the image to /tmp/boot with sudo mount -o loop,offset=1048576 ArchLinux_For_BananaPro_v1412.img /tmp/boot. The offset value is the Start value in the parted output.

    Copied the files (script.bin, uEnv.txt, uImage) to my SD card partition, changed the root path in uEnv.txt. Made a sync and dismounted the SD card.

    Everything seems fine. Even when comparing the boot partitons on a SD card flashed with the entire image and my SD card with only the boot partiton, they are identical (according to fdisk)

    enter image description here

    But the Banana Pi / Pro won't boot with the SD card with just a boot partition providing the u-boot files.

    Has anyone a clue on that behaviour?

    UPDATE:

    Thanks to @BananaFreak I recognized my mistake. The bootloader was indeed missing but even after following that guide from lemaker the BananaPro does not boot. One weird thing on the lemaker wiki page is the first sentence stating:

    Note: these instructions are for a Linux computer, not the Banana Pro/Pi!!

  • IlikePepsi
    IlikePepsi almost 9 years
    Ah ok, seems logic. I thought the bootloader will also be copied on the sd-card when using dd but it's not part of the 1st partition and therefore needs to be installed separately. I'll try that as soon as possible. Thx
  • IlikePepsi
    IlikePepsi almost 9 years
    Today I made some deeper dives into the booting process on the BananaPro and I guess it's an issue how u-boot (the bootloader) was compiled. I guess for what I tried to achieve a recompilation of u-boot would be necessary. Though I will mark your answer as the correct one.
  • Rui F Ribeiro
    Rui F Ribeiro over 8 years
    I have a Lamobo R1...cutting the story short. When it comes to Linux Sinovoip/Lemaker make a minimum effort. I tried Bananian and it was crap. Use Armbian, it is so much better and they have been making a serious effort solving most of the problems. armbian.com/banana-pi-pro