You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
850 B
24 lines
850 B
8 years ago
|
# Standard Boot-Script
|
||
|
# use only well-known variable names provided by U-Boot Distro boot
|
||
7 years ago
|
# This script assumes that there is a boot partition,
|
||
8 years ago
|
# and that the root partition is always the next one.
|
||
8 years ago
|
|
||
7 years ago
|
# rootfs is always on the next partition
|
||
|
setexpr openwrt_rootpart ${distro_bootpart} + 1
|
||
|
|
||
|
# figure out partition uuid to pass to the kernel as root=
|
||
|
part uuid ${devtype} ${devnum}:${openwrt_rootpart} uuid
|
||
8 years ago
|
|
||
7 years ago
|
# generate bootargs (rootfs)
|
||
|
setenv bootargs ${bootargs} root=PARTUUID=${uuid} rootfstype=auto rootwait
|
||
8 years ago
|
|
||
|
# add console= option to bootargs, if any
|
||
|
if test -n "${console}"; then
|
||
|
setenv bootargs ${bootargs} console=${console}
|
||
|
fi
|
||
|
|
||
|
echo "Booting Linux with ${bootargs}"
|
||
6 years ago
|
load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} @DTB@.dtb
|
||
8 years ago
|
load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} zImage
|
||
|
bootz ${kernel_addr_r} - ${fdt_addr_r}
|