diff --git a/hwpack/wandboard-quad.conf b/hwpack/wandboard-quad.conf new file mode 100644 index 0000000..3c91f13 --- /dev/null +++ b/hwpack/wandboard-quad.conf @@ -0,0 +1,65 @@ +#!/bin/bash +#http://repo.or.cz/w/wandboard.git/shortlog/refs/heads/wandboard +# --dtb wandboard-dl (Freescale based i.MX6 Wandboard (Dual Core) WandBoard Tree:supported) + +SYSTEM="video" + +#Bootloader: +conf_board="WANDBOARD_QUAD" +conf_bl_http="http://rcn-ee.net/deb/tools/latest/" +conf_bl_listfile="bootloader-ng" + +#Bootloader Partition: +bootloader_location="dd_uboot_boot" +boot_fstype="ext2" +dd_uboot_bs="512" +dd_uboot_seek="2" +boot_partition_size="96" +boot_startmb="1" +use_sfdisk=1 +unset spl_name +boot_name="u-boot.imx" + +#Bootloader: u-boot features: + +#CONFIG_CMD_BOOTZ +#bootz & zImage +conf_uboot_CONFIG_CMD_BOOTZ=1 + +#CONFIG_SUPPORT_RAW_INITRD +#allows booting un-mkimage wrapped initrds +conf_uboot_CONFIG_SUPPORT_RAW_INITRD=1 + +#CONFIG_CMD_FS_GENERIC +#allows using "load" over "fatload"/"ext2load" +conf_uboot_CONFIG_CMD_FS_GENERIC=1 + +#uenvcmd avaiable? +conf_uboot_use_uenvcmd=1 +#conf_uboot_no_uenvcmd="loaduimage" + +#can the bootloader auto detect the device: (*.dtb)? +#uboot_fdt_auto_detection=1 + +#Kernel: +#http://rcn-ee.net/deb/wheezy-armhf/LATEST-imx +kernel_subarch="wand" +kernel_repo="STABLE" + +usbnet_mem= + +#Kernel: Bootloader Settings: +conf_zreladdr="0x10008000" +conf_loadaddr="0x12000000" +conf_fdtaddr="0x11000000" +#initrdaddr = loadaddr + 10(mb) * 10 0000 = 0x12A0 0000 (10MB) +conf_initrdaddr="0x12A00000" +#conf_fdtfile="imx6q-wandboard.dtb" +#need_dtbs=1 + +SERIAL="ttymxc0" +SERIAL_CONSOLE="${SERIAL},115200n8" + +VIDEO_CONSOLE="console=tty0" +HAS_IMX_BLOB=1 +conf_imx_video="video=mxcfb0:dev=hdmi,1280x720@60,if=RGB565" diff --git a/mk_mmc.sh b/mk_mmc.sh index 766d90b..79d24e3 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1198,7 +1198,13 @@ create_partitions () { ;; dd_uboot_boot) dd_uboot_boot - LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size} + if [ "${use_sfdisk}" ] ; then + LC_ALL=C sfdisk --in-order --Linux --unit M "${MMC}" <<-__EOF__ + ${boot_startmb},${boot_partition_size},0x83,* + __EOF__ + else + LC_ALL=C parted --script ${MMC} mkpart primary ${parted_format} ${boot_startmb} ${boot_partition_size} + fi ;; dd_spl_uboot_boot) dd_spl_uboot_boot