mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
UBI: Add basic UBI support to U-Boot (Part 6/8)
This patch adds basic UBI (Unsorted Block Image) support to U-Boot. It's based on the Linux UBI version and basically has a "OS" translation wrapper that defines most Linux specific calls (spin_lock() etc.) into no-ops. Some source code parts have been uncommented by "#ifdef UBI_LINUX". This makes it easier to compare this version with the Linux version and simplifies future UBI ports/bug-fixes from the Linux version. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
c91a719daa
commit
7e6ee7ad27
7 changed files with 381 additions and 0 deletions
|
@ -73,4 +73,9 @@ struct mtdids {
|
|||
#define putLabeledWord(x, y) printf("%s %08x\n", x, (unsigned int)y)
|
||||
#define led_blink(x, y, z, a)
|
||||
|
||||
/* common/cmd_jffs2.c */
|
||||
extern int mtdparts_init(void);
|
||||
extern int find_dev_and_part(const char *id, struct mtd_device **dev,
|
||||
u8 *part_num, struct part_info **part);
|
||||
|
||||
#endif /* load_kernel_h */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue