thermal: imx_thermal: Do not print on error
Subsystems (3)
PATCH 1/4 thermal: imx_thermal: Do not print on error
It is not very useful to have the message below on every boot (especially when we are using early silicon):
U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300)
CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C)CPU: Thermal invalid data, fuse: 0x0
- invalid sensor device
, so turn the error message into debug level.
--- drivers/thermal/imx_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/imx_thermal.c +1 -1
@@ -159,7 +159,7 @@ static int imx_thermal_probe(struct udevice *dev)/* Check for valid fuse */ if (fuse ==0 || fuse == ~0 ) { -printf ("CPU: Thermal invalid data, fuse: 0x%x\n" , fuse); +debug ("CPU: Thermal invalid data, fuse: 0x%x\n" , fuse);return -EPERM ; }
Signature · 1 line
1.9.1
PATCH 2/4 imx-common: cpu: Do not print on invalid temperature
It is not very useful to have the message below on every boot (especially when we are using early silicon):
U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300)
CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C)CPU: Thermal invalid data, fuse: 0x0
- invalid sensor device
, so turn the error message into debug level.
--- arch/arm/imx-common/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/imx-common/cpu.c +2 -2
@@ -205,9 +205,9 @@ int print_cpuinfo(void)if (!ret)printf (" at %dC\n" , cpu_tmp);else - puts(" - invalid sensor data\n"); + debug(" - invalid sensor data\n"); }else { -puts (" - invalid sensor device\n" ); +debug (" - invalid sensor device\n" ); }#endif
Signature · 1 line
1.9.1
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
In reply to Fabio EstevamIf the SD card does not contain the u-boot.img then we get the following error:
U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 **spl_register_fat_device: fat register err - -1spl_load_image_fat: error reading image u-boot.img, err - -1
Remove CONFIG_SPL_FAT_SUPPORT and let CONFIG_SPL_MMC_SUPPORT do the job.
--- include/configs/mx6ul_14x14_evk.h | 1 - 1 file changed, 1 deletion(-)
include/configs/mx6ul_14x14_evk.h +0 -1
@@ -17,7 +17,6 @@/* SPL options */ #define CONFIG_SPL_LIBCOMMON_SUPPORT #define CONFIG_SPL_MMC_SUPPORT -#define CONFIG_SPL_FAT_SUPPORT #include "imx6_spl.h" #define CONFIG_ROM_UNIFIED_SECTIONS
Signature · 1 line
1.9.1
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Hi Fabio,
Quoted 21 lines · Fabio Estevam
If the SD card does not contain the u-boot.img then we get the following error:
U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 **
spl_register_fat_device: fat register err - -1spl_load_image_fat: error reading image u-boot.img, err - -1Remove
CONFIG_SPL_FAT_SUPPORTand letCONFIG_SPL_MMC_SUPPORTdo the job.Signed-off-by Fabio Estevam <[email protected]>---
include/configs/mx6ul_14x14_evk.h| 1 -1 file changed, 1 deletion(-)include/configs/mx6ul_14x14_evk.h +0
-0
include/configs/mx6ul_14x14_evk.h line 20
Quoted 4 lines
include/configs/mx6ul_14x14_evk.h +0
-1@@ -17,7 +17,6 @@/* SPL options */ #define CONFIG_SPL_LIBCOMMON_SUPPORT #define CONFIG_SPL_MMC_SUPPORT -#define CONFIG_SPL_FAT_SUPPORT
Can we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Regards,
Peng.
Quoted 6 lines
include/configs/mx6ul_14x14_evk.h +0
-0#include "imx6_spl.h" #define CONFIG_ROM_UNIFIED_SECTIONS Signature · 1 line
1.9.1
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Hi Peng, Fabio,
Quoted 19 lines · Peng Fan
Hi Fabio,
Quoted 16 lines · Fabio Estevam
If the SD card does not contain the u-boot.img then we get the following error:
U-Boot SPL 2015.10-rc2-23947-g7ad5930 (Sep 08 2015 - 14:10:29) ** Partition 1 not valid on device 0 **
spl_register_fat_device: fat register err - -1spl_load_image_fat: error reading image u-boot.img, err - -1Remove
CONFIG_SPL_FAT_SUPPORTand letCONFIG_SPL_MMC_SUPPORTdo the job.Signed-off-by Fabio Estevam <[email protected]>---
include/configs/mx6ul_14x14_evk.h| 1 -1 file changed, 1 deletion(-)
Quoted 12 lines
include/configs/mx6ul_14x14_evk.h line 20
Quoted 9 lines
include/configs/mx6ul_14x14_evk.h +0
-1@@ -17,7 +17,6 @@/* SPL options */ #define CONFIG_SPL_LIBCOMMON_SUPPORT #define CONFIG_SPL_MMC_SUPPORT -#define CONFIG_SPL_FAT_SUPPORT Can we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.
Regards,
Stefano
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Fabio Estevam
reviewerPATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Hi Peng and Stefano,
Quoted 7 lines · Stefano Babic
Quoted 6 lines
Quoted 3 lines
#define
CONFIG_SPL_LIBCOMMON_SUPPORT
#defineCONFIG_SPL_MMC_SUPPORT
-#defineCONFIG_SPL_FAT_SUPPORTCan we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Quoted 9 lines
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.
I am trying to get this more standard across Freescale boards.
Like it was pointed out here:
http://lists.denx.de/pipermail/u-boot/2015-August/222061.html
I think it can be confusing for the end user if each FSL board has a different way for booting u-boot.img, so that's why I chose the common approach here.
Regards,
Fabio Estevam
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Quoted 18 lines · Fabio Estevam
Quoted 7 lines · Stefano Babic
Quoted 6 lines
Quoted 3 lines
#define
CONFIG_SPL_LIBCOMMON_SUPPORT
#defineCONFIG_SPL_MMC_SUPPORT
-#defineCONFIG_SPL_FAT_SUPPORTCan we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Quoted 9 lines
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.
Quoted 8 lines
I am trying to get this more standard across Freescale boards.
Like it was pointed out here:
http://lists.denx.de/pipermail/u-boot/2015-August/222061.htmlI think it can be confusing for the end user if each FSL board has a different way for booting u-boot.img, so that's why I chose the common approach here.
I support Fabio request here; it is important to have a standard across evaluation boards.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9981-7854 Mobile: +1 (347) 903-9750
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
In reply to Fabio EstevamHi Fabio,
Quoted 21 lines · Fabio Estevam
Hi Peng and Stefano,
Quoted 7 lines · Stefano Babic
Quoted 6 lines
Quoted 3 lines
#define
CONFIG_SPL_LIBCOMMON_SUPPORT
#defineCONFIG_SPL_MMC_SUPPORT
-#defineCONFIG_SPL_FAT_SUPPORTCan we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Quoted 9 lines
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.
Quoted 8 lines
I am trying to get this more standard across Freescale boards.
Like it was pointed out here:
http://lists.denx.de/pipermail/u-boot/2015-August/222061.htmlI think it can be confusing for the end user if each FSL board has a different way for booting u-boot.img, so that's why I chose the common approach here.
Absolutely - the user will be confused. I am fine with any decision you take on that sense. IMHO in Freescale's boards (I mean, since MX51 and later) has always written u-boot in raw mode. My vote goes for removing the flag, then.
Regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Quoted 25 lines · Stefano Babic
Hi Fabio,
Quoted 22 lines · Fabio Estevam
Hi Peng and Stefano,
Quoted 7 lines · Stefano Babic
Quoted 6 lines
Quoted 3 lines
#define
CONFIG_SPL_LIBCOMMON_SUPPORT
#defineCONFIG_SPL_MMC_SUPPORT
-#defineCONFIG_SPL_FAT_SUPPORTCan we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Quoted 9 lines
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.I am trying to get this more standard across Freescale boards.
Fabio and Stefano,
I agree that we have a common way for Freescale boards. But why not choose SPL_FAT? In future we may add QSPI or SPI SPL boot, then we also need to burn u-boot.img as a raw image to sd card? or burn it to spi/qspi chips? I think the easy way is FAT load from mmc.
Also see the following,
#define CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR 138 /* offset 69KB */
#define CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS 800 /* 400 KB */
#define CONFIG_SYS_MMCSD_FS_BOOT_PARTITION 1
#define CONFIG_SYS_MONITOR_LEN (CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)
It u-boot.img is bigger than 400KB, we also need to change the macro definitions, why not choose FAT and we do not need to care about that u-boot.img may be bigger than 400KB, right? And 400KB is a fixed size, whether u-boot.img is saying 100KB or 200KB.
In future, if our mfgtool need to support SPL, each time we need to modify related macro in uboot, we need to uppdate mfgtool. We suffer for changing both.
Regards,
Peng.
Quoted 25 lines
Quoted 7 lines
Like it was pointed out here:
http://lists.denx.de/pipermail/u-boot/2015-August/222061.htmlI think it can be confusing for the end user if each FSL board has a different way for booting u-boot.img, so that's why I chose the common approach here.
Absolutely - the user will be confused. I am fine with any decision you take on that sense. IMHO in Freescale's boards (I mean, since MX51 and later) has always written u-boot in raw mode. My vote goes for removing the flag, then.
Regards,
Stefano BabicSignature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
Fabio Estevam
reviewerPATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
Hi Peng,
Quoted 4 lines · Peng Fan
Fabio and Stefano,
I agree that we have a common way for Freescale boards. But why not choose
SPL_FAT? In future we may add QSPI or SPI SPL boot, then we
We have boards that boot from SPI SPL today and this is well supported.
Quoted 1 line
also need to burn u-boot.img as a raw image to sd card?
You had to write SPL as raw image, so you can do the same for u-boot.img for a more standard behaviour across different boards.
Also, you prefer FAT for storing u-boot.img, but why not EXT3 or EXT4? We all know this is very flexible and vaild options, but we are trying to keep things consistent.
or burn it
Quoted 1 line
to spi/qspi chips? I think the easy way is FAT load from mmc.
SPI is another story and it is well supported today in SPL. You just need to write SPL at offset 1k and u-boot.img at offset CONFIG_SYS_SPI_U_BOOT_OFFS (usually 64kB so that it starts in a sector boundary).
Quoted 9 lines
Also see the following,
#defineCONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR138 /* offset 69KB */
#defineCONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS800 /* 400 KB */
#defineCONFIG_SYS_MMCSD_FS_BOOT_PARTITION1
#defineCONFIG_SYS_MONITOR_LEN(CONFIG_SYS_U_BOOT_MAX_SIZE_SECTORS/2*1024)It u-boot.img is bigger than 400KB, we also need to change the macro definitions, why not choose FAT and we do not need to care about that u-boot.img may be bigger than 400KB, right? And 400KB is a fixed size, whether u-boot.img is saying 100KB or 200KB.
The size constraint also exists when you boot from a FAT partition as you need to decide on the partition size for the FAT area.
The main point here is to be able to use the same solution for many boards as possible.
Peter Robinson put a lot of effort into moving the config options into mx6_common.h.
If we start to store u-boot.img in a FAT partition only for this mx6ul evk board that would be a step in the opposite direction of consolidation.
Quoted 2 lines
In future, if our mfgtool need to support SPL, each time we need to modify related macro in uboot, we need to uppdate mfgtool. We suffer for changing both.
mfgtool is not the only tool out there and I see no reason why it can't flash u-boot.img in a raw partition.
Regards,
Fabio Estevam
PATCH 3/4 mx6ul_14x14_evk: Remove CONFIG_SPL_FAT_SUPPORT
In reply to Fabio EstevamQuoted 21 lines · Fabio Estevam
Hi Peng and Stefano,
Quoted 7 lines · Stefano Babic
Quoted 6 lines
Quoted 3 lines
#define
CONFIG_SPL_LIBCOMMON_SUPPORT
#defineCONFIG_SPL_MMC_SUPPORT
-#defineCONFIG_SPL_FAT_SUPPORTCan we keep this? Without this, we need to burn u-boot.img into sdcard, but i prefer to load u-boot.img from the fat partition.
Quoted 9 lines
Well, how U-Boot is stored on the SD-Card is a decision that you take based on the balance safety against comfortably.
Both are ok on my side. If we put u-boot.img in raw SD at a fixed address, it is very uncommon that a user destroy accessing it. On the other side, putting it into a FAT partition makes easier to update for everybody - just copying it into a disk.
The issue reported by Fabio is like a corrupted SD-Card - the SD-Card does not contain the correct bootloader and it is ok if it does not boot or hangs. Both ways have advantages and disadvantages.
Quoted 9 lines
I am trying to get this more standard across Freescale boards.
Like it was pointed out here:
http://lists.denx.de/pipermail/u-boot/2015-August/222061.htmlI think it can be confusing for the end user if each FSL board has a different way for booting u-boot.img, so that's why I chose the common approach here.
Most of us agree to unify i.MX boards using storing the bootloader as raw data.
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================
PATCH 4/4 mx6ul_14x14_evk: Add a README file
In reply to Fabio EstevamAdd a README file to help users getting started with the board.
--- board/freescale/mx6ul_14x14_evk/README | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 board/freescale/mx6ul_14x14_evk/README
board/freescale/mx6ul_14x14_evk/README new file +32 -0
@@ -0,0 +1,32 @@ +How to use U-boot on Freescale MX6UL 14x14 EVK +----------------------------------------------- + +- Build U-boot for MX6UL 14x14 EVK: + +$ make mrproper +$ make mx6ul_14x14_evk_defconfig +$ make + +This will generate the SPL image called SPL and the u-boot.img. + +- Flash the SPL image into the micro SD card: + +sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync + +- Flash the u-boot.img image into the micro SD card: + +sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync + +- Jumper settings: + +SW601: 0 0 1 0 +Sw602: 1 0 + +where 0 means bottom position and 1 means top position (from the +switch label numbers reference). + +- Connect the USB cable between the EVK and the PC for the console. +(The USB console connector is the one close the push buttons) + +- Insert the micro SD card in the board, power it up and U-boot messages should +come up.
Signature · 1 line
1.9.1
PATCH 1/4 thermal: imx_thermal: Do not print on error
In reply to Fabio EstevamQuoted 22 lines · Fabio Estevam
It is not very useful to have the message below on every boot (especially when we are using early silicon):
U-Boot 2015.10-rc2-23945-g37cf215 (Sep 08 2015 - 14:12:14 -0300)
CPU: Freescale i.MX6UL rev1.0 792 MHz (running at 396 MHz) CPU: Commercial temperature grade (0C to 95C)CPU: Thermal invalid data, fuse: 0x0- invalid sensor device
, so turn the error message into debug level.
Signed-off-by Fabio Estevam <[email protected]>--- drivers/thermal/imx_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/thermal/imx_thermal.c +0
-0
drivers/thermal/imx_thermal.c static int imx_thermal_probe(struct udevice *dev) · line 165
Quoted 8 lines
drivers/thermal/imx_thermal.c +1
-1@@ -159,7 +159,7 @@ static int imx_thermal_probe(struct udevice *dev)/* Check for valid fuse */ if (fuse ==0 || fuse == ~0 ) { -printf ("CPU: Thermal invalid data, fuse: 0x%x\n" , fuse); +debug ("CPU: Thermal invalid data, fuse: 0x%x\n" , fuse);return -EPERM ; }
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
Signature · 5 lines
===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================