Remove LYNX KDI remainders
PATCH 1/1 Remove LYNX KDI remainders
The last board that used to set CONFIG_LYNXKDI has been removed in commit 242836a893ae ("powerpc: ppc4xx: remove pcs440ep support"), doc/README.lynxkdi only talks about a MPC8260 board being supported, and the mpc8260 support has been removed four years ago in commit 2eb48ff7a210d ("powerpc, 8260: remove support for mpc8260") already, and common/lynxkdi.c only consists of an "#error" statement these days, so it seems like the LYNX KDI code is dead code nowadays. Let's remove it now.
--- common/Makefile | 1 - common/bootm_os.c | 25 ---------------- common/image.c | 2 +- common/lynxkdi.c | 23 --------------- doc/README.lynxkdi | 57 ------------------------------------ include/bootm.h | 1 - include/lynxkdi.h | 24 --------------- scripts/config_whitelist.txt | 1 - 8 files changed, 1 insertion(+), 133 deletions(-) delete mode 100644 common/lynxkdi.c delete mode 100644 doc/README.lynxkdi delete mode 100644 include/lynxkdi.h
common/Makefile +0 -1
@@ -50,7 +50,6 @@ obj-$(CONFIG_LCD) += lcd.o lcd_console.o endif obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o -obj-$(CONFIG_LYNXKDI) += lynxkdi.o obj-$(CONFIG_MENU) += menu.o obj-$(CONFIG_UPDATE_COMMON) += update.o obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.o
common/bootm_os.c +0 -25
@@ -138,28 +138,6 @@ static int do_bootm_netbsd(int flag, int argc, char *const argv[], }#endif /* CONFIG_BOOTM_NETBSD*/ -#ifdef CONFIG_LYNXKDI -static int do_bootm_lynxkdi (int flag,int argc,char *const argv[], -bootm_headers_t *images) -{ -image_header_t *hdr = &images->legacy_hdr_os_copy; - -if (flag !=BOOTM_STATE_OS_GO ) -return 0 ; - -#if defined(CONFIG_FIT ) -if (!images->legacy_hdr_valid) { -fit_unsupported_reset ("Lynx" ); -return 1 ; - } -#endif - -lynxkdi_boot ((image_header_t *)hdr); - -return 1 ; -} -#endif /* CONFIG_LYNXKDI */ -#ifdef CONFIG_BOOTM_RTEMS static int do_bootm_rtems (int flag,int argc,char *const argv[],bootm_headers_t *images)
@@ -570,9 +548,6 @@ static boot_os_fn *boot_os[] = { #ifdef CONFIG_BOOTM_NETBSD [IH_OS_NETBSD ] = do_bootm_netbsd, #endif -#ifdef CONFIG_LYNXKDI - [IH_OS_LYNXOS ] = do_bootm_lynxkdi, -#endif #ifdef CONFIG_BOOTM_RTEMS [IH_OS_RTEMS] = do_bootm_rtems, #endif
common/image.c +1 -1
@@ -106,7 +106,7 @@ static const table_entry_t uimage_os[] = { { IH_OS_INVALID, "invalid", "Invalid OS", }, { IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware" }, { IH_OS_LINUX, "linux", "Linux", }, -#if defined(CONFIG_LYNXKDI) || defined(USE_HOSTCC) +#if defined(USE_HOSTCC) { IH_OS_LYNXOS, "lynxos", "LynxOS", }, #endif { IH_OS_NETBSD, "netbsd", "NetBSD", },
common/lynxkdi.c deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* Copyright (c) Orbacom Systems, Inc <www.orbacom.com> -* All rights reserved. -* -* Redistribution and use in source and binary forms are freely -* permitted provided that the above copyright notice and this -* paragraph and the following disclaimer are duplicated in all -* such forms. -* -* This software is provided "AS IS" and without any express or -* implied warranties, including, without limitation, the implied -* warranties of merchantability and fitness for a particular -* purpose. -*/ - -#include <common.h> -#include <asm/processor.h> -#include <image.h> -#include <net.h> - -#include <lynxkdi.h> - -#error "Lynx KDI support not implemented for configured CPU"
doc/README.lynxkdi deleted +0 -57
57 lines not on this page · raw message
include/bootm.h +0 -1
@@ -39,7 +39,6 @@ extern boot_os_fn do_bootm_linux;extern boot_os_fn do_bootm_vxworks;int do_bootelf (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]); -void lynxkdi_boot (image_header_t *hdr);boot_os_fn *bootm_os_get_boot_func (int os);
include/lynxkdi.h deleted +0 -24
@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* (C) Copyright 2003 -* Orbacom Systems, Inc. -*/ - -#ifndef __LYNXKDI_H__ -#define __LYNXKDI_H__ - - -/* Boot parameter struct passed to kernel -*/ -typedef struct lynxos_bootparms_t { -uint8_t rsvd1[2 ];/* Reserved */ -uint8_t ethaddr[6 ];/* Ethernet address */ -uint16_t flags;/* Boot flags */ -uint32_t rate;/* System frequency */ -uint32_t clock_ref;/* Time reference */ -uint32_t dramsz;/* DRAM size */ -uint32_t rsvd2;/* Reserved */ -}lynxos_bootparms_t ; - - -#endif /* __LYNXKDI_H__ */
scripts/config_whitelist.txt +0 -1
@@ -742,7 +742,6 @@ CONFIG_LQ038J7DH53 CONFIG_LS102XA_STREAM_ID CONFIG_LSCHLV2 CONFIG_LSXHL -CONFIG_LYNXKDI CONFIG_M41T94_SPI_CS CONFIG_M520x CONFIG_M5301x
Signature · 1 line
2.27.0
Quoted 84 lines · Thomas Huth
The last board that used to set
CONFIG_LYNXKDIhas been removed in commit242836a893ae("powerpc: ppc4xx: remove pcs440ep support"), doc/README.lynxkdi only talks about a MPC8260 board being supported, and the mpc8260 support has been removed four years ago in commit2eb48ff7a210d("powerpc, 8260: remove support for mpc8260") already, andcommon/lynxkdi.conly consists of an "#error" statement these days, so it seems like the LYNX KDI code is dead code nowadays. Let's remove it now.Signed-off-by Thomas Huth <[email protected]>--- common/Makefile | 1 - common/bootm_os.c | 25 ---------------- common/image.c | 2 +- common/lynxkdi.c | 23 --------------- doc/README.lynxkdi | 57 ------------------------------------ include/bootm.h | 1 - include/lynxkdi.h | 24 --------------- scripts/config_whitelist.txt | 1 - 8 files changed, 1 insertion(+), 133 deletions(-)delete mode 100644
common/lynxkdi.c
delete mode 100644 doc/README.lynxkdi
delete mode 100644include/lynxkdi.hcommon/Makefile +0
-1@@ -50,7 +50,6 @@ obj-$(CONFIG_LCD) += lcd.o lcd_console.o endif obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o -obj-$(CONFIG_LYNXKDI) += lynxkdi.o obj-$(CONFIG_MENU) += menu.o obj-$(CONFIG_UPDATE_COMMON) += update.o obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.ocommon/bootm_os.c +0
-25@@ -138,28 +138,6 @@ static int do_bootm_netbsd(int flag, int argc, char *const argv[], }#endif /* CONFIG_BOOTM_NETBSD*/ -#ifdef CONFIG_LYNXKDI -static int do_bootm_lynxkdi (int flag,int argc,char *const argv[], -bootm_headers_t *images) -{ -image_header_t *hdr = &images->legacy_hdr_os_copy; - -if (flag !=BOOTM_STATE_OS_GO ) -return 0 ; - -#if defined(CONFIG_FIT ) -if (!images->legacy_hdr_valid) { -fit_unsupported_reset ("Lynx" ); -return 1 ; - } -#endif - -lynxkdi_boot ((image_header_t *)hdr); - -return 1 ; -} -#endif /* CONFIG_LYNXKDI */ -#ifdef CONFIG_BOOTM_RTEMS static int do_bootm_rtems (int flag,int argc,char *const argv[],bootm_headers_t *images)@@ -570,9 +548,6 @@ static boot_os_fn *boot_os[] = { #ifdef CONFIG_BOOTM_NETBSD [IH_OS_NETBSD ] = do_bootm_netbsd, #endif -#ifdef CONFIG_LYNXKDI - [IH_OS_LYNXOS ] = do_bootm_lynxkdi, -#endif #ifdef CONFIG_BOOTM_RTEMS [IH_OS_RTEMS] = do_bootm_rtems, #endifcommon/image.c +0
-0
common/image.c static const table_entry_t uimage_os[] = { · line 111
Quoted 7 lines
common/image.c +1
-1@@ -106,7 +106,7 @@ static const table_entry_t uimage_os[] = { { IH_OS_INVALID, "invalid", "Invalid OS", }, { IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware" }, { IH_OS_LINUX, "linux", "Linux", }, -#if defined(CONFIG_LYNXKDI) || defined(USE_HOSTCC) +#if defined(USE_HOSTCC) { IH_OS_LYNXOS, "lynxos", "LynxOS", }, #endif
By the way, does anybody know whether LynxOS is still used with u-boot? I was just looking for the other spots that use the IH_OS_LYNXOS constant, and it seems to me that this is pretty much unused now, especially after removing the lynxkdi stuff... So I guess this line here could be removed completely, too?
Thomas
Quoted 148 lines
common/image.c +0
-0{ IH_OS_NETBSD, "netbsd", "NetBSD", },common/lynxkdi.c deleted +0
-23@@ -1,23 +0,0 @@ -/* -* Copyright (c) Orbacom Systems, Inc <www.orbacom.com> -* All rights reserved. -* -* Redistribution and use in source and binary forms are freely -* permitted provided that the above copyright notice and this -* paragraph and the following disclaimer are duplicated in all -* such forms. -* -* This software is provided "AS IS" and without any express or -* implied warranties, including, without limitation, the implied -* warranties of merchantability and fitness for a particular -* purpose. -*/ - -#include <common.h> -#include <asm/processor.h> -#include <image.h> -#include <net.h> - -#include <lynxkdi.h> - -#error "Lynx KDI support not implemented for configured CPU"doc/README.lynxkdi deleted +0
-57@@ -1,57 +0,0 @@ - LYNX KDI SUPPORT - - Last Update: July 20, 2003 -======================================================================= - -This file describes support for LynuxWorks KDI within U-Boot. Support -is enabled by defining CONFIG_LYNXKDI. - - -LYNXOS AND BLUECAT SUPPORTED -============================ -Both LynxOS and BlueCat linux KDIs are supported. The implementation -automatically detects which is being booted. When you use mkimage -you should specify "lynxos" for both (see target-specific notes). - - -SUPPORTED ARCHITECTURE/TARGETS -============================== -The following targets have been tested: - --PowerPC MPC8260ADS - - -FILES TO LOOK AT -================ -include/lynxkdi.h -defines a simple struct passed to a kdi. -common/lynxkdi.c -implements the call to the kdi. -common/cmd_bootm.c -top-level command implementation ("bootm"). - - -==================================================================== -TARGET SPECIFIC NOTES -==================================================================== - -MPC8260ADS -=========== -The default LynxOS and BlueCat implementations require some -modifications to the config file. - -Edit include/configs/MPC8260ADS.h to use the following: - -#define CONFIG_SYS_IMMR 0xFA200000 -#define CONFIG_SYS_BCSR 0xFA100000 -#define CONFIG_SYS_BR1_PRELIM 0xFA101801 - -When creating a LynxOS or BlueCat u-boot image using mkimage, -you must specify the following: - -Both: -A ppc -O lynxos -T kernel -C none -LynxOS: -a 0x00004000 -e 0x00004020 -BlueCat: -a 0x00500000 -e 0x00507000 - -To pass the MAC address to BlueCat you should define the -"fcc2_ether_addr" parameter in the "bootargs" environment -variable. E.g.: - -==> setenv bootargs fcc2_ether_addr=00:11:22:33:44:55:66include/bootm.h +0
-1@@ -39,7 +39,6 @@ extern boot_os_fn do_bootm_linux;extern boot_os_fn do_bootm_vxworks;int do_bootelf (struct cmd_tbl *cmdtp,int flag,int argc,char *const argv[]); -void lynxkdi_boot (image_header_t *hdr);boot_os_fn *bootm_os_get_boot_func (int os);include/lynxkdi.h deleted +0
-24@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* (C) Copyright 2003 -* Orbacom Systems, Inc. -*/ - -#ifndef __LYNXKDI_H__ -#define __LYNXKDI_H__ - - -/* Boot parameter struct passed to kernel -*/ -typedef struct lynxos_bootparms_t { -uint8_t rsvd1[2 ];/* Reserved */ -uint8_t ethaddr[6 ];/* Ethernet address */ -uint16_t flags;/* Boot flags */ -uint32_t rate;/* System frequency */ -uint32_t clock_ref;/* Time reference */ -uint32_t dramsz;/* DRAM size */ -uint32_t rsvd2;/* Reserved */ -}lynxos_bootparms_t ; - - -#endif /* __LYNXKDI_H__ */ scripts/config_whitelist.txt +0
-1@@ -742,7 +742,6 @@ CONFIG_LQ038J7DH53 CONFIG_LS102XA_STREAM_ID CONFIG_LSCHLV2 CONFIG_LSXHL -CONFIG_LYNXKDI CONFIG_M41T94_SPI_CS CONFIG_M520x CONFIG_M5301x
Quoted 86 lines · Thomas Huth
Quoted 85 lines · Thomas Huth
The last board that used to set
CONFIG_LYNXKDIhas been removed in commit242836a893ae("powerpc: ppc4xx: remove pcs440ep support"), doc/README.lynxkdi only talks about a MPC8260 board being supported, and the mpc8260 support has been removed four years ago in commit2eb48ff7a210d("powerpc, 8260: remove support for mpc8260") already, andcommon/lynxkdi.conly consists of an "#error" statement these days, so it seems like the LYNX KDI code is dead code nowadays. Let's remove it now.Signed-off-by Thomas Huth <[email protected]>---
common/Makefile | 1 -
common/bootm_os.c | 25 ---------------- common/image.c | 2 +-
common/lynxkdi.c | 23 --------------- doc/README.lynxkdi | 57 ------------------------------------ include/bootm.h | 1 -
include/lynxkdi.h | 24 ---------------scripts/config_whitelist.txt| 1 -8 files changed, 1 insertion(+), 133 deletions(-)delete mode 100644
common/lynxkdi.c
delete mode 100644 doc/README.lynxkdi
delete mode 100644include/lynxkdi.hcommon/Makefile +0
-0@@ -50,7 +50,6 @@ obj-$(CONFIG_LCD) += lcd.o lcd_console.oendif
obj-$(CONFIG_LCD_ROTATION) += lcd_console_rotation.o obj-$(CONFIG_LCD_DT_SIMPLEFB) += lcd_simplefb.o -obj-$(CONFIG_LYNXKDI) += lynxkdi.o obj-$(CONFIG_MENU) += menu.o obj-$(CONFIG_UPDATE_COMMON) += update.o obj-$(CONFIG_USB_KEYBOARD) += usb_kbd.ocommon/bootm_os.c +0
-25@@ -138,28 +138,6 @@ static int do_bootm_netbsd(int flag, int argc,char *const argv[], } #endif /* CONFIG_BOOTM_NETBSD*/ -#ifdef CONFIG_LYNXKDI -static int do_bootm_lynxkdi (int flag,int argc,char *const argv[], - bootm_headers_t *images) -{ - image_header_t *hdr = &images->legacy_hdr_os_copy; - - if (flag != BOOTM_STATE_OS_GO) - return 0; - -#if defined(CONFIG_FIT ) - if (!images->legacy_hdr_valid) { - fit_unsupported_reset("Lynx"); - return 1; - } -#endif - - lynxkdi_boot((image_header_t *)hdr); - - return 1; -} -#endif /* CONFIG_LYNXKDI */ - #ifdef CONFIG_BOOTM_RTEMS static int do_bootm_rtems(int flag, int argc, char *const argv[], bootm_headers_t *images)@@ -570,9 +548,6 @@ static boot_os_fn *boot_os[] = { #ifdef CONFIG_BOOTM_NETBSD [IH_OS_NETBSD] = do_bootm_netbsd, #endif -#ifdef CONFIG_LYNXKDI - [IH_OS_LYNXOS] = do_bootm_lynxkdi, -#endif #ifdef CONFIG_BOOTM_RTEMS [IH_OS_RTEMS] = do_bootm_rtems, #endifcommon/image.c +0
-0@@ -106,7 +106,7 @@ static const table_entry_t uimage_os[] = { { IH_OS_INVALID, "invalid", "Invalid OS", },
Quoted 8 lines
common/image.c static const table_entry_t uimage_os[] = { · line 111
Quoted 6 lines
common/image.c +1
-1{ IH_OS_ARM_TRUSTED_FIRMWARE, "arm-trusted-firmware", "ARM Trusted Firmware" }, { IH_OS_LINUX, "linux", "Linux", }, -#if defined(CONFIG_LYNXKDI) || defined(USE_HOSTCC) +#if defined(USE_HOSTCC) { IH_OS_LYNXOS, "lynxos", "LynxOS", }, #endifBy the way, does anybody know whether LynxOS is still used with u-boot?
I have no idea, sorry. It might very well be the case, that it's completely unused since quite a few years.
Quoted 2 lines
I was just looking for the other spots that use the
IH_OS_LYNXOSconstant, and it seems to me that this is pretty much unused now, especially after removing the lynxkdi stuff... So I guess this line here could be removed completely, too?
Please go ahead. And Cc some people that did contribute to the LynxOS stuff over the time, so they might intervene.
Thanks,
Stefan
Quoted 139 lines
Thomas
Quoted 137 lines
common/image.c +0
-0{ IH_OS_NETBSD, "netbsd", "NetBSD", },common/lynxkdi.c deleted +0
-23@@ -1,23 +0,0 @@ -/* -* Copyright (c) Orbacom Systems, Inc <www.orbacom.com> -* All rights reserved. -* -* Redistribution and use in source and binary forms are freely -* permitted provided that the above copyright notice and this -* paragraph and the following disclaimer are duplicated in all -* such forms. -* -* This software is provided "AS IS" and without any express or -* implied warranties, including, without limitation, the implied -* warranties of merchantability and fitness for a particular -* purpose. -*/ - -#include <common.h> -#include <asm/processor.h> -#include <image.h> -#include <net.h> - -#include <lynxkdi.h> - -#error "Lynx KDI support not implemented for configured CPU"doc/README.lynxkdi deleted +0
-57@@ -1,57 +0,0 @@ - LYNX KDI SUPPORT - - Last Update: July 20, 2003 -======================================================================= - -This file describes support for LynuxWorks KDI within U-Boot. Support -is enabled by defining CONFIG_LYNXKDI. - - -LYNXOS AND BLUECAT SUPPORTED -============================ -Both LynxOS and BlueCat linux KDIs are supported. The implementation -automatically detects which is being booted. When you use mkimage -you should specify "lynxos" for both (see target-specific notes). - - -SUPPORTED ARCHITECTURE/TARGETS -============================== -The following targets have been tested: - --PowerPC MPC8260ADS - - -FILES TO LOOK AT -================ -include/lynxkdi.h -defines a simple struct passed to a kdi. -common/lynxkdi.c -implements the call to the kdi. -common/cmd_bootm.c -top-level command implementation ("bootm"). - - -==================================================================== -TARGET SPECIFIC NOTES -==================================================================== - -MPC8260ADS -=========== -The default LynxOS and BlueCat implementations require some -modifications to the config file. - -Edit include/configs/MPC8260ADS.h to use the following: - -#define CONFIG_SYS_IMMR 0xFA200000 -#define CONFIG_SYS_BCSR 0xFA100000 -#define CONFIG_SYS_BR1_PRELIM 0xFA101801 - -When creating a LynxOS or BlueCat u-boot image using mkimage, -you must specify the following: - -Both: -A ppc -O lynxos -T kernel -C none -LynxOS: -a 0x00004000 -e 0x00004020 -BlueCat: -a 0x00500000 -e 0x00507000 - -To pass the MAC address to BlueCat you should define the -"fcc2_ether_addr" parameter in the "bootargs" environment -variable. E.g.: - -==> setenv bootargs fcc2_ether_addr=00:11:22:33:44:55:66include/bootm.h +0
-1@@ -39,7 +39,6 @@ extern boot_os_fn do_bootm_linux; extern boot_os_fn do_bootm_vxworks; int do_bootelf(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]); -void lynxkdi_boot (image_header_t *hdr); boot_os_fn *bootm_os_get_boot_func(int os);include/lynxkdi.h deleted +0
-24@@ -1,24 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0+ */ -/* -* (C) Copyright 2003 -* Orbacom Systems, Inc. -*/ - -#ifndef __LYNXKDI_H__ -#define __LYNXKDI_H__ - - -/* Boot parameter struct passed to kernel -*/ -typedef struct lynxos_bootparms_t { - uint8_t rsvd1[2]; /* Reserved */ - uint8_t ethaddr[6]; /* Ethernet address */ - uint16_t flags; /* Boot flags */ - uint32_t rate; /* System frequency */ - uint32_t clock_ref; /* Time reference */ - uint32_t dramsz; /* DRAM size */ - uint32_t rsvd2; /* Reserved */ -}lynxos_bootparms_t ; - - -#endif /* __LYNXKDI_H__ */scripts/config_whitelist.txt +0
-0@@ -742,7 +742,6 @@ CONFIG_LQ038J7DH53
Quoted 9 lines
Quoted 8 lines
CONFIG_LS102XA_STREAM_ID
CONFIG_LSCHLV2
CONFIG_LSXHL
-CONFIG_LYNXKDI
CONFIG_M41T94_SPI_CS
CONFIG_M520x
CONFIG_M5301x
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
Quoted 10 lines · Thomas Huth
The last board that used to set
CONFIG_LYNXKDIhas been removed in commit242836a893ae("powerpc: ppc4xx: remove pcs440ep support"), doc/README.lynxkdi only talks about a MPC8260 board being supported, and the mpc8260 support has been removed four years ago in commit2eb48ff7a210d("powerpc, 8260: remove support for mpc8260") already, andcommon/lynxkdi.conly consists of an "#error" statement these days, so it seems like the LYNX KDI code is dead code nowadays. Let's remove it now.Signed-off-by Thomas Huth <[email protected]>
Applied to u-boot/master, thanks!
Signature · 1 line
Tom