mirror of
				https://github.com/linuxkit/linuxkit.git
				synced 2025-10-31 03:04:47 +00:00 
			
		
		
		
	U-Boot sets the variable fdtfile to the correct file name for the detected hardware revision. Use this in the boot script to load either the 3-b or 3-b-plus DTB Signed-off-by: Richard Connon <richard@connon.me.uk>
		
			
				
	
	
		
			10 lines
		
	
	
		
			345 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			345 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| setenv bootargs "dwc_otg.lpm_enable=0 earlyprintk console=tty1 console=ttyS0,115200 root=/dev/ram0 rw"
 | |
| setenv loadaddr 0x01000000
 | |
| setenv machid 0x00000c42
 | |
| saveenv
 | |
| 
 | |
| fatload mmc 0:1 ${loadaddr} kernel.uimg
 | |
| fatload mmc 0:1 ${fdt_addr_r} dtb/${fdtfile}
 | |
| fatload mmc 0:1 ${ramdisk_addr_r} initrd.uimg
 | |
| bootm ${loadaddr} ${ramdisk_addr_r} ${fdt_addr_r}
 |