File: bootscr.beaglebone

package info (click to toggle)
flash-kernel 3.25~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 588 kB
  • sloc: sh: 297; makefile: 23
file content (17 lines) | stat: -rw-r--r-- 580 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# boot script for BeagleBone

setenv device mmc
setenv partition ${bootpart}
setenv bootargs ${bootargs} @@LINUX_KERNEL_CMDLINE@@

image_locations='/boot/ /'
kvers='@@KERNEL_VERSION@@'

for pathprefix in ${image_locations}
do
  load ${device} ${partition} ${loadaddr} ${pathprefix}vmlinuz-${kvers} \
  && load ${device} ${partition} ${fdtaddr} ${pathprefix}dtb-${kvers} \
  && load ${device} ${partition} ${rdaddr} ${pathprefix}initrd.img-${kvers} \
  && echo "Booting Debian ${kvers} from ${device} ${partition}..." \
  && bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}
done