[U-Boot] [PATCH] 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 --- board/karo/tx25/tx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c index 4d6a96d..2608698 100644 --- a/board/karo/tx25/tx25.c +++ b/board/karo/tx25/tx25.c @@ -145,6 +145,9 @@ int board_init()
mx25_uart_init_pins(); #endif + /* board id for linux */ + gd->bd->bi_arch_number = MACH_TYPE_TX25; + gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; return 0; }

Dear Stefano,
In message 1271850758-25478-1-git-send-email-agust@denx.de Anatolij Gustschin wrote:
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
board/karo/tx25/tx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
Acked-by: Wolfgang Denk wd@denx.de
Best regards,
Wolfgang Denk

Anatolij Gustschin wrote:
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
board/karo/tx25/tx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c index 4d6a96d..2608698 100644 --- a/board/karo/tx25/tx25.c +++ b/board/karo/tx25/tx25.c @@ -145,6 +145,9 @@ int board_init()
mx25_uart_init_pins(); #endif
- /* board id for linux */
- gd->bd->bi_arch_number = MACH_TYPE_TX25;
- gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; return 0;
}
Applied to u-boot-imx, thanks.
Regards, Stefano

Dear Stefano Babic,
In message 4BCF02B0.60209@denx.de you wrote:
Anatolij Gustschin wrote:
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
board/karo/tx25/tx25.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/board/karo/tx25/tx25.c b/board/karo/tx25/tx25.c index 4d6a96d..2608698 100644 --- a/board/karo/tx25/tx25.c +++ b/board/karo/tx25/tx25.c @@ -145,6 +145,9 @@ int board_init()
mx25_uart_init_pins(); #endif
- /* board id for linux */
- gd->bd->bi_arch_number = MACH_TYPE_TX25;
- gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100; return 0;
}
Applied to u-boot-imx, thanks.
Will you send a pull request to Tom any time soon?
Best regards,
Wolfgang Denk

Hi Wolfgang,
--- On Wed, 5/5/10, Wolfgang Denk wd@denx.de wrote:
From: Wolfgang Denk wd@denx.de Subject: Re: [U-Boot] [PATCH] tx25: fix crash while booting Linux To: "Stefano Babic" sbabic@denx.de Cc: u-boot@lists.denx.de, "John Rigby" jcrigby@gmail.com Date: Wednesday, May 5, 2010, 7:40 PM Dear Stefano Babic,
In message 4BCF02B0.60209@denx.de you wrote:
Anatolij Gustschin wrote:
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
board/karo/tx25/tx25.c | 3
+++
1 files changed, 3 insertions(+), 0
deletions(-)
diff --git a/board/karo/tx25/tx25.c
b/board/karo/tx25/tx25.c
index 4d6a96d..2608698 100644 --- a/board/karo/tx25/tx25.c +++ b/board/karo/tx25/tx25.c @@ -145,6 +145,9 @@ int board_init() mx25_uart_init_pins(); #endif + /* board id for linux */ + gd->bd->bi_arch_number
= MACH_TYPE_TX25;
+ gd->bd->bi_boot_params
= PHYS_SDRAM_1 + 0x100;
return 0; }
Applied to u-boot-imx, thanks.
Will you send a pull request to Tom any time soon?
Stefano sent the pull request : http://www.mail-archive.com/u-boot@lists.denx.de/msg31966.html
Regards,
Fabio Estevam
participants (4)
-
Anatolij Gustschin
-
Fabio Estevam
-
Stefano Babic
-
Wolfgang Denk