arm:build also generate cmdline.txt
Also generate cmdline.txt as we need to use a different serial for the AM335X boards. Change-Id: I18c1b5911b5d7238d4a765e0aa01613908d9f2e6
This commit is contained in:
parent
3139ce9631
commit
167c4d972f
3 changed files with 39 additions and 3 deletions
|
@ -145,18 +145,30 @@ END_SFDISK
|
||||||
#
|
#
|
||||||
mkfs.vfat ${IMG_DIR}/fat.img
|
mkfs.vfat ${IMG_DIR}/fat.img
|
||||||
|
|
||||||
|
#
|
||||||
|
# Create a uEnv.txt file
|
||||||
|
# -n default to network boot
|
||||||
|
# -p add a prefix to the network booted files (e.g. xm/"
|
||||||
./releasetools/gen_uEnv.txt.sh > ${IMG_DIR}/uEnv.txt
|
./releasetools/gen_uEnv.txt.sh > ${IMG_DIR}/uEnv.txt
|
||||||
|
|
||||||
|
#
|
||||||
|
#
|
||||||
|
# options:
|
||||||
|
# -c set console e.g. tty02 or tty00
|
||||||
|
# -v set verbosidy e.g. 0 to 3
|
||||||
|
./releasetools/gen_cmdline.txt.sh > ${IMG_DIR}/cmdline.txt
|
||||||
|
|
||||||
echo "Copying configuration kernel and boot modules"
|
echo "Copying configuration kernel and boot modules"
|
||||||
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/$MLO ::MLO
|
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/$MLO ::MLO
|
||||||
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/$UBOOT ::u-boot.img
|
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/$UBOOT ::u-boot.img
|
||||||
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/uEnv.txt ::uEnv.txt
|
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/uEnv.txt ::uEnv.txt
|
||||||
mcopy -bsp -i ${IMG_DIR}/fat.img releasetools/cmdline.txt ::cmdline.txt
|
mcopy -bsp -i ${IMG_DIR}/fat.img ${IMG_DIR}/cmdline.txt ::cmdline.txt
|
||||||
|
|
||||||
#
|
#
|
||||||
# For tftp booting
|
# For tftp booting
|
||||||
#
|
#
|
||||||
cp ${IMG_DIR}/uEnv.txt ${OBJ}/
|
cp ${IMG_DIR}/uEnv.txt ${OBJ}/
|
||||||
cp releasetools/cmdline.txt ${OBJ}/
|
cp ${IMG_DIR}/cmdline.txt ${OBJ}/
|
||||||
|
|
||||||
#
|
#
|
||||||
# Do some last processing of the kernel and servers before also putting
|
# Do some last processing of the kernel and servers before also putting
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
console=tty02 rootdevname=c0d0p1s0 verbose=3
|
|
25
releasetools/gen_cmdline.txt.sh
Executable file
25
releasetools/gen_cmdline.txt.sh
Executable file
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#default for the beagleboard-xM
|
||||||
|
CONSOLE=tty02
|
||||||
|
#verbosity
|
||||||
|
VERBOSE=3
|
||||||
|
while getopts "c:v:?" c
|
||||||
|
do
|
||||||
|
case "$c" in
|
||||||
|
\?)
|
||||||
|
echo "Usage: $0 [-c consoletty] [-v level]" >&2
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
c)
|
||||||
|
# genrate netbooting uEnv.txt
|
||||||
|
CONSOLE=$OPTARG
|
||||||
|
;;
|
||||||
|
v)
|
||||||
|
# genrate netbooting uEnv.txt
|
||||||
|
VERBOSE=$OPTARG
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
echo console=$CONSOLE rootdevname=c0d0p1s0 verbose=$VERBOSE
|
Loading…
Reference in a new issue