imx6: added fixfdt to bootscript
If a 'fixfdt' uboot script exists, execute it prior to bootm to allow easy bootloader env based fdt fixups and tweaks Signed-off-by: Tim Harvey <tharvey@gateworks.com>
This commit is contained in:
		 Tim Harvey
					Tim Harvey
				
			
				
					committed by
					
						 Felix Fietkau
						Felix Fietkau
					
				
			
			
				
	
			
			
			 Felix Fietkau
						Felix Fietkau
					
				
			
						parent
						
							028350907e
						
					
				
				
					commit
					35d761c0c5
				
			| @@ -61,12 +61,15 @@ setenv bootargs "${bootargs}" "${root}" "${video}" "${extra}" | ||||
| if ${fsload} ${loadaddr} ${bootdir}/uImage; then | ||||
| 	if ${fsload} ${fdt_addr} ${bootdir}/${fdt_file}; then | ||||
| 		echo Loaded DTB from ${bootdir}/${fdt_file} | ||||
| 		test -n "$fixfdt" && run fixfdt | ||||
| 		bootm ${loadaddr} - ${fdt_addr} | ||||
| 	elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file1}; then | ||||
| 		echo Loaded DTB from ${bootdir}/${fdt_file1} | ||||
| 		test -n "$fixfdt" && run fixfdt | ||||
| 		bootm ${loadaddr} - ${fdt_addr} | ||||
| 	elif ${fsload} ${fdt_addr} ${bootdir}/${fdt_file2}; then | ||||
| 		echo Loaded DTB from ${bootdir}/${fdt_file2} | ||||
| 		test -n "$fixfdt" && run fixfdt | ||||
| 		bootm ${loadaddr} - ${fdt_addr} | ||||
| 	else | ||||
| 		echo "Error loading device-tree" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user