]>
git.siccegge.de Git - forks/vmdebootstrap.git/blob - examples/beagleboneblack-customise.sh
7 # copy u-boot to the boot partition
8 cp $rootdir/usr
/lib
/u-boot
/am335x_boneblack
/MLO
$rootdir/boot
/MLO
9 cp $rootdir/usr
/lib
/u-boot
/am335x_boneblack
/u-boot.img
$rootdir/boot
/u-boot.img
12 kernelVersion
=$
(basename `dirname $rootdir/usr/lib/*/am335x-boneblack.dtb`)
13 version
=$
(echo $kernelVersion |
sed 's/linux-image-\(.*\)/\1/')
14 initRd
=initrd.img-
$version
15 vmlinuz
=vmlinuz-
$version
17 # uEnv.txt for Beaglebone
18 # based on https://github.com/beagleboard/image-builder/blob/master/target/boot/beagleboard.org.txt
19 cat >> $rootdir/boot
/uEnv.txt
<<EOF
20 mmcroot=/dev/mmcblk0p2 ro
21 mmcrootfstype=ext4 rootwait fixrtc
23 console=ttyO0,115200n8
29 initrd_addr=0x81000000
32 initrd_high=0xffffffff
35 loadkernel=load mmc \${mmcdev}:\${mmcpart} \${loadaddr} \${kernel_file}
36 loadinitrd=load mmc \${mmcdev}:\${mmcpart} \${initrd_addr} \${initrd_file}; setenv initrd_size \${filesize}
37 loadfdt=load mmc \${mmcdev}:\${mmcpart} \${fdtaddr} /dtbs/\${fdtfile}
39 loadfiles=run loadkernel; run loadinitrd; run loadfdt
40 mmcargs=setenv bootargs console=tty0 console=\${console} root=\${mmcroot} rootfstype=\${mmcrootfstype}
42 uenvcmd=run loadfiles; run mmcargs; bootz \${loadaddr} \${initrd_addr}:\${initrd_size} \${fdtaddr}
45 mkdir
-p $rootdir/boot
/dtbs
46 cp $rootdir/usr
/lib
/linux-image-
*-armmp/* $rootdir/boot
/dtbs