ARM: Karo TX25: register external NAND boot update handler
To be able to update barebox with the barebox_update command. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
eeac3b7b67
commit
ecf4da52b0
|
@ -38,6 +38,7 @@
|
|||
#include <mach/iim.h>
|
||||
#include <linux/err.h>
|
||||
#include <mach/devices-imx25.h>
|
||||
#include <mach/bbu.h>
|
||||
#include <asm/mmu.h>
|
||||
|
||||
static struct fec_platform_data fec_info = {
|
||||
|
@ -115,6 +116,9 @@ static int tx25_devices_init(void)
|
|||
armlinux_set_architecture(MACH_TYPE_TX25);
|
||||
armlinux_set_serial(imx_uid());
|
||||
|
||||
imx_bbu_external_nand_register_handler("nand", "/dev/nand0.barebox",
|
||||
BBU_HANDLER_FLAG_DEFAULT);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ if [ "$1" = menu ]; then
|
|||
exit
|
||||
fi
|
||||
|
||||
mtdparts="512k(nand0.barebox)ro,512k(nand0.bareboxenv),4M(nand0.kernel),-(nand0.root)"
|
||||
mtdparts="512k(nand0.barebox),512k(nand0.bareboxenv),4M(nand0.kernel),-(nand0.root)"
|
||||
kernelname="mxc_nand"
|
||||
|
||||
mtdparts-add -b -d nand0 -k ${kernelname} -p ${mtdparts}
|
||||
|
|
Loading…
Reference in New Issue