aboutsummaryrefslogtreecommitdiffstats
path: root/platforms
diff options
context:
space:
mode:
authorJybz <j.biernacki@free.fr>2019-10-02 20:30:26 +0000
committerJybz <j.biernacki@free.fr>2019-10-02 20:30:26 +0000
commitfcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a (patch)
tree940c11ad7dcf17d1468d6e80ccb40b2033b83ed7 /platforms
parent8c35faf11310f53bb9c582368ba2ef0b93a51f5d (diff)
downloadmageia4arm-fcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a.tar
mageia4arm-fcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a.tar.gz
mageia4arm-fcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a.tar.bz2
mageia4arm-fcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a.tar.xz
mageia4arm-fcc3b5b267c5d444a50ed8bd7ea0aea61c43aa3a.zip
Add process
Diffstat (limited to 'platforms')
-rw-r--r--platforms/bananaPro/Process37
1 files changed, 37 insertions, 0 deletions
diff --git a/platforms/bananaPro/Process b/platforms/bananaPro/Process
new file mode 100644
index 0000000..0eb8a46
--- /dev/null
+++ b/platforms/bananaPro/Process
@@ -0,0 +1,37 @@
+#REFERENCES :
+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
+
+#Generic u-boot for sunxi
+git clone https://github.com/linux-sunxi/u-boot-sunxi
+make CROSS_COMPILE=arm-linux-gnu- BananaPro_config
+#Default conf use bootz and dtb tree.
+
+#Default 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
+
+mkimage -C none -A arm -T script -d ./boot.cmd ./boot.scr
+
+#DTB from mainline linux kernel
+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
+
+#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