mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
fb005d688e
All of U-Boot scripts repeat the same pattern with only Device Tree blob name changing for respective device. Therefore create generic scripts which will be altered on demad by image build process, and create BOOT_SCRIPT variable which can be added to device recipe and will allow referencing the same script by many device recipes. This will allow to slim down the ammount of files in buildroot tree and avoid needlessly incrementing amount of boot scripts if new devices will be added. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
11 lines
236 B
Plaintext
11 lines
236 B
Plaintext
setenv bootargs "root=PARTUUID=@ROOT@-02 rw rootwait"
|
|
|
|
if test -n "${console}"; then
|
|
setenv bootargs "${bootargs} ${console}"
|
|
fi
|
|
|
|
load mmc 0:1 ${fdt_addr} @DTB@.dtb
|
|
load mmc 0:1 ${kernel_addr} Image
|
|
|
|
booti ${kernel_addr} - ${fdt_addr}
|