I have now successfully completed the 'make' for bananapi-bsp, as I mentioned having started above.|
As promised, I'm now also posting the text file holding the commands I used, one by one, in order to build my cross-compile environment and build the bananapi-bsp clone project.
I've also flashed a card with the 'CubieBoard 2' BerryBoot image, and prepared to replace files in its FAT32 partition. Copy the Code
- # Note that many of the commands below require separate user confirmations
- # I've split them up this way because sequential commands were being aborted
- sudo apt-get install build-essential
- sudo su
- apt-get autoremove
- # The above removal was to get rid of duplicates from older work
- sudo apt-get install u-boot-tools
- sudo apt-get install binutils-arm-linux-gnueabihf
- sudo apt-get install gcc-4.7-arm-linux-gnueabihf-base
- sudo apt-get install g++-4.7-arm-linux-gnueabihf
- sudo apt-get install gcc-arm-linux-gnueabihf
- sudo apt-get install cpp-arm-linux-gnueabihf
- sudo apt-get install libusb-1.0-0
- sudo apt-get install libusb-1.0-0-dev
- sudo apt-get install git
- sudo apt-get install wget
- sudo apt-get install fakeroot
- sudo apt-get install kernel-package
- sudo apt-get install zlib1g-dev
- sudo apt-get install libncurses5-dev
- cd WHEREVER_YOU_WANT_YOUR_GIT_CLONES
- git clone https://github.com/LeMaker/bananapi-bsp.git
- cd bananapi-bsp
- ./configure Bananapi
- # If you get here without errors the job is completed
- # End of File
The "script.bin" file is no problem, as the original image contains such a file which I simply replace with my own.
Then there was the u-boot SPL stuff, which was also stated as necessary, and which I believe I have compiled in the form of a file named "u-boot-sunxi-with-spl.bin", though there are a few other 'candidates' for that honor. I simply don't know how to use any of these.
So this is where I meet with a dealbreaker:
The original image contains nothing recognizable corresponding to the "u-boot-sunxi-with-spl.bin", which I supposedly need to add to the new image, though obviously under some other name or by other than normal means, since the existing image files have no clue that a file with that name should be invoked under any circumstances. And if I don't modify its current way of booting, the file I add will simply be ignored.
I'd appreciate any pointers for how to proceed now. I believe I have all components, but just don't know how to combine them.
Best regards: dlanor