 af0546da34
			
		
	
	af0546da34
	
	
	
		
			
			The Ten64 board[1] is based around NXP's Layerscape LS1088A SoC.
It is capable of booting both standard Linux distributions
from disk devices, using EFI, and booting OpenWrt
from NAND.
See the online manual for more information, including the
flash layout[2].
This patchset adds support for generating Ten64 images
for NAND boot.
For disk boot, one can use the EFI support that was
recently added to the armvirt target.
We previously supported NAND users by building
inside our armvirt/EFI target[3], but this approach
is not suitable for OpenWrt upstream. Users who
used our supplied NAND images will be able to upgrade
to this via sysupgrade.
Signed-off-by: Mathew McBride <matt@traverse.com.au>
[1] - https://www.traverse.com.au/hardware/ten64
[2] - https://ten64doc.traverse.com.au/hardware/flash/
[3] - Example:
285e4360e1
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			464 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			464 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| #
 | |
| # Copyright (C) 2016 LEDE
 | |
| #
 | |
| 
 | |
| [ -f /etc/config/ubootenv ] && exit 0
 | |
| 
 | |
| touch /etc/config/ubootenv
 | |
| 
 | |
| . /lib/uboot-envtools.sh
 | |
| . /lib/functions.sh
 | |
| 
 | |
| board=$(board_name)
 | |
| 
 | |
| case "$board" in
 | |
| 	traverse,ls1043v|\
 | |
| 	traverse,ls1043s)
 | |
| 		ubootenv_add_uci_config "/dev/mtd1" "0x40000" "0x2000"  "0x20000"
 | |
| 	;;
 | |
| 	traverse,ten64)
 | |
| 		ubootenv_add_uci_config "/dev/mtd3" "0x0000" "0x80000" "0x80000"
 | |
| 	;;
 | |
| esac
 | |
| 
 | |
| config_load ubootenv
 | |
| config_foreach ubootenv_add_app_config ubootenv
 | |
| 
 | |
| exit 0
 |