1
0

Banana Pro README

This commit is contained in:
Jybz 2019-10-20 10:54:27 +00:00
parent dd18f517a8
commit 8c5424569d

View File

@ -10,10 +10,23 @@ Short
<a id="SBC_INFO"/> <a id="SBC_INFO"/>
# About the Banana Pro SBC from LeMaker # About the Banana Pro SBC from LeMaker
Not written. ## External links
http://wiki.lemaker.org/BananaPro/Pi:Building_u-boot,_script.bin_and_linux-kernel#Building_the_kernel
http://wiki.lemaker.org/BananaPro/Pi:Setting_up_the_bootable_SD_card
https://sites.google.com/site/manisbutareed/bringing-my-beagles-to-heel/selected-annotated-u-boot-commands
https://linux-sunxi.org/Mainline_Kernel_Howto
https://linux-sunxi.org/Manual_build_howto#Setting_up_the_boot_partition
https://stackoverflow.com/questions/28891221/uenv-txt-vs-boot-scr
https://github.com/linux-sunxi/u-boot-sunxi/wiki
## LeMaker BPS (board package support)
git clone --recursive https://github.com/LeMaker/lemaker-bsp.git
./fex2bin ../sunxi-boards/sys_config/a20/BananaPro.fex ../../mageia4arm/bananaPro/script.bin
<a id="UBOOT_INFO"/> <a id="UBOOT_INFO"/>
# About U-Boot # About U-Boot
The mainline U-Boot is used for this port.
## Mainline
``` ```
CONFIG_PATH=~/workspaces/mageia4arm/platforms/bananaPro CONFIG_PATH=~/workspaces/mageia4arm/platforms/bananaPro
git clone https://gitlab.denx.de/u-boot/u-boot git clone https://gitlab.denx.de/u-boot/u-boot
@ -56,7 +69,47 @@ bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR}
mkimage -C none -A arm -T script -d ${CONFIG_PATH}/boot.cmd ${CONFIG_PATH}/boot.scr mkimage -C none -A arm -T script -d ${CONFIG_PATH}/boot.cmd ${CONFIG_PATH}/boot.scr
## UBoot Sunxi From LeMaker
Obsolet, see 'LeMaker BPS (board package support)'.
## UBoot Sunxi
Generic u-boot for sunxi
```
git clone https://github.com/linux-sunxi/u-boot-sunxi
make CROSS_COMPILE=arm-linux-gnu- Bananapro_config
make CROSS_COMPILE=arm-linux-gnu- -j8
make CROSS_COMPILE=arm-linux-gnu-
#Need network support to give the MAC address.
#Do not activate boot timing.
#Default conf use bootz and dtb tree.
```
## Default LeMaker script
```
setenv bootargs console=ttyS0,115200 noinitrd
disp.screen0_output_mode=EDID:1280x720p50 init=/init
root=/dev/mmcblk0p2 rootwait panic=10 ${extra}
fatload mmc 0 0x43000000 script.bin
fatload mmc 0 0x48000000 uImage
bootm 0x48000000
```
## DTB from Linux Mainline
```
git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git --depth=1
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- sunxi_defconfig
ARCH=arm CROSS_COMPILE=arm-linux-gnu- make -j8 dtbs
cp ./arch/arm/boot/dts/sun7i-a20-bananapro.dtb ./sun7i-a20-bananapro.dtb
```
<a id="KERNEL_INFO"/> <a id="KERNEL_INFO"/>
# About the Kernel # About the Kernel
Not Written. Not Written.
## Generate symlink
```
#Generating a symbolic relative link to the "last" kernel :
ln -r -s ./vmlinuz-5.2.13-desktop-2.mga7 ./vmlinuz
rm -f ./vmlinuz && ln -r -s ./vmlinuz-5.3.1-desktop-2.mga7 ./vmlinuz
```