File: bootscr.beaglebone

package info (click to toggle)
flash-kernel 3.35%2Bdeb8u3
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 600 kB
  • ctags: 8
  • sloc: sh: 297; makefile: 23
file content (27 lines) | stat: -rw-r--r-- 860 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# boot script for BeagleBone Black

# BeagleBone white uses a different .dtb file, and flash-kernel is
# currently unable to support multiple .dtb files.
if test "${board_name}" = "A335BONE"
then
  echo "BeagleBone white detected, unsupported platform."
  echo "Exiting in 10 seconds..."
  sleep 10
  exit
fi

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