1
0
This repository has been archived on 2023-11-30. You can view files and clone it, but cannot push or open issues or pull requests.
dtux__mageia4arm/platforms/bananaPro/README.md

63 lines
1.8 KiB
Markdown
Raw Normal View History

2019-10-20 12:11:06 +02:00
Banana Pro SBC
2019-10-20 12:10:46 +02:00
==========
2019-10-20 12:11:06 +02:00
Short
-----
* [Board Informations](SBC_INFO)
* [U-Boot](UBOOT_INFO)
* [Kernel](KERNEL_INFO)
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
<a id="SBC_INFO"/>
# About the Banana Pro SBC from LeMaker
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
Not written.
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
<a id="UBOOT_INFO"/>
# About U-Boot
2019-10-20 12:10:46 +02:00
```
2019-10-20 12:11:06 +02:00
CONFIG_PATH=~/workspaces/mageia4arm/platforms/bananaPro
git clone https://gitlab.denx.de/u-boot/u-boot
cd u-boot
make CROSS_COMPILE=arm-linux-gnu- Bananapro_defconfig
cp ${CONFIG_PATH}/UBOOT.config ./.config
#Just modify few unimportant things, like prompt, name, ...
make ARCH=arm CROSS_COMPILE=arm-linux-gnu- -j8
make ARCH=arm CROSS_COMPILE=arm-linux-gnu-
#cp ./u-boot.dtb ${CONFIG_PATH}/sun7i-a20-bananapro.dtb
cp -f ./u-boot.dtb ${CONFIG_PATH}/u-boot.dtb
cp -f ./arch/arm/dts/sun7i-a20-bananapro.dtb ${CONFIG_PATH}/sun7i-a20-bananapro.dtb
cp -f ./u-boot-sunxi-with-spl.bin ${CONFIG_PATH}/u-boot-sunxi-with-spl.bin
#Inside "specialFunctions.sh"
#dd if=${CONFIG_PATH}/u-boot-sunxi-with-spl.bin of=${DEVICE} bs=1024 seek=8
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
echo '
setenv KERNEL_FILE /boot/vmlinuz
setenv INIT_FILE /boot/initrd.img
#setenv DTB_FILE /boot/sun7i-a20-bananapro.dtb
setenv DTB_FILE /boot/u-boot.dtb
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
setenv KERNEL_ADDR 0x40008000
#setenv INIT_ADDR 0x45000000
setenv INIT_ADDR -
setenv DTB_ADDR 0x48000000
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
ext4load mmc 0:1 ${KERNEL_ADDR} ${KERNEL_FILE}
#ext4load mmc 0:1 ${INIT_ADDR} ${INIT_FILE}
ext4load mmc 0:1 ${DTB_ADDR} ${DTB_FILE}
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
setenv bootargs console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0 root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
#printenv
bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR}
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr"
' >${CONFIG_PATH}/boot.cmd
2019-10-20 12:10:46 +02:00
```
2019-10-20 12:11:06 +02:00
mkimage -C none -A arm -T script -d ${CONFIG_PATH}/boot.cmd ${CONFIG_PATH}/boot.scr
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
<a id="KERNEL_INFO"/>
# About the Kernel
2019-10-20 12:10:46 +02:00
2019-10-20 12:11:06 +02:00
Not Written.