diff options
Diffstat (limited to 'meta-fsl-extras/recipes/u-boot/u-boot-toradex')
4 files changed, 98 insertions, 0 deletions
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-Update-default-args-for-apalis-imx6.patch b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-Update-default-args-for-apalis-imx6.patch new file mode 100644 index 0000000..5a456c5 --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-Update-default-args-for-apalis-imx6.patch | |||
@@ -0,0 +1,47 @@ | |||
1 | From 4569a8b4997340aae34365f2f896b842f8cc114b Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@digia.com> | ||
3 | Date: Mon, 27 Oct 2014 14:53:25 +0200 | ||
4 | Subject: [PATCH] Update default args for apalis imx6 | ||
5 | |||
6 | Boot from sd card by default | ||
7 | --- | ||
8 | include/configs/apalis_imx6.h | 13 +++++++------ | ||
9 | 1 file changed, 7 insertions(+), 6 deletions(-) | ||
10 | |||
11 | diff --git a/include/configs/apalis_imx6.h b/include/configs/apalis_imx6.h | ||
12 | index 3ea4a5c..53d9a0c 100644 | ||
13 | --- a/include/configs/apalis_imx6.h | ||
14 | +++ b/include/configs/apalis_imx6.h | ||
15 | @@ -252,14 +252,14 @@ | ||
16 | "&& setenv dtbparam \" - ${fdt_addr_r}\" && true\0" | ||
17 | |||
18 | #define SD_BOOTCMD \ | ||
19 | - "sdargs=ip=off root=/dev/mmcblk1p2 rw,noatime rootfstype=ext3 " \ | ||
20 | - "rootwait\0" \ | ||
21 | + "drive=2\0" \ | ||
22 | "sdboot=run setup; " \ | ||
23 | - "setenv bootargs ${defargs} ${sdargs} ${setupargs} " \ | ||
24 | + "setenv bootargs ${defargs} ip=off root=/dev/mmcblk${drive}p2 " \ | ||
25 | + "rw,noatime rootfstype=ext3 rootwait ${setupargs} " \ | ||
26 | "${vidargs}; echo Booting from SD card in 8-bit slot...; " \ | ||
27 | - "run sddtbload; load mmc 1:1 ${kernel_addr_r} " \ | ||
28 | + "run sddtbload; load mmc ${drive}:1 ${kernel_addr_r} " \ | ||
29 | "${boot_file} && bootm ${kernel_addr_r} ${dtbparam}\0" \ | ||
30 | - "sddtbload=setenv dtbparam; load mmc 1:1 ${fdt_addr_r} " \ | ||
31 | + "sddtbload=setenv dtbparam; load mmc ${drive}:1 ${fdt_addr_r} " \ | ||
32 | "${fdt_file} && setenv dtbparam \" - ${fdt_addr_r}\" && true\0" | ||
33 | |||
34 | #define USB_BOOTCMD \ | ||
35 | @@ -279,7 +279,8 @@ | ||
36 | #define FDT_FILE "imx6q-apalis_v1_0-eval.dtb" | ||
37 | #endif | ||
38 | #define CONFIG_EXTRA_ENV_SETTINGS \ | ||
39 | - "bootcmd=run emmcboot ; echo ; echo emmcboot failed ; " \ | ||
40 | + "bootcmd=run sdboot ; echo ; echo sdboot failed ; " \ | ||
41 | + "run emmcboot ; echo ; echo emmcboot failed ; " \ | ||
42 | "run nfsboot ; echo ; echo nfsboot failed ; " \ | ||
43 | "usb start ;" \ | ||
44 | "setenv stdout serial,vga ; setenv stdin serial,usbkbd\0" \ | ||
45 | -- | ||
46 | 1.9.1 | ||
47 | |||
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-imx7-fix-update-u-boot.patch b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-imx7-fix-update-u-boot.patch new file mode 100644 index 0000000..501ad33 --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-imx7-fix-update-u-boot.patch | |||
@@ -0,0 +1,12 @@ | |||
1 | diff -Naur git.orig/include/configs/colibri_imx7.h git/include/configs/colibri_imx7.h | ||
2 | --- git.orig/include/configs/colibri_imx7.h 2016-07-15 12:31:35.915934824 +0300 | ||
3 | +++ git/include/configs/colibri_imx7.h 2016-07-15 12:32:40.867937388 +0300 | ||
4 | @@ -248,7 +248,7 @@ | ||
5 | "${board}/flash_eth.img && source ${loadaddr}\0" \ | ||
6 | "setsdupdate=mmc rescan && setenv interface mmc && " \ | ||
7 | "fatload ${interface} 0:1 ${loadaddr} " \ | ||
8 | - "${board}/flash_blk.img && source ${loadaddr}\0" \ | ||
9 | + "/flash_blk.img && source ${loadaddr}\0" \ | ||
10 | "setup=setenv setupargs " \ | ||
11 | "console=tty1 console=${console}" \ | ||
12 | ",${baudrate}n8 ${memargs} consoleblank=0 ${mtdparts}\0" \ | ||
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch new file mode 100644 index 0000000..b54a4ae --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0001-colibri-vf-remove-console-from-tty1.patch | |||
@@ -0,0 +1,25 @@ | |||
1 | From f480a948551b0e5592d93cb7a5dc1653de900909 Mon Sep 17 00:00:00 2001 | ||
2 | From: Samuli Piippo <samuli.piippo@theqtcompany.com> | ||
3 | Date: Wed, 24 Feb 2016 16:01:33 +0200 | ||
4 | Subject: [PATCH] colibri vf: remove console from tty1 | ||
5 | |||
6 | --- | ||
7 | include/configs/colibri_vf.h | 2 +- | ||
8 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
9 | |||
10 | diff --git a/include/configs/colibri_vf.h b/include/configs/colibri_vf.h | ||
11 | index b870812..0726fc5 100644 | ||
12 | --- a/include/configs/colibri_vf.h | ||
13 | +++ b/include/configs/colibri_vf.h | ||
14 | @@ -202,7 +202,7 @@ | ||
15 | "fatload ${interface} 0:1 ${loadaddr} flash_blk.img && " \ | ||
16 | "source ${loadaddr}\0" \ | ||
17 | "setup=setenv setupargs " \ | ||
18 | - "console=tty1 console=${console}" \ | ||
19 | + "console=${console}" \ | ||
20 | ",${baudrate}n8 ${memargs} consoleblank=0\0" \ | ||
21 | "setupdate=run setsdupdate || run setusbupdate || run setethupdate\0" \ | ||
22 | "setusbupdate=usb start && setenv interface usb && " \ | ||
23 | -- | ||
24 | 1.9.1 | ||
25 | |||
diff --git a/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0002-colibri-vf-fix-mmc-boot.patch b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0002-colibri-vf-fix-mmc-boot.patch new file mode 100644 index 0000000..25476dd --- /dev/null +++ b/meta-fsl-extras/recipes/u-boot/u-boot-toradex/0002-colibri-vf-fix-mmc-boot.patch | |||
@@ -0,0 +1,14 @@ | |||
1 | diff -Naur git.orig/include/configs/colibri_vf.h git/include/configs/colibri_vf.h | ||
2 | --- git.orig/include/configs/colibri_vf.h 2016-07-15 12:05:41.263873456 +0300 | ||
3 | +++ git/include/configs/colibri_vf.h 2016-07-15 12:06:19.759874976 +0300 | ||
4 | @@ -161,8 +161,8 @@ | ||
5 | "sdargs=root=/dev/mmcblk0p2 rw rootwait\0" \ | ||
6 | "sdboot=run setup; setenv bootargs ${defargs} ${sdargs} " \ | ||
7 | "${setupargs} ${vidargs}; echo Booting from MMC/SD card...; " \ | ||
8 | - "load mmc 0:2 ${kernel_addr_r} /boot/${kernel_file} && " \ | ||
9 | - "load mmc 0:2 ${fdt_addr_r} /boot/${soc}-colibri-${fdt_board}.dtb && " \ | ||
10 | + "load mmc 0:1 ${kernel_addr_r} /${kernel_file} && " \ | ||
11 | + "load mmc 0:1 ${fdt_addr_r} /${soc}-colibri-${fdt_board}.dtb && " \ | ||
12 | "run fdt_fixup && bootz ${kernel_addr_r} - ${fdt_addr_r}\0" \ | ||
13 | |||
14 | #define NFS_BOOTCMD \ | ||