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/boot.cmd

25 lines
836 B
Batchfile
Raw Normal View History

2019-10-20 12:03:40 +02:00
setenv KERNEL_FILE /boot/vmlinuz
setenv INIT_FILE /boot/initrd.img
setenv DTB_FILE /boot/u-boot.dtb
2019-11-05 22:48:58 +01:00
#setenv DTB_FILE /boot/sun7i-a20-bananapro.dtb
2019-10-20 12:03:40 +02:00
setenv KERNEL_ADDR 0x40008000
setenv DTB_ADDR 0x48000000
2019-11-05 22:48:58 +01:00
setenv INIT_ADDR 0x45000000
#setenv INIT_ADDR -
2019-10-20 12:03:40 +02:00
ext4load mmc 0:1 ${KERNEL_ADDR} ${KERNEL_FILE}
ext4load mmc 0:1 ${DTB_ADDR} ${DTB_FILE}
2019-11-05 22:48:58 +01:00
ext4load mmc 0:1 ${INIT_ADDR} ${INIT_FILE}
2019-10-20 12:03:40 +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
#printenv
bootz ${KERNEL_ADDR} ${INIT_ADDR} ${DTB_ADDR}
#Compile boot.scr : mkimage -C none -A arm -T script -d "${CONFIG_PATH}/boot.cmd" "${CONFIG_PATH}/boot.scr"
# ext4load mmc 0:1 0x40008000 /boot/vmlinuz
# ext4load mmc 0:1 0x48000000 /boot/u-boot.dtb
# bootz 0x40008000 - 0x48000000