boot scripts: generate uImage and uInitrd address based on what board is selected

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent b7e8527497
commit 2e92c095de

@ -157,6 +157,12 @@ fi
echo "Using: ${ACTUAL_DEB_FILE}" echo "Using: ${ACTUAL_DEB_FILE}"
#Set uImage boot address
sed -i -e 's:UIMAGE_ADDR:'$UIMAGE_ADDR':g' ${DIR}/scripts/boot.scr/*.cmd
#Set uInitrd boot address
sed -i -e 's:UINITRD_ADDR:'$UINITRD_ADDR':g' ${DIR}/scripts/boot.scr/*.cmd
if [ "$USB_ROOTFS" ];then if [ "$USB_ROOTFS" ];then
sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd
sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd
@ -731,6 +737,12 @@ echo "done"
function reset_scripts { function reset_scripts {
#Set uInitrd boot address
sed -i -e 's:'$UIMAGE_ADDR':UIMAGE_ADDR:g' ${DIR}/scripts/boot.scr/*.cmd
#Set uInitrd boot address
sed -i -e 's:'$UINITRD_ADDR':UINITRD_ADDR:g' ${DIR}/scripts/boot.scr/*.cmd
if [ "$USB_ROOTFS" ];then if [ "$USB_ROOTFS" ];then
sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd
sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd
@ -787,6 +799,8 @@ case "$UBOOT_TYPE" in
DO_UBOOT=1 DO_UBOOT=1
HASMLO=1 HASMLO=1
ABI_VER=1 ABI_VER=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
;; ;;
beagle) beagle)
@ -796,6 +810,8 @@ case "$UBOOT_TYPE" in
DO_UBOOT=1 DO_UBOOT=1
HASMLO=1 HASMLO=1
ABI_VER=7 ABI_VER=7
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
;; ;;
panda) panda)
@ -806,6 +822,8 @@ case "$UBOOT_TYPE" in
HASMLO=1 HASMLO=1
ABI_VER=2 ABI_VER=2
SMSC95XX_MOREMEM=1 SMSC95XX_MOREMEM=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
;; ;;
touchbook) touchbook)
@ -815,6 +833,8 @@ case "$UBOOT_TYPE" in
DO_UBOOT=1 DO_UBOOT=1
HASMLO=1 HASMLO=1
ABI_VER=5 ABI_VER=5
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
BETA_KERNEL=1 BETA_KERNEL=1
SERIAL_MODE=1 SERIAL_MODE=1
@ -827,6 +847,8 @@ case "$UBOOT_TYPE" in
DO_UBOOT=1 DO_UBOOT=1
HASMLO=1 HASMLO=1
ABI_VER=6 ABI_VER=6
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
#with the crane, we need the beta kernel and serial-more #with the crane, we need the beta kernel and serial-more
BETA_KERNEL=1 BETA_KERNEL=1
@ -840,6 +862,8 @@ case "$UBOOT_TYPE" in
DO_UBOOT=1 DO_UBOOT=1
DO_UBOOT_DD=1 DO_UBOOT_DD=1
ABI_VER=8 ABI_VER=8
UIMAGE_ADDR="0x70800000"
UINITRD_ADDR="0x72100000"
BETA_KERNEL=1 BETA_KERNEL=1
SERIAL_MODE=1 SERIAL_MODE=1

@ -1,7 +1,7 @@
echo "Debug: Maverick DVI" echo "Debug: Maverick DVI"
setenv dvimode 1280x720MR-16@60 setenv dvimode 1280x720MR-16@60
setenv vram 12MB setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,7 +1,7 @@
echo "Debug: Natty DVI" echo "Debug: Natty DVI"
setenv dvimode 1280x720MR-16@60 setenv dvimode 1280x720MR-16@60
setenv vram 12MB setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,7 +1,7 @@
echo "Debug: Squeeze DVI" echo "Debug: Squeeze DVI"
setenv dvimode 1280x720MR-16@60 setenv dvimode 1280x720MR-16@60
setenv vram 12MB setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,7 +1,7 @@
echo "Debug: running debian netinstall" echo "Debug: running debian netinstall"
setenv dvimode 1280x720MR-16@60 setenv dvimode 1280x720MR-16@60
setenv vram 12MB setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage.net; fatload mmc 0:1 0x81600000 uInitrd.net; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage.net; fatload mmc 0:1 UINITRD_ADDR uInitrd.net; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=tty0 root=/dev/ram0 rw vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate} setenv bootargs console=tty0 root=/dev/ram0 rw vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,5 +1,5 @@
echo "Debug: Maverick Serial" echo "Debug: Maverick Serial"
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,5 +1,5 @@
echo "Debug: Natty Serial" echo "Debug: Natty Serial"
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,5 +1,5 @@
echo "Debug: Squeeze Serial" echo "Debug: Squeeze Serial"
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro buddy=${buddy} mpurate=${mpurate}
boot boot

@ -1,5 +1,5 @@
echo "Debug: running debian netinstall" echo "Debug: running debian netinstall"
setenv bootcmd 'fatload mmc 0:1 0x80300000 uImage.net; fatload mmc 0:1 0x81600000 uInitrd.net; bootm 0x80300000 0x81600000' setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage.net; fatload mmc 0:1 UINITRD_ADDR uInitrd.net; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyO2,115200n8 root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate}
boot boot

Loading…
Cancel
Save