public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* command documentation
@ 2020-09-09 17:03 Jasper van Santen
  2020-09-09 18:53 ` Ralph Siemsen
  0 siblings, 1 reply; 4+ messages in thread
From: Jasper van Santen @ 2020-09-09 17:03 UTC (permalink / raw)
  To: u-boot

Hi,

I am sorry to ask such a basic question, but i really can't find any
documentation on the commands possible in scripting.
Documentation of Hush and its commands i can't find.

I am working with the script in u-boot env below.
I can read it, but just because i am guessing.

Any help is appreciated

arch=arm
board=tinker_rk3288
board_name=tinker_rk3288
scriptaddr=0x00000000
soc=rockchip
vendor=rockchip
devnums=0 1
devtype=mmc
bootdelay=-2

fdt_addr_r=0x01f00000
fdt_high=0x0fffffff
fdtcontroladdr=7df5c620
ramdisk_addr_r=0x04000000
kernel_addr_r=0x02000000

bootargs=console=tty2 quiet vt.global_cursor_default=0 rootwait
consoleblank=0 loglevel=0

scan_dev_for_boot_part= \
part list mmc ${devnum} -bootable devplist; \
env exists devplist || setenv devplist 1; \
for distro_bootpart in ${devplist}; do \
 if fstype mmc ${devnum}:${distro_bootpart} bootfstype; then \
  run scan_dev_for_boot; \
 fi; \
done

scan_dev_for_boot= \
if test -e mmc ${devnum}:${distro_bootpart} /boot/extlinux/extlinux.conf;
then \
 setenv bootargs ${bootargs} root=/dev/mmcblk${devnum}p${distro_bootpart}; \
 echo Booting with args: ${bootargs}; \
 sysboot mmc ${devnum}:${distro_bootpart} any ${scriptaddr}
/boot/extlinux/extlinux.conf; \
fi

bootcmd= \
for devnum in ${devnums}; do \
 if mmc dev ${devnum}; then \
  run scan_dev_for_boot_part; \
 fi; \
done


-- 

*Kind regards,Jasper van Santen*

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-10 12:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-09 17:03 command documentation Jasper van Santen
2020-09-09 18:53 ` Ralph Siemsen
2020-09-10  9:19   ` Jasper van Santen
2020-09-10 12:36     ` Ralph Siemsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox