mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-23 11:33:32 +00:00
3bc6257e80
Add i.MX8QM DMSSE20 a1 board support U-Boot 2023.04-00030-g7be2f547b2 (Apr 21 2023 - 11:11:43 +0200) Model: Advantech iMX8QM DMSSE20 Board: DMS-SE20A1 8GB Build: SCFW 549b1e18, SECO-FW c9de51c0, ATF 5782363 Boot: USB DRAM: 8 GiB Core: 100 devices, 19 uclasses, devicetree: separate MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2 Loading Environment from MMC... OK In: serial@5a060000 Out: serial@5a060000 Err: serial@5a060000 Net: eth0: ethernet@5b040000 Warning: ethernet@5b050000 (eth1) using random MAC address - 32:05:0c:f9:5e:10 , eth1: ethernet@5b050000 Hit any key to stop autoboot: 0 Signed-off-by: Oliver Graute <oliver.graute@kococonnector.com>
48 lines
1.4 KiB
Bash
48 lines
1.4 KiB
Bash
script=boot.scr
|
|
image=Image
|
|
panel=NULL
|
|
console=ttyLP0
|
|
earlycon=lpuart32,0x5a060000
|
|
fdt_addr=0x83000000
|
|
boot_fdt=try
|
|
fdt_file=imx8qm-dmsse20-a1.dtb
|
|
mmcdev= __stringify(CONFIG_SYS_MMC_ENV_DEV)
|
|
mmcpart= __stringify(CONFIG_SYS_MMC_IMG_LOAD_PART)
|
|
mmcroot=/dev/mmcblk1p2 rootwait rw
|
|
mmcautodetect=yes
|
|
mmcargs=setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate} root=${mmcroot}
|
|
loadbootscript=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${script};
|
|
bootscript=echo Running bootscript from mmc ...; source
|
|
loadimage=fatload mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}
|
|
loadfdt=fatload mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}
|
|
mmcboot=echo Booting from mmc ...;
|
|
run mmcargs;
|
|
if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
|
|
if run loadfdt; then
|
|
booti ${loadaddr} - ${fdt_addr};
|
|
else
|
|
echo WARN: Cannot load the DT;
|
|
fi;
|
|
else
|
|
echo wait for boot;
|
|
fi;
|
|
netargs=setenv bootargs console=${console},${baudrate} earlycon=${earlycon},${baudrate}
|
|
root=/dev/nfs
|
|
ip=dhcp mac=${ethaddr} nfsroot=${serverip}:${nfsroot},v3,tcp rw
|
|
netboot=echo Booting from net ...;
|
|
run netargs;
|
|
if test ${ip_dyn} = yes; then
|
|
setenv get_cmd dhcp;
|
|
else
|
|
setenv get_cmd tftp;
|
|
fi;
|
|
${get_cmd} ${loadaddr} ${image};
|
|
if test ${boot_fdt} = yes || test ${boot_fdt} = try; then
|
|
if ${get_cmd} ${fdt_addr} ${fdt_file}; then
|
|
booti ${loadaddr} - ${fdt_addr};
|
|
else
|
|
echo WARN: Cannot load the DT;
|
|
fi;
|
|
else
|
|
booti;
|
|
fi;
|