1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2025-04-21 12:27:27 +03:00

Add the infrastructure to detect RouterBOOT and use USB

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6844 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian
2007-04-02 21:44:09 +00:00
parent b5c97c0f8b
commit 4eb6771df2
2 changed files with 22 additions and 3 deletions

View File

@@ -37,7 +37,8 @@ static char *boot_loader_names[BOOT_LOADER_LAST+1] = {
[BOOT_LOADER_UNKNOWN] = "Unknown",
[BOOT_LOADER_CFE] = "CFE",
[BOOT_LOADER_UBOOT] = "U-Boot",
[BOOT_LOADER_MYLOADER] = "MyLoader"
[BOOT_LOADER_MYLOADER] = "MyLoader",
[BOOT_LOADER_ROUTERBOOT]= "RouterBOOT"
};
/*
@@ -133,6 +134,12 @@ static int __init detect_myloader(void)
return 1;
}
static int __init detect_routerboot(void)
{
/* FIXME: not yet implemented */
return 0;
}
static int __init detect_bootloader(void)
{
if (detect_cfe())
@@ -144,6 +151,9 @@ static int __init detect_bootloader(void)
if (detect_myloader())
return BOOT_LOADER_MYLOADER;
if (detect_routerboot())
return BOOT_LOADER_ROUTERBOOT;
return BOOT_LOADER_UNKNOWN;
}