diff options
author | Jybz <j.biernacki@free.fr> | 2019-12-05 07:51:14 +0100 |
---|---|---|
committer | Jybz <j.biernacki@free.fr> | 2019-12-05 07:51:14 +0100 |
commit | 6bd962556291bb122fab1024795c74b27fc1c470 (patch) | |
tree | ac1c0448797bb60af080b42aaa348d5d8463e81a /platforms/bananaPro/INFO/UBOOT-Process | |
parent | 2a82e889e8fc50d72be705ded4a50292c02b38b0 (diff) | |
download | mageia4arm-6bd962556291bb122fab1024795c74b27fc1c470.tar mageia4arm-6bd962556291bb122fab1024795c74b27fc1c470.tar.gz mageia4arm-6bd962556291bb122fab1024795c74b27fc1c470.tar.bz2 mageia4arm-6bd962556291bb122fab1024795c74b27fc1c470.tar.xz mageia4arm-6bd962556291bb122fab1024795c74b27fc1c470.zip |
sync
Diffstat (limited to 'platforms/bananaPro/INFO/UBOOT-Process')
-rw-r--r-- | platforms/bananaPro/INFO/UBOOT-Process | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/platforms/bananaPro/INFO/UBOOT-Process b/platforms/bananaPro/INFO/UBOOT-Process new file mode 100644 index 0000000..c61c195 --- /dev/null +++ b/platforms/bananaPro/INFO/UBOOT-Process @@ -0,0 +1,55 @@ +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 + +echo ' +setenv KERNEL_FILE /boot/vmlinuz +setenv INIT_FILE /boot/initrd-5.4.0-rc3.img initrd-5.3.7.img +setenv DTB_FILE /boot/u-boot.dtb + +setenv INIT_FILE /boot/initrd-5.3.7-desktop-4.mga7.img +setenv DTB_FILE /boot/sun7i-a20-bananapro.dtb + +setenv KERNEL_ADDR 0x40008000 +setenv INIT_ADDR 0x45000000 +setenv DTB_ADDR 0x55000000 +setenv INIT_ADDR - + +ext4load mmc 0:1 ${KERNEL_ADDR} ${KERNEL_FILE} +ext4load mmc 0:1 ${INIT_ADDR} ${INIT_FILE} +ext4load mmc 0:1 ${DTB_ADDR} ${DTB_FILE} + +setenv bootargs console=ttyS0,115200 disp.screen0_output_mode=EDID:1024x768p50 hdmi.audio=EDID:0 +root=/dev/mmcblk0p1 rootfstype=ext4 elevator=deadline rootwait + +#printenv +bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR} +bootz ${KERNEL_ADDR} - ${DTB_ADDR} + +#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr" +' >${CONFIG_PATH}/boot.cmd + +mkimage -C none -A arm -T script -d ${CONFIG_PATH}/boot.cmd ${CONFIG_PATH}/boot.scr + +mkimage -A arm -T ramdisk -C lzma -n initrd -d ./initrd-5.3.7-desktop-4.mga7.img ./initrd-5.3.7.img + + +removed : +#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr" + +# setenv DTB_FILE /usr/lib/linux-5.3.7-desktop-4.mga7/sun7i-a20-bananapro.dtb + +# ext4load mmc 0:1 0x40008000 /boot/vmlinuz +# ext4load mmc 0:1 0x48000000 /boot/u-boot.dtb +# bootz 0x40008000 - 0x48000000 |