Merge lp:~salgado/linaro-image-tools/refactor-create_boot_cmd into lp:linaro-image-tools/11.11

Proposed by Guilherme Salgado
Status: Merged
Merged at revision: 170
Proposed branch: lp:~salgado/linaro-image-tools/refactor-create_boot_cmd
Merge into: lp:linaro-image-tools/11.11
Diff against target: 82 lines (+9/-27)
1 file modified
linaro-media-create (+9/-27)
To merge this branch: bzr merge lp:~salgado/linaro-image-tools/refactor-create_boot_cmd
Reviewer Review Type Date Requested Status
Martin Ohlsson (community) Approve
Review via email: mp+41205@code.launchpad.net

Description of the change

Refactor create_boot_cmd to make it easier to port it to python

To post a comment you must log in.
Revision history for this message
Martin Ohlsson (martin-ohlson) wrote :

Hi Guilherme,

Your changes looks good to me.

/Martin

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'linaro-media-create'
--- linaro-media-create 2010-11-12 17:21:46 +0000
+++ linaro-media-create 2010-11-18 18:01:41 +0000
@@ -34,6 +34,8 @@
34BOOTFS_STEP="create_boot_cmd populate_boot"34BOOTFS_STEP="create_boot_cmd populate_boot"
35ROOTFS_STEP="populate_rootfs"35ROOTFS_STEP="populate_rootfs"
36PARTITION_STEP="create_partitions"36PARTITION_STEP="create_partitions"
37mmc_option="0:1"
38boot_args_options="rootwait ro"
3739
38DIR=$PWD40DIR=$PWD
39TMP_DIR=$(mktemp -d)41TMP_DIR=$(mktemp -d)
@@ -390,34 +392,8 @@
390 else392 else
391 boot_snippet='root=UUID='${RFS_UUID}393 boot_snippet='root=UUID='${RFS_UUID}
392 fi394 fi
393
394 # set board defaults
395 mmc_option="0:1"
396 boot_args_options="rootwait ro"
397
398 # set board specific options
399 case "$DEVIMAGE" in
400 beagle|igep)
401 boot_args_options="$boot_args_options earlyprintk fixrtc nocompcache vram=12M omapfb.debug=y omapfb.mode=dvi:1280x720MR-16@60"
402 ;;
403
404 panda)
405 boot_args_options="$boot_args_options earlyprintk fixrtc nocompcache vram=32M omapfb.debug=y omapfb.vram=0:8M mem=463M ip=none"
406 ;;
407
408 mx51evk)
409 mmc_option="0:2"
410 ;;
411
412 ux500)
413 boot_args_options="$boot_args_options earlyprintk rootdelay=1 fixrtc nocompcache"
414 boot_args_options="$boot_args_options mem=96M@0 mem_modem=32M@96M mem=44M@128M pmem=22M@172M mem=30M@194M mem_mali=32M@224M pmem_hwb=54M@256M hwmem=48M@302M mem=152M@360M"
415 mmc_option="1:1"
416 ;;
417 esac
418 395
419 # write out boot options396 cat > ${TMP_DIR}/boot.cmd << BOOTCMD
420 cat > ${TMP_DIR}/boot.cmd << BOOTCMD
421setenv bootcmd 'fatload mmc $mmc_option $KERNEL_ADDR uImage; fatload mmc $mmc_option $INITRD_ADDR uInitrd; bootm $KERNEL_ADDR $INITRD_ADDR'397setenv bootcmd 'fatload mmc $mmc_option $KERNEL_ADDR uImage; fatload mmc $mmc_option $INITRD_ADDR uInitrd; bootm $KERNEL_ADDR $INITRD_ADDR'
422setenv bootargs '${serial_opts} ${splash_opts} ${lowmem_opt} ${boot_snippet} ${boot_args_options}'398setenv bootargs '${serial_opts} ${splash_opts} ${lowmem_opt} ${boot_snippet} ${boot_args_options}'
423boot399boot
@@ -838,6 +814,7 @@
838 fi814 fi
839 KERNEL_ADDR="0x80000000"815 KERNEL_ADDR="0x80000000"
840 INITRD_ADDR="0x81600000"816 INITRD_ADDR="0x81600000"
817 boot_args_options="$boot_args_options earlyprintk fixrtc nocompcache vram=12M omapfb.debug=y omapfb.mode=dvi:1280x720MR-16@60"
841 ;;818 ;;
842 panda)819 panda)
843 serial_opts="$serial_opts console=tty0 console=ttyO2,115200n8"820 serial_opts="$serial_opts console=tty0 console=ttyO2,115200n8"
@@ -846,6 +823,7 @@
846 fi823 fi
847 KERNEL_ADDR="0x80200000"824 KERNEL_ADDR="0x80200000"
848 INITRD_ADDR="0x81600000"825 INITRD_ADDR="0x81600000"
826 boot_args_options="$boot_args_options earlyprintk fixrtc nocompcache vram=32M omapfb.debug=y omapfb.vram=0:8M mem=463M ip=none"
849 ;;827 ;;
850 ux500)828 ux500)
851 serial_opts="$serial_opts console=tty0 console=ttyAMA2,115200n8"829 serial_opts="$serial_opts console=tty0 console=ttyAMA2,115200n8"
@@ -854,6 +832,9 @@
854 fi832 fi
855 KERNEL_ADDR="0x00100000"833 KERNEL_ADDR="0x00100000"
856 INITRD_ADDR="0x08000000"834 INITRD_ADDR="0x08000000"
835 boot_args_options="$boot_args_options earlyprintk rootdelay=1 fixrtc nocompcache"
836 boot_args_options="$boot_args_options mem=96M@0 mem_modem=32M@96M mem=44M@128M pmem=22M@172M mem=30M@194M mem_mali=32M@224M pmem_hwb=54M@256M hwmem=48M@302M mem=152M@360M"
837 mmc_option="1:1"
857 ;;838 ;;
858 mx51evk)839 mx51evk)
859 serial_opts="$serial_opts console=tty0 console=ttymxc0,115200n8"840 serial_opts="$serial_opts console=tty0 console=ttymxc0,115200n8"
@@ -863,6 +844,7 @@
863 KERNEL_ADDR="0x90000000"844 KERNEL_ADDR="0x90000000"
864 INITRD_ADDR="0x90800000"845 INITRD_ADDR="0x90800000"
865 MMC_PART_OFFSET=1846 MMC_PART_OFFSET=1
847 mmc_option="0:2"
866 ;;848 ;;
867 vexpress)849 vexpress)
868 serial_opts="$serial_opts console=tty0 console=ttyAMA0,38400n8"850 serial_opts="$serial_opts console=tty0 console=ttyAMA0,38400n8"

Subscribers

People subscribed via source and target branches