Browse Source

tx25: fix crash while booting Linux

Currently booting Linux on TX25 board doesn't work
since there is no correct mach-id and boot parameters
setup for tx25 board. Fix it now.

Signed-off-by: Anatolij Gustschin <agust@denx.de>
Cc: John Rigby <jcrigby@gmail.com>
Cc: Stefano Babic <sbabic@denx.de>
Anatolij Gustschin 15 years ago
parent
commit
87db58dca4
1 changed files with 3 additions and 0 deletions
  1. 3 0
      board/karo/tx25/tx25.c

+ 3 - 0
board/karo/tx25/tx25.c

@@ -145,6 +145,9 @@ int board_init()
 
 
 	mx25_uart_init_pins();
 	mx25_uart_init_pins();
 #endif
 #endif
+	/* board id for linux */
+	gd->bd->bi_arch_number = MACH_TYPE_TX25;
+	gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
 	return 0;
 	return 0;
 }
 }